Harvey Tindall
40fc5e9604
Fix email editor when plaintext setting enabled
2021-02-22 16:40:37 +00:00
Harvey Tindall
52d9cda61a
Move email rendering to browser
...
the email preview no longer has a delay after each change. This also
avoids a race condition in which the email currently being edited could
be actually sent.
2021-02-22 00:43:36 +00:00
Harvey Tindall
d1b1b90de3
Add email list accessible by edit button in settings
2021-02-21 15:51:42 +00:00
Harvey Tindall
058cac2e7b
implement email editor w/ live(?) preview
...
not accessible in the ui currently, but the object is available as
window.ee for testing.
2021-02-20 22:49:59 +00:00
Harvey Tindall
cc4e12c405
finish backend of custom emails
...
biggest bodge i've ever done but it works i guess.
2021-02-20 00:22:40 +00:00
Harvey Tindall
eb406ef951
Implement email template generation
...
Variables are surrounded by {}, and initial (default) templates are
generated on demand from the plaintext version of emails. The custom
emails are intended to only be used if the user actually changes them,
as they lose the features of the default ones, such as tables.
2021-02-19 21:38:20 +00:00
Harvey Tindall
b25f786018
use bulk email sending on account deletion
2021-02-19 14:51:36 +00:00
Harvey Tindall
76fa171575
cleanup logs and use structs in jf/emby api
...
Also means times are directly parsed when pulling data from jf/emby,
which was *painful* to get working (something broke the whole program and it
took me an hour to figure out it was this lol). Time parsing should be a
lot stabler too.
2021-02-19 00:47:01 +00:00
Harvey Tindall
fa433c88a8
add announcement emails
...
After selecting users in the accounts tab, you can press 'Announce',
then write a subject and message (with markdown), and an email will be
sent to each selected user.
2021-02-18 14:58:53 +00:00
Harvey Tindall
ea99966057
refactor, move route loading to router.go
2021-02-12 14:59:16 +00:00
Harvey Tindall
90c6cee780
add restart button
2021-01-31 19:01:20 +00:00
Harvey Tindall
456ef556b1
add inter-section dependency for settings
...
Currently used to hide all email sections when [email]/method is blank
(disabled).
2021-01-31 18:50:04 +00:00
Harvey Tindall
ee026714d4
Add optional email confirmation
...
If enabled, a confirmation email will be sent before the user can create
their account.
2021-01-30 19:19:12 +00:00
Harvey Tindall
3dd83bffbf
Merge branch 'new-setup'
...
Merge new setup wizard
This is much more up-to-date than the previous setup page, with a new
design and previously missing/new settings. Currently only available in
english (hopefully that changes soon).
also fixes conflict in _post.
2021-01-27 22:06:44 +00:00
Harvey Tindall
167fae9892
add jellyfin connection test, submission
...
fully functional now, but still need to add some sections (ombi mainly).
2021-01-27 12:55:39 +00:00
Harvey Tindall
8c871bc5fa
Add ts to link setting dependance
...
Also make store each setting as classes in a settings object, to make it
easier to serialize on submitting. Also, added
"substitute_jellyfin_strings", "no_username" and welcome_email.
2021-01-26 22:57:29 +00:00
Harvey Tindall
8af1c13d7e
Display error messages on form
...
two new strings need translating in lang/form.
2021-01-25 18:01:18 +00:00
Harvey Tindall
dd96d71280
Add optional label for invites
...
Requested in #38 .
2021-01-24 15:55:45 +00:00
Harvey Tindall
ea262ca60b
add optional welcome email for new users
...
When enabled, an email with the server URL and username will be sent to
created users. Requested in #38 .
2021-01-24 15:19:58 +00:00
Harvey Tindall
e834445b0b
Restructure language loading to support incomplete translations
...
On startup, files are scanned and any missing values are replaced with
the english version.
2021-01-19 00:29:29 +00:00
Harvey Tindall
3d5bea003a
Fix email language selection, add finished french emails
2021-01-15 14:43:32 +00:00
Harvey Tindall
bc99dc34ee
Add email translation, add part of french translations
...
Admin translation from @Killianbe, Email translation from
@Cornichon420. French is currently not functional, a few things are
missing which i'm waiting on.
2021-01-15 14:43:32 +00:00
Harvey Tindall
4679c6f355
add language selector to admin
2021-01-15 14:43:32 +00:00
Harvey Tindall
a3351f4da8
separate options for form and admin language
2021-01-15 14:43:32 +00:00
Harvey Tindall
3c799b8783
remove debug printfs
2021-01-11 19:19:19 +00:00
Harvey Tindall
3fbbc7f620
add language selector to form
2021-01-11 19:17:43 +00:00
Harvey Tindall and Harvey Tindall
8d0dc232d7
option to substitute "Jellyfin" in form.html
...
setting is jellyfin/substitute_jellyfin_strings.
2021-01-10 16:10:03 +00:00
Harvey Tindall and Harvey Tindall
d9e1e2f58b
compiles, basic issues fixed
...
Server type is found under the Jellyfin settings tab, where you can
change it to emby. Currently:
* logs in
* creates users
* parses accounts
2021-01-10 16:10:03 +00:00
Harvey Tindall and Harvey Tindall
5d56ed5378
fix most incompatibilites, start separating api clients
2021-01-10 16:10:03 +00:00
Harvey Tindall
eb370d64df
Merge a17t-redesign, kinda ts-ify setup.js
...
the web ui has been redesigned with the a17t toolkit, which imo looks a
lot better than bootstrap. This also brought a complete rework of the
web code, which now makes a lot more sense hopefully. the setup page is
still stuck with bootstrap, its not much of a priority but i'll rewrite
it eventually.
2021-01-05 18:16:23 +00:00
Harvey Tindall
a1e30ff5db
fix/improve parsing of last active dates
...
parseDT only uses the magic json.Unmarshal method if theres an error
with the better version. Error came from some times being sent without a
"Z" at the end denoting UTC.
2020-12-03 20:49:50 +00:00
Harvey Tindall
9dbf60e3df
add URL base option for subfolder proxies
...
also cleaned up the naming of some things.
2020-11-22 16:36:43 +00:00
Harvey Tindall
d64e98da37
use Bearer auth instead of Basic
...
this was a relic from the python version, i'd modeled the auth code off
some random blog post back then.
2020-11-12 21:05:46 +00:00
Harvey Tindall
47abf20e1d
store emails even if password resets are disabled
...
there are other reasons to store email addresses now, so this is no
longer a just requirement.
2020-11-03 21:20:38 +00:00
Harvey Tindall
493f10fa36
add french, fix language selector in settings
...
note: custom language files can now be added in data/lang/form and will be
listed in settings.
2020-11-03 21:11:43 +00:00
Harvey Tindall
8e45ecb214
add cache_timeout option
...
controls how old the Jellyfin user cache can be before refetching. defaults to 30 minutes.
2020-11-02 23:26:46 +00:00
Harvey Tindall
d4a92adc65
add rough error logging for read/write errors
2020-11-02 23:20:06 +00:00
Harvey Tindall
c84ea17af4
refactor; separate jfapi and ombi into modules
2020-11-02 00:53:08 +00:00
Harvey Tindall
95c9f4f42d
Apply email addres changes to ombi
...
for #11 .
2020-10-30 21:13:13 +00:00
Harvey Tindall
a89dc40ff2
delete ombi user when deleting jf user
...
also fix ombi defaults menu in ui. responds to #11 .
2020-10-29 16:03:00 +00:00
Harvey Tindall
301f502052
Rework typescript to use modules
...
web UI now uses modules, and relies less on bodge to make things work.
Also fixes an issue where invites where "failed to send to xx" appeared
in invite form.
2020-10-22 17:50:40 +01:00
Harvey Tindall
7628e5d71d
Move api models to separate file
2020-09-27 21:03:37 +01:00
Harvey Tindall
9f6e405d1c
Add auth and tags to swagger
2020-09-24 18:50:03 +01:00
Harvey Tindall
b6537cef65
Add basic swagger documentation
...
accessible by running with -swagger. Accessible at /swagger/index.html.
Currently doesn't have authentication setup, so no requests will work.
2020-09-24 17:51:13 +01:00
Harvey Tindall
9bd7fca95e
fix table sizing on bootstrap 4; fix profile application on single-use
...
invites
use table-sm and no form-check-input so profile menu looks normal on
bs4. Profile was being read after being marked as used on invites, so
single-use invites were deleted and no profile was applied.
2020-09-23 19:12:58 +01:00
Harvey Tindall
89e70f6f7a
Add default profile functionality
...
Default profile can be selected in settings.
2020-09-23 18:48:00 +01:00
Harvey Tindall
6b25215768
apply settings even if section doesn't exist
...
in response to issue #7 . Not sure why this wasn't the original
behaviour, nor how I hadn't noticed it earlier
2020-09-23 17:20:48 +01:00
Harvey Tindall
903a61d0f2
Profiles replace user templates
...
Profile functionality is essentially complete, and they can be created
in settings. Only thing currently missing is a way to set a default
profile.
2020-09-23 00:01:07 +01:00
Harvey Tindall
2ab9b48f4b
Move settings menu to a tab
...
settings is now its own tab instead of a modal.
2020-09-22 20:46:48 +01:00
Harvey Tindall
b6ceee508c
Fix bug with invites in webui, add profile selector
...
invite codes starting with a digit don't work with the webui, so
GenerateInvite regenerates uuids until theres one that doesn't.
2020-09-22 00:34:11 +01:00