Skip to content

Commit

Permalink
feat: kms 检测表单
Browse files Browse the repository at this point in the history
  • Loading branch information
ikxin committed Jun 29, 2023
1 parent 449e7a0 commit b28c297
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 4 deletions.
17 changes: 17 additions & 0 deletions packages/kms-tools/src/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,22 @@
}
}
}
},
"check": {
"title": "KMS 服务器状态检测",
"form": {
"host": {
"label": "KMS 主机"
},
"port": {
"label": "KMS 端口"
},
"app": {
"label": "激活产品"
},
"protocol": {
"label": "激活协议"
}
}
}
}
2 changes: 1 addition & 1 deletion packages/kms-tools/src/typings/typed-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ declare module 'vue-router/auto/routes' {
'/activate/office': RouteRecordInfo<'/activate/office', '/activate/office', Record<never, never>, Record<never, never>>,
'/activate/windows': RouteRecordInfo<'/activate/windows', '/activate/windows', Record<never, never>, Record<never, never>>,
'/activate/windows-server': RouteRecordInfo<'/activate/windows-server', '/activate/windows-server', Record<never, never>, Record<never, never>>,
'/check/': RouteRecordInfo<'/check/', '/check', Record<never, never>, Record<never, never>>,
'/check': RouteRecordInfo<'/check', '/check', Record<never, never>, Record<never, never>>,
'/download/': RouteRecordInfo<'/download/', '/download', Record<never, never>, Record<never, never>>,
'/guide/': RouteRecordInfo<'/guide/', '/guide', Record<never, never>, Record<never, never>>,
'/monitor/': RouteRecordInfo<'/monitor/', '/monitor', Record<never, never>, Record<never, never>>,
Expand Down
29 changes: 29 additions & 0 deletions packages/kms-tools/src/views/check.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<script setup lang="ts">
const { t } = useI18n()
const formData = reactive({
host: '',
port: '',
app: '',
protocol: ''
})
</script>

<template>
<ACard :title="t('check.title')" class="h-full">
<AForm :model="formData">
<AFormItem :label="t('check.form.host.label')" field="host">
<AInput v-model="formData.host"></AInput>
</AFormItem>
<AFormItem :label="t('check.form.port.label')" field="port">
<AInput v-model="formData.port"></AInput>
</AFormItem>
<AFormItem :label="t('check.form.app.label')" field="app">
<AInput v-model="formData.app"></AInput>
</AFormItem>
<AFormItem :label="t('check.form.protocol.label')" field="protocol">
<AInput v-model="formData.app"></AInput>
</AFormItem>
</AForm>
</ACard>
</template>
3 changes: 0 additions & 3 deletions packages/kms-tools/src/views/check/index.vue

This file was deleted.

0 comments on commit b28c297

Please sign in to comment.