Add EUR/DKK rate display support and run-docker Makefile target

Safelist Tailwind classes for currency rate HTML fragments from btcdata
WebSocket. Add make run-docker target that connects to Docker btcdata
on port 4101.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 14:28:17 +01:00
co-authored by Claude Opus 4.6
parent 13a53a26d0
commit 5c1a080831
3 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
include .env include .env
export export
.PHONY: clean run repl tailwind test uberjar .PHONY: clean run run-docker repl tailwind test uberjar
clean: clean:
rm -rf target rm -rf target
@@ -9,6 +9,9 @@ clean:
run: run:
clj -M:dev -e "(dev-prep!) (go)" -r clj -M:dev -e "(dev-prep!) (go)" -r
run-docker:
BTCDATA_URL=http://localhost:4101 clj -M:dev -e "(dev-prep!) (go)" -r
repl: repl:
clj -M:dev:nrepl clj -M:dev:nrepl
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -21,7 +21,7 @@
[:p.text-center.text-gray-400.text-sm "Connecting..."]]]] [:p.text-center.text-gray-400.text-sm "Connecting..."]]]]
;; Safelist classes used in btcdata HTML fragments ;; Safelist classes used in btcdata HTML fragments
[:div {:class "hidden text-4xl font-bold text-green-600 text-red-600 text-gray-900 text-xs text-gray-400 mt-2" [:div {:class "hidden text-4xl font-bold text-green-600 text-red-600 text-gray-900 text-xs text-gray-400 mt-2 flex justify-center gap-4 mt-3 text-sm text-gray-600"
:aria-hidden "true"}]))) :aria-hidden "true"}])))
(defn- ui-routes [opts] (defn- ui-routes [opts]