From 09dd07ced8407384b677e63bd89d4bc9f72bcf26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=93=E6=96=87=E7=90=86?= Date: Tue, 11 Aug 2020 10:11:40 +0800 Subject: [PATCH] :bug: fix #71, request lang error (#73) --- .github/FUNDING.yml | 2 +- README.md | 2 +- src/vuex/modules/bookmark.js | 2 +- src/vuex/modules/github.js | 5 +++-- static/manifest.json | 5 +++-- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 7cb5b89..3550715 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -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'] diff --git a/README.md b/README.md index 852c399..0ca4066 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ ## GITHUBER -:octocat: 这是一个帮助 GitHub 开发者每日发现优质内容的 Chrome 主页拓展。 +:octocat: 这是一个帮助 GitHub 开发者每日发现优质内容的浏览器主页拓展。 ✔ 支持四大搜索引擎:谷歌、百度、必应、雅虎
✔ 添加便捷书签
diff --git a/src/vuex/modules/bookmark.js b/src/vuex/modules/bookmark.js index f925ccd..f066882 100644 --- a/src/vuex/modules/bookmark.js +++ b/src/vuex/modules/bookmark.js @@ -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' }, { diff --git a/src/vuex/modules/github.js b/src/vuex/modules/github.js index 8bb8ff9..bc59097 100644 --- a/src/vuex/modules/github.js +++ b/src/vuex/modules/github.js @@ -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({ @@ -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', } }); } diff --git a/static/manifest.json b/static/manifest.json index 60c2139..bb73436 100644 --- a/static/manifest.json +++ b/static/manifest.json @@ -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",