Files
afilmory/site.config.ts
Innei dafc621033 feat(config): update site configuration and enhance author handling
- Changed default site name and URL to reflect new branding.
- Updated author information in the site configuration, including name, URL, and avatar.
- Removed author-related settings from the configuration schema to streamline the setup.
- Enhanced the SiteSettingService to resolve author details dynamically based on tenant context.
- Added a new endpoint to retrieve the status of photo synchronization, improving user feedback on sync operations.

Signed-off-by: Innei <tukon479@gmail.com>
2025-11-15 01:08:31 +08:00

60 lines
1.2 KiB
TypeScript

import { merge } from 'es-toolkit/compat'
import userConfig from './config.json'
export interface SiteConfig {
name: string
title: string
description: string
url: string
accentColor: string
author: Author
social?: Social
feed?: Feed
map?: MapConfig
mapStyle?: string
mapProjection?: 'globe' | 'mercator'
}
/**
* Map configuration - can be either:
* - A string for a single provider: 'maplibre'
* - An array for multiple providers in priority order: ['maplibre']
*/
type MapConfig = 'maplibre'[]
interface Feed {
folo?: {
challenge?: {
feedId: string
userId: string
}
}
}
interface Author {
name: string
url: string
avatar?: string
}
interface Social {
twitter?: string
github?: string
rss?: boolean
}
const defaultConfig: SiteConfig = {
name: 'New Afilmory',
title: 'New Afilmory',
description: 'A modern photo gallery website.',
url: 'https://afilmory.com',
accentColor: '#007bff',
author: {
name: 'Afilmory',
url: 'https://afilmory.art/',
avatar: 'https://cdn.jsdelivr.net/gh/Afilmory/Afilmory@main/logo.jpg',
},
}
export const siteConfig: SiteConfig = merge(defaultConfig, userConfig) as any
export default siteConfig