Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

feat(config): 添加所有者配置项

Timothy Yin5d1f679e8f2f
diff --git a/.env.example b/.env.example
index 8267fa77..cbe42c3e 100644
--- a/.env.example
+++ b/.env.example
@@ -8,6 +8,7 @@ CFRAME_ADMIN_PASSWORD=
# Site configuration
NUXT_PUBLIC_APP_TITLE=ChronoFrame
NUXT_PUBLIC_APP_SLOGAN=Mems rest within the lens.
+NUXT_PUBLIC_APP_AUTHOR=
NUXT_PUBLIC_APP_AVATAR_URL=/avatar.webp
# Mapbox access token for map features
diff --git a/app/components/masonry/item/Header.vue b/app/components/masonry/item/Header.vue
index a7428ad7..dfd7a963 100644
--- a/app/components/masonry/item/Header.vue
+++ b/app/components/masonry/item/Header.vue
@@ -48,9 +48,7 @@ const totalSelectedFilters = computed(() => {
</script>
<template>
- <div
- class="w-full relative overflow-hidden"
- >
+ <div class="w-full relative overflow-hidden">
<div
class="absolute inset-0 -z-10 blur-3xl scale-110 bg-cover bg-center opacity-35"
:style="{
@@ -60,7 +58,7 @@ const totalSelectedFilters = computed(() => {
<div
class="absolute inset-0 -z-10 bg-white/50 dark:bg-neutral-900/50"
></div>
- <div class="flex flex-col items-center py-6 pb-3 gap-2">
+ <div class="flex flex-col items-center py-6 pb-0 gap-2">
<AuthState>
<template #default="{ loggedIn, clear }">
<div class="flex flex-col items-center gap-2">
@@ -235,6 +233,33 @@ const totalSelectedFilters = computed(() => {
</div>
</template>
</AuthState>
+ <div
+ class="w-full px-2 pb-1 pt-1.5 bg-neutral-200/50 dark:bg-neutral-900/50 flex justify-between items-center gap-2"
+ >
+ <div
+ v-if="$config.public.APP_AUTHOR || $config.public.APP_TITLE"
+ class="text-xs text-neutral-500/80 dark:text-neutral-500 font-medium"
+ >
+ © {{ $dayjs().format('YYYY') }} {{ $config.public.APP_AUTHOR || $config.public.APP_TITLE }}
+ </div>
+ <div
+ class="text-xs text-neutral-500/60 dark:text-neutral-500/80 font-medium inline-flex justify-center items-center gap-0.5"
+ >
+ <a
+ href="https://github.com/HoshinoSuzumi/chronoframe"
+ target="_blank"
+ rel="noopener noreferrer"
+ class="hover:underline inline-flex items-center gap-0.5"
+ >
+ <Icon
+ name="mdi:github"
+ class="inline-block text-sm -mt-[1px]"
+ mode="svg"
+ />
+ ChronoFrame ({{ $config.public.VERSION }})
+ </a>
+ </div>
+ </div>
</div>
</div>
</template>
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 67db5f16..c63d2cba 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -34,6 +34,7 @@ export default defineNuxtConfig({
},
APP_TITLE: 'ChronoFrame',
APP_SLOGAN: '',
+ APP_AUTHOR: '',
APP_AVATAR_URL: '/avatar.webp',
},
STORAGE_PROVIDER: 's3',