Test custom.css

This commit is contained in:
2026-03-21 19:28:12 +01:00
parent 24a782f3da
commit 99471fbc52
6 changed files with 12778 additions and 472 deletions
+325 -293
View File
@@ -1,42 +1,83 @@
/* ============================================================================
HOMEPAGE CUSTOM CSS - OPTIMIZED
KalliLab — FINAL CUSTOM CSS
Header CSS removed completely / everything else kept
============================================================================ */
:root {
/* Theme colors */
--dominant-color: #1a3a3a;
--accent-color: #00c8a0;
--accent-color-dim: #00c8a050;
--bg-color: #18191a;
--bg-color-light: #1e2021;
--text-color: #ffffff;
--kl-bg: #071015;
--kl-panel: rgba(8, 14, 19, 0.78);
--kl-panel-2: rgba(11, 19, 24, 0.86);
/* Derived properties using dynamic colors */
--card-border: 3.5px solid var(--dominant-color);
--card-border-hover: var(--accent-color);
--card-border-focus: var(--accent-color);
--card-bg: var(--bg-color);
--card-bg-hover: var(--accent-color-dim);
--text-shadow: 0 0 10px var(--bg-color);
--transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
--focus-ring: 0 0 8px var(--accent-color-dim);
--font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
--base-font-size: 14px;
--card-padding: 0;
--card-margin: 0;
--border-radius: 1.5rem;
--kl-card: rgba(11, 19, 25, 0.72);
--kl-card-hover: rgba(14, 24, 31, 0.78);
--kl-tab: rgba(9, 16, 22, 0.78);
--kl-tab-hover: rgba(12, 22, 28, 0.82);
--kl-tab-active: rgba(10, 22, 26, 0.84);
--kl-border: rgba(118, 181, 187, 0.12);
--kl-border-strong: rgba(0, 200, 160, 0.34);
--kl-border-active: rgba(74, 219, 196, 0.62);
--kl-text: #e8fbfb;
--kl-text-soft: rgba(220, 243, 243, 0.74);
--kl-text-dim: rgba(182, 215, 215, 0.54);
--kl-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
--kl-glow: 0 0 18px rgba(0, 200, 160, 0.14);
--kl-glow-strong: 0 0 24px rgba(0, 200, 160, 0.22);
--kl-radius: 18px;
--kl-radius-sm: 14px;
--kl-font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
--kl-font-tech: "JetBrains Mono", "Consolas", monospace;
--kl-transition: 180ms ease;
}
/* ============================================================================
NAVIGATION TABS
BASE
============================================================================ */
html,
body {
background: #050c10;
color: var(--kl-text);
font-family: var(--kl-font-ui);
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
background:
radial-gradient(circle at top center, rgba(0, 200, 160, 0.06), transparent 32%),
linear-gradient(180deg, rgba(4, 10, 14, 0.18), rgba(4, 10, 14, 0.48));
z-index: 0;
}
.container,
main,
#page_container {
position: relative;
z-index: 1;
}
.container {
max-width: 94%;
}
/* ============================================================================
TABS
============================================================================ */
#myTab {
display: flex;
gap: 60px;
margin: 0 150px 30px;
gap: 18px;
margin: 0 24px 22px;
padding: 0;
font: 18px/2 var(--font-family-base);
background: none;
background: transparent;
backdrop-filter: none;
}
@@ -48,231 +89,183 @@
padding: 0;
}
[id$="-tab"] {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 50px;
min-width: 180px;
padding: 0 22px;
border: 1px solid var(--kl-border);
border-radius: 16px;
background: linear-gradient(180deg, rgba(10, 18, 24, 0.72), rgba(7, 13, 18, 0.82));
color: var(--kl-text-soft);
font-family: var(--kl-font-ui);
font-size: 0.95rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
cursor: pointer;
user-select: none;
transition:
border-color var(--kl-transition),
background var(--kl-transition),
box-shadow var(--kl-transition),
color var(--kl-transition);
}
[id$="-tab"]:hover {
color: var(--kl-text);
border-color: rgba(0, 200, 160, 0.28);
background: linear-gradient(180deg, var(--kl-tab-hover), rgba(8, 15, 20, 0.88));
box-shadow: var(--kl-glow);
transform: none;
}
[id$="-tab"].tab-focused,
[id$="-tab"].active,
[id$="-tab"][aria-selected="true"] {
color: var(--kl-text);
border-color: var(--kl-border-active);
background: linear-gradient(180deg, var(--kl-tab-active), rgba(7, 14, 18, 0.9));
box-shadow: var(--kl-glow-strong);
transform: none;
}
.tabcontent {
position: relative;
width: 100%;
height: 100%;
inset: 0;
display: none;
overflow-y: auto;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s ease, visibility 0.3s ease;
transition: opacity 220ms ease, visibility 220ms ease;
}
.tabcontent.active {
display: block;
opacity: 1;
visibility: visible;
margin: 12px 0 15px;
}
[id$="-tab"] {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 60px;
margin: 0;
border: var(--card-border);
border-radius: var(--border-radius);
background-color: #18191a;
text-align: center;
text-shadow: var(--text-shadow);
text-transform: uppercase;
}
/* ============================================================================
GROUP TITLES
============================================================================ */
.service-group,
.services-group,
.bookmarks-group,
.widget-group {
margin-bottom: 18px;
}
h2,
.group-title,
.section-title {
color: var(--kl-text-soft);
font-family: var(--kl-font-ui);
font-size: 0.88rem;
font-weight: 700;
white-space: nowrap;
cursor: pointer;
user-select: none;
transition: var(--transition);
-webkit-tap-highlight-color: transparent;
contain: layout style paint;
will-change: background-color, border-color;
backface-visibility: hidden;
transform: translateZ(0);
}
[id$="-tab"]::before {
content: "";
position: absolute;
inset: -5px;
background-color: var(--card-bg);
border-radius: var(--border-radius);
z-index: -1;
}
[id$="-tab"]:hover {
background-color: #1e2021;
border-color: var(--card-border-hover);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
[id$="-tab"].tab-focused,
[id$="-tab"].active {
background-color: #1e2021;
border-color: var(--card-border-focus);
outline: none;
box-shadow: var(--focus-ring);
letter-spacing: 0.14em;
text-transform: uppercase;
}
/* ============================================================================
SERVICE CARDS
============================================================================ */
.service-card {
position: relative;
display: flex;
flex-direction: column;
border: var(--card-border);
border-radius: var(--border-radius);
background-color: #18191a;
text-shadow: var(--text-shadow);
font-weight: 400;
white-space: nowrap;
transition: var(--transition);
contain: layout style paint;
will-change: background-color, border-color;
content-visibility: auto;
contain-intrinsic-size: auto 200px;
backface-visibility: hidden;
transform: translateZ(0);
border: 1px solid var(--kl-border);
border-radius: var(--kl-radius);
background: linear-gradient(180deg, rgba(12, 20, 26, 0.72), rgba(8, 14, 18, 0.72));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.03),
var(--kl-shadow);
color: var(--kl-text);
text-shadow: none;
font-weight: 500;
white-space: normal;
overflow: hidden;
transition:
border-color var(--kl-transition),
background var(--kl-transition),
box-shadow var(--kl-transition);
}
.service-card::before {
content: "";
position: absolute;
inset: -5px;
background-color: var(--card-bg);
border-radius: var(--border-radius);
z-index: -1;
inset: 0;
background: linear-gradient(135deg, rgba(74, 219, 196, 0.03), transparent 36%);
pointer-events: none;
}
.service-card:hover {
background-color: #1e2021;
border-color: var(--card-border-hover);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
border-color: var(--kl-border-strong);
background: linear-gradient(180deg, rgba(14, 24, 31, 0.78), rgba(9, 16, 21, 0.78));
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.04),
0 14px 34px rgba(0, 0, 0, 0.26),
0 0 0 1px rgba(0, 200, 160, 0.05),
0 0 18px rgba(0, 200, 160, 0.1);
transform: none;
}
.service-card > :is(div, span, h1, h2, h3, h4, h5, h6, p):first-child:not(.service-container),
.bookmark,
.widget-container {
font-weight: 700;
text-transform: uppercase;
.service-card a {
color: inherit;
text-decoration: none;
}
.service-card > :first-child:not(.service-container),
.service-card > .service-header,
.service-card > .service-title {
margin-bottom: 1px;
.service-header,
.service-title,
.card-title {
color: var(--kl-text) !important;
font-family: var(--kl-font-ui);
font-weight: 700 !important;
letter-spacing: 0.03em;
}
.service-card > :nth-child(2):not(.service-header):not(.service-title),
.service-card > .service-body,
.service-card > .service-content {
margin-top: 1px;
}
.service-card:has(iframe) .service-container {
margin-top: 0;
padding-top: 0;
}
.service-card a:-moz-any-link {
background-color: transparent;
}
.service-card :is(a:focus, a:hover, div[onclick]:hover) {
background-color: transparent;
outline: none;
.service-description,
.card-description,
.service-card p {
color: var(--kl-text-dim) !important;
}
.service-icon img {
width: 12px;
height: 12px;
vertical-align: middle;
width: 18px;
height: 18px;
border-radius: 5px;
}
.service-container {
color: var(--kl-text-soft);
}
.service-block {
position: relative;
border: 2px solid darkslategrey;
border-radius: var(--border-radius);
}
.service-block:has(iframe) {
border: none;
border-radius: var(--kl-radius);
background: transparent;
}
.service-block:has(.epl),
.service-block:has(.uptime),
.service-block:has(.todo) {
border-color: #191c1d;
.service-card .status,
.service-status,
.card-status {
font-family: var(--kl-font-tech);
font-size: 0.8rem;
color: var(--kl-text-soft);
}
/* ============================================================================
INFORMATION WIDGETS
IFRAMES / SPECIALS
============================================================================ */
#information-widgets {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 12px;
}
#information-widgets-right {
margin-right: 10px;
}
.information-widget-greeting {
flex-grow: 1.5;
}
.information-widget-resources {
position: relative;
}
.information-widget-resource {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
margin: 0 auto;
text-align: center;
text-transform: uppercase;
font-weight: 700;
}
#information-widgets > * {
position: relative;
border: none;
border-radius: var(--border-radius);
backdrop-filter: none;
text-shadow: var(--text-shadow);
text-transform: uppercase;
font-weight: 700;
white-space: nowrap;
transition: var(--transition);
contain: layout;
will-change: transform;
content-visibility: auto;
contain-intrinsic-size: auto 200px;
backface-visibility: hidden;
transform: translateZ(0);
}
#information-widgets > *::before {
display: none;
}
#information-widgets > *:is(:hover, :focus) {
background-color: transparent !important;
border-color: transparent !important;
box-shadow: none !important;
backdrop-filter: none !important;
}
/* ============================================================================
IFRAME CONTAINERS
============================================================================ */
iframe {
width: 100%;
border: 0;
@@ -311,8 +304,9 @@ iframe {
}
/* ============================================================================
CUSTOM LISTS - OPTIMIZED SELECTORS
CUSTOM LISTS
============================================================================ */
#upcominggames .flex.flex-row.text-right,
#tautulli_recent_movies .flex.flex-row.text-right,
#tautulli_recent_shows .flex.flex-row.text-right {
@@ -386,62 +380,14 @@ iframe {
margin: 3px 3px 1px;
border-radius: 0.4rem;
text-align: left;
text-shadow: var(--text-shadow);
text-shadow: none;
font-size: 12px;
font-weight: 400;
}
#headlessui-disclosure-panel-\:r6\: > ul:first-child > li:first-child > div:first-child > div:first-child {
margin: -100px;
}
/* ============================================================================
ANIMATIONS
UTILITIES
============================================================================ */
@keyframes updatePulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
@keyframes loadingBar {
0% {
width: 0;
opacity: 0.5;
}
50% {
opacity: 1;
}
100% {
width: 100%;
opacity: 0.5;
}
}
.service-card.updating {
animation: updatePulse 0.5s ease-in-out;
}
.service-card.loading::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: var(--card-border-hover);
animation: loadingBar 2s linear infinite;
}
/* ============================================================================
UTILITY CLASSES
============================================================================ */
.container {
max-width: 90%;
}
.flex {
display: flex;
@@ -477,54 +423,73 @@ iframe {
}
/* ============================================================================
RESPONSIVE DESIGN
ANIMATIONS
============================================================================ */
@media (max-width: 768px) {
:root {
--card-padding: 10px;
--card-margin: 3px;
}
@keyframes updatePulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.74;
}
}
@keyframes loadingBar {
0% {
width: 0;
opacity: 0.45;
}
50% {
opacity: 1;
}
100% {
width: 100%;
opacity: 0.45;
}
}
.service-card.updating {
animation: updatePulse 0.5s ease-in-out;
}
.service-card.loading::after {
content: "";
position: absolute;
top: 0;
left: 0;
height: 2px;
background: linear-gradient(90deg, rgba(0, 200, 160, 0.2), rgba(74, 219, 196, 0.9));
animation: loadingBar 2s linear infinite;
}
/* ============================================================================
RESPONSIVE
============================================================================ */
@media (max-width: 768px) {
#myTab {
flex-direction: column;
gap: 5px;
margin: 0;
padding: 0;
gap: 8px;
margin: 0 12px 18px;
}
[id$="-tab"] {
width: 100%;
padding: 15px;
text-align: center;
justify-content: center;
align-items: center;
min-width: 0;
}
.tabcontent {
margin: 0;
padding: 0;
.container {
max-width: 100%;
}
.service-card,
[id$="-tab"] {
font-size: 14px;
}
.hide-on-mobile {
display: none !important;
height: 0 !important;
min-height: 0 !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
}
}
@media (max-width: 480px) {
#myTab {
gap: 3px;
}
.service-card,
[id$="-tab"] {
font-size: 12px;
@@ -546,23 +511,90 @@ iframe {
transition-duration: 0.01ms !important;
}
}
/* ============================================================================
BOOKMARKS — gleicher Look wie Service Cards
Homepage rendert Bookmarks als <a> Tags mit Tailwind-Klassen
BOOKMARKS — FINAL MATCH TO MAIN CARDS
============================================================================ */
.service-block a[href],
#bookmarks a[href] {
border: var(--card-border);
border-radius: var(--border-radius);
background-color: var(--bg-color-light);
text-shadow: var(--text-shadow);
transition: var(--transition);
/* Haupt-Balken */
#bookmarks a[href],
.service-block a[href] {
position: relative;
border: 1px solid var(--kl-border) !important;
border-radius: 14px;
background: linear-gradient(
180deg,
rgba(12, 20, 26, 0.72),
rgba(8, 14, 18, 0.72)
) !important;
backdrop-filter: blur(6px);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.03),
var(--kl-shadow);
transition:
border-color var(--kl-transition),
background var(--kl-transition),
box-shadow var(--kl-transition);
overflow: hidden;
}
.service-block a[href]:hover,
#bookmarks a[href]:hover {
background-color: var(--bg-color);
border-color: var(--card-border-hover);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
/* leichter Glow Layer wie bei Cards */
#bookmarks a[href]::before,
.service-block a[href]::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
135deg,
rgba(74, 219, 196, 0.04),
transparent 40%
);
pointer-events: none;
}
/* Hover exakt wie Main Cards */
#bookmarks a[href]:hover,
.service-block a[href]:hover {
border-color: var(--kl-border-strong) !important;
background: linear-gradient(
180deg,
rgba(14, 24, 31, 0.78),
rgba(9, 16, 21, 0.78)
) !important;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.04),
0 14px 34px rgba(0, 0, 0, 0.26),
0 0 0 1px rgba(0, 200, 160, 0.05),
0 0 18px rgba(0, 200, 160, 0.1);
}
/* Text sauber wie oben */
#bookmarks a[href] * {
color: var(--kl-text-soft) !important;
font-weight: 500;
}
#bookmarks a[href]:hover * {
color: var(--kl-text) !important;
}
/* Icons etwas cleaner */
#bookmarks img {
border-radius: 6px;
opacity: 0.9;
}
/* leichte Separation zwischen Reihen */
#bookmarks .flex,
#bookmarks .grid {
gap: 10px;
}
+133 -105
View File
@@ -1,22 +1,23 @@
/* ============================================================================
KalliLab — CUSTOM JAVASCRIPT
Basiert auf LionCityGaming/homepage custom.js (MIT License)
Anpassungen: KalliLab Tab-Namen, keine HA/EPL/Glance iFrames
Home / Media Tabs
Reload-Button entfernen
Aktiven Tab merken
============================================================================ */
const CONFIG = {
STORAGE: {
KEY: "lastFocusedTabId",
KEY: "kallilab-last-focused-tab-id",
},
TIMING: {
RETRY_DELAY: 500,
STANDARD_REFRESH: 1800000, // 30 Minuten
QUICK_REFRESH: 60000, // 1 Minute
STANDARD_REFRESH: 1800000,
QUICK_REFRESH: 60000,
RETRY_ON_ERROR: 30000,
BATCH_DELAY: 100,
},
SERVICES: {
QUICK_REFRESH: [], // keine kritischen Quick-Refresh Widgets
QUICK_REFRESH: [],
},
};
@@ -28,17 +29,10 @@ const RELOAD_BUTTON_SELECTORS = [
'[role="button"][aria-label="Reload"]',
];
// Keine iFrame-Widgets in KalliLab
const IFRAME_CONFIG = [];
// Tab-Mapping für KalliLab Tabs (5 Tabs)
const TAB_MAPPING = {
"#ueberblick": ["#Überblick-tab", "#Überblick"],
"#system": ["#System-tab", "#System"],
"#sicherheit": ["#Sicherheit-tab", "#Sicherheit"],
"#dienste": ["#Dienste-tab", "#Dienste"],
"#backends": ["#Backends-tab", "#Backends"],
"": ["#Überblick-tab", "#Überblick"],
const TAB_HASH_MAP = {
"#home": "Home-tab",
"#media": "Media-tab",
"": "Home-tab",
};
const state = {
@@ -46,7 +40,6 @@ const state = {
currentFocusedTab: null,
observers: {
reloadButton: null,
resize: null,
},
};
@@ -105,7 +98,9 @@ function throttle(func, limit) {
if (!inThrottle) {
func.apply(this, args);
inThrottle = true;
setTimeout(() => (inThrottle = false), limit);
setTimeout(() => {
inThrottle = false;
}, limit);
}
};
}
@@ -141,6 +136,81 @@ function setupReloadButtonObserver() {
return observer;
}
function setTabFocus(tab) {
requestAnimationFrame(() => {
if (state.currentFocusedTab) {
state.currentFocusedTab.classList.remove("tab-focused");
}
state.currentFocusedTab = tab;
if (state.currentFocusedTab) {
state.currentFocusedTab.classList.add("tab-focused");
}
});
}
function showTabContent(contentElement) {
if (!contentElement || !domCache.tabContents) return;
domCache.tabContents.forEach((content) => {
content.classList.remove("active");
content.style.display = "none";
});
contentElement.classList.add("active");
contentElement.style.display = "block";
domCache.updateActiveTab();
}
function resolveTabContentElement(tab) {
if (!tab) return null;
const ariaControls = tab.getAttribute("aria-controls");
if (ariaControls) {
return document.getElementById(ariaControls);
}
const tabText = (tab.textContent || "").trim().toLowerCase();
const directMatch = Array.from(document.querySelectorAll(".tabcontent")).find((content) => {
return content.id.toLowerCase() === tabText;
});
return directMatch || document.querySelector(".tabcontent.active");
}
function activateTab(tab, updateHash = true) {
if (!tab) return;
setTabFocus(tab);
storage.save(tab.id);
const contentToShow = resolveTabContentElement(tab);
showTabContent(contentToShow);
if (updateHash) {
const normalized = (tab.textContent || "").trim().toLowerCase();
if (normalized === "home") {
history.replaceState(null, "", "#home");
} else if (normalized === "media") {
history.replaceState(null, "", "#media");
}
}
}
function handleTabFocusFromURL() {
const hash = window.location.hash.toLowerCase();
const tabId = TAB_HASH_MAP[hash] || TAB_HASH_MAP[""];
const tabToFocus = document.getElementById(tabId);
if (tabToFocus) {
activateTab(tabToFocus, false);
return true;
}
return false;
}
function updateServiceCard(card, data) {
requestAnimationFrame(() => {
const titleElement = card.querySelector(".card-title");
@@ -154,6 +224,7 @@ function updateServiceCard(card, data) {
statusElement.textContent = Array.isArray(data)
? `${data.length} items`
: (data.status ?? (typeof data === "object" ? "Data received" : ""));
statusElement.style.color = "";
}
});
}
@@ -165,7 +236,7 @@ function updateServiceCardError(card, error) {
statusElement.textContent = error.message.includes("404")
? "Service unavailable"
: "Error loading data";
statusElement.style.color = "red";
statusElement.style.color = "#ff7b7b";
}
});
}
@@ -221,53 +292,14 @@ async function batchUpdateServiceCards(cards) {
}
}
function handleTabFocusFromURL() {
const hash = window.location.hash.toLowerCase();
const mapping = TAB_MAPPING[hash] || TAB_MAPPING[""];
const [tabSelector, contentSelector] = mapping;
const tabToFocus = document.querySelector(tabSelector);
const contentToShow = document.querySelector(contentSelector);
if (tabToFocus) {
setTabFocus(tabToFocus);
storage.save(tabToFocus.id);
domCache.tabContents.forEach((content) => {
content.classList.remove("active");
content.style.display = "none";
});
if (contentToShow) {
showTabContent(contentToShow);
}
}
}
function setTabFocus(tab) {
requestAnimationFrame(() => {
if (state.currentFocusedTab) {
state.currentFocusedTab.classList.remove("tab-focused");
}
state.currentFocusedTab = tab;
state.currentFocusedTab.classList.add("tab-focused");
});
}
function showTabContent(contentElement) {
if (!contentElement) return;
contentElement.classList.add("active");
contentElement.style.display = "block";
domCache.updateActiveTab();
}
async function preloadAllTabs() {
const tabContents = document.querySelectorAll(".tab-pane");
const tabContents = document.querySelectorAll(".tabcontent, .tab-pane");
const serviceCards = new Set();
tabContents.forEach((tab) => {
tab.querySelectorAll(".service-card").forEach((card) => serviceCards.add(card));
tab.querySelectorAll(".service-card[data-api-endpoint]").forEach((card) => {
serviceCards.add(card);
});
});
await batchUpdateServiceCards(Array.from(serviceCards));
@@ -295,49 +327,45 @@ function setupPeriodicRefresh() {
});
domCache.myTab?.addEventListener("click", (event) => {
if (event.target.matches('[id$="-tab"]')) {
const tab = event.target.closest('[id$="-tab"]');
if (tab) {
activateTab(tab);
debouncedRefresh();
}
});
}
function initializeTabFocus() {
// KalliLab Tab-Selektoren
const tabs = document.querySelectorAll(
"#Überblick-tab, #System-tab, #Sicherheit-tab, #Dienste-tab, #Backends-tab",
);
const tabs = document.querySelectorAll('#myTab [id$="-tab"]');
if (!tabs.length) return;
handleTabFocusFromURL();
const handledByHash = handleTabFocusFromURL();
if (!window.location.hash) {
if (!handledByHash) {
const savedTabId = storage.get();
const savedTab = savedTabId && document.getElementById(savedTabId);
if (savedTab) {
setTabFocus(savedTab);
activateTab(savedTab, false);
} else {
const activeTab = document.querySelector(".tabcontent.active");
const correspondingTab =
activeTab && document.querySelector(`[aria-controls="${activeTab.id}"]`);
if (correspondingTab) {
setTabFocus(correspondingTab);
const activeTab = document.querySelector('#myTab [aria-selected="true"]');
if (activeTab) {
activateTab(activeTab, false);
} else {
activateTab(tabs[0], false);
}
}
}
tabs.forEach((tab) => {
const handleTabAction = function () {
setTabFocus(this);
storage.save(this.id);
};
tab.addEventListener("click", () => {
activateTab(tab);
});
tab.addEventListener("click", handleTabAction);
tab.addEventListener("keydown", function (e) {
tab.addEventListener("keydown", (e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
this.click();
handleTabAction.call(this);
activateTab(tab);
}
});
});
@@ -347,6 +375,10 @@ function initializeTabFocus() {
storage.save(state.currentFocusedTab.id);
}
});
window.addEventListener("hashchange", () => {
handleTabFocusFromURL();
});
}
function initializeEverything() {
@@ -368,14 +400,21 @@ function initializeEverything() {
} else {
setTimeout(initializeEverything, CONFIG.TIMING.RETRY_DELAY);
}
}
window.addEventListener("orientationchange", () => {
setTimeout(removeReloadButton, 100);
});
function cleanup() {
if (state.observers.reloadButton) {
state.observers.reloadButton.disconnect();
state.observers.reloadButton = null;
}
domCache.clear();
state.currentFocusedTab = null;
}
document.addEventListener("DOMContentLoaded", removeReloadButton);
window.addEventListener("load", initializeEverything);
window.addEventListener("unload", cleanup);
if (typeof window.htmlLoaded === "function") {
const originalHtmlLoaded = window.htmlLoaded;
@@ -386,22 +425,11 @@ if (typeof window.htmlLoaded === "function") {
}
if ("ontouchstart" in window) {
window.addEventListener("touchend", () => {
window.addEventListener(
"touchend",
() => {
setTimeout(removeReloadButton, 100);
}, { passive: true });
},
{ passive: true },
);
}
function cleanup() {
if (state.observers.reloadButton) {
state.observers.reloadButton.disconnect();
state.observers.reloadButton = null;
}
if (state.observers.resize) {
state.observers.resize.disconnect();
state.observers.resize = null;
}
domCache.clear();
state.currentFocusedTab = null;
}
window.addEventListener("unload", cleanup);
+12277
View File
File diff suppressed because it is too large Load Diff
+9 -15
View File
@@ -176,7 +176,6 @@
description: Fotos & Videos
server: my-docker
container: immich_server
siteMonitor: http://192.168.178.58:2283
widget:
type: immich
url: http://192.168.178.58:2283
@@ -246,7 +245,6 @@
description: Startseite
server: my-docker
container: homepage
siteMonitor: https://home.kaleschke.info
- Dozzle:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/dozzle.webp
@@ -254,7 +252,6 @@
description: Container-Logs
server: my-docker
container: Dozzle
siteMonitor: http://192.168.178.58:9888
- Tailscale:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/tailscale.webp
@@ -269,7 +266,6 @@
description: UI-Themes
server: my-docker
container: theme-park
siteMonitor: http://192.168.178.58:8009
- DDNS Updater:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/ddns-updater.webp
@@ -289,15 +285,13 @@
description: Server-Dashboard
server: my-docker
container: dashdot
siteMonitor: http://192.168.178.58:3002
- ntopng:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/ntopng.webp
icon: mdi-chart-line
href: http://kallilabcore.local:3000
description: Netzwerktraffic
server: my-docker
container: ntopng
siteMonitor: http://192.168.178.58:3000
- NetAlertX:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/netalertx.webp
@@ -307,12 +301,11 @@
container: netalertx
- Code Server:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/code-server.webp
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/visual-studio-code.webp
href: https://code.kaleschke.info
description: Browser-IDE
server: my-docker
container: code-server
siteMonitor: https://code.kaleschke.info
- Paperless-AI:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/paperless-ngx.webp
@@ -320,7 +313,6 @@
description: KI-Dokumente
server: my-docker
container: Paperless-AI
siteMonitor: http://192.168.178.58:3236
- Vaultwarden:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/vaultwarden.webp
@@ -328,7 +320,6 @@
description: Passwortmanager
server: my-docker
container: vaultwarden
siteMonitor: https://kallilabcore.taild9fcf2.ts.net:4743
- Unbound:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/unbound.webp
@@ -342,7 +333,6 @@
description: Mail-Archiv
server: my-docker
container: mail-archiver
siteMonitor: http://192.168.178.58:5000
- Scanopy:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/paperless-ngx.webp
@@ -350,15 +340,13 @@
description: Scan-Workflow
server: my-docker
container: scanopy-server
siteMonitor: http://192.168.178.58:60072
- luckyBackup:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/luckybackup.webp
icon: mdi-backup-restore
href: http://kallilabcore.local:7675/vnc.html?autoconnect=true
description: Backup-GUI
server: my-docker
container: luckyBackup
siteMonitor: http://192.168.178.58:7675
- Scanopy Daemon:
icon: https://cdn.jsdelivr.net/gh/selfhst/icons/webp/paperless-ngx.webp
@@ -366,6 +354,12 @@
server: my-docker
container: scanopy-daemon
- Filebrowser:
icon: mdi-folder-open
href: http://192.168.178.58:8085
description: Filesystem GUI
container: filebrowser
# ============================================================================
# TAB: Home — BACKENDS MINI
# ============================================================================
+6 -6
View File
@@ -5,14 +5,14 @@ disableCollapse: false
background:
image: /images/back10.jpg
saturate: 1
brightness: 100
saturate: 0.95
brightness: 78
opacity: 100
cardBlur: 4xl
cardBlur: xl
theme: dark
color: emerald
headerStyle: underlined
headerStyle: clean
iconStyle: theme
statusStyle: dot
@@ -23,7 +23,7 @@ hideVersion: true
hideErrors: false
fiveColumns: false
useEqualHeights: true
preloadAllWidgets: true
preloadAllWidgets: false
target: _blank
language: de
@@ -52,7 +52,7 @@ layout:
header: false
tab: Home
style: row
columns: 6
columns: 5
BACKENDS MINI:
header: false
+11 -36
View File
@@ -1,49 +1,24 @@
- logo:
icon: /images/icons/logo.png
href: https://home.kaleschke.info
target: _blank
- greeting:
text_size: 3xl
text: KalliLab
text_size: 2xl
text: KALLILAB CORE
href: https://home.kaleschke.info
target: _blank
- datetime:
locale: de-DE
text_size: 3xl
format:
dateStyle: full
hour12: false
timeStyle: short
# Jede Metrik = eigener Block = alle nebeneinander
- resources:
cpu: true
- resources:
memory: true
- resources:
cputemp: true
units: metric
- resources:
uptime: true
- resources:
label: KalliLab
disk: /
href: http://kallilabcore.local:61208
target: _blank
- search:
provider: google
focus: false
target: _blank
- datetime:
locale: de-DE
text_size: xl
format:
dateStyle: full
hour12: false
timeStyle: short
- openmeteo:
label: KalliLab
label: Horstmar
latitude: 52.1497
longitude: 7.5205
units: metric