mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-26 06:37:07 +00:00
feat(frontend): add the perfect-design theme, shell and helpers
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.
This commit is contained in:
@@ -1,10 +1,4 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import Dashboard from '../components/Dashboard.vue'
|
||||
import PackageList from '../components/PackageList.vue'
|
||||
import PackageDetails from '../components/PackageDetails.vue'
|
||||
import Stats from '../components/Stats.vue'
|
||||
import VulnerablePackages from '../components/VulnerablePackages.vue'
|
||||
import BypassManagementPanel from '../components/BypassManagementPanel.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
@@ -12,40 +6,40 @@ const router = createRouter({
|
||||
{
|
||||
path: '/',
|
||||
name: 'dashboard',
|
||||
component: Dashboard,
|
||||
component: () => import('../components/Dashboard.vue'),
|
||||
},
|
||||
{
|
||||
path: '/packages/:registry?',
|
||||
name: 'packages',
|
||||
component: PackageList,
|
||||
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: PackageDetails,
|
||||
component: () => import('../components/PackageDetails.vue'),
|
||||
props: true,
|
||||
},
|
||||
{
|
||||
path: '/stats',
|
||||
name: 'stats',
|
||||
component: Stats,
|
||||
component: () => import('../components/Stats.vue'),
|
||||
},
|
||||
{
|
||||
path: '/vulnerable-packages',
|
||||
name: 'vulnerable-packages',
|
||||
component: VulnerablePackages,
|
||||
component: () => import('../components/VulnerablePackages.vue'),
|
||||
},
|
||||
{
|
||||
path: '/blocked-packages',
|
||||
name: 'blocked-packages',
|
||||
component: VulnerablePackages,
|
||||
component: () => import('../components/VulnerablePackages.vue'),
|
||||
},
|
||||
{
|
||||
path: '/admin/bypasses',
|
||||
name: 'bypasses',
|
||||
component: BypassManagementPanel,
|
||||
component: () => import('../components/BypassManagementPanel.vue'),
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user