Showing the changes to apps/web/src (1 of 4 files). Show all
Unified · Split
| @@ -15,8 +15,16 @@ const statusColor: Record<string, string> = { · 14 unmodified lines | ||
| 15 | 15 | error: "bg-destructive", |
| 16 | 16 | }; |
| 17 | 17 | |
| 18 | −// ── AppShell ───────────────────────────────────────────────────────────── | |
| 18 | +type AppMetaEnv = { | |
| 19 | + readonly VITE_APP_VERSION: string; | |
| 20 | + readonly VITE_GITHUB_URL: string; | |
| 21 | +}; | |
| 19 | 22 | |
| 23 | +const { VITE_APP_VERSION, VITE_GITHUB_URL } = (import.meta as ImportMeta & { | |
| 24 | + readonly env: AppMetaEnv; | |
| 25 | +}).env; | |
| 26 | + | |
| 27 | +// ── AppShell ───────────────────────────────────────────────────────────── | |
| 20 | 28 | export function AppShell() { |
| 21 | 29 | const sources = useSources(); |
| 22 | 30 | const matchRoute = useMatchRoute(); |
| @@ -75,8 +83,16 @@ export function AppShell() { · 52 unmodified lines | ||
| 75 | 83 | |
| 76 | 84 | {/* Footer */} |
| 77 | 85 | <div className="shrink-0 border-t border-sidebar-border px-4 py-2.5"> |
| 78 | − <div className="text-[10px] text-muted-foreground/30"> | |
| 79 | − executor v3 | |
| 86 | + <div className="flex flex-col items-start gap-1 text-[10px] leading-none"> | |
| 87 | + <span className="text-muted-foreground/35">v{VITE_APP_VERSION}</span> | |
| 88 | + <a | |
| 89 | + href={VITE_GITHUB_URL} | |
| 90 | + target="_blank" | |
| 91 | + rel="noreferrer" | |
| 92 | + className="text-muted-foreground/50 transition-colors hover:text-foreground" | |
| 93 | + > | |
| 94 | + Star on GitHub | |
| 95 | + </a> | |
| 80 | 96 | </div> |
| 81 | 97 | </div> |
| 82 | 98 | </aside> |