feat(ui): blackflame theming pass — edit toggle, md tables, back button, Little Blue action cards
- markdown_editor Edit toggle uses themed ghost button - .md-preview gets full blackflame styling incl. tables (migrated BookStack tables now render as tables) - reusable back button on page/reference/project/resource reading views - Little Blue actions regrouped into themed cards, pairing Start/Stop per guest Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
// Resource detail: status header + dependencies + source docs + runbook pages + change history.
|
||||
import { api } from '../api.js';
|
||||
import { el, mount, clear, safeHref } from '../dom.js';
|
||||
import { backButton } from '../components/backbtn.js';
|
||||
|
||||
function statusClass(s) {
|
||||
return s === 'running' ? 'ok' : s === 'stopped' ? 'warn' : s === 'down' ? 'bad' : 'idle';
|
||||
@@ -108,6 +109,7 @@ export async function render(main, ctx) {
|
||||
}
|
||||
|
||||
mount(main,
|
||||
backButton(),
|
||||
el('h1', { class: 'view-h1' }, res.name),
|
||||
el('p', { class: 'view-sub' },
|
||||
el('span', { class: 'status ' + statusClass(res.status) }, res.status),
|
||||
|
||||
Reference in New Issue
Block a user