From 7681c53bde3be85af9c7f4ed67b34d14970f1740 Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Mon, 1 Aug 2022 10:18:18 +0800 Subject: [PATCH] [frontend-next] Added vite-plugin-build-id --- frontend-next/components.d.ts | 1 - frontend-next/package.json | 5 ++- .../src/components/CodeEditor/CodeEditor.vue | 2 +- frontend-next/src/views/domain/DomainEdit.vue | 36 ++++++++++------ frontend-next/src/views/other/About.vue | 4 +- frontend-next/version.json | 1 + frontend-next/vite.config.ts | 6 ++- frontend-next/yarn.lock | 43 +++++++++++++------ 8 files changed, 65 insertions(+), 33 deletions(-) create mode 100644 frontend-next/version.json diff --git a/frontend-next/components.d.ts b/frontend-next/components.d.ts index 9959a464..af71a6ea 100644 --- a/frontend-next/components.d.ts +++ b/frontend-next/components.d.ts @@ -7,7 +7,6 @@ export {} declare module '@vue/runtime-core' { export interface GlobalComponents { - AAvatar: typeof import('ant-design-vue/es')['Avatar'] ABreadcrumb: typeof import('ant-design-vue/es')['Breadcrumb'] ABreadcrumbItem: typeof import('ant-design-vue/es')['BreadcrumbItem'] AButton: typeof import('ant-design-vue/es')['Button'] diff --git a/frontend-next/package.json b/frontend-next/package.json index f710c2d8..244e064d 100644 --- a/frontend-next/package.json +++ b/frontend-next/package.json @@ -1,11 +1,11 @@ { "name": "nginx-ui-frontend-next", "private": true, - "version": "0.0.0", + "version": "1.5.0", "type": "commonjs", "scripts": { "dev": "vite", - "build": "vue-tsc --noEmit && vite build", + "build": "vite build", "preview": "vite preview", "gettext:extract": "vue-gettext-extract", "gettext:compile": "vue-gettext-compile" @@ -21,6 +21,7 @@ "pinia": "^2.0.17", "pinia-plugin-persistedstate": "^1.6.3", "reconnecting-websocket": "^4.4.0", + "vite-plugin-build-id": "^0.1.1", "vue": "^3.2.37", "vue-chartjs": "^4.1.1", "vue-router": "4", diff --git a/frontend-next/src/components/CodeEditor/CodeEditor.vue b/frontend-next/src/components/CodeEditor/CodeEditor.vue index fa14b9c8..b7823f39 100644 --- a/frontend-next/src/components/CodeEditor/CodeEditor.vue +++ b/frontend-next/src/components/CodeEditor/CodeEditor.vue @@ -11,7 +11,7 @@ const {content} = defineProps(['content']) v-model:value="content" lang="nginx" theme="monokai" - style="height: 300px"/> + style="min-height: 100vh"/>