diff --git a/.env b/.env
index 6d39e38..ea70876 100644
--- a/.env
+++ b/.env
@@ -1 +1,4 @@
-VITE_VERSION=0.3.0
+# WS_HOST=
+# API_HOST=
+# NEZHA_HOST=
+# NEZHA_HOST_REPACE_PATH=
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..ea9a067
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2024 hi2hi
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/package.json b/package.json
index b21a7c8..693d7fd 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,6 @@
{
"name": "nazhua",
- "private": true,
- "version": "0.3.0",
+ "version": "0.3.1",
"type": "module",
"scripts": {
"dev": "vite",
@@ -34,5 +33,9 @@
"vite": "^5.4.10",
"vite-plugin-babel": "^1.2.0",
"vite-plugin-eslint": "^1.8.1"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/hi2shark/nazhua"
}
}
diff --git a/src/layout/components/footer.vue b/src/layout/components/footer.vue
index 0b877ea..bde3134 100644
--- a/src/layout/components/footer.vue
+++ b/src/layout/components/footer.vue
@@ -10,10 +10,12 @@
>哪吒监控
- Theme By Nazhua
+ href="https://github.com/hi2shark/nazhua"
+ target="_blank"
+ >Nazhua
{{ version }}
@@ -25,7 +27,7 @@
* Footer
*/
-const version = import.meta.env.VITE_VERSION;
+const version = import.meta.env.VITE_APP_VERSION;
diff --git a/vite.config.js b/vite.config.js
index 116bb10..ab260f2 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -4,10 +4,12 @@ import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import babel from 'vite-plugin-babel';
import eslintPlugin from 'vite-plugin-eslint';
+import packageJson from './package';
dotenv.config({
path: '.env.development.local',
});
+process.env.VITE_APP_VERSION = packageJson.version;
// https://vite.dev/config/
export default defineConfig({