From f5eb73a06fd719fccc59f53c15ff038696a7d6ca Mon Sep 17 00:00:00 2001 From: Hooray Hu <304327508@qq.com> Date: Mon, 17 Jun 2024 09:16:21 +0800 Subject: [PATCH] deploy --- .vitepress/config.ts | 251 +++++++++--- .vitepress/theme/components/SponsorsAside.vue | 6 + .vitepress/theme/components/ZoomImg.vue | 13 + .vitepress/theme/index.ts | 19 +- .vitepress/theme/styles/var.css | 29 ++ buy.md | 176 +++++++++ components/auth-all.md | 13 + components/auth.md | 13 + components/index.md | 32 ++ components/page-main.md | 16 + components/sparkline.md | 15 + components/svg-icon.md | 11 + components/trend.md | 11 + guide/api.md | 41 +- guide/axios.md | 97 ++++- guide/build.md | 28 +- guide/changelog.md | 13 + guide/coding-standard.md | 24 +- guide/configure.md | 81 +++- guide/devtools.md | 18 + guide/error-log.md | 17 + guide/font.md | 34 ++ guide/global-resources.md | 4 +- guide/i18n.md | 86 ++++ guide/intro.md | 13 + guide/keep-alive.md | 95 +++++ guide/login.md | 18 + guide/page-layout.md | 211 ++++++++++ guide/permission.md | 117 ++++++ guide/q-a.md | 97 +++++ guide/ready.md | 83 ++++ guide/router.md | 220 +++++------ guide/start.md | 72 +--- guide/storage.md | 41 ++ guide/store.md | 19 +- guide/svg-icon.md | 4 + guide/theme.md | 176 +++++++++ guide/title.md | 15 + guide/upgrade.md | 11 + guide/viewport.md | 7 + guide/vue3-composition-api.md | 51 +++ guide/watermark.md | 39 ++ guide/why.md | 23 ++ index.md | 78 +--- package.json | 5 +- pnpm-lock.yaml | 373 +++++++++--------- public/devtools.gif | Bin 0 -> 1528974 bytes public/font1.png | Bin 0 -> 48174 bytes public/font2.png | Bin 0 -> 67263 bytes public/i18n-ally.png | Bin 0 -> 117658 bytes public/icones1.png | Bin 0 -> 145331 bytes public/icones2.png | Bin 0 -> 65376 bytes public/qa1.png | Bin 0 -> 31609 bytes public/qrcode-alipay-hongbao.jpg | Bin 0 -> 268438 bytes public/qrcode-alipay.png | Bin 0 -> 23866 bytes public/qrcode-wechat.png | Bin 0 -> 27083 bytes public/settings.png | Bin 0 -> 100364 bytes public/theme.gif | Bin 0 -> 4680906 bytes public/vscode.png | Bin 0 -> 2482 bytes public/watermark.png | Bin 0 -> 738862 bytes support.md | 12 +- 61 files changed, 2274 insertions(+), 554 deletions(-) create mode 100644 .vitepress/theme/components/ZoomImg.vue create mode 100644 buy.md create mode 100644 components/auth-all.md create mode 100644 components/auth.md create mode 100644 components/index.md create mode 100644 components/page-main.md create mode 100644 components/sparkline.md create mode 100644 components/svg-icon.md create mode 100644 components/trend.md create mode 100644 guide/changelog.md create mode 100644 guide/devtools.md create mode 100644 guide/error-log.md create mode 100644 guide/font.md create mode 100644 guide/i18n.md create mode 100644 guide/intro.md create mode 100644 guide/keep-alive.md create mode 100644 guide/login.md create mode 100644 guide/page-layout.md create mode 100644 guide/permission.md create mode 100644 guide/q-a.md create mode 100644 guide/ready.md create mode 100644 guide/storage.md create mode 100644 guide/theme.md create mode 100644 guide/title.md create mode 100644 guide/upgrade.md create mode 100644 guide/viewport.md create mode 100644 guide/vue3-composition-api.md create mode 100644 guide/watermark.md create mode 100644 guide/why.md create mode 100644 public/devtools.gif create mode 100644 public/font1.png create mode 100644 public/font2.png create mode 100644 public/i18n-ally.png create mode 100644 public/icones1.png create mode 100644 public/icones2.png create mode 100644 public/qa1.png create mode 100644 public/qrcode-alipay-hongbao.jpg create mode 100644 public/qrcode-alipay.png create mode 100644 public/qrcode-wechat.png create mode 100644 public/settings.png create mode 100644 public/theme.gif create mode 100644 public/vscode.png create mode 100644 public/watermark.png diff --git a/.vitepress/config.ts b/.vitepress/config.ts index 5302691..549e33b 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -35,70 +35,193 @@ _hmt.push(['_requirePlugin', 'UrlChangeTracker', { footer: { copyright: 'Copyright © 2024-present Fantastic-mobile', }, - // nav: [ - // { - // text: '指南', - // link: '/guide/start', - // }, - // { - // text: '技术支持', - // link: '/support', - // }, - // ], - // socialLinks: [ - // { - // icon: { - // svg: '', - // }, - // link: 'https://gitee.com/fantastic-mobile/basic', - // }, - // { - // icon: 'github', - // link: 'https://github.com/fantastic-mobile/basic', - // }, - // ], - // sidebar: { - // '/guide/': [ - // { - // text: '指南', - // items: [ - // { text: '开始', link: '/guide/start' }, - // { text: '代码规范', link: '/guide/coding-standard' }, - // { text: '环境配置', link: '/guide/configure' }, - // { text: '全局资源', link: '/guide/global-resources' }, - // { text: '图标', link: '/guide/svg-icon' }, - // { text: '路由', link: '/guide/router' }, - // { text: '全局状态管理', link: '/guide/store' }, - // { text: '与服务端交互', link: '/guide/axios' }, - // { text: '代码文件自动生成', link: '/guide/plop' }, - // { text: '常用 API', link: '/guide/api' }, - // { text: '移动端支持', link: '/guide/mobile-support' }, - // { text: '构建与预览', link: '/guide/build' }, - // ], - // }, - // ], - // '/': [ - // { - // text: '', - // items: [ - // { text: '技术支持', link: '/support' }, - // ], - // }, - // ], - // }, + nav: [ + { + text: '指南', + link: '/guide/intro', + }, + { + text: '组件', + link: '/components/index', + }, + { + text: '在线演示', + items: [ + { + text: 'Github', + items: [ + { + text: '基础版', + link: 'https://fantastic-mobile.github.io/basic-example', + }, + { + text: '专业版', + link: 'https://fantastic-mobile.github.io/pro-example', + }, + ], + }, + { + text: 'Cloudflare', + items: [ + { + text: '基础版', + link: 'https://fantastic-mobile.pages.dev/basic-example', + }, + { + text: '专业版', + link: 'https://fantastic-mobile.pages.dev/pro-example', + }, + ], + }, + ], + }, + { + text: '技术支持', + link: '/support', + }, + { + text: '下载 / 购买', + items: [ + { + text: '下载基础版', + link: 'https://github.com/fantastic-mobile/basic/releases', + }, + { + text: '购买专业版 ⭐', + link: '/buy', + }, + ], + }, + ], + socialLinks: [ + { + icon: { + svg: '', + }, + link: 'https://gitee.com/fantastic-mobile/basic', + }, + { + icon: 'github', + link: 'https://github.com/fantastic-mobile/basic', + }, + ], + sidebar: { + '/guide/': [ + { + text: '指引', + items: [ + { text: '文档说明', link: '/guide/intro' }, + { text: '为什么选择我们 ?', link: '/guide/why' }, + { text: '更新日志', link: '/guide/changelog' }, + ], + collapsed: false, + }, + { + text: '入门', + items: [ + { text: '准备工作', link: '/guide/ready' }, + { text: '开始', link: '/guide/start' }, + { text: '代码规范', link: '/guide/coding-standard' }, + { text: '配置', link: '/guide/configure' }, + { text: '开发者工具', link: '/guide/devtools' }, + { text: '路由', link: '/guide/router' }, + { text: '与服务端交互', link: '/guide/axios' }, + { text: '全局状态管理', link: '/guide/store' }, + { text: '全局资源', link: '/guide/global-resources' }, + { text: '图标', link: '/guide/svg-icon' }, + { text: '构建与预览', link: '/guide/build' }, + ], + collapsed: false, + }, + { + text: '进阶', + items: [ + { text: '浏览器适配', link: '/guide/viewport' }, + { text: 'PageLayout 组件', link: '/guide/page-layout' }, + { text: '登录', link: '/guide/login' }, + { text: '权限', link: '/guide/permission' }, + { text: '主题', link: '/guide/theme' }, + { text: '动态标题', link: '/guide/title' }, + ], + collapsed: false, + }, + { + text: '高级', + items: [ + { text: '页面缓存', link: '/guide/keep-alive' }, + { text: '国际化', link: '/guide/i18n' }, + { text: '常用 API', link: '/guide/api' }, + { text: '私有 Storage 数据', link: '/guide/storage' }, + { text: '页面水印', link: '/guide/watermark' }, + { text: '错误日志', link: '/guide/error-log' }, + { text: '自定义字体', link: '/guide/font' }, + { text: '使用 Composition API 开发', link: '/guide/vue3-composition-api' }, + // { + // text: '替换 UI 组件库', + // items: [ + // { text: '替换为 Ant Design Vue', link: '/guide/replace-to-antd' }, + // { text: '替换为 Arco Design Vue', link: '/guide/replace-to-arco' }, + // { text: '替换为 Naive UI', link: '/guide/replace-to-naive' }, + // { text: '替换为 TDesign', link: '/guide/replace-to-tdesign' }, + // { text: '替换为 Vexip UI', link: '/guide/replace-to-vexip' }, + // { text: '替换为 iDux', link: '/guide/replace-to-idux' }, + // ], + // collapsed: true, + // }, + ], + collapsed: false, + }, + { + text: '其它', + items: [ + { text: '框架更新', link: '/guide/upgrade' }, + { text: '常见问题', link: '/guide/q-a' }, + ], + collapsed: false, + }, + ], + '/components/': [ + { + text: '组件', + items: [ + { text: '介绍', link: '/components/' }, + ], + }, + { + text: '扩展组件', + items: [ + { text: 'Auth 鉴权', link: '/components/auth' }, + { text: 'AuthAll 鉴权', link: '/components/auth-all' }, + { text: 'PageMain 内容块', link: '/components/page-main' }, + { text: 'SvgIcon SVG图标', link: '/components/svg-icon' }, + { text: 'Trend 趋势标记', link: '/components/trend' }, + { text: 'Sparkline 迷你图', link: '/components/sparkline' }, + ], + }, + ], + '/': [ + { + text: '', + items: [ + { text: '购买专业版', link: '/buy' }, + { text: '技术支持', link: '/support' }, + ], + }, + ], + }, outline: 'deep', - // search: { - // provider: 'local', - // options: { - // translations: { - // button: { buttonText: '搜索文档', buttonAriaLabel: '搜索文档' }, - // modal: { - // noResultsText: '无法找到相关结果', - // resetButtonTitle: '清除查询条件', - // footer: { selectText: '选择', navigateText: '切换', closeText: '关闭' }, - // }, - // }, - // }, - // }, + search: { + provider: 'local', + options: { + translations: { + button: { buttonText: '搜索文档', buttonAriaLabel: '搜索文档' }, + modal: { + noResultsText: '无法找到相关结果', + resetButtonTitle: '清除查询条件', + footer: { selectText: '选择', navigateText: '切换', closeText: '关闭' }, + }, + }, + }, + }, }, }) diff --git a/.vitepress/theme/components/SponsorsAside.vue b/.vitepress/theme/components/SponsorsAside.vue index 2a68915..48bc173 100644 --- a/.vitepress/theme/components/SponsorsAside.vue +++ b/.vitepress/theme/components/SponsorsAside.vue @@ -4,6 +4,12 @@ 作者其他作品