Commit graph

13 commits

Author SHA1 Message Date
Xe Iaso 408c342eb5 cmd/web: show up to top 5 recent pastes on homescreen
Closes #4

Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-23 18:09:53 +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 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 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 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 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 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 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