feat(webui,evilportal): move Evil Portal tab under PineAP, live-verified on Pager

This commit is contained in:
c4ch3c4d3
2026-08-24 09:12:55 -06:00
parent 0f31bfe885
commit ab92e7d278
2 changed files with 7 additions and 7 deletions
@@ -382,6 +382,7 @@ const PINEAP_TABS = [
{ label: 'OpenAP', hash: '#/pineap/open' },
{ label: 'Evil WPA', hash: '#/pineap/evilwpa' },
{ label: 'Evil Enterprise', hash: '#/pineap/enterprise' },
{ label: 'Evil Portal', hash: '#/pineap/evilportal' },
{ label: 'Impersonation', hash: '#/pineap/impersonation' },
{ label: 'Clients', hash: '#/pineap/clients' },
{ label: 'Filtering', hash: '#/pineap/filtering' }
@@ -4127,15 +4128,15 @@ views.settings_help = (root) => {
// Evil Portal — Hak5 EvilPortalNano-compatible captive portal manager.
// ---------------------------------------------------------------------------
views.evilportal = (root) => {
root.appendChild(h('h1', { class: 'page-title', text: 'Evil Portal' }));
const box = h('div', { style: 'display:flex;flex-direction:column;gap:16px' });
root.appendChild(box);
views.pineap_evilportal = (root) => {
const box = pineapShell(root, '#/pineap/evilportal');
const portalRoot = h('div', { style: 'display:flex;flex-direction:column;gap:16px' });
box.appendChild(portalRoot);
function portalCard(title) {
const card = h('div', { class: 'pineap-title-card' });
card.appendChild(h('div', { class: 'pineap-card-title' }, title));
box.appendChild(card);
portalRoot.appendChild(card);
return card;
}