Commit Graph

22 Commits

Author SHA1 Message Date
Harvey Tindall 2e20466925 Self-restarting for config changes
When changing settings that need restart, the option is now available to
do it automatically. Functions on linux at least, might need testing on
    windows.
2020-07-20 15:37:19 +01:00
Harvey Tindall b8fdb64f68 Added per-invite notifications for expiry and user creation
Notifications must be enabled in settings; they can then be
toggled in the dropdown menu of each invite.
2020-07-17 16:08:36 +01:00
Harvey Tindall d615b21c7d Proper dynamic config reload
A bunch of options can now be changed without a restart as the config is
now guaranteed to be reloaded on change through the use of a RELOADCONFIG environment variable.
2020-07-12 19:53:04 +01:00
Harvey Tindall 27169e4e0d Added dropdown menu for invites, multi-use invites, bump to 0.3.6
Dropdown menu includes time created, and for multi-use invites,
remaining uses, as well as a list of usernames created using the code.
2020-07-10 16:15:17 +01:00
Harvey Tindall a3d3d97b3b Added theme toggle to Admin page
The admin can switch between the two default themes without a page
reload, with a nice animation (on small screens). Preference is stored
as a cookie, so the default theme setting will still apply to others.
2020-07-06 20:53:14 +01:00
Harvey Tindall a2a2abc7f2 fix mime type for admin.js 2020-07-05 21:39:58 +01:00
Harvey Tindall 4fb99d1724 Cleanup, add theme options
Add theme options to settings to choose between light and dark.
2020-07-05 15:09:42 +01:00
Harvey Tindall adef32ef89 BS4 by default, BS5 optional
Bootstrap 4 w/ jQuery is used by default unless bs5 is enabled in
settings/ui. bs4 also now has a jellyfin-style look.
2020-07-05 14:38:07 +01:00
Harvey Tindall ade935da4e jellyfin-lookin theme, changes from master, bump to 0.3.0
Now uses a customized bootstrap that looks something like Jellyfin. Some
small ui changes were needed. This be overridden by downloading bs5's css and using the custom_css
option if you don't like it. sass file is included for your own modification. Changes made to master have been added also.
2020-07-04 22:17:49 +01:00
Harvey Tindall ac60cc37da Add live reloading to some options, email fix
live reloading was intended for previous release, but needed some
tweaking. Settings that still require a restart are marked with an R.
Fixed issue where default values weren't being filled in on reload of
config that broke emails if settings were changed at all.
2020-06-30 21:24:07 +01:00
Harvey Tindall 68a459023c Add option to use email address as username
Added option email/no_username to disable username input on form, and
instead use the provided email address as the username. Also added
missing 'packaging' dep from pevious update.
2020-06-29 00:35:51 +01:00
Harvey Tindall 24045034c8 Formatted with black 2020-06-21 20:29:53 +01:00
Harvey Tindall bfbaca4094 Move to Poetry for deps and packaging
setup.py has been removed, and Poetry is now used to package for
install. This fixed an issue i had with uploading to PyPI, so one can
now run 'pip install jellyfin-accounts' to install.
2020-06-16 20:07:47 +01:00
Harvey Tindall f4f18d41ea Modularized JSON storage
user_template and other files are now accessed via JSONStorage, which
has dictionary like attributes for each file which can be used like a
dictionary, without the need to manually read and write the file. This
was done so that other storage types (e.g a database) can be added in
future.
2020-06-14 17:58:18 +01:00
Harvey Tindall 78de153557 Added separate public & private jellyfin address option 2020-06-03 12:17:29 +01:00
Harvey Tindall 91eae9a4ce Added custom bootstrap CSS option 2020-05-17 15:22:50 +01:00
Harvey Tindall 7f250b13fb Hide email input on admin when disabled 2020-05-12 20:44:04 +01:00
Harvey Tindall 331dbc3d28 pw requirements now loaded with jinja over js
Originally i loaded the requirements through calling the web api in
javascript, but decided to switch it to jinja as i only recently found
out its capable of stuff more complicated than replacing strings.
2020-05-12 20:29:50 +01:00
Harvey Tindall 922987454f Add setup wizard
Added a setup wizard that appears on first run, or when no config dir is
found.
2020-05-02 18:32:58 +01:00
Harvey Tindall e8ad3f98d6 added option to send invite to an address
The admin page now has the option to send an invite to an email address.
Since there are now two email types (invites and pw resets), the new
sections have been added to config.ini, and email_template and
email_plaintext have been renamed to email_html and email_text
respectively.
2020-04-19 22:35:51 +01:00
Harvey Tindall d22ba6133b Add pw reset support; add logging 2020-04-12 21:25:27 +01:00
Harvey Tindall d321726d62 first commit 2020-04-11 15:20:25 +01:00