Revert "feat: v2 widget dashboard system"

This commit is contained in:
Spicy Marinara
2025-11-06 20:06:26 +01:00
committed by GitHub
parent ba45e499e1
commit fd9adce068
51 changed files with 199 additions and 28555 deletions
-7
View File
@@ -509,13 +509,6 @@ export function setupMobileTabs() {
const isMobile = window.innerWidth <= 1000;
if (!isMobile) return;
// Check if Dashboard v2 is present - if so, skip mobile tabs (dashboard has its own tab system)
const $dashboardContainer = $('#rpg-dashboard-container');
if ($dashboardContainer.length > 0) {
console.log('[RPG Mobile] Dashboard v2 detected - skipping old mobile tabs setup');
return;
}
// Check if tabs already exist
if ($('.rpg-mobile-tabs').length > 0) return;
-6
View File
@@ -47,12 +47,6 @@ export class DiceModal {
open() {
if (this.isAnimating) return;
// CRITICAL: Move modal to document.body on first use to escape any container constraints
if (this.modal.parentElement?.tagName !== 'BODY') {
document.body.appendChild(this.modal);
console.log('[DiceModal] Moved modal to document.body to ensure proper viewport positioning');
}
// Apply theme
const theme = extensionSettings.theme;
this.modal.setAttribute('data-theme', theme);
+1 -10
View File
@@ -108,19 +108,10 @@ function applyTrackerConfig() {
tempConfig = null; // Clear temp config
saveSettings();
// Re-render all trackers with new config (v1 system - backward compat)
// Re-render all trackers with new config
renderUserStats();
renderInfoBox();
renderThoughts();
// Notify dashboard system of config changes (v2 system - reactive integration)
document.dispatchEvent(new CustomEvent('rpg:trackerConfigChanged', {
detail: {
config: extensionSettings.trackerConfig,
source: 'trackerEditor'
}
}));
console.log('[RPG Companion] Tracker config changed event dispatched');
}
/**