diff --git a/assets/index.css b/assets/index.css index f8c7739..23db327 100644 --- a/assets/index.css +++ b/assets/index.css @@ -8,7 +8,7 @@ html, body { html, body, #app, .v-application { overflow: auto !important; - font-family: "Comfortaa", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", sans-serif; + font-family: "Comfortaa", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", sans-serif !important; font-optical-sizing: auto; font-weight: 500; font-style: normal; diff --git a/pages/gallery/index.vue b/pages/gallery/index.vue index 8191d8e..cdde3f8 100644 --- a/pages/gallery/index.vue +++ b/pages/gallery/index.vue @@ -2,17 +2,20 @@

{{ t("navGallery") }}

- {{ t("navGalleryCaption") }} +

{{ t("navGalleryCaption") }}

+ + Upload new +
+
-
- -
+
+
diff --git a/pages/gallery/new.vue b/pages/gallery/new.vue new file mode 100644 index 0000000..acbb9f2 --- /dev/null +++ b/pages/gallery/new.vue @@ -0,0 +1,165 @@ + + + diff --git a/utils/request.ts b/utils/request.ts index 1936743..5e2ca10 100644 --- a/utils/request.ts +++ b/utils/request.ts @@ -1,8 +1,12 @@ -export async function solarFetch(input: string | URL | globalThis.Request, init?: RequestInit) { +export async function solarFetch(input: string, init?: RequestInit) { const auth = useUserinfo() const config = useRuntimeConfig() - return await fetch(`${config.public.solarNetworkApi}${input}`, { + if (!input.startsWith("http")) { + input = `${config.public.solarNetworkApi}${input}` + } + + return await fetch(input, { ...init, headers: { ...init?.headers,