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';