Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/staged/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="manifest" href="/manifest.json" />
<meta name="theme-color" content="#1e1e2e" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
Expand Down
3 changes: 2 additions & 1 deletion apps/staged/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"type": "module",
"scripts": {
"dev": "vite",

"build": "vite build",
"preview": "vite preview",
"check": "svelte-check --tsconfig ./tsconfig.app.json --fail-on-warnings && tsc -p tsconfig.node.json",
Expand All @@ -23,6 +22,7 @@
"@tauri-apps/cli": "^2.10.0",
"@tsconfig/svelte": "^5.0.6",
"@types/node": "^24.10.1",
"fake-indexeddb": "^6.2.5",
"prettier": "^3.7.4",
"prettier-plugin-svelte": "^3.4.1",
"svelte": "^5.46.4",
Expand All @@ -41,6 +41,7 @@
"@tauri-apps/plugin-store": "^2.4.2",
"@tauri-apps/plugin-updater": "^2.10.0",
"ansi-to-html": "^0.7.2",
"idb-keyval": "^6.2.2",
"lucide-svelte": "^0.577.0",
"marked": "^17.0.1",
"sanitize-html": "^2.17.0",
Expand Down
15 changes: 15 additions & 0 deletions apps/staged/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "Staged",
"short_name": "Staged",
"start_url": "/",
"display": "standalone",
"background_color": "#1e1e2e",
"theme_color": "#1e1e2e",
"icons": [
{
"src": "/vite.svg",
"sizes": "any",
"type": "image/svg+xml"
}
]
}
8 changes: 8 additions & 0 deletions apps/staged/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
import { projectStateStore } from './lib/stores/projectState.svelte';
import { initBloxEnv } from './lib/stores/bloxEnv.svelte';
import { listenForSessionStatus } from './lib/listeners/sessionStatusListener';
import { listenForCacheInvalidation } from './lib/listeners/cacheInvalidationListener';
import { listenForPageLifecycle } from './lib/listeners/pageLifecycleListener';
import { darkMode } from './lib/stores/isDark.svelte';
import * as prPollingService from './lib/services/prPollingService';
import { projectsList } from './lib/features/projects/projectsSidebarState.svelte';
Expand All @@ -57,6 +59,8 @@
let unlistenZoomOut: UnlistenFn | undefined;
let unlistenZoomReset: UnlistenFn | undefined;
let unlistenSessionStatus: UnlistenFn | undefined;
let unlistenCacheInvalidation: UnlistenFn | undefined;
let unlistenPageLifecycle: (() => void) | undefined;
let unregisterShortcuts: (() => void) | null = null;
let stopUpdaterLoop: (() => void) | null = null;
let storeIncompat = $state<StoreIncompatibility | null>(null);
Expand Down Expand Up @@ -232,6 +236,8 @@
// Global session-status listener — must live at App level so it works
// regardless of which view the user is on. See sessionStatusListener.ts.
unlistenSessionStatus = listenForSessionStatus();
unlistenCacheInvalidation = listenForCacheInvalidation();
unlistenPageLifecycle = listenForPageLifecycle();

try {
await initPreferences();
Expand Down Expand Up @@ -400,6 +406,8 @@
unlistenZoomOut?.();
unlistenZoomReset?.();
unlistenSessionStatus?.();
unlistenCacheInvalidation?.();
unlistenPageLifecycle?.();
stopUpdaterLoop?.();
});

Expand Down
Loading