mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 08:37:22 +00:00
baseline session management
This commit is contained in:
1 parent
da1d221e1d
commit
8475ca7c1a
18 files changed
+1459
-222
No files matched your search
@@ -18,6 +18,8 @@ import { useJSRuntime } from '@/hooks/useJSRuntime';
|
||||
import { useKeepAlive } from '@/hooks/useKeepAlive';
|
||||
import { GitStatusIndicator } from '@/components/GitStatusIndicator';
|
||||
import { StarButton } from '@/components/StarButton';
|
||||
|
||||
import { useProjectSessionCleanup } from '@/hooks/useProjectSessionCleanup';
|
||||
import { generateSecretKey, getPublicKey, nip19 } from 'nostr-tools';
|
||||
import { bytesToHex } from 'nostr-tools/utils';
|
||||
import { buildProject } from "@/lib/build";
|
||||
@@ -61,6 +63,8 @@ export function ProjectView() {
|
||||
]
|
||||
});
|
||||
|
||||
const { cleanupProjectSessions } = useProjectSessionCleanup(project?.id || '');
|
||||
|
||||
const loadProject = useCallback(async () => {
|
||||
if (!projectId) return;
|
||||
|
||||
@@ -190,6 +194,9 @@ BASE_DOMAIN=nostrdeploy.com`);
|
||||
};
|
||||
|
||||
const handleProjectDeleted = () => {
|
||||
if (project) {
|
||||
cleanupProjectSessions();
|
||||
}
|
||||
setProject(null);
|
||||
navigate('/');
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user