diff --git a/hive-ag3nt/assets/stats.html b/hive-ag3nt/assets/stats.html index 2c305978..ce51217e 100644 --- a/hive-ag3nt/assets/stats.html +++ b/hive-ag3nt/assets/stats.html @@ -80,7 +80,6 @@
.
async function openFilePanel(path) {
- const isMd = /\.(md|markdown)$/i.test(path);
- const view = isMd
- ? el('div', { class: 'md' })
- : el('pre', { class: 'path-preview-body' });
- view.textContent = '(fetching…)';
- Panel.open('↳ ' + path, view);
+ const pre = el('pre', { class: 'path-preview-body' }, '(fetching…)');
+ Panel.open('↳ ' + path, pre);
try {
- const text = await fetchStateFile(path);
- if (isMd && window.marked && typeof window.marked.parse === 'function') {
- marked.setOptions({ breaks: true, gfm: true });
- view.innerHTML = marked.parse(text);
- } else {
- view.textContent = text;
- }
+ pre.textContent = await fetchStateFile(path);
} catch (e) {
- view.textContent = 'error: ' + (e.message || e);
+ pre.textContent = 'error: ' + (e.message || e);
}
}
function makePathLink(path) {
diff --git a/hive-c0re/assets/dashboard.css b/hive-c0re/assets/dashboard.css
index 5990b1bd..282aeba5 100644
--- a/hive-c0re/assets/dashboard.css
+++ b/hive-c0re/assets/dashboard.css
@@ -805,43 +805,3 @@ footer a { color: var(--purple); }
overflow: auto;
padding: 1em;
}
-/* Markdown file previews rendered by `marked`. TERMINAL_CSS scopes
- its own `.md` rules to `.live .row`, so the panel needs its own. */
-.side-panel-body .md { color: var(--fg); line-height: 1.5; }
-.side-panel-body .md > :first-child { margin-top: 0; }
-.side-panel-body .md > :last-child { margin-bottom: 0; }
-.side-panel-body .md p { margin: 0.5em 0; }
-.side-panel-body .md h1,
-.side-panel-body .md h2,
-.side-panel-body .md h3,
-.side-panel-body .md h4 { color: var(--purple); margin: 0.9em 0 0.4em; }
-.side-panel-body .md code {
- background: var(--bg);
- border: 1px solid var(--border);
- border-radius: 3px;
- padding: 0.05em 0.3em;
- font-size: 0.9em;
-}
-.side-panel-body .md pre {
- background: var(--bg);
- border: 1px solid var(--border);
- border-radius: 3px;
- padding: 0.6em 0.8em;
- overflow-x: auto;
-}
-.side-panel-body .md pre code { background: none; border: none; padding: 0; }
-.side-panel-body .md a { color: var(--cyan); }
-.side-panel-body .md ul,
-.side-panel-body .md ol { margin: 0.4em 0; padding-left: 1.5em; }
-.side-panel-body .md blockquote {
- margin: 0.5em 0;
- padding-left: 0.8em;
- border-left: 2px solid var(--border);
- color: var(--muted);
-}
-.side-panel-body .md table { border-collapse: collapse; margin: 0.5em 0; }
-.side-panel-body .md th,
-.side-panel-body .md td {
- border: 1px solid var(--border);
- padding: 0.2em 0.5em;
-}
diff --git a/hive-c0re/assets/index.html b/hive-c0re/assets/index.html
index 605e3474..1fb304cd 100644
--- a/hive-c0re/assets/index.html
+++ b/hive-c0re/assets/index.html
@@ -102,7 +102,6 @@
-