diff --git a/mediarepo-ui/src/app/models/TagQuery.ts b/mediarepo-ui/src/app/models/TagQuery.ts deleted file mode 100644 index 6757559..0000000 --- a/mediarepo-ui/src/app/models/TagQuery.ts +++ /dev/null @@ -1,16 +0,0 @@ -export class TagQuery { - constructor(public tag: string, public negate: boolean) { - } - - public static fromString(tag: string): TagQuery { - if (tag.startsWith("-")) { - return new TagQuery(tag.replace(/^-/g, ""), true); - } else { - return new TagQuery(tag, false); - } - } - - public getNormalizedTag(): string { - return this.negate ? "-" + this.tag : this.tag; - } -} diff --git a/mediarepo-ui/src/app/models/rust-types.ts b/mediarepo-ui/src/app/models/rust-types.ts deleted file mode 100644 index 01b054f..0000000 --- a/mediarepo-ui/src/app/models/rust-types.ts +++ /dev/null @@ -1,10 +0,0 @@ -export type RustEnum = { - [key: string]: VariantData -}; - -export function createRustEnum(variant: string, data: VariantData): T { - let enumInstance: RustEnum = {}; - enumInstance[variant] = data; - - return enumInstance as unknown as T; -}