mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-12-06 07:34:00 +00:00
feat(ui): redesign the dashboard as a package checkpoint
Add overview, packages with quick view, package detail tabs, a merged security page, insights, system and restyled bypasses. Old vulnerable and blocked routes redirect to the matching security tab.
This commit is contained in:
@@ -40,3 +40,9 @@ export function displayVersion(pkg: { version: string; release_version?: string
|
||||
export function withVersionPrefix(version: string): string {
|
||||
return version.startsWith('v') ? version : 'v' + version
|
||||
}
|
||||
|
||||
/** Go cache keys end in `/@v/<version>.<ext>`; the module path is what a person recognises. */
|
||||
export function modulePath(name: string): string {
|
||||
const at = name.indexOf('/@v/')
|
||||
return at === -1 ? name : name.slice(0, at)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user