-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to java 14
- Loading branch information
Showing
40 changed files
with
530 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 39 additions & 12 deletions
51
plugins/plex/src/main/java/assets/templates/plex-settings.jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,43 @@ | ||
.form-group | ||
label(for="url") Plex server address | ||
label(for="type") API Type | ||
select.form-control(name="type", id="type") | ||
each type, index in {'PLEX':'Plex', 'JELLYFIN':'Jellyfin'} | ||
if settings && settings.containsKey("type") && settings.get("type").equalsIgnoreCase(index) | ||
option(value=index, selected=true)= type | ||
else | ||
option(value=index)= type | ||
.form-group | ||
label(for="url") Server address | ||
if settings && settings.containsKey("url") | ||
input.form-control(type="text", id="url", name="url", placeholder="URL", value='#{settings.get("url")}') | ||
input.form-control(type="text", id="url", name="url", placeholder="https://jellifinserver.com:8096", value='#{settings.get("url")}') | ||
else | ||
input.form-control(type="text", id="url", name ="url", placeholder = "URL") | ||
input.form-control(type="text", id="url", name ="url", placeholder = "https://jellifinserver.com:8096") | ||
#PLEX.media-server | ||
.form-group | ||
label(for="token") | ||
| Authentication token ( | ||
a(href="https://support.plex.tv/hc/en-us/articles/204059436-Finding-an-authentication-token-X-Plex-Token") get authentication token | ||
| ) | ||
if settings && settings.containsKey("token") | ||
input.form-control(type="text", id="token", name="token", placeholder="Token", value='#{settings.get("token")}') | ||
else | ||
input.form-control(type="text", id="token", name ="token", placeholder = "Token") | ||
#JELLYFIN.media-server | ||
.form-group | ||
label(for="apiKey") Api key | ||
if settings && settings.containsKey("apiKey") | ||
input.form-control(type="text", id="apiKey", name="apiKey", placeholder="Api key", value='#{settings.get("apiKey")}') | ||
else | ||
input.form-control(type="text", id="apiKey", name ="apiKey", placeholder = "Api key") | ||
|
||
.form-group | ||
label(for="token") | ||
| Authentication token ( | ||
a(href="https://support.plex.tv/hc/en-us/articles/204059436-Finding-an-authentication-token-X-Plex-Token") get authentication token | ||
| ) | ||
if settings && settings.containsKey("token") | ||
input.form-control(type="text", id="token", name="token", placeholder="Token", value='#{settings.get("token")}') | ||
else | ||
input.form-control(type="text", id="token", name ="token", placeholder = "Token") | ||
script(type="text/javascript"). | ||
document.addEventListener("DOMContentLoaded", function() { | ||
|
||
function toggleSettings(){ | ||
$('.media-server').hide(); | ||
$('#'+$('#type').val()).show(); | ||
} | ||
|
||
$('#type').change(toggleSettings); | ||
toggleSettings(); | ||
}); |
Oops, something went wrong.