Rename all 1,169 components to path-based names with namespace support
Component names now reflect filesystem location using / as path separator and : as namespace separator for shared components: ~sx-header → ~layouts/header ~layout-app-body → ~shared:layout/app-body ~blog-admin-dashboard → ~admin/dashboard 209 files, 4,941 replacements across all services. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
;; SX docs — home page components
|
||||
|
||||
|
||||
(defcomp ~sx-hero (&key &rest children)
|
||||
(defcomp ~home/hero (&key &rest children)
|
||||
(div :class "max-w-4xl mx-auto px-6 py-16 text-center"
|
||||
(h1 :class "text-5xl font-bold text-stone-900 mb-4"
|
||||
(span :class "text-violet-600 font-mono" "(<sx>)"))
|
||||
@@ -14,7 +14,7 @@
|
||||
(div :class "bg-stone-100 rounded-lg p-6 text-left font-mono text-sm mx-auto max-w-2xl"
|
||||
(pre :class "leading-relaxed whitespace-pre-wrap" children))))
|
||||
|
||||
(defcomp ~sx-philosophy ()
|
||||
(defcomp ~home/philosophy ()
|
||||
(div :class "max-w-4xl mx-auto px-6 py-12"
|
||||
(h2 :class "text-3xl font-bold text-stone-900 mb-8" "Design philosophy")
|
||||
(div :class "grid md:grid-cols-2 gap-8"
|
||||
@@ -35,7 +35,7 @@
|
||||
(li "On-demand CSS — only ship what's used")
|
||||
(li "DOM morphing for smooth history navigation"))))))
|
||||
|
||||
(defcomp ~sx-how-it-works ()
|
||||
(defcomp ~home/how-it-works ()
|
||||
(div :class "max-w-4xl mx-auto px-6 py-12"
|
||||
(h2 :class "text-3xl font-bold text-stone-900 mb-8" "How it works")
|
||||
(div :class "space-y-6"
|
||||
@@ -55,7 +55,7 @@
|
||||
(h3 :class "font-semibold text-stone-900" "Client evaluates + renders")
|
||||
(p :class "text-stone-600" "sx.js parses, evaluates, and renders to DOM. Same evaluator runs server-side (Python) and client-side (JS)."))))))
|
||||
|
||||
(defcomp ~sx-credits ()
|
||||
(defcomp ~home/credits ()
|
||||
(div :class "max-w-4xl mx-auto px-6 py-12 border-t border-stone-200"
|
||||
(p :class "text-stone-500 text-sm"
|
||||
"sx is heavily inspired by "
|
||||
|
||||
Reference in New Issue
Block a user