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:
Bkk1234 committed 2026-11-19 11:24:59 +07:00
1 parent ebaefc8fb7
commit f9dffbd132
9 files changed
+11 -70

No files matched your search

-17
View File
@@ -25,13 +25,11 @@ const ctx = {
setData(data) {
state.data = normalizeData(data);
state.source = "server";
updateChrome();
},
async reload() {
const result = await loadProjects();
state.data = result.data;
state.source = result.source;
updateChrome();
return result;
},
};
@@ -56,20 +54,6 @@ function renderRoute({ path, view }) {
countUpInside(main);
}
function updateChrome() {
const site = state.data.site || {};
const contact = document.querySelector("[data-contact-link]");
if (contact) {
if (site.contact_email) {
contact.href = `mailto:${site.contact_email}`;
contact.textContent = site.contact_email;
} else {
contact.href = "#/admin";
contact.textContent = "เพิ่มอีเมลติดต่อได้ในหน้าจัดการ";
}
}
}
function skeleton() {
main.innerHTML = `
<div class="wrap">
@@ -88,7 +72,6 @@ async function boot() {
const result = await loadProjects();
state.data = result.data;
state.source = result.source;
updateChrome();
defineRoutes({ "/": homeView, "/admin": adminView }, "/");
onRouteChange(renderRoute);