0.3.1 版本号同步

This commit is contained in:
hi2hi 2024-12-03 17:18:10 +00:00
parent e8a2409fc5
commit 4a9fcd9906
5 changed files with 44 additions and 8 deletions

5
.env
View File

@ -1 +1,4 @@
VITE_VERSION=0.3.0
# WS_HOST=
# API_HOST=
# NEZHA_HOST=
# NEZHA_HOST_REPACE_PATH=

21
LICENSE Normal file
View File

@ -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.

View File

@ -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"
}
}

View File

@ -10,10 +10,12 @@
>哪吒监控</a>
</span>
<span class="text">
Theme By <span
Theme By <a
ref="nofollow"
class="nazhua"
title="公开版本还在搓Coming Soon ~"
>Nazhua</span>
href="https://github.com/hi2shark/nazhua"
target="_blank"
>Nazhua</a>
{{ version }}
</span>
</div>
@ -25,7 +27,7 @@
* Footer
*/
const version = import.meta.env.VITE_VERSION;
const version = import.meta.env.VITE_APP_VERSION;
</script>
<style lang="scss" scoped>
@ -42,11 +44,16 @@ const version = import.meta.env.VITE_VERSION;
.nazhua {
color: #fa0;
cursor: default;
&:hover {
color: #fff;
}
}
a {
color: #fff;
&:hover {
color: #08f;
}
}
}
</style>

View File

@ -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({