mirror of https://github.com/hykilpikonna/AquaDX
[+] Display splash and app version in frontend
parent
c821626dc1
commit
e842a37654
|
@ -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,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),
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue