Compare commits

..

No commits in common. "1ca0893c2eb87fcc24ea757a9d1cfaf6ed434bf4" and "852a1043005f8c7ae24fe796b3023650ffa095b5" have entirely different histories.

4 changed files with 8 additions and 21 deletions

View File

@ -8,15 +8,11 @@ commands:
- `request` (invokved on town as `town request-gitea` or `town request-gemini`), a helper command for requesting certain featuers be enabled for your town account - `request` (invokved on town as `town request-gitea` or `town request-gemini`), a helper command for requesting certain featuers be enabled for your town account
- `stats` (invoked as `town stats`), a command that prints out information about the town and its users in JSON. - `stats` (invoked as `town stats`), a command that prints out information about the town and its users in JSON.
- `visit` an experimental command for "visiting" a user. - `visit` an experimental command for "visiting" a user.
- `signup` command that powers `ssh join@tilde.town`
- `welcome` command that powers `ssh welcome@tilde.town`
- `review` a TUI for town admins to review signups
There are also sundry helpers and scripts under `cmd/`.
A lot of this behavior (for example, `stats`) is exposed as a library. if you want to make some stuff for town and want to work in Go feel free to import this and use it.
## TODO ## TODO
- [ ] expose `stats` as a library
- [ ] add a command for contributing scripts to the launcher's index
- [ ] consider bringing the launcher's index of commands into this git repo so it can be tracked - [ ] consider bringing the launcher's index of commands into this git repo so it can be tracked
- [ ] add a Makefile - [ ] add a Makefile

View File

@ -233,9 +233,6 @@ func _main() error {
reviewForm.AddButton("submit", func() { reviewForm.AddButton("submit", func() {
currSignup := signups[signupIx] currSignup := signups[signupIx]
cleanEmail := reviewForm.GetFormItemByLabel("clean email").(*tview.InputField).GetText() cleanEmail := reviewForm.GetFormItemByLabel("clean email").(*tview.InputField).GetText()
defer func() {
cleanEmailInput.SetText("")
}()
currSignup.CleanEmail = cleanEmail currSignup.CleanEmail = cleanEmail
decision := models.SignupRejected decision := models.SignupRejected
@ -341,14 +338,8 @@ func _main() error {
} }
emailVal := signups[signupIx].Email emailVal := signups[signupIx].Email
providedEmailView.SetText(emailVal) providedEmailView.SetText(emailVal)
/* cleanEmailInput.SetPlaceholder(
TODO the placeholder doesn't appear to become the default text which is strings.TrimSpace(strings.ReplaceAll(emailVal, "\n", " ")))
what I wanted it to do. Just taking this out so the blank box beckons
input. Also, it seems like the AcceptanceFunc didn't work since a blank
value got through.
cleanEmailInput.SetPlaceholder(
strings.TrimSpace(strings.ReplaceAll(emailVal, "\n", " ")))
*/
decisionFI.SetCurrentOption(1) decisionFI.SetCurrentOption(1)
pages.SwitchToPage("review") pages.SwitchToPage("review")
app.SetFocus(cleanEmailInput) app.SetFocus(cleanEmailInput)

View File

@ -1,6 +1,6 @@
# townstats # townstats
Code for dumping information about tilde.town in the [Tilde Data Protocol](http://protocol.club/~datagrok/beta-wiki/tdp.html). This program dumps information about tilde.town in the [Tilde Data Protocol](http://protocol.club/~datagrok/beta-wiki/tdp.html).
# author # author

View File

@ -318,7 +318,7 @@ func Stats() (TildeData, error) {
return TildeData{ return TildeData{
Name: "tilde.town", Name: "tilde.town",
URL: "https://tilde.town", URL: "https://tilde.town",
SignupURL: "https://tilde.town/signup", SignupURL: "https://cgi.tilde.town/users/signup",
WantUsers: true, WantUsers: true,
AdminEmail: "root@tilde.town", AdminEmail: "root@tilde.town",
Description: description, Description: description,