diff --git a/config/index.ts b/config/index.ts index a2055fd85471c3185c5d317aa20fa8f391572b6d..2ff00e64d81f935d7ac21957247da239d468fe3d 100644 --- a/config/index.ts +++ b/config/index.ts @@ -8,19 +8,19 @@ export const appLanguage = [ '英文', '中文', 'GitHub' -]; +] export const webpLanguage = [ 'EN', 'CN', 'Git' -]; +] // 如果没有请赋值空字符串 -export const git = 'https://github.com/xjh22222228/nav'; +export const git = 'https://github.com/xjh22222228/nav' // 网站底部描述, 可以是 HTML -export const FOOTER_DESC = ''; +export const FOOTER_DESC = '' // http://www.nav3.cn/#/index?q=grabient export const BACKGROUND_LINEAR = [ @@ -50,4 +50,4 @@ export const BACKGROUND_LINEAR = [ 'linear-gradient(45deg, #FA8BFF 0%, #2BD2FF 52%, #2BFF88 90%)', 'linear-gradient(90deg, #74EBD5 0%, #9FACE6 100%)', 'linear-gradient(160deg, #0093E9 0%, #80D0C7 100%)' -]; +] diff --git a/data/blog.ts b/data/blog/index.ts similarity index 99% rename from data/blog.ts rename to data/blog/index.ts index 3a51117aa51fdca2e2c2e28d6aec63545e9062bf..ddf4f39e57740ada849aa438637b918001181ab0 100644 --- a/data/blog.ts +++ b/data/blog/index.ts @@ -74,4 +74,4 @@ const nav = { ] }; -export default nav; +export default nav diff --git a/data/community/index.ts b/data/community/index.ts index 4a8420b379f99349fb075140e8caecc2242174e0..37478ed33cfa395027c6282e9da9d8ecc8e5b784 100644 --- a/data/community/index.ts +++ b/data/community/index.ts @@ -5,4 +5,4 @@ export default { nav: [ developer ] -} \ No newline at end of file +} diff --git a/data/designer.ts b/data/design/index.ts similarity index 99% rename from data/designer.ts rename to data/design/index.ts index 63cd8ca218ff29d49eef6e08993dd107e411b4e0..8eaaacf14acf3bb50a5a61e4d97501d4e52f884b 100644 --- a/data/designer.ts +++ b/data/design/index.ts @@ -168,4 +168,4 @@ const nav = { ] }; -export default nav; +export default nav diff --git a/data/index.ts b/data/index.ts index 742cb99b19d8f483101d27e385bd98fa5cce6385..4c557db38b06024e371ada5596f596d4532c6aac 100644 --- a/data/index.ts +++ b/data/index.ts @@ -1,15 +1,15 @@ -import frontend from './frontend'; -import node from './node'; -import flutter from './flutter'; -import python from './python'; -import go from './go'; -import utilityTool from './utilityTool'; -import study from './study'; -import security from './security'; -import designer from './designer'; -import blog from './blog'; -import operation from './operation'; -import community from './community'; +import frontend from './frontend' +import node from './node' +import flutter from './flutter' +import python from './python' +import go from './go' +import utilityTool from './utilityTool' +import study from './study' +import security from './security' +import design from './design' +import blog from './blog' +import operation from './operation' +import community from './community' export default [ utilityTool, @@ -19,9 +19,9 @@ export default [ python, go, community, - designer, + design, study, security, operation, blog, -]; +] diff --git a/data/operation.ts b/data/operation/index.ts similarity index 100% rename from data/operation.ts rename to data/operation/index.ts diff --git a/data/python/official.ts b/data/python/official.ts index e74e95a992a241ea227abdd993dba70021d46113..2d484107f2c6e6e614c16355e618ae93e864bc49 100644 --- a/data/python/official.ts +++ b/data/python/official.ts @@ -1,9 +1,12 @@ +const DEFAULT_ICON = 'https://www.python.org/static/favicon.ico' + export default { title: '生态系统', nav: [ { subtitle: '官方', + icon: DEFAULT_ICON, nav: [ { icon: 'https://www.python.org/static/favicon.ico', diff --git a/data/python/package.ts b/data/python/package.ts index 29f7074e14e53c4aafb6a431f06aa26b7427261a..4636c4400540b2c59f753d90d681ed8d96e6f02b 100644 --- a/data/python/package.ts +++ b/data/python/package.ts @@ -1,7 +1,11 @@ + +const DEFAULT_ICON = 'https://www.python.org/static/favicon.ico' + export default { title: '依赖包', nav: [ { + icon: DEFAULT_ICON, subtitle: 'HTTP', nav: [ { @@ -41,9 +45,10 @@ export default { }, { subtitle: '图像', + icon: DEFAULT_ICON, nav: [ { - icon: 'https://avatars3.githubusercontent.com/u/2036701?s=200&v=4', + icon: null, name: 'Pillow', desc: '友好的PIL前叉,是一个出色的图像处理库', link: 'https://python-pillow.org/', @@ -54,6 +59,18 @@ export default { ] }, ] + }, + { + subtitle: 'CLI', + icon: DEFAULT_ICON, + nav: [ + { + icon: null, + name: 'Fire', + desc: 'Python Fire是一个用于从绝对任何Python对象自动生成命令行界面(CLI)的库。', + link: 'https://github.com/google/python-fire', + }, + ] } ] -} \ No newline at end of file +} diff --git a/data/python/reference.ts b/data/python/reference.ts index 13d0c4770719acf63540e7ee650c28ef6480da1a..520555795206036650d197a195ee657bb8c1d829 100644 --- a/data/python/reference.ts +++ b/data/python/reference.ts @@ -1,12 +1,15 @@ +const DEFAULT_ICON = 'https://www.python.org/static/favicon.ico' + export default { title: '参考资料', nav: [ { subtitle: '书籍', + icon: DEFAULT_ICON, nav: [ { - icon: 'https://www.python.org/static/favicon.ico', + icon: null, name: '简明 Python 教程', desc: '旨在于介绍如何使用 Python 语言进行编程的自由图书。它以教材与指南的形式为入门者介绍 Python 语言。如果你对电脑知识的了解仅限于如何保存文本文件的话,那这本书就是为你准备的。', link: 'https://bop.mol.uno/', @@ -15,33 +18,34 @@ export default { }, { subtitle: '文档资料', + icon: DEFAULT_ICON, nav: [ { - icon: 'https://www.python.org/static/favicon.ico', + icon: null, name: '100天从新手到大师', desc: 'Python - 100天从新手到大师', link: 'https://github.com/jackfrued/Python-100-Days', }, { - icon: 'https://www.python.org/static/favicon.ico', + icon: null, name: 'Python 入门指南', desc: 'Python 入门指南', link: 'https://python666.cn/cls/lesson/list/', }, { - icon: 'https://www.python.org/static/favicon.ico', + icon: null, name: 'What the f*ck Python!', desc: '一些有趣且鲜为人知的 Python 特性.', link: 'https://github.com/satwikkansal/wtfpython', }, { - icon: 'https://www.python.org/static/favicon.ico', + icon: null, name: 'awesome-python-cn', desc: 'Python 资源大全中文版', link: 'https://github.com/jobbole/awesome-python-cn', }, { - icon: 'https://www.python.org/static/favicon.ico', + icon: null, name: 'cheatsheet', desc: 'Python大全备忘单', link: 'https://github.com/gto76/python-cheatsheet', diff --git a/data/security.ts b/data/security/index.ts similarity index 99% rename from data/security.ts rename to data/security/index.ts index 7892b04300f861fd7e6dd329f25c76b770ec0523..b22d1714f385a22bcf09aec3da2d12ce6bd65f99 100644 --- a/data/security.ts +++ b/data/security/index.ts @@ -191,4 +191,4 @@ const nav = { ] }; -export default nav; +export default nav