1
0
Fork 0
mirror of https://github.com/silenty4ng/k5web synced 2025-04-04 07:05:05 +00:00
This commit is contained in:
Silent YANG 2024-06-16 14:57:40 +08:00
parent d1e7f12b30
commit 9d729d77da
5 changed files with 14 additions and 16933 deletions

16928
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -37,6 +37,7 @@
"vue": "^3.2.40",
"vue-echarts": "^6.2.3",
"vue-i18n": "^9.2.2",
"vue-matomo": "^4.2.0",
"vue-router": "^4.0.14",
"xlsx": "^0.18.5"
},

View file

@ -39,10 +39,6 @@
spa: true, // spa pv
hostUrl: 'https://rumt-zh.com'
});
const shynet = document.createElement('script');
shynet.defer;
shynet.src = "https://shynet.vicicode.com/ingress/4c1dcea4-75c5-45e2-a641-25f211adbad6/script.js";
document.body.append(shynet);
}
const { currentLocale } = useLocale();

View file

@ -14,7 +14,7 @@ import '@/assets/style/global.less';
import '@/api/interceptor';
import 'tdesign-vue-next/es/style/index.css';
import Updater from "./utils/AutoUpdate.js";
import VueMatomo from 'vue-matomo';
const AutoUpdate = new Updater()
AutoUpdate.on('update',()=>{
@ -36,4 +36,11 @@ app.use(i18n);
app.use(globalComponents);
app.use(directive);
if(location.hostname == 'k5.vicicode.com' || location.hostname == 'k5.lhw711.cn' || location.hostname == 'mm.md' || location.hostname == 'k5.mm.md'){
app.use(VueMatomo, {
host: '//analytics.vicicode.com/',
siteId: 2,
})
}
app.mount('#app');

View file

@ -7530,6 +7530,11 @@ vue-i18n@^9.2.2:
"@intlify/shared" "9.11.1"
"@vue/devtools-api" "^6.5.0"
vue-matomo@^4.2.0:
version "4.2.0"
resolved "https://repo.vicicode.com/repository/npm-proxy/vue-matomo/-/vue-matomo-4.2.0.tgz#d65e369e4ead1d95ef790bef3627512cac3d25e9"
integrity sha512-m5hCw7LH3wPDcERaF4sp/ojR9sEx7Rl8TpOyH/4jjQxMF2DuY/q5pO+i9o5Dx+BXLSa9+IQ0qhAbWYRyESQXmA==
vue-router@^4.0.14:
version "4.3.0"
resolved "https://registry.npmjs.org/vue-router/-/vue-router-4.3.0.tgz"