Hauptseite: Unterschied zwischen den Versionen
Weitere Optionen
2-bit (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung |
2-bit (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung |
||
| Zeile 521: | Zeile 521: | ||
border-color:#31465a !important; | border-color:#31465a !important; | ||
color:#bae6fd !important; | color:#bae6fd !important; | ||
} | |||
/* ========================================================= | |||
Recent Changes Window | |||
========================================================= */ | |||
.twlp-recent-window { | |||
width:min(860px,76%) !important; | |||
max-width:860px !important; | |||
margin:4px 0 34px clamp(18px,6.18vw,96px) !important; | |||
} | |||
.twlp-recent-window .twlp-desktop-content { | |||
padding:18px 22px 18px 22px !important; | |||
} | |||
.twlp-recent-list { | |||
display:grid !important; | |||
grid-template-columns:1fr !important; | |||
gap:10px !important; | |||
margin:0 !important; | |||
padding:0 !important; | |||
list-style:none !important; | |||
} | |||
.twlp-recent-item { | |||
position:relative !important; | |||
overflow:hidden !important; | |||
display:block !important; | |||
padding:11px 13px 10px 15px !important; | |||
border:1px solid var(--twlp-border) !important; | |||
border-radius:14px !important; | |||
background: | |||
radial-gradient(circle at top right, rgba(34,211,238,0.07), transparent 38%), | |||
linear-gradient(180deg,var(--twlp-panel) 0%,var(--twlp-panel-strong) 100%) !important; | |||
box-shadow:var(--twlp-shadow-sm) !important; | |||
transition: | |||
transform 0.18s ease, | |||
box-shadow 0.18s ease, | |||
border-color 0.18s ease !important; | |||
} | |||
.twlp-recent-item:hover { | |||
transform:translateY(-2px); | |||
border-color:var(--twlp-border-strong) !important; | |||
box-shadow: | |||
var(--twlp-shadow-md), | |||
var(--twlp-glow-cyan) !important; | |||
} | |||
.twlp-recent-item::before { | |||
content:""; | |||
position:absolute; | |||
inset:0 auto 0 0; | |||
width:4px; | |||
background:var(--twlp-cyan); | |||
} | |||
.twlp-recent-link, | |||
.twlp-recent-link:visited { | |||
display:block !important; | |||
color:var(--twlp-heading) !important; | |||
font-weight:900 !important; | |||
line-height:1.35 !important; | |||
text-decoration:none !important; | |||
} | |||
.twlp-recent-link:hover { | |||
color:var(--twlp-blue) !important; | |||
text-decoration:underline !important; | |||
} | |||
.twlp-recent-meta { | |||
display:flex !important; | |||
flex-wrap:wrap !important; | |||
gap:7px !important; | |||
margin-top:5px !important; | |||
color:var(--twlp-muted) !important; | |||
font-family:"Consolas","Courier New",monospace !important; | |||
font-size:0.78em !important; | |||
line-height:1.35 !important; | |||
} | |||
.twlp-recent-comment { | |||
margin-top:5px !important; | |||
color:var(--twlp-text-soft) !important; | |||
font-size:0.84em !important; | |||
line-height:1.4 !important; | |||
} | |||
.twlp-recent-actions { | |||
display:flex !important; | |||
justify-content:flex-end !important; | |||
align-items:center !important; | |||
margin-top:14px !important; | |||
} | |||
.twlp-recent-actions a, | |||
.twlp-recent-actions a:visited { | |||
display:inline-flex !important; | |||
align-items:center !important; | |||
justify-content:center !important; | |||
padding:8px 13px !important; | |||
border:1px solid var(--twlp-border) !important; | |||
border-radius:999px !important; | |||
background:var(--twlp-heading-bg) !important; | |||
color:var(--twlp-blue) !important; | |||
font-family:"Consolas","Courier New",monospace !important; | |||
font-size:0.82em !important; | |||
font-weight:900 !important; | |||
text-decoration:none !important; | |||
box-shadow:var(--twlp-shadow-sm) !important; | |||
} | |||
.twlp-recent-actions a:hover { | |||
border-color:var(--twlp-border-strong) !important; | |||
color:var(--twlp-cyan) !important; | |||
text-decoration:none !important; | |||
box-shadow: | |||
var(--twlp-shadow-md), | |||
var(--twlp-glow-cyan) !important; | |||
} | |||
.twlp-recent-loading, | |||
.twlp-recent-error { | |||
padding:12px 14px !important; | |||
border:1px dashed var(--twlp-border) !important; | |||
border-radius:14px !important; | |||
color:var(--twlp-text-soft) !important; | |||
background:rgba(255,255,255,0.35) !important; | |||
text-align:center !important; | |||
} | |||
html.skin-theme-clientpref-night .twlp-recent-loading, | |||
body.skin-theme-clientpref-night .twlp-recent-loading, | |||
html.skin-theme-clientpref-night .twlp-recent-error, | |||
body.skin-theme-clientpref-night .twlp-recent-error { | |||
background:rgba(15,23,42,0.35) !important; | |||
} | } | ||
| Zeile 1.035: | Zeile 1.173: | ||
.twlp-switch-panel { | .twlp-switch-panel { | ||
min-height:auto !important; | min-height:auto !important; | ||
} | |||
.twlp-recent-window { | |||
width:100% !important; | |||
max-width:none !important; | |||
margin:0 0 30px 0 !important; | |||
} | } | ||
} | } | ||
| Zeile 1.081: | Zeile 1.225: | ||
font-size:0.86em !important; | font-size:0.86em !important; | ||
overflow-x:auto !important; | overflow-x:auto !important; | ||
} | |||
.twlp-recent-window .twlp-desktop-content { | |||
padding:18px 16px 16px 16px !important; | |||
} | |||
.twlp-recent-actions { | |||
justify-content:center !important; | |||
} | |||
.twlp-recent-actions a { | |||
width:100% !important; | |||
} | } | ||
} | } | ||
| Zeile 1.098: | Zeile 1.254: | ||
.twlp-cta-button, | .twlp-cta-button, | ||
.twlp-switch-panel, | .twlp-switch-panel, | ||
.twlp-terminal-cursor { | .twlp-terminal-cursor, | ||
.twlp-recent-item { | |||
transition:none !important; | transition:none !important; | ||
animation:none !important; | animation:none !important; | ||
| Zeile 1.268: | Zeile 1.425: | ||
} | } | ||
} | } | ||
function twlpEscapeHtml(value) { | |||
return String(value || "").replace(/[&<>"']/g, function (character) { | |||
return { | |||
"&":"&", | |||
"<":"<", | |||
">":">", | |||
"\"":""", | |||
"'":"'" | |||
}[character]; | |||
}); | |||
} | |||
function twlpBuildPageUrl(title) { | |||
if (window.mw && mw.util && typeof mw.util.getUrl === "function") { | |||
return mw.util.getUrl(title); | |||
} | |||
return "/index.php/" + encodeURIComponent(String(title || "").replace(/ /g, "_")); | |||
} | |||
function twlpFormatTimestamp(timestamp) { | |||
if (!timestamp) return "Zeit unbekannt"; | |||
var date = new Date(timestamp); | |||
if (isNaN(date.getTime())) { | |||
return timestamp; | |||
} | |||
try { | |||
return date.toLocaleString("de-DE", { | |||
day:"2-digit", | |||
month:"2-digit", | |||
year:"numeric", | |||
hour:"2-digit", | |||
minute:"2-digit" | |||
}); | |||
} catch (e) { | |||
return date.toLocaleString(); | |||
} | |||
} | |||
function twlpChangeIcon(type) { | |||
if (type === "new") return "🆕"; | |||
if (type === "log") return "📜"; | |||
if (type === "categorize") return "🏷️"; | |||
return "✏️"; | |||
} | |||
function twlpLoadRecentChanges() { | |||
var recentList = landing.querySelector("#twlp-recent-changes-list"); | |||
if (!recentList) return; | |||
var apiUrl = "/api.php?action=query&list=recentchanges&rcprop=title|user|timestamp|comment|type&rclimit=5&format=json"; | |||
if (window.mw && mw.util && typeof mw.util.wikiScript === "function") { | |||
apiUrl = mw.util.wikiScript("api") + "?action=query&list=recentchanges&rcprop=title|user|timestamp|comment|type&rclimit=5&format=json"; | |||
} | |||
fetch(apiUrl, { | |||
credentials:"same-origin" | |||
}) | |||
.then(function (response) { | |||
if (!response.ok) { | |||
throw new Error("API request failed"); | |||
} | |||
return response.json(); | |||
}) | |||
.then(function (data) { | |||
if ( | |||
!data || | |||
!data.query || | |||
!data.query.recentchanges || | |||
!data.query.recentchanges.length | |||
) { | |||
recentList.innerHTML = '<li class="twlp-recent-loading">Aktuell wurden keine Änderungen gefunden.</li>'; | |||
return; | |||
} | |||
recentList.innerHTML = ""; | |||
data.query.recentchanges.forEach(function (change) { | |||
var item = document.createElement("li"); | |||
var title = change.title || "Unbekannte Seite"; | |||
var user = change.user || "Unbekannter Nutzer"; | |||
var timestamp = twlpFormatTimestamp(change.timestamp); | |||
var comment = change.comment || ""; | |||
var type = change.type || "edit"; | |||
var typeLabel = "Bearbeitung"; | |||
if (type === "new") { | |||
typeLabel = "Neue Seite"; | |||
} else if (type === "log") { | |||
typeLabel = "Logbuch"; | |||
} else if (type === "categorize") { | |||
typeLabel = "Kategorie"; | |||
} | |||
item.className = "twlp-recent-item"; | |||
item.innerHTML = | |||
'<a class="twlp-recent-link" href="' + twlpEscapeHtml(twlpBuildPageUrl(title)) + '">' + | |||
twlpEscapeHtml(twlpChangeIcon(type)) + " " + twlpEscapeHtml(title) + | |||
"</a>" + | |||
'<div class="twlp-recent-meta">' + | |||
"<span>" + twlpEscapeHtml(typeLabel) + "</span>" + | |||
"<span>•</span>" + | |||
"<span>" + twlpEscapeHtml(timestamp) + "</span>" + | |||
"<span>•</span>" + | |||
"<span>von " + twlpEscapeHtml(user) + "</span>" + | |||
"</div>" + | |||
( | |||
comment | |||
? '<div class="twlp-recent-comment">„' + twlpEscapeHtml(comment) + '“</div>' | |||
: "" | |||
); | |||
recentList.appendChild(item); | |||
}); | |||
}) | |||
.catch(function () { | |||
recentList.innerHTML = | |||
'<li class="twlp-recent-error">Letzte Änderungen konnten gerade nicht geladen werden.</li>'; | |||
}); | |||
} | |||
twlpLoadRecentChanges(); | |||
var cmdTarget = landing.querySelector(".twlp-terminal-cmd"); | var cmdTarget = landing.querySelector(".twlp-terminal-cmd"); | ||
| Zeile 1.435: | Zeile 1.721: | ||
</div> | </div> | ||
</div> | </div> | ||
</div> | |||
<div class="twlp-desktop-window twlp-recent-window twlp-reveal"> | |||
<div class="twlp-desktop-bar"> | |||
<div class="twlp-desktop-lights" aria-hidden="true"></div> | |||
<div class="twlp-desktop-title">recent changes // wiki activity feed</div> | |||
</div> | |||
<div class="twlp-desktop-content"> | |||
<ul id="twlp-recent-changes-list" class="twlp-recent-list"> | |||
<li class="twlp-recent-loading">Lade letzte Änderungen...</li> | |||
</ul> | |||
<div class="twlp-recent-actions"> | |||
<a href="{{fullurl:Spezial:Letzte Änderungen}}">Alle Änderungen ansehen →</a> | |||
</div> | |||
</div> | |||
</div> | </div> | ||
Version vom 19. Mai 2026, 14:02 Uhr
<system> login: user
<system> password: ********
<system> Access granted.
<system> Welcome to the 2-Bit Knowledge Base
user@2-bit:~$ █
Themenbereiche
Grundlagen, Protokolle, OSI-Modell, Routing, Switching und weitere Themen aus der Netzwerkwelt.
Zusammenfassungen, Lernhilfen sowie Hausaufgaben und prüfungsrelevante Inhalte.
Private Projekte, Schritt-für-Schritt-Anleitungen, Testumgebungen und technische Experimente.
Lernmaterial, Trainings und Wissensmodule zur persönlichen und beruflichen Weiterentwicklung.
Sammlungen wie Rezepte, Ideen, Notizen und Inhalte zum Entdecken und Ausprobieren.
- Lade letzte Änderungen...
<a href="https://2-bit.space/index.php?title=Spezial:Letzte_%C3%84nderungen">Alle Änderungen ansehen →</a>
Erste Schritte für neue Nutzer
Dieses Wiki ist ein privates Hobbyprojekt.
Alle Inhalte dienen ausschließlich dem privaten Lernen und der Wissensauffrischung.
Es handelt sich nicht um offizielle oder extern geprüfte Informationen.
Dieses Wiki protokolliert aus technischen Gründen und zur internen Nachvollziehbarkeit, welche angemeldeten Benutzer welche Seiten aufrufen. Details findest du in unserer Datenschutzerklärung.