14 Commits
Author SHA1 Message Date
c7ac33d04c golink: add support for deleting links
To delete a link, go to its page in `.detail` and click on the "Delete"
button. Stats for the deleted link are removed as well.

Co-authored-by: Will Norris <will@tailscale.com>
Signed-off-by: Gabriel Wong <gabriel@bifrost.ai>
Signed-off-by: Will Norris <will@tailscale.com>
2023-05-01 17:34:41 -07:00
Will NorrisandWill Norris 132a396390 update colors and tweak detail layout
Signed-off-by: Will Norris <will@tailscale.com>
2023-05-01 17:34:41 -07:00
Will NorrisandWill Norris 3c4fb78866 css: responsive design for /.all page
Signed-off-by: Will Norris <will@tailscale.com>
2023-02-07 16:08:19 -08:00
Will NorrisandWill Norris 9d1e45fb4e add basic favicon
Nothing fancy, just the text "go/" in the Inter font semi-bold.

Fixes #20
2022-12-05 20:03:25 -08:00
Will NorrisandWill Norris bb3e973b80 remove static/opensearch.xml
This was replaced by tmpl/opensearch.xml and isn't needed.
2022-12-05 16:53:34 -08:00
9d2c372f1d add support for browser bar search keyword
Respect custom hostname in open search document.

Co-authored-by: Will Norris <will@tailscale.com>
2022-12-05 15:01:33 -08:00
Will Norris 89c71fd520 bump tailwind and dependencies 2022-11-08 15:04:21 -08:00
Will Norris 8a19d103dc cmd/golink: add info icon for link details
Change-Id: Ic13864fd1bde11263cc1783accdb6a5678f77253
2022-06-30 08:59:56 -07:00
Will Norris ed638ef9d3 cmd/go: add /.detail page for viewing and editing links
This also adds the ability to transfer links to new owners.

Change-Id: I2172291521db82982b0f30b0f9af92a063dc5100
2022-06-29 14:19:05 -07:00
Will Norris c7f68940d6 cmd/golink: use html/template when rendering pages
Properly use html/template rather than text/template so that we don't
have to worry about escaping data that is passed in to the templates.

Also move the success page into a template for both better rendering and
consistency.

Finally, this includes some tailwind changes that apparently got missed
in previous commits.

Change-Id: Ic658ab940888c44483501e33699da9021be18ecf
2022-06-28 15:35:25 -07:00
Will Norris abf84df32e cmd/golink: provide user documentation
Add a new /.help URL which contains a first pass at user docs, covering
naming rules for short links, using go templates, and basic API access.
Also add client side validation for short name and a link to help page.

Change-Id: I4b66793248eba17e567c4f422ee197617f74ee24
2022-06-21 09:25:14 -07:00
Will Norris 67b1a11f57 cmd/golink: display shortname as input group
Change-Id: Ie2d609d495e42b37b9d92d71604646134a512a7b
2022-06-17 17:05:26 -07:00
Will Norris 7f69882100 cmd/golink: fix scaling on mobile
apparently also pickup some stray tailwind changes

Change-Id: I8bf5ba4b4f6d185edf45f6c85f9d7cae3637de76
2022-06-09 09:46:37 -07:00
Will Norris 5f349bb6d2 cmd/golink: add styling using tailwind
Change-Id: I301e1d6a9b38de3762c1e9e92c1fff6ccd873afd
2022-06-08 09:16:45 -07:00