feat(webui,evilportal): move Evil Portal tab under PineAP, live-verified on Pager
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user