diff --git a/app.vue b/app.vue
index 6f242ff..850f19a 100644
--- a/app.vue
+++ b/app.vue
@@ -15,6 +15,7 @@
\ No newline at end of file
diff --git a/types/settings.ts b/types/settings.ts
deleted file mode 100644
index 28e3bfc..0000000
--- a/types/settings.ts
+++ /dev/null
@@ -1,9 +0,0 @@
-export interface ClientSettings {
- selectedThemeId?: string, // the ID of the theme, not the URL, for example "dark"
- timeFormat?: TimeFormat
-}
-
-export interface TimeFormat {
- index: number,
- format: "auto" | "12" | "24"
-}
\ No newline at end of file
diff --git a/utils/getPreferredTimeFormat.ts b/utils/getPreferredTimeFormat.ts
deleted file mode 100644
index 86b9635..0000000
--- a/utils/getPreferredTimeFormat.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-export default (): "12" | "24" => {
- const format = settingsLoad().timeFormat?.format ?? "auto"
-
- if (format == "12") {
- return "12"
- } else if (format == "24") {
- return "24"
- }
-
- return "24"
-}
\ No newline at end of file
diff --git a/utils/settingsLoad.ts b/utils/settingLoad.ts
similarity index 66%
rename from utils/settingsLoad.ts
rename to utils/settingLoad.ts
index e7fdfaf..d0f315c 100644
--- a/utils/settingsLoad.ts
+++ b/utils/settingLoad.ts
@@ -1,12 +1,10 @@
-import type { ClientSettings } from "~/types/settings"
-
-export default (): ClientSettings => {
+export default (key: string): any => {
let clientSettingsItem: string | null = localStorage.getItem("clientSettings")
if (typeof clientSettingsItem != "string") {
clientSettingsItem = "{}"
}
- let clientSettings: ClientSettings = {}
+ let clientSettings: { [key: string]: any } = {}
try {
clientSettings = JSON.parse(clientSettingsItem)
} catch {
@@ -17,5 +15,5 @@ export default (): ClientSettings => {
clientSettings = {}
}
- return clientSettings
+ return clientSettings[key]
}
\ No newline at end of file