Xe Iaso
90fa48d541
cmd/web: rename to tclipd
2023-09-19 12:14:48 -04:00
Xe Iaso
4085af8a6f
Merge pull request #18 from gmemstr/org-mode-rendering
...
Treat org-mode as render-able document
2023-09-19 11:59:42 -04:00
Gabriel Simmer
826a811dc8
Merge branch 'main' into org-mode-rendering
2023-09-19 16:47:29 +01:00
Xe Iaso
856c3ac790
Merge pull request #20 from jolheiser/enry
...
fix: remove markdown hack
2023-09-19 11:46:21 -04:00
Gabriel Simmer
de6cf78ba6
Restrain img to width of container.
2023-09-19 16:46:15 +01:00
Gabriel Simmer
367a84eb11
Treat org-mode as render-able document
2023-09-19 16:45:22 +01:00
Xe Iaso
3e99403a66
Merge pull request #34 from tailscale-dev/Xe/avatar-size-fixes
...
cmd/web: adjust avatar sizing CSS to make avatars visible
2023-09-19 11:43:53 -04:00
jolheiser
d7abc4efa3
fix: remove markdown hack
...
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2023-09-19 10:42:53 -05:00
Xe Iaso
1849c333ea
cmd/web: adjust avatar sizing CSS to make avatars visible
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-09-19 11:39:01 -04:00
Xe Iaso
2f7ded9122
Merge pull request #17 from gmemstr/conditional-profile-pic
...
Conditionally render profile picture img
2023-09-19 11:35:58 -04:00
Xe Iaso
fd0551f18e
Merge pull request #35 from tailscale-dev/Xe/updates-globally
...
update nixpkgs and go dependencies
2023-09-19 11:35:16 -04:00
Gabriel Simmer
6fde9533d6
cmd/web/tmpl: Also conditionally render for showpaste template
2023-09-19 11:34:39 -04:00
Xe Iaso
cfddee4285
update nixpkgs and go dependencies
...
Fixes #30
Fixes #28
2023-09-19 11:24:38 -04:00
Xe Iaso
0624533bed
Merge pull request #33 from tailscale-dev/Xe/modernc-sqlite
...
cmd/web: use modernc sqlite
2023-09-19 11:16:57 -04:00
Xe Iaso
93a9206b90
cmd/web: fix time format to use a known type
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-09-19 10:58:35 -04:00
Xe Iaso
ec04b09f74
cmd/web: use modernc sqlite
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-09-19 10:51:11 -04:00
Xe Iaso
08405a1feb
Merge pull request #26 from tailscale-dev/Xe/tailwind
...
cmd/web: use tailwind for CSS styles
2023-08-29 12:26:05 -04:00
Xe Iaso
f83b0ba835
cmd/web: minor navbar fix
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-08-29 11:07:42 -04:00
Xe Iaso
44f7daa250
cmd/web: copy the rest of the Tailwind style golink uses
...
Signed-off-by: Xe Iaso <xe@tailscale.com>
2023-08-29 10:45:50 -04:00
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