LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。
TypeScript
feat: show app version at the bottom of the settings panel
nash_su05d6e19e1c8b
diff --git a/src/components/settings/settings-view.tsx b/src/components/settings/settings-view.tsxindex a384bcef..e173261a 100644--- a/src/components/settings/settings-view.tsx+++ b/src/components/settings/settings-view.tsx@@ -408,6 +408,10 @@ export function SettingsView() {<Button onClick={handleSave} className="w-full">{saved ? t("settings.saved") : t("settings.save")}</Button>++ <div className="pt-4 text-center text-xs text-muted-foreground">+ LLM Wiki v{__APP_VERSION__}+ </div></div></div></div>diff --git a/src/vite-env.d.ts b/src/vite-env.d.tsnew file mode 100644index 00000000..70c0e5f6--- /dev/null+++ b/src/vite-env.d.ts@@ -0,0 +1,4 @@+/// <reference types="vite/client" />++/** App version injected by Vite's `define` from package.json. */+declare const __APP_VERSION__: stringdiff --git a/vite.config.ts b/vite.config.tsindex 7627da56..eea9db2f 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -1,10 +1,15 @@import path from "path"+import { readFileSync } from "fs"import { defineConfig } from "vite"import react from "@vitejs/plugin-react"import tailwindcss from "@tailwindcss/vite"const host = process.env.TAURI_DEV_HOST+// Read version from package.json at config-load time so the Settings+// UI can show the running app version without duplicating the string.+const pkgJson = JSON.parse(readFileSync(path.resolve(__dirname, "package.json"), "utf-8"))+// https://vitejs.dev/config/export default defineConfig(async () => ({plugins: [react(), tailwindcss()],@@ -13,6 +18,10 @@ export default defineConfig(async () => ({alias: { "@": path.resolve(__dirname, "./src") },},+ define: {+ __APP_VERSION__: JSON.stringify(pkgJson.version),+ },+// Vite options tailored for Tauri development and only applied in `tauri dev` or `tauri build`//// 1. prevent vite from obscuring rust errors