Files
dashtab/app/config/settings-content.js
raucao 7cad948c17 Unify market tickers and usage stats into one settings panel
Replace the separate Market Ticker and OpenRouter Stats settings sections
with a single Tickers & Stats section. It lists every active ticker/stat
with its settings and remove actions, and offers one Add integration button
that opens the generic integration list filtered to tickers and stats.

The add button is hidden once every single-instance integration is
connected, matching the old sections' behavior.
2026-11-13 15:40:03 +04:00

21 lines
895 B
JavaScript

import Events from '../components/settings/global-settings/sections/events.gjs';
import Photos from '../components/settings/global-settings/sections/photos.gjs';
import ProtocolGateway from '../components/settings/global-settings/sections/protocol-gateway.gjs';
import SiteLinks from '../components/settings/global-settings/sections/site-links.gjs';
import TickersStats from '../components/settings/global-settings/sections/tickers-stats.gjs';
// Maps a settings section id to its content component. Sections without an
// entry fall back to the generic placeholder, so this grows one section at a
// time. Mirrors the integration form registry in `integration-forms.js`.
const CONTENT = {
photos: Photos,
'site-links': SiteLinks,
events: Events,
'tickers-stats': TickersStats,
'protocol-gateway': ProtocolGateway,
};
export function contentFor(id) {
return CONTENT[id] ?? null;
}