Xe Iaso
442be15765
cmd/web: remove xess, fix showpaste on public pastes
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-08-29 10:22:58 -04:00
Xe Iaso
0ffce32a1b
cmd/web: use tailwind for CSS styles
2023-08-29 10:22:56 -04:00
Xe Iaso
c7853b7b74
Merge pull request #23 from jolheiser/connected
...
fix: typo
2023-08-22 15:26:35 -04:00
John Olheiser
89e141e439
fix: typo
2023-08-18 10:37:04 -05:00
Xe Iaso
1d9d102f9f
Merge pull request #16 from gmemstr/ts-auth-readme
...
Clarify how to authenticate service with Tailscale for local dev
2023-08-17 17:34:20 -04:00
Gabriel Simmer
596ccb79b8
Clarify how to authenticate service with Tailscale for local dev
2023-08-17 21:18:10 +01:00
Xe Iaso
1bab8e2ec9
Merge pull request #15 from jolheiser/infinipaste
...
chore: infinipaste -> tclip
2023-08-17 11:13:19 -04:00
jolheiser
d75844af57
chore: infinipaste -> tclip
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-08-12 16:09:57 -05:00
Xe Iaso
2c99626eb0
Merge pull request #10 from tailscale-dev/Xe/fix-404-double-render
...
cmd/web: fix double HTML render when passing a trailing slash
2023-08-02 14:40:08 -04:00
Xe Iaso
0445ac9708
Merge pull request #14 from tailscale-dev/Xe/funnel
...
Funnel support
2023-06-04 09:40:38 -04:00
Xe Iaso
db92129944
Merge branch 'main' into Xe/fix-404-double-render
2023-05-26 16:21:48 -04:00
Xe Iaso
6a3e79b8d0
cmd/web: only show authenticated header to tailnet users
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-03-17 15:52:33 +00:00
Xe Iaso
c6a02cacea
cmd/web: add a mixed criticality handler for muxing tailnet and funnel
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-03-17 15:27:47 +00:00
Xe Iaso
70c0db34cd
update gomod2nix
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-03-17 14:43:35 +00:00
Xe Iaso
97f7278970
cmd/web: add code for enabling funnel
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-03-17 14:41:32 +00:00
Xe Iaso
26cbc62bca
go.mod: update tailscale
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-03-17 14:38:56 +00:00
Xe Iaso
5ed6edcd6f
update nix flakes to Go 1.20
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-03-17 14:30:52 +00:00
Xe Iaso
36d8fd327e
Update README.md
2023-03-14 13:41:07 -04:00
Xe Iaso
34c1a0efb8
Merge pull request #12 from tailscale-dev/Xe/markdown-render
...
cmd/web: add markdown processing
2023-02-27 10:58:47 -05:00
Xe Iaso
37727362e9
cmd/web: review fixes
...
* check extensions before content
* explicitly denote enry hack until upstream fixes[1]
* comment each case for the url parts deconstruction trick
* use fname as title when no title exists
* better title detection logic
* kill a random empty line in inline CSS
* rename sp (split) to pathComponents
[1]: https://github.com/go-enry/go-enry/pull/154
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 18:32:05 +00:00
Xe Iaso
15f805f8fc
Merge pull request #13 from tailscale-dev/Xe/fix-only-push-on-main
...
.github/nix: only run push job on pushes to main
2023-02-24 13:29:34 -05:00
Xe Iaso
3e64cf9c05
cmd/web: fix redirect for non-markdown posts in fancy mode
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 17:44:46 +00:00
Xe Iaso
a3184dfa46
cmd/web: show fancy posts without metadata
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 17:42:41 +00:00
Xe Iaso
943b050f2d
.github/nix: only run push job on pushes to main
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 17:38:21 +00:00
Xe Iaso
8ca068ac3e
cmd/web: optionally render markdown posts in a fancy view
...
/pastes/{id}/md gets you a fancy formatted view
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 17:29:01 +00:00
Xe Iaso
99721b17f5
flake: update for go 1.20
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 17:05:08 +00:00
Xe Iaso
21f7d61b42
cmd/web: render posts with Inter, show border around posts
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-24 15:18:32 +00:00
Xe Iaso
dc69c0cd81
cmd/web: add markdown processing
...
This uses the library blackfriday[1] to convert markdown to HTML. This
is a naive implementation, but it will do for now.
[1]: https://pkg.go.dev/github.com/russross/blackfriday
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-02-23 19:58:37 +00:00
Xe Iaso
d3771c4ada
Merge pull request #11 from tailscale-dev/Xe/submission-form-blank-page
...
cmd/web: fix rendering blank page when submitting paste
2023-02-23 13:34:18 -05:00
Xe Iaso
ead2341c89
Merge pull request #7 from tailscale-dev/Xe/no-double-avatar
...
cmd/web: hide your profile pic if you authored the active paste
2023-02-23 13:34:00 -05:00
Xe Iaso
336965494b
Merge pull request #9 from tailscale-dev/Xe/recent-paste-homepage
...
cmd/web: show up to top 5 recent pastes on homescreen
2023-02-23 13:32:38 -05:00
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
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