File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export default [
99 files : [ '**/*.{js,jsx}' ] ,
1010 languageOptions : {
1111 ecmaVersion : 2024 ,
12- globals : globals . browser ,
12+ globals : { ... globals . browser , __APP_VERSION__ : 'readonly' } ,
1313 parserOptions : {
1414 ecmaVersion : 'latest' ,
1515 ecmaFeatures : { jsx : true } ,
Original file line number Diff line number Diff line change 11{
22 "name" : " framesight" ,
33 "private" : true ,
4- "version" : " 1.0 .0" ,
4+ "version" : " 1.1 .0" ,
55 "type" : " module" ,
66 "scripts" : {
77 "dev" : " vite" ,
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export default function Footer() {
1717 < span className = "text-text-dim" > Depth Anything V2</ span >
1818 { ' ' } ·{ ' ' }
1919 Apache 2.0
20+ { ' ' } ·{ ' ' }
21+ < span className = "font-mono" > v{ __APP_VERSION__ } </ span >
2022 </ p >
2123 </ footer >
2224 ) ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default function Header() {
2828 GitHub
2929 </ a >
3030 < span className = "text-border" > |</ span >
31- < span className = "text-xs text-text-muted font-mono" > WebGPU + WASM </ span >
31+ < span className = "text-xs text-text-muted font-mono" > v { __APP_VERSION__ } </ span >
3232 </ div >
3333 </ motion . header >
3434 ) ;
Original file line number Diff line number Diff line change 11import { defineConfig } from 'vite'
22import react from '@vitejs/plugin-react'
33import tailwindcss from '@tailwindcss/vite'
4+ import { readFileSync } from 'fs'
5+
6+ const pkg = JSON . parse ( readFileSync ( './package.json' , 'utf-8' ) )
47
58export default defineConfig ( {
69 plugins : [
@@ -11,6 +14,9 @@ export default defineConfig({
1114 } ) ,
1215 tailwindcss ( ) ,
1316 ] ,
17+ define : {
18+ __APP_VERSION__ : JSON . stringify ( pkg . version ) ,
19+ } ,
1420 optimizeDeps : {
1521 exclude : [ 'onnxruntime-web' ] ,
1622 } ,
You can’t perform that action at this time.
0 commit comments