D Dockerfile => Dockerfile +0 -5
@@ 1,5 0,0 @@
-FROM golang:1.19.1-alpine3.16
-RUN go install git.sr.ht/~tomtom/http-server@latest
-ADD . .
-CMD http-server -spa -cors -default=index.html -address=:80 .
-
M Makefile => Makefile +1 -7
@@ 3,15 3,9 @@ all: fake
@echo "you don't need to build anything."
tags: fake
- find js -name '*.js' | grep -v noble-secp256k1 | xargs ctags > "$@"
+ find js -name '*.js' | xargs ctags > "$@"
emojiregex: fake
@curl -sL 'https://raw.githubusercontent.com/mathiasbynens/emoji-test-regex-pattern/main/dist/latest/javascript.txt'
-dist:
- rsync -avzP --delete ./ charon:/www/damus.io/web/
-
-dist-staging:
- rsync -avzP ./ charon:/www/damus.io/web-staging/
-
.PHONY: fake
M js/ui/state.js => js/ui/state.js +1 -1
@@ 92,7 92,7 @@ function view_timeline_apply_mode(model, mode, opts={}, push_state=true) {
pieces.push(pubkey);
break;
}
- history.pushState({mode, opts}, "", "/"+pieces.join("/"));
+ window.history.pushState({mode, opts}, "", "/"+pieces.join("/"));
}
el.dataset.mode = mode;