mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
Install @perfect-design/ui 0.3.10 with the workbench style pack, IBM Plex faces and the inline theme boot script. The app shell uses AppHeader, AppShell and SidebarNav. Shared formatters, severity tones and icon data replace the per-view copies. A test checks that main.css scans only the library directories the app imports.
48 lines
1.2 KiB
TypeScript
48 lines
1.2 KiB
TypeScript
import { createRouter, createWebHistory } from 'vue-router'
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes: [
|
|
{
|
|
path: '/',
|
|
name: 'dashboard',
|
|
component: () => import('../components/Dashboard.vue'),
|
|
},
|
|
{
|
|
path: '/packages/:registry?',
|
|
name: 'packages',
|
|
component: () => import('../components/PackageList.vue'),
|
|
props: true,
|
|
},
|
|
{
|
|
// Separate route for package details - supports names with slashes (Go packages)
|
|
path: '/package/:registry/:name+/:version',
|
|
name: 'package-details',
|
|
component: () => import('../components/PackageDetails.vue'),
|
|
props: true,
|
|
},
|
|
{
|
|
path: '/stats',
|
|
name: 'stats',
|
|
component: () => import('../components/Stats.vue'),
|
|
},
|
|
{
|
|
path: '/vulnerable-packages',
|
|
name: 'vulnerable-packages',
|
|
component: () => import('../components/VulnerablePackages.vue'),
|
|
},
|
|
{
|
|
path: '/blocked-packages',
|
|
name: 'blocked-packages',
|
|
component: () => import('../components/VulnerablePackages.vue'),
|
|
},
|
|
{
|
|
path: '/admin/bypasses',
|
|
name: 'bypasses',
|
|
component: () => import('../components/BypassManagementPanel.vue'),
|
|
},
|
|
],
|
|
})
|
|
|
|
export default router
|