mining
All checks were successful
Deploy / deploy-staging (push) Successful in 6s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-25 00:08:59 +02:00
parent d6f09326f4
commit 5bfb37f926
3 changed files with 80 additions and 192 deletions

View File

@@ -12,6 +12,7 @@
const fxBaseUrl = root.dataset.fxUrl || 'https://currencyapi.net';
const fxCurrenciesUrl = root.dataset.fxCurrenciesUrl || fxBaseUrl;
const fxApiKeyMask = root.dataset.fxApiKeyMask || '';
const initialActiveTab = String(root.dataset.activeView || 'overview').trim() || 'overview';
const configuredSections = (() => {
try {
const parsed = JSON.parse(root.dataset.sectionsJson || '[]');
@@ -551,7 +552,7 @@
function App() {
const [projectKey, setProjectKey] = useState(initialProjectKey);
const [activeTab, setActiveTab] = useState('overview');
const [activeTab] = useState(initialActiveTab);
const [payload, setPayload] = useState(() => normalizeBootstrap(null, initialProjectKey));
const [dashboardData, setDashboardData] = useState({});
const [loading, setLoading] = useState(true);
@@ -1815,14 +1816,6 @@
setCookie('mining_checker_report_currency', '', 0);
}
const tabs = configuredSections.length ? configuredSections : [
['overview', 'Ueberblick'],
['measurements', 'Messpunkte'],
['currencies', 'Waehrungen'],
['mining', 'Mining'],
['dashboards', 'Dashboards'],
['settings', 'Settings'],
];
const selectedFxCodes = fxSelection.length ? fxSelection.map((code) => String(code || '').toUpperCase()) : ['DOGE', 'USD', 'EUR'];
const fxDisplayBaseNormalized = String(fxDisplayBase || 'USD').toUpperCase();
const groupedFxHistoryMap = new Map();
@@ -1884,40 +1877,6 @@
className: 'mc-grid-bg',
}, [
h('div', { key: 'shell', className: 'mc-shell mc-stack' }, [
h('header', { key: 'header', className: 'mc-hero' }, [
h('div', { key: 'top', className: 'mc-hero-top' }, [
h('div', { key: 'copy', className: 'mc-hero-copy' }, [
h(Badge, { key: 'eyebrow' }, 'Mining-Checker Modul'),
h('h1', { key: 'title', className: 'mc-title' }, 'DOGE Mining-Checker'),
h('p', { key: 'lead', className: 'mc-text' },
'Messpunkte, Miner, Ziele, Waehrungen und Auswertungen in einer Oberflaeche.'),
]),
h('div', { key: 'controls', className: 'mc-hero-controls' }, [
h('a', {
key: 'home',
href: '/',
className: 'mc-button mc-button--ghost mc-home-link',
}, 'Zur Startseite'),
h('div', { key: 'project', className: 'mc-form-card' }, [
h('div', { key: 'label', className: 'mc-field-label' }, 'Project Key'),
h('div', { key: 'value', className: 'mc-text' }, projectKey),
]),
]),
]),
h('div', { key: 'tabs', className: 'mc-tabs' },
tabs.map((tab) => h('button', {
key: tab[0],
type: 'button',
className: cx(
'mc-button',
activeTab === tab[0]
? 'mc-button--tab-active'
: 'mc-button--tab'
),
onClick: () => setActiveTab(tab[0]),
}, tab[1]))
),
]),
error ? h('div', { key: 'error', className: 'mc-alert mc-alert--error' }, error) : null,
message ? h('div', { key: 'message', className: 'mc-alert mc-alert--success' }, message) : null,
loading ? h('div', { key: 'loading', className: 'mc-empty' }, 'Lade Mining-Checker Daten …') : null,