MCPcopy Create free account
hub / github.com/massCodeIO/massCode / openSpace

Function openSpace

src/renderer/composables/useCommandPalette.ts:1003–1008  ·  view source on GitHub ↗
(spaceId: SpaceId)

Source from the content-addressed store, hash-verified

1001}
1002
1003async function openSpace(spaceId: SpaceId) {
1004 const space = getSpaceDefinitions().find(item => item.id === spaceId)
1005 if (space) {
1006 await router.push(space.to)
1007 }
1008}
1009
1010function isHttpUrl(value: string) {
1011 return /^https?:\/\//i.test(value.trim())

Callers 2

openRecentFunction · 0.85
openResultFunction · 0.85

Calls 1

getSpaceDefinitionsFunction · 0.90

Tested by

no test coverage detected