@@ -154,6 +154,7 @@
} from "@/components/ui/dropdown-menu";
import { Shortcut } from "~/components/ui/shortcut";
import { useDialog } from "~/components/ui/dialog-provider";
+ import DOMPurify from "dompurify";
const { t, locale } = useI18n();
const username = computed(() => authCtx.user?.name || "User");
diff --git a/frontend/lib/api/types/data-contracts.ts b/frontend/lib/api/types/data-contracts.ts
index b4a3d835..e06fdd85 100644
--- a/frontend/lib/api/types/data-contracts.ts
+++ b/frontend/lib/api/types/data-contracts.ts
@@ -11,6 +11,17 @@
* ---------------------------------------------------------------
*/
+export enum MaintenanceFilterStatus {
+ MaintenanceFilterStatusScheduled = "scheduled",
+ MaintenanceFilterStatusCompleted = "completed",
+ MaintenanceFilterStatusBoth = "both",
+}
+
+export enum ItemType {
+ ItemTypeLocation = "location",
+ ItemTypeItem = "item",
+}
+
export interface CurrenciesCurrency {
code: string;
local: string;
@@ -152,11 +163,6 @@ export interface ItemSummary {
updatedAt: Date | string;
}
-export enum ItemType {
- ItemTypeLocation = "location",
- ItemTypeItem = "item",
-}
-
export interface ItemUpdate {
archived: boolean;
assetId: string;
@@ -307,12 +313,6 @@ export interface MaintenanceEntryWithDetails {
scheduledDate: Date | string;
}
-export enum MaintenanceFilterStatus {
- MaintenanceFilterStatusScheduled = "scheduled",
- MaintenanceFilterStatusCompleted = "completed",
- MaintenanceFilterStatusBoth = "both",
-}
-
export interface NotifierCreate {
isActive: boolean;
/**
diff --git a/frontend/locales/en.json b/frontend/locales/en.json
index 45cc1459..1c19e868 100644
--- a/frontend/locales/en.json
+++ b/frontend/locales/en.json
@@ -128,8 +128,8 @@
"email": "Email",
"follow_dev": "Follow the Developer",
"footer": {
- "api_link": "`<`a href=\"https://homebox.software/en/api/\" target=\"_blank\"`>`API`<`/a`>`",
- "version_link": "`<`a href=\"https://github.com/sysadminsmedia/homebox/releases/tag/{ version }\" target=\"_blank\"`>` Version: { version } Build: { build } `<`/a`>`"
+ "api_link": "'