(path: string)
| 70 | const R = (path: string): string => `route:${path}`; |
| 71 | |
| 72 | function screen(path: string): WireScreen { |
| 73 | return { |
| 74 | id: R(path), |
| 75 | path, |
| 76 | file: `src/app${path === '/' ? '/index' : path}.tsx`, |
| 77 | line: 1, |
| 78 | component: ref(path === '/' ? 'Index' : path.replace(/[^a-z0-9]/gi, '')), |
| 79 | incoming: 0, |
| 80 | outgoing: 0, |
| 81 | }; |
| 82 | } |
| 83 | |
| 84 | function origin(name: string, sharedBy?: number): WireScreenOrigin { |
| 85 | return { id: `function:${name}`, node: ref(name), outgoing: 1, ...(sharedBy ? { sharedBy } : {}) }; |
no test coverage detected