Skip to content

Commit d2bd101

Browse files
committed
remove /account/links page entirely
1 parent 20c26ce commit d2bd101

2 files changed

Lines changed: 0 additions & 40 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ flowchart TD
225225
T["/pyrodactyl\nPanel Redirect"] --> U["5-second auto-redirect\nto panel.zero-host.org"]
226226
227227
V["/account\nAccount Hub"] --> W["/account/edit\n(Email, Password, API Key)"]
228-
V --> X["/account/links\n(Linked Accounts)"]
229228
V --> Y["/account/dangerous\n(Delete Account, RGPD Export)"]
230229
231230
Z["/log\nActivity Log"] --> AA["Paginated list\n(50 per page)"]

public/js/app.js

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,6 @@ function navigateTo(page) {
692692
else if (basePage === 'pyrodactyl') renderPyrodactyl();
693693
else if (basePage === 'account') {
694694
if (param === 'edit') renderAccountEdit();
695-
else if (param === 'links') renderAccountLinks();
696695
else if (param === 'dangerous') renderDangerous();
697696
else renderAccount();
698697
} else if (basePage === 'logs') {
@@ -759,7 +758,6 @@ window.addEventListener('popstate', () => {
759758
else if (basePage === 'pyrodactyl') renderPyrodactyl();
760759
else if (basePage === 'account') {
761760
if (param === 'edit') renderAccountEdit();
762-
else if (param === 'links') renderAccountLinks();
763761
else if (param === 'dangerous') renderDangerous();
764762
else renderAccount();
765763
} else if (basePage === 'logs') {
@@ -1395,19 +1393,6 @@ function renderAccount() {
13951393
</div>
13961394
</div>
13971395
1398-
<div class="card account-menu-card" id="account-menu-links" style="cursor:pointer">
1399-
<div class="account-menu-item">
1400-
<div class="account-menu-icon">
1401-
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M10 13a5 5 0 007.54.54l3-3a5 5 0 00-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 00-7.54-.54l-3 3a5 5 0 007.07 7.07l1.71-1.71"/></svg>
1402-
</div>
1403-
<div class="account-menu-text">
1404-
<div class="account-menu-title">Linked Accounts</div>
1405-
<div class="account-menu-desc">Manage your linked accounts</div>
1406-
</div>
1407-
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="color:var(--text-muted);flex-shrink:0"><path d="M9 18l6-6-6-6"/></svg>
1408-
</div>
1409-
</div>
1410-
14111396
<div class="card account-menu-card" id="account-menu-logs" style="cursor:pointer">
14121397
<div class="account-menu-item">
14131398
<div class="account-menu-icon">
@@ -1450,7 +1435,6 @@ function renderAccount() {
14501435
`;
14511436

14521437
$('#account-menu-edit').addEventListener('click', () => navigateTo('account/edit'));
1453-
$('#account-menu-links').addEventListener('click', () => navigateTo('account/links'));
14541438
$('#account-menu-logs').addEventListener('click', () => navigateTo('logs'));
14551439
$('#account-menu-dangerous').addEventListener('click', () => navigateTo('account/dangerous'));
14561440
$('#account-menu-logout').addEventListener('click', async () => {
@@ -1701,29 +1685,6 @@ async function handleConfirmDeleteApiKey() {
17011685
}
17021686
}
17031687

1704-
function renderAccountLinks() {
1705-
const el = $('#page-account');
1706-
el.innerHTML = html`
1707-
<div class="page-header" style="display:flex;align-items:center;gap:12px">
1708-
<a href="/account" onclick="event.preventDefault();navigateTo('account')" style="color:var(--text-muted);display:flex;padding:4px;border-radius:var(--radius-sm);cursor:pointer">
1709-
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>
1710-
</a>
1711-
<div>
1712-
<h1 class="page-title" style="margin:0">Linked Accounts</h1>
1713-
<p class="page-subtitle" style="margin:0">Manage your linked accounts</p>
1714-
</div>
1715-
</div>
1716-
<div class="card" style="margin-bottom:20px">
1717-
<p style="color:var(--text-secondary);font-size:0.85rem;line-height:1.6;margin:0">
1718-
No account linking system is currently active due to the complexity
1719-
of maintaining it both on the dashboard and the Pyrodactyl panel. This is why
1720-
we have removed account creation and login via Discord. Perhaps this will
1721-
return later.
1722-
</p>
1723-
</div>
1724-
`;
1725-
}
1726-
17271688
async function handleChangeEmail(e) {
17281689
e.preventDefault();
17291690
const btn = $('#change-email-btn');

0 commit comments

Comments
 (0)