minor
parent
ccc357591e
commit
1ca0893c2e
10
README.md
10
README.md
|
@ -8,11 +8,15 @@ 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
|
||||||
|
|
||||||
|
|
|
@ -233,6 +233,9 @@ 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
|
||||||
|
@ -338,8 +341,14 @@ func _main() error {
|
||||||
}
|
}
|
||||||
emailVal := signups[signupIx].Email
|
emailVal := signups[signupIx].Email
|
||||||
providedEmailView.SetText(emailVal)
|
providedEmailView.SetText(emailVal)
|
||||||
cleanEmailInput.SetPlaceholder(
|
/*
|
||||||
strings.TrimSpace(strings.ReplaceAll(emailVal, "\n", " ")))
|
TODO the placeholder doesn't appear to become the default text which is
|
||||||
|
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)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# townstats
|
# townstats
|
||||||
|
|
||||||
This program dumps information about tilde.town in the [Tilde Data Protocol](http://protocol.club/~datagrok/beta-wiki/tdp.html).
|
Code for dumping information about tilde.town in the [Tilde Data Protocol](http://protocol.club/~datagrok/beta-wiki/tdp.html).
|
||||||
|
|
||||||
# author
|
# author
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@ vilmibm, based on python work by [datagrok](https://datagrok.org)
|
||||||
|
|
||||||
# license
|
# license
|
||||||
|
|
||||||
gplv3+
|
gplv3+
|
||||||
|
|
Loading…
Reference in New Issue