reboot alterflixhub
This commit is contained in:
commit
1e84023a44
188 files changed
+31629
No files matched your search
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* โครงข้อมูลที่แก้ได้จากหน้า admin — เก็บเป็น JSON ใต้ data/content/
|
||||
* หน้าเว็บอ่านค่าชุดนี้ผ่าน loader ของ root (ฝั่ง server เท่านั้น)
|
||||
*/
|
||||
|
||||
import type { Cinema } from "@/lib/cinemas";
|
||||
import type { Locale } from "@/lib/i18n/messages";
|
||||
|
||||
export type AboutSection = {
|
||||
heading: string;
|
||||
body: string;
|
||||
};
|
||||
|
||||
/** เนื้อหาหน้า "เกี่ยวกับเรา" หนึ่งภาษา */
|
||||
export type AboutContent = {
|
||||
title: string;
|
||||
lead: string;
|
||||
sections: AboutSection[];
|
||||
contactHeading: string;
|
||||
contactNote: string;
|
||||
};
|
||||
|
||||
export type FooterItem = {
|
||||
id: string;
|
||||
/** ชื่อไอคอน Tabler เช่น IconBrandFacebook */
|
||||
icon_name: string;
|
||||
label: string;
|
||||
href: string;
|
||||
};
|
||||
|
||||
export type TermEntry = {
|
||||
/** dot path เข้าโครงข้อความ เช่น "hero.subtitle" หรือ "categories.อาร์ตเฮาส์" */
|
||||
key: string;
|
||||
/** ค่าตามรหัสภาษา เช่น { th: "...", en: "..." } */
|
||||
values: Record<string, string>;
|
||||
};
|
||||
|
||||
export type LocaleEntry = {
|
||||
code: string;
|
||||
label: string;
|
||||
};
|
||||
|
||||
export type SiteContent = {
|
||||
locales: LocaleEntry[];
|
||||
terms: TermEntry[];
|
||||
footer: FooterItem[];
|
||||
};
|
||||
|
||||
export type ContentStore = {
|
||||
cinemas: Cinema[];
|
||||
site: SiteContent;
|
||||
/** เนื้อหาหน้า "เกี่ยวกับเรา" แยกตามภาษา — แก้ได้จากหลังบ้าน */
|
||||
about: Record<Locale, AboutContent>;
|
||||
};
|
||||
Reference in new issue
Block a user