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:
2026-11-23 02:29:13 +00:00
parent b88f9d2c99
commit 0a0286df41
20 changed files with 746 additions and 335 deletions
+7 -13
View File
@@ -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'),
},
],
})