themes.json
51
Resources/apply_theme.js
Normal file
@ -0,0 +1,51 @@
|
||||
function get_base_sha(app,theme) {
|
||||
url = `https://api.github.com/repos/gilbn/theme.park/contents/CSS/themes/${app}/${app}-base.css`
|
||||
const date = new Date().toUTCString();
|
||||
fetch(url, {
|
||||
headers: { "If-Modified-Since": date }
|
||||
})
|
||||
.then(res => res.json())
|
||||
.then(data => (injectTheme(app,theme,sha=data.sha || "ratelimited")))
|
||||
.catch(err => { throw err });
|
||||
}
|
||||
|
||||
function injectTheme(app,theme,sha,container="head") {
|
||||
if (container === "head") {
|
||||
html_element = document.head;
|
||||
} else html_element = document.body;
|
||||
let link = document.createElement("link");
|
||||
url = "https://theme-park.dev/CSS/themes/"
|
||||
link.type = "text/css";
|
||||
link.rel = "stylesheet";
|
||||
link.href = `${url}/${app}/${theme}.css?v=${sha}`;
|
||||
|
||||
html_element.appendChild(link);
|
||||
}
|
||||
|
||||
function injectAddon(app,addon,container="head") {
|
||||
if (container === "head") {
|
||||
html_element = document.head;
|
||||
} else html_element = document.body;
|
||||
let link = document.createElement("link");
|
||||
url = "https://theme-park.dev/CSS/addons/"
|
||||
link.type = "text/css";
|
||||
link.rel = "stylesheet";
|
||||
link.href = `${url}/${app}/${addon}.css`;
|
||||
|
||||
html_element.appendChild(link);
|
||||
}
|
||||
|
||||
|
||||
// {
|
||||
// if (res.status) {
|
||||
// res.json()
|
||||
// .then(data => console.log(data))
|
||||
// } else {
|
||||
// res.json()
|
||||
// .then(data => console.log(data))
|
||||
// console.info("%c theme.park %c ".concat("ERROR", " "), "color: white; background: #009688; font-weight: 700; font-size: 24px; font-family: Monospace;", "color: red; background: white; font-weight: 700; font-size: 24px; font-family: Monospace;");
|
||||
// console.info(`%c Error %c Failed to fetch the url, double check the name passed in your subfilter.. `, "color: white; background: red; font-weight: 700;", "color: red; background: white; font-weight: 700;");
|
||||
// }
|
||||
// })
|
||||
|
||||
|
BIN
Resources/blur-light-dark.png
Normal file
After Width: | Height: | Size: 48 KiB |
BIN
Resources/blur-light.png
Normal file
After Width: | Height: | Size: 54 KiB |
BIN
Resources/blur-noise.png
Normal file
After Width: | Height: | Size: 92 KiB |
BIN
Resources/deluge/active.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/add.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
Resources/deluge/add_small.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/all.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
Resources/deluge/ascending.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Resources/deluge/bottom.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
Resources/deluge/checking.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/columns.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
Resources/deluge/connection.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
Resources/deluge/connection_small.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/connections.png
Normal file
After Width: | Height: | Size: 3.6 KiB |
BIN
Resources/deluge/deluge.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
Resources/deluge/descending.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Resources/deluge/dling.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/down.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Resources/deluge/down_small.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/edit.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
Resources/deluge/error.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/file.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/folder.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/harddrive.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
Resources/deluge/help.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
BIN
Resources/deluge/logout.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
Resources/deluge/move.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
Resources/deluge/ok.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
Resources/deluge/pause.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Resources/deluge/paused.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
Resources/deluge/plugin.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
Resources/deluge/queue.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
Resources/deluge/queued.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/remove.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
Resources/deluge/remove_small.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
Resources/deluge/resume.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
Resources/deluge/resume_small.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/search.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
Resources/deluge/settings.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
Resources/deluge/settings_small.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
Resources/deluge/top.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
Resources/deluge/uling.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/up.png
Normal file
After Width: | Height: | Size: 2.3 KiB |
BIN
Resources/deluge/up_small.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
Resources/deluge/update.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
Resources/duplicati/about.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Resources/duplicati/add.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
Resources/duplicati/home.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
Resources/duplicati/logout.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
Resources/duplicati/pause.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
Resources/duplicati/restore.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
Resources/duplicati/settings.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Resources/duplicati/throttle.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
Resources/emby/logowhite.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
Resources/guacamole/checkmark.png
Normal file
After Width: | Height: | Size: 1.8 KiB |
BIN
Resources/guacamole/cog.png
Normal file
After Width: | Height: | Size: 5.4 KiB |
BIN
Resources/guacamole/down.png
Normal file
After Width: | Height: | Size: 233 B |
BIN
Resources/guacamole/guac-config-dark.png
Normal file
After Width: | Height: | Size: 952 B |
BIN
Resources/guacamole/guac-first-page.png
Normal file
After Width: | Height: | Size: 583 B |
BIN
Resources/guacamole/guac-home-dark.png
Normal file
After Width: | Height: | Size: 821 B |
BIN
Resources/guacamole/guac-last-page.png
Normal file
After Width: | Height: | Size: 584 B |
BIN
Resources/guacamole/guac-logout-dark.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
Resources/guacamole/guac-monitor.png
Normal file
After Width: | Height: | Size: 627 B |
BIN
Resources/guacamole/guac-next-page.png
Normal file
After Width: | Height: | Size: 305 B |
BIN
Resources/guacamole/guac-prev-page.png
Normal file
After Width: | Height: | Size: 304 B |
BIN
Resources/guacamole/guac-text.png
Normal file
After Width: | Height: | Size: 552 B |
BIN
Resources/guacamole/guac-user.png
Normal file
After Width: | Height: | Size: 961 B |
BIN
Resources/guacamole/lock.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
Resources/guacamole/magnifier.png
Normal file
After Width: | Height: | Size: 920 B |
BIN
Resources/guacamole/up.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
Resources/landing-page/assets/favicon.ico
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
Resources/landing-page/assets/img/aquamarine-small.jpg
Normal file
After Width: | Height: | Size: 67 KiB |
BIN
Resources/landing-page/assets/img/aquamarine.png
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
Resources/landing-page/assets/img/dark-small.jpg
Normal file
After Width: | Height: | Size: 50 KiB |
BIN
Resources/landing-page/assets/img/dark.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
Resources/landing-page/assets/img/dracula-small.jpg
Normal file
After Width: | Height: | Size: 59 KiB |
BIN
Resources/landing-page/assets/img/dracula.png
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
Resources/landing-page/assets/img/hotline-small.jpg
Normal file
After Width: | Height: | Size: 78 KiB |
BIN
Resources/landing-page/assets/img/hotline.png
Normal file
After Width: | Height: | Size: 1.9 MiB |
BIN
Resources/landing-page/assets/img/hotpink-small.jpg
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
Resources/landing-page/assets/img/hotpink.png
Normal file
After Width: | Height: | Size: 355 KiB |
BIN
Resources/landing-page/assets/img/nord-small.jpg
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
Resources/landing-page/assets/img/nord.png
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
Resources/landing-page/assets/img/organizr-small.jpg
Normal file
After Width: | Height: | Size: 46 KiB |
BIN
Resources/landing-page/assets/img/organizr.png
Normal file
After Width: | Height: | Size: 841 KiB |
BIN
Resources/landing-page/assets/img/overseerr-small.jpg
Normal file
After Width: | Height: | Size: 63 KiB |
BIN
Resources/landing-page/assets/img/overseerr.png
Normal file
After Width: | Height: | Size: 2.2 MiB |
BIN
Resources/landing-page/assets/img/plex-small.jpg
Normal file
After Width: | Height: | Size: 65 KiB |
BIN
Resources/landing-page/assets/img/plex.png
Normal file
After Width: | Height: | Size: 2.9 MiB |
BIN
Resources/landing-page/assets/img/slides/1.jpg
Normal file
After Width: | Height: | Size: 449 KiB |
BIN
Resources/landing-page/assets/img/slides/10.jpg
Normal file
After Width: | Height: | Size: 294 KiB |
BIN
Resources/landing-page/assets/img/slides/11.jpg
Normal file
After Width: | Height: | Size: 495 KiB |
BIN
Resources/landing-page/assets/img/slides/12.jpg
Normal file
After Width: | Height: | Size: 374 KiB |
BIN
Resources/landing-page/assets/img/slides/13.jpg
Normal file
After Width: | Height: | Size: 355 KiB |
BIN
Resources/landing-page/assets/img/slides/2.jpg
Normal file
After Width: | Height: | Size: 252 KiB |
BIN
Resources/landing-page/assets/img/slides/3.jpg
Normal file
After Width: | Height: | Size: 316 KiB |
BIN
Resources/landing-page/assets/img/slides/4.jpg
Normal file
After Width: | Height: | Size: 250 KiB |
BIN
Resources/landing-page/assets/img/slides/5.jpg
Normal file
After Width: | Height: | Size: 390 KiB |
BIN
Resources/landing-page/assets/img/slides/6.jpg
Normal file
After Width: | Height: | Size: 454 KiB |