diff --git a/.github/workflows/nexjast-ci.yml b/.github/workflows/nexjast-ci.yml index 03b64a09..7795d5ea 100644 --- a/.github/workflows/nexjast-ci.yml +++ b/.github/workflows/nexjast-ci.yml @@ -86,6 +86,10 @@ jobs: - name: Verify OpenGenesisLINK protected admin Control Center shell: bash run: python3 tools/ci/verify_ogl_docs_admin_ui.py + - name: Verify World API Sci-Fi admin dashboard navigation and GitHub releases + shell: bash + run: python3 tools/ci/verify_worldapi_scifi_admin_center.py + - name: Verify OpenGenesisLINK 0.9.3.12 dashboard and diagnostic updates shell: bash diff --git a/NexVerse/Server/Api/NexApiDocsPage.cs b/NexVerse/Server/Api/NexApiDocsPage.cs index bc469408..2376355e 100644 --- a/NexVerse/Server/Api/NexApiDocsPage.cs +++ b/NexVerse/Server/Api/NexApiDocsPage.cs @@ -46,12 +46,12 @@ namespace NexVerse.Server.Api "no-referrer"); response.AddHeader( "Content-Security-Policy", - "default-src 'self'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'self'"); + "default-src 'self'; img-src 'self' data:; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'self'"); response.RawBuffer = Encoding.UTF8.GetBytes(s_Html); } - private const string s_Html = """ + private static readonly string s_Html = """
@@ -190,26 +190,97 @@ main:before {content:"";position:fixed;inset:0;pointer-events:none;opacity:.17;z .ogl-triage-tile p{font-size:12px;color:#a4b8d4;line-height:1.6;} .ogl-triage-tile code{overflow-wrap:anywhere;} + +/* OGL COMMAND CENTER 2.0 — overlays existing validated controls and preserves IDs */ +:root{--bg:#030914;--panel:#0a172b;--panel2:#10243b;--line:rgba(75,157,218,.25);--text:#edf8ff;--muted:#97b5d2;--accent:#3ddcff;--accent2:#568cff;--good:#55eebd;--shadow:0 12px 46px rgba(0,0,0,.36)} +body{background:radial-gradient(ellipse at 78% 0%,rgba(11,70,143,.22),transparent 36%),repeating-linear-gradient(90deg,transparent 0 77px,rgba(34,87,148,.024) 78px 79px),#030913} +.shell{grid-template-columns:284px minmax(0,1fr)} +nav{width:284px;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid rgba(74,168,241,.23);background:linear-gradient(180deg,rgba(5,17,34,.99),rgba(5,12,25,.99));padding:0 12px} +.ogl-brand{flex:0 0 auto;display:flex;gap:10px;align-items:center;padding:23px 10px 15px;margin:0;border-bottom:1px solid rgba(75,157,218,.23)} +.ogl-brand .ogl-logo img{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 0 12px rgba(56,209,255,.2))} +.ogl-brand .ogl-logo{flex:0 0 61px;width:61px;height:61px;border-radius:12px;display:grid;place-items:center;font-size:14px;box-shadow:0 0 16px rgba(0,220,255,.18);border:1px solid rgba(60,211,252,.3)} +.ogl-brand .brand-copy{min-width:0}.ogl-brand strong{font-size:15px;letter-spacing:-.25px}.ogl-brand span{font-size:9px;letter-spacing:.11em} +.nav-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:12px 3px 24px;scrollbar-width:thin;scrollbar-color:#24466b transparent} +.navgroup{border-bottom:1px solid rgba(74,140,209,.10);margin-bottom:5px;padding-bottom:7px} +.navgroup summary{cursor:pointer;list-style:none;padding:12px 12px 7px;font-size:10px;font-weight:800;letter-spacing:.125em;text-transform:uppercase;color:#81b2d9;display:flex;justify-content:space-between;align-items:center} +.navgroup summary:after{content:'+';color:#57cfff;font-size:17px;line-height:1}.navgroup[open] summary:after{content:'−'} +.navgroup summary::-webkit-details-marker{display:none} +.navbtn{display:block;width:100%;margin:1px 0;padding:9px 13px;font-size:12px;border-radius:8px;min-height:35px} +.navmeta{position:static;flex:0 0 auto;padding:12px 10px 15px;line-height:1.4;max-height:88px;overflow:hidden;border-top:1px solid rgba(72,167,240,.21)} +main{padding:28px clamp(17px,3vw,52px)} +.page{max-width:1600px} +.hero{background:linear-gradient(110deg,rgba(11,33,68,.94),rgba(6,25,54,.94) 65%,rgba(7,17,39,.93));min-height:146px} +.hero h1{letter-spacing:-.035em;font-size:clamp(26px,2.6vw,37px)} +.section,.card,.ogl-release-card,.ogl-status-card{background:linear-gradient(145deg,rgba(13,28,53,.92),rgba(6,17,34,.97));border:1px solid rgba(73,155,224,.21);box-shadow:0 12px 45px rgba(0,0,0,.21)} +.ogl-overline{font-size:10px;letter-spacing:.17em;color:#50d9ff;font-weight:800} +.ogl-command-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 17px} +.ogl-command-bar h2{font-size:24px;margin:3px 0}.ogl-command-bar p{color:var(--muted);margin:0} +.ogl-quick-actions{display:flex;flex-wrap:wrap;gap:8px} +.ogl-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 19px} +.ogl-status-card{padding:19px 20px;border-radius:13px;display:flex;flex-direction:column;gap:5px;position:relative;overflow:hidden} +.ogl-status-card:before{content:'';position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,#2ee0ff,transparent);opacity:.7} +.ogl-status-card small,.ogl-release-type{font-size:10px;letter-spacing:.11em;font-weight:750;color:#83b9e0} +.ogl-status-card strong{font-size:clamp(16px,1.5vw,23px);color:#e6f9ff;overflow-wrap:anywhere} +.ogl-status-card span{font-size:11px;color:var(--muted)} +.ogl-panel-split{display:grid;grid-template-columns:1fr 1fr;gap:15px} +.ogl-section-flex{display:flex;justify-content:space-between;gap:15px;align-items:start} +.ogl-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:9px}.ogl-shortcuts button{padding:13px;border:1px solid rgba(79,173,240,.21);background:#081a31;color:#c7edff;text-align:left;border-radius:9px;cursor:pointer}.ogl-shortcuts button:hover{border-color:#42cfff} +.ogl-release-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px} +.ogl-release-card{border-radius:14px;padding:23px;min-height:195px;display:flex;flex-direction:column;gap:12px} +.ogl-release-card strong{font-size:25px;overflow-wrap:anywhere} +.ogl-release-card p{margin:0;color:var(--muted);flex:1;overflow-wrap:anywhere} +.ogl-release-card a{color:#75ddff;font-size:12px} +.ogl-mini-status{border:1px solid rgba(81,149,213,.2);padding:12px;margin:10px 0;border-radius:9px;background:rgba(7,20,42,.6);color:#a5c9e4;overflow-wrap:anywhere} +.ogl-workspace-tools{display:flex;gap:15px;align-items:center;margin:15px 0}.ogl-workspace-tools input{flex:1;min-width:0}.ogl-workspace-tools span{color:var(--muted);white-space:nowrap} +.ogl-operation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px} +.ogl-opcard{display:flex;flex-direction:column;gap:9px;align-items:start;border:1px solid rgba(72,148,219,.25);background:rgba(4,17,37,.66);border-radius:10px;padding:15px;color:var(--text);text-align:left;cursor:pointer;overflow-wrap:anywhere} +.ogl-opcard:hover,.ogl-opcard:focus-visible{border-color:#33c8ff;background:rgba(13,53,90,.5)} +.ogl-opcard small{font-size:11px;color:var(--muted)}.ogl-opcard code{font-size:11px;white-space:normal} +.ogl-opbadge{font-size:10px;font-weight:850;padding:3px 7px;border-radius:5px;background:#1b4262;color:#b9f4ff} +.ogl-opbadge.write{background:#4b351d;color:#ffce80} +.ogl-status-ok{color:#52e3ac}.ogl-status-error{color:#ff9797} +#page-repository .section{min-height:125px} +@media(max-width:1180px){.ogl-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ogl-release-grid{grid-template-columns:1fr 1fr}} +@media(max-width:850px){.shell{grid-template-columns:1fr}nav{position:relative;top:auto;width:100%;height:auto;max-height:440px}.nav-scroll{max-height:285px}.ogl-status-grid,.ogl-release-grid,.ogl-panel-split,.ogl-operation-grid{grid-template-columns:1fr}.ogl-command-bar{align-items:start;flex-direction:column}.navmeta{display:none}}Autoritativ aus GitHub; bei Fehlern keine erfundenen Versionen.
Jede Aktion verwendet den bestehenden, berechtigten World-API-Vertrag.
Stable ist der neueste veröffentlichte Nicht-Prerelease-GitHub-Release. Development basiert auf main, nicht auf einer behaupteten Stable-Freigabe.
Die Daten werden ausschließlich lesend von der offiziellen GitHub-API geladen.
Hinweis: Eine GitHub-Freigabe ist nicht identisch mit der momentan auf diesem ROBUST-Host installierten Version. Der lokale Build steht im Dashboard unter „Server“.
Einwohnerkonten, Registrierung, Profile, Aktivität und Sperr-/Löschabläufe.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Gruppenprofile, Mitglieder, Einladungen, Rechte, Gruppenland und Finanzen.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Eigentümerbezogenes Inventar, Medien-Assets und geschützte Bestandsoperationen.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Avatarprofile, Profilbilder, First-Life und sichere Media-Verwaltung.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Banking, Zahlungen, Wallets, Verkäufe und Ledger-/Revisionsprozesse.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Veröffentlichte Bilder, Publisher-Scopes, Media-Bindungen und Katalog-Schnittstellen.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Suche, Destination Guide, Places, Events und Community-Discovery.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Verwaltung und Berechtigungen der vorhandenen Experiences-API.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Audithistorie, Benutzer-Sicherheit, Rollen und autorisierte Schutzfunktionen.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Regions- und Estate-Konfiguration, Parzellen und Gruppenzuordnung.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Kontrollierte Serverfunktionen und Jobs über bereits geprüfte HTTP-Endpunkte. Keine unbeschränkte Shell.
Aus dem aktiven OpenAPI-Vertrag dieses Servers. Ein Klick öffnet die echte Operation mit Parametern, Berechtigungen und Ausführung im API-Explorer; nicht vorhandene Funktionen werden nicht simuliert.
Prüfe die tatsächlich erreichbaren World-API-Dienste dieses OGL-Servers. Kein Demo-Status, keine Datenbankänderungen.
Diese Prüfung liest ausschließlich den aktuellen Health-/Versions-/OpenAPI-Zustand, die ChatGPT-Anweisung und den optionalen Node-Lizenzdienst. Keine schreibenden Aktionen.
@@ -646,7 +780,7 @@ Archivprüfungen bleiben auch für freigegebene Importe aktiv.Bestehende Schlüssel lassen sich jetzt um Berechtigungen wie statistics:read erweitern, ohne ihren Schlüsselwert auszutauschen. Klicke beim gewünschten Schlüssel auf Berechtigungen bearbeiten. Die Liste zeigt nur zulässige Maschinen-Scopes; admin:* und interaktive Scopes bleiben gesperrt. Es erscheinen ausschließlich ID, Name, Scopes und letzte Nutzung, niemals geheime Werte.
Scope-Änderungen gelten ab der nächsten API-Authentifizierung mit dem gleichen Schlüssel. Der vollständige Secret-Wert wird nicht erneut angezeigt. Die Bearbeitung sowie Aktivierung, Deaktivierung und Löschung verlangen Administratorrechte und werden protokolliert. Für dauerhafte Löschung zuerst deaktivieren.
@@ -795,14 +929,120 @@ function categoryLabel(value){return categoryLabels[value]||value||''} function audienceLabel(value){return audienceLabels[value]||value||''} function languageLabel(value){return languageLabels[value]||value||''} + +/* OpenGenesisLINK modular dashboard and category workspaces */ +const oglWorkspaceGroups={"users":["/api/v1/users","/api/v1/auth"],"groups":["/api/v1/groups"],"inventory":["/api/v1/inventory","/api/v1/media/assets","/api/v1/media/inventory"],"profiles":["/api/v1/profiles","/api/v1/media/profiles","/api/v1/media/uploads"],"economy":["/api/v1/economy","/api/v1/banking","/api/v1/commerce","/api/v1/groups/{groupId}/transactions"],"marketplace":["/api/v1/media/marketplace","/api/v1/media/uploads","/api/v1/media/assets"],"discovery":["/api/v1/discovery","/api/v1/search","/api/v1/events","/api/v1/places"],"experiences":["/api/v1/experiences"],"security":["/api/v1/audit","/api/v1/security","/api/v1/auth/api-keys","/api/v1/feature-control"],"estates":["/api/v1/estates","/api/v1/regions","/api/v1/grid","/api/v1/groups/{groupId}/land"],"console":["/api/v1/jobs","/api/v1/nodes","/api/v1/regions","/api/v1/feature-control","/api/v1/maintenance","/api/v1/backup","/api/v1/oar","/api/v1/iar"]}; +let oglGitCache=null,oglGitLoadedAt=0,oglGitPending=null; +function oglWorkspaceOpen(entry){ + showPage('explorer'); + endpointAudience='all'; + document.querySelectorAll('[data-endpoint-audience]').forEach(x=>x.classList.toggle('active',x.dataset.endpointAudience==='all')); + $('search').value=''; + selectEntry(entry); + $('detail').scrollIntoView({behavior:'smooth',block:'start'}); +} +function oglRenderWorkspaces(){ + for(const [domain,prefixes] of Object.entries(oglWorkspaceGroups)){ + const host=$('workspace-'+domain);if(!host)continue; + host.replaceChildren(); + const search=document.querySelector('[data-workspace-search="'+domain+'"]'); + const q=(search?.value||'').trim().toLowerCase(); + const matches=entries.filter(x=>prefixes.some(p=>x.path.startsWith(p))).filter(x=> + !q||[x.method,x.path,x.op.summary||'',x.op['x-nexverse-scope']||''].join(' ').toLowerCase().includes(q)); + $('workspace-count-'+domain).textContent=matches.length+' Operationen'; + if(!matches.length){ + const empty=document.createElement('div');empty.className='empty'; + empty.textContent=q?'Keine passenden Operationen.':'Der laufende Server stellt für diese Kategorie derzeit keine passende API-Operation bereit.'; + host.append(empty);continue; + } + for(const entry of matches){ + const b=document.createElement('button');b.type='button';b.className='ogl-opcard'; + const badge=document.createElement('span');badge.className='ogl-opbadge'+(entry.method!=='GET'?' write':'');badge.textContent=entry.method; + const path=document.createElement('code');path.textContent=entry.path; + const summary=document.createElement('small');summary.textContent=entry.op.summary||'API-Operation'; + const scope=document.createElement('small');scope.textContent='Scope: '+(entry.op['x-nexverse-scope']||'laut OpenAPI-Vertrag'); + b.append(badge,path,summary,scope);b.addEventListener('click',()=>oglWorkspaceOpen(entry));host.append(b); + } + } +} +document.querySelectorAll('[data-workspace-search]').forEach(input=>input.addEventListener('input',oglRenderWorkspaces)); +function oglGithubText(id,text){const element=$(id);if(element)element.textContent=String(text||'–')} +async function oglLoadGithub(force=false){ + if(oglGitPending)return oglGitPending; + if(!force&&oglGitCache&&Date.now()-oglGitLoadedAt<300000){oglRenderGithub(oglGitCache);return} + oglGithubText('githubState','Prüfe GitHub…'); + oglGitPending=(async()=>{ + try{ + const response=await fetch('/api/v1/repository/status',{cache:'no-store',credentials:'same-origin',headers:{Accept:'application/json'}}); + if(!response.ok)throw Error('World-API Repository-Status HTTP '+response.status); + const data=await response.json(); + if(!data||data.source!=='github'||!Array.isArray(data.fail))throw Error('Ungültige GitHub-Statusantwort'); + oglGitCache=data;oglGitLoadedAt=Date.now(); + oglRenderGithub(data); + }catch(error){ + if(oglGitCache){ + oglRenderGithub(oglGitCache); + oglGithubText('githubState','Zwischengespeicherter Status (GitHub derzeit nicht erreichbar)'); + }else{ + oglGithubText('githubState','GitHub nicht erreichbar'); + if($('githubDot'))$('githubDot').className='dot bad'; + for(const id of ['githubStableVersion','githubDevelopmentVersion','githubCiVersion', + 'dashStable','dashDevelopment','dashWorkflow'])oglGithubText(id,'Nicht verfügbar'); + oglGithubText('dashboardRepository','Repository-Status konnte nicht geladen werden. Keine Versionsnummer wird geraten.'); + } + } + })().finally(()=>{oglGitPending=null}); + return oglGitPending; +} +function oglRenderGithub(d){ + const release=d.release,commit=d.commit,run=d.ci?.workflow_runs?.[0]; + const stable=release?.tag_name||'Nicht verfügbar'; + const dev=commit?.sha?'main · '+commit.sha.slice(0,8):'Nicht verfügbar'; + const roadmap=spec?.['x_nexverse_roadmap']; + const current=String(roadmap?.current_milestone||''); + const planned=(roadmap?.milestones||[]).filter(x=>x.status==='planned'&&String(x.version)>current) + .sort((x,y)=>String(x.version).localeCompare(String(y.version),undefined,{numeric:true}))[0]; + const devLabel=planned?.version?planned.version+' · geplant':dev; + const ci=run?(run.conclusion||run.status||'unbekannt'):'Nicht verfügbar'; + oglGithubText('githubStableVersion',stable); + oglGithubText('dashStable',stable); + oglGithubText('dashStableMeta',release?.published_at?'Veröffentlicht '+new Date(release.published_at).toLocaleDateString('de-DE'):'Release-API nicht verfügbar'); + oglGithubText('githubStableInfo',release?.name||'Kein bestätigter Release-Status. Keine Version wird geraten.'); + oglGithubText('githubDevelopmentVersion',devLabel); + oglGithubText('dashDevelopment',devLabel); + oglGithubText('dashDevelopmentMeta',commit?'main '+commit.sha.slice(0,8)+' · kein Release':'Branch-Status nicht verfügbar'); + oglGithubText('githubDevelopmentInfo',commit?.commit?.message?.split('\n')[0]||'Letzter main-Commit nicht abrufbar.'); + oglGithubText('githubLastCommit',commit?'Letzter Entwicklungscommit: '+commit.sha+' · '+(commit.commit?.author?.date||'Zeit unbekannt'):'GitHub-main ist derzeit nicht erreichbar.'); + oglGithubText('githubCiVersion',ci); + oglGithubText('dashWorkflow',ci); + oglGithubText('dashWorkflowMeta',run?'Lauf #'+run.run_number:'CI-Status unbekannt'); + oglGithubText('githubCiInfo',run?'Workflow: '+run.name+' · '+(run.head_sha||'').slice(0,8):'Kein bestätigter CI-Lauf gefunden.'); + oglGithubText('githubReleaseNotes',release?.body?'Release: '+String(release.body).slice(0,460):'Keine Release-Notizen aus GitHub verfügbar.'); + oglGithubText('githubUpdated','Stand '+new Date(d.at).toLocaleString('de-DE')+' · '+(d.fail.length?'Teilweise nicht erreichbar (HTTP-/Netzwerkfehler)':'GitHub REST API (kein Demo-Wert)')); + oglGithubText('githubState',d.fail.length?'Teilweise nicht erreichbar':'GitHub verbunden'); + if($('githubDot'))$('githubDot').className='dot '+(d.fail.length?'bad':'good'); + oglGithubText('dashboardRepository','Stable '+stable+' | Development '+dev+' | CI '+ci+'. Veröffentlichte GitHub-Version und lokaler ROBUST-Build können sich unterscheiden.'); +} +if($('githubRefresh'))$('githubRefresh').addEventListener('click',()=>oglLoadGithub(true)); +function oglFilterKeys(){ + const needle=($('secretKeySearch')?.value||'').trim().toLowerCase(); + const filter=$('secretKeyState')?.value||'all'; + document.querySelectorAll('#secretKeyList > .change').forEach(card=>{ + const matching=!needle||(card.dataset.keySearch||'').includes(needle); + const active=card.dataset.keyEnabled==='true'; + card.hidden=!(matching&&(filter==='all'||(filter==='active'&&active)||(filter==='disabled'&&!active))); + }); +} function showPage(name){ - if(['secrets','nodes','grid'].includes(name)&&!adminIsActive()){ + if(['secrets','nodes','grid','security','console'].includes(name)&&!adminIsActive()){ adminNextPage=name; name='adminlogin'; adminUpdateStatus('Anmeldung mit UserLevel >= 200 erforderlich.',null); } document.querySelectorAll('.page').forEach(x=>x.classList.toggle('active',x.id==='page-'+name)); - document.querySelectorAll('.navbtn').forEach(x=>x.classList.toggle('active',x.dataset.page===name)); + document.querySelectorAll('.navbtn').forEach(x=>{x.classList.toggle('active',x.dataset.page===name);if(x.dataset.page===name)x.closest('details')?.setAttribute('open','');}); + if(name==='repository')oglLoadGithub(); + if(oglWorkspaceGroups[name])oglRenderWorkspaces(); window.scrollTo({top:0,behavior:'smooth'}); } document.querySelectorAll('.navbtn').forEach(x=>x.addEventListener('click',()=>showPage(x.dataset.page))); @@ -992,6 +1232,8 @@ function renderStatistics(data){ const residents=data.residents||{},hg=data.hypergrid||{},online=data.online||{}; const protectedDetails=data.protected_details===true; statText('statRegistered',residents.registered_total); + oglGithubText('dashResidents',residents.registered_total==null?'–':residents.registered_total); + oglGithubText('dashOnline',online.total==null?'–':online.total); statText('statOnlineTotal',online.total); statText('statResidentsOnline',residents.online_now); statText('statActive7',residents.active_last_7_days); @@ -1893,7 +2135,8 @@ function secretRenderKeyInventory(keys, supportedScopes) { $('secretListStatus').textContent=keys.length+' Schlüssel registriert. '+ duplicates+' aktive Duplikatgruppe(n) gefunden. Kein Schlüssel wurde automatisch verändert.'; for(const key of keys){ - const card=document.createElement('div');card.className='change'; + const card=document.createElement('div');card.className='change';card.dataset.keyEnabled=key.enabled?'true':'false'; + card.dataset.keySearch=[key.name||'',key.key_id||'',...(key.scopes||[])].join(' ').toLowerCase(); const title=document.createElement('strong'); title.textContent=(key.name||'Unbenannt')+(key.enabled?' · Aktiv':' · Deaktiviert'); card.append(title); @@ -1967,6 +2210,7 @@ function secretRenderKeyInventory(keys, supportedScopes) { card.append(editor); host.append(card); } + oglFilterKeys(); } async function secretEditKeyScopes(key,scopes) { try{ @@ -2242,7 +2486,8 @@ async function init(){ $('navmeta').textContent=(version.server_version||'OpenGenesisLINK')+' · '+(version.api_version||'API')+' · '+languageLabel(version.language||spec['x_nexverse_language']||'de-DE'); if(changes.length){$('lastChangeDate').textContent=changes[0].date||'–';$('lastChangeTitle').textContent=changes[0].title||''} const overview=$('overviewChanges');overview.replaceChildren();changes.slice(0,4).forEach(x=>overview.append(makeChange(x)));if(!changes.length)overview.innerHTML='