diff --git a/.env b/.env index ff1a1d8..86dd9a4 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ VITE_API_BASE_URL=http://localhost:8080/api/v1 VITE_GOOGLE_CLIENT_ID=google_client_id +VERSION=1.0.0 diff --git a/src/globals.d.ts b/src/globals.d.ts new file mode 100644 index 0000000..a6bd98f --- /dev/null +++ b/src/globals.d.ts @@ -0,0 +1,2 @@ +declare const __BUILD_HASH__: string +declare const __BUILD_TIME__: string diff --git a/src/pages/auth/LoginPage.tsx b/src/pages/auth/LoginPage.tsx index 2ac84ef..3b1d522 100644 --- a/src/pages/auth/LoginPage.tsx +++ b/src/pages/auth/LoginPage.tsx @@ -401,11 +401,15 @@ export function LoginPage() { {/* Footer */} -
- © {new Date().getFullYear()} Yimaru Academy · All rights reserved -
+© {new Date().getFullYear()} Yimaru Academy · All rights reserved
++ v{__BUILD_HASH__} · {new Date(__BUILD_TIME__).toLocaleDateString()} +
+