fix: about page

This commit is contained in:
Kieran 2023-11-20 21:51:23 +00:00
parent 7b4e6db306
commit aaa56738b5
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
4 changed files with 11 additions and 5 deletions

View File

@ -70,4 +70,4 @@ declare const SINGLE_RELAY: string | undefined;
/** /**
* Build git hash * Build git hash
*/ */
declare const GIT_VERSION: string; declare const __SNORT_VERSION__: string;

View File

@ -1,6 +1,6 @@
{ {
"name": "@snort/app", "name": "@snort/app",
"version": "0.1.10", "version": "0.1.22",
"dependencies": { "dependencies": {
"@cashu/cashu-ts": "^0.6.1", "@cashu/cashu-ts": "^0.6.1",
"@lightninglabs/lnc-web": "^0.2.3-alpha", "@lightninglabs/lnc-web": "^0.2.3-alpha",

View File

@ -17,12 +17,12 @@ export function AboutPage() {
}, []); }, []);
return ( return (
<> <div className="main-content p">
<h1> <h1>
<FormattedMessage defaultMessage="About" id="g5pX+a" /> <FormattedMessage defaultMessage="About" id="g5pX+a" />
</h1> </h1>
Version: <b>{GIT_VERSION}</b> Version: <b>{__SNORT_VERSION__}</b>
<Markdown content={changelog} tags={[]} /> <Markdown content={changelog} tags={[]} />
</> </div>
); );
} }

View File

@ -2,6 +2,7 @@ import react from "@vitejs/plugin-react";
import { VitePWA } from "vite-plugin-pwa"; import { VitePWA } from "vite-plugin-pwa";
import { visualizer } from "rollup-plugin-visualizer"; import { visualizer } from "rollup-plugin-visualizer";
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import { vitePluginVersionMark } from "vite-plugin-version-mark";
import appConfig from "config"; import appConfig from "config";
@ -22,6 +23,11 @@ export default defineConfig({
gzipSize: true, gzipSize: true,
filename: "dist/stats.html", filename: "dist/stats.html",
}), }),
vitePluginVersionMark({
name: "snort",
ifGitSHA: true,
command: "git describe --always --tags",
}),
], ],
assetsInclude: ["**/*.md", "**/*.wasm"], assetsInclude: ["**/*.md", "**/*.wasm"],
build: { build: {