File tree 4 files changed +49
-15
lines changed
4 files changed +49
-15
lines changed Original file line number Diff line number Diff line change 18
18
"@sveltejs/vite-plugin-svelte" : " ^3.0.2" ,
19
19
"@tailwindcss/typography" : " ^0.5.10" ,
20
20
"@types/eslint" : " ^8.56.5" ,
21
+ "@types/node" : " ^20.11.28" ,
21
22
"@typescript-eslint/eslint-plugin" : " ^7.2.0" ,
22
23
"@typescript-eslint/parser" : " ^7.2.0" ,
23
24
"autoprefixer" : " ^10.4.18" ,
46
47
"mode-watcher" : " ^0.3.0" ,
47
48
"moment" : " ^2.30.1" ,
48
49
"svelte-sonner" : " ^0.3.19" ,
49
- "tailwind-merge" : " ^2.2.1 " ,
50
+ "tailwind-merge" : " ^2.2.2 " ,
50
51
"tailwind-variants" : " ^0.2.1"
51
52
}
52
53
}
Original file line number Diff line number Diff line change 1
- <footer class =" mt-4 py-3 bg-muted" >
2
- <p class =" text-muted-foreground text-center" >
3
- Fusion is an <a href =" https://github.com/0x2e/fusion" target =" _blank" class =" underline" >
4
- Open Source Project</a
5
- >. Logo by <a href =" https://icons8.com" target =" _blank" class =" underline" >Icons8</a >
6
- </p >
1
+ <script lang =" ts" >
2
+ const version = import .meta .env .FUSION .version ;
3
+ </script >
4
+
5
+ <footer class =" mt-8 py-3 bg-muted text-muted-foreground" >
6
+ <div class =" flex justify-between max-w-[900px] mx-auto px-4" >
7
+ <span >
8
+ Fusion version <a href =" https://github.com/0x2e/fusion" target =" _blank" class =" underline" >
9
+ {version }</a
10
+ >.
11
+ </span >
12
+ <span >
13
+ Logo by <a href =" https://icons8.com" target =" _blank" class =" underline" >Icons8</a >
14
+ </span >
15
+ </div >
7
16
</footer >
Original file line number Diff line number Diff line change 1
1
import { sveltekit } from '@sveltejs/kit/vite' ;
2
+ import { execSync } from 'child_process' ;
2
3
import { defineConfig } from 'vite' ;
3
4
4
5
export default defineConfig ( {
5
6
plugins : [ sveltekit ( ) ] ,
7
+ define : {
8
+ 'import.meta.env.FUSION' : JSON . stringify ( {
9
+ version :
10
+ execSync ( 'git describe --tags --abbrev=0' ) . toString ( ) . trimEnd ( ) ||
11
+ execSync ( 'git rev-parse --short HEAD' ) . toString ( ) . trimEnd ( )
12
+ } )
13
+ } ,
6
14
server : {
7
15
proxy : {
8
16
'/api' : {
You can’t perform that action at this time.
0 commit comments