feat: version display

This commit is contained in:
pk5ls20 2024-11-17 03:43:09 +08:00
parent cc73104d62
commit 666da80ef5
No known key found for this signature in database
GPG Key ID: 6370ED7A169F493A
2 changed files with 10 additions and 5 deletions

View File

@ -1,7 +1,7 @@
{
"name": "napcat.webui",
"private": true,
"version": "0.0.0",
"version": "1.0.0",
"type": "module",
"scripts": {
"webui:lint": "eslint --fix src/**/*.{js,ts,vue}",

View File

@ -13,9 +13,11 @@
<t-list-item class="list-item">
<span class="item-label">版本信息:</span>
<span class="item-content">
<t-tag class="tag-item" theme="success"> WebUi: 1.0.0 </t-tag>
<t-tag class="tag-item" theme="success"> NapCat: 4.?.? </t-tag>
<t-tag class="tag-item" theme="success"> Tdesign: 1.10.3 </t-tag>
<t-tag class="tag-item" theme="success"> WebUi: {{ pkg.version }} </t-tag>
<t-tag class="tag-item" theme="success"> NapCat: {{ napCatVersion }} </t-tag>
<t-tag class="tag-item" theme="success">
TDesign: {{ pkg.dependencies['tdesign-vue-next'] }}
</t-tag>
</span>
</t-list-item>
</t-list>
@ -23,7 +25,10 @@
</div>
</template>
<script setup lang="ts"></script>
<script setup lang="ts">
import pkg from '../../package.json';
import { napCatVersion } from '../../../src/common/version';
</script>
<style scoped>
.about-us {