Update Cloudflare name and logo
This commit is contained in:
parent
3aaa3d6e99
commit
ccd2a86431
Binary file not shown.
Before Width: | Height: | Size: 36 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
|
@ -10,11 +10,11 @@ We'd love to talk to you more about training your team on [React](https://facebo
|
||||||
|
|
||||||
### Sponsors
|
### Sponsors
|
||||||
|
|
||||||
The fast, global infrastructure that powers unpkg is graciously provided by [CloudFlare](https://www.cloudflare.com) and [Heroku](https://www.heroku.com).
|
The fast, global infrastructure that powers unpkg is generously donated by [Cloudflare](https://www.cloudflare.com) and [Heroku](https://www.heroku.com).
|
||||||
|
|
||||||
<div class="about-logos">
|
<div class="about-logos">
|
||||||
<div class="about-logo">
|
<div class="about-logo">
|
||||||
<a href="https://www.cloudflare.com"><img src="../CloudFlareLogo.png"></a>
|
<a href="https://www.cloudflare.com"><img src="../CloudflareLogo.png"></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="about-logo">
|
<div class="about-logo">
|
||||||
<a href="https://www.heroku.com"><img src="../HerokuLogo.png"></a>
|
<a href="https://www.heroku.com"><img src="../HerokuLogo.png"></a>
|
||||||
|
|
|
@ -2,16 +2,16 @@ import 'isomorphic-fetch'
|
||||||
import { createStack, createFetch, header, base, query, parseJSON, onResponse } from 'http-client'
|
import { createStack, createFetch, header, base, query, parseJSON, onResponse } from 'http-client'
|
||||||
import invariant from 'invariant'
|
import invariant from 'invariant'
|
||||||
|
|
||||||
const CloudFlareKey = process.env.CLOUDFLARE_KEY
|
const CloudflareKey = process.env.CLOUDFLARE_KEY
|
||||||
const CloudFlareEmail = process.env.CLOUDFLARE_EMAIL
|
const CloudflareEmail = process.env.CLOUDFLARE_EMAIL
|
||||||
|
|
||||||
invariant(
|
invariant(
|
||||||
CloudFlareKey,
|
CloudflareKey,
|
||||||
'Missing $CLOUDFLARE_KEY environment variable'
|
'Missing $CLOUDFLARE_KEY environment variable'
|
||||||
)
|
)
|
||||||
|
|
||||||
invariant(
|
invariant(
|
||||||
CloudFlareEmail,
|
CloudflareEmail,
|
||||||
'Missing $CLOUDFLARE_EMAIL environment variable'
|
'Missing $CLOUDFLARE_EMAIL environment variable'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -31,8 +31,8 @@ const getResult = () =>
|
||||||
)
|
)
|
||||||
|
|
||||||
const commonStack = createStack(
|
const commonStack = createStack(
|
||||||
header('X-Auth-Key', CloudFlareKey),
|
header('X-Auth-Key', CloudflareKey),
|
||||||
header('X-Auth-Email', CloudFlareEmail),
|
header('X-Auth-Email', CloudflareEmail),
|
||||||
base('https://api.cloudflare.com/client/v4'),
|
base('https://api.cloudflare.com/client/v4'),
|
||||||
getResult()
|
getResult()
|
||||||
)
|
)
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { renderToStaticMarkup } from 'react-dom/server'
|
import { renderToStaticMarkup } from 'react-dom/server'
|
||||||
import { getAnalyticsDashboards } from './CloudFlare'
|
import { getAnalyticsDashboards } from './Cloudflare'
|
||||||
import HomePage from './components/HomePage'
|
import HomePage from './components/HomePage'
|
||||||
|
|
||||||
const OneMinute = 1000 * 60
|
const OneMinute = 1000 * 60
|
||||||
|
@ -9,7 +9,7 @@ const DOCTYPE = '<!DOCTYPE html>'
|
||||||
|
|
||||||
const fetchStats = (callback) => {
|
const fetchStats = (callback) => {
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
callback(null, require('./CloudFlareStats.json'))
|
callback(null, require('./CloudflareStats.json'))
|
||||||
} else {
|
} else {
|
||||||
const since = new Date(Date.now() - ThirtyDays)
|
const since = new Date(Date.now() - ThirtyDays)
|
||||||
const until = new Date(Date.now() - OneMinute)
|
const until = new Date(Date.now() - OneMinute)
|
||||||
|
|
Loading…
Reference in New Issue