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
|
||||
|
||||
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-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 class="about-logo">
|
||||
<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 invariant from 'invariant'
|
||||
|
||||
const CloudFlareKey = process.env.CLOUDFLARE_KEY
|
||||
const CloudFlareEmail = process.env.CLOUDFLARE_EMAIL
|
||||
const CloudflareKey = process.env.CLOUDFLARE_KEY
|
||||
const CloudflareEmail = process.env.CLOUDFLARE_EMAIL
|
||||
|
||||
invariant(
|
||||
CloudFlareKey,
|
||||
CloudflareKey,
|
||||
'Missing $CLOUDFLARE_KEY environment variable'
|
||||
)
|
||||
|
||||
invariant(
|
||||
CloudFlareEmail,
|
||||
CloudflareEmail,
|
||||
'Missing $CLOUDFLARE_EMAIL environment variable'
|
||||
)
|
||||
|
||||
|
@ -31,8 +31,8 @@ const getResult = () =>
|
|||
)
|
||||
|
||||
const commonStack = createStack(
|
||||
header('X-Auth-Key', CloudFlareKey),
|
||||
header('X-Auth-Email', CloudFlareEmail),
|
||||
header('X-Auth-Key', CloudflareKey),
|
||||
header('X-Auth-Email', CloudflareEmail),
|
||||
base('https://api.cloudflare.com/client/v4'),
|
||||
getResult()
|
||||
)
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
import { renderToStaticMarkup } from 'react-dom/server'
|
||||
import { getAnalyticsDashboards } from './CloudFlare'
|
||||
import { getAnalyticsDashboards } from './Cloudflare'
|
||||
import HomePage from './components/HomePage'
|
||||
|
||||
const OneMinute = 1000 * 60
|
||||
|
@ -9,7 +9,7 @@ const DOCTYPE = '<!DOCTYPE html>'
|
|||
|
||||
const fetchStats = (callback) => {
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
callback(null, require('./CloudFlareStats.json'))
|
||||
callback(null, require('./CloudflareStats.json'))
|
||||
} else {
|
||||
const since = new Date(Date.now() - ThirtyDays)
|
||||
const until = new Date(Date.now() - OneMinute)
|
||||
|
|
Loading…
Reference in New Issue