diff --git a/.gitignore b/.gitignore index 916f754f..c9aa9fac 100644 --- a/.gitignore +++ b/.gitignore @@ -11,8 +11,7 @@ dist *.swp *.swo ._* -scss/ -vue/ + # Node.js模块 node_modules/ npm-debug.log diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 308f04e3..76c9ef73 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -18,7 +18,7 @@ export default defineConfig({ ] }, define: { - FooterData: JSON.stringify(require('./data/FooterData').sections) + FooterData: JSON.stringify(require('./data/FooterData').Footer_Data) } }, themeConfig: { diff --git a/docs/.vitepress/data/AsideData.ts b/docs/.vitepress/data/AsideData.ts index c0a541e8..0c43a228 100644 --- a/docs/.vitepress/data/AsideData.ts +++ b/docs/.vitepress/data/AsideData.ts @@ -1,22 +1,10 @@ -// src/banners.ts -export interface Banner { - link: string - icon: string - Activity?: string - name: string - hide1?: string - hide2?: string - info1?: string - info2?: string -} - -export const banners: Banner[] = [ +export const Aside_Data = [ // { // link: 'https://fbinv01.fbaff.cc/auth/register?code=RZP3', // icon: 'https://flyingbirdlimo.com/wp-content/uploads/2022/03/Flying-Bird-Logo-cropped.png', // Activity: 'FlyingBird 618活动来了', // info1: '月付 85折 优惠码 2461885', - // info2: '年付 64折 优惠码 2461880', + // info2: '年付 64折 优惠码 2461880' // }, { link: 'https://xx.theojs.cn/', diff --git a/docs/.vitepress/data/FooterData.ts b/docs/.vitepress/data/FooterData.ts index 85652756..cf05bacc 100644 --- a/docs/.vitepress/data/FooterData.ts +++ b/docs/.vitepress/data/FooterData.ts @@ -1,86 +1,85 @@ -// src/footerData.ts -export interface Link { - name: string - href: string -} - -export interface Section { - title: string - links: Link[] - internal?: boolean -} - -export const sections: Section[] = [ - { - title: 'GitHub Source', - links: [ - { - name: 'Theo-Docs', - href: 'https://github.com/Theo-Messi/Theo-Docs' - }, - { - name: '玄学宝典', - href: 'https://github.com/Theo-Messi/xx.theojs.cn' - }, - { - name: '阿里云盘资源分享', - href: 'https://github.com/Theo-Messi/share.theojs.cn' - }, - { - name: '常用配置文件', - href: 'https://github.com/Theo-Messi/dotfiles' - } - ] +export const Footer_Data = { + beian: { + icp: '鄂ICP备2024060426号', + police: '粤公网安备44200102445449号' }, - { - title: '合作伙伴', - links: [ - { name: '银河录像局', href: 'https://nf.video/kaIuE' }, - { name: '奈飞小铺', href: 'https://ihezu.love/UKTer6' }, - { - name: 'FlyingBird', - href: 'https://fbinv01.fbaff.cc/auth/register?code=RZP3' - }, - { - name: 'Bridge The Wise', - href: 'https://patriot.ninja/aff.php?aff=1471' - }, - { - name: 'SMS-Activate', - href: 'https://sms-activate.org/?ref=8170513' - } - ] + author: { + name: 'Theo-Messi', + link: 'https://github.com/Theo-Messi', + time: 2019 }, - { - title: '观影指南', - links: [ - { - name: 'Netflix', - href: 'https://doc.theojs.cn/streaming/Netflix-guide' - }, - { - name: 'Disney+', - href: 'https://doc.theojs.cn/streaming/Disney-introduce' - }, - { - name: 'Spotify Premium', - href: 'https://doc.theojs.cn/streaming/Spotify' - }, - { - name: 'YouTube Premium', - href: 'https://doc.theojs.cn/streaming/YouTube' - }, - { name: 'Hulu', href: 'https://doc.theojs.cn/streaming/Hulu' }, - { name: 'HBO Max', href: 'https://doc.theojs.cn/streaming/HBO-Max' } - ] - }, - { - title: '相关链接', - links: [ - { name: 'Theo-Docs', href: 'https://doc.theojs.cn/' }, - { name: '玄学宝典', href: 'https://xx.theojs.cn/' }, - { name: '阿里云盘资源分享', href: 'https://share.theojs.cn/' }, - { name: 'VitePress', href: 'https://vitepress.dev/' } - ] - } -] + group: [ + { + title: 'GitHub Source', + links: [ + { + name: 'Theo-Docs', + href: 'https://github.com/Theo-Messi/Theo-Docs' + }, + { + name: '玄学宝典', + href: 'https://github.com/Theo-Messi/xx.theojs.cn' + }, + { + name: '阿里云盘资源分享', + href: 'https://github.com/Theo-Messi/share.theojs.cn' + }, + { + name: '常用配置文件', + href: 'https://github.com/Theo-Messi/dotfiles' + } + ] + }, + { + title: '合作伙伴', + links: [ + { name: '银河录像局', href: 'https://nf.video/kaIuE' }, + { name: '奈飞小铺', href: 'https://ihezu.love/UKTer6' }, + { + name: 'FlyingBird', + href: 'https://fbinv01.fbaff.cc/auth/register?code=RZP3' + }, + { + name: 'Bridge The Wise', + href: 'https://patriot.ninja/aff.php?aff=1471' + }, + { + name: 'SMS-Activate', + href: 'https://sms-activate.org/?ref=8170513' + } + ] + }, + { + title: '观影指南', + links: [ + { + name: 'Netflix', + href: 'https://doc.theojs.cn/streaming/Netflix-guide' + }, + { + name: 'Disney+', + href: 'https://doc.theojs.cn/streaming/Disney-introduce' + }, + { + name: 'Spotify Premium', + href: 'https://doc.theojs.cn/streaming/Spotify' + }, + { + name: 'YouTube Premium', + href: 'https://doc.theojs.cn/streaming/YouTube' + }, + { name: 'Hulu', href: 'https://doc.theojs.cn/streaming/Hulu' }, + { name: 'HBO Max', href: 'https://doc.theojs.cn/streaming/HBO-Max' } + ] + }, + { + title: '相关链接', + links: [ + { name: 'Theo-Docs', href: 'https://doc.theojs.cn/' }, + { name: '玄学宝典', href: 'https://xx.theojs.cn/' }, + { name: '阿里云盘资源分享', href: 'https://share.theojs.cn/' }, + { name: 'VitePress', href: 'https://vitepress.dev/' } + ] + } + ] +} diff --git a/docs/.vitepress/theme/index.ts b/docs/.vitepress/theme/index.ts index 0c348edd..c85ebc22 100644 --- a/docs/.vitepress/theme/index.ts +++ b/docs/.vitepress/theme/index.ts @@ -10,13 +10,13 @@ import { DocAsideLogo, HomeUnderline } from '../../../package/vue' -import { banners } from '../data/AsideData' +import { Aside_Data } from '../data/AsideData' export default { extends: DefaultTheme, Layout() { return h(DefaultTheme.Layout, null, { 'home-hero-info-before': () => h(Announcement), - 'aside-ads-before': () => h(DocAsideLogo, { banners }) + 'aside-ads-before': () => h(DocAsideLogo, { Aside_Data }) }) }, enhanceApp: ({ app }) => { diff --git a/package/vue/DocAsideLogo.vue b/package/vue/DocAsideLogo.vue index c866f123..22514522 100644 --- a/package/vue/DocAsideLogo.vue +++ b/package/vue/DocAsideLogo.vue @@ -4,12 +4,12 @@ import { defineComponent, PropType } from 'vue' export default defineComponent({ name: 'DocAsideLogo', props: { - banners: { + Aside_Data: { type: Array as PropType< Array<{ link: string icon: string - name: string + name?: string Activity?: string hide1?: string info1?: string @@ -26,7 +26,7 @@ export default defineComponent({