MCPcopy Create free account
hub / github.com/PaperDebugger/paperdebugger / getProjectId

Function getProjectId

webapp/_webapp/src/libs/helpers.ts:56–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54}
55
56export function getProjectId() {
57 if (import.meta.env.DEV) {
58 return storage.getItem("pd.projectId") ?? "";
59 }
60 const match = window.location.pathname.match(/\/project\/([a-zA-Z0-9]+)/);
61 return match ? match[1] : "";
62}
63
64export function getProjectZipUrl() {
65 const projectId = getProjectId();

Callers 11

TextPatchesFunction · 0.90
UserMessageContainerFunction · 0.90
PaperScoreCommentCardFunction · 0.90
getDocumentIdMethod · 0.90
ChatHistoryModalFunction · 0.90
ProjectInstructionsFunction · 0.90
completeCitationKeysFunction · 0.90
useSyncFunction · 0.90
useSendMessageStreamFunction · 0.90
getProjectZipUrlFunction · 0.85

Calls 1

getItemMethod · 0.65

Tested by

no test coverage detected