Skip to content

Commit 701564a

Browse files
committed
🚑 Fix trending api url and eslint
1 parent 9f7f073 commit 701564a

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ BROWSER=none
33
INLINE_RUNTIME_CHUNK=false
44
REACT_APP_TOP_TIP_URL="https://raw.githubusercontent.com/wonderbeyond/HitUP/user-tips/user-tips.toml"
55
REACT_APP_GEMMY_BASE_URL="https://wonderbeyond.github.io/gemmy"
6-
REACT_APP_VERSION=4.11.2
6+
REACT_APP_VERSION=4.11.3

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hitup",
3-
"version": "4.11.2",
3+
"version": "4.11.3",
44
"private": true,
55
"dependencies": {
66
"axios": "^0.18.0",

public/ga.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ ga('create', 'UA-134825122-1', 'auto');
1010
ga('set', 'checkProtocolTask', function(){}); // // Removes failing protocol check.
1111
// ga('send', 'pageview'); // we send pv in react-router hook now
1212

13-
var appVer = "4.11.2";
13+
var appVer = "4.11.3";
1414
ga('set', 'dimension1', appVer);

public/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"manifest_version": 2,
3-
"version": "4.11.2",
3+
"version": "4.11.3",
44
"name": "HitUP - Find Top Things",
55
"short_name": "HitUP",
66
"description": "Find top things in new tab page, e.g. trending GitHub repositories and more...",

scripts/generate-github-languages-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const API = 'https://ghapi.huchen.dev/languages'
1+
const API = 'https://gtrend.flwha.com/languages'
22
const axios = require('axios');
33

44
const popularNames = [

scripts/generate-github-spoken-languages-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const API = 'https://ghapi.huchen.dev/spoken_languages'
1+
const API = 'https://gtrend.flwha.com/spoken_languages'
22
const axios = require('axios');
33

44
const popularLangs = [

src/components/ranking-filters/ranking-period-filter/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import React from 'react';
2-
import {useState, useEffect} from 'react';
2+
import {useState} from 'react';
33
import PropTypes from 'prop-types';
44
import { ReactComponent as PeriodIcon } from 'icons/period.svg';
55
import {realizePeriod} from 'lib/date-period';
66
import classNames from 'classnames';
77
import styles from './styles.module.scss';
8-
import {format, isSameDay} from 'date-fns';
8+
import {format} from 'date-fns';
99
import ClickOutside from 'react-click-outside';
10-
10+
// eslint-disable-next-line
1111
function toDateStr(d) {
1212
// only leave the date part
1313
if (!d) {return ''}
@@ -37,7 +37,7 @@ const RankingPeriodFilter = (props) => {
3737
end: initPeriod.end,
3838
spec: initPeriod.spec,
3939
});
40-
40+
// eslint-disable-next-line
4141
const changeHandler = event => {
4242
const newPeriod = {
4343
...period,

src/lib/gh-trending/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import axios from 'axios';
22
import lscache from 'lscache';
33
import ReactGA from 'react-ga';
44

5-
const TRENDING_API_URL = 'https://ghapi.huchen.dev/repositories';
5+
const TRENDING_API_URL = 'https://gtrend.flwha.com/repositories';
66

77
export const trendingPeriodDefs = {
88
'day': {heading: 'Today', ghParamKey: 'daily'},

0 commit comments

Comments
 (0)