1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-11-19 17:42:32 +01:00
This commit is contained in:
GilbN 2023-09-30 12:39:59 +00:00
parent 8783114b89
commit 43ab6db1df
59 changed files with 115 additions and 188 deletions

View File

@ -94,50 +94,3 @@ jobs:
docker build docker-mods/$app --tag ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
docker push ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
done
push_to_dockerhub:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3.1.0
with:
fetch-depth: 0
- name: Login to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DH_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: build all on push
if: ${{ github.event_name == 'push' }}
run: |
branch=${{ steps.extract_branch.outputs.branch }}
if [ "$branch" = "master" ]; then
branch=""
else
branch="-$branch"
fi
for dir in docker-mods/*;
do
app="$( echo "$dir" | cut -d'/' -f2 -s )"
docker build docker-mods/$app --tag ${{ secrets.DH_USER }}/theme.park:$app$branch
docker push ${{ secrets.DH_USER }}/theme.park:$app$branch
done
- name: manually build
if: ${{ github.event.inputs.app && github.event.inputs.app != 'build-all-the-mods' }}
run: |
docker build docker-mods/${{ github.event.inputs.app }} --tag ${{ secrets.DH_USER }}/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
docker push ${{ secrets.DH_USER }}/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
- name: manually build all mods
if: ${{ github.event.inputs.app == 'build-all-the-mods' }}
run: |
for dir in docker-mods/*;
do
app="$( echo "$dir" | cut -d'/' -f2 -s )"
docker build docker-mods/$app --tag ${{ secrets.DH_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
docker push ${{ secrets.DH_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
done

View File

@ -64,22 +64,15 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }}
- name: Login to Docker Hub
uses: docker/login-action@v2.1.0
with:
username: ${{ secrets.DH_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build&push
uses: docker/build-push-action@v3.2.0
with:
push: ${{ github.event_name != 'pull_request' }}
platforms: ${{ env.platform }}
file: ./${{ matrix.architecture }}.Dockerfile
cache-from: docker.io/${{ env.cache }}
cache-to: docker.io/${{ env.cache }}
cache-from: ghcr.io/${{ env.cache }}
cache-to: ghcr.io/${{ env.cache }}
tags: |
docker.io/${{ env.tag }}
ghcr.io/${{ env.tag }}
labels: |
org.opencontainers.image.created=${{ env.created }}
@ -98,20 +91,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
registry: [docker.io, ghcr.io]
registry: [ghcr.io]
needs: [build-and-push-it-to-the-limit]
steps:
- name: Checkout
uses: actions/checkout@v3.1.0
- name: Login to DockerHub
if: matrix.registry == 'docker.io'
uses: docker/login-action@v2.1.0
with:
registry: docker.io
username: ${{ secrets.DH_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
if: matrix.registry == 'ghcr.io'
uses: docker/login-action@v2.1.0

View File

@ -1,4 +1,5 @@
name: Minify CSS and deploy to live branch
permissions: write-all
on:
push:
branches:
@ -23,7 +24,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- uses: actions/checkout@v4.1.0
with:
fetch-depth: 0
- name: Wrong domain check
@ -34,7 +35,7 @@ jobs:
exit 1
fi
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.3.0
uses: actions/setup-python@v4.7.0
with:
python-version: '3.10'
- name: Run themes.py
@ -65,7 +66,7 @@ jobs:
fi
done
- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
uses: peaceiris/actions-gh-pages@v3.9.3
if: ${{ github.ref == 'refs/heads/master' || github.event.inputs.branch == 'master' }}
with:
publish_dir: ./
@ -73,7 +74,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_assets: ''
- name: Deploy Develop
uses: peaceiris/actions-gh-pages@v3.8.0
uses: peaceiris/actions-gh-pages@v3.9.3
if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
with:
publish_dir: ./
@ -81,7 +82,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
exclude_assets: ''
- name: Deploy Testing
uses: peaceiris/actions-gh-pages@v3.8.0
uses: peaceiris/actions-gh-pages@v3.9.3
if: ${{ github.ref == 'refs/heads/testing' || github.event.inputs.branch == 'testing' }}
with:
publish_dir: ./

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/aquamarine.css?sha=d756574a59cc3bfa2433998efaf57bf3");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-abyss.css?sha=e8399c6f8a2e9f3ec99f9aad936db7a9");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-amethyst.css?sha=87786d9451286f37b81293bbf51a8205");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-carol.css?sha=dd744035926663fc42242daedc9f1794");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-dreamscape.css?sha=81a988c1ccc397ca303b898a69b8933f");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-flamingo.css?sha=1f73a7b422a1ad484a33b95e71e542d7");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-hearth.css?sha=63eff67e0507c9f40b3a6d721fd2e00b");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-martian.css?sha=b147b481a6e52a58dccff4ff3e2b83a0");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-pumpkin.css?sha=ded53ed23d3bb1b293c2b444f9c6b520");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-royal.css?sha=5656c5c4f467941883374376d45a8758");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-shadow.css?sha=b8941bbed98a08998a2fbe28319112c0");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-solar.css?sha=b993845b73c14914d185a76b44750c64");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/blackberry-vanta.css?sha=66ca6a0d6a5055bc0a2a0460c945fa7a");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/dark.css?sha=1bbea8b71216f2c2b7eff31ee72c389f");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/dracula.css?sha=6366d3845240fb8943c2b54d56335a19");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/hotline-old.css?sha=1996bf028fd671f9a43dc15035e65c33");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/hotline.css?sha=b104dcbd717283d00fe6de4219744ecc");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/hotpink.css?sha=152a8bd511ff5cfe5df90e00688ba1fc");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/ibracorp.css?sha=c614a1a123a048850289e718fd113c8f");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/maroon.css?sha=aba3461aac201e257cf5cea12d9f6c5c");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/mind.css?sha=9f02ff1636bb19fbbc1c883f0a69814d");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/nord.css?sha=1b026fc9951acb87776302d71db5705e");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/onedark.css?sha=35d1229e080c54d138ea4c9512c0f0db");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/organizr.css?sha=fceff07a68bad62cd3848afce664a97f");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/overseerr.css?sha=e144b7051d5a835c99e85a5a6b616e5e");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/pine-shadow.css?sha=953a1c8800f65def81edfbf1097de444");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/plex.css?sha=a4c4891e132b89426160a1fe32205f4f");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/power.css?sha=4bfda3cbb74c41f827e46f8b8e14dbdf");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/reality.css?sha=fab9956884e76c612c6de71dafb0b746");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/soul.css?sha=1b36e7232a886dc953c85652881b8a00");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/theme-options/space-gray.css?sha=90a7104be7219a1a90f4ba0464774472");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/space.css?sha=805cb02ce365df0e26965c25e4a105ca");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/time.css?sha=2ef20efc1ed3edbad12b085582ce88e6");

View File

@ -1,2 +1,2 @@
@import url("/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d");
@import url("/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8");
@import url("/css/community-theme-options/trueblack.css?sha=541f73821cfe0a75a26106011079b244");

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -11,12 +11,6 @@ echo -e "Variables set:\\n\
'TP_SCHEME'=${TP_SCHEME}\\n\
'TP_THEME'=${TP_THEME}\\n"
APP_FILEPATH=''
if [ "${TP_HOTIO}" = true ]; then
echo 'Changing to Hotio file path!'
APP_FILEPATH='/app'
fi
# Set default
if [[ -z ${TP_DOMAIN} ]]; then
echo 'No domain set, defaulting to theme-park.dev'
@ -45,16 +39,16 @@ if [[ -z ${TP_THEME} ]]; then
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html; then
if ! grep -q "${TP_DOMAIN}/css/base" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/plex\/plex-base.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/plex\/plex-base.css'><\/head> /g" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
printf 'Stylesheet set to %s\n' "${TP_THEME}"
if [[ -n ${TP_ADDON} ]]; then
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/plex\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/plex\/${addon}\/${addon}.css'><\/head> /g" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
printf 'Added custom addon: %s\n\n' "${addon}"
done
fi

View File

@ -11,12 +11,6 @@ echo -e "Variables set:\\n\
'TP_SCHEME'=${TP_SCHEME}\\n\
'TP_THEME'=${TP_THEME}\\n"
APP_FILEPATH=''
if [ "${TP_HOTIO}" = true ]; then
echo 'Changing to Hotio file path!'
APP_FILEPATH='/app'
fi
# Set default
if [[ -z ${TP_DOMAIN} ]]; then
echo 'No domain set, defaulting to theme-park.dev'
@ -45,16 +39,16 @@ if [[ -z ${TP_THEME} ]]; then
fi
# Adding stylesheets
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html; then
if ! grep -q "${TP_DOMAIN}/css/base" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html; then
echo '---------------------------'
echo '| Adding the stylesheet |'
echo '---------------------------'
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/plex\/plex-base.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/plex\/plex-base.css'><\/head> /g" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
printf 'Stylesheet set to %s\n' "${TP_THEME}"
if [[ -n ${TP_ADDON} ]]; then
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/plex\/${addon}\/${addon}.css'><\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/plex\/${addon}\/${addon}.css'><\/head> /g" /usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html
printf 'Added custom addon: %s\n\n' "${addon}"
done
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -65,7 +65,7 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
done
fi
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${APP_FILEPATH}"
sed -i "s!</body>!${sheets}</body>!g" "${LOGIN_FILEPATH}"
printf 'Stylesheets inserted.'
fi

View File

@ -11,8 +11,8 @@
"organizr": {
"glass": {
"css": [
"https://theme-park.dev/css/addons/organizr/glass/glass-base.css?sha=914bc5aa30992f0ba74793e35b643dc1",
"https://theme-park.dev/css/addons/organizr/glass/organizr-base-old.css?sha=7ca2b0e71ab22a2e00ed59acb3415c4e",
"https://theme-park.dev/css/addons/organizr/glass/glass-base.css?sha=914bc5aa30992f0ba74793e35b643dc1",
"https://theme-park.dev/css/addons/organizr/glass/glass-login.css?sha=b7cce58f74f91aaf452f3e2a2fd46e2e"
]
}
@ -45,37 +45,37 @@
"alien": {
"css": [
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway.css?sha=66fb1e93836e81eb0fa3fa27147cb9ea",
"https://theme-park.dev/css/addons/unraid/login-page/alien/scanner.css?sha=9c97f33f026050abca26282258e9f35d",
"https://theme-park.dev/css/addons/unraid/login-page/alien/alien-base.css?sha=d7045656054ac9d428c390d0a96ff4bb",
"https://theme-park.dev/css/addons/unraid/login-page/alien/isolation_video.css?sha=41157d0ffbb87985a3d35048fb1ebe30",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway4.css?sha=4c9c5c40e696e9258c963981705a9eb2",
"https://theme-park.dev/css/addons/unraid/login-page/alien/isolation.css?sha=c838308ddf177d74e75fae445b2ea824",
"https://theme-park.dev/css/addons/unraid/login-page/alien/nightmare.css?sha=1da7c77a6d81a9ccf14e8b802ab0fd46",
"https://theme-park.dev/css/addons/unraid/login-page/alien/custom.css?sha=f42ec439c86c169aca34f7958d6bda7f",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway3.css?sha=dd01b13d8039ae268e41f876e8588f79",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway2.css?sha=b384251e3a5baf8f43d699dd99c32ca3"
"https://theme-park.dev/css/addons/unraid/login-page/alien/isolation_video.css?sha=41157d0ffbb87985a3d35048fb1ebe30",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway2.css?sha=b384251e3a5baf8f43d699dd99c32ca3",
"https://theme-park.dev/css/addons/unraid/login-page/alien/alien-base.css?sha=d7045656054ac9d428c390d0a96ff4bb",
"https://theme-park.dev/css/addons/unraid/login-page/alien/custom.css?sha=f42ec439c86c169aca34f7958d6bda7f",
"https://theme-park.dev/css/addons/unraid/login-page/alien/scanner.css?sha=9c97f33f026050abca26282258e9f35d",
"https://theme-park.dev/css/addons/unraid/login-page/alien/nightmare.css?sha=1da7c77a6d81a9ccf14e8b802ab0fd46",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway4.css?sha=4c9c5c40e696e9258c963981705a9eb2"
]
},
"fallout": {
"css": [
"https://theme-park.dev/css/addons/unraid/login-page/fallout/fallout_video.css?sha=ba3ee6187c21d2d8e302be035d68496a",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/dirty_terminal.css?sha=1a5fd9a10cddc7cc5b2ab268be71b301",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/fallout-base.css?sha=3c183e6fbcfb18f9ded7887ee6fee86a",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/terminal2.css?sha=9e80f6fa107747f276298eb42eef781d",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/terminal.css?sha=a803842569b686a642260679106742a9",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/fallout_video.css?sha=ba3ee6187c21d2d8e302be035d68496a",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/dirty_terminal2.css?sha=01cf21af49932e2ab0879da576930920",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/custom.css?sha=ec87723e62568661bbb9313c129da613",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/terminal2.css?sha=9e80f6fa107747f276298eb42eef781d"
"https://theme-park.dev/css/addons/unraid/login-page/fallout/fallout-base.css?sha=3c183e6fbcfb18f9ded7887ee6fee86a",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/custom.css?sha=ec87723e62568661bbb9313c129da613"
]
},
"retro-terminal": {
"css": [
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/blue.css?sha=585b2b9c06233e8a0b90b155a2ec1d22",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/retro-terminal-base.css?sha=68c9a21adb524cab2e153a66c6a68d70",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/white.css?sha=6bd4eead62c6381261f8beb78c3a1766",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/green.css?sha=8bff192aff5e98d97e8d1980dd6fd664",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/red.css?sha=84917694a232621fe6ff57d15476506b",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/amber.css?sha=54cf35d4554023944c907f44653db03d",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/retro-terminal-base.css?sha=68c9a21adb524cab2e153a66c6a68d70",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/custom.css?sha=d8c4b0416a3bd2ee780608d39080e3fc",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/blue.css?sha=585b2b9c06233e8a0b90b155a2ec1d22",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/green.css?sha=8bff192aff5e98d97e8d1980dd6fd664"
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/custom.css?sha=d8c4b0416a3bd2ee780608d39080e3fc"
]
}
}
@ -308,8 +308,8 @@
"addons": {
"glass": {
"css": [
"https://theme-park.dev/css/addons/organizr/glass/glass-base.css?sha=914bc5aa30992f0ba74793e35b643dc1",
"https://theme-park.dev/css/addons/organizr/glass/organizr-base-old.css?sha=7ca2b0e71ab22a2e00ed59acb3415c4e",
"https://theme-park.dev/css/addons/organizr/glass/glass-base.css?sha=914bc5aa30992f0ba74793e35b643dc1",
"https://theme-park.dev/css/addons/organizr/glass/glass-login.css?sha=b7cce58f74f91aaf452f3e2a2fd46e2e"
]
}
@ -408,42 +408,42 @@
"alien": {
"css": [
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway.css?sha=66fb1e93836e81eb0fa3fa27147cb9ea",
"https://theme-park.dev/css/addons/unraid/login-page/alien/scanner.css?sha=9c97f33f026050abca26282258e9f35d",
"https://theme-park.dev/css/addons/unraid/login-page/alien/alien-base.css?sha=d7045656054ac9d428c390d0a96ff4bb",
"https://theme-park.dev/css/addons/unraid/login-page/alien/isolation_video.css?sha=41157d0ffbb87985a3d35048fb1ebe30",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway4.css?sha=4c9c5c40e696e9258c963981705a9eb2",
"https://theme-park.dev/css/addons/unraid/login-page/alien/isolation.css?sha=c838308ddf177d74e75fae445b2ea824",
"https://theme-park.dev/css/addons/unraid/login-page/alien/nightmare.css?sha=1da7c77a6d81a9ccf14e8b802ab0fd46",
"https://theme-park.dev/css/addons/unraid/login-page/alien/custom.css?sha=f42ec439c86c169aca34f7958d6bda7f",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway3.css?sha=dd01b13d8039ae268e41f876e8588f79",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway2.css?sha=b384251e3a5baf8f43d699dd99c32ca3"
"https://theme-park.dev/css/addons/unraid/login-page/alien/isolation_video.css?sha=41157d0ffbb87985a3d35048fb1ebe30",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway2.css?sha=b384251e3a5baf8f43d699dd99c32ca3",
"https://theme-park.dev/css/addons/unraid/login-page/alien/alien-base.css?sha=d7045656054ac9d428c390d0a96ff4bb",
"https://theme-park.dev/css/addons/unraid/login-page/alien/custom.css?sha=f42ec439c86c169aca34f7958d6bda7f",
"https://theme-park.dev/css/addons/unraid/login-page/alien/scanner.css?sha=9c97f33f026050abca26282258e9f35d",
"https://theme-park.dev/css/addons/unraid/login-page/alien/nightmare.css?sha=1da7c77a6d81a9ccf14e8b802ab0fd46",
"https://theme-park.dev/css/addons/unraid/login-page/alien/hallway4.css?sha=4c9c5c40e696e9258c963981705a9eb2"
]
},
"fallout": {
"css": [
"https://theme-park.dev/css/addons/unraid/login-page/fallout/fallout_video.css?sha=ba3ee6187c21d2d8e302be035d68496a",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/dirty_terminal.css?sha=1a5fd9a10cddc7cc5b2ab268be71b301",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/fallout-base.css?sha=3c183e6fbcfb18f9ded7887ee6fee86a",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/terminal2.css?sha=9e80f6fa107747f276298eb42eef781d",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/terminal.css?sha=a803842569b686a642260679106742a9",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/fallout_video.css?sha=ba3ee6187c21d2d8e302be035d68496a",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/dirty_terminal2.css?sha=01cf21af49932e2ab0879da576930920",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/custom.css?sha=ec87723e62568661bbb9313c129da613",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/terminal2.css?sha=9e80f6fa107747f276298eb42eef781d"
"https://theme-park.dev/css/addons/unraid/login-page/fallout/fallout-base.css?sha=3c183e6fbcfb18f9ded7887ee6fee86a",
"https://theme-park.dev/css/addons/unraid/login-page/fallout/custom.css?sha=ec87723e62568661bbb9313c129da613"
]
},
"retro-terminal": {
"css": [
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/blue.css?sha=585b2b9c06233e8a0b90b155a2ec1d22",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/retro-terminal-base.css?sha=68c9a21adb524cab2e153a66c6a68d70",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/white.css?sha=6bd4eead62c6381261f8beb78c3a1766",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/green.css?sha=8bff192aff5e98d97e8d1980dd6fd664",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/red.css?sha=84917694a232621fe6ff57d15476506b",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/amber.css?sha=54cf35d4554023944c907f44653db03d",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/retro-terminal-base.css?sha=68c9a21adb524cab2e153a66c6a68d70",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/custom.css?sha=d8c4b0416a3bd2ee780608d39080e3fc",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/blue.css?sha=585b2b9c06233e8a0b90b155a2ec1d22",
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/green.css?sha=8bff192aff5e98d97e8d1980dd6fd664"
"https://theme-park.dev/css/addons/unraid/login-page/retro-terminal/custom.css?sha=d8c4b0416a3bd2ee780608d39080e3fc"
]
}
}
},
"base_css": "https://theme-park.dev/css/base/unraid/unraid-base.css?sha=f4c2fdc0b0ec377ba8cacdebc3f4d93d"
"base_css": "https://theme-park.dev/css/base/unraid/unraid-base.css?sha=03bdef869e90602d467ba6ecfed83fa8"
},
"uptime-kuma": {
"addons": {},