Revert "Add missing admin action files and navigation links"

This reverts commit 41be6835bf.
This commit is contained in:
Simo committed 2026-07-11 20:37:56 +02:00
1 parent 4a1e1115b3
commit 4d515bc400
338 files changed
+5949 -28144

No files matched your search

+7 -7
View File
@@ -5,8 +5,12 @@
"version": "1.0.0",
"description": "Public and administrative REST API for the AtomCMS-Next Habbo retro hotel CMS."
},
"servers": [{ "url": "/api", "description": "Local API" }],
"security": [{ "bearerAuth": [], "sessionAuth": [] }],
"servers": [
{ "url": "/api", "description": "Local API" }
],
"security": [
{ "bearerAuth": [], "sessionAuth": [] }
],
"components": {
"securitySchemes": {
"bearerAuth": {
@@ -50,11 +54,7 @@
"responses": {
"200": {
"description": "Online count",
"content": {
"application/json": {
"schema": { "type": "object", "properties": { "count": { "type": "integer" } } }
}
}
"content": { "application/json": { "schema": { "type": "object", "properties": { "count": { "type": "integer" } } } } }
}
}
}
+10 -10
View File
@@ -1,12 +1,12 @@
(function () {
(function(){
try {
var s = localStorage.getItem("theme");
var dd = document.querySelector('meta[name="theme-default-dark"]');
var defaultDark = dd ? dd.getAttribute("content") === "true" : false;
if (s === "dark" || (!s && defaultDark)) document.documentElement.classList.add("dark");
var nc = localStorage.getItem("navbarColor"),
nt = localStorage.getItem("navbarTextColor");
if (nc) document.documentElement.style.setProperty("--color-navbar", nc);
if (nt) document.documentElement.style.setProperty("--color-navbar-text", nt);
} catch (e) {}
var s=localStorage.getItem('theme');
var dd=document.querySelector('meta[name="theme-default-dark"]');
var defaultDark=dd?dd.getAttribute('content')==='true':false;
if(s==='dark'||(!s&&defaultDark))document.documentElement.classList.add('dark');
var nc=localStorage.getItem('navbarColor'),
nt=localStorage.getItem('navbarTextColor');
if(nc)document.documentElement.style.setProperty('--color-navbar',nc);
if(nt)document.documentElement.style.setProperty('--color-navbar-text',nt);
}catch(e){}
})();
+1 -4
View File
@@ -45,10 +45,7 @@ self.addEventListener("fetch", (event) => {
fetch(req)
.then((res) => {
const copy = res.clone();
caches
.open(CACHE)
.then((c) => c.put(req, copy))
.catch(() => {});
caches.open(CACHE).then((c) => c.put(req, copy)).catch(() => {});
return res;
})
.catch(() => caches.match(req).then((hit) => hit || caches.match("/"))),