mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui.git
synced 2026-01-09 00:43:06 +00:00
Add version to the menu
This commit is contained in:
parent
5a41d8d201
commit
f76c3bf7ee
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@codex-storage/marketplace-ui",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@codex-storage/marketplace-ui",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@codex-storage/marketplace-ui-components": "0.0.9",
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/codex-storage/codex-marketplace-ui"
|
||||
},
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@ -82,7 +82,14 @@ const Layout = () => {
|
||||
},
|
||||
] satisfies MenuItem[];
|
||||
|
||||
return <Page children={<Outlet />} items={items} Right={Right} />;
|
||||
return (
|
||||
<Page
|
||||
children={<Outlet />}
|
||||
items={items}
|
||||
Right={Right}
|
||||
version={__APP_VERSION__}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
export const Route = createFileRoute("/dashboard")({
|
||||
|
||||
2
src/vite-env.d.ts
vendored
2
src/vite-env.d.ts
vendored
@ -1,5 +1,7 @@
|
||||
/// <reference types='vite/client' />
|
||||
|
||||
declare const __APP_VERSION__: string;
|
||||
|
||||
interface ImportMetaEnv {
|
||||
VITE_CODEX_API_URL: string;
|
||||
}
|
||||
|
||||
@ -5,6 +5,9 @@ import { defineConfig } from "vite";
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [TanStackRouterVite(), react()],
|
||||
define: {
|
||||
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
|
||||
},
|
||||
build: {
|
||||
sourcemap: true,
|
||||
rollupOptions: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user