Commit Graph
100 Commits
Author SHA1 Message Date
Harvey Tindall 77c05a4d4f prefix css with version to avoid cache conflict 2022-01-08 16:42:36 +00:00
Harvey Tindall 4024334c0c accounts: add ability to label users
press the pen icon next to their username to add a nick-name to remind
you who they are.
2022-01-08 16:20:31 +00:00
Harvey Tindall 3294b27029 add replaceAll polyfill 2022-01-08 00:22:21 +00:00
Harvey Tindall 0d4747e8e9 Merge branch 'main' of github.com:hrfee/jfa-go 2022-01-08 00:09:35 +00:00
Harvey Tindall 1ebc648158 fix broken go template if statements
All available DOM parsers for node would move the contents of if
statements outside of them, breaking things like the accounts tab. Fixed
with a regex pre and post process to comment out then uncomment all template usage.

builds now depend on perl for some regex, this can likely be changed in
future though.
2022-01-08 00:07:23 +00:00
Harvey Tindall e86f5f4c3c site: use tailwind 2022-01-04 21:14:12 +00:00
Harvey Tindall 3b0701e772 fix dark mode script 2022-01-04 20:46:22 +00:00
Harvey Tindall 9874dce520 merge tailwind and upgraded a17t
a17t v0.10 became a tailwind plugin rather than standalone css, and made
some other changes. Much of the original custom CSS now uses tailwind
classes, and there have been some other UI changes.
2022-01-04 20:28:36 +00:00
Harvey Tindall 2f50ab36fd pad table and some other stuff 2022-01-04 20:09:51 +00:00
Harvey Tindall 6124b9b3f3 switch accounts tab table to white bg 2022-01-04 19:22:49 +00:00
Harvey Tindall 7ff492df6c site: allow html injection 2022-01-02 22:05:26 +00:00
Harvey Tindall a8ce35c13f fixed height on table rows 2022-01-01 03:29:09 +00:00
Harvey Tindall 26d9864051 fix layout on remaining html 2022-01-01 02:58:26 +00:00
Harvey Tindall a3a22d353c lang: make loadLangSelector respect existing params 2022-01-01 02:54:02 +00:00
Harvey Tindall dd5eecf9f9 fix textareas 2022-01-01 02:17:24 +00:00
Harvey Tindall 7e0e0b0520 fix form layout 2021-12-31 18:52:03 +00:00
Harvey Tindall 8bee09cd01 fix settings button highlight 2021-12-31 18:30:15 +00:00
Harvey Tindall deb117fc34 fix setup layout 2021-12-31 18:00:19 +00:00
Harvey Tindall a9a0005007 setup: patch messages with english fallback 2021-12-31 17:49:25 +00:00
Harvey Tindall 4eb7afead6 fix banner in about 2021-12-31 17:43:09 +00:00
Harvey Tindall d1b5b74060 make most modals white 2021-12-31 17:28:08 +00:00
Harvey Tindall cf91ee62ed change invite color in light mode 2021-12-31 16:07:21 +00:00
Harvey Tindall 277690ef79 allow for defining custom dark: variants, ignore querySelector, shrink margins 2021-12-31 16:01:17 +00:00
Harvey Tindall f7f3530a33 fix crash page 2021-12-31 15:09:33 +00:00
Harvey Tindall 2d3a5c739c fix about page 2021-12-31 02:22:23 +00:00
Harvey Tindall 3dbb993d35 fix button layout on accounts tab 2021-12-31 02:03:29 +00:00
Harvey Tindall 508168b49e fix more oddities 2021-12-31 01:51:42 +00:00
Harvey Tindall 0e1cbd7e7b fix m-half in ts 2021-12-31 00:26:11 +00:00
Harvey Tindall e73ecb7a52 fix some padding issues 2021-12-31 00:22:28 +00:00
Harvey Tindall 62be8adc65 remove predefined m- and p- spacing 2021-12-30 23:58:20 +00:00
Harvey Tindall acc8892f26 switch to DOM based variant adding 2021-12-30 23:52:53 +00:00
Harvey Tindall 51b59ae103 settings: add button to get logs 2021-12-30 17:54:27 +00:00
Harvey Tindall 8888807780 remove debug print, add another 2021-12-30 17:30:29 +00:00
Harvey Tindall 0f0355fd01 fix inline 2021-12-30 02:59:44 +00:00
Harvey Tindall d19f7d6b53 mailgun: better handle different api url formats 2021-12-30 02:55:00 +00:00
Harvey Tindall a31f174375 add dark variants to ts
janky but works, and should report if theres a situation its not ready
to handle.
2021-12-30 02:45:29 +00:00
Harvey Tindall 18ae03554f tailwind: upgrade a17t, somewhat functional dark mode
instead of adding dark: variants to each element, a preprocessor script
adds them. still needs to be implemented to typescript.
2021-12-30 00:49:43 +00:00
Harvey Tindall 07de4e5015 build: include systemd service 2021-12-29 23:29:34 +00:00
Harvey Tindall 57e6469564 site: add direct links to unstable builds
Links to build types and architectures are now included in the unstable
download section.
2021-12-29 22:33:07 +00:00
Harvey Tindall aedea1bea6 admin: move theme icon to top left; add icon 2021-12-24 19:34:18 +00:00
Harvey Tindall 535a100314 settings: discord and more links in "About" 2021-12-24 19:22:35 +00:00
Harvey Tindall 360c25d084 accounts: hide "Send PWR" when link resets disabled
for #182.
2021-12-24 19:05:48 +00:00
Harvey Tindall d47afe05f4 update deps, fix connection error log 2021-12-22 23:11:00 +00:00
Harvey Tindall 942792cdfa add discord link to site 2021-12-21 14:04:24 +00:00
Harvey Tindall 685254950e add discord link; new thumbnail variant 2021-12-21 13:43:37 +00:00
Harvey Tindall e6cc7fce1a form: add setting for changing redirect url
for #167, Settings > General (Advanced) > Form success redirect URL.
2021-12-20 20:44:08 +00:00
Harvey Tindall d8b1f03ac4 form: substitute Jellyfin on success messages
fixes #177
2021-12-20 20:17:18 +00:00
Harvey Tindall d81679fbae print error if logging fails 2021-12-20 19:05:18 +00:00
Harvey Tindall ebb49fce97 fix FAQ link in bug report template 2021-12-20 18:52:06 +00:00
Harvey Tindall 0fd4f516b1 email: Add option to require on sign-up
for #172
2021-12-20 18:50:48 +00:00
Harvey Tindall 9fff5781f4 lowercase lang 2021-12-20 17:58:34 +00:00
Harvey Tindall 73c7f22bd1 messages: add option to show/hide linking on registration
In each of the Discord/Telegram/Matrix sections, the "Show on user
registration" option can be disabled to hide the "Link xxx" button on
the registration form. This is useful is you're only using these
registrations for admin purposes.
2021-11-17 16:49:26 +00:00
Harvey Tindall e7ca335d83 invites: allow notification by discord/telegram/matrix
also added migration as this required changing the indexing of notify
preferences from email addresses to Jellyfin IDs.
2021-11-17 16:20:57 +00:00
Harvey Tindall 3730775018 site: put subheading and features on separate line 2021-11-15 15:18:48 +00:00
Harvey Tindall 4fcba32f74 apidocs: re-version, set up for hosted ui
swagger.json is uploaded after each build, and is hosted at
api.jfa-go.com.
2021-11-15 00:19:52 +00:00
Harvey Tindall b39ad5c688 site: add features, dono button 2021-11-14 23:06:15 +00:00
Harvey Tindall a41b382dba merge translation 2021-11-14 14:58:28 +00:00
Harvey Tindall 9092f42834 remove vulnerable node deps, cleanup 2021-11-14 14:50:40 +00:00
Harvey Tindall 4da1c8c2b6 Ombi: Integrate with profiles, Retire user defaults
NOTE: If you previously used the Ombi integration, New ombi users
won't be created until you set this up.

Ombi settings can be added to a profile in Settings > User Profiles.
The "Modify settings" options will now apply to ombi if the selected
profile has ombi settings.
2021-11-13 18:53:53 +00:00
Harvey Tindall c988239fa8 accounts: allow yes/no in search 2021-11-13 17:00:18 +00:00
Harvey Tindall 94e3c13b3e Users: Add delay when modifying >100 users
Hopefully avoids Jellyfin crashing. For #160
2021-11-10 20:45:39 +00:00
Harvey Tindall 36f3860c4c SMTP: Always use plaintext as main body
Adding the HTML as the alternative body caused the plaintext email to
always appear. Should fix #164.
2021-11-10 20:12:31 +00:00
Harvey Tindall f78fa28822 announcements: fix preview window 2021-11-10 20:04:04 +00:00
Harvey Tindall f3e1606440 add sponsors to readme 2021-11-10 19:26:39 +00:00
Harvey Tindall 0bf8cd65cd add option to set new expiry for when re-enabling users
for this reddit comment: https://www.reddit.com/r/jellyfin/comments/nc6tsi/tip_jfago_is_awesome/hgh0yet/?context=3
2021-10-18 20:39:23 +01:00
Harvey Tindall 4d27f7fc7a user mediabrowser 0.3.6 2021-10-13 15:22:06 +01:00
Harvey Tindall a4f59203b0 pwr: fix Send PWR when not using "Set password" 2021-10-13 15:19:52 +01:00
Harvey Tindall eeb9b07bce admin: add manual "Send Password reset" to accounts tab
Only appears with Reset links enabled.
Pressing this sends a PWR link to the users selected.
if one user is selected, or if one of you selected users doesn't have a
method of contact, a link is given to the admin to send to them
manually.
2021-10-13 15:04:22 +01:00
Harvey Tindall 77799b2917 smtp: only construct email once
also switch layout in email file to group each driver and its methods
together.
2021-10-07 16:19:06 +01:00
Harvey Tindall 5ff3839239 merge lang 2021-10-07 12:03:15 +01:00
Harvey Tindall d560df5b1e switch smtp library, add, HELLO hostname option
now using xhit/go-simple-mail, as I wanted to add an option to change
the hostname sent in the HELLO message but this is only possible with
STARTTLS in jordan-wright/email. New option can be seen in Settings >
SMTP with advanced settings turned on.
2021-10-07 12:01:42 +01:00
Harvey Tindall 0fe72b41bf lowercase lang 2021-10-03 16:45:51 +01:00
Harvey Tindall a220ba8dfb fix NewEmptyLogger
for #151.
Dumb bug, I really need unit tests.
2021-10-03 15:59:58 +01:00
Harvey Tindall b29c24a405 merge lang 2021-09-18 13:44:54 +01:00
Harvey Tindall fbe3553b25 fix missing last log line
Sometimes calls to app.err.Fatalf would fail to print the error to the
console, and fail to show "A crash report has been saves to...". Both of
these should be fixed now.
2021-09-18 13:43:11 +01:00
Harvey Tindall 548dceda28 don't give smtp plainauth if no username & password
for #141, just a guess
2021-08-26 21:03:02 +01:00
Harvey Tindall e67b2e91fb invite: auto-append /invite if missing to url_base 2021-08-26 18:53:22 +01:00
Harvey Tindall 412fe31da6 invite: fix email confirmation jwt
same issue as with auth.go, expiry was a string causing the library to
see it as expired.
2021-08-26 18:39:50 +01:00
Harvey Tindall 1bfec54c93 print error and include in txt log on crash; fix email migration 2021-08-25 18:10:06 +01:00
Harvey Tindall 5b319d6612 auth: int for refresh token as well 2021-08-22 15:00:20 +01:00
Harvey Tindall 626d623841 auth: don't store jwt expiry as string
caused the jwt library to class all tokens as invalid, now stored as
int64 and converted into a float64 by the library.
2021-08-22 14:13:44 +01:00
Harvey Tindall 08343298fb lowercase lang 2021-08-22 14:13:30 +01:00
Harvey Tindall 7a343bbc08 merge lang 2021-08-22 13:54:44 +01:00
Harvey Tindall 2be34ed063 quote jellyfin URL for censoring in logs 2021-08-22 13:54:39 +01:00
Harvey Tindall 756e7345cf tray: remove systray dep in non-tray builds 2021-08-18 17:25:16 +01:00
Harvey Tindall eb3489b34f tray: fix crashlogs, restart from web 2021-08-16 23:01:08 +01:00
Harvey Tindall 9693ce3dcd settings: add redundant URL base for pwr
having it under "Invite Emails" when they weren't in use was confusing.
If only one is set in the config file, it'll be used for both.
2021-07-27 16:53:16 +01:00
Harvey Tindall 6e88c1f4fc setup: MkdirAll config dir if necessary
some have had this issue in the past on new systems/users where ~/.config
doesn't exist yet.
2021-07-27 10:54:52 +01:00
Harvey Tindall 67c60cb677 fix 'jfa-go systemd' layout
lines were printing out-of-order for some reason, so i added time.Sleep
between them.
2021-07-27 10:47:07 +01:00
Harvey Tindall 1a6b0d2b6e upgrade vulnerable deps
upgrade gin and switch dgrijalva/jwt-go to golang-jwt/jwt.
2021-07-27 10:08:01 +01:00
Harvey Tindall 5aaab7904f update contributing
also now hosted on wiki.jfa-go.com.
2021-07-25 01:13:57 +01:00
Harvey Tindall 9885c25a2e email: cleanup; allow re-enabling of custom email without changes 2021-07-24 19:49:08 +01:00
Harvey Tindall 27ad7a4cf7 setup: add descriptive "test connection" messages; disable next button
for #129.
2021-07-24 14:15:10 +01:00
Harvey Tindall 6551eeb938 setup: also respect -host 2021-07-21 17:24:06 +01:00
Harvey Tindall 36c23c1e4f setup: respect -p/-port
fixes #128.
2021-07-21 17:17:59 +01:00
Harvey Tindall 6b4d4da455 accounts: show cog when user known for disabled chatbot 2021-07-20 15:45:00 +01:00
Harvey Tindall aa2891fc87 matrix: fix instant crash with e2ee
also some more attempts at fixing it, so far all i've found is that if
we don't delete the cryptoStore, the matrix client also gets the same
error we do if it send s a message to us (no session with given ID
found).
2021-07-20 15:34:39 +01:00
Harvey Tindall db526fc611 exit: improve line number, include stack 2021-07-20 14:57:48 +01:00
Harvey Tindall a869acd5dc exit: include file/line with error 2021-07-20 14:39:20 +01:00
Harvey Tindall f763cfb53a announcements: fix [] on {{ .username }} 2021-07-16 20:57:11 +01:00