Skip to content

Phase 1: extract core infrastructure (tokens, api, utils, app) #343

@CalebisGross

Description

@CalebisGross

Part of #339

Extract foundational modules from the monolith:

  • css/tokens.css — 5 theme definitions + new forum-specific CSS vars
  • css/base.css — reset, Verdana 11px, scrollbars
  • js/api.js — apiFetch, WebSocket (decoupled from DOM), auth token
  • js/utils.js — escapeHtml, relativeTime, formatBytes, markdown renderers
  • js/state.js — shared mutable state singleton
  • js/app.js — entry point: init, router, keyboard shortcuts, theme, polling intervals
  • Remove D3 CDN <script> tag (Mind view breaks — expected, it's being killed)
  • index.html becomes thin shell with <link> and <script type="module">

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions