openpencil/src/router.ts
Danila Poyarkov 76134ccc1a Collab UI polish, vue-router, extract HsvColorArea
- Move CollabPanel to right panel header (like Figma)
- /share/:roomId shows join dialog with name input before connecting
- Add vue-router with / and /share/:roomId routes
- Extract EditorView from App.vue
- Extract HsvColorArea component from ColorPicker + FillPicker
  (eliminates ~160 lines of duplicated HSV logic)
- Extract syncNodePropsToYMap in use-collab.ts
- Register Yjs update listener before opening WebSocket (fix race)
- Scrollable AppMenu without scrollbar (scrollbar-none utility)
- Overflow-x hidden on LayersPanel
- Gitignore .wrangler build artifacts
- SPA catch-all redirect for Cloudflare Pages
2026-03-01 17:15:08 +03:00

14 lines
309 B
TypeScript

import { createRouter, createWebHistory } from 'vue-router'
import EditorView from './views/EditorView.vue'
const router = createRouter({
history: createWebHistory(),
routes: [
{ path: '/', component: EditorView },
{ path: '/share/:roomId', component: EditorView }
]
})
export default router