(spaceId: SpaceId)
| 1001 | } |
| 1002 | |
| 1003 | async 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 | |
| 1010 | function isHttpUrl(value: string) { |
| 1011 | return /^https?:\/\//i.test(value.trim()) |
no test coverage detected