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:
@@ -1,7 +1,7 @@
|
||||
include .env
|
||||
export
|
||||
|
||||
.PHONY: clean run repl tailwind test uberjar
|
||||
.PHONY: clean run run-docker repl tailwind test uberjar
|
||||
|
||||
clean:
|
||||
rm -rf target
|
||||
@@ -9,6 +9,9 @@ clean:
|
||||
run:
|
||||
clj -M:dev -e "(dev-prep!) (go)" -r
|
||||
|
||||
run-docker:
|
||||
BTCDATA_URL=http://localhost:4101 clj -M:dev -e "(dev-prep!) (go)" -r
|
||||
|
||||
repl:
|
||||
clj -M:dev:nrepl
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -21,7 +21,7 @@
|
||||
[:p.text-center.text-gray-400.text-sm "Connecting..."]]]]
|
||||
|
||||
;; 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"}])))
|
||||
|
||||
(defn- ui-routes [opts]
|
||||
|
||||
Reference in New Issue
Block a user