From 9532ec6eff70eff25d8ce90325a7576357bc1d1e Mon Sep 17 00:00:00 2001 From: Florian Schmitt Date: Tue, 15 Oct 2024 11:29:50 +0300 Subject: [PATCH] feat: use pre for code templates and add informations about template name --- .vitepress/theme/custom.css | 16 ++ components/ConfigForm.vue | 2 +- components/DynamicComponent.vue | 5 +- components/nix-code/lemmy.vue | 417 +++++++++++++++---------------- components/nix-code/peertube.vue | 4 +- 5 files changed, 230 insertions(+), 214 deletions(-) diff --git a/.vitepress/theme/custom.css b/.vitepress/theme/custom.css index a2f0fe3..73e5fcb 100644 --- a/.vitepress/theme/custom.css +++ b/.vitepress/theme/custom.css @@ -34,3 +34,19 @@ width: 100%; display: block; } + +.dynamic-component.code:before { + content: attr(data-name); + position: absolute; + color: blue; + top: -1.4em; + left: 0em; + font-size: 0.8em; +} +.dynamic-component.code { + position: relative; + border: blue 1px dotted; + padding: 1em; + margin: 1em 0; + white-space: pre-wrap; +} diff --git a/components/ConfigForm.vue b/components/ConfigForm.vue index 5229847..761058b 100644 --- a/components/ConfigForm.vue +++ b/components/ConfigForm.vue @@ -202,7 +202,7 @@ function selectServices(bundleId, services) { time.timeZone = "{{ nixin.timezone }}"; i18n.defaultLocale = "{{ nixin.locale }}";
- +
users.users.{{ nixin.user }} = { diff --git a/components/DynamicComponent.vue b/components/DynamicComponent.vue index e85414e..fc8ebef 100644 --- a/components/DynamicComponent.vue +++ b/components/DynamicComponent.vue @@ -1,10 +1,9 @@