1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-11-09 20:00:12 +00:00
Commit Graph

38 Commits

Author SHA1 Message Date
a3f5396211
parse and render settings menus 2021-01-02 21:39:36 +00:00
8b2f6fbb8a
improve mobile experience
* table now scrolls instead of shrinking on small displays
* invite header and detail cards wrap
* dropdown icon clickable area larger
2021-01-02 00:56:45 +00:00
c47eadc483
respect notificationsEnabled 2021-01-01 23:42:15 +00:00
88f4de9c46
implement accounts tab functionality
also:
* added a homemade loading animation to buttons
* respect disabled invite emails and email address as username
2021-01-01 23:31:32 +00:00
2d443fb50b
fully functional invites tab, flesh out bugs
also:
* fix select chevrons appearing above modals
* add custom errors and use them for http errors, also now appear above
  modals.
* functional logout button
* slightly cleaned up admin.ts
2020-12-30 23:48:01 +00:00
28187d0aa0
add connection error notification, implement notify/delete function 2020-12-30 18:31:38 +00:00
1b41621569
implement invites as a class, use tooltip for email send status
the DOMInvite class represents an invite on the dom, and modifying its
attributes applies the changes on the web page. Email send status
message is now on the right of the invite and represented by an icon.
Hovering reveals the "Sent to"/"Failed to send to" message.
2020-12-30 15:32:44 +00:00
95db48d8f8
start main app integration, restructure build process
the backend code has been added back in, and the build process has been
modified so that no output files are left outside of build/. Admin page
loads and logs in correctly, nothing else functionality-wise yet.
2020-12-29 18:42:26 +00:00
0e2c005e05
more organisation, add tooltips 2020-12-28 19:56:11 +00:00
b0ff1ddfd2
add form, restructure ts 2020-12-28 18:15:52 +00:00
9ae90e0a0f
fix weird bevel look of inputs/selects, thicken borders, use badges for settings
required/restarts
2020-12-27 16:56:55 +00:00
9ea72fbc32
cleanup css 2020-12-26 15:51:07 +00:00
90c7745a77
change main theme, add dark theme 2020-12-24 21:22:28 +00:00
d59d5faa03
add remaining modals 2020-12-23 01:34:22 +00:00
e50a7948e7
organise code, use typescript, add more modals 2020-12-20 22:49:54 +00:00
6efb7c4ecb
first 2020-12-12 22:15:43 +00:00
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
9dbf60e3df
add URL base option for subfolder proxies
also cleaned up the naming of some things.
2020-11-22 16:36:43 +00:00
f3c3b3ce76
use badges to denote admin users in accounts tab 2020-11-15 17:13:35 +00:00
b6f3cd7c1f
dont re-b64 the jwt
pointless, and messed up swagger auth.
2020-11-12 21:25:52 +00:00
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
ba601935b5
add "re-enter password" field on form
for #14.
2020-11-04 20:46:06 +00:00
0f4e77364b
remove hardcoded string from form.ts 2020-10-30 23:14:29 +00:00
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
29775e2e75
make goreleaser include modules subdir 2020-10-22 18:13:11 +01:00
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
2d6b1717db
move all shared typescript to common.ts 2020-10-20 23:33:32 +01:00
9abb177427
use typescript for form.html in separate file, allow customization of
requirement strings

Password requirement text is now loaded by the typescript, and can be
customized by changing the validationStrings variable. See wiki for more
info.
2020-10-20 23:00:30 +01:00
e104bd8362
small changes, new images and readme updated 2020-09-24 23:57:42 +01:00
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
544f5674e8
rename routes to make more sense
for example, /getInvite and /generateInvite become GET(/invites) and
    POST(/invites) respectively.
2020-09-24 14:03:25 +01:00
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
89e70f6f7a
Add default profile functionality
Default profile can be selected in settings.
2020-09-23 18:48:00 +01:00
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
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
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
32b8ed4aa2
rewrite* most web ui code in typescript
i wanted to split up the web ui components into multiple files, and
figured it'd be a good chance to try out typescript. run make typescript
to compile everything in ts/ and put it in data/static/.

This is less of a rewrite and more of a refactoring, most of it still
works the same but bits have been cleaned up too.

Remaining javascript found in setup.js and form.html
2020-09-21 22:06:27 +01:00
73886fc037
rewrite accounts.js in typescript
slight refactor too.
2020-09-20 14:48:17 +01:00