Harvey Tindall
9e739e79e7
initial drone ci setup
4 years ago
Harvey Tindall
2a2435ae11
remove version, device, device_id options, set them automatically
...
not sure why i exposed these to the user in the first place. they are
set to <jfa-go version>, <jfa-go>, <jfa-go-<version>-<commit>>
respectively.
4 years ago
Harvey Tindall
04a4a4ca95
use esbuild to compile and minify ts
...
tsc is still used for ts-debug.
4 years ago
Harvey Tindall
7628e5d71d
Move api models to separate file
4 years ago
Harvey Tindall
9fec714da7
fix goreleaser builds
...
wrapped tsc in a a shell script to ignore duplicate function errors.
4 years ago
Harvey Tindall
e104bd8362
small changes, new images and readme updated
4 years ago
Harvey Tindall
64ad8ccf6e
Fix docker build; add some color
4 years ago
Harvey Tindall
313b75bead
Add SWAGGER and DEBUG env variables
...
Should be useful for docker installations.
4 years ago
Harvey Tindall
9f6e405d1c
Add auth and tags to swagger
4 years ago
Harvey Tindall
84fb69d440
add go.mod back
4 years ago
Harvey Tindall
62543cd0be
remove generated documentation
...
can be regenerated by running 'make swagger' before 'make compile'.
depends on swaggo/swag.
4 years ago
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.
4 years ago
Harvey Tindall
544f5674e8
rename routes to make more sense
...
for example, /getInvite and /generateInvite become GET(/invites) and
POST(/invites) respectively.
4 years ago
Harvey Tindall
ce844e0574
add ts-debug option to makefile for including typescript and sourcemaps
4 years ago
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.
4 years ago
Harvey Tindall
89e70f6f7a
Add default profile functionality
...
Default profile can be selected in settings.
4 years ago
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
4 years ago
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.
4 years ago
Harvey Tindall
49ef3dfcf0
remove old settings button
4 years ago
Harvey Tindall
2ab9b48f4b
Move settings menu to a tab
...
settings is now its own tab instead of a modal.
4 years ago
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.
4 years ago
Harvey Tindall
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
4 years ago
Harvey Tindall
73886fc037
rewrite accounts.js in typescript
...
slight refactor too.
4 years ago
Harvey Tindall
c4acb43cb8
Initial features for move to profiles
...
user templates will become profiles. You will be able to make multiple,
and assign them to invites individually. This commit migrates the
separate template files into one profile entry called "Default", and
lets you select them on invites. No way to create profiles has been
added yet.
4 years ago
Harvey Tindall
49b056f1d6
fix notification buttons
...
their current status wouldn't display because of a slight mistake, and
they did the wrong thing because i forgot there isn't a nil value for
bools.
4 years ago
Harvey Tindall
70cf706a82
fix image links
4 years ago
Harvey Tindall
7c247b0aae
update readme; new images
4 years ago
Harvey Tindall
4e8628844e
fix decapitalized words
...
I have no idea how this happened.
4 years ago
Harvey Tindall
31aece5026
fix bs4 compatibility, small ui tweaks
4 years ago
Harvey Tindall
5ba40cd6f8
fix panic when jfa-go user has no email set with jellyfin_login
4 years ago
Harvey Tindall
456ca8592c
omit source map url in compiled css
4 years ago
Harvey Tindall
35a0be6a2c
Remove view settings button
...
i doubt there's much use for it.
4 years ago
Harvey Tindall
6b81358cd2
improve tab appearance
4 years ago
Harvey Tindall
d4b94bc9d9
add user button
...
added create user button for the admin to use.
4 years ago
Harvey Tindall
9213f2a078
Add account deletion with email notification
...
Select users to delete, then optionally opt to notify the user in an
email with a provided reason.
4 years ago
Harvey Tindall
2b84e45b65
fix table wrapping
4 years ago
Harvey Tindall
7ac750879f
Remove email addresses in settings, move to accounts tab
...
still a little rough, but it works.
4 years ago
Harvey Tindall
cd61989495
Initial features of accounts tab
...
It's rough right now, but the accounts tab shows a list of users and
info. Right now the only action available is to apply settings (from
template or another user) to a selection of users. More to come.
4 years ago
Harvey Tindall
a8b4842895
add more info to getUsers, move admin.html css to scss files
...
more deatils included in getUsers response in prep for feature request #5 . bs4 and bs5 css are now compiled instead of being copied.
4 years ago
Harvey Tindall
7d84fdec96
userByName reloads cache if user not found, more things in test
4 years ago
Harvey Tindall
802f957d22
fix scrolling on modals spawned by settings modal, fix getUsers cache
...
closing the settings modal to immediately open another caused the
'modal-open' class on the body to get deleted, which meant scrolling
stopped working inside them. Also fix mistake added to jfapi in last commit.
4 years ago
Harvey Tindall
410c35c844
use strings.builder and unmarshal in jfapi
...
for some reason, json.Decoder sometimes fails when using an io.Reader. I
noticed this happened all the time when adding ombi integration so I
used strings.Builder to turn the io.Reader into a string before
decoding with json.Unmarshal. The user in issue #4 had the
same problem with Jellyfin, so this method is now also used in jfapi.
4 years ago
Harvey Tindall
1707c8c1f9
quote values in X-Emby-Authorization, change routes in jfapi
...
Quoted values in X-Emby-Authorization, as observed from the web client.
removed unnecessary /emby prefix for some routes in jfapi.go
4 years ago
Harvey Tindall
e0c4d7c545
add "test" mode for debugging
...
running with "test" in the arguments will print jellyfin server info,
and try to getUsers.
4 years ago
Harvey Tindall
d7fcfe9416
mention unstable docker branch
4 years ago
Harvey Tindall
258656fbf9
version based on current tag for makefile
...
if there isnt a tag, version is 'git'. this fixes versioning for aur package and docker.
4 years ago
Harvey Tindall
500ecac95d
add issue template
4 years ago
Harvey Tindall
4ca14675e6
change docker command to be less ambiguous
4 years ago
Harvey Tindall
b8dfb5d6a3
decouple email content from sender to ensure thread safety
...
If two emails fired off at once, they would previously replace each
other's content and possibly send the wrong email to the wrong person.
construct* methods now return the email content, which is sent
separately.
4 years ago
Harvey Tindall
51839b5942
Restructure email sending
...
smtp and mailgun now implement an emailClient interface, which the
Emailer can use.
4 years ago