Skip to content

Commit

Permalink
chore: update vuejs to 3.5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ikxin committed Sep 5, 2024
1 parent 54aea04 commit 579c04c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 24 deletions.
Binary file modified bun.lockb
Binary file not shown.
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
<title>KMS Tools - One-stop kms toolbox</title>
<title>KMS Tools - An all-in-one KMS toolbox</title>
<script
defer
src="https://analytics.ikxin.com/script.js"
data-website-id="6c719cb2-4a72-46e6-a4fa-2ee357a38467"
async
src="https://www.googletagmanager.com/gtag/js?id=G-YSZR1ZBXFD"
></script>
<script>
window.dataLayer = window.dataLayer || []
function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())
gtag('config', 'G-YSZR1ZBXFD')
</script>
</head>
<body>
<div id="app"></div>
Expand Down
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
"migrate": "drizzle-kit migrate"
},
"dependencies": {
"@arco-design/web-vue": "^2.56.0",
"@arco-design/web-vue": "^2.56.1",
"@elysiajs/cors": "^1.1.0",
"@elysiajs/cron": "^1.1.0",
"@elysiajs/static": "^1.1.0",
"@iconify-json/flag": "^1.1.54",
"@vueuse/core": "^11.0.1",
"@vueuse/integrations": "^11.0.1",
"axios": "^1.7.4",
"dayjs": "^1.11.12",
"@iconify-json/flag": "^1.2.0",
"@vueuse/core": "^11.0.3",
"@vueuse/integrations": "^11.0.3",
"axios": "^1.7.7",
"dayjs": "^1.11.13",
"echarts": "^5.5.1",
"elysia": "^1.1.7",
"elysia": "^1.1.11",
"less": "^4.2.0",
"markdown-it-shiki": "^0.9.0",
"mysql2": "^3.11.0",
"pinia": "^2.2.2",
"unocss": "^0.62.2",
"vue": "^3.4.38",
"unocss": "^0.62.3",
"vue": "^3.5.2",
"vue-i18n": "^9.14.0",
"vue-router": "^4.4.3"
},
Expand All @@ -52,9 +52,9 @@
"unplugin-vue-components": "^0.27.4",
"unplugin-vue-markdown": "^0.26.2",
"unplugin-vue-router": "^0.10.7",
"vite": "^5.4.1",
"vite": "^5.4.3",
"vite-plugin-vue-devtools": "^7.3.8",
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^2.0.29"
"vue-tsc": "^2.1.6"
}
}
19 changes: 10 additions & 9 deletions src/components/common-activate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,27 @@
import { useMonitorStore } from '@/store/monitor'
import { rateColor, delayColor } from '@/utils/formatter'
const props = defineProps<{
const { editionData, title, generateScript } = defineProps<{
editionData: EditionItem[]
title: string
generateScript: (formData: ActivateFormData) => string
}>()
const { t } = useI18n()
const { title, editionData } = toRefs(props)
const monitorStore = useMonitorStore()
const { monitors } = monitorStore
const formData = ref<ActivateFormData>({
edition: editionData.value[0].edition[0][1],
edition: editionData[0].edition[0][1],
arch: 'x64',
host: monitors[0].host,
license: '',
})
watchEffect(() => {
for (const item of editionData.value) {
for (const item of editionData) {
for (const [license, name] of item.edition) {
if (name === formData.value.edition) {
formData.value.license = license
Expand All @@ -33,12 +31,15 @@ watchEffect(() => {
}
})
watch(editionData, () => {
formData.value.edition = editionData.value[0].edition[0][1]
})
watch(
() => editionData,
() => {
formData.value.edition = editionData[0].edition[0][1]
},
)
const content = computed(() => {
return props.generateScript(formData.value)
return generateScript(formData.value)
})
const file = computed(() => {
Expand Down

0 comments on commit 579c04c

Please sign in to comment.