fix permissioning endpoint

This commit is contained in:
mbecker20
2024-04-20 17:37:22 -07:00
parent 01ea85e627
commit a7a7d0552b
16 changed files with 252 additions and 108 deletions

View File

@@ -1,3 +1,4 @@
import { ResourceComponents } from "@components/resources";
import { Types } from "@monitor/client";
import { UsableResource } from "@types";
import { type ClassValue, clsx } from "clsx";
@@ -56,3 +57,8 @@ function keep_line(line: string) {
export function version_is_none({ major, minor, patch }: Types.Version) {
return major === 0 && minor === 0 && patch === 0;
}
export function resource_name(type: UsableResource, id: string) {
const Components = ResourceComponents[type];
return Components.name(id)
}