mirror of
https://github.com/smittix/intercept.git
synced 2026-04-23 22:30:00 -07:00
Open satellite dashboard in new tab
This commit is contained in:
@@ -331,7 +331,7 @@ const CommandPalette = (function() {
|
||||
|
||||
function goToMode(mode) {
|
||||
if (mode === 'satellite') {
|
||||
window.location.href = '/satellite/dashboard';
|
||||
window.open('/satellite/dashboard', '_blank', 'noopener');
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -394,7 +394,7 @@
|
||||
<div class="mode-category">
|
||||
<h3 class="mode-category-title"><span class="mode-category-icon icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z"/><path d="m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z"/><path d="M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0"/><path d="M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5"/></svg></span> Space</h3>
|
||||
<div class="mode-grid mode-grid-compact">
|
||||
<a href="/satellite/dashboard" class="mode-card mode-card-sm" style="text-decoration: none;">
|
||||
<a href="/satellite/dashboard" target="_blank" rel="noopener noreferrer" class="mode-card mode-card-sm" style="text-decoration: none;">
|
||||
<span class="mode-icon icon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M13 7L9 3 5 7l4 4"/><path d="m17 11 4 4-4 4-4-4"/><path d="m8 12 4 4 6-6-4-4-6 6"/><path d="m16 8 3-3"/><path d="M9 21a6 6 0 0 0-6-6"/></svg></span>
|
||||
<span class="mode-name">Satellite</span>
|
||||
</a>
|
||||
@@ -3605,7 +3605,7 @@
|
||||
// Mode selection from welcome page
|
||||
function selectMode(mode) {
|
||||
if (mode === 'satellite') {
|
||||
window.location.href = '/satellite/dashboard';
|
||||
window.open('/satellite/dashboard', '_blank', 'noopener');
|
||||
return;
|
||||
}
|
||||
selectedStartMode = mode;
|
||||
@@ -4404,7 +4404,7 @@
|
||||
const previousMode = currentMode;
|
||||
if (mode === 'listening') mode = 'waterfall';
|
||||
if (mode === 'satellite') {
|
||||
window.location.href = '/satellite/dashboard';
|
||||
window.open('/satellite/dashboard', '_blank', 'noopener');
|
||||
return;
|
||||
}
|
||||
if (!validModes.has(mode)) mode = 'pager';
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
{% macro mode_item(mode, label, icon_svg, href=None) -%}
|
||||
{%- set is_active = 'active' if active_mode == mode else '' -%}
|
||||
{%- if mode == 'satellite' %}
|
||||
<a href="/satellite/dashboard" class="mode-nav-btn {{ is_active }}" style="text-decoration: none;" data-mode="{{ mode }}" data-mode-label="{{ label }}" aria-label="{{ label }} mode">
|
||||
<a href="/satellite/dashboard" target="_blank" rel="noopener noreferrer" class="mode-nav-btn {{ is_active }}" style="text-decoration: none;" data-mode="{{ mode }}" data-mode-label="{{ label }}" aria-label="{{ label }} mode">
|
||||
<span class="nav-icon icon">{{ icon_svg | safe }}</span>
|
||||
<span class="nav-label">{{ label }}</span>
|
||||
</a>
|
||||
@@ -42,7 +42,7 @@
|
||||
{% macro mobile_item(mode, label, icon_svg, href=None) -%}
|
||||
{%- set is_active = 'active' if active_mode == mode else '' -%}
|
||||
{%- if mode == 'satellite' %}
|
||||
<a href="/satellite/dashboard" class="mobile-nav-btn {{ is_active }}" style="text-decoration: none;" data-mode="{{ mode }}" data-mode-label="{{ label }}" aria-label="{{ label }} mode">
|
||||
<a href="/satellite/dashboard" target="_blank" rel="noopener noreferrer" class="mobile-nav-btn {{ is_active }}" style="text-decoration: none;" data-mode="{{ mode }}" data-mode-label="{{ label }}" aria-label="{{ label }} mode">
|
||||
<span class="icon icon--sm">{{ icon_svg | safe }}</span> {{ label }}
|
||||
</a>
|
||||
{%- elif href %}
|
||||
|
||||
Reference in New Issue
Block a user