Feat rebrand armature (#43)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #43.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// ==========================================
|
||||
// Chat Switchboard — CM6 Build Script
|
||||
// Armature — CM6 Build Script
|
||||
// ==========================================
|
||||
// Bundles CodeMirror 6 into a single IIFE that
|
||||
// exposes window.CM. Run via scripts/build-editor.sh
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// ==========================================
|
||||
// Chat Switchboard — CM6 Chat Input Factory
|
||||
// Armature — CM6 Chat Input Factory
|
||||
// ==========================================
|
||||
// Minimal markdown editor for the chat message
|
||||
// input. No line numbers, no gutter. Enter sends,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// ==========================================
|
||||
// Chat Switchboard — CM6 Code Editor Factory
|
||||
// Armature — CM6 Code Editor Factory
|
||||
// ==========================================
|
||||
// Full-featured code editor: line numbers, bracket
|
||||
// matching, search/replace, auto-indent, syntax
|
||||
@@ -52,7 +52,7 @@ import { rust } from '@codemirror/lang-rust';
|
||||
import { vim } from '@replit/codemirror-vim';
|
||||
import { emacs } from '@replit/codemirror-emacs';
|
||||
|
||||
import { switchboardTheme } from './theme.mjs';
|
||||
import { armatureTheme } from './theme.mjs';
|
||||
|
||||
// ── Language Registry ────────────────────────
|
||||
|
||||
@@ -144,7 +144,7 @@ export function codeEditor(target, opts = {}) {
|
||||
]),
|
||||
|
||||
// Theme
|
||||
switchboardTheme,
|
||||
armatureTheme,
|
||||
themeCompartment.of(darkMode ? [oneDark] : []),
|
||||
|
||||
// Configurable compartments
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// ==========================================
|
||||
// Chat Switchboard — CM6 Bundle Entrypoint
|
||||
// Armature — CM6 Bundle Entrypoint
|
||||
// ==========================================
|
||||
// esbuild compiles this into an IIFE that sets
|
||||
// window.CM with factory functions and utilities.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// ==========================================
|
||||
// Chat Switchboard — CM6 @Mention Extension
|
||||
// Armature — CM6 @Mention Extension
|
||||
// ==========================================
|
||||
// Provides:
|
||||
// 1. Autocomplete triggered by @ for personas/users
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// ==========================================
|
||||
// Chat Switchboard — CM6 Note Editor Factory
|
||||
// Armature — CM6 Note Editor Factory
|
||||
// ==========================================
|
||||
// Rich markdown editor for the notes panel.
|
||||
// Decorates headings, bold, italic, code blocks inline.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// ==========================================
|
||||
// Chat Switchboard — CM6 Theme
|
||||
// Armature — CM6 Theme
|
||||
// ==========================================
|
||||
// Maps the app's CSS custom properties to CM6
|
||||
// theme slots. Works in both light and dark mode.
|
||||
@@ -12,10 +12,10 @@
|
||||
import { EditorView } from '@codemirror/view';
|
||||
|
||||
/**
|
||||
* Switchboard base theme — uses CSS variables so it
|
||||
* Armature base theme — uses CSS variables so it
|
||||
* adapts automatically when the theme toggle fires.
|
||||
*/
|
||||
export const switchboardTheme = EditorView.theme({
|
||||
export const armatureTheme = EditorView.theme({
|
||||
'&': {
|
||||
backgroundColor: 'var(--bg-surface, var(--bg))',
|
||||
color: 'var(--text)',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// ==========================================
|
||||
// Chat Switchboard — CM6 Wikilink Extension
|
||||
// Armature — CM6 Wikilink Extension
|
||||
// ==========================================
|
||||
// Provides:
|
||||
// 1. ViewPlugin that decorates [[Title]] as clickable chips
|
||||
|
||||
Reference in New Issue
Block a user