diff --git a/src/api/site.ts b/src/api/site.ts index 829f51d..cc05753 100755 --- a/src/api/site.ts +++ b/src/api/site.ts @@ -1,6 +1,19 @@ import { CustomProps, ViewerGroup } from "./explorer.ts"; import { User } from "./user.ts"; +export interface CustomNavItem { + title: string; + icon?: string; + url: string; + target?: string; +} + +export interface CustomHTML { + headlessFooter?: string; + headlessBottom?: string; + sidebarBottom?: string; +} + export enum CaptchaType { NORMAL = "normal", RECAPTCHA = "recaptcha", @@ -46,21 +59,11 @@ export interface SiteConfig { custom_nav_items?: CustomNavItem[]; custom_html?: CustomHTML; thumb_exts?: string[]; + announcement?: string; + announcement_enabled?: boolean; } export interface CaptchaResponse { ticket: string; image: string; } - -export interface CustomNavItem { - name: string; - url: string; - icon: string; -} - -export interface CustomHTML { - headless_footer?: string; - headless_bottom?: string; - sidebar_bottom?: string; -}