History

fix build

Rhys Sullivan committed 8 months ago

Commit bcdff4d1 parent 7b9d40e4 files · +51 −6Browse files

Showing the changes to apps/web/src (1 of 4 files). Show all

Unified · Split

apps/web/src/components/shell.tsx+19−3
@@ -15,8 +15,16 @@ const statusColor: Record<string, string> = { · 14 unmodified lines
1515 error: "bg-destructive",
1616 };
1717
18−// ── AppShell ─────────────────────────────────────────────────────────────
18+type AppMetaEnv = {
19+ readonly VITE_APP_VERSION: string;
20+ readonly VITE_GITHUB_URL: string;
21+};
1922
23+const { VITE_APP_VERSION, VITE_GITHUB_URL } = (import.meta as ImportMeta & {
24+ readonly env: AppMetaEnv;
25+}).env;
26+
27+// ── AppShell ─────────────────────────────────────────────────────────────
2028 export function AppShell() {
2129 const sources = useSources();
2230 const matchRoute = useMatchRoute();
@@ -75,8 +83,16 @@ export function AppShell() { · 52 unmodified lines
7583
7684 {/* Footer */}
7785 <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>
8096 </div>
8197 </div>
8298 </aside>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t