chore: replace footer columns with a single copyright line
- footer is now '© hobbypj 2026' centred on one row; brand/note/contact columns removed - site-level contact_email retired end to end (schema, payload, server validation, admin field, footer link logic); project-level contact_email untouched - content-only change: service worker version unchanged (network-first)
This commit is contained in:
1 parent
ebaefc8fb7
commit
f9dffbd132
9 files changed
+11
-70
No files matched your search
@@ -89,8 +89,6 @@ function validate(payload) {
|
||||
else {
|
||||
if (typeof site.welcome_message !== "string" || !site.welcome_message.trim())
|
||||
errors.push("ข้อความต้อนรับว่าง");
|
||||
if (site.contact_email && !/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(String(site.contact_email).trim()))
|
||||
errors.push("อีเมลติดต่อของเว็บไม่ถูกต้อง");
|
||||
}
|
||||
if (!Array.isArray(payload.projects)) {
|
||||
errors.push("projects ต้องเป็น array");
|
||||
@@ -121,7 +119,6 @@ function serialize(payload) {
|
||||
site: {
|
||||
site_title: payload.site.site_title || "",
|
||||
welcome_message: payload.site.welcome_message || "",
|
||||
contact_email: payload.site.contact_email || "",
|
||||
},
|
||||
projects: payload.projects.map((project) => ({
|
||||
project_id: String(project.project_id || "").trim(),
|
||||
|
||||
Reference in new issue
Block a user