mirror of
https://github.com/gilbN/theme.park.git
synced 2024-10-05 15:07:11 +02:00
commit
07cfe7c639
96
.github/workflows/auto-build.yml
vendored
96
.github/workflows/auto-build.yml
vendored
@ -3,8 +3,10 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
|
- develop
|
||||||
|
- testing
|
||||||
paths:
|
paths:
|
||||||
- 'docker-mods/**'
|
- '**/docker-mods/**'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
app:
|
app:
|
||||||
@ -43,6 +45,7 @@ on:
|
|||||||
append-tag:
|
append-tag:
|
||||||
required: false
|
required: false
|
||||||
description: 'Append a the tag with "-custom" e.g :radarr-testing'
|
description: 'Append a the tag with "-custom" e.g :radarr-testing'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
push_to_ghcr_io:
|
push_to_ghcr_io:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -51,46 +54,47 @@ jobs:
|
|||||||
uses: actions/checkout@v3.1.0
|
uses: actions/checkout@v3.1.0
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: get changed files
|
|
||||||
id: getfile
|
|
||||||
run: |
|
|
||||||
echo "files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} docker-mods/| xargs)" >> $GITHUB_ENV
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v2.1.0
|
uses: docker/login-action@v2.1.0
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ secrets.GHCR_USER }}
|
||||||
password: ${{ secrets.GH_PAT }}
|
password: ${{ secrets.GH_PAT }}
|
||||||
- name: find correct directory then build&push
|
- 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' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: |
|
run: |
|
||||||
for i in ${{ env.files }}
|
branch=${{ steps.extract_branch.outputs.branch }}
|
||||||
do
|
|
||||||
directory="$( echo $i | cut -d'/' -f2 -s )"
|
if [ "$branch" = "master" ]; then
|
||||||
if [ -z "$directory" ]; then
|
branch=""
|
||||||
continue # Skip root dir
|
else
|
||||||
elif [ "$i" == *.md ]; then
|
branch="-$branch"
|
||||||
continue # Skip markdown files
|
fi
|
||||||
elif [ "$i" == *.yml ]; then
|
for dir in docker-mods/*;
|
||||||
continue # Skip YAML files
|
do
|
||||||
fi
|
app="$( echo "$dir" | cut -d'/' -f2 -s )"
|
||||||
docker build docker-mods/$directory --tag ghcr.io/gilbn/theme.park:$directory
|
docker build docker-mods/$app --tag ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app$branch
|
||||||
docker push ghcr.io/gilbn/theme.park:$directory
|
docker push ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app$branch
|
||||||
done
|
done
|
||||||
- name: manually build
|
- name: manually build
|
||||||
if: ${{ github.event.inputs.app && github.event.inputs.app != 'build-all-the-mods' }}
|
if: ${{ github.event.inputs.app && github.event.inputs.app != 'build-all-the-mods' }}
|
||||||
run: |
|
run: |
|
||||||
docker build docker-mods/${{ github.event.inputs.app }} --tag ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
|
docker build docker-mods/${{ github.event.inputs.app }} --tag ghcr.io/${{ secrets.GHCR_USER }}/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
|
||||||
docker push ghcr.io/gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
|
docker push ghcr.io/${{ secrets.GHCR_USER }}/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
|
||||||
- name: manually build all mods
|
- name: manually build all mods
|
||||||
if: ${{ github.event.inputs.app == 'build-all-the-mods' }}
|
if: ${{ github.event.inputs.app == 'build-all-the-mods' }}
|
||||||
run: |
|
run: |
|
||||||
for dir in docker-mods/*;
|
for dir in docker-mods/*;
|
||||||
do
|
do
|
||||||
app="$( echo "$dir" | cut -d'/' -f2 -s )"
|
app="$( echo "$dir" | cut -d'/' -f2 -s )"
|
||||||
docker build docker-mods/$app --tag ghcr.io/gilbn/theme.park:$app${{ github.event.inputs.append-tag }}
|
docker build docker-mods/$app --tag ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
|
||||||
docker push ghcr.io/gilbn/theme.park:$app${{ github.event.inputs.append-tag }}
|
docker push ghcr.io/${{ secrets.GHCR_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
|
||||||
done
|
done
|
||||||
|
|
||||||
push_to_dockerhub:
|
push_to_dockerhub:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
@ -98,42 +102,42 @@ jobs:
|
|||||||
uses: actions/checkout@v3.1.0
|
uses: actions/checkout@v3.1.0
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: get changed files
|
|
||||||
id: getfile
|
|
||||||
run: |
|
|
||||||
echo "files=$(git diff-tree --no-commit-id --name-only -r ${{ github.sha }} docker-mods/| xargs)" >> $GITHUB_ENV
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2.1.0
|
uses: docker/login-action@v2.1.0
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DH_USER }}
|
username: ${{ secrets.DH_USER }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: find correct directory then build&push
|
- 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' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
run: |
|
run: |
|
||||||
for i in ${{ env.files }}
|
branch=${{ steps.extract_branch.outputs.branch }}
|
||||||
do
|
|
||||||
directory="$( echo $i | cut -d'/' -f2 -s )"
|
if [ "$branch" = "master" ]; then
|
||||||
if [ -z "$directory" ]; then
|
branch=""
|
||||||
continue # Skip root dir
|
else
|
||||||
elif [ "$i" == *.md ]; then
|
branch="-$branch"
|
||||||
continue # Skip markdown files
|
fi
|
||||||
elif [ "$i" == *.yml ]; then
|
for dir in docker-mods/*;
|
||||||
continue # Skip YAML files
|
do
|
||||||
fi
|
app="$( echo "$dir" | cut -d'/' -f2 -s )"
|
||||||
docker build docker-mods/$directory --tag gilbn/theme.park:$directory
|
docker build docker-mods/$app --tag ${{ secrets.DH_USER }}/theme.park:$app$branch
|
||||||
docker push gilbn/theme.park:$directory
|
docker push ${{ secrets.DH_USER }}/theme.park:$app$branch
|
||||||
done
|
done
|
||||||
- name: manually build
|
- name: manually build
|
||||||
if: ${{ github.event.inputs.app && github.event.inputs.app != 'build-all-the-mods' }}
|
if: ${{ github.event.inputs.app && github.event.inputs.app != 'build-all-the-mods' }}
|
||||||
run: |
|
run: |
|
||||||
docker build docker-mods/${{ github.event.inputs.app }} --tag gilbn/theme.park:${{ github.event.inputs.app }}${{ github.event.inputs.append-tag }}
|
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 gilbn/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
|
- name: manually build all mods
|
||||||
if: ${{ github.event.inputs.app == 'build-all-the-mods' }}
|
if: ${{ github.event.inputs.app == 'build-all-the-mods' }}
|
||||||
run: |
|
run: |
|
||||||
for dir in docker-mods/*;
|
for dir in docker-mods/*;
|
||||||
do
|
do
|
||||||
app="$( echo "$dir" | cut -d'/' -f2 -s )"
|
app="$( echo "$dir" | cut -d'/' -f2 -s )"
|
||||||
docker build docker-mods/$app --tag gilbn/theme.park:$app${{ github.event.inputs.append-tag }}
|
docker build docker-mods/$app --tag ${{ secrets.DH_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
|
||||||
docker push gilbn/theme.park:$app${{ github.event.inputs.append-tag }}
|
docker push ${{ secrets.DH_USER }}/theme.park:$app${{ github.event.inputs.append-tag }}
|
||||||
done
|
done
|
||||||
|
71
css/addons/unraid/local.sh
Normal file
71
css/addons/unraid/local.sh
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Theme-Park Theme CSS Synchronization Script
|
||||||
|
#
|
||||||
|
# This script synchronizes the CSS files needed for the theme-park.dev Unraid theme
|
||||||
|
# into the Dynamix CSS styles folder. The script creates destination subfolders if
|
||||||
|
# they don't exist and performs rsync for each subfolder. It then updates the @import references
|
||||||
|
# in the CSS files so the files get correctly loaded by the client.
|
||||||
|
#
|
||||||
|
# This script is intended for users of the "Theme Engine" plugin, allowing custom
|
||||||
|
# styling to be added into the HTML head that references the copied CSS files.
|
||||||
|
#
|
||||||
|
# After running this script, you can use the following code snippet as an example
|
||||||
|
# in your HTML head (Custom styling (advanced)) to include the copied CSS files using the "Theme Engine" plugin:
|
||||||
|
#
|
||||||
|
# <!-- Example for Theme Engine plugin -->
|
||||||
|
# </style>
|
||||||
|
# <link type="text/css" rel="stylesheet" href="/webGui/styles/theme-park/css/base/unraid/nord.css"/>
|
||||||
|
#
|
||||||
|
# Tip: You can use the "User Scripts" plugin in Unraid to schedule this script to run
|
||||||
|
# automatically when the Unraid array starts.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Define root source folder (CHANGE THIS TO YOUR DESIRED SOURCE FOLDER)
|
||||||
|
root_source_folder="/path/to/the/theme-park/root/folder"
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------- Start of Script --------------------
|
||||||
|
# Define subfolders
|
||||||
|
subfolders=("base/unraid" "theme-options" "defaults" "community-theme-options")
|
||||||
|
|
||||||
|
# Main destination folder
|
||||||
|
main_destination_folder="/usr/local/emhttp/plugins/dynamix/styles/theme-park/css/"
|
||||||
|
|
||||||
|
# User instructions
|
||||||
|
# Instructions: Only change the 'root_source_folder' variable to point to your desired source directory.
|
||||||
|
# Do NOT modify other variables unless you understand their purpose.
|
||||||
|
|
||||||
|
# Create subfolders if they don't exist
|
||||||
|
for subfolder in "${subfolders[@]}"; do
|
||||||
|
destination_folder="$main_destination_folder$subfolder"
|
||||||
|
if [ ! -d "$destination_folder" ]; then
|
||||||
|
echo "Destination folder not found. Creating destination folder: $destination_folder"
|
||||||
|
mkdir -p "$destination_folder"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Perform rsync for each subfolder to its corresponding destination
|
||||||
|
for subfolder in "${subfolders[@]}"; do
|
||||||
|
source_folder="$root_source_folder/$subfolder"
|
||||||
|
destination_folder="$main_destination_folder$subfolder"
|
||||||
|
|
||||||
|
# Check if source folder exists
|
||||||
|
if [ ! -d "$source_folder" ]; then
|
||||||
|
echo "Source folder not found: $source_folder"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rsync -av --delete "$source_folder/" "$destination_folder"
|
||||||
|
echo "Synchronization complete for source: $source_folder to destination: $destination_folder"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Update import references in CSS files so the the files get correctly loaded on the client
|
||||||
|
echo "Updating import references..."
|
||||||
|
find "$main_destination_folder" -type f -name "*.css" -exec sed -i 's|@import url("/css/|@import url("/webGui/styles/theme-park/css/|g' {} +
|
||||||
|
|
||||||
|
echo "Reference update complete."
|
||||||
|
|
||||||
|
# ---- End of Script ----
|
||||||
|
|
||||||
|
echo "All synchronizations complete."
|
@ -24,7 +24,11 @@
|
|||||||
--color-primary: rgb(var(--gitea-color-primary-dark-4),.6);
|
--color-primary: rgb(var(--gitea-color-primary-dark-4),.6);
|
||||||
--color-primary-dark-2: rgb(var(--gitea-color-primary-dark-4),.8);
|
--color-primary-dark-2: rgb(var(--gitea-color-primary-dark-4),.8);
|
||||||
--color-primary-dark-4: rgb(var(--gitea-color-primary-dark-4));
|
--color-primary-dark-4: rgb(var(--gitea-color-primary-dark-4));
|
||||||
}
|
--color-nav-bg: var(--main-bg-color);
|
||||||
|
--color-button: transparent;
|
||||||
|
--color-menu: transparent;
|
||||||
|
--color-footer: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: var(--main-bg-color);
|
background: var(--main-bg-color);
|
||||||
|
@ -285,23 +285,27 @@ div#toolbar>div#toolbar-inspector:before {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ul.torrent_list,
|
ul.torrent_list,
|
||||||
ul.torrent_list li.torrent.even {
|
ul.torrent_list li.torrent.even,
|
||||||
background: var(--transparency-dark-25)
|
ul.torrent-list,
|
||||||
|
ul.torrent-list li.torrent.even {
|
||||||
|
background: var(--transparency-dark-25) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.torrent_list li.torrent div.torrent_name {
|
ul.torrent_list li.torrent div.torrent_name {
|
||||||
color: var(--text-hover);
|
color: var(--text-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.torrent_list li.torrent.selected {
|
ul.torrent_list li.torrent.selected,
|
||||||
background: var(--transparency-dark-25);
|
ul.torrent-list li.torrent.selected {
|
||||||
|
background: var(--transparency-dark-50) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.torrent_list li.torrent {
|
ul.torrent_list li.torrent,
|
||||||
|
ul.torrent-list li.torrent {
|
||||||
border-bottom: 1px solid rgba(204, 204, 204, 0.1);
|
border-bottom: 1px solid rgba(204, 204, 204, 0.1);
|
||||||
padding: 4px 30px 5px 14px;
|
padding: 4px 30px 5px 14px;
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
background: var(--transparency-light-10);
|
background: var(--transparency-light-10) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Modal */
|
/* Modal */
|
||||||
@ -961,7 +965,9 @@ div.torrent_footer #compact-button.selected:before {
|
|||||||
|
|
||||||
/*Compact mode*/
|
/*Compact mode*/
|
||||||
ul.torrent_list li.torrent div.torrent_name.paused,
|
ul.torrent_list li.torrent div.torrent_name.paused,
|
||||||
ul.torrent_list li.torrent.compact div.torrent_name {
|
ul.torrent_list li.torrent.compact div.torrent_name,
|
||||||
|
ul.torrent-list li.torrent div.torrent_name.paused,
|
||||||
|
ul.torrent-list li.torrent.compact div.torrent_name {
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -982,4 +988,4 @@ ul.torrent_list li.torrent.compact div.torrent_name {
|
|||||||
.ui-icon,
|
.ui-icon,
|
||||||
.ui-widget-content .ui-icon {
|
.ui-widget-content .ui-icon {
|
||||||
background-image: url(/resources/transmission/icons.png);
|
background-image: url(/resources/transmission/icons.png);
|
||||||
}
|
}
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/lidarr\/lidarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/lidarr\/lidarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/lidarr/lidarr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/lidarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/lidarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/lidarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/lidarr\/lidarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/lidarr\/lidarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/sonarr/sonarr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/lidarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/sonarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/lidarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/prowlarr\/prowlarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/prowlarr\/prowlarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/prowlarr/prowlarr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/prowlarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/prowlarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/prowlarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/prowlarr\/prowlarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/prowlarr\/prowlarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/prowlarr/prowlarr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/prowlarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/prowlarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/prowlarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/radarr\/radarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/radarr\/radarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/radarr/radarr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/radarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/radarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/radarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/radarr\/radarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/radarr\/radarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/radarr/radarr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/radarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/radarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/radarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/readarr\/readarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/readarr\/readarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/readarr/readarr-base.css'>"
|
||||||
sed -i "s/<body>/<body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/readarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/readarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/readarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
fi
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/readarr\/readarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/readarr\/readarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/readarr/readarr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/readarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/readarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/readarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
fi
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sonarr\/sonarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sonarr\/sonarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/sonarr/sonarr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/sonarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/sonarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/sonarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sonarr\/sonarr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/sonarr\/sonarr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/sonarr/sonarr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/sonarr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/sonarr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/sonarr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -43,8 +43,13 @@ if ! grep -q "${TP_DOMAIN}/css/base" /usr/share/transmission/web/index.html; the
|
|||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheet |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
|
echo 'There may be 2 missing file errors right now. If there''s only 2 you may safely'
|
||||||
|
echo 'ignore them as they''re there for backwards compatability. If there are more'
|
||||||
|
echo 'errors than that, something went wrong.'
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/transmission\/transmission-base.css'><\/head> /g" /usr/share/transmission/web/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/transmission\/transmission-base.css'><\/head> /g" /usr/share/transmission/web/index.html
|
||||||
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/share/transmission/web/index.html
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/share/transmission/web/index.html
|
||||||
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/transmission\/transmission-base.css'><\/head> /g" /usr/share/transmission/public_html/index.html
|
||||||
|
sed -i "s/<\/head>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/head> /g" /usr/share/transmission/public_html/index.html
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
printf 'Stylesheet set to %s\n' "${TP_THEME}
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/whisparr\/whisparr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/whisparr\/whisparr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/whisparr/whisparr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/whisparr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/whisparr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/whisparr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -50,18 +50,22 @@ fi
|
|||||||
# Adding stylesheets
|
# Adding stylesheets
|
||||||
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
if ! grep -q "${TP_DOMAIN}/css/base" "${APP_FILEPATH}"; then
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
echo '| Adding the stylesheet |'
|
echo '| Adding the stylesheets |'
|
||||||
echo '---------------------------'
|
echo '---------------------------'
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/whisparr\/whisparr-base.css'> /g" "${APP_FILEPATH}"
|
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${APP_FILEPATH}"
|
url_base="${TP_SCHEME}://${TP_DOMAIN}"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/whisparr\/whisparr-base.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="<link rel='stylesheet' href='${url_base}/css/base/whisparr/whisparr-base.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'> /g" "${LOGIN_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/${THEME_TYPE}/${TP_THEME}.css'>"
|
||||||
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
printf 'Stylesheet set to %s\n' "${TP_THEME}"
|
||||||
|
|
||||||
if [[ -n ${TP_ADDON} ]]; then
|
if [[ -n ${TP_ADDON} ]]; then
|
||||||
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
for addon in $(echo "$TP_ADDON" | tr "|" " "); do
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/whisparr\/${addon}\/${addon}.css'> /g" "${APP_FILEPATH}"
|
sheets="${sheets} <link rel='stylesheet' href='${url_base}/css/addons/whisparr/${addon}/${addon}.css'>"
|
||||||
sed -i "s/<body>/<body><link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/addons\/whisparr\/${addon}\/${addon}.css'> /g" "${LOGIN_FILEPATH}"
|
|
||||||
printf 'Added custom addon: %s\n\n' "${addon}"
|
printf 'Added custom addon: %s\n\n' "${addon}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${APP_FILEPATH}"
|
||||||
|
sed -i "s!<body>!<body>${sheets}!g" "${LOGIN_FILEPATH}"
|
||||||
|
printf 'Stylesheets inserted.'
|
||||||
|
fi
|
||||||
|
@ -36,7 +36,7 @@ def create_addons_json() -> str:
|
|||||||
addon_folders = [name for name in listdir(
|
addon_folders = [name for name in listdir(
|
||||||
addon_root) if isdir(join(addon_root, name))]
|
addon_root) if isdir(join(addon_root, name))]
|
||||||
for app in addon_folders:
|
for app in addon_folders:
|
||||||
app_addons = [addon for addon in listdir(f"{addon_root}/{app}")]
|
app_addons = [addon for addon in listdir(f"{addon_root}/{app}") if isdir(f"{addon_root}/{app}/{addon}")]
|
||||||
ADDONS["addons"].update({
|
ADDONS["addons"].update({
|
||||||
app: {
|
app: {
|
||||||
addon: {} for addon in app_addons
|
addon: {} for addon in app_addons
|
||||||
|
Loading…
Reference in New Issue
Block a user