Harvey Tindall
3747eaa3a7
messages: refactor dc/tg, fix tg
...
less external access to Discord/TelegramDaemon internals, will be easier
to keep user/admin-side uses functioning similarly. Also changed their
internal token stores to use a map, and store an expiry. verifiedTokens
is also now a map in telegram. Also fixed issue where token wasn't being
deleted after use on the user page.
2 years ago
Harvey Tindall
761d8d1c03
userpage: refresh pin when contact changed > once
2 years ago
Harvey Tindall
4e7f720214
userpage: hide bg on login, dont refresh page ever
2 years ago
Harvey Tindall
757c3a8aed
userpage: move cards around
2 years ago
Harvey Tindall
87b0ae6614
userpage: adjust message row span depending on length
2 years ago
Harvey Tindall
920161b920
settings: add "note" type, shows as card
...
also comes with a "style" attribute, to apply a color to the aside it's
shown in. Used in User Page/Messages to mention the customize button,
and on User page w/ a critical color to mention the jellyfin login
requirement.
2 years ago
Harvey Tindall
e7f7dcbb78
userpage: show placeholder message card for admins
2 years ago
Harvey Tindall
cc4a97db28
userpage: fix card color in light mode
2 years ago
Harvey Tindall
b546aeb440
userpage: don't wrap contact methods, ellipsise
2 years ago
Harvey Tindall
99679a800d
userpage: add customizable message on page
2 years ago
Harvey Tindall
7b9b0d8a84
userpage: implement login message card
...
Shares code with custom emails, so most related functions have had a
%s/Email/Message/g. Press the edit button on the user page setting to
add a message.
2 years ago
Harvey Tindall
8e153cd92f
userpage: unlink accounts
2 years ago
Harvey Tindall
d509abdd5c
userpage: add matrix
2 years ago
Harvey Tindall
96c51af15a
matrix: modularize
2 years ago
Harvey Tindall
68004e1d34
storage: user set/get methods for contact method access
...
Get/GetKey/SetKey/DeleteKey methods are used for access to
email/discord/telegram/matrix, everywhere. Mutex added for each, avoids
concurrent read/write issues. Will also make potential transition to
database easier.
2 years ago
Harvey Tindall
fcedea110d
telegram: modularize, add to userpage
2 years ago
Harvey Tindall
68aedf07ae
discord: pad, underline invite link
2 years ago
Harvey Tindall
094f7cea94
discord: use placeholder if guild icon not available
...
also centers the invite on the form/user discord modal.
2 years ago
Harvey Tindall
765a749959
discord: modularize user-facing code
...
will be done for others too, code for discord account linking in form
and userpage is now in ts/modules/account-linking.ts as a configurable
class.
2 years ago
Harvey Tindall
cf7983ca11
userpage: add/edit discord
...
works identically to on the form, would like to eventually factor out
the discord/telegram/matrix verif stuff so it can be shared between the
two pages though.
2 years ago
Harvey Tindall
609039baeb
userpage: change email (+ confirmation)
...
edit/add button added for email address. Confirmation works too.
2 years ago
Harvey Tindall
03f1a3dbc0
userpage: expand contact card to fill height
2 years ago
Harvey Tindall
75dc9d4d1d
userpage: store refresh token separately
...
stored as "user-refresh" fixes weird issues when two accounts are logged
in.
2 years ago
Harvey Tindall
5beeeb958b
userpage: show expiry
2 years ago
Harvey Tindall
a22f032924
userpage: show and allow modification of contact methods
2 years ago
Harvey Tindall
3e034c85d6
auth: provide error message if account is disabled
2 years ago
Harvey Tindall
d3c5feaf1b
userpage: use form langfile, move login strings to common
...
login-related stuff was moved into common using the langmover script, so
that the user page doesn't have to use the admin language files.
2 years ago
Harvey Tindall
96c62f556b
langmover: rewrite whole directory when using --extract
...
--extract now takes a path argument, a new copy of the source folder is
made there. Rebuilding the whole folder gets rid of annoying things like
mis-capitalized files.
2 years ago
Harvey Tindall
ebdad3f7c7
scripts: fix langmover for non-ascii chars
2 years ago
Harvey Tindall
2fc2f1ddb3
lang: add patchable notifications to common
2 years ago
Harvey Tindall
a1af6e3892
scripts: add langmover
...
a tool to move strings between language file sections. Will be used to
move login strings from admin into their own "login" file section.
2 years ago
Harvey Tindall
726acb9c29
userpage: initial page
...
login, lang, and theme work. Currently only makes a request to a
hello-world type endpoint to verify auth works. Accessible at
/my/account.
2 years ago
Harvey Tindall
54fde33a20
admin: a little more refactoring
...
all theme functionality is now in theme.ts, and the tab stuff has been
changed a little but kept in admin as it won't be in use anywhere else
for the time being.
2 years ago
Harvey Tindall
b8cc75c6b4
login: modularize frontend code
...
all in ts/modules/login.ts
2 years ago
Harvey Tindall
b13fe7f3e4
html: move login modal to own file
2 years ago
Harvey Tindall
81372d6a6b
auth: fix "ok" issue
...
the "ok" returned when the JWT claims are read was being overridden with
"false" before it could be checked.
2 years ago
Harvey Tindall
918f8816c5
auth: slight refactor, setup user auth
...
user-auth.go contains slightly adjusted versions of auth.go functions,
for authorizing jellyfin users (admin or not). Refactored auth.go so that
most code is shared. User auth isn't hooked up yet, nor has it been
tested.
2 years ago
Harvey Tindall
bf981935cb
form: fix header alignment
2 years ago
Harvey Tindall
1fa92f78e4
merge captcha changes
2 years ago
Harvey Tindall
07564bbde3
captcha: recaptcha respects dark mode
...
also removed the ugly border around it.
2 years ago
Harvey Tindall
4014e93155
signup: add reCAPTCHA
...
can be enabled in settings > captcha, requires a site key & secret key
from google. New wiki article explains getting these. currently a little
ugly looking on the page itself, hopefully fixable.
2 years ago
Qutyba
f81224a2a6
translation from Weblate (Arabic)
...
Currently translated at 100.0% (42 of 42 strings)
Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/ar/
2 years ago
Qutyba
8760152159
Translated using Weblate (Arabic)
...
Currently translated at 100.0% (10 of 10 strings)
Translation: jfa-go/Telegram/Matrix/Discord bots
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/chat-bots/ar/
2 years ago
Kovács Tamás
5694f30a94
translation from Weblate (Hungarian)
...
Currently translated at 100.0% (42 of 42 strings)
Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/hu/
2 years ago
Gabriele Bizzon
156478b381
translation from Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (42 of 42 strings)
Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/pt_BR/
2 years ago
Rafael Gale
ad416b9cb2
translation from Weblate (Spanish)
...
Currently translated at 100.0% (42 of 42 strings)
Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/es/
2 years ago
StunBeta
2e39a5e573
Translated using Weblate (French)
...
Currently translated at 100.0% (10 of 10 strings)
Translation: jfa-go/Telegram/Matrix/Discord bots
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/chat-bots/fr/
2 years ago
StunBeta
cab099d77f
Translated using Weblate (French)
...
Currently translated at 100.0% (112 of 112 strings)
Translation: jfa-go/Setup
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/setup/fr/
2 years ago
StunBeta
0b5e93fd60
Translated using Weblate (French)
...
Currently translated at 100.0% (23 of 23 strings)
Translation: jfa-go/Common Strings
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/common-strings/fr/
2 years ago
StunBeta
6e2ba78204
translation from Weblate (French)
...
Currently translated at 97.6% (41 of 42 strings)
Translation: jfa-go/Account Creation Form
Translate-URL: https://weblate.jfa-go.com/projects/jfa-go/form/fr/
2 years ago