1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-10-18 17:10:11 +00:00

Compare commits

..

No commits in common. "cd67d3e7ab8a7384a3dfd7a85f947417953a2f75" and "3af4607171cd0f18cee0bd52413f5f7b9d9305a5" have entirely different histories.

4 changed files with 16 additions and 25 deletions

View File

@ -48,7 +48,7 @@ docker create \
-p 8056:8056 \ -p 8056:8056 \
# -p 8057:8057 if using tls # -p 8057:8057 if using tls
-v /path/to/.config/jfa-go:/data \ # Path to wherever you want to store the config file and other data -v /path/to/.config/jfa-go:/data \ # Path to wherever you want to store the config file and other data
-v /path/to/jellyfin:/jf \ # Path to Jellyfin config directory, ignore if using Emby -v /path/to/jellyfin:/jf \ # Path to jellyfin config directory
-v /etc/localtime:/etc/localtime:ro \ # Makes sure time is correct -v /etc/localtime:/etc/localtime:ro \ # Makes sure time is correct
hrfee/jfa-go # hrfee/jfa-go:unstable for latest build from git hrfee/jfa-go # hrfee/jfa-go:unstable for latest build from git
``` ```

View File

@ -351,7 +351,7 @@
</div> </div>
</section> </section>
</div> </div>
<div id="password-resets" class="card ~neutral !low mb-1 unfocused related-to-email"> <div class="card ~neutral !low mb-1 unfocused related-to-email">
<span class="heading">{{ .lang.PasswordResets.title }}</span> <span class="heading">{{ .lang.PasswordResets.title }}</span>
<p class="content">{{ .lang.PasswordResets.description }}</p> <p class="content">{{ .lang.PasswordResets.description }}</p>
<label class="row switch pb-1"> <label class="row switch pb-1">

View File

@ -287,6 +287,7 @@ const settings = {
} }
}; };
(() => {
const checkTheme = () => { const checkTheme = () => {
if (settings["ui"]["theme"].value.includes("Dark")) { if (settings["ui"]["theme"].value.includes("Dark")) {
document.documentElement.classList.add("dark-theme"); document.documentElement.classList.add("dark-theme");
@ -298,6 +299,8 @@ const checkTheme = () => {
}; };
settings["ui"]["theme"].onchange = checkTheme; settings["ui"]["theme"].onchange = checkTheme;
checkTheme(); checkTheme();
})();
const restartButton = document.getElementById("restart") as HTMLSpanElement; const restartButton = document.getElementById("restart") as HTMLSpanElement;
const serialize = () => { const serialize = () => {
@ -356,18 +359,6 @@ const emailMethodChange = () => {
settings["email"]["method"].onchange = emailMethodChange; settings["email"]["method"].onchange = emailMethodChange;
emailMethodChange(); emailMethodChange();
const embyHidePWR = () => {
const pwr = document.getElementById("password-resets");
const val = settings["jellyfin"]["type"].value;
if (val == "jellyfin") {
pwr.classList.remove("hidden");
} else if (val == "emby") {
pwr.classList.add("hidden");
}
}
settings["jellyfin"]["type"].onchange = embyHidePWR;
embyHidePWR();
(window as any).settings = settings; (window as any).settings = settings;
for (let section in settings) { for (let section in settings) {