mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-10 19:57:26 +08:00
[+] Display splash and app version in frontend
This commit is contained in:
@@ -8,6 +8,17 @@
|
|||||||
import Ranking from "./pages/Ranking.svelte";
|
import Ranking from "./pages/Ranking.svelte";
|
||||||
import { USER } from "./libs/sdk";
|
import { USER } from "./libs/sdk";
|
||||||
|
|
||||||
|
console.log(`%c
|
||||||
|
┏━┓ ┳━┓━┓┏━
|
||||||
|
┣━┫┏━┓┓ ┏┏━┓┃ ┃ ┣┫
|
||||||
|
┛ ┗┗━┫┗━┻┗━┻┻━┛━┛┗━
|
||||||
|
┗ v${APP_VERSION}`, `
|
||||||
|
background: linear-gradient(-45deg, rgba(18,194,233,1) 0%, rgba(196,113,237,1) 50%, rgba(246,79,89,1) 100%);
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 2em;
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;`)
|
||||||
|
|
||||||
export let url = "";
|
export let url = "";
|
||||||
|
|
||||||
let path = window.location.pathname;
|
let path = window.location.pathname;
|
||||||
|
|||||||
1
AquaNet/src/vite-env.d.ts
vendored
1
AquaNet/src/vite-env.d.ts
vendored
@@ -1,2 +1,3 @@
|
|||||||
/// <reference types="svelte" />
|
/// <reference types="svelte" />
|
||||||
/// <reference types="vite/client" />
|
/// <reference types="vite/client" />
|
||||||
|
declare const APP_VERSION: string;
|
||||||
@@ -4,4 +4,7 @@ import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [svelte()],
|
plugins: [svelte()],
|
||||||
|
define: {
|
||||||
|
APP_VERSION: JSON.stringify(process.env.npm_package_version),
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user