From 826449e72adad408edcbf9a58fbe56fbd5a51686 Mon Sep 17 00:00:00 2001 From: ckie Date: Sat, 5 Oct 2024 21:45:39 +0300 Subject: [PATCH] switch to svelte-highlight; fix devShell --- bun.lockb | Bin 92183 -> 92582 bytes flake.nix | 6 ++- package.json | 2 +- src/lib/Highlight.svelte | 15 +++++++ src/lib/hljs.css | 86 +++++++++++++++++++++++++++++++++++++++ src/routes/+page.svelte | 12 +++--- src/routes/demo1/vm.nix | 7 ++-- 7 files changed, 118 insertions(+), 10 deletions(-) create mode 100644 src/lib/Highlight.svelte create mode 100644 src/lib/hljs.css diff --git a/bun.lockb b/bun.lockb index 486913e89b2d2f943cd60ee77e6211e67aac3018..d1c4f69288997a19743296aa3d7f54239fc0d893 100755 GIT binary patch delta 15726 zcmeHud0bUh*ZeMdG%YJLpR~a;&BR7p7p#cdxbfu=ZYi zt+V&J=bo*cGVS=(v^+9Y^6W7zD&Uhd`@hKfy~gkT_OFPGM>F=#bMHUy_cN7Ce_8D7 z6cS(8S2)_q!eqD%%0x3$z}zIp~VzA*CB#Bq{`Z)s{C`qMd$H91@LVjM+ zw6vlk$=h9%-9X)tKQ(n~o-`EP^zf>!8srB3JS)CuZ?@=>7P zpnY{3p;L=WOQkZCo^b2aOD3fda^TXnizrzJX_0@@1YV{|%5r*S%MuhXI# z89CE3B*_z_g5_nuqBF}#Fei|~7F8jGM_dTASpF20<c z1!Sh1KzYVi(>%Fz>3)=YLW&L0Xi-*bVLlu`A6{lhrGc^|lR(*Foj}=9t~$MpF>+vh z42rC>y*gbB3YBH^K>b0pL3y+zLD?Txjh2>$g5lwN>y(Yg2+OXZHPbJ3`aWn&$fow% zK&KVuI45DCZz3NtP*#+YJ0qh|lG5^W@<6112tzh^4Jc1X4Jg-p29(W@1NA^>W$mDV z9e1mvB$+{tdD}uqn)sDQcG1SY4wTg(_A-jn;2Ox>YFlTmRdH%=4tkZ`kSN7KGXM(ar zY*vlNLgx871=&v;DwQ1r!yVp60n`7f;jTVf$A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zYMA_L5Dnr;dGzCkn2ORIYd;tc}efvv*~` zADP^{g2#pqta$H=R2tO7yx)vcy4DlDLXF)Xo@=gNn&bXeJW8@BF_c2(<$5ARn=DJH zvD+icc=fbAMaN!&Ag=!NWE2SQ=9bA0_w&1 z7x!j#^<{$clQ$fDJwa*eBYK(cCMfwnA~?y|RI=&T_iED z0tYF_eBr(?+bg$xVcFhfCEZU%Hk+EF?a(qdw%mMkdj9H9PJhUqVtNti4yDYGAAPCH zPCxWu>||NH{rT&G0Uyjo!S>pfm8^V@f=T*T7T3Kzu`9o6IzJlqiTu8UwqAC-YU-%t zPc7SI66cVD_jlLr4oY+bG#-R^YH#qY0Vj^H^;u^&2@_HRkkVYqY=Fi)gL;9+dj4`f zva7$FNkk(BF9|gpWgcsH{3XjfC;ZW^{%AkhLD_}IlZ-t#;Z3hLJ1RHj>xu6P@Sd>? zXP{X9Y1cnr%vXo3Udk9)H4n_#R`X-l!2X|gIGTHf5 zT@=JHTn+K8&}|KSNT)m;T(pKa9@1$trUY@?K@tAAB-B?2CDvb9@gl2?_7~}*zw)ZT zNW}$z-CsOv^X`HbEjY(mj~xHP`#v)k^iovk#Nj?H85@D(pC2*h*qU|IP2w`@u#5lb zqKpf`vy&G9e88v2MMoTOSf?rKVw60Jzqkv-0-JI$K*aa{>&A_JMb}d^Gf%}mCZkb) zv%!1JL^3{utyig0CXkZ1$Po(~ck&3w9R zyOel?6aP$W<(BK)O|F{kFBT&w1b&KC9t{>b!m7L+jQgP4ZieWow8O78F-RF<5m6#b zSz^KT^;fo8L=)5A9?EHph-+wUgql`%Y@qwm#(30ZDt;lDOskR+BH}%F=_|JRAiEuiyBrO8 zF@tXqJ#U}NGylAy-@oP?`|bX5GQZxcjDUhUm=Z4kY5%DkojV#^mVnm>pBdEO`@Vld z=#^DS@I}JO + import Highlight from "svelte-highlight"; + import "$lib/hljs.css"; + + export let language; + export let code; + export let slice = true; + + let renderedCode; + $: renderedCode = code.replace(/#[^]*?#<\/hidden>/, ""); + + +
+ +
diff --git a/src/lib/hljs.css b/src/lib/hljs.css new file mode 100644 index 0000000..6ec1544 --- /dev/null +++ b/src/lib/hljs.css @@ -0,0 +1,86 @@ +pre code.hljs { + display: block; + overflow-x: auto; +} +/*! + Theme: floral.systems + Description: github theme modified + Base: https://unpkg.com/svelte-highlight@7.7.0/styles/github.css +*/ +.hljs { + color: #24292e; +} +.hljs-doctag, +.hljs-keyword, +.hljs-literal, +.hljs-meta .hljs-keyword, +.hljs-template-tag, +.hljs-template-variable, +.hljs-type, +.hljs-variable.language_ { + color: theme(colors.coral.600); +} +.hljs-title, +.hljs-title.class_, +.hljs-title.class_.inherited__, +.hljs-title.function_ { + color: #6f42c1; +} + +.hljs-attr, +.hljs-attribute, +.hljs-meta, +.hljs-number, +.hljs-operator, +.hljs-variable, +.hljs-selector-attr, +.hljs-selector-class, +.hljs-selector-id { + color: theme(colors.teal.700); +} +.hljs-regexp, +.hljs-string, +.hljs-meta .hljs-string { + color: theme(colors.coral.700); +} +.hljs-built_in, +.hljs-symbol { + color: theme(colors.coral.500); +} +.hljs-comment, +.hljs-code, +.hljs-formula { + color: #6a737d; +} +.hljs-name, +.hljs-quote, +.hljs-selector-tag, +.hljs-selector-pseudo { + color: #22863a; +} +.hljs-subst { + color: #24292e; +} +.hljs-section { + color: #005cc5; + font-weight: bold; +} +.hljs-bullet { + color: #735c0f; +} +.hljs-emphasis { + color: #24292e; + font-style: italic; +} +.hljs-strong { + color: #24292e; + font-weight: bold; +} +.hljs-addition { + color: #22863a; + background-color: #f0fff4; +} +.hljs-deletion { + color: #b31d28; + background-color: #ffeef0; +} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 2494d3f..a5a525c 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,5 +1,7 @@ @@ -33,15 +35,15 @@

{DISTRO} — our linux distribution

-
+
Gain certainty in your deployed system configuration by replacing your opaque state with code. -
- {@html Prism.highlight(demo1.replace(/#[^]*?#<\/slice>/,""), Prism.languages["javascript"], "nix")} +
+
-
+
diff --git a/src/routes/demo1/vm.nix b/src/routes/demo1/vm.nix index 98b1345..3e17ac4 100644 --- a/src/routes/demo1/vm.nix +++ b/src/routes/demo1/vm.nix @@ -4,10 +4,11 @@ with import { }; nixos enable = true; httpd.virtualHost.hostName = "localhost:3000"; httpd.virtualHost.adminAddr = "root@example.com"; - passwordFile = pkgs.writeText "password" "correcthorsebatterystaple"; + passwordFile = + pkgs.writeText "password" "correcthorsebatterystaple"; }; - networking.firewall.allowedTCPPorts = [ 80 ];# + networking.firewall.allowedTCPPorts = [ 80 ];# users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIH3uTwzSSMAPg84fwbNp2cq9+BdLFeA1VzDGth4zCAbz https://ckie.dev" @@ -16,5 +17,5 @@ with import { }; nixos enable = true; settings.PermitRootLogin = "yes"; }; -# +# }