Skip to content

Commit

Permalink
🐛 fix #71, request lang error (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuowenli authored Aug 11, 2020
1 parent ca5bce6 commit 09dd07c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ community_bridge: # Replace with a single Community Bridge project-name e.g., cl
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://paypal.me/zhuowenli']
custom: ['https://paypal.me/zhuowenli', 'https://www.buymeacoffee.com/zhuowenli']
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

## GITHUBER

:octocat: 这是一个帮助 GitHub 开发者每日发现优质内容的 Chrome 主页拓展
:octocat: 这是一个帮助 GitHub 开发者每日发现优质内容的浏览器主页拓展

✔ 支持四大搜索引擎:谷歌、百度、必应、雅虎<br>
✔ 添加便捷书签<br>
Expand Down
2 changes: 1 addition & 1 deletion src/vuex/modules/bookmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const actions = {
/* eslint-disable max-len */
data = [
{
name: 'zhuowenli/githuber: 这是一个帮助 Githuber 每日发现优质内容的 Chrome 主页拓展。',
name: 'zhuowenli/githuber: 这是一个帮助 Githuber 每日发现优质内容的浏览器主页拓展。',
logo: 'https://github.com/favicon.ico',
url: 'https://github.com/zhuowenli/githuber'
}, {
Expand Down
5 changes: 3 additions & 2 deletions src/vuex/modules/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ const toWeek = Math.ceil((((new Date() - year) / 86400000) + year.getDay() + 1)
const toMonth = time.getMonth() + 1;

const fetchTrendingRepos = async (lang, since, type = 'repositories') => {
const data = await get(`https://ghapi.huchen.dev/${type}?language=${lang}&since=${since}`);
console.log(lang);
const data = await get(`https://ghapi.huchen.dev/${type}?language=${encodeURIComponent(lang)}&since=${since}`);

if (type === 'developers' && lang === 'JavaScript' && (Math.random() * 2) > 1) {
data.push({
Expand All @@ -29,7 +30,7 @@ const fetchTrendingRepos = async (lang, since, type = 'repositories') => {
repo: {
name: 'githuber',
url: 'https://github.com/zhuowenli/githuber',
description: ':octocat: Display Github Trending repositories on Chrome New Tab Extensions',
description: ':octocat: Display Github Trending repositories on New Tab Extensions',
}
});
}
Expand Down
5 changes: 3 additions & 2 deletions static/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"manifest_version": 2,
"name": "GITHUBER - 开发者的新标签页",
"description": "这是一个帮助 GitHub 开发者每日发现优质内容的 Chrome 主页拓展。",
"name": "GITHUBER - New Tab",
"description": "Display Github Trending repositories on New Tab Extensions",
"version": "1.6.4",
"icons": {
"16": "assets/icon/icon-16.png",
"48": "assets/icon/icon-48.png",
"128": "assets/icon/icon-128.png"
},
"default_locale": "en",
"browser_action": {
"default_icon": {
"16": "assets/icon/icon-16.png",
Expand Down

0 comments on commit 09dd07c

Please sign in to comment.