1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-11-20 01:52:32 +01:00
This commit is contained in:
GilbN 2022-12-21 11:25:07 +00:00
parent 87edc5b303
commit d563936d64
10 changed files with 147 additions and 310 deletions

View File

@ -1,17 +1,5 @@
.bazarr-Avatar-root[class*="bazarr-"] img {
display: none !important;
}
.bazarr-Avatar-root[class*="bazarr-"]:before {
background-image: url("/css/addons/bazarr/bazarr-4k-logo/bazarr4k.png");
display: inline-block;
width: 32px;
height: 32px;
content: "";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
[class*="bazarr-"].bazarr-Avatar-image {
content: url("/css/addons/bazarr/bazarr-4k-logo/bazarr4k.png");
}
#root>div>header>div>div.bazarr-Group-root[class*="bazarr-"]>div>span:after {

View File

@ -1,96 +1,27 @@
/* Desktop */
@media (min-width: 752px) {
.navbar-brand>img {
display:none !important;
}
.navbar > .container-fluid .navbar-brand:before {
background-image: url("/css/addons/radarr/radarr-4k-logo/radarr4k.png");
display: inline-block;
width: 128px;
height: 128px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
}
/* Mobile */
@media (max-width: 767px) {
.navbar-brand .visible-xs img {
display: none !important;
}
.navbar-brand .visible-xs {
display: inline !important;
}
.navbar > .container-fluid .navbar-brand:before {
background-image: url("/css/addons/radarr/radarr-4k-logo/radarr4k.png");
display: inline-block;
width: 32px;
height: 32px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
margin-bottom: -12px;
}
[class*="PageHeader-logoFull-"] {
content: url("/css/addons/radarr/radarr-4k-logo/radarr4k-v3.png");
margin-left: 15px;
width: 120px;
height: 40px;
}
}
/* Radarr V3*/
@media (min-width: 752px) {
[class*="PageHeader-logoFull-"] {
display: none !important;
}
[class*="PageHeader-logoContainer-"]:before {
background-image: url("/css/addons/radarr/radarr-4k-logo/radarr4k-v3.png");
display: inline-block;
width: 148px;
height: 48px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
}
@media (max-width: 767px) {
[class*="PageHeader-logo-"] {
display: none !important;
}
[class*="PageHeader-logoContainer-"]{
background-image: url("/css/addons/radarr/radarr-4k-logo/radarr-v3-mobile.png");
display: inline-block;
width: 32px;
@media only screen and (max-width: 768px) {
[class*="PageHeader-logo-"] {
width: 32px;
height: 32px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
margin-left: 20px;
margin-right: 8px;
flex: 0 0 32px;
}
margin-left: 0px;
content: url("/css/addons/radarr/radarr-4k-logo/radarr-v3-mobile.png");
}
}
[class*="LoadingPage-logoFull-"] {
display: none !important;
}
[class*="LoadingPage-page-"]:before {
background-image: url("/css/addons/radarr/radarr-4k-logo/radarr4k-v3.png");
display: inline-block;
width: 148px;
height: 48px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
margin-top: 50px;
margin-right: auto;
margin-left: auto;
}
content: url("/css/addons/radarr/radarr-4k-logo/radarr4k-v3.png");
margin-top: 50px;
margin-right: auto;
margin-left: auto;
width: 120px;
height: 40px;
opacity: 1;
}

View File

@ -1,53 +1,16 @@
@media (min-width: 752px) {
[class*="PageHeader-logo-"] {
display: none !important;
[class*="PageHeader-logo-"] {
content: url("/css/addons/readarr/readarr-alt-logo/readarr_alt.png");
}
[class*="PageHeader-logoContainer-"]:before {
background-image: url("/css/addons/readarr/readarr-alt-logo/readarr_alt.png");
display: inline-block;
width: 34px;
height: 34px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
}
}
@media (max-width: 767px) {
[class*="PageHeader-logo-"] {
display: none !important;
}
[class*="PageHeader-logoContainer-"]:before {
background-image: url("/css/addons/readarr/readarr-alt-logo/readarr_alt.png");
display: inline-block;
width: 34px;
height: 34px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
@media only screen and (max-width: 768px) {
[class*="PageHeader-logo-"] {
content: url("/css/addons/readarr/readarr-alt-logo/readarr_alt.png");
}
}
[class*="LoadingPage-logoFull-"] {
display: none !important;
}
[class*="LoadingPage-page-"]:before {
background-image: url("/css/addons/readarr/readarr-alt-logo/readarr_alt.png");
display: inline-block;
width: 48px;
height: 48px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
margin-top: 50px;
margin-right: auto;
margin-left: auto;
}
content: url("/css/addons/readarr/readarr-alt-logo/readarr_alt.png");
opacity: 1;
}

View File

@ -1,53 +1,16 @@
@media (min-width: 752px) {
[class*="PageHeader-logo-"] {
display: none !important;
[class*="PageHeader-logo-"] {
content: url("/css/addons/sonarr/sonarr-4k-logo/sonarr-4k.png");
}
[class*="PageHeader-logoContainer-"]:before {
background-image: url("/css/addons/sonarr/sonarr-4k-logo/sonarr-4k.png");
display: inline-block;
width: 32px;
height: 32px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
}
}
@media (max-width: 767px) {
[class*="PageHeader-logo-"] {
display: none !important;
}
[class*="PageHeader-logoContainer-"]:before {
background-image: url("/css/addons/sonarr/sonarr-4k-logo/sonarr-4k.png");
display: inline-block;
width: 32px;
height: 32px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
@media only screen and (max-width: 768px) {
[class*="PageHeader-logo-"] {
content: url("/css/addons/sonarr/sonarr-4k-logo/sonarr-4k.png");
}
}
[class*="LoadingPage-logoFull-"] {
display: none !important;
}
[class*="LoadingPage-page-"]:before {
background-image: url("/css/addons/sonarr/sonarr-4k-logo/sonarr-4k.png");
display: inline-block;
width: 48px;
height: 48px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
margin-top: 50px;
margin-right: auto;
margin-left: auto;
}
content: url("/css/addons/sonarr/sonarr-4k-logo/sonarr-4k.png");
opacity: 1;
}

View File

@ -1,55 +1,27 @@
@media (min-width: 752px) {
[class*="PageHeader-logo-"] {
display: none !important;
}
[class*="PageHeader-logoContainer-"]:before {
background-image: url("/css/addons/sonarr/sonarr-4k-text-logo/sonarr-4k-text.png");
display: inline-block;
margin-left: 15px;
width: 124px;
[class*="PageHeader-logo-"] {
content: url("/css/addons/sonarr/sonarr-4k-text-logo/sonarr-4k-text.png");
margin-left: 15px;
width: 120px;
height: 40px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
}
}
}
@media only screen and (max-width: 768px) {
[class*="PageHeader-logo-"] {
width: 32px;
height: 32px;
margin-left: 0px;
content: url("/css/addons/sonarr/sonarr-4k-logo/sonarr-4k.png");
}
}
[class*="LoadingPage-logoFull-"] {
display: none !important;
}
[class*="LoadingPage-page-"]:before {
background-image: url("/css/addons/sonarr/sonarr-4k-text-logo/sonarr-4k-text.png");
display: inline-block;
width: 124px;
height: 40px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
margin-top: 50px;
margin-right: auto;
margin-left: auto;
}
@media (max-width: 767px) {
[class*="PageHeader-logo-"] {
display: none !important;
}
[class*="PageHeader-logoContainer-"]:before {
background-image: url("/css/addons/sonarr/sonarr-4k-logo/sonarr-4k.png");
display: inline-block;
width: 32px;
height: 32px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
}
content: url("/css/addons/sonarr/sonarr-4k-text-logo/sonarr-4k-text.png");
margin-top: 50px;
margin-right: auto;
margin-left: auto;
width: 120px;
height: 40px;
opacity: 1;
}

View File

@ -1,38 +1,27 @@
@media (min-width: 752px) {
[class*="PageHeader-logo-"] {
display: none !important;
}
[class*="PageHeader-logoContainer-"]:before {
background-image: url("/css/addons/sonarr/sonarr-text-logo/sonarr-text.png");
display: inline-block;
margin-left: 15px;
width: 124px;
[class*="PageHeader-logo-"] {
content: url("/css/addons/sonarr/sonarr-text-logo/sonarr-text.png");
margin-left: 15px;
width: 120px;
height: 40px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
}
}
}
}
@media only screen and (max-width: 768px) {
[class*="PageHeader-logo-"] {
width: 32px;
height: 32px;
margin-left: 0px;
content: url("sonarr/Content/Images/logo.svg");
}
}
[class*="LoadingPage-logoFull-"] {
display: none !important;
}
[class*="LoadingPage-page-"]:before {
background-image: url("/css/addons/sonarr/sonarr-text-logo/sonarr-text.png");
display: inline-block;
width: 124px;
height: 40px;
content:"";
background-size: cover;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
margin-top: 50px;
margin-right: auto;
margin-left: auto;
}
content: url("/css/addons/sonarr/sonarr-text-logo/sonarr-text.png");
margin-top: 50px;
margin-right: auto;
margin-left: auto;
width: 120px;
height: 40px;
opacity: 1;
}

View File

@ -30,9 +30,11 @@ echo '--------------------------'
if [ -x "$(command -v apk)" ]; then
apk update && \
apk add --no-cache subversion
apk add --no-cache perl
elif [ -x "$(command -v apt-get)" ]; then
apt-get update && \
apt-get install -y subversion
apt-get install -y perl
fi
fi
@ -95,21 +97,35 @@ sed_file(){
printf 'Stylesheet set to %s on %s\n\n' "${TP_THEME}" "$1"
}
# Adding stylesheets
echo '---------------------------------------'
echo '| Adding the stylesheet to html files |'
echo '---------------------------------------'
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
sed_file /themepark/public/index.html
fi
clean_file() {
perl -i -pe 's/QBT_TR?\(//' "$1"
perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//' "$1"
}
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/private/index.html; then
find /themepark/private -type f -iname *.html | while read fname
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
# Adding stylesheets
echo '---------------------------------------'
echo '| Adding the stylesheet to html files |'
echo '---------------------------------------'
sed_file /themepark/public/index.html
clean_file /themepark/public/index.html
find /themepark/private -type f -iname "*.html" | while read fname
do
sed_file $fname
done
fi
# Clean all files
printf 'Cleaning files in /themepark for any translation text...\n\n
--------------------------------------------------------------------------
| !!! RESTART THE CONTAINER IF THIS IS THE FIRST TIME CLEANING FILES !!! |
--------------------------------------------------------------------------\n\n'
find /themepark -type f \( ! -iname "*.svg" \) | while read fname
do
clean_file $fname
done
if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then
echo '--------------------------------------'
echo '| Adding WebUI\RootFolder=/themepark |'

View File

@ -2,4 +2,5 @@
if ! [[ -x "$(command -v svn)" ]]; then
echo "subversion" >> /mod-repo-packages-to-install.list
echo "perl" >> /mod-repo-packages-to-install.list
fi

View File

@ -82,21 +82,35 @@ sed_file(){
printf 'Stylesheet set to %s on %s\n\n' "${TP_THEME}" "$1"
}
# Adding stylesheets
echo '---------------------------------------'
echo '| Adding the stylesheet to html files |'
echo '---------------------------------------'
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
sed_file /themepark/public/index.html
fi
clean_file() {
perl -i -pe 's/QBT_TR?\(//' "$1"
perl -i -pe 's/\)QBT_TR\[CONTEXT=.*?\]//' "$1"
}
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/private/index.html; then
find /themepark/private -type f -iname *.html | while read fname
if ! grep -q "${TP_DOMAIN}/css/base" /themepark/public/index.html; then
# Adding stylesheets
echo '---------------------------------------'
echo '| Adding the stylesheet to html files |'
echo '---------------------------------------'
sed_file /themepark/public/index.html
clean_file /themepark/public/index.html
find /themepark/private -type f -iname "*.html" | while read fname
do
sed_file $fname
done
fi
# Clean all files
printf 'Cleaning files in /themepark for any translation text...\n\n
--------------------------------------------------------------------------
| !!! RESTART THE CONTAINER IF THIS IS THE FIRST TIME CLEANING FILES !!! |
--------------------------------------------------------------------------\n\n'
find /themepark -type f \( ! -iname "*.svg" \) | while read fname
do
clean_file $fname
done
if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then
echo '--------------------------------------'
echo '| Adding WebUI\RootFolder=/themepark |'

View File

@ -1,7 +1,7 @@
{
"addons": {
"bazarr": {
"bazarr-4k-logo": "https://theme-park.dev/css/addons/bazarr/bazarr-4k-logo/bazarr-4k-logo.css?sha=c8338ec07dea32d8ffc1228f49a05dc8f0b85e57",
"bazarr-4k-logo": "https://theme-park.dev/css/addons/bazarr/bazarr-4k-logo/bazarr-4k-logo.css?sha=44b35a2ca04ee1a9f0d9d35f194e90bff027148c",
"bazarr-darker": "https://theme-park.dev/css/addons/bazarr/bazarr-darker/bazarr-darker.css?sha=d06c841424beb35e074ee880f692cff273f83f55"
},
"lidarr": {
@ -25,20 +25,20 @@
"prowlarr-darker": "https://theme-park.dev/css/addons/prowlarr/prowlarr-darker/prowlarr-darker.css?sha=75c317fe4b826126d84b085638abf8ce6b1ff600"
},
"radarr": {
"radarr-4k-logo": "https://theme-park.dev/css/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=0e7d257aa76caf8d9630ba95e8d499476e5c1baf",
"radarr-4k-logo": "https://theme-park.dev/css/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=f5fd7643487c299806638823cc56631c730ec473",
"radarr-alt-calendar": "https://theme-park.dev/css/addons/radarr/radarr-alt-calendar/radarr-alt-calendar.css?sha=ee66372dca0fab73fedd103effb51751d40843ff",
"radarr-darker": "https://theme-park.dev/css/addons/radarr/radarr-darker/radarr-darker.css?sha=29e6bb7eb550375061d326e363a15ea2d6f59e32"
},
"readarr": {
"readarr-alt-calendar": "https://theme-park.dev/css/addons/readarr/readarr-alt-calendar/readarr-alt-calendar.css?sha=3cdff79e43e36da75a40c2ba980e3da9ff540585",
"readarr-alt-logo": "https://theme-park.dev/css/addons/readarr/readarr-alt-logo/readarr-alt-logo.css?sha=f1f3b6fd804d76c2d6851f945446a1693b42c8ab",
"readarr-alt-logo": "https://theme-park.dev/css/addons/readarr/readarr-alt-logo/readarr-alt-logo.css?sha=751c7d49af58233df79e051f581226cd211d2be7",
"readarr-darker": "https://theme-park.dev/css/addons/readarr/readarr-darker/readarr-darker.css?sha=6800b40d5e3799457d916a509d8f35703b326fc3"
},
"sonarr": {
"sonarr-4k-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-4k-logo/sonarr-4k-logo.css?sha=0b109c74f56f92465dc01bf9ea10a877ed87213c",
"sonarr-4k-text-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-4k-text-logo/sonarr-4k-text-logo.css?sha=9dc5b9037aa6ea1041229ecbea3d6469e3b975a7",
"sonarr-4k-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-4k-logo/sonarr-4k-logo.css?sha=9bcc5ab73f0c2bfa8b8b6fc219ed5bd1133be1ff",
"sonarr-4k-text-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-4k-text-logo/sonarr-4k-text-logo.css?sha=0805aae0b588c147a24f8eccf08db6c2d4b242e8",
"sonarr-darker": "https://theme-park.dev/css/addons/sonarr/sonarr-darker/sonarr-darker.css?sha=7c3c2ddcd71525229b0dcc186326003677908b7c",
"sonarr-text-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-text-logo/sonarr-text-logo.css?sha=0979cbe5aaabb148fd15f4122690685e7ae4a4f3"
"sonarr-text-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-text-logo/sonarr-text-logo.css?sha=b037386c06f38403b1270a52ef83654d0573f9b3"
},
"unraid": {
"login-page": {
@ -196,7 +196,7 @@
},
"bazarr": {
"addons": {
"bazarr-4k-logo": "https://theme-park.dev/css/addons/bazarr/bazarr-4k-logo/bazarr-4k-logo.css?sha=c8338ec07dea32d8ffc1228f49a05dc8f0b85e57",
"bazarr-4k-logo": "https://theme-park.dev/css/addons/bazarr/bazarr-4k-logo/bazarr-4k-logo.css?sha=44b35a2ca04ee1a9f0d9d35f194e90bff027148c",
"bazarr-darker": "https://theme-park.dev/css/addons/bazarr/bazarr-darker/bazarr-darker.css?sha=d06c841424beb35e074ee880f692cff273f83f55"
},
"base_css": "https://theme-park.dev/css/base/bazarr/bazarr-base.css?sha=b672cdc316d19aacd08871a78a06b000f4ee0c0d"
@ -351,7 +351,7 @@
},
"radarr": {
"addons": {
"radarr-4k-logo": "https://theme-park.dev/css/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=0e7d257aa76caf8d9630ba95e8d499476e5c1baf",
"radarr-4k-logo": "https://theme-park.dev/css/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=f5fd7643487c299806638823cc56631c730ec473",
"radarr-alt-calendar": "https://theme-park.dev/css/addons/radarr/radarr-alt-calendar/radarr-alt-calendar.css?sha=ee66372dca0fab73fedd103effb51751d40843ff",
"radarr-darker": "https://theme-park.dev/css/addons/radarr/radarr-darker/radarr-darker.css?sha=29e6bb7eb550375061d326e363a15ea2d6f59e32"
},
@ -360,7 +360,7 @@
"readarr": {
"addons": {
"readarr-alt-calendar": "https://theme-park.dev/css/addons/readarr/readarr-alt-calendar/readarr-alt-calendar.css?sha=3cdff79e43e36da75a40c2ba980e3da9ff540585",
"readarr-alt-logo": "https://theme-park.dev/css/addons/readarr/readarr-alt-logo/readarr-alt-logo.css?sha=f1f3b6fd804d76c2d6851f945446a1693b42c8ab",
"readarr-alt-logo": "https://theme-park.dev/css/addons/readarr/readarr-alt-logo/readarr-alt-logo.css?sha=751c7d49af58233df79e051f581226cd211d2be7",
"readarr-darker": "https://theme-park.dev/css/addons/readarr/readarr-darker/readarr-darker.css?sha=6800b40d5e3799457d916a509d8f35703b326fc3"
},
"base_css": "https://theme-park.dev/css/base/readarr/readarr-base.css?sha=58b999c5f1e53257ff992959003cf67b1f4b6fab"
@ -383,10 +383,10 @@
},
"sonarr": {
"addons": {
"sonarr-4k-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-4k-logo/sonarr-4k-logo.css?sha=0b109c74f56f92465dc01bf9ea10a877ed87213c",
"sonarr-4k-text-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-4k-text-logo/sonarr-4k-text-logo.css?sha=9dc5b9037aa6ea1041229ecbea3d6469e3b975a7",
"sonarr-4k-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-4k-logo/sonarr-4k-logo.css?sha=9bcc5ab73f0c2bfa8b8b6fc219ed5bd1133be1ff",
"sonarr-4k-text-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-4k-text-logo/sonarr-4k-text-logo.css?sha=0805aae0b588c147a24f8eccf08db6c2d4b242e8",
"sonarr-darker": "https://theme-park.dev/css/addons/sonarr/sonarr-darker/sonarr-darker.css?sha=7c3c2ddcd71525229b0dcc186326003677908b7c",
"sonarr-text-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-text-logo/sonarr-text-logo.css?sha=0979cbe5aaabb148fd15f4122690685e7ae4a4f3"
"sonarr-text-logo": "https://theme-park.dev/css/addons/sonarr/sonarr-text-logo/sonarr-text-logo.css?sha=b037386c06f38403b1270a52ef83654d0573f9b3"
},
"base_css": "https://theme-park.dev/css/base/sonarr/sonarr-base.css?sha=a48674b3dc50ef91f320817968a60575db50bf2b"
},