Publish appeal decision cards and prioritised Support Center requests
This commit is contained in:
parent
3a3d5b78a7
commit
fbba0efe68
21 changed files with 184 additions and 13 deletions
12
website/PUBLIC-MODERATION-20261102.md
Normal file
12
website/PUBLIC-MODERATION-20261102.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Public moderation display — 2 November 2026
|
||||
|
||||
Owner explicitly requested immediate execution as an exception to the scheduled backlog.
|
||||
|
||||
- Homepage: Latest bans contains 12 real public active records, excluding demo and unresolved legacy identities before the limit. Latest appeal decisions sits immediately below, six per page, approved/denied only, with original public ban fields and CSS imperial sand/gold decision seals.
|
||||
- Public ban list: 50/page, includes inactive records with appeals, separate actual Active/Unbanned state and latest appeal decision. Pending derives from an open native ticket; closing an undecided ticket does not fabricate approval, and a fresh appeal supersedes the previous public decision. Explicit approved/denied decisions survive native ticket closure.
|
||||
- Privacy: no requester IDs, evidence, private decision reasons, ticket contents or Minecraft UUID field added. Existing unresolved legacy/demo exclusions remain. Decision-card endpoint returned 38 publishable records over seven pages at verification; excluded records are not made public merely because a system appeal exists.
|
||||
- Shared navigation: Home and Support center UPDATE badges; native Support link spacing matches public header. A misplaced badge entry briefly broke navigation tuple rendering during implementation; corrected, then added a regression test. Actual fresh browser verified all 11 navigation images loaded and both badges rendered.
|
||||
|
||||
Checks: four focused Node tests passed, including real SQLite query execution with pending/denied/approved, closed ticket, reopened appeal, pagination boundaries, private fields and demo/legacy filtering. Live HTTP verified 12 latest bans, six first-page decisions/two on last page and 50 public-list rows. Browser clicked Next and confirmed page 2 with six different cards. Desktop six columns/no horizontal overflow. Support desktop nav width matched public nav at 1029.6px in the same 1280px viewport; mobile 390px menu opened correctly, no overflow.
|
||||
|
||||
Deployment: backed up native web entry and modules at `/root/public-appeals-before-20261102`, surgically changed only the relevant embedded assets and routes/modules, restarted only `dunerealms-web`. No world, inventory engine, payment or game ban mutation in this display change. Rollback uses the backed-up entry plus both modules together. Existing Alpha release tag is unchanged.
|
||||
35
website/content/support-center-guide.md
Normal file
35
website/content/support-center-guide.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Your guide to the DuneRealms Support Center
|
||||
|
||||
Every journey encounters a blocked passage. The DuneRealms Support Center gives you one place to ask for help, request a review and follow the response from the right team.
|
||||
|
||||
Open the [Support Center](https://support.dunerealms.com/) and choose the card that matches your request. The page now puts parental and privacy requests first, followed by general support, ban appeals and Alpha tester applications.
|
||||
|
||||
## Parents and guardians
|
||||
|
||||
Use Parental requests for consent questions or help concerning a child's account. A separate link handles requests to remove a child's account data. These requests go to the Legal department for manual review. Submitting a form does not automatically establish guardianship, grant consent or change access.
|
||||
|
||||
Provide the relevant account or Minecraft username and explain what you need. Do not attach passwords, government identity documents or unrelated personal information. Staff will explain any further verification through the private ticket.
|
||||
|
||||
## Privacy and account-data removal
|
||||
|
||||
The GDPR data removal card opens a dedicated Legal request. Identify the account concerned and describe the data or account action you are requesting. The team checks ownership and the scope of the request before taking action. This is a request for review, not an automatic deletion button or a promise that every historical record will be erased.
|
||||
|
||||
## General support
|
||||
|
||||
For account, website or game problems, choose General support. Include what you expected, what happened instead, where and when it happened, and what you already tried. Exact error messages and relevant screenshots make reports easier to reproduce. Some gameplay requests require a verified Minecraft link; the form will explain the applicable requirements.
|
||||
|
||||
## Ban appeals
|
||||
|
||||
Open Appeal a ban and enter the ban ID. The form links your appeal to the original moderation record so staff can review the correct case. Explain the situation and provide relevant evidence. An appeal is private; evidence and ticket conversations are not published on the public ban list.
|
||||
|
||||
Submitting an appeal does not remove an active ban. The public register shows PENDING while an appeal awaits a decision, then APPROVED or DENIED when that decision is recorded. The ban's Active or Unbanned status is shown separately. Other bans on the same player can still apply. Closing a ticket alone is not an approval.
|
||||
|
||||
## Help test the Alpha
|
||||
|
||||
Want to help improve the realms? The Alpha tester card accepts applications from Java and Bedrock players. Tell us what you would like to test and how you can help. Support reviews applications manually; applying does not automatically grant a role or reward.
|
||||
|
||||
## Follow your request
|
||||
|
||||
Use your DuneRealms account and the ticket-status link to return to existing requests. Keep follow-up information in the same ticket so the team has the full context. Requests are available to the requester and authorised staff; public moderation cards show only the public ban information and appeal status.
|
||||
|
||||
[Choose a support request](https://support.dunerealms.com/) · [View the public ban register](https://www.dunerealms.com/bans.html)
|
||||
15
website/integrations/osticket/SUPPORT-HOME-20261102.md
Normal file
15
website/integrations/osticket/SUPPORT-HOME-20261102.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Support homepage deployment — 2 November 2026
|
||||
|
||||
Install `support-index.php` as the native osTicket `index.php`, alongside `dune-support-home.php` and `dune-support-home.css`. Keep native session, header and footer handling. The template resolves only the public topic catalogue; absent topics produce no broken or private-topic links.
|
||||
|
||||
The live catalogue now has `GDPR data removal request` (topic 19), public, routed to Legal (department 6). It was cloned from the existing parental-removal topic's routing/SLA configuration, with team assignment cleared and only the standard Ticket Details form (form 2) attached. The parental-only form was not copied. Topic notes require manual ownership/scope review and prohibit passwords/government-ID uploads at intake. No automatic data deletion or new staff permissions were implemented. New topic creation was transactional and name-guarded; existing topics were not edited.
|
||||
|
||||
The account integration adds this exact topic name to the existing Minecraft-link exemption for legal/parental/appeal requests. Existing DuneRealms sign-in and staff permission checks remain in place. It does not grant anonymous access to private tickets or bypass staff controls.
|
||||
|
||||
Cards are ordered: parental requests, GDPR removal, general support, ban appeal, Alpha signup. The parental card also links to the existing child-data-removal topic. Old welcome content and the sidebar are omitted by the new index; the legacy Alpha invitation injector is avoided by the new root ID, so there is one Alpha card rather than two. Existing database landing-page text is preserved, not deleted.
|
||||
|
||||
Verification: PHP routing/template test passed, all changed PHP files linted, live homepage displayed five cards in order, old welcome absent, no duplicate Alpha invitation, desktop and 390px mobile without horizontal overflow. Actual GDPR form opened with its topic selected; no test request or deletion was submitted. Native Legal routing was checked directly. Support desktop menu now matches public-site spacing and hides the hamburger; mobile menu opens as a grid without overflow.
|
||||
|
||||
Private rollback: `/root/support-cards-before-20261102` contains previous native index/authentication files and topic/form configuration snapshots. Restore only the changed files/configuration after checking for subsequent edits. Disable the new topic if rolling back; do not overwrite live tickets or restore entire topic tables blindly.
|
||||
|
||||
Published guide source: `website/content/support-center-guide.md`; public post ID `80e13e9f-846c-4d79-856d-fe6d6f5b23ee`, source key `manual:support-center-guide-20261102`, category Community. This is a new owner-authorized post; no existing article was overwritten.
|
||||
|
|
@ -60,7 +60,7 @@ class DuneAccountsPlugin extends Plugin {
|
|||
}
|
||||
if($file==='open.php'&&($_SERVER['REQUEST_METHOD']??'')==='POST'&&!$identity['linked']&&empty($identity['gameLinkExempt'])){
|
||||
$topic=Topic::lookup((int)($_POST['topicId']??0));
|
||||
if(!$topic||!in_array($topic->getName(),['Ban appeal','Parental consent request [Preview]','Parental data removal [Preview]'],true)){dune_account_required('support');}
|
||||
if(!$topic||!in_array($topic->getName(),['Ban appeal','Parental consent request [Preview]','Parental data removal [Preview]','GDPR data removal request'],true)){dune_account_required('support');}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
2
website/integrations/osticket/dune-support-home.css
Normal file
2
website/integrations/osticket/dune-support-home.css
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
body.dune-support #dune-support-home.dune-support-home{display:block!important;width:100%!important;padding:20px!important;box-sizing:border-box}
|
||||
.dune-support-options{display:grid;gap:20px}.dune-support-card{display:grid;grid-template-columns:180px minmax(0,1fr);gap:28px;align-items:center;padding:26px;border:1px solid #aa8d48;border-radius:16px;background:linear-gradient(120deg,#203f32,#11291f);box-shadow:0 5px 20px #0002;color:#ebe3cf;box-sizing:border-box}.dune-support-card img{width:180px;height:120px;object-fit:contain;border-radius:10px}.dune-support-card h2{margin:10px 0 16px!important;color:#e6cb85!important;font:700 26px/1.3 system-ui!important}.dune-support-card .eyebrow{font:600 10px/1.4 system-ui;letter-spacing:.13em;color:#d7c496}.dune-support-card p{line-height:1.6;margin:0 0 12px}.dune-support-card a.button{display:inline-flex;padding:11px 18px;border:1px solid #c4a456;border-radius:8px;background:#10291f;color:#e8cf8d;font:700 14px/1.4 system-ui;text-decoration:none;box-shadow:0 3px 8px #0003}.dune-support-card a:hover{filter:brightness(1.15)}.dune-support-card a:focus-visible{outline:3px solid #e5cb82;outline-offset:4px}.dune-secondary-request{display:inline-block;margin:10px 16px;color:#e1c680}.dune-support-track{padding:18px;color:#bdcdbc;line-height:1.6}.dune-support-track a{color:#e4c784}@media(max-width:650px){body.dune-support #dune-support-home.dune-support-home{padding:12px!important}.dune-support-card{grid-template-columns:1fr;padding:20px;gap:14px}.dune-support-card img{width:130px;height:90px}.dune-support-card h2{font-size:23px!important}.dune-secondary-request{margin:16px 0;display:block}}
|
||||
33
website/integrations/osticket/dune-support-home.php
Normal file
33
website/integrations/osticket/dune-support-home.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
// Public catalogue only: no private ticket information is rendered here.
|
||||
$publicTopics = Topic::getPublicHelpTopics();
|
||||
$topicUrl = static function ($name) use ($publicTopics) {
|
||||
foreach ($publicTopics as $id => $label) if ($label === $name) return '/open.php?topicId='.(int)$id;
|
||||
return null;
|
||||
};
|
||||
$cards = [
|
||||
['Parental requests','FOR PARENTS & GUARDIANS','Request parental consent or ask about a child’s account. The Legal team reviews requests manually; this form does not automatically grant consent or change an account.','Parental consent request [Preview]','Open parental request','seals/department-legal-v2-150.png'],
|
||||
['GDPR data removal','PRIVACY & ACCOUNT DATA','Ask the Legal team to review deletion of your account data. Identify the relevant account and explain your request. Ownership and scope are verified before any action. Do not upload passwords or identity documents.','GDPR data removal request','Request data removal','seals/department-legal-150.png'],
|
||||
['General support','ACCOUNT, WEBSITE & GAME HELP','Tell Support what went wrong, where it happened, when it happened and what you tried. Include the error message or a relevant screenshot without passwords or unrelated personal information.','General support','Get support','nav-support-full-v2.webp'],
|
||||
['Appeal a ban','REQUEST A MODERATION REVIEW','Use the ban ID to open a private appeal linked to the original ban. Explain the situation and attach relevant evidence. A pending appeal does not itself remove a ban.','Ban appeal','Open ban appeal','seals/department-ban-appeals-150.png'],
|
||||
['Become an Alpha tester','HELP SHAPE THE REALMS','Java or Bedrock, new or experienced: tell us what you would like to test. Applications are reviewed privately by Support.','Alpha Tester Signup','Sign up for Alpha testing','news-community.webp'],
|
||||
];
|
||||
$esc = static fn($v) => htmlspecialchars((string)$v, ENT_QUOTES, 'UTF-8');
|
||||
?>
|
||||
<link rel="stylesheet" href="/dune-support-home.css?v=20261102-1">
|
||||
<div id="dune-support-home" class="dune-support-home">
|
||||
<div class="dune-support-options" aria-label="Support request types">
|
||||
<?php foreach ($cards as [$title,$label,$description,$topic,$button,$art]):
|
||||
$url = $topicUrl($topic); if (!$url) continue;
|
||||
if ($topic === 'Ban appeal') $url = '/appeal.php';
|
||||
if ($topic === 'Alpha Tester Signup') $url = '/alpha-signup.php'; ?>
|
||||
<section class="dune-support-card">
|
||||
<img src="https://www.dunerealms.com/assets/<?=$esc($art)?>" alt="" width="180" height="120" loading="lazy">
|
||||
<div><p class="eyebrow"><?=$esc($label)?></p><h2><?=$esc($title)?></h2><p><?=$esc($description)?></p><a class="button" href="<?=$esc($url)?>"><?=$esc($button)?></a>
|
||||
<?php if ($topic === 'Parental consent request [Preview]' && ($removal=$topicUrl('Parental data removal [Preview]'))): ?><a class="dune-secondary-request" href="<?=$esc($removal)?>">Child’s account data removal →</a><?php endif; ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<p class="dune-support-track"><a href="/view.php">Check an existing ticket →</a> · Requests are private to the requester and authorised staff. Submitting a request does not automatically change an account.</p>
|
||||
</div>
|
||||
13
website/integrations/osticket/support-home-test.php
Normal file
13
website/integrations/osticket/support-home-test.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
class Topic {
|
||||
static $topics=[1=>'General support',2=>'Ban appeal',14=>'Parental consent request [Preview]',15=>'Parental data removal [Preview]',18=>'Alpha Tester Signup',19=>'GDPR data removal request'];
|
||||
static function getPublicHelpTopics(){return self::$topics;}
|
||||
}
|
||||
function render(){ob_start();include __DIR__.'/dune-support-home.php';return ob_get_clean();}
|
||||
function check($v){if(!$v)throw new RuntimeException('Support home regression');}
|
||||
$html=render();check(substr_count($html,'class="dune-support-card"')===5);
|
||||
$previous=-1;foreach(['Parental requests','GDPR data removal','General support','Appeal a ban','Become an Alpha tester'] as $name){$at=strpos($html,'<h2>'.$name.'</h2>');check($at!==false&&$at>$previous);$previous=$at;}
|
||||
foreach(['/open.php?topicId=14','/open.php?topicId=15','/open.php?topicId=19','/open.php?topicId=1','/appeal.php','/alpha-signup.php','/view.php'] as $url)check(str_contains($html,'href="'.$url.'"'));
|
||||
check(!str_contains($html,'Welcome to the Support Center'));check(str_contains($html,'does not automatically'));
|
||||
unset(Topic::$topics[19]);$without=render();check(!str_contains($without,'Request data removal'));check(substr_count($without,'class="dune-support-card"')===4);
|
||||
echo "Support home public-topic routing, priority, missing-topic and content checks passed\n";
|
||||
7
website/integrations/osticket/support-index.php
Normal file
7
website/integrations/osticket/support-index.php
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
// Install as index.php, retaining native osTicket session, header and footer.
|
||||
require('client.inc.php');
|
||||
$section='home';
|
||||
require(CLIENTINC_DIR.'header.inc.php');
|
||||
require __DIR__.'/dune-support-home.php';
|
||||
require(CLIENTINC_DIR.'footer.inc.php');
|
||||
|
|
@ -1,17 +1,26 @@
|
|||
export async function publicBanCards(db){
|
||||
try{const response=await fetch('http://127.0.0.1:3003/api/public/bans',{signal:AbortSignal.timeout(4000)});if(response.ok){const data=await response.json();if(Array.isArray(data.bans))return Response.json(data,{headers:{'Cache-Control':'no-store'}});}}catch{}
|
||||
const {results}=await db.prepare('SELECT id,source_key,player_name,banned_by,reason,scope,created_text,expires_text FROM moderation_bans WHERE active=1 ORDER BY first_seen DESC,id DESC LIMIT 12').all();
|
||||
|
||||
const {results}=await db.prepare("SELECT id,source_key,player_name,banned_by,reason,scope,created_text,expires_text FROM moderation_bans WHERE active=1 AND scope<>'yousmp-legacy' AND source_key NOT LIKE 'demo:%' ORDER BY first_seen DESC,id DESC LIMIT 12").all();
|
||||
return Response.json({bans:results.map(({source_key,...ban})=>({...ban,demo:source_key.startsWith('demo:')}))},{headers:{'Cache-Control':'no-store'}});
|
||||
}
|
||||
|
||||
const appealProjection="(SELECT CASE WHEN a.status IN ('approved','denied','approving') THEN a.status WHEN s.state='open' THEN 'pending' ELSE 'closed' END FROM native_ban_appeals a LEFT JOIN drsupport_ticket t ON t.ticket_id=a.ticket_id LEFT JOIN drsupport_ticket_status s ON s.id=t.status_id WHERE a.ban_id=moderation_bans.id ORDER BY a.opened_at DESC,a.id DESC LIMIT 1) AS appeal_status";
|
||||
const publicRecord=b=>({id:b.id,player:b.player_name,issuedBy:/^(console|0)$/i.test(String(b.banned_by).trim())?'Network':b.banned_by,reason:b.reason,scope:b.scope==='network'?'Network':b.scope,issued:b.created_text,expires:b.expires_text,status:Number(b.active)===0?'Unbanned':'Active',appealStatus:['pending','approving'].includes(b.appeal_status)?'pending':['approved','denied'].includes(b.appeal_status)?b.appeal_status:null});
|
||||
export async function publicAppealCards(db,request){
|
||||
const raw=Number(new URL(request.url).searchParams.get('page')||1),requested=Number.isSafeInteger(raw)&&raw>0?Math.min(raw,100000):1;
|
||||
const where="scope<>'yousmp-legacy' AND source_key NOT LIKE 'demo:%' AND (SELECT a.status FROM native_ban_appeals a WHERE a.ban_id=moderation_bans.id ORDER BY a.opened_at DESC,a.id DESC LIMIT 1) IN ('approved','denied')";
|
||||
const total=Number((await db.prepare('SELECT COUNT(*) AS total FROM moderation_bans WHERE '+where).first())?.total||0),pages=Math.max(1,Math.ceil(total/6)),page=Math.min(requested,pages);
|
||||
const {results}=await db.prepare('SELECT id,player_name,banned_by,reason,scope,created_text,expires_text,active,'+appealProjection+' FROM moderation_bans WHERE '+where+' ORDER BY (SELECT MAX(a.decided_at) FROM native_ban_appeals a WHERE a.ban_id=moderation_bans.id) DESC,id DESC LIMIT 6 OFFSET '+((page-1)*6)).all();
|
||||
return Response.json({bans:results.map(publicRecord),page,pages,total,pageSize:6},{headers:{'Cache-Control':'no-store'}});
|
||||
}
|
||||
export async function publicBanList(db,request){
|
||||
const url=new URL(request.url),raw=Number(url.searchParams.get('page')||1),q=(url.searchParams.get('q')||'').trim().slice(0,80);
|
||||
const requested=Number.isSafeInteger(raw)&&raw>0?Math.min(raw,100000):1;
|
||||
const where="active=1 AND scope<>'yousmp-legacy' AND source_key NOT LIKE 'demo:%'"+(q?' AND (player_name LIKE ? OR reason LIKE ? OR scope LIKE ?)':'');
|
||||
const where="(active=1 OR EXISTS (SELECT 1 FROM native_ban_appeals a WHERE a.ban_id=moderation_bans.id)) AND scope<>'yousmp-legacy' AND source_key NOT LIKE 'demo:%'"+(q?' AND (player_name LIKE ? OR reason LIKE ? OR scope LIKE ?)':'');
|
||||
const values=q?Array(3).fill('%'+q+'%'):[];
|
||||
const count=await db.prepare('SELECT COUNT(*) AS total FROM moderation_bans WHERE '+where).bind(...values).first();
|
||||
const total=Number(count?.total||0),pages=Math.max(1,Math.ceil(total/50)),page=Math.min(requested,pages);
|
||||
const {results}=await db.prepare('SELECT id,player_name,banned_by,reason,scope,created_text,expires_text FROM moderation_bans WHERE '+where+' ORDER BY REPLACE(created_text,"T"," ") DESC,id DESC LIMIT 50 OFFSET '+((page-1)*50)).bind(...values).all();
|
||||
const bans=results.map(b=>({id:b.id,player:b.player_name,issuedBy:/^(console|0)$/i.test(String(b.banned_by).trim())?'Network':b.banned_by,reason:b.reason,scope:b.scope==='network'?'Network':b.scope,issued:b.created_text,expires:b.expires_text}));
|
||||
const {results}=await db.prepare('SELECT id,player_name,banned_by,reason,scope,created_text,expires_text,active,'+appealProjection+' FROM moderation_bans WHERE '+where+' ORDER BY REPLACE(created_text,\'T\',\' \') DESC,id DESC LIMIT 50 OFFSET '+((page-1)*50)).bind(...values).all();
|
||||
const bans=results.map(publicRecord);
|
||||
return Response.json({bans,page,pages,total,pageSize:50},{headers:{'Cache-Control':'no-store'}});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import {createContact} from './contact.mjs';
|
|||
import {createGameLink} from './game-link.mjs';
|
||||
import {createCommunityRewards} from './community-rewards.mjs';
|
||||
import {createPublicNews,initializeNews} from './news.mjs';
|
||||
import {publicBanCards,publicBanList} from './public-bans.mjs';
|
||||
import {publicBanCards,publicBanList,publicAppealCards} from './public-bans.mjs';
|
||||
const root=new URL('./public/',import.meta.url);
|
||||
const security={'X-Content-Type-Options':'nosniff','Referrer-Policy':'strict-origin-when-cross-origin','Content-Security-Policy':"default-src 'self'; frame-src 'self' https://cp.dunerealms.com; img-src 'self' data: https://www.dunerealms.com https://cp.dunerealms.com; style-src 'self' https://www.dunerealms.com https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; script-src 'self' https://www.dunerealms.com; connect-src 'self' https://cp.dunerealms.com https://www.dunerealms.com; base-uri 'self'; object-src 'none'; frame-ancestors 'self'"};
|
||||
export function createApplication(db,settings={}) {
|
||||
|
|
@ -46,6 +46,7 @@ export function createApplication(db,settings={}) {
|
|||
if(url.pathname.startsWith('/api/community/'))return rewards(request);
|
||||
if(url.pathname==='/api/game-link'||url.pathname.startsWith('/api/game-link/'))return gameLink(request);
|
||||
if(url.pathname.startsWith('/api/contact/'))return contact(request);
|
||||
if(url.pathname==='/api/public/appeals'&&request.method==='GET')return publicAppealCards(db,request);
|
||||
if(url.pathname==='/api/public/ban-list'&&request.method==='GET')return publicBanList(db,request);
|
||||
if(url.pathname==='/api/public/bans'&&request.method==='GET')return publicBanCards(db);
|
||||
if(url.pathname==='/api/worlds')return request.method==='GET'?worldStatus().then(r=>{const h=new Headers(r.headers);h.set('Access-Control-Allow-Origin','*');return new Response(r.body,{status:r.status,headers:h});}):new Response('Method not allowed',{status:405});
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ const hero=html.match(/<section class="hero"[\s\S]*?<\/section>/)?.[0],menu=html
|
|||
if(!hero)throw Error('The original 01 / Get the plugin hero must be preserved');
|
||||
function module(title,id,kind,archive=false){return '<section class="dispatch-module" id="'+id+'"><div class="dispatch-heading"><h2>'+title+'</h2><a href="'+(kind==='forum'?'https://forums.dunerealms.com/':'news-archive.html')+'">'+(kind==='forum'?'All discussions':'News archive')+' →</a></div><div data-news-module="'+kind+'"'+(archive?' data-archive="true"':'')+'></div></section>';}
|
||||
function assets(s){if(!s.includes('href="home-news.css"'))s=s.replace('</head>','<link rel="stylesheet" href="home-news.css"><script src="home-news.js" defer></script></head>');return s;}
|
||||
html=assets(html).replace('<body>','<body class="home-news">').replace(/<main id="main">[\s\S]*?<\/main>/,'<main id="main">'+module('News from the realms','home-news','news')+hero+module('Latest forum posts','home-forum','forum')+menu+'<section class="dispatch-module" id="home-bans"><div class="dispatch-heading"><h2>Latest bans & appeals</h2><span>PUBLIC MODERATION REGISTER · LATEST 9</span></div><div id="portal-ban-cards" class="dispatch-grid"><p>Loading moderation records…</p></div></section></main>');
|
||||
html=assets(html).replace('<body>','<body class="home-news">').replace(/<main id="main">[\s\S]*?<\/main>/,'<main id="main">'+module('News from the realms','home-news','news')+hero+module('Latest forum posts','home-forum','forum')+menu+'<section class="dispatch-module" id="home-bans"><div class="dispatch-heading"><h2>Latest bans</h2><span>PUBLIC MODERATION REGISTER · LATEST 12</span></div><div id="portal-ban-cards" class="dispatch-grid"><p>Loading moderation records…</p></div><p><a class="button" href="/bans.html">See full ban list →</a></p></section><section class="dispatch-module" id="home-appeals"><div class="dispatch-heading"><h2>Latest appeal decisions</h2><span>APPROVED & DENIED</span></div><div id="portal-appeal-cards" class="dispatch-grid"></div><nav id="appeal-pagination" aria-label="Appeal decisions pagination"></nav></section></main>');
|
||||
html=html.replace(/<section class="faction-frieze"[\s\S]*?<\/section>/g,'').replace(/<figure class="lore-frieze"[\s\S]*?<\/figure>/g,'');writeFileSync(file,html);
|
||||
const archive=html.replace(/<title>[^<]+<\/title>/,'<title>News archive — dunerealms.com</title>').replace(/<main id="main">[\s\S]*?<\/main>/,'<main id="main">'+hero+menu+'<article id="news-full-post" class="dispatch-full" hidden></article>'+module('News archive','archive-news','news',true)+'</main>');writeFileSync(new URL('news-archive.html',web),archive);
|
||||
for(const [name,title,section] of [['exchange','Exchange','exchange-content'],['forums','Community forums','forum-section'],['tickets','Support tickets','portal-section']]){
|
||||
|
|
|
|||
11
website/tests/header-badge-metadata.test.mjs
Normal file
11
website/tests/header-badge-metadata.test.mjs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import {readFileSync} from 'node:fs';
|
||||
test('release badge metadata does not contaminate navigation tuples',()=>{
|
||||
const js=readFileSync(new URL('../web/portal-navigation.js',import.meta.url),'utf8');
|
||||
assert(js.includes('const items=[["Home",'));
|
||||
const start=js.lastIndexOf('(()=>{const items=')+'(()=>{const items='.length;
|
||||
const items=JSON.parse(js.slice(start,js.indexOf(';function mark()',start)));
|
||||
assert(items.every(i=>!Array.isArray(i)&&typeof i.href==='string'));
|
||||
for(const href of ['https://www.dunerealms.com/','https://support.dunerealms.com/'])assert.equal(items.find(i=>i.href===href)?.updatedIn,'1.0.0.3');
|
||||
});
|
||||
|
|
@ -6,6 +6,6 @@ test('authored homepage retains one public ban module after its existing portal
|
|||
for(const id of ['home-news','home-forum','home-bans','portal-ban-cards'])assert.equal((html.match(new RegExp('id="'+id+'"','g'))||[]).length,1,id);
|
||||
const news=html.indexOf('id="home-news"'),hero=html.indexOf('class="hero"'),forum=html.indexOf('id="home-forum"'),menu=html.indexOf('id="realm-menu"'),bans=html.indexOf('id="home-bans"');
|
||||
assert(news<hero&&hero<forum&&forum<menu&&menu<bans&&bans<html.indexOf('</main>'));
|
||||
const block=html.slice(bans,html.indexOf('</section>',bans));assert(block.includes('Latest bans & appeals'));assert(block.includes('LATEST 9'));assert(block.includes('Loading moderation records…'));assert(!block.includes('DemoPlayer'));assert(!block.includes('minecraft_uuid'));assert(!block.includes('data-ban-id'));
|
||||
const script=readFileSync(new URL('../web/home-news.js',import.meta.url),'utf8');assert(script.includes('portal-ban-cards'));
|
||||
const block=html.slice(bans,html.indexOf('</section>',bans));assert(block.includes('Latest bans'));assert(block.includes('LATEST 12'));assert(block.includes('Loading moderation records…'));assert(!block.includes('DemoPlayer'));assert(!block.includes('minecraft_uuid'));assert(!block.includes('data-ban-id'));
|
||||
const script=readFileSync(new URL('../web/home-news.js',import.meta.url),'utf8');assert(script.includes('portal-ban-cards'));assert(html.indexOf('id="home-appeals"')>bans);assert(script.includes('/api/public/appeals?page='));
|
||||
});
|
||||
|
|
|
|||
19
website/tests/public-appeals.test.mjs
Normal file
19
website/tests/public-appeals.test.mjs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import {DatabaseSync} from 'node:sqlite';
|
||||
import {publicAppealCards,publicBanList} from '../node/public-bans.mjs';
|
||||
test('actual queries paginate decisions, track new appeals and protect private fields',async()=>{
|
||||
const sql=new DatabaseSync(':memory:');
|
||||
sql.exec('CREATE TABLE moderation_bans(id TEXT,source_key TEXT,player_name TEXT,banned_by TEXT,reason TEXT,scope TEXT,created_text TEXT,expires_text TEXT,active INTEGER); CREATE TABLE native_ban_appeals(id TEXT,ban_id TEXT,status TEXT,opened_at INTEGER,decided_at INTEGER,decision_reason TEXT,ticket_id INTEGER DEFAULT 1); CREATE TABLE drsupport_ticket(ticket_id INTEGER,status_id INTEGER);CREATE TABLE drsupport_ticket_status(id INTEGER,state TEXT);INSERT INTO drsupport_ticket VALUES(1,1);INSERT INTO drsupport_ticket_status VALUES(1,\'open\');');
|
||||
const ban=sql.prepare('INSERT INTO moderation_bans VALUES(?,?,?,?,?,?,?,?,?)'),appeal=sql.prepare('INSERT INTO native_ban_appeals(id,ban_id,status,opened_at,decided_at,decision_reason) VALUES(?,?,?,?,?,?)');
|
||||
for(let i=0;i<8;i++){ban.run(String(i),'network:'+i,'Player'+i,'0','Public reason','network','2026-11-02',null,i===1?1:0);appeal.run('a'+i,String(i),i===1?'denied':'approved',i,i,'PRIVATE');}
|
||||
ban.run('pending','network:p','Waiting','Mod','Reason','network','2026-11-02',null,1);appeal.run('p','pending','pending',20,null,'PRIVATE');
|
||||
for(const [id,source,scope] of [['demo','demo:x','network'],['legacy','legacy:x','yousmp-legacy']]){ban.run(id,source,id,'Mod','Reason',scope,'2026-11-02',null,0);appeal.run(id,id,'approved',30,30,'PRIVATE');}
|
||||
const db={prepare(query){let args=[];return{bind(...v){args=v;return this;},async first(){return sql.prepare(query).get(...args);},async all(){return{results:sql.prepare(query).all(...args)};}};}};
|
||||
const first=await (await publicAppealCards(db,new Request('https://example.org/?page=1'))).json();assert.equal(first.total,8);assert.equal(first.bans.length,6);assert.equal(first.pages,2);assert(!JSON.stringify(first).includes('PRIVATE'));assert(!first.bans.some(b=>b.appealStatus==='pending'));
|
||||
const last=await (await publicAppealCards(db,new Request('https://example.org/?page=999'))).json();assert.equal(last.page,2);assert.equal(last.bans.length,2);assert.equal(last.bans.find(b=>b.id==='1').status,'Active');
|
||||
const list=await (await publicBanList(db,new Request('https://example.org/'))).json();assert.equal(list.total,9);assert.equal(list.bans.find(b=>b.id==='pending').appealStatus,'pending');assert.equal(list.bans.find(b=>b.id==='0').status,'Unbanned');assert.equal(list.bans.find(b=>b.id==='1').appealStatus,'denied');assert(!list.bans.some(b=>['demo','legacy'].includes(b.id)));
|
||||
// A fresh appeal replaces the old public decision without revealing its private text.
|
||||
appeal.run('new','0','pending',100,null,'PRIVATE');const refreshed=await (await publicBanList(db,new Request('https://example.org/'))).json();assert.equal(refreshed.bans.find(b=>b.id==='0').appealStatus,'pending');
|
||||
sql.exec("UPDATE drsupport_ticket_status SET state='closed'");const closed=await (await publicBanList(db,new Request('https://example.org/'))).json();assert.equal(closed.bans.find(b=>b.id==='pending').appealStatus,null);assert.equal(closed.bans.find(b=>b.id==='1').appealStatus,'denied');sql.close();
|
||||
});
|
||||
|
|
@ -88,3 +88,7 @@
|
|||
.news-article-page .article-heading>img{width:100%!important;height:220px!important;object-fit:cover;object-position:center;border:1px solid #8c7a47;border-radius:12px;box-shadow:0 8px 22px #0003}
|
||||
.news-article-page .dispatch-full-body{max-width:100%;padding:6px 0;line-height:1.85}.news-article-page .dispatch-full-body p{margin:0 0 22px!important;line-height:1.85!important;position:static!important}
|
||||
@media(max-width:650px){.news-article-page #news-full-post{padding:22px 18px}.news-article-page .article-heading{grid-template-columns:1fr;gap:20px}.news-article-page .article-heading>img{height:180px!important}}
|
||||
|
||||
.appeal-seal{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;margin:10px 0;border:4px double #d9bc75;border-radius:50%;background:#15382cdd;color:#f0dc9e;font:800 12px/1.3 system-ui;letter-spacing:.08em;box-shadow:0 0 0 2px #735b32,0 3px 14px #0006;transform:rotate(-7deg);min-height:70px;text-align:center}.appeal-seal.denied{color:#ffd9bd;background:#542a24dd;border-color:#c59261}.appeal-seal.pending{color:#f1df9c;background:#484125dd;border-color:#c5ab60}#appeal-pagination{display:flex;gap:18px;align-items:center;justify-content:center;margin-top:24px}.ban-record>div>strong{display:block;width:fit-content}
|
||||
|
||||
#home-appeals .ban-stockade{position:relative}#home-appeals .appeal-seal{position:absolute;right:8px;top:4px;z-index:2;font-size:10px;min-height:58px;padding:8px}
|
||||
|
|
|
|||
|
|
@ -49,3 +49,6 @@ if(banRoot)newsFetch('/api/public/bans').then(({bans})=>{
|
|||
}
|
||||
if(!bans.length)banRoot.append(newsEl('p','No current ban records to display.'));
|
||||
}).catch(()=>banRoot.replaceChildren(newsEl('p','Ban records are temporarily unavailable.')));
|
||||
|
||||
const appealRoot=document.getElementById('portal-appeal-cards');
|
||||
if(appealRoot){let sequence=0;async function loadAppeals(page=1){const serial=++sequence;try{const data=await newsFetch('/api/public/appeals?page='+page);if(serial!==sequence)return;appealRoot.replaceChildren();for(const b of data.bans){const card=newsEl('article');card.className='dispatch-card ban-card';const art=newsEl('div');art.className='ban-stockade';const head=newsEl('span');head.className='ban-demo-head';art.append(head);const seal=newsEl('strong',b.appealStatus.toUpperCase());seal.className='appeal-seal '+b.appealStatus;art.append(seal);const body=newsEl('div');body.className='dispatch-copy';body.append(newsEl('h3',b.player));const fields=newsEl('dl');for(const [k,v] of [['Status',b.status],['Reason',b.reason],['Issued by',b.issuedBy],['Scope',b.scope],['Duration',b.expires||'Permanent'],['Ban ID',b.id]])fields.append(newsEl('dt',k),newsEl('dd',v));body.append(fields);card.append(art,body);appealRoot.append(card);}if(!data.bans.length)appealRoot.append(newsEl('p','No appeal decisions to display.'));const pager=document.getElementById('appeal-pagination');pager.replaceChildren();const prev=newsEl('button','Previous'),next=newsEl('button','Next');prev.type=next.type='button';prev.disabled=data.page<=1;next.disabled=data.page>=data.pages;prev.onclick=()=>loadAppeals(data.page-1);next.onclick=()=>loadAppeals(data.page+1);const label=newsEl('span','Page '+data.page+' of '+data.pages);label.setAttribute('role','status');pager.append(prev,label,next);}catch{if(serial===sequence)appealRoot.replaceChildren(newsEl('p','Appeal decisions are temporarily unavailable.'));}}loadAppeals();}
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -113,3 +113,6 @@ header.dune-site-header .dune-memorial .dune-memorial-dedication blockquote{back
|
|||
@media(min-width:1241px){body>header.dune-site-header>button.menu-toggle{display:none!important}}
|
||||
@media(max-width:1240px){body>header.dune-site-header>button.menu-toggle{display:flex!important}body>header.dune-site-header>nav[aria-label="Main navigation"]:not(.open){display:none!important}body>header.dune-site-header>nav[aria-label="Main navigation"].open{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%!important;max-width:100%!important;box-sizing:border-box}body>header.dune-site-header>nav[aria-label="Main navigation"]>a{min-width:0;white-space:normal}}
|
||||
header.dune-site-header .dune-memorial .dune-memorial-dedication blockquote{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;color:#e6dcc5!important;font:italic 11px/1.5 Georgia,serif!important;margin:5px 0!important}header.dune-site-header .dune-memorial .dune-memorial-dedication blockquote::before,header.dune-site-header .dune-memorial .dune-memorial-dedication blockquote::after{display:none!important}
|
||||
|
||||
/* Native applications must use the same link spacing as the public header. */
|
||||
header.dune-site-header>nav[aria-label="Main navigation"]>a{display:inline-flex!important;align-items:center!important;gap:8px!important}@media(min-width:1241px){header.dune-site-header>button.menu-toggle{display:none!important}}
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
(()=>{const items=[["Home","https://www.dunerealms.com/","nav-home-v2.webp"],["Shop","https://www.dunerealms.com/shop.html","nav-shop-v1.webp"],["Boards","https://forums.dunerealms.com/","nav-boards-v2.webp"],["Staff roster","https://www.dunerealms.com/staff.html","nav-staff-v2.webp"],["Discord","https://www.dunerealms.com/discord.html","nav-discord-v2.webp"],["Exchange","https://www.dunerealms.com/exchange.html","nav-exchange-v2.webp"],["Kit Exchange","https://www.dunerealms.com/kits.html","items/office_water.png"],["Support center","https://support.dunerealms.com/","nav-support-v2.webp"],["Account center","https://cp.dunerealms.com/","nav-account-v2.webp"],["Clan center","https://clans.dunerealms.com/","nav-clan-v2.webp"],["Dunopedia","https://wiki.dunerealms.com/","nav-manual-v2.webp"]];function update(){for(const nav of document.querySelectorAll('header nav[aria-label="Main navigation"]')){const wanted=items.map(([name,url,icon])=>{let a=[...nav.children].find(a=>a.tagName==='A'&&a.href===url);if(!a){a=document.createElement('a');a.href=url;const img=document.createElement('img');img.src='https://www.dunerealms.com/assets/'+icon;img.alt='';img.width=34;img.height=34;const t=document.createElement('span');t.textContent=name;a.append(img,t);}const span=a.querySelector('span');if(span&&span.textContent!==name)span.textContent=name;return a;});for(const a of [...nav.children])if(!wanted.includes(a))a.remove();wanted.forEach((a,i)=>{if(nav.children[i]!==a)nav.insertBefore(a,nav.children[i]||null);});}}update();new MutationObserver(update).observe(document.body,{childList:true,subtree:true});})();
|
||||
|
||||
/* Release menu badges v2 */
|
||||
(()=>{const items=[{"href":"https://www.dunerealms.com/shop.html","updatedIn":"1.0.0.3","badge":"UPDATE"},{"href":"https://www.dunerealms.com/kits.html","introducedIn":"1.0.0.2","badge":"NEW"},{"href":"https://wiki.dunerealms.com/","introducedIn":"1.0.0.2","badge":"NEW"},{"href":"https://clans.dunerealms.com/","introducedIn":"1.0.0.2","badge":"NEW"},{"href":"https://cp.dunerealms.com/","updatedIn":"1.0.0.3","badge":"UPDATE"},{"href":"https://www.dunerealms.com/exchange.html","updatedIn":"1.0.0.2","badge":"UPDATE"},{"href":"https://support.dunerealms.com/","updatedIn":"1.0.0.2","badge":"UPDATE"},{"href":"https://www.dunerealms.com/staff.html","updatedIn":"1.0.0.2","badge":"UPDATE"}];function mark(){const release=document.querySelector('.dune-release-badge')?.textContent.match(/\d+(?:\.\d+){3}/)?.[0];if(!release)return;for(const a of document.querySelectorAll('header nav[aria-label="Main navigation"] a')){const item=items.find(x=>x.href===a.href),fresh=a.dataset.duneNewIn===release||item?.introducedIn===release,updated=a.dataset.duneUpdatedIn===release||item?.updatedIn===release,label=fresh?'NEW':updated?'UPDATE':null;let tag=a.querySelector('.dune-new-overlay');if(label){if(!tag){tag=document.createElement('span');tag.className='dune-new-overlay';a.append(tag);}if(tag.textContent!==label)tag.textContent=label;tag.classList.toggle('dune-update-overlay',label==='UPDATE');tag.setAttribute('aria-label',label==='NEW'?'New this release':'Updated this release');}else if(tag)tag.remove();}}mark();new MutationObserver(mark).observe(document.body,{childList:true,subtree:true,characterData:true});})();
|
||||
(()=>{const items=[{"href":"https://www.dunerealms.com/","updatedIn":"1.0.0.3","badge":"UPDATE"},{"href":"https://www.dunerealms.com/shop.html","updatedIn":"1.0.0.3","badge":"UPDATE"},{"href":"https://www.dunerealms.com/kits.html","introducedIn":"1.0.0.2","badge":"NEW"},{"href":"https://wiki.dunerealms.com/","introducedIn":"1.0.0.2","badge":"NEW"},{"href":"https://clans.dunerealms.com/","introducedIn":"1.0.0.2","badge":"NEW"},{"href":"https://cp.dunerealms.com/","updatedIn":"1.0.0.3","badge":"UPDATE"},{"href":"https://www.dunerealms.com/exchange.html","updatedIn":"1.0.0.2","badge":"UPDATE"},{"href":"https://support.dunerealms.com/","updatedIn":"1.0.0.3","badge":"UPDATE"},{"href":"https://www.dunerealms.com/staff.html","updatedIn":"1.0.0.2","badge":"UPDATE"}];function mark(){const release=document.querySelector('.dune-release-badge')?.textContent.match(/\d+(?:\.\d+){3}/)?.[0];if(!release)return;for(const a of document.querySelectorAll('header nav[aria-label="Main navigation"] a')){const item=items.find(x=>x.href===a.href),fresh=a.dataset.duneNewIn===release||item?.introducedIn===release,updated=a.dataset.duneUpdatedIn===release||item?.updatedIn===release,label=fresh?'NEW':updated?'UPDATE':null;let tag=a.querySelector('.dune-new-overlay');if(label){if(!tag){tag=document.createElement('span');tag.className='dune-new-overlay';a.append(tag);}if(tag.textContent!==label)tag.textContent=label;tag.classList.toggle('dune-update-overlay',label==='UPDATE');tag.setAttribute('aria-label',label==='NEW'?'New this release':'Updated this release');}else if(tag)tag.remove();}}mark();new MutationObserver(mark).observe(document.body,{childList:true,subtree:true,characterData:true});})();
|
||||
|
||||
/* Shop SALES indicator v1: inactive until a real promotion is active */
|
||||
(()=>{let active=new URLSearchParams(location.search).get('sale-preview')==='1';if(active)document.body.classList.add('dune-sale-preview');const draw=()=>{for(const a of document.querySelectorAll('header nav[aria-label="Main navigation"] a[href="https://www.dunerealms.com/shop.html"]')){let badge=a.querySelector('.dune-sales-overlay');if(active&&!badge){badge=document.createElement('span');badge.className='dune-sales-overlay';badge.textContent='SALE';badge.setAttribute('aria-label','Shop sale active');a.append(badge);}else if(!active&&badge)badge.remove();a.classList.toggle('dune-shop-sale-active',active);}};window.addEventListener('dune:shop-promotions',e=>{active=e.detail?.active===true;draw();});draw();new MutationObserver(draw).observe(document.body,{childList:true,subtree:true});})();
|
||||
|
|
|
|||
|
|
@ -1 +1,5 @@
|
|||
.public-ban-register{max-width:1380px;margin:32px auto;padding:24px;color:#eee6ce}.ban-intro{display:flex;align-items:center;gap:24px;padding:24px;border:1px solid #796b3c;border-radius:16px;background:#15352b}.ban-intro img{width:110px;height:110px;object-fit:contain}.ban-intro h1{color:#e3c575}#ban-search{margin:26px 0;padding:20px;border:1px solid #36584b;border-radius:12px;background:#122d25}#ban-search label{display:block;margin-bottom:10px}#ban-search div{display:flex;gap:12px}#ban-query{flex:1;min-width:0;background:#0b201a;color:#eee6ce;border:1px solid #796b3c;padding:12px;border-radius:8px}.public-ban-register button{padding:12px 20px;background:#b99a4c;color:#10231c;border:1px solid #e0c477;border-radius:8px;cursor:pointer}.public-ban-register button:disabled{opacity:.45;cursor:default}.ban-record{display:grid;grid-template-columns:1fr 2fr 1fr;gap:20px;padding:24px;margin:12px 0;border:1px solid #36584b;border-radius:12px;background:#153027;overflow-wrap:anywhere}.ban-record h2{margin:0 0 10px;color:#e3c575;font-size:1.15rem}.ban-record p{margin:6px 0}.ban-record small{color:#bacbbf}.ban-pages{display:flex;justify-content:center;align-items:center;gap:20px;margin:24px 0}@media(max-width:700px){.public-ban-register{padding:14px}.ban-intro{padding:16px}.ban-intro img{width:70px;height:70px}.ban-record{grid-template-columns:1fr;gap:12px}#ban-search div{flex-wrap:wrap}}
|
||||
|
||||
.appeal-seal{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;margin:10px 0;border:4px double #d9bc75;border-radius:50%;background:#15382cdd;color:#f0dc9e;font:800 12px/1.3 system-ui;letter-spacing:.08em;box-shadow:0 0 0 2px #735b32,0 3px 14px #0006;transform:rotate(-7deg);min-height:70px;text-align:center}.appeal-seal.denied{color:#ffd9bd;background:#542a24dd;border-color:#c59261}.appeal-seal.pending{color:#f1df9c;background:#484125dd;border-color:#c5ab60}#appeal-pagination{display:flex;gap:18px;align-items:center;justify-content:center;margin-top:24px}.ban-record>div>strong{display:block;width:fit-content}
|
||||
|
||||
.public-ban-register .ban-record{grid-template-columns:minmax(180px,1fr) minmax(0,2fr) minmax(150px,1fr);padding:18px;gap:16px;border-color:#70603b;background:linear-gradient(120deg,#18392e,#10271f);box-shadow:0 7px 22px #0002}.ban-record>div{min-width:0}.ban-reason-box,.ban-date-box{padding:16px;border:1px solid #426151;border-radius:10px;background:#081e1866}.ban-date-box{font-size:.85rem}.ban-status{padding:5px 10px;margin:8px 0;border:1px solid #7e9472;border-radius:20px;font:700 11px system-ui;letter-spacing:.04em}.ban-status.unbanned{color:#d2ecc5;background:#244d37}.ban-status.active{color:#f4d2b5;background:#4c3025}#ban-summary{padding:12px 16px;border-left:3px solid #c9a65e;background:#142f26;border-radius:0 8px 8px 0}.ban-identity .appeal-seal{font-size:10px;min-height:58px;padding:8px 12px}@media(max-width:700px){.public-ban-register .ban-record{grid-template-columns:1fr}.ban-identity{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.ban-identity h2{width:100%;margin:0}.ban-identity small{width:100%}}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue

Staff