Xe Iaso
ef7b383d46
Merge branch 'main' into Xe/no-double-avatar
2023-02-23 12:03:01 -05:00
Xe Iaso
7c9f31da09
cmd/web: hide your profile pic if you authored the active paste
...
Closes #3
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-23 17:02:16 +00:00
Xe Iaso
cd106bd142
Merge pull request #5 from tailscale-dev/Xe/prism-js
...
cmd/web: syntax highlighting with prism.js
2023-02-23 12:00:02 -05:00
Xe Iaso
a57f40cab1
cmd/web: fix rendering blank page when submitting paste
...
Turns out the response code I want is HTTP 303 See Other[1].
[1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/303
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-23 16:54:14 +00:00
Xe Iaso
6c490bdd50
cmd/web: fix double HTML render when passing a trailing slash
...
Closes #8
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-23 16:45:43 +00:00
Xe Iaso
a6de30a985
cmd/web: syntax highlighting with prism.js
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-22 15:43:17 +00:00
Xe Iaso
4e3a9a3757
cmd/web: always prefer DATA_DIR when given the option
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-31 17:13:22 +00:00
Xe Iaso
f80c4c1ba8
rename the docker tag from :main to :latest
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-31 16:33:33 +00:00
Xe Iaso
7442ab6f69
cmd/web: add a TSNET_VERBOSE escape hatch
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-31 16:24:44 +00:00
Xe Iaso
c249aa71dc
Merge pull request #1 from tailscale-dev/mihaip/install
...
cmd/web: fix installation instructions
2023-01-31 10:23:50 -05:00
Mihai Parparita
1efa5d5525
cmd/web: fix installation instructions
...
`go get` is for updating go.mod, `go install` builds and installs the
package.
Signed-off-by: Mihai Parparita <mihai@tailscale.com>
2023-01-30 13:21:25 -08:00
Xe Iaso
0b351b4be6
cmd/web: remove a debug printf
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-17 15:52:10 +00:00
Xe Iaso
884d103e29
cmd/web/showpaste: move paster username near profile picture
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-17 15:52:00 +00:00
Xe Iaso
f222f0d3c0
cmd/web: make pagination offset by groups of 25
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-17 14:20:15 +00:00
Xe Iaso
0e1b5dc2e6
README: update directions for deployment
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-17 14:19:52 +00:00
Xe Iaso
2b46d26c2d
missed one
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 19:40:25 +00:00
Xe Iaso
6ffbf1a9c3
actually rename tclip
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 19:23:30 +00:00
Xe Iaso
47bc48676e
fix CI
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 19:17:44 +00:00
Xe Iaso
b4ff6aa03f
rename to tclip
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 19:14:45 +00:00
Xe Iaso
6719a8ae16
I think the artifact uploading hates symlinks
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 19:04:02 +00:00
Xe Iaso
1bdcf66f0e
turns out you need to log into docker to push images
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 17:58:24 +00:00
Xe Iaso
f560b81d38
allow workflow to read the repo contents
...
Turns out if you don't tell it it can do something, it won't be able to
do that thing.
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 17:51:51 +00:00
Xe Iaso
c30730a853
bless CI with packages permissions
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 17:39:30 +00:00
Xe Iaso
7c750321c6
add CI
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 17:32:54 +00:00
Xe Iaso
d0455dc162
add deployment directions to readme
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 17:21:46 +00:00
Xe Iaso
34bef046bf
create portable service image
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 16:23:53 +00:00
Xe Iaso
ad516287c4
rename go install url
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 16:10:43 +00:00
Xe Iaso
2d60fbc5cb
rename to infinipaste
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 16:07:36 +00:00
Xe Iaso
14c5989f6c
write help page
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-16 16:02:09 +00:00
Xe Iaso
5af5149e34
add emacs submission script
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-13 21:36:54 +00:00
Xe Iaso
98393c7b58
show help page
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-12 21:01:01 +00:00
Xe Iaso
d8cdd736a7
cmd/web: make error messages cleaner, add TLS, fix the posting form
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-12 16:25:34 +00:00
Xe Iaso
34f5253535
go mod tidy
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-12 16:25:13 +00:00
Xe Iaso
2db588e8ae
update nixpkgs
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-01-11 20:24:35 +00:00
Xe Iaso
e132530597
many fixes
...
cmd/tailpaste:
- better handle the error cases from web
cmd/web:
- Implement list of pastes
- Add contextual navbar for paste list and meta help
- Add error page rendering
- Add paginated paste listing
- Add created_at column
- Make paster information less janky on per-paste views
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-15 18:47:09 +00:00
Xe Iaso
a4b18e796a
implement the public index page
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-15 17:37:35 +00:00
Xe Iaso
24b7c5452c
implement browser created pastes
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-14 18:31:08 +00:00
Xe Iaso
49239f2830
implement HTML rendering
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-13 15:59:28 +00:00
Xe Iaso
93069712a9
rename cmd/paste to cmd/tailpaste, nix builders for commands
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-08 20:45:45 +00:00
Xe Iaso
5184d9337f
cmd/web: write URL to client instead of forwarding client
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-08 20:38:02 +00:00
Xe Iaso
b397291bd2
initial commit
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-12-08 19:43:13 +00:00