From 3ede341f3d5bf867c964b990e275a106a1023ad8 Mon Sep 17 00:00:00 2001 From: hi2hi Date: Tue, 31 Dec 2024 07:51:53 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E8=AE=A9AI=E5=86=99=E4=BA=86?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E7=83=9F=E8=8A=B1=E5=92=8C=E6=96=B0=E5=B9=B4?= =?UTF-8?q?=E5=BF=AB=E4=B9=90=E7=9A=84=E7=81=AF=E7=AC=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc.cjs | 1 + public/config.js | 2 + src/components/fireworks.vue | 158 +++++++++++++++++++++ src/components/lantern.vue | 257 +++++++++++++++++++++++++++++++++++ src/layout/main.vue | 8 ++ 5 files changed, 426 insertions(+) create mode 100644 src/components/fireworks.vue create mode 100644 src/components/lantern.vue diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d668102..a2930a4 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -66,6 +66,7 @@ module.exports = { 'no-param-reassign': 'off', 'no-underscore-dangle': 'off', 'no-unsafe-optional-chaining': 'off', + 'max-classes-per-file': 'off', 'max-len': ['warn', 120], 'vue/max-len': ['warn', 120], 'object-property-newline': ['error', { diff --git a/public/config.js b/public/config.js index 6d8d3e6..df0669a 100644 --- a/public/config.js +++ b/public/config.js @@ -5,6 +5,8 @@ window.$$nazhuaConfig = { // buyBtnText: '购买', // 购买按钮文案 // customBackgroundImage: '', // 自定义的背景图片地址 // lightBackground: true, // 启用了浅色系背景图,会强制关闭点点背景 + // showFireworks: true, // 是否显示烟花,建议开启浅色系背景 + // showLantern: true, // 是否显示灯笼 // listServerItemTypeToggle: true, // 服务器列表项类型切换 // listServerItemType: 'row', // 服务器列表项类型 card/row row列表模式移动端自动切换至card // listServerStatusType: 'progress', // 服务器状态类型--列表 diff --git a/src/components/fireworks.vue b/src/components/fireworks.vue new file mode 100644 index 0000000..cb8890f --- /dev/null +++ b/src/components/fireworks.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/components/lantern.vue b/src/components/lantern.vue new file mode 100644 index 0000000..81dc055 --- /dev/null +++ b/src/components/lantern.vue @@ -0,0 +1,257 @@ + + + + + diff --git a/src/layout/main.vue b/src/layout/main.vue index d57810d..85eb24a 100644 --- a/src/layout/main.vue +++ b/src/layout/main.vue @@ -12,6 +12,12 @@ + + @@ -21,6 +27,8 @@ */ import { computed } from 'vue'; import config from '@/config'; +import Fireworks from '@/components/fireworks.vue'; +import Lantern from '@/components/lantern.vue'; import LayoutHeader from './components/header.vue'; import LayoutFooter from './components/footer.vue';