-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
76 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,6 @@ title: UI | |
description: user interfaces at pico | ||
--- | ||
|
||
We have two user interfaces: SSH TUI and a Web UI. | ||
|
||
# SSH TUI | ||
|
||
With this TUI you can perform a few basic operations like: create an account, | ||
|
@@ -16,29 +14,13 @@ To use the TUI just SSH into our site: | |
ssh pico.sh | ||
``` | ||
|
||
# Web UI | ||
|
||
This is an experimental web-based UI leveraging [web tunnels](/tunnels). | ||
# SSH CLI | ||
|
||
To use the web UI, create an SSH local forward connection to our [pgs](/pgs) | ||
site: | ||
Many of our services make use of the user providing argument to `ssh`: | ||
|
||
```bash | ||
ssh -L 1337:localhost:80 -N [email protected] | ||
``` | ||
|
||
Then open your browser and navigate to [localhost:1337](http://localhost:1337). | ||
|
||
## SSH Config | ||
|
||
The SSH tunnel command can be quite a lot to remember if you aren't using it | ||
consistently everyday. Instead, you can setup an SSH config entry to do all the | ||
work for you, here is an example config entry inside `~/.ssh/config`: | ||
|
||
``` | ||
Host ui | ||
User pico-ui | ||
Hostname pgs.sh | ||
LocalForward 0.0.0.0:1337 localhost:80 | ||
SessionType none | ||
ssh pico.sh help | ||
ssh pgs.sh help | ||
ssh prose.sh help | ||
ssh imgs.sh help | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
{{ define "pager" }} | ||
<div class="flex justify-between gap-2 my-4"> | ||
{{if .Prev}} | ||
<div class="pager max-w-half flex items-center"> | ||
{{if .Prev}} | ||
<div class="flex flex-col items-start"> | ||
<div class="text-sm font-grey-light"><< PREV</div> | ||
<a href="{{.Prev.GenHref}}" class="text-xl link-alt-adj">{{.Prev.Text}}</a> | ||
</div> | ||
{{end}} | ||
</div> | ||
{{end}} | ||
|
||
{{if .Next}} | ||
<div class="pager max-w-half flex items-center justify-end"> | ||
{{if .Next}} | ||
<div class="flex flex-col items-end"> | ||
<div class="text-sm font-grey-light"> | ||
NEXT >> | ||
</div> | ||
<a href="{{.Next.GenHref}}" class="text-xl align-right link-alt-adj">{{.Next.Text}}</a> | ||
</div> | ||
{{end}} | ||
</div> | ||
{{end}} | ||
</div> | ||
{{end}} |