Fix linting errors
This commit is contained in:
parent
3fd7ef86f3
commit
7800180d3b
|
@ -313,7 +313,7 @@ export default class App extends React.Component {
|
|||
<p>
|
||||
The unpkg CDN is powered by{' '}
|
||||
<a href="https://www.cloudflare.com">Cloudflare</a>, one of the
|
||||
world's largest and fastest cloud network platforms.{' '}
|
||||
world's largest and fastest cloud network platforms.{' '}
|
||||
{hasStats && (
|
||||
<span>
|
||||
In the past month, Cloudflare served over{' '}
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
// import data from './data';
|
||||
import * as cloudflare from './cloudflare';
|
||||
|
||||
// export function createDayKey(date) {
|
||||
// return `${date.getUTCFullYear()}-${date.getUTCMonth()}-${date.getUTCDate()}`;
|
||||
// }
|
||||
export function createDayKey(date) {
|
||||
return `${date.getUTCFullYear()}-${date.getUTCMonth()}-${date.getUTCDate()}`;
|
||||
}
|
||||
|
||||
// export function createHourKey(date) {
|
||||
// return `${createDayKey(date)}-${date.getUTCHours()}`;
|
||||
// }
|
||||
export function createHourKey(date) {
|
||||
return `${createDayKey(date)}-${date.getUTCHours()}`;
|
||||
}
|
||||
|
||||
// export function createMinuteKey(date) {
|
||||
// return `${createHourKey(date)}-${date.getUTCMinutes()}`;
|
||||
// }
|
||||
export function createMinuteKey(date) {
|
||||
return `${createHourKey(date)}-${date.getUTCMinutes()}`;
|
||||
}
|
||||
|
||||
// function createScoresMap(array) {
|
||||
// const map = {};
|
||||
|
|
Loading…
Reference in New Issue