9e5034ebab
referrals: enable referral for users & profiles
...
Enabling for individual users works, as does adding a template to a
profile. Removing/Disabling for both needs to be completed.
2023-09-06 22:00:44 +01:00
c2f835c897
referrals: show data on enable referral for user modal
...
profiles and invites are properly shown.
2023-06-30 16:47:35 +01:00
9c2f27bcdb
referrals: 1/2 generation routes, display route, partial frontend
...
route for generation/enabling of referral for user(s) done? the frontend
is mostly done, but functionality is not there yet. Route for finding
and displaying referral to user is done. Also the config option for
referral is there, in user page settings.
2023-06-28 16:05:24 +01:00
423fc4ac80
accounts: non-case sensitive search
2023-06-27 07:35:28 +01:00
b5c80e9d27
config: make sure recaptcha is hidden when disabled
2023-06-26 23:24:58 +01:00
3fa4b01115
setup: add user page
...
also sprinkled mentions of it throughout other relevant pages.
2023-06-26 21:29:49 +01:00
a13a72c626
admin: fix logout when url base is used
...
two tries are made, with and without the url base.
2023-06-26 20:28:20 +01:00
5a80145607
css: add notification animation
...
simple slide animation, plus a little scale effect when a duplicate
notification gets sent to make the notification more obvious.
2023-06-26 20:13:02 +01:00
baf5e6a593
accounts: add dropdown arrow on "Announce" button
2023-06-26 13:08:34 +01:00
b17d8424e9
profiles: fix application
...
moving to a DB meant empty slices in the Configuration & Policy structs
were being stored as null, and striking a nerve with Jellyfin.
Mediabrowser library change fixed that by de-nulling them itself, and a
new bool field called "Homescreen" is now used to decide if a profile
has a homescreen layout stored or not. This field is hopefully correctly
filled in during migration.
2023-06-26 13:01:17 +01:00
d2253ff069
accounts: fix filter card height
...
string filter cards were too tall, so bool cards now expand to the same
height. y-margins also removed it made the bottom get covered.
2023-06-25 21:28:38 +01:00
fc7ae0ec4e
userpage: respect 12h/24h choice
2023-06-24 12:32:28 +01:00
bfeab3648c
form: change contact-via radios to checks
2023-06-23 12:30:52 +01:00
7aaafb90e3
form: actually link to the my account page
...
forgot to do this before. shown on the success modal.
2023-06-22 21:57:19 +01:00
97db4d714a
userpage: implement change password functionality
2023-06-22 20:54:52 +01:00
12ce669566
userpage: add password change card, validation, rearrange page
...
functionality not done yet, just comitting here because there were lots
of adjustments to layout stuff, accomodating for most combinations of
card presence/size.
2023-06-22 18:51:30 +01:00
3b3f37365a
userpage: autofill username in pwr modal
2023-06-22 12:39:13 +01:00
3ec3e9672e
userpage: time-pad pwr request for ambiguity
...
the user shouldn't know if the reset has actually been sent (i.e. if an
account with the given contact address exists), so the backend response
is always sent after 1 second.
2023-06-22 12:27:44 +01:00
86daa70ccb
userpage: password resets
...
click "forgot password" on login modal, enter a contact method
address/username, submit and check for a link. Requires link reset to be
enabled.
2023-06-22 12:08:18 +01:00
db97c3b2d4
form: add notice about userpage on success modal, userpage title
...
uses new strings in the form lang section.
2023-06-22 10:12:22 +01:00
4f298bbc8c
userpage: add "back to admin" button
2023-06-22 09:41:41 +01:00
ebacfd43be
form: fix captcha, matrix, telegram
...
new issue though: discord/telegram/matrix aren't linked when email
confirmation is used!
2023-06-21 20:00:48 +01:00
761d8d1c03
userpage: refresh pin when contact changed > once
2023-06-21 17:07:02 +01:00
4e7f720214
userpage: hide bg on login, dont refresh page ever
2023-06-21 17:02:57 +01:00
87b0ae6614
userpage: adjust message row span depending on length
2023-06-21 13:30:09 +01:00
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.
2023-06-21 12:28:52 +01:00
e7f7dcbb78
userpage: show placeholder message card for admins
2023-06-21 11:27:51 +01:00
b546aeb440
userpage: don't wrap contact methods, ellipsise
2023-06-20 22:18:38 +01:00
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.
2023-06-20 21:43:25 +01:00
8e153cd92f
userpage: unlink accounts
2023-06-20 16:44:12 +01:00
d509abdd5c
userpage: add matrix
2023-06-20 13:28:13 +01:00
96c51af15a
matrix: modularize
2023-06-20 12:57:52 +01:00
fcedea110d
telegram: modularize, add to userpage
2023-06-19 22:11:35 +01:00
68aedf07ae
discord: pad, underline invite link
2023-06-19 18:03:35 +01:00
094f7cea94
discord: use placeholder if guild icon not available
...
also centers the invite on the form/user discord modal.
2023-06-19 17:48:24 +01:00
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.
2023-06-19 11:58:09 +01:00
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.
2023-06-18 21:38:12 +01:00
609039baeb
userpage: change email (+ confirmation)
...
edit/add button added for email address. Confirmation works too.
2023-06-18 19:38:09 +01:00
5beeeb958b
userpage: show expiry
2023-06-18 12:27:18 +01:00
a22f032924
userpage: show and allow modification of contact methods
2023-06-17 17:27:44 +01:00
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.
2023-06-17 12:48:28 +01:00
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.
2023-06-16 14:43:37 +01:00
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.
2023-06-16 13:43:34 +01:00
b8cc75c6b4
login: modularize frontend code
...
all in ts/modules/login.ts
2023-06-15 23:52:16 +01:00
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.
2023-06-15 17:11:27 +01:00
bf12016315
accounts: make filter names translatable
2023-06-14 19:59:38 +01:00
b544931ee5
accounts: fix id filtering, make string translatable
2023-06-14 18:57:30 +01:00
708d382a3f
accounts: fix hiding of search options header for default sort
2023-06-14 18:43:46 +01:00
6ddd09ff1f
accounts: add header to "actions" and "search options"
2023-06-14 18:38:12 +01:00
ddc560e862
accounts: move filter button, add clear search
...
filter button now on left due to the dropdown being huge.
2023-06-14 17:36:41 +01:00