~tomtom/damus

e83e9a7f7662cd1dce049c862897d5388947515a — Thomas Mathews 1 year, 5 months ago 2176579
Clean up, no more docker
3 files changed, 2 insertions(+), 13 deletions(-)

D Dockerfile
M Makefile
M js/ui/state.js
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;