Commit Graph

89 Commits

Author SHA1 Message Date
decentral1se 00a1452cfc
Migrate to ssbc urls (#336)
* fix: ssbc urls

Closes https://github.com/ssbc/go-ssb-room/issues/332

* fix: go-ssb-refs API changes

* test: go-ssb-refs API changes

Co-authored-by: decentral1se <cellarspoon@riseup.net>
Co-authored-by: André Staltz <andre@staltz.com>
2022-11-07 11:18:13 +02:00
decentral1se 227efa6a79
fix: username -> SSB-ID (#310)
Follows https://github.com/ssb-ngi-pointer/go-ssb-room/pull/308.

Co-authored-by: decentral1se <cellarspoon@riseup.net>
2022-08-22 11:56:16 +03:00
decentral1se 6aaea32407
fix: support password entry for /join-manually (#306)
Closes https://github.com/ssb-ngi-pointer/go-ssb-room/issues/234.

Co-authored-by: decentral1se <cellarspoon@riseup.net>
2022-08-22 11:52:35 +03:00
decentral1se de4321dcb2 fix: user facing "username"/"public key" -> SSB-ID
See https://github.com/ssb-ngi-pointer/go-ssb-room/issues/275.
2022-04-06 14:33:47 +03:00
pathab ad3cf28cb2
Merge branch 'master' into german-translation 2021-10-31 10:38:34 +01:00
Henry a249fd8bee fix SPDX headers and add reuse API badge 2021-10-08 14:39:31 +02:00
pathab 694d9b2ac0 Compared all keys with active.en.toml and made som corrections 2021-06-26 23:39:03 +02:00
pathab 5dd18b4781 Update active.de.toml 2021-06-26 23:02:23 +02:00
pathab 914a4f98e8 Better German translation (not finished yet) 2021-06-26 10:38:22 +02:00
Tim Nordenfur 6313ee5546 fixed some typos 2021-06-15 16:24:06 +02:00
Tim Nordenfur 7c068f2df1 inserted missing paren 2021-06-04 06:39:19 +02:00
Henry 4d3610e2fb prepare v2 release 2021-05-31 14:51:05 +02:00
Henry 81c05a663d Support open invites (fixes #102) 2021-05-17 10:16:26 +02:00
Henry 385b98a3a1 add privacy mode and role tests (fixes #185)
* denied/remove
* denied/add
* invites/revoke
* members/remove
* notices/edit
* notices/add

also:
* add members.CheckAction helper
* fix muxrpc abort bug and update to v2.0.5
* strictly use SeeOther not 307 (fixes #149)
2021-05-14 14:27:01 +02:00
Henry be35f154b7 add tests for new password features
* reset link creation
* own password change
* setPasswordWithToken
* also: move member handler funcs to own file
2021-05-13 07:39:19 +02:00
Henry 336596552e fix HTML in i18n strings
previously it just worked on errors
2021-05-13 07:39:19 +02:00
Henry 4558b208ee implement password update flow with reset tokens (fixes #98)
also update AuthFallback database

* re-write fallback auth to use alias or ssbid
* replace Create() with SetPassword() which does an upsert
* Add reset tokens to sqlite
* add test for SetPassword with reset token
2021-05-13 07:39:14 +02:00
Henry 653d0926f7 add password change form 2021-05-11 10:16:35 +02:00
Henry eaaed06fba add label to own entry in members list
Shows a green "this is you" label on the members list. Green because
that's also the color of the tag on the top right.

Also changes the color of the  moderator label from green to blue to be
less confusing.
2021-05-11 08:18:35 +02:00
Henry e72f1a3787 cleanup redirect mess for denied removal
updates #205
2021-05-10 13:51:29 +02:00
cblgh 2c9fdcb98e update HTML UI to reflect role access restrictions
* disable ui if user is unelevated
* disable revoke button if unelevated and not own invite
* improve styling of disabled elements
* remove revoke if alias not made my current user
2021-04-23 08:33:20 +02:00
cblgh 7759e8f898 add de translation, use []TagTranslation, and sort
to make sure the list of languages is sorted, we now use a slice of
TagTranslation{Tag: string, Translation: string} structs, sorted
by `TagTranslation.Tag`.
2021-04-20 09:22:53 +02:00
cblgh c97b7d44c3 add default language admin ui functionality 2021-04-20 09:22:49 +02:00
cblgh 534bdfcb6d improve api comment for ListLanguages 2021-04-20 09:12:15 +02:00
cblgh 682283374d mock injected functions for tests 2021-04-20 09:12:15 +02:00
cblgh f535aa8f9c set & use language cookie 2021-04-20 09:12:13 +02:00
cblgh 8c32b88cce add helper i18n.ListLanguages()
i18n.ListLanguages() returns a map, mapping language tags ('en', 'sv')
to the names of their corresponding languages (as translated by the
language itself).

This functionality will be used in the language picker, to present a
nice list of the translated languages.

I renamed testing.go to conform to go's testing conventions, and
added a test for i18n.ListLanguages().
2021-04-20 09:09:57 +02:00
Andre Staltz bb25283b4c
style the alias page and add JS redirect 2021-04-19 10:07:26 +03:00
Andre Staltz 7bbe33adab
refactor templates that have ssb uri links 2021-04-16 18:31:32 +03:00
Andre Staltz 6b082c45f7
more content and member links on the dashboard 2021-04-15 16:24:57 +03:00
Andre Staltz ed5a7f603e
fix invite QR code 2021-04-14 16:10:25 +03:00
Henry 8ff4adf160 various fixes
* fix test compilation
* fix aliases on member page
* add tests for aliases on member.GetByID and ByFeed
* fix admin tests
* use webassert helper for flash messages
* fix flashes
2021-04-12 14:10:42 +02:00
Henry dbf0fe5801 show login error above form 2021-04-12 14:09:09 +02:00
Henry cec7bc0e44 add flash message helper 2021-04-12 14:09:09 +02:00
Henry 81bd94344e web/handlers: revamp error localization
fixes #66
2021-04-12 14:09:07 +02:00
cblgh 22a2348187 create /settings, move privacy modes ui into it 2021-04-12 13:42:31 +02:00
cblgh ac1ede43be clean up privacy mode logic 2021-04-09 13:50:15 +02:00
cblgh 092ce82ab1 wip logic for setting privacy modes 2021-04-09 13:25:40 +02:00
cblgh 99f168e81e add english translations 2021-04-08 15:42:22 +02:00
Andre Staltz 67877407b8
restyle the invites page 2021-04-08 13:10:45 +03:00
Andre Staltz 4f70c62ab2
combine aliases page with members page 2021-04-07 14:38:03 +03:00
Andre Staltz ed4c50dcaf
add a loading indicator on invite facade 2021-04-06 11:43:42 +03:00
Andre Staltz 08c8b0cced
style the join (claim invite) pages 2021-03-30 18:04:07 +03:00
Andre Staltz 371109c136
style the admin/invite-created template 2021-03-30 17:38:52 +03:00
Andre Staltz 313405d469
style the dashboard template 2021-03-30 11:49:21 +03:00
Henry d1d108b9b7 Add support for invite consumption via JSON 2021-03-29 15:53:30 +02:00
Andre Staltz 09fcd573b4 style all the sign-in pages 2021-03-26 18:16:26 +01:00
Andre Staltz c70fad79fe style the server-initiated ssb-http-auth template 2021-03-26 13:45:21 +01:00
Henry e9883a049b various fixes 2021-03-26 13:45:21 +01:00
Henry 3b092885fb cleanup 2021-03-26 13:45:21 +01:00