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>
26 lines
859 B
Plaintext
26 lines
859 B
Plaintext
;; Blog navigation components
|
|
|
|
(defcomp ~shared:nav/blog-nav-empty (&key wrapper-id)
|
|
(div :id wrapper-id :sx-swap-oob "outerHTML"))
|
|
|
|
(defcomp ~shared:nav/blog-nav-item-link (&key href hx-get selected nav-cls img label)
|
|
(div (a :href href :sx-get hx-get :sx-target "#main-panel"
|
|
:sx-swap "outerHTML" :sx-push-url "true"
|
|
:aria-selected selected :class nav-cls
|
|
img (span label))))
|
|
|
|
(defcomp ~shared:nav/blog-nav-item-plain (&key href selected nav-cls img label)
|
|
(div (a :href href :aria-selected selected :class nav-cls
|
|
img (span label))))
|
|
|
|
;; Nav entries
|
|
|
|
(defcomp ~shared:nav/blog-nav-entries-empty ()
|
|
(div :id "entries-calendars-nav-wrapper" :sx-swap-oob "true"))
|
|
|
|
(defcomp ~shared:nav/blog-nav-calendar-item (&key href nav-cls name)
|
|
(a :href href :class nav-cls
|
|
(i :class "fa fa-calendar" :aria-hidden "true")
|
|
(div name)))
|
|
|