diff --git a/CSS/addons/unraid/login-page/retro-terminal/js/custom_text_header.js b/CSS/addons/unraid/login-page/retro-terminal/js/custom_text_header.js index 8febdc0f..7890b6ed 100644 --- a/CSS/addons/unraid/login-page/retro-terminal/js/custom_text_header.js +++ b/CSS/addons/unraid/login-page/retro-terminal/js/custom_text_header.js @@ -3,7 +3,7 @@ // ACSII slant font // Needs to be inside
-// You must escape any backward slashes. "\\" +// YOU MUST ESCAPE ANY SINGLE BACKSLASHES LIKE SO: \\ let custom_text_header = `
                     __                             ___       __  
@@ -13,4 +13,4 @@ let custom_text_header = `
 /_/ /_/\\____/____/\\__/_/   \\____/_/ /_/ /_/\\____/_/_/_/ /_/_/|_|  
                                                                  
`; -document.getElementById("login").innerHTML += custom_text_header \ No newline at end of file +document.getElementById("login").innerHTML += custom_text_header diff --git a/CSS/themes/plex/plex-base.css b/CSS/themes/plex/plex-base.css index b5ceef57..8dfca0d4 100644 --- a/CSS/themes/plex/plex-base.css +++ b/CSS/themes/plex/plex-base.css @@ -1 +1 @@ -*{outline:0}[class*=ClaimedServer-messageHeader-],[class*=MetadataPosterCardTitle-isSecondary-],[class*=MetadataPosterCardTitle-isSecondary-] a,[class*=PrePlaySummary-summary-],body,label,p{color:var(--text)!important}[class*=Link-default-],[class*=PrePlayTertiaryTitle-tertiaryTitle-],[class*=SourceSidebarLink-sourceLink-],[class*=SourceSidebarLink-title-]{color:var(--text)}[class*=PivotTab-button-]{color:var(--text)!important}[class*=PivotTabDropdown-isSelected-]{border-color:rgb(var(--accent-color))!important;border-bottom-width:5px!important;border-left:4px solid transparent!important;border-right:4px solid transparent!important;border-top-width:0!important;margin-top:-2px!important}[class*=MetadataPosterCardActions-editButton-],[class*=MetadataPosterCardActions-moreButton-]{color:rgb(var(--accent-color))!important}[class*=MetadataPosterCardActions-editButton-]:hover,[class*=MetadataPosterCardActions-moreButton-]:hover{color:var(--accent-color-hover)!important}.h1,.h2,.h3,.h4,.h5,.h6,[class*=CollapsibleText-readMore-],[class*=FormLabel-label-],[class*=HubTitle-hubTitle-],[class*=MenuHeader-menuHeader-WuKJVD],[class*=PageHeader-pageHeader-],[class*=PageHeaderTitle-title-],[class*=PrePlayDetailsGroupItem-label-],[class*=PrePlayLeftTitle-leftTitle-],[class*=PrePlayPrimaryTitle-primaryTitle-],[class*=PrePlayPrimaryTitle-primaryTitle-] a,[class*=ServerDashboardPageHeader-headerTitle-],[class*=SidebarList-sidebarListHeader-],h1,h2,h3,h4,h5,h6{color:var(--text-hover)!important}.text-muted{color:var(--text-muted)}[class*=Link-isSelected-],[class*=Link-primary-],[class*=MetadataPosterCardTitle-title-] a,[class*=PrePlayDetailsGroupItem-groupItem-] a,[class*=PrePlayTagListLink-tagsListLink-][class*=Link-default-],a,a[class*=MetadataPosterCardTitle-title-]{color:var(--link-color)}.artwork-file-container:hover a,[class*=Link-link-]:hover:not([type=button]):not([role=menuitem]),[class*=MetadataPosterCardTitle-title-] a:hover,a:hover,a[class*=MetadataPosterCardTitle-title-]:hover{color:var(--link-color-hover)}[class*=".MetadataTableRow-title-"] a:hover,[class*=MetadataPosterCardTitle-title-][class*=MetadataPosterCardTitle-isSecondary-377V8A] [class*=Link-link-1Kt-hA]:hover,[class*=MetadataPosterCardTitle-title-][class*=MetadataPosterCardTitle-isSecondary-377V8A]:hover,a[class*=MetadataTableRow-title-]:hover{color:var(--text-hover)!important}[class*=TopUsersCell-playHistoryLink-][class*=Link-link-]{color:var(--label-text-color)!important}#plex>[class*=background-container-]>div>div>div:nth-child(2),#plex>div[class*=FullPageBackground-backgroundContainer-]>div>div:nth-child(2),#plex>div[class*=FullPageBackground-backgroundContainer-]>div>div:nth-child(4),[class*=FullPageBackground-backgroundContainer-] [class*=CrossFadeImage-crossFade-]{background:var(--main-bg-color)!important;background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover}[class*=BottomBar-bottomBar-]{background-color:rgb(0 0 0 / 70%);box-shadow:0 0 4px 0 rgb(0 0 0 / 50%)}[class*=SourceSidebarLink-isSelected-]{box-shadow:inset 2px 0 0 0 rgb(var(--accent-color));background:rgb(var(--accent-color),.05)}[class*=SourceSidebar-openSidebar-][class*=SourceSidebar-sidebar-],[class*=SourceSidebar-sidebar-]{background:rgba(0,0,0,.25)}[class*=SourceSidebar-expandedSidebar-][class*=SourceSidebar-sidebar-]{background:var(--modal-bg-color)!important;background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover}[class*=DisclosureArrow-isSelected-]{border-color:rgb(var(--accent-color))}[class*=SourceSidebarLink-isSelected-]:before{background-color:rgb(var(--accent-color))!important}[class*=SourceSidebarLink-isSelected-] [class*=SourceSidebarLink-iconContainer-],[class*=SourceSidebarLink-isSelected-] [class*=SourceSidebarLink-title-]{color:rgb(var(--accent-color))}[class*=SourceSidebarLink-sourceLink-]:hover [class*=SourceSidebarLink-iconContainer-],[class*=SourceSidebarLink-sourceLink-]:hover [class*=SourceSidebarLink-title-]{color:var(--accent-color-hover)}[class*=SourceSidebarServerHeader-title-]{color:rgb(var(--accent-color))}[class*=NavBar-container-]{background:rgba(0,0,0,.25)!important}[class*=NavBarActivityButton-isHighlighted-] [class*=NavBarActivityButton-activityIcon-]{color:rgb(var(--accent-color))}.NavBarActivityButton-isHighlighted-2YqjDs .NavBarActivityButton-activityIcon-3gF_TD{background-color:rgb(var(--accent-color));color:var(--label-text-color)}.NavBarActivityButton-isHighlighted-2YqjDs:hover .NavBarActivityButton-activityIcon-3gF_TD{background-color:var(--accent-color-hover);color:var(--label-text-color)!important}[class*=NavBarActivityButton-isHighlighted-]:hover [class*=NavBarActivityButton-activityIcon-]{color:var(--accent-color-hover)}[class*=NavBarActivityButton-isHighlighted-] [class*=NavBarActivityButton-label-]{color:rgb(var(--accent-color))}[class*=NavBarActivityButton-isHighlighted-]:hover [class*=NavBarActivityButton-label-]{color:var(--accent-color-hover)}[class*=Badge-primary-]{background-color:rgb(var(--accent-color))}[class*=DisclosureArrow-default-]{border-color:rgb(var(--accent-color))}a:hover [class*=DisclosureArrow-disclosureArrow-],button:hover [class*=DisclosureArrow-disclosureArrow-]{border-color:var(--accent-color-hover)}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:rgb(var(--accent-color))}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{background-color:rgb(var(--accent-color),.03)}.btn-gray:focus,.btn-gray:hover{color:var(--accent-color-hover)}[class*=MultiSelectPageHeader-selectedTitle-],[class*=PageHeaderMultiselectActions-container-],[class*=PageHeaderMultiselectActions-count-],[class*=PageHeaderTabButton-isSelected-],[class*=PageHeaderTabDropdown-isSelected-],[class*=PageHeaderTitle-detail-],[class*=PivotTab-selectedButton-]{color:rgb(var(--accent-color))!important;border-color:rgb(var(--accent-color))}[class*=PivotTab-selectedButton-]:after{background-color:rgb(var(--accent-color))}[class*=PivotTab-selectedButton-]:hover:after{background-color:var(--link-color-hover)}[class*=MetadataPosterCard-legacyUnwatchedEpisodesBadge-],[class*=MetadataPosterCard-legacyUnwatchedTag-],[class*=MetadataPosterCardOverlay-unplayedBadge-],[class*=MetadataPosterCardOverlay-versionBadge-]{background-color:var(--plex-poster-unwatched)}[class*=MetadataPosterCardFace-]:hover,[class*=PosterCardLink-hoveredLink-]{box-shadow:0 0 0 1px rgb(var(--accent-color)),0 0 4px rgb(0 0 0 / 30%)}[class*=MultiSelectPageHeader-multiSelectPageHeader-]{box-shadow:0 2px 0 0 rgb(var(--accent-color))}[class*=MetadataPosterCard-hoveredSelectedLink-],[class*=MetadataPosterCard-selectedLink-],[class*=MetadataPosterCardFace-isSelected-]{box-shadow:0 0 0 2px rgb(var(--accent-color)),0 0 4px rgb(0 0 0 / 30%)}[class*=SelectButton-isSelected-] [class*=SelectButton-selectCircle-]{border-color:rgb(var(--accent-color));background-color:rgb(var(--accent-color));box-shadow:0 0 4px rgb(0 0 0 / 60%);color:rgba(0,0,0,.75);transform:scale(1.4)}[class*=SelectButton-selectButton-].isActive [class*=SelectButton-selectCircle-]{background:rgb(var(--accent-color-hover))}[class*=PlayButton-playButton-]:hover [class*=PlayButton-playCircle-],[class*=PlayPauseOverlay-playCircle-]{border-color:rgb(var(--accent-color));background-color:rgb(var(--accent-color));color:#1f2326}[class*=MetadataPosterCardProgressBar-bar-],[class*=PosterCardOverlayProgress-progressBar-],[class*=SeekBar-seekBarFill-],[class*=SessionTile-playProgressPercent-],[class*=VolumeSlider-fill-]{background-color:rgb(var(--accent-color))}[class*=SeekBar-seekBarBuffer-],[class*=SessionTile-transcodeProgressPercent-]{background-color:rgba(var(--accent-color),.3)}[class*=SessionTileDetails-playerContainer-]{background-color:rgba(var(--accent-color),.2)}[class*=SessionTileDetails-videoStreamInformation-]{background-color:rgba(var(--accent-color),.15)}[class*=SessionTileDetails-audioStreamInformation-]{background-color:rgba(var(--accent-color),.1)}[class*=SessionTileDetails-subtitlesStreamInformation-]{background-color:rgba(var(--accent-color),.05)}[class*=TopUsersList-container-][class*=ServerDashboardSectionContent-container-]>div>div>div>div:nth-child(3){background-color:rgba(var(--accent-color),.2)!important}[class*=TopUsersList-container-][class*=ServerDashboardSectionContent-container-]>div>div>div>div:nth-child(4){background-color:rgba(var(--accent-color),.15)!important}[class*=TopUsersList-container-][class*=ServerDashboardSectionContent-container-]>div>div>div>div:nth-child(5){background-color:rgba(var(--accent-color),.1)!important}[class*=TopUsersList-container-][class*=ServerDashboardSectionContent-container-]>div>div>div>div:nth-child(6){background-color:rgba(var(--accent-color),.05)!important}[class*=TopUsersCell-playHistoryLink-]{background-color:rgb(var(--accent-color));color:#fff}[class*=TopPlayedColumnHeader-emptyTitleBackground-]{background-color:rgba(var(--accent-color),.3)}[class*=IconButton-isActive-],[class*=SelectedMenuItem-isSelected-],[class*=SelectedMenuItem-isSelected-] [class*=SelectedMenuItem-selectedIcon-]{color:rgb(var(--accent-color))}[class*=IconButton-isActive-]:hover{color:rgb(var(--accent-color-hover))}[class*=Spinner-spinner-]{border-color:rgb(var(--accent-color)) transparent transparent rgb(var(--accent-color));border-top-color:rgb(var(--accent-color))!important;border-left-color:rgb(var(--accent-color))!important}[class*=CircularProgressBar-circularProgressBar-]{stroke-width:2;stroke:rgb(var(--accent-color));stroke-dashoffset:0}.loading{border-color:rgb(var(--accent-color)) transparent transparent rgb(var(--accent-color))}.media-poster-container.selected .media-poster,.media-poster-container:hover .media-poster{-webkit-box-shadow:0 0 4px rgb(0 0 0 / 30%),inset 0 0 0 3px rgb(var(--accent-color));box-shadow:0 0 4px rgb(0 0 0 / 30%),inset 0 0 0 3px rgb(var(--accent-color))}.media-poster-container.selected .media-poster:before{border-color:rgb(var(--accent-color)) rgb(var(--accent-color)) transparent transparent}.media-poster-container.selected .media-poster:after{color:var(--label-text-color)}[class*=NavBarActivityMenuStatusItem-statusButtonIndicator-]{color:rgb(var(--accent-color))}[class*=SelectButton-selectedCircle-]{border-color:rgb(var(--accent-color));background-color:rgb(var(--accent-color))}[class*=ModalContent-modalContent-]{background:var(--modal-bg-color);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover}.modal-header{padding:15px 20px;background:var(--modal-header-color);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover;border-bottom:1px solid rgba(255,255,255,.05)}.modal-content{position:relative;background:var(--modal-bg-color);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:3px;-webkit-box-shadow:0 3px 9px rgb(0 0 0 / 50%);box-shadow:0 3px 9px rgb(0 0 0 / 50%);background-clip:padding-box;outline:0}.modal-footer{padding:15px 20px;margin-top:0;background:var(--modal-footer-color);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover;border-top:1px solid rgba(255,255,255,.05)}.modal-body-with-panes .modal-nav-pane{background-image:none;background:rgba(0,0,0,.25)}.files ul li,.well{color:var(--text);background-color:rgb(255 255 255 / 10%);border:1px solid transparent;-webkit-box-shadow:inset 0 1px 1px rgb(0 0 0 / 5%);box-shadow:inset 0 1px 1px rgb(0 0 0 / 5%)}.edit-section-modal .wizard-blocks-group>.wizard-block.selectable:hover{color:var(--text-hover);background-color:rgba(255,255,255,.05)}.edit-section-modal .wizard-blocks-group>.wizard-block.selectable{color:var(--text)}.striped-list-item>.striped-list-inner-item>.selected,.striped-list-item>a.selected{border-left:3px solid rgb(var(--accent-color))}.modal-header>h4>.modal-icon{color:var(--text-hover)}.btn-primary{border-color:var(--button-color);color:var(--button-text);background-color:var(--button-color);-webkit-transition:background-color .1s;transition:background-color .1s}.btn-primary:focus,.btn-primary:hover{color:var(--button-text-hover);background-color:var(--button-color-hover)}[class*=Button-primary].isDisabled{background:var(--button-color)}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:var(--button-color)}.btn-gray.selected{color:rgb(var(--accent-color))}.btn-gray{color:var(--text)}.edit-lock-addon.locked{color:var(--button-text-hover);background-color:var(--button-color);border-color:var(--button-color)}.edit-lock-addon{color:var(--button-color-hover);background-color:rgba(0,0,0,.5);border-color:transparent;-webkit-box-shadow:0 0 2px rgb(0 0 0 / 30%),inset -2px 2px 2px rgb(0 0 0 / 10%);box-shadow:0 0 2px rgb(0 0 0 / 30%),inset -2px 2px 2px rgb(0 0 0 / 10%)}.edit-section-modal .wizard-blocks-group>.wizard-block.selected,.edit-section-modal .wizard-blocks-group>.wizard-block.selected:hover{color:rgb(var(--accent-color))}.edit-section-modal .wizard-blocks-group>.wizard-block{color:var(--text)}.selectize-control.multi .selectize-input>div,[class*=Button-primary-]{background-color:var(--button-color);color:var(--button-text)}.selectize-control.multi .selectize-input>div.active,[class*=Button-primary-]:hover{background-color:var(--button-color-hover);color:var(--button-text-hover)}.selectize-dropdown,.selectize-dropdown.form-control,[class*=Menu-menu-]{background:var(--drop-down-menu-bg);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover}[class*=ServerMenuItem-selectedIcon-],[class*=ServerMenuItem-selectedServerMenuItem-]{color:rgb(var(--accent-color))}[class*=Tooltip-tooltip-]{background-color:var(--button-color);color:var(--button-text)}[class*=Tooltip-tooltipBottomArrow-]:after{border-top-color:var(--button-color)}[class*=Tooltip-tooltipTopArrow-]:after{border-bottom-color:var(--button-color)}[class*=Tooltip-tooltipRightArrow-]:after{border-left-color:var(--button-color)}[class*=Tooltip-tooltipLeftArrow-]:after{border-right-color:var(--button-color)}[class*=ServerDashboardPageSection-section-],[class*=SettingsFormSection-sectionWrapper-],hr{border-top:2px solid rgb(255 255 255 / 30%)}[class*=ClaimedServer-container-],[class*=SettingsFormSection-sectionWrapper-]:last-of-type{border-bottom:2px solid rgb(255 255 255 / 30%)}.alerts-container .page-count{margin-right:15px;font-size:14px;color:var(--text);vertical-align:top}.filter-bar .dropdown.open>a{color:rgb(var(--accent-color))}[class*=TableHeaderTitle-tableHeaderTitle-]{color:var(--text-hover)} +*{outline:0}[class*=ClaimedServer-messageHeader-],[class*=MetadataPosterCardTitle-isSecondary-],[class*=MetadataPosterCardTitle-isSecondary-] a,[class*=PrePlaySummary-summary-],body,label,p{color:var(--text)!important}[class*=Link-default-],[class*=PrePlayTertiaryTitle-tertiaryTitle-],[class*=SourceSidebarLink-sourceLink-],[class*=SourceSidebarLink-title-]{color:var(--text)}[class*=PivotTab-button-]{color:var(--text)!important}[class*=PivotTabDropdown-isSelected-]{border-color:rgb(var(--accent-color))!important;border-bottom-width:5px!important;border-left:4px solid transparent!important;border-right:4px solid transparent!important;border-top-width:0!important;margin-top:-2px!important}[class*=MetadataPosterCardActions-editButton-],[class*=MetadataPosterCardActions-moreButton-]{color:rgb(var(--accent-color))!important}[class*=MetadataPosterCardActions-editButton-]:hover,[class*=MetadataPosterCardActions-moreButton-]:hover{color:var(--accent-color-hover)!important}.h1,.h2,.h3,.h4,.h5,.h6,[class*=CollapsibleText-readMore-],[class*=FormLabel-label-],[class*=HubTitle-hubTitle-],[class*=MenuHeader-menuHeader-WuKJVD],[class*=PageHeader-pageHeader-],[class*=PageHeaderTitle-title-],[class*=PrePlayDetailsGroupItem-label-],[class*=PrePlayLeftTitle-leftTitle-],[class*=PrePlayPrimaryTitle-primaryTitle-],[class*=PrePlayPrimaryTitle-primaryTitle-] a,[class*=ServerDashboardPageHeader-headerTitle-],[class*=SidebarList-sidebarListHeader-],h1,h2,h3,h4,h5,h6{color:var(--text-hover)!important}.text-muted{color:var(--text-muted)}[class*=Link-isSelected-],[class*=Link-primary-],[class*=MetadataPosterCardTitle-title-] a,[class*=PrePlayDetailsGroupItem-groupItem-] a,[class*=PrePlayTagListLink-tagsListLink-][class*=Link-default-],a,a[class*=MetadataPosterCardTitle-title-]{color:var(--link-color)}.artwork-file-container:hover a,[class*=Link-link-]:hover:not([type=button]):not([role=menuitem]),[class*=MetadataPosterCardTitle-title-] a:hover,a:hover,a[class*=MetadataPosterCardTitle-title-]:hover{color:var(--link-color-hover)}[class*=".MetadataTableRow-title-"] a:hover,[class*=MetadataPosterCardTitle-title-][class*=MetadataPosterCardTitle-isSecondary-377V8A] [class*=Link-link-1Kt-hA]:hover,[class*=MetadataPosterCardTitle-title-][class*=MetadataPosterCardTitle-isSecondary-377V8A]:hover,a[class*=MetadataTableRow-title-]:hover{color:var(--text-hover)!important}[class*=TopUsersCell-playHistoryLink-][class*=Link-link-]{color:var(--label-text-color)!important}#plex>[class*=background-container-]>div>div>div:nth-child(2),#plex>div[class*=FullPageBackground-backgroundContainer-]>div>div:nth-child(2),#plex>div[class*=FullPageBackground-backgroundContainer-]>div>div:nth-child(4),[class*=FullPageBackground-backgroundContainer-] [class*=CrossFadeImage-crossFade-]{background:var(--main-bg-color)!important;background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover}[class*=BottomBar-bottomBar-]{background-color:rgb(0 0 0 / 70%);box-shadow:0 0 4px 0 rgb(0 0 0 / 50%)}[class*=SourceSidebarLink-isSelected-]{box-shadow:inset 2px 0 0 0 rgb(var(--accent-color));background:rgb(var(--accent-color),.05)}[class*=SourceSidebar-openSidebar-][class*=SourceSidebar-sidebar-],[class*=SourceSidebar-sidebar-]{background:rgba(0,0,0,.25)}[class*=SourceSidebar-expandedSidebar-][class*=SourceSidebar-sidebar-]{background:var(--modal-bg-color)!important;background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover}[class*=DisclosureArrow-isSelected-]{border-color:rgb(var(--accent-color))}[class*=SourceSidebarLink-isSelected-]:before{background-color:rgb(var(--accent-color))!important}[class*=SourceSidebarLink-isSelected-] [class*=SourceSidebarLink-iconContainer-],[class*=SourceSidebarLink-isSelected-] [class*=SourceSidebarLink-title-]{color:rgb(var(--accent-color))}[class*=SourceSidebarLink-sourceLink-]:hover [class*=SourceSidebarLink-iconContainer-],[class*=SourceSidebarLink-sourceLink-]:hover [class*=SourceSidebarLink-title-]{color:var(--accent-color-hover)}[class*=SourceSidebarServerHeader-title-]{color:rgb(var(--accent-color))}[class*=NavBar-container-]{background:rgba(0,0,0,.25)!important}[class*=NavBarActivityButton-isHighlighted-] [class*=NavBarActivityButton-activityIcon-]{color:rgb(var(--accent-color))}.NavBarActivityButton-isHighlighted-2YqjDs .NavBarActivityButton-activityIcon-3gF_TD{background-color:rgb(var(--accent-color));color:var(--label-text-color)}.NavBarActivityButton-isHighlighted-2YqjDs:hover .NavBarActivityButton-activityIcon-3gF_TD{background-color:var(--accent-color-hover);color:var(--label-text-color)!important}[class*=NavBarActivityButton-isHighlighted-]:hover [class*=NavBarActivityButton-activityIcon-]{color:var(--accent-color-hover)}[class*=NavBarActivityButton-isHighlighted-] [class*=NavBarActivityButton-label-]{color:rgb(var(--accent-color))}[class*=NavBarActivityButton-isHighlighted-]:hover [class*=NavBarActivityButton-label-]{color:var(--accent-color-hover)}[class*=Badge-primary-]{background-color:rgb(var(--accent-color));color:var(--label-text-color)}[class*=DisclosureArrow-default-]{border-color:rgb(var(--accent-color))}a:hover [class*=DisclosureArrow-disclosureArrow-],button:hover [class*=DisclosureArrow-disclosureArrow-]{border-color:var(--accent-color-hover)}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:rgb(var(--accent-color))}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{background-color:rgb(var(--accent-color),.03)}.btn-gray:focus,.btn-gray:hover{color:var(--accent-color-hover)}[class*=MultiSelectPageHeader-selectedTitle-],[class*=PageHeaderMultiselectActions-container-],[class*=PageHeaderMultiselectActions-count-],[class*=PageHeaderTabButton-isSelected-],[class*=PageHeaderTabDropdown-isSelected-],[class*=PageHeaderTitle-detail-],[class*=PivotTab-selectedButton-]{color:rgb(var(--accent-color))!important;border-color:rgb(var(--accent-color))}[class*=PivotTab-selectedButton-]:after{background-color:rgb(var(--accent-color))}[class*=PivotTab-selectedButton-]:hover:after{background-color:var(--link-color-hover)}[class*=MetadataPosterCard-legacyUnwatchedEpisodesBadge-],[class*=MetadataPosterCard-legacyUnwatchedTag-],[class*=MetadataPosterCardOverlay-unplayedBadge-],[class*=MetadataPosterCardOverlay-versionBadge-]{background-color:var(--plex-poster-unwatched)}[class*=MetadataPosterCardFace-]:hover,[class*=PosterCardLink-hoveredLink-]{box-shadow:0 0 0 1px rgb(var(--accent-color)),0 0 4px rgb(0 0 0 / 30%)}[class*=MultiSelectPageHeader-multiSelectPageHeader-]{box-shadow:0 2px 0 0 rgb(var(--accent-color))}[class*=MetadataPosterCard-hoveredSelectedLink-],[class*=MetadataPosterCard-selectedLink-],[class*=MetadataPosterCardFace-isSelected-]{box-shadow:0 0 0 2px rgb(var(--accent-color)),0 0 4px rgb(0 0 0 / 30%)}[class*=SelectButton-isSelected-] [class*=SelectButton-selectCircle-]{border-color:rgb(var(--accent-color));background-color:rgb(var(--accent-color));box-shadow:0 0 4px rgb(0 0 0 / 60%);color:rgba(0,0,0,.75);transform:scale(1.4)}[class*=SelectButton-selectButton-].isActive [class*=SelectButton-selectCircle-]{background:rgb(var(--accent-color-hover))}[class*=PlayButton-playButton-]:hover [class*=PlayButton-playCircle-],[class*=PlayPauseOverlay-playCircle-]{border-color:rgb(var(--accent-color));background-color:rgb(var(--accent-color));color:#1f2326}[class*=MetadataPosterCardProgressBar-bar-],[class*=PosterCardOverlayProgress-progressBar-],[class*=SeekBar-seekBarFill-],[class*=SessionTile-playProgressPercent-],[class*=VolumeSlider-fill-]{background-color:rgb(var(--accent-color))}[class*=SeekBar-seekBarBuffer-],[class*=SessionTile-transcodeProgressPercent-]{background-color:rgba(var(--accent-color),.3)}[class*=SessionTileDetails-playerContainer-]{background-color:rgba(var(--accent-color),.2)}[class*=SessionTileDetails-videoStreamInformation-]{background-color:rgba(var(--accent-color),.15)}[class*=SessionTileDetails-audioStreamInformation-]{background-color:rgba(var(--accent-color),.1)}[class*=SessionTileDetails-subtitlesStreamInformation-]{background-color:rgba(var(--accent-color),.05)}[class*=TopUsersList-container-][class*=ServerDashboardSectionContent-container-]>div>div>div>div:nth-child(3){background-color:rgba(var(--accent-color),.2)!important}[class*=TopUsersList-container-][class*=ServerDashboardSectionContent-container-]>div>div>div>div:nth-child(4){background-color:rgba(var(--accent-color),.15)!important}[class*=TopUsersList-container-][class*=ServerDashboardSectionContent-container-]>div>div>div>div:nth-child(5){background-color:rgba(var(--accent-color),.1)!important}[class*=TopUsersList-container-][class*=ServerDashboardSectionContent-container-]>div>div>div>div:nth-child(6){background-color:rgba(var(--accent-color),.05)!important}[class*=TopUsersCell-playHistoryLink-]{background-color:rgb(var(--accent-color));color:#fff}[class*=TopPlayedColumnHeader-emptyTitleBackground-]{background-color:rgba(var(--accent-color),.3)}[class*=IconButton-isActive-],[class*=SelectedMenuItem-isSelected-],[class*=SelectedMenuItem-isSelected-] [class*=SelectedMenuItem-selectedIcon-]{color:rgb(var(--accent-color))}[class*=IconButton-isActive-]:hover{color:rgb(var(--accent-color-hover))}[class*=Spinner-spinner-]{border-color:rgb(var(--accent-color)) transparent transparent rgb(var(--accent-color));border-top-color:rgb(var(--accent-color))!important;border-left-color:rgb(var(--accent-color))!important}[class*=CircularProgressBar-circularProgressBar-]{stroke-width:2;stroke:rgb(var(--accent-color));stroke-dashoffset:0}.loading{border-color:rgb(var(--accent-color)) transparent transparent rgb(var(--accent-color))}.media-poster-container.selected .media-poster,.media-poster-container:hover .media-poster{-webkit-box-shadow:0 0 4px rgb(0 0 0 / 30%),inset 0 0 0 3px rgb(var(--accent-color));box-shadow:0 0 4px rgb(0 0 0 / 30%),inset 0 0 0 3px rgb(var(--accent-color))}.media-poster-container.selected .media-poster:before{border-color:rgb(var(--accent-color)) rgb(var(--accent-color)) transparent transparent}.media-poster-container.selected .media-poster:after{color:var(--label-text-color)}[class*=NavBarActivityMenuStatusItem-statusButtonIndicator-]{color:rgb(var(--accent-color))}[class*=SelectButton-selectedCircle-]{border-color:rgb(var(--accent-color));background-color:rgb(var(--accent-color))}[class*=ModalContent-modalContent-]{background:var(--modal-bg-color);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover}.modal-header{padding:15px 20px;background:var(--modal-header-color);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover;border-bottom:1px solid rgba(255,255,255,.05)}.modal-content{position:relative;background:var(--modal-bg-color);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:3px;-webkit-box-shadow:0 3px 9px rgb(0 0 0 / 50%);box-shadow:0 3px 9px rgb(0 0 0 / 50%);background-clip:padding-box;outline:0}.modal-footer{padding:15px 20px;margin-top:0;background:var(--modal-footer-color);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover;border-top:1px solid rgba(255,255,255,.05)}.modal-body-with-panes .modal-nav-pane{background-image:none;background:rgba(0,0,0,.25)}.files ul li,.well{color:var(--text);background-color:rgb(255 255 255 / 10%);border:1px solid transparent;-webkit-box-shadow:inset 0 1px 1px rgb(0 0 0 / 5%);box-shadow:inset 0 1px 1px rgb(0 0 0 / 5%)}.edit-section-modal .wizard-blocks-group>.wizard-block.selectable:hover{color:var(--text-hover);background-color:rgba(255,255,255,.05)}.edit-section-modal .wizard-blocks-group>.wizard-block.selectable{color:var(--text)}.striped-list-item>.striped-list-inner-item>.selected,.striped-list-item>a.selected{border-left:3px solid rgb(var(--accent-color))}.modal-header>h4>.modal-icon{color:var(--text-hover)}.btn-primary{border-color:var(--button-color);color:var(--button-text);background-color:var(--button-color);-webkit-transition:background-color .1s;transition:background-color .1s}.btn-primary:focus,.btn-primary:hover{color:var(--button-text-hover);background-color:var(--button-color-hover)}[class*=Button-primary].isDisabled{background:var(--button-color)}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:var(--button-color)}.btn-gray.selected{color:rgb(var(--accent-color))}.btn-gray{color:var(--text)}.edit-lock-addon.locked{color:var(--button-text-hover);background-color:var(--button-color);border-color:var(--button-color)}.edit-lock-addon{color:var(--button-color-hover);background-color:rgba(0,0,0,.5);border-color:transparent;-webkit-box-shadow:0 0 2px rgb(0 0 0 / 30%),inset -2px 2px 2px rgb(0 0 0 / 10%);box-shadow:0 0 2px rgb(0 0 0 / 30%),inset -2px 2px 2px rgb(0 0 0 / 10%)}.edit-section-modal .wizard-blocks-group>.wizard-block.selected,.edit-section-modal .wizard-blocks-group>.wizard-block.selected:hover{color:rgb(var(--accent-color))}.edit-section-modal .wizard-blocks-group>.wizard-block{color:var(--text)}.selectize-control.multi .selectize-input>div,[class*=Button-primary-]{background-color:var(--button-color);color:var(--button-text)}.selectize-control.multi .selectize-input>div.active,[class*=Button-primary-]:hover{background-color:var(--button-color-hover);color:var(--button-text-hover)}.selectize-dropdown,.selectize-dropdown.form-control,[class*=Menu-menu-]{background:var(--drop-down-menu-bg);background-repeat:repeat,no-repeat;background-attachment:fixed,fixed;background-position:center center,center center;background-size:auto,cover;-webkit-background-size:auto,cover;-moz-background-size:auto,cover;-o-background-size:auto,cover}[class*=ServerMenuItem-selectedIcon-],[class*=ServerMenuItem-selectedServerMenuItem-]{color:rgb(var(--accent-color))}[class*=Tooltip-tooltip-]{background-color:var(--button-color);color:var(--button-text)}[class*=Tooltip-tooltipBottomArrow-]:after{border-top-color:var(--button-color)}[class*=Tooltip-tooltipTopArrow-]:after{border-bottom-color:var(--button-color)}[class*=Tooltip-tooltipRightArrow-]:after{border-left-color:var(--button-color)}[class*=Tooltip-tooltipLeftArrow-]:after{border-right-color:var(--button-color)}[class*=ServerDashboardPageSection-section-],[class*=SettingsFormSection-sectionWrapper-],hr{border-top:2px solid rgb(255 255 255 / 30%)}[class*=ClaimedServer-container-],[class*=SettingsFormSection-sectionWrapper-]:last-of-type{border-bottom:2px solid rgb(255 255 255 / 30%)}.alerts-container .page-count{margin-right:15px;font-size:14px;color:var(--text);vertical-align:top}.filter-bar .dropdown.open>a{color:rgb(var(--accent-color))}[class*=TableHeaderTitle-tableHeaderTitle-]{color:var(--text-hover)} diff --git a/docker-mods/deluge/root/etc/cont-init.d/98-themepark b/docker-mods/deluge/root/etc/cont-init.d/98-themepark index 408c8dcb..fdfcd212 100644 --- a/docker-mods/deluge/root/etc/cont-init.d/98-themepark +++ b/docker-mods/deluge/root/etc/cont-init.d/98-themepark @@ -1,39 +1,39 @@ -#!/usr/bin/with-contenv bash - -echo '---------------------------' -echo '| Deluge theme.park Mod |' -echo '---------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /usr/lib/python3/dist-packages/deluge/ui/web/index.html; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /usr/lib/python3/dist-packages/deluge/ui/web/index.html - sed -i "s/<\/head>/<\/head> /g" /usr/lib/python3/dist-packages/deluge/ui/web/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " +#!/usr/bin/with-contenv bash + +echo '---------------------------' +echo '| Deluge theme.park Mod |' +echo '---------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" /usr/lib/python3/dist-packages/deluge/ui/web/index.html; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" /usr/lib/python3/dist-packages/deluge/ui/web/index.html + sed -i "s/<\/head>/<\/head> /g" /usr/lib/python3/dist-packages/deluge/ui/web/index.html + printf 'Stylesheet set to %s\n' "${TP_THEME} + " fi \ No newline at end of file diff --git a/docker-mods/emby/root/etc/cont-init.d/98-themepark b/docker-mods/emby/root/etc/cont-init.d/98-themepark index 78846bff..5063f222 100644 --- a/docker-mods/emby/root/etc/cont-init.d/98-themepark +++ b/docker-mods/emby/root/etc/cont-init.d/98-themepark @@ -1,39 +1,39 @@ -#!/usr/bin/with-contenv bash - -echo '-------------------------' -echo '| Emby theme.park Mod |' -echo '-------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /app/emby/dashboard-ui/index.html; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/body>/<\/body> /g" /app/emby/dashboard-ui/index.html - sed -i "s/<\/body>/<\/body> /g" /app/emby/dashboard-ui/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " -fi +#!/usr/bin/with-contenv bash + +echo '-------------------------' +echo '| Emby theme.park Mod |' +echo '-------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" /app/emby/dashboard-ui/index.html; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/body>/<\/body> /g" /app/emby/dashboard-ui/index.html + sed -i "s/<\/body>/<\/body> /g" /app/emby/dashboard-ui/index.html + printf 'Stylesheet set to %s\n' "${TP_THEME} + " +fi diff --git a/docker-mods/jackett/root/etc/cont-init.d/98-themepark b/docker-mods/jackett/root/etc/cont-init.d/98-themepark index aa3fdd2c..707cf4a0 100644 --- a/docker-mods/jackett/root/etc/cont-init.d/98-themepark +++ b/docker-mods/jackett/root/etc/cont-init.d/98-themepark @@ -1,45 +1,45 @@ -#!/usr/bin/with-contenv bash - -echo '---------------------------' -echo '| Jackett theme.park Mod |' -echo '---------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -APP_FILEPATH='/app/Jackett/Content/index.html' -if [ "${TP_HOTIO}" = true ]; then - echo 'Changing to Hotio file path!' - APP_FILEPATH='/app/Content/index.html' -fi - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" - printf 'Stylesheet set to %s\n' "${TP_THEME} - " +#!/usr/bin/with-contenv bash + +echo '---------------------------' +echo '| Jackett theme.park Mod |' +echo '---------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +APP_FILEPATH='/app/Jackett/Content/index.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/Content/index.html' +fi + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + printf 'Stylesheet set to %s\n' "${TP_THEME} + " fi \ No newline at end of file diff --git a/docker-mods/jellyfin/root/etc/cont-init.d/98-themepark b/docker-mods/jellyfin/root/etc/cont-init.d/98-themepark index a68eb848..f8653e22 100644 --- a/docker-mods/jellyfin/root/etc/cont-init.d/98-themepark +++ b/docker-mods/jellyfin/root/etc/cont-init.d/98-themepark @@ -1,39 +1,39 @@ -#!/usr/bin/with-contenv bash - -echo '-----------------------------' -echo '| Jellyfin theme.park Mod |' -echo '-----------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /usr/share/jellyfin/web/index.html; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/body>/<\/body> /g" /usr/share/jellyfin/web/index.html - sed -i "s/<\/body>/<\/body> /g" /usr/share/jellyfin/web/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " +#!/usr/bin/with-contenv bash + +echo '-----------------------------' +echo '| Jellyfin theme.park Mod |' +echo '-----------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" /usr/share/jellyfin/web/index.html; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/body>/<\/body> /g" /usr/share/jellyfin/web/index.html + sed -i "s/<\/body>/<\/body> /g" /usr/share/jellyfin/web/index.html + printf 'Stylesheet set to %s\n' "${TP_THEME} + " fi \ No newline at end of file diff --git a/docker-mods/lazylibrarian/root/etc/cont-init.d/98-themepark b/docker-mods/lazylibrarian/root/etc/cont-init.d/98-themepark index d5a37e4f..5270d780 100644 --- a/docker-mods/lazylibrarian/root/etc/cont-init.d/98-themepark +++ b/docker-mods/lazylibrarian/root/etc/cont-init.d/98-themepark @@ -1,39 +1,39 @@ -#!/usr/bin/with-contenv bash - -echo '----------------------------------' -echo '| Lazylibrarian theme.park Mod |' -echo '----------------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /app/lazylibrarian/data/interfaces/bookstrap/base.html; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /app/lazylibrarian/data/interfaces/bookstrap/base.html - sed -i "s/<\/head>/<\/head> /g" /app/lazylibrarian/data/interfaces/bookstrap/base.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " +#!/usr/bin/with-contenv bash + +echo '----------------------------------' +echo '| Lazylibrarian theme.park Mod |' +echo '----------------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" /app/lazylibrarian/data/interfaces/bookstrap/base.html; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" /app/lazylibrarian/data/interfaces/bookstrap/base.html + sed -i "s/<\/head>/<\/head> /g" /app/lazylibrarian/data/interfaces/bookstrap/base.html + printf 'Stylesheet set to %s\n' "${TP_THEME} + " fi \ No newline at end of file diff --git a/docker-mods/librespeed/root/etc/cont-init.d/98-themepark b/docker-mods/librespeed/root/etc/cont-init.d/98-themepark index 2beac055..d10b338a 100644 --- a/docker-mods/librespeed/root/etc/cont-init.d/98-themepark +++ b/docker-mods/librespeed/root/etc/cont-init.d/98-themepark @@ -1,39 +1,39 @@ -#!/usr/bin/with-contenv bash - -echo '-------------------------------' -echo '| Librespeed theme.park Mod |' -echo '-------------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /usr/share/webapps/librespeed/index.html; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /usr/share/webapps/librespeed/index.html - sed -i "s/<\/head>/<\/head> /g" /usr/share/webapps/librespeed/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " +#!/usr/bin/with-contenv bash + +echo '-------------------------------' +echo '| Librespeed theme.park Mod |' +echo '-------------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" /usr/share/webapps/librespeed/index.html; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" /usr/share/webapps/librespeed/index.html + sed -i "s/<\/head>/<\/head> /g" /usr/share/webapps/librespeed/index.html + printf 'Stylesheet set to %s\n' "${TP_THEME} + " fi \ No newline at end of file diff --git a/docker-mods/plex/root/etc/cont-init.d/98-themepark b/docker-mods/plex/root/etc/cont-init.d/98-themepark index 3ed7125f..81e36fd8 100644 --- a/docker-mods/plex/root/etc/cont-init.d/98-themepark +++ b/docker-mods/plex/root/etc/cont-init.d/98-themepark @@ -1,50 +1,50 @@ -#!/usr/bin/with-contenv bash - -echo '-------------------------' -echo '| Plex theme.park Mod |' -echo '-------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\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' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}"/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>/<\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html - printf 'Added custom addon: %s\n\n' "${addon}" - done - fi +#!/usr/bin/with-contenv bash + +echo '-------------------------' +echo '| Plex theme.park Mod |' +echo '-------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\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' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}"/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>/<\/head> /g" "${APP_FILEPATH}"/usr/lib/plexmediaserver/Resources/Plug-ins-*/WebClient.bundle/Contents/Resources/index.html + printf 'Added custom addon: %s\n\n' "${addon}" + done + fi fi \ No newline at end of file diff --git a/docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark b/docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark index 8c802c93..48c342bd 100644 --- a/docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark +++ b/docker-mods/qbittorrent/root/etc/cont-init.d/98-themepark @@ -1,117 +1,117 @@ -#!/usr/bin/with-contenv bash - -echo '------------------------------' -echo '| qBittorrent theme.park Mod |' -echo '------------------------------' - -APP_FILEPATH='/config/qBittorrent/qBittorrent.conf' -if [ "${TP_HOTIO}" = true ]; then - echo 'Changing to Hotio file path!' - APP_FILEPATH='/config/config/qBittorrent.conf' -fi - -# Backup config -if [[ ! -f "${APP_FILEPATH}.bak" ]]; then - echo "Creating qBittorrent.conf backup in /config." - cp -p ${APP_FILEPATH} "${APP_FILEPATH}.bak" -fi - -# Restore qBittorrent.conf -if [ "${TP_DISABLE_THEME}" = true ]; then - echo "Restoring backup of qBittorrent.conf" - sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=false/g" "${APP_FILEPATH}"; - exit 0 -fi - -if ! [[ -x "$(command -v svn)" ]]; then -echo '--------------------------' -echo '| Installing svn package |' -echo '--------------------------' - apt-get update && \ - apt-get install -y subversion -fi - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'APP_FILEPATH'=${APP_FILEPATH}\\n\ -'TP_DISABLE_THEME'=${TP_DISABLE_THEME}\\n\ -'TP_HOTIO'=${TP_HOTIO}\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Downloading fresh webui files from source. -if [[ ! -d /themepark ]]; then - echo '---------------------------------------' - echo '| Downloading WebUI files from github |' - echo '---------------------------------------' - printf '\nDownloading qBittorrent webui to "/themepark"..please wait\n' - svn export --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/webui/www /themepark - printf '\nDownload finished\n\n' - printf '\nDownloading qBittorrent webui icons to "/themepark/xxx"..please wait\n' - svn export --force --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/icons /temp - cp -a /temp/. /themepark/public/icons - cp -a /temp/. /themepark/private/icons - rm -rf /temp - printf '\nDownload finished\n\n' -fi - -sed_file(){ - sed -i "s/<\/head>/<\/head> /g" $1 - sed -i "s/<\/head>/<\/head> /g" $1 - 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}" /themepark/public/index.html; then - sed_file /themepark/public/index.html -fi - -if ! grep -q "${TP_DOMAIN}" /themepark/private/index.html; then - find ./themepark/private -type f -iname *.html | while read fname - do - sed_file $fname - done -fi - -if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then - echo '--------------------------------------' - echo '| Adding WebUI\RootFolder=/themepark |' - echo '--------------------------------------' - sed -i -e '$aWebUI\\RootFolder=/themepark' "${APP_FILEPATH}"; -fi - -if ! grep -q "WebUI\\\AlternativeUIEnabled" "${APP_FILEPATH}"; then - echo '------------------------------------------' - echo '| Adding WebUI\AlternativeUIEnabled=true |' - echo '------------------------------------------' - sed -i -e '$aWebUI\\AlternativeUIEnabled=true' "${APP_FILEPATH}"; -fi - -if ! grep -q "WebUI\\\RootFolder=/themepark" "${APP_FILEPATH}" || ! grep -q "WebUI\\\AlternativeUIEnabled=true" "${APP_FILEPATH}"; then - echo '-------------------------------------------------------' - echo '| Updating RootFolder and AlternativeUIEnabled values |' - echo '-------------------------------------------------------' - sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=true/g" "${APP_FILEPATH}"; - sed -i "s/WebUI\\\RootFolder=.*$/WebUI\\\RootFolder=\/themepark/g" "${APP_FILEPATH}"; -fi +#!/usr/bin/with-contenv bash + +echo '------------------------------' +echo '| qBittorrent theme.park Mod |' +echo '------------------------------' + +APP_FILEPATH='/config/qBittorrent/qBittorrent.conf' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/config/config/qBittorrent.conf' +fi + +# Backup config +if [[ ! -f "${APP_FILEPATH}.bak" ]]; then + echo "Creating qBittorrent.conf backup in /config." + cp -p ${APP_FILEPATH} "${APP_FILEPATH}.bak" +fi + +# Restore qBittorrent.conf +if [ "${TP_DISABLE_THEME}" = true ]; then + echo "Restoring backup of qBittorrent.conf" + sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=false/g" "${APP_FILEPATH}"; + exit 0 +fi + +if ! [[ -x "$(command -v svn)" ]]; then +echo '--------------------------' +echo '| Installing svn package |' +echo '--------------------------' + apt-get update && \ + apt-get install -y subversion +fi + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'APP_FILEPATH'=${APP_FILEPATH}\\n\ +'TP_DISABLE_THEME'=${TP_DISABLE_THEME}\\n\ +'TP_HOTIO'=${TP_HOTIO}\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Downloading fresh webui files from source. +if [[ ! -d /themepark ]]; then + echo '---------------------------------------' + echo '| Downloading WebUI files from github |' + echo '---------------------------------------' + printf '\nDownloading qBittorrent webui to "/themepark"..please wait\n' + svn export --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/webui/www /themepark + printf '\nDownload finished\n\n' + printf '\nDownloading qBittorrent webui icons to "/themepark/xxx"..please wait\n' + svn export --force --quiet https://github.com/qbittorrent/qBittorrent/trunk/src/icons /temp + cp -a /temp/. /themepark/public/icons + cp -a /temp/. /themepark/private/icons + rm -rf /temp + printf '\nDownload finished\n\n' +fi + +sed_file(){ + sed -i "s/<\/head>/<\/head> /g" $1 + sed -i "s/<\/head>/<\/head> /g" $1 + 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}" /themepark/public/index.html; then + sed_file /themepark/public/index.html +fi + +if ! grep -q "${TP_DOMAIN}" /themepark/private/index.html; then + find ./themepark/private -type f -iname *.html | while read fname + do + sed_file $fname + done +fi + +if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then + echo '--------------------------------------' + echo '| Adding WebUI\RootFolder=/themepark |' + echo '--------------------------------------' + sed -i -e '$aWebUI\\RootFolder=/themepark' "${APP_FILEPATH}"; +fi + +if ! grep -q "WebUI\\\AlternativeUIEnabled" "${APP_FILEPATH}"; then + echo '------------------------------------------' + echo '| Adding WebUI\AlternativeUIEnabled=true |' + echo '------------------------------------------' + sed -i -e '$aWebUI\\AlternativeUIEnabled=true' "${APP_FILEPATH}"; +fi + +if ! grep -q "WebUI\\\RootFolder=/themepark" "${APP_FILEPATH}" || ! grep -q "WebUI\\\AlternativeUIEnabled=true" "${APP_FILEPATH}"; then + echo '-------------------------------------------------------' + echo '| Updating RootFolder and AlternativeUIEnabled values |' + echo '-------------------------------------------------------' + sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=true/g" "${APP_FILEPATH}"; + sed -i "s/WebUI\\\RootFolder=.*$/WebUI\\\RootFolder=\/themepark/g" "${APP_FILEPATH}"; +fi diff --git a/docker-mods/rutorrent/root/etc/cont-init.d/98-themepark b/docker-mods/rutorrent/root/etc/cont-init.d/98-themepark index df810a1b..0567c07a 100644 --- a/docker-mods/rutorrent/root/etc/cont-init.d/98-themepark +++ b/docker-mods/rutorrent/root/etc/cont-init.d/98-themepark @@ -1,39 +1,39 @@ -#!/usr/bin/with-contenv bash - -echo '------------------------------' -echo '| Rutorrent theme.park Mod |' -echo '------------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /app/rutorrent/index.html; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /app/rutorrent/index.html - sed -i "s/<\/head>/<\/head> /g" /app/rutorrent/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " +#!/usr/bin/with-contenv bash + +echo '------------------------------' +echo '| Rutorrent theme.park Mod |' +echo '------------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" /app/rutorrent/index.html; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" /app/rutorrent/index.html + sed -i "s/<\/head>/<\/head> /g" /app/rutorrent/index.html + printf 'Stylesheet set to %s\n' "${TP_THEME} + " fi \ No newline at end of file diff --git a/docker-mods/sabnzbd/root/etc/cont-init.d/98-themepark b/docker-mods/sabnzbd/root/etc/cont-init.d/98-themepark index 4edee99c..61871d9b 100644 --- a/docker-mods/sabnzbd/root/etc/cont-init.d/98-themepark +++ b/docker-mods/sabnzbd/root/etc/cont-init.d/98-themepark @@ -1,50 +1,50 @@ -#!/usr/bin/with-contenv bash - -echo '----------------------------' -echo '| SABnzbd theme.park Mod |' -echo '----------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -APP_FILEPATH='/app/sabnzbd' -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' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl"; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl" - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/_inc_header_uc.tmpl" - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/login/main.tmpl" - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/wizard/inc_top.tmpl" - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl" - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/_inc_header_uc.tmpl" - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/login/main.tmpl" - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/wizard/inc_top.tmpl" - printf 'Stylesheet set to %s\n' "${TP_THEME}" +#!/usr/bin/with-contenv bash + +echo '----------------------------' +echo '| SABnzbd theme.park Mod |' +echo '----------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +APP_FILEPATH='/app/sabnzbd' +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' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl"; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/_inc_header_uc.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/login/main.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/wizard/inc_top.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Glitter/templates/main.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/_inc_header_uc.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/Config/templates/login/main.tmpl" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}/interfaces/wizard/inc_top.tmpl" + printf 'Stylesheet set to %s\n' "${TP_THEME}" fi \ No newline at end of file diff --git a/docker-mods/synclounge/root/etc/cont-init.d/98-themepark b/docker-mods/synclounge/root/etc/cont-init.d/98-themepark index 6b028e2b..e373ebc0 100644 --- a/docker-mods/synclounge/root/etc/cont-init.d/98-themepark +++ b/docker-mods/synclounge/root/etc/cont-init.d/98-themepark @@ -1,39 +1,39 @@ -#!/usr/bin/with-contenv bash - -echo '-------------------------------' -echo '| Synclounge theme.park Mod |' -echo '-------------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /usr/lib/node_modules/synclounge/dist/index.html; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /usr/lib/node_modules/synclounge/dist/index.html - sed -i "s/<\/head>/<\/head> /g" /usr/lib/node_modules/synclounge/dist/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " +#!/usr/bin/with-contenv bash + +echo '-------------------------------' +echo '| Synclounge theme.park Mod |' +echo '-------------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" /usr/lib/node_modules/synclounge/dist/index.html; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" /usr/lib/node_modules/synclounge/dist/index.html + sed -i "s/<\/head>/<\/head> /g" /usr/lib/node_modules/synclounge/dist/index.html + printf 'Stylesheet set to %s\n' "${TP_THEME} + " fi \ No newline at end of file diff --git a/docker-mods/tautulli/root/etc/cont-init.d/98-themepark b/docker-mods/tautulli/root/etc/cont-init.d/98-themepark index ee292f5e..be378f8e 100644 --- a/docker-mods/tautulli/root/etc/cont-init.d/98-themepark +++ b/docker-mods/tautulli/root/etc/cont-init.d/98-themepark @@ -1,44 +1,44 @@ -#!/usr/bin/with-contenv bash - -echo '-----------------------------' -echo '| Tautulli theme.park Mod |' -echo '-----------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -APP_FILEPATH='/app/tautulli/data/interfaces/default/base.html' -if [ "${TP_HOTIO}" = true ]; then - echo 'Changing to Hotio file path!' - APP_FILEPATH='/app/data/interfaces/default/base.html' -fi - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" - sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" - printf 'Stylesheet set to %s\n' "${TP_THEME}" +#!/usr/bin/with-contenv bash + +echo '-----------------------------' +echo '| Tautulli theme.park Mod |' +echo '-----------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +APP_FILEPATH='/app/tautulli/data/interfaces/default/base.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file path!' + APP_FILEPATH='/app/data/interfaces/default/base.html' +fi + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" "${APP_FILEPATH}"; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + sed -i "s/<\/head>/<\/head> /g" "${APP_FILEPATH}" + printf 'Stylesheet set to %s\n' "${TP_THEME}" fi \ No newline at end of file diff --git a/docker-mods/thelounge/root/etc/cont-init.d/98-themepark b/docker-mods/thelounge/root/etc/cont-init.d/98-themepark index a744626d..aeaf101d 100644 --- a/docker-mods/thelounge/root/etc/cont-init.d/98-themepark +++ b/docker-mods/thelounge/root/etc/cont-init.d/98-themepark @@ -1,39 +1,39 @@ -#!/usr/bin/with-contenv bash - -echo '-------------------------------' -echo '| The Lounge theme.park Mod |' -echo '-------------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /usr/lib/node_modules/thelounge/client/index.html.tpl; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /usr/lib/node_modules/thelounge/client/index.html.tpl - sed -i "s/<\/head>/<\/head> /g" /usr/lib/node_modules/thelounge/client/index.html.tpl - printf 'Stylesheet set to %s\n' "${TP_THEME} - " +#!/usr/bin/with-contenv bash + +echo '-------------------------------' +echo '| The Lounge theme.park Mod |' +echo '-------------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" /usr/lib/node_modules/thelounge/client/index.html.tpl; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" /usr/lib/node_modules/thelounge/client/index.html.tpl + sed -i "s/<\/head>/<\/head> /g" /usr/lib/node_modules/thelounge/client/index.html.tpl + printf 'Stylesheet set to %s\n' "${TP_THEME} + " fi \ No newline at end of file diff --git a/docker-mods/transmission/root/etc/cont-init.d/98-themepark b/docker-mods/transmission/root/etc/cont-init.d/98-themepark index 235808d9..2ec8b98a 100644 --- a/docker-mods/transmission/root/etc/cont-init.d/98-themepark +++ b/docker-mods/transmission/root/etc/cont-init.d/98-themepark @@ -1,39 +1,39 @@ -#!/usr/bin/with-contenv bash - -echo '---------------------------------' -echo '| Transmission theme.park Mod |' -echo '---------------------------------' - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" /usr/share/transmission/web/index.html; then - echo '---------------------------' - echo '| Adding the stylesheet |' - echo '---------------------------' - sed -i "s/<\/head>/<\/head> /g" /usr/share/transmission/web/index.html - sed -i "s/<\/head>/<\/head> /g" /usr/share/transmission/web/index.html - printf 'Stylesheet set to %s\n' "${TP_THEME} - " +#!/usr/bin/with-contenv bash + +echo '---------------------------------' +echo '| Transmission theme.park Mod |' +echo '---------------------------------' + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" /usr/share/transmission/web/index.html; then + echo '---------------------------' + echo '| Adding the stylesheet |' + echo '---------------------------' + sed -i "s/<\/head>/<\/head> /g" /usr/share/transmission/web/index.html + sed -i "s/<\/head>/<\/head> /g" /usr/share/transmission/web/index.html + printf 'Stylesheet set to %s\n' "${TP_THEME} + " fi \ No newline at end of file diff --git a/docker-mods/vuetorrent/root/etc/cont-init.d/98-themepark b/docker-mods/vuetorrent/root/etc/cont-init.d/98-themepark index a2a0a12c..8ca812cd 100644 --- a/docker-mods/vuetorrent/root/etc/cont-init.d/98-themepark +++ b/docker-mods/vuetorrent/root/etc/cont-init.d/98-themepark @@ -1,133 +1,133 @@ -#!/usr/bin/with-contenv bash -APP_FILEPATH='/config/qBittorrent/qBittorrent.conf' -INDEX_FILEPATH='/vuetorrent/public/index.html' -if [ "${TP_HOTIO}" = true ]; then - echo 'Changing to Hotio file paths!' - APP_FILEPATH='/config/config/qBittorrent.conf' - INDEX_FILEPATH='/app/vuetorrent/public/index.html' -fi - -# Backup config -if [[ ! -f "${APP_FILEPATH}.bak" ]]; then - echo "Creating qBittorrent.conf backup in /config." - cp -p ${APP_FILEPATH} "${APP_FILEPATH}.bak" -fi - -# Restore qBittorrent.conf -if [ "${TP_DISABLE_THEME}" = true ]; then - echo "Restoring backup of qBittorrent.conf" - sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=false/g" "${APP_FILEPATH}"; - exit 0 -fi - -# Display variables for troubleshooting -echo -e "Variables set:\\n\ -'TP_DOMAIN'=${TP_DOMAIN}\\n\ -'TP_THEME'=${TP_THEME}\\n" - -# Set default -if [[ -z ${TP_DOMAIN} ]]; then - echo 'No domain set, defaulting to theme-park.dev' - TP_DOMAIN='theme-park.dev' -fi - -case ${TP_DOMAIN} in - *"github.io"*) - echo "Switching to github.io URL style" - TP_DOMAIN="${TP_DOMAIN}\/theme.park" - ;; -esac - -if [[ -z ${TP_THEME} ]]; then - echo 'No theme set, defaulting to organizr-dark' - TP_THEME='organizr-dark' -fi -RELEASE_FILEPATH='/vuetorrent/release.json' -NEEDS_UPDATE=false -CURRENT_RELEASE=$(curl -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | jq -r ".assets[]") - -# =============================================== -install_deps() { - if ! [[ -x "$(command -v jq)" ]]; then - echo '-------------------------' - echo '| Installing jq package |' - echo '-------------------------' - apt-get update && - apt-get install -y jq - fi -} -check_updates() { - if [[ ! -d ./vuetorrent ]]; then - NEEDS_UPDATE=true - elif [[ ! -f $RELEASE_FILEPATH ]]; then - NEEDS_UPDATE=true - else - old_date=$(date -d $(cat "${RELEASE_FILEPATH}" | jq -r ".updated_at") +%s) - new_date=$(date -d $(echo $CURRENT_RELEASE | jq -r ".updated_at") +%s) - if [ $new_date -gt $old_date ]; then - NEEDS_UPDATE=true - fi - fi -} -update_ui() { - printf '\nDownloading qBittorrent webui to "/vuetorrent"..please wait\n' - curl -L $(echo $CURRENT_RELEASE | jq -r ".browser_download_url") --output /tmp/vuetorrent.zip - printf '\nDownload finished\n\n' - if [[ -d /vuetorrent ]]; then - rm -rf /vuetorrent - fi - # mkdir -p /vuetorrent - unzip -q /tmp/vuetorrent.zip -d / - echo $CURRENT_RELEASE >"${RELEASE_FILEPATH}" -} -# =============================================== - -echo '-----------------------------------------' -echo '| qBittorrent vuetorrent theme.park Mod |' -echo '-----------------------------------------' - -if [[ -z ${TP_HOTIO} ]]; then - install_deps - check_updates - - if [ "$NEEDS_UPDATE" = true ]; then - echo '---------------------------------------' - echo '| Downloading WebUI files from github |' - echo '---------------------------------------' - update_ui - else - echo ' WebUI files are up-to-date!' - fi - - if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then - echo '--------------------------------------' - echo '| Adding WebUI\RootFolder=/vuetorrent |' - echo '--------------------------------------' - sed -i -e '$aWebUI\\RootFolder=/vuetorrent' "${APP_FILEPATH}" - fi - - if ! grep -q "WebUI\\\AlternativeUIEnabled" "${APP_FILEPATH}"; then - echo '------------------------------------------' - echo '| Adding WebUI\AlternativeUIEnabled=true |' - echo '------------------------------------------' - sed -i -e '$aWebUI\\AlternativeUIEnabled=true' "${APP_FILEPATH}" - fi - - if ! grep -q "WebUI\\\RootFolder=/vuetorrent" "${APP_FILEPATH}" || ! grep -q "WebUI\\\AlternativeUIEnabled=true" "${APP_FILEPATH}"; then - echo '-------------------------------------------------------' - echo '| Updating RootFolder and AlternativeUIEnabled values |' - echo '-------------------------------------------------------' - sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=true/g" "${APP_FILEPATH}" - sed -i "s/WebUI\\\RootFolder=.*$/WebUI\\\RootFolder=\/vuetorrent/g" "${APP_FILEPATH}" - fi -fi - -# Adding stylesheets -if ! grep -q "${TP_DOMAIN}" "${INDEX_FILEPATH}"; then - echo '---------------------------------------------------------' - echo '| Adding the stylesheet to /vuetorrent/public/index.html |' - echo '---------------------------------------------------------' - sed -i "s/<\/body>/<\/body> /g" "${INDEX_FILEPATH}" - sed -i "s/<\/body>/<\/body> /g" "${INDEX_FILEPATH}" - printf 'Stylesheet set to %s on public index.html\n' "${TP_THEME}" +#!/usr/bin/with-contenv bash +APP_FILEPATH='/config/qBittorrent/qBittorrent.conf' +INDEX_FILEPATH='/vuetorrent/public/index.html' +if [ "${TP_HOTIO}" = true ]; then + echo 'Changing to Hotio file paths!' + APP_FILEPATH='/config/config/qBittorrent.conf' + INDEX_FILEPATH='/app/vuetorrent/public/index.html' +fi + +# Backup config +if [[ ! -f "${APP_FILEPATH}.bak" ]]; then + echo "Creating qBittorrent.conf backup in /config." + cp -p ${APP_FILEPATH} "${APP_FILEPATH}.bak" +fi + +# Restore qBittorrent.conf +if [ "${TP_DISABLE_THEME}" = true ]; then + echo "Restoring backup of qBittorrent.conf" + sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=false/g" "${APP_FILEPATH}"; + exit 0 +fi + +# Display variables for troubleshooting +echo -e "Variables set:\\n\ +'TP_DOMAIN'=${TP_DOMAIN}\\n\ +'TP_THEME'=${TP_THEME}\\n" + +# Set default +if [[ -z ${TP_DOMAIN} ]]; then + echo 'No domain set, defaulting to theme-park.dev' + TP_DOMAIN='theme-park.dev' +fi + +case ${TP_DOMAIN} in + *"github.io"*) + echo "Switching to github.io URL style" + TP_DOMAIN="${TP_DOMAIN}\/theme.park" + ;; +esac + +if [[ -z ${TP_THEME} ]]; then + echo 'No theme set, defaulting to organizr-dark' + TP_THEME='organizr-dark' +fi +RELEASE_FILEPATH='/vuetorrent/release.json' +NEEDS_UPDATE=false +CURRENT_RELEASE=$(curl -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | jq -r ".assets[]") + +# =============================================== +install_deps() { + if ! [[ -x "$(command -v jq)" ]]; then + echo '-------------------------' + echo '| Installing jq package |' + echo '-------------------------' + apt-get update && + apt-get install -y jq + fi +} +check_updates() { + if [[ ! -d ./vuetorrent ]]; then + NEEDS_UPDATE=true + elif [[ ! -f $RELEASE_FILEPATH ]]; then + NEEDS_UPDATE=true + else + old_date=$(date -d $(cat "${RELEASE_FILEPATH}" | jq -r ".updated_at") +%s) + new_date=$(date -d $(echo $CURRENT_RELEASE | jq -r ".updated_at") +%s) + if [ $new_date -gt $old_date ]; then + NEEDS_UPDATE=true + fi + fi +} +update_ui() { + printf '\nDownloading qBittorrent webui to "/vuetorrent"..please wait\n' + curl -L $(echo $CURRENT_RELEASE | jq -r ".browser_download_url") --output /tmp/vuetorrent.zip + printf '\nDownload finished\n\n' + if [[ -d /vuetorrent ]]; then + rm -rf /vuetorrent + fi + # mkdir -p /vuetorrent + unzip -q /tmp/vuetorrent.zip -d / + echo $CURRENT_RELEASE >"${RELEASE_FILEPATH}" +} +# =============================================== + +echo '-----------------------------------------' +echo '| qBittorrent vuetorrent theme.park Mod |' +echo '-----------------------------------------' + +if [[ -z ${TP_HOTIO} ]]; then + install_deps + check_updates + + if [ "$NEEDS_UPDATE" = true ]; then + echo '---------------------------------------' + echo '| Downloading WebUI files from github |' + echo '---------------------------------------' + update_ui + else + echo ' WebUI files are up-to-date!' + fi + + if ! grep -q "WebUI\\\RootFolder" "${APP_FILEPATH}"; then + echo '--------------------------------------' + echo '| Adding WebUI\RootFolder=/vuetorrent |' + echo '--------------------------------------' + sed -i -e '$aWebUI\\RootFolder=/vuetorrent' "${APP_FILEPATH}" + fi + + if ! grep -q "WebUI\\\AlternativeUIEnabled" "${APP_FILEPATH}"; then + echo '------------------------------------------' + echo '| Adding WebUI\AlternativeUIEnabled=true |' + echo '------------------------------------------' + sed -i -e '$aWebUI\\AlternativeUIEnabled=true' "${APP_FILEPATH}" + fi + + if ! grep -q "WebUI\\\RootFolder=/vuetorrent" "${APP_FILEPATH}" || ! grep -q "WebUI\\\AlternativeUIEnabled=true" "${APP_FILEPATH}"; then + echo '-------------------------------------------------------' + echo '| Updating RootFolder and AlternativeUIEnabled values |' + echo '-------------------------------------------------------' + sed -i "s/WebUI\\\AlternativeUIEnabled=.*$/WebUI\\\AlternativeUIEnabled=true/g" "${APP_FILEPATH}" + sed -i "s/WebUI\\\RootFolder=.*$/WebUI\\\RootFolder=\/vuetorrent/g" "${APP_FILEPATH}" + fi +fi + +# Adding stylesheets +if ! grep -q "${TP_DOMAIN}" "${INDEX_FILEPATH}"; then + echo '---------------------------------------------------------' + echo '| Adding the stylesheet to /vuetorrent/public/index.html |' + echo '---------------------------------------------------------' + sed -i "s/<\/body>/<\/body> /g" "${INDEX_FILEPATH}" + sed -i "s/<\/body>/<\/body> /g" "${INDEX_FILEPATH}" + printf 'Stylesheet set to %s on public index.html\n' "${TP_THEME}" fi \ No newline at end of file diff --git a/themes.json b/themes.json index 26db3eca..08d3fa0d 100644 --- a/themes.json +++ b/themes.json @@ -1,149 +1,15 @@ { "applications": { - "emby": { - "base_css": "https://theme-park.dev/CSS/themes/emby/emby-base.css?sha=f41f2a0ee94c353ae470912e4af4b599434293c1", - "addons": {} - }, - "readarr": { - "base_css": "https://theme-park.dev/CSS/themes/readarr/readarr-base.css?sha=cbdaeb841bc34531698f30739d6b32f98029cb99", - "addons": { - "readarr-alt-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/readarr/readarr-alt-logo/readarr-darker.css?sha=415a258cc9d1e40bf094f6f20350225c06120825" - ] - }, - "readarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/readarr/readarr-darker/readarr-darker.css?sha=415a258cc9d1e40bf094f6f20350225c06120825" - ] - } - } - }, - "thelounge": { - "base_css": "https://theme-park.dev/CSS/themes/thelounge/thelounge-base.css?sha=efb54f17c4d381e7566f5b44017b8e4eb17754a8", - "addons": {} - }, - "ombi": { - "base_css": "https://theme-park.dev/CSS/themes/ombi/ombi-base.css?sha=c6bd6a4e5989433989a43828da761e1dc829d77a", - "addons": {} - }, - "resilio-sync": { - "base_css": "https://theme-park.dev/CSS/themes/resilio-sync/resilio-sync-base.css?sha=d86f22aef07e66485e297735e5943cfbb21382b1", - "addons": {} - }, - "rutorrent": { - "base_css": "https://theme-park.dev/CSS/themes/rutorrent/rutorrent-base.css?sha=0305f651d4ca24f9aaa13d49689e9540e15d6c2f", - "addons": {} - }, - "dozzle": { - "base_css": "https://theme-park.dev/CSS/themes/dozzle/dozzle-base.css?sha=c109aa34f0087e46b115d5ad0f80cbabca231c95", - "addons": {} - }, - "organizr": { - "base_css": "https://theme-park.dev/CSS/themes/organizr/organizr-base.css?sha=5ddcc53663879d0efa099b392da9519a1c6af381", - "addons": { - "glass": { - "css": [ - "https://theme-park.dev/CSS/addons/organizr/glass/glass-login.css?sha=0200383709509139874da6540d8a7fc07030f172", - "https://theme-park.dev/CSS/addons/organizr/glass/glass-base.css?sha=056e0c4e097462b9d0ef236f40dde99453c332fa" - ] - } - } - }, - "bazarr": { - "base_css": "https://theme-park.dev/CSS/themes/bazarr/bazarr-base.css?sha=b5b5ad3a8ed18b2fa6c0cea8fc46d6dd75d8bed9", - "addons": { - "bazarr-4k-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/bazarr/bazarr-4k-logo/bazarr-darker.css?sha=29ece53bbee1995e502f54eda3bfb166448918bd" - ] - }, - "bazarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/bazarr/bazarr-darker/bazarr-darker.css?sha=29ece53bbee1995e502f54eda3bfb166448918bd" - ] - } - } - }, - "pihole": { - "base_css": "https://theme-park.dev/CSS/themes/pihole/pihole-base.css?sha=1d5290da2a5cf98fe5b63da558336036883775f7", - "addons": {} - }, - "netdata": { - "base_css": "https://theme-park.dev/CSS/themes/netdata/netdata-base.css?sha=1946f5e6b338abda98a3617632f3f7bd14a8bae4", - "addons": {} - }, - "librespeed": { - "base_css": "https://theme-park.dev/CSS/themes/librespeed/librespeed-base.css?sha=880784b97872cf34ceb2689ec8e3d2534908c4fd", - "addons": {} - }, - "unraid": { - "base_css": "https://theme-park.dev/CSS/themes/unraid/unraid-base.css?sha=3d449282bc91581b13f580bde41fd50958b884af", - "addons": { - "login-page": { - "retro-terminal": { - "css": [ - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/isolation.css?sha=0417009581d1933ada92ba746db761f9496d8774", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/hallway3.css?sha=85719c35385fb0589d5a18a86b6c519cbaf1f220", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/scanner.css?sha=73f97cb8aac3a4f3c0894e404ce7c9ef7b0c17b8", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/hallway4.css?sha=f747496cb1de0be4f39710bb1ee245602d6446a4", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/alien_base.css?sha=7e310e223692a1169d19ad0eec747488ece7ca4e", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/hallway2.css?sha=38ec4a1aa6c275d67c0c1ce35d79ca52027eb545", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/hallway.css?sha=a0724cde5e5afaddb956eba76523dccef9515f91", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/nightmare.css?sha=a75b65cad0455b260b1e6209b23ffc2389615b2a", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/isolation_video.css?sha=7f1f89ab6d60182910b4ecf5b162057742f2b5a0" - ] - }, - "fallout": { - "css": [ - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/isolation.css?sha=0417009581d1933ada92ba746db761f9496d8774", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/hallway3.css?sha=85719c35385fb0589d5a18a86b6c519cbaf1f220", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/scanner.css?sha=73f97cb8aac3a4f3c0894e404ce7c9ef7b0c17b8", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/hallway4.css?sha=f747496cb1de0be4f39710bb1ee245602d6446a4", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/alien_base.css?sha=7e310e223692a1169d19ad0eec747488ece7ca4e", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/hallway2.css?sha=38ec4a1aa6c275d67c0c1ce35d79ca52027eb545", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/hallway.css?sha=a0724cde5e5afaddb956eba76523dccef9515f91", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/nightmare.css?sha=a75b65cad0455b260b1e6209b23ffc2389615b2a", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/isolation_video.css?sha=7f1f89ab6d60182910b4ecf5b162057742f2b5a0" - ] - }, - "alien": { - "css": [ - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/isolation.css?sha=0417009581d1933ada92ba746db761f9496d8774", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway3.css?sha=85719c35385fb0589d5a18a86b6c519cbaf1f220", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/scanner.css?sha=73f97cb8aac3a4f3c0894e404ce7c9ef7b0c17b8", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway4.css?sha=f747496cb1de0be4f39710bb1ee245602d6446a4", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/alien_base.css?sha=7e310e223692a1169d19ad0eec747488ece7ca4e", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway2.css?sha=38ec4a1aa6c275d67c0c1ce35d79ca52027eb545", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway.css?sha=a0724cde5e5afaddb956eba76523dccef9515f91", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/nightmare.css?sha=a75b65cad0455b260b1e6209b23ffc2389615b2a", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/isolation_video.css?sha=7f1f89ab6d60182910b4ecf5b162057742f2b5a0" - ] - } - } - } - }, - "qbittorrent": { - "base_css": "https://theme-park.dev/CSS/themes/qbittorrent/qbittorrent-base.css?sha=5b7b5aa50c4474d74128694512a38a8aa054c610", - "addons": {} - }, - "logarr": { - "base_css": "https://theme-park.dev/CSS/themes/logarr/logarr-base.css?sha=8adf9708cc47be777c3d83754c2a9c0866800e26", - "addons": {} - }, "moviematch": { "base_css": "https://theme-park.dev/CSS/themes/moviematch/moviematch-base.css?sha=ce16cf06ce7007810a4077316303abbb790c3c55", "addons": {} }, - "sabnzbd": { - "base_css": "https://theme-park.dev/CSS/themes/sabnzbd/sabnzbd-base.css?sha=82b95d7f894b86088ae69f47ca9253b447d155ef", + "lazylibrarian": { + "base_css": "https://theme-park.dev/CSS/themes/lazylibrarian/lazylibrarian-base.css?sha=addaa5fd6fce97b0fb8729480a3897674aa73f7a", "addons": {} }, - "nzbhydra2": { - "base_css": "https://theme-park.dev/CSS/themes/nzbhydra2/nzbhydra2-base.css?sha=a3129d59147064229dda312179908e6431b32620", + "logarr": { + "base_css": "https://theme-park.dev/CSS/themes/logarr/logarr-base.css?sha=8adf9708cc47be777c3d83754c2a9c0866800e26", "addons": {} }, "uptime-kuma": { @@ -153,146 +19,122 @@ "prowlarr": { "base_css": "https://theme-park.dev/CSS/themes/prowlarr/prowlarr-base.css?sha=bcd4651e697f670e336654dfbe1289a5de29f942", "addons": { - "prowlarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/prowlarr/prowlarr-darker/prowlarr-darker.css?sha=5b36960c9c385ae5f40b22919af1ad93d581afdc" - ] - } + "prowlarr-darker": "https://theme-park.dev/CSS/addons/prowlarr/prowlarr-darker/prowlarr-darker.css?sha=5b36960c9c385ae5f40b22919af1ad93d581afdc" } }, - "portainer": { - "base_css": "https://theme-park.dev/CSS/themes/portainer/portainer-base.css?sha=5e6a400db0677dff26a75f2d4c55136c746e441a", - "addons": {} - }, "webtools": { "base_css": "https://theme-park.dev/CSS/themes/webtools/webtools-base.css?sha=2f9297f922e16d469f4077e0e4f687046bec8168", "addons": {} }, - "nzbget": { - "base_css": "https://theme-park.dev/CSS/themes/nzbget/nzbget-base.css?sha=ad3517abd49ab7313d754a77f2a61162f2872bf7", - "addons": {} - }, - "gaps": { - "base_css": "https://theme-park.dev/CSS/themes/gaps/gaps-base.css?sha=a7bd7773f6be5ba45f092b3a8e2bc3da809359b3", - "addons": {} - }, - "plpp": { - "base_css": "https://theme-park.dev/CSS/themes/plpp/plpp-base.css?sha=eb81cc7a36197d253ac833b9c544a87ff7e50baf", - "addons": {} - }, - "gitea": { - "base_css": "https://theme-park.dev/CSS/themes/gitea/gitea-base.css?sha=b333aea4e550afb6ba1532f26d3fa26edd0116d4", - "addons": {} - }, - "filebrowser": { - "base_css": "https://theme-park.dev/CSS/themes/filebrowser/filebrowser-base.css?sha=a4dd3a49bb749bd819e8bdc2a3f202a121626cb0", - "addons": {} - }, - "jackett": { - "base_css": "https://theme-park.dev/CSS/themes/jackett/jackett-base.css?sha=da57858a0806974e652a41ad730d0d153575d75c", - "addons": {} - }, - "adguard": { - "base_css": "https://theme-park.dev/CSS/themes/adguard/adguard-base.css?sha=179fda81ddf0007fe063e4324a3e314de7551c29", - "addons": {} - }, - "lazylibrarian": { - "base_css": "https://theme-park.dev/CSS/themes/lazylibrarian/lazylibrarian-base.css?sha=addaa5fd6fce97b0fb8729480a3897674aa73f7a", - "addons": {} - }, - "jellyfin": { - "base_css": "https://theme-park.dev/CSS/themes/jellyfin/jellyfin-base.css?sha=d2cbca28a9cd542f40dace2cf5eacc58b4b77479", - "addons": {} - }, - "xbackbone": { - "base_css": "https://theme-park.dev/CSS/themes/xbackbone/xbackbone-base.css?sha=bd6ab5680a088afc78747b7e90323daac96986a1", - "addons": {} - }, - "radarr": { - "base_css": "https://theme-park.dev/CSS/themes/radarr/radarr-base.css?sha=93373eb0c5cd67fbe7f601d6c5e0dcc4d37b2b91", - "addons": { - "radarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/radarr/radarr-darker/radarr-4k-logo.css?sha=bedc13f37e392d0b17a4443c88a64ca76dff9b1a" - ] - }, - "radarr-4k-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=bedc13f37e392d0b17a4443c88a64ca76dff9b1a" - ] - } - } - }, - "grafana": { - "base_css": "https://theme-park.dev/CSS/themes/grafana/grafana-base.css?sha=337e80575b9634e3058de8eaf6367816b7827fa5", - "addons": {} - }, - "synclounge": { - "base_css": "https://theme-park.dev/CSS/themes/synclounge/synclounge-base.css?sha=14434e2cb3dfeb726226a5a8c2d2adf81e7bbd43", - "addons": {} - }, - "duplicacy": { - "base_css": "https://theme-park.dev/CSS/themes/duplicacy/duplicacy-base.css?sha=00a671f67fde4f1f50308c283dbb29ff7c67965b", - "addons": {} - }, - "vuetorrent": { - "base_css": "https://theme-park.dev/CSS/themes/vuetorrent/vuetorrent-base.css?sha=15b70559a57ea5f334728b9b11425da26614814b", - "addons": {} - }, - "plex": { - "base_css": "https://theme-park.dev/CSS/themes/plex/plex-base.css?sha=85fa85ffae8cd0e5dd0ce08b4f8a2c5712ba5321", - "addons": { - "plex-alt-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/plex/plex-alt-logo/overseerr-side-menu.css?sha=b14fcec4d4226f766e3f3931b073b4b45ea416ff" - ] - }, - "overseerr-side-menu": { - "css": [ - "https://theme-park.dev/CSS/addons/plex/overseerr-side-menu/overseerr-side-menu.css?sha=b14fcec4d4226f766e3f3931b073b4b45ea416ff" - ] - } - } - }, - "requestrr": { - "base_css": "https://theme-park.dev/CSS/themes/requestrr/requestrr-base.css?sha=06aac76f7132b12eeb8ae6ec0ed38aece480791d", - "addons": {} - }, - "deluge": { - "base_css": "https://theme-park.dev/CSS/themes/deluge/deluge-base.css?sha=89331d30f04a3988ebcb42d8404d26954778afe0", - "addons": {} - }, "bitwarden": { "base_css": "https://theme-park.dev/CSS/themes/bitwarden/bitwarden-base.css?sha=3a40abf5a37026cf993526040ce09e7e27024050", "addons": {} }, - "petio": { - "base_css": "https://theme-park.dev/CSS/themes/petio/petio-base.css?sha=98fe48edde91b9f8714918d9f6f63ea3c148dc49", + "resilio-sync": { + "base_css": "https://theme-park.dev/CSS/themes/resilio-sync/resilio-sync-base.css?sha=d86f22aef07e66485e297735e5943cfbb21382b1", + "addons": {} + }, + "organizr": { + "base_css": "https://theme-park.dev/CSS/themes/organizr/organizr-base.css?sha=5ddcc53663879d0efa099b392da9519a1c6af381", + "addons": { + "glass": { + "css": [ + "https://theme-park.dev/CSS/addons/organizr/glass/glass-base.css?sha=056e0c4e097462b9d0ef236f40dde99453c332fa", + "https://theme-park.dev/CSS/addons/organizr/glass/glass-login.css?sha=0200383709509139874da6540d8a7fc07030f172" + ] + } + } + }, + "deluge": { + "base_css": "https://theme-park.dev/CSS/themes/deluge/deluge-base.css?sha=89331d30f04a3988ebcb42d8404d26954778afe0", "addons": {} }, "flood": { "base_css": "https://theme-park.dev/CSS/themes/flood/flood-base.css?sha=c63f5330ca711d9769f51ce7259673f6a81f4d28", "addons": {} }, - "transmission": { - "base_css": "https://theme-park.dev/CSS/themes/transmission/transmission-base.css?sha=988de2341b35e9830e0c32e3633b37a89b63d538", + "rutorrent": { + "base_css": "https://theme-park.dev/CSS/themes/rutorrent/rutorrent-base.css?sha=0305f651d4ca24f9aaa13d49689e9540e15d6c2f", "addons": {} }, "sonarr": { "base_css": "https://theme-park.dev/CSS/themes/sonarr/sonarr-base.css?sha=68c17914289e7ec4036fe94a40dbaea648c61a32", "addons": { - "sonarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/sonarr/sonarr-darker/sonarr-4k-logo.css?sha=0f0f47f170531ab1020c6211f4610e9f96c19395" - ] - }, - "sonarr-4k-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/sonarr/sonarr-4k-logo/sonarr-4k-logo.css?sha=0f0f47f170531ab1020c6211f4610e9f96c19395" - ] + "sonarr-darker": "https://theme-park.dev/CSS/addons/sonarr/sonarr-darker/sonarr-darker.css?sha=b1eb1ff0827684361ad596fb49baa6362cc23036", + "sonarr-4k-logo": "https://theme-park.dev/CSS/addons/sonarr/sonarr-4k-logo/sonarr-4k-logo.css?sha=0f0f47f170531ab1020c6211f4610e9f96c19395" + } + }, + "ombi": { + "base_css": "https://theme-park.dev/CSS/themes/ombi/ombi-base.css?sha=c6bd6a4e5989433989a43828da761e1dc829d77a", + "addons": {} + }, + "netdata": { + "base_css": "https://theme-park.dev/CSS/themes/netdata/netdata-base.css?sha=1946f5e6b338abda98a3617632f3f7bd14a8bae4", + "addons": {} + }, + "vuetorrent": { + "base_css": "https://theme-park.dev/CSS/themes/vuetorrent/vuetorrent-base.css?sha=15b70559a57ea5f334728b9b11425da26614814b", + "addons": {} + }, + "unraid": { + "base_css": "https://theme-park.dev/CSS/themes/unraid/unraid-base.css?sha=3d449282bc91581b13f580bde41fd50958b884af", + "addons": { + "login-page": { + "fallout": { + "css": [ + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/dirty_terminal2.css?sha=09ab0765e89df3081abfa3229d725884cc44f7ef", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/dirty_terminal.css?sha=1f318dd614edb2a2cd3f5fb1dbdb04cd412af9d1", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/fallout_video.css?sha=ad5db68decc504f5b920f19d65481322c97b4db3", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/terminal.css?sha=8d924fbaba139bef37c1156c3c5b32ba959bb3a5", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/fallout_base.css?sha=3a79171bff7252461e4ff5e76b507640bffcf5e1", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/terminal2.css?sha=0cdbad30781b4e56b3ed7db820a7c1e8d9da2627" + ] + }, + "retro-terminal": { + "css": [ + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/white.css?sha=7616e7d06646356a0d99b3c7cd7db8fbd5cfe94d", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/retro-terminal-base.css?sha=860f370f1b8e25b26ab9bc45a73632de58c799ce", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/red.css?sha=7d250ac647db0ade37a389f59a295213d6d286b1", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/green.css?sha=5fa51725eccdeb604387b5d9078325c7419b06ec", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/amber.css?sha=ce3d2ec61e4d228dbf369eb9892fe4ba59814303", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/blue.css?sha=11ba12dd12e7079ac6c48805db70dec0a8fe751e" + ] + }, + "alien": { + "css": [ + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/alien_base.css?sha=7e310e223692a1169d19ad0eec747488ece7ca4e", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway4.css?sha=f747496cb1de0be4f39710bb1ee245602d6446a4", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/nightmare.css?sha=a75b65cad0455b260b1e6209b23ffc2389615b2a", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway.css?sha=a0724cde5e5afaddb956eba76523dccef9515f91", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway3.css?sha=85719c35385fb0589d5a18a86b6c519cbaf1f220", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/isolation_video.css?sha=7f1f89ab6d60182910b4ecf5b162057742f2b5a0", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway2.css?sha=38ec4a1aa6c275d67c0c1ce35d79ca52027eb545", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/isolation.css?sha=0417009581d1933ada92ba746db761f9496d8774", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/scanner.css?sha=73f97cb8aac3a4f3c0894e404ce7c9ef7b0c17b8" + ] + } } } }, + "xbackbone": { + "base_css": "https://theme-park.dev/CSS/themes/xbackbone/xbackbone-base.css?sha=bd6ab5680a088afc78747b7e90323daac96986a1", + "addons": {} + }, + "duplicacy": { + "base_css": "https://theme-park.dev/CSS/themes/duplicacy/duplicacy-base.css?sha=00a671f67fde4f1f50308c283dbb29ff7c67965b", + "addons": {} + }, + "petio": { + "base_css": "https://theme-park.dev/CSS/themes/petio/petio-base.css?sha=98fe48edde91b9f8714918d9f6f63ea3c148dc49", + "addons": {} + }, + "gaps": { + "base_css": "https://theme-park.dev/CSS/themes/gaps/gaps-base.css?sha=a7bd7773f6be5ba45f092b3a8e2bc3da809359b3", + "addons": {} + }, "calibreweb": { "base_css": "https://theme-park.dev/CSS/themes/calibreweb/calibreweb-base.css?sha=1a2ed7e841069a1fa84616fb2aa66822a9f322f2", "addons": {} @@ -300,166 +142,234 @@ "lidarr": { "base_css": "https://theme-park.dev/CSS/themes/lidarr/lidarr-base.css?sha=7b465f6ce5761682d5d70b6a3048cf612fb65b03", "addons": { - "lidarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/lidarr/lidarr-darker/lidarr-darker.css?sha=fc479d221c05b5232d720f1c32d9cb1717f7b60b" - ] - } + "lidarr-darker": "https://theme-park.dev/CSS/addons/lidarr/lidarr-darker/lidarr-darker.css?sha=fc479d221c05b5232d720f1c32d9cb1717f7b60b" } }, + "gitea": { + "base_css": "https://theme-park.dev/CSS/themes/gitea/gitea-base.css?sha=b333aea4e550afb6ba1532f26d3fa26edd0116d4", + "addons": {} + }, + "plpp": { + "base_css": "https://theme-park.dev/CSS/themes/plpp/plpp-base.css?sha=eb81cc7a36197d253ac833b9c544a87ff7e50baf", + "addons": {} + }, + "librespeed": { + "base_css": "https://theme-park.dev/CSS/themes/librespeed/librespeed-base.css?sha=880784b97872cf34ceb2689ec8e3d2534908c4fd", + "addons": {} + }, + "nzbget": { + "base_css": "https://theme-park.dev/CSS/themes/nzbget/nzbget-base.css?sha=ad3517abd49ab7313d754a77f2a61162f2872bf7", + "addons": {} + }, "tautulli": { "base_css": "https://theme-park.dev/CSS/themes/tautulli/tautulli-base.css?sha=00901e8d86a6bc1e3f5348bba0167af2c412603d", "addons": {} }, + "grafana": { + "base_css": "https://theme-park.dev/CSS/themes/grafana/grafana-base.css?sha=337e80575b9634e3058de8eaf6367816b7827fa5", + "addons": {} + }, + "filebrowser": { + "base_css": "https://theme-park.dev/CSS/themes/filebrowser/filebrowser-base.css?sha=a4dd3a49bb749bd819e8bdc2a3f202a121626cb0", + "addons": {} + }, + "transmission": { + "base_css": "https://theme-park.dev/CSS/themes/transmission/transmission-base.css?sha=988de2341b35e9830e0c32e3633b37a89b63d538", + "addons": {} + }, + "thelounge": { + "base_css": "https://theme-park.dev/CSS/themes/thelounge/thelounge-base.css?sha=efb54f17c4d381e7566f5b44017b8e4eb17754a8", + "addons": {} + }, + "emby": { + "base_css": "https://theme-park.dev/CSS/themes/emby/emby-base.css?sha=f41f2a0ee94c353ae470912e4af4b599434293c1", + "addons": {} + }, + "bazarr": { + "base_css": "https://theme-park.dev/CSS/themes/bazarr/bazarr-base.css?sha=b5b5ad3a8ed18b2fa6c0cea8fc46d6dd75d8bed9", + "addons": { + "bazarr-darker": "https://theme-park.dev/CSS/addons/bazarr/bazarr-darker/bazarr-darker.css?sha=29ece53bbee1995e502f54eda3bfb166448918bd", + "bazarr-4k-logo": "https://theme-park.dev/CSS/addons/bazarr/bazarr-4k-logo/bazarr-4k-logo.css?sha=81c8e54d0ba80c741f0f3168892c5fd8111e9bbb" + } + }, + "plex": { + "base_css": "https://theme-park.dev/CSS/themes/plex/plex-base.css?sha=54866b7b853135e6762653b60f93f519289345d2", + "addons": { + "overseerr-side-menu": "https://theme-park.dev/CSS/addons/plex/overseerr-side-menu/overseerr-side-menu.css?sha=b14fcec4d4226f766e3f3931b073b4b45ea416ff", + "plex-alt-logo": "https://theme-park.dev/CSS/addons/plex/plex-alt-logo/plex-alt-logo.css?sha=3e9bc7c76e836f8eb335431058241fe49906aa8f" + } + }, + "monitorr": { + "base_css": "https://theme-park.dev/CSS/themes/monitorr/monitorr-base.css?sha=04fe97f2fb536ded9c23dbc52813f74f9ed4e5b2", + "addons": {} + }, + "jackett": { + "base_css": "https://theme-park.dev/CSS/themes/jackett/jackett-base.css?sha=da57858a0806974e652a41ad730d0d153575d75c", + "addons": {} + }, + "guacamole": { + "base_css": "https://theme-park.dev/CSS/themes/guacamole/guacamole-base.css?sha=dbcdb8516d0c245edc0a8dff22e763ae90f0b16c", + "addons": {} + }, + "pihole": { + "base_css": "https://theme-park.dev/CSS/themes/pihole/pihole-base.css?sha=1d5290da2a5cf98fe5b63da558336036883775f7", + "addons": {} + }, + "readarr": { + "base_css": "https://theme-park.dev/CSS/themes/readarr/readarr-base.css?sha=cbdaeb841bc34531698f30739d6b32f98029cb99", + "addons": { + "readarr-alt-logo": "https://theme-park.dev/CSS/addons/readarr/readarr-alt-logo/readarr-alt-logo.css?sha=ca63018567194349619240a1257fcccd52fa4827", + "readarr-darker": "https://theme-park.dev/CSS/addons/readarr/readarr-darker/readarr-darker.css?sha=415a258cc9d1e40bf094f6f20350225c06120825" + } + }, + "requestrr": { + "base_css": "https://theme-park.dev/CSS/themes/requestrr/requestrr-base.css?sha=06aac76f7132b12eeb8ae6ec0ed38aece480791d", + "addons": {} + }, + "dozzle": { + "base_css": "https://theme-park.dev/CSS/themes/dozzle/dozzle-base.css?sha=c109aa34f0087e46b115d5ad0f80cbabca231c95", + "addons": {} + }, + "jellyfin": { + "base_css": "https://theme-park.dev/CSS/themes/jellyfin/jellyfin-base.css?sha=d2cbca28a9cd542f40dace2cf5eacc58b4b77479", + "addons": {} + }, + "portainer": { + "base_css": "https://theme-park.dev/CSS/themes/portainer/portainer-base.css?sha=5e6a400db0677dff26a75f2d4c55136c746e441a", + "addons": {} + }, + "qbittorrent": { + "base_css": "https://theme-park.dev/CSS/themes/qbittorrent/qbittorrent-base.css?sha=5b7b5aa50c4474d74128694512a38a8aa054c610", + "addons": {} + }, + "sabnzbd": { + "base_css": "https://theme-park.dev/CSS/themes/sabnzbd/sabnzbd-base.css?sha=82b95d7f894b86088ae69f47ca9253b447d155ef", + "addons": {} + }, + "adguard": { + "base_css": "https://theme-park.dev/CSS/themes/adguard/adguard-base.css?sha=179fda81ddf0007fe063e4324a3e314de7551c29", + "addons": {} + }, + "nzbhydra2": { + "base_css": "https://theme-park.dev/CSS/themes/nzbhydra2/nzbhydra2-base.css?sha=a3129d59147064229dda312179908e6431b32620", + "addons": {} + }, "kitana": { "base_css": "https://theme-park.dev/CSS/themes/kitana/kitana-base.css?sha=08b2376a93e373c37bbc77c974f8881bad762a9d", "addons": {} }, - "monitorr": { - "base_css": "https://theme-park.dev/CSS/themes/monitorr/monitorr-base.css?sha=04fe97f2fb536ded9c23dbc52813f74f9ed4e5b2", + "synclounge": { + "base_css": "https://theme-park.dev/CSS/themes/synclounge/synclounge-base.css?sha=14434e2cb3dfeb726226a5a8c2d2adf81e7bbd43", "addons": {} }, - "guacamole": { - "base_css": "https://theme-park.dev/CSS/themes/guacamole/guacamole-base.css?sha=dbcdb8516d0c245edc0a8dff22e763ae90f0b16c", - "addons": {} + "radarr": { + "base_css": "https://theme-park.dev/CSS/themes/radarr/radarr-base.css?sha=93373eb0c5cd67fbe7f601d6c5e0dcc4d37b2b91", + "addons": { + "radarr-4k-logo": "https://theme-park.dev/CSS/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=bedc13f37e392d0b17a4443c88a64ca76dff9b1a", + "radarr-darker": "https://theme-park.dev/CSS/addons/radarr/radarr-darker/radarr-darker.css?sha=317432984f97518011463ef62af84b04420e524d" + } } }, "addons": { - "readarr": { - "readarr-alt-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/readarr/readarr-alt-logo/readarr-darker.css?sha=415a258cc9d1e40bf094f6f20350225c06120825" - ] - }, - "readarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/readarr/readarr-darker/readarr-darker.css?sha=415a258cc9d1e40bf094f6f20350225c06120825" - ] - } + "prowlarr": { + "prowlarr-darker": "https://theme-park.dev/CSS/addons/prowlarr/prowlarr-darker/prowlarr-darker.css?sha=5b36960c9c385ae5f40b22919af1ad93d581afdc" }, "organizr": { "glass": { "css": [ - "https://theme-park.dev/CSS/addons/organizr/glass/glass-login.css?sha=0200383709509139874da6540d8a7fc07030f172", - "https://theme-park.dev/CSS/addons/organizr/glass/glass-base.css?sha=056e0c4e097462b9d0ef236f40dde99453c332fa" - ] - } - }, - "bazarr": { - "bazarr-4k-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/bazarr/bazarr-4k-logo/bazarr-darker.css?sha=29ece53bbee1995e502f54eda3bfb166448918bd" - ] - }, - "bazarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/bazarr/bazarr-darker/bazarr-darker.css?sha=29ece53bbee1995e502f54eda3bfb166448918bd" - ] - } - }, - "unraid": { - "login-page": { - "retro-terminal": { - "css": [ - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/isolation.css?sha=0417009581d1933ada92ba746db761f9496d8774", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/hallway3.css?sha=85719c35385fb0589d5a18a86b6c519cbaf1f220", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/scanner.css?sha=73f97cb8aac3a4f3c0894e404ce7c9ef7b0c17b8", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/hallway4.css?sha=f747496cb1de0be4f39710bb1ee245602d6446a4", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/alien_base.css?sha=7e310e223692a1169d19ad0eec747488ece7ca4e", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/hallway2.css?sha=38ec4a1aa6c275d67c0c1ce35d79ca52027eb545", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/hallway.css?sha=a0724cde5e5afaddb956eba76523dccef9515f91", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/nightmare.css?sha=a75b65cad0455b260b1e6209b23ffc2389615b2a", - "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/isolation_video.css?sha=7f1f89ab6d60182910b4ecf5b162057742f2b5a0" - ] - }, - "fallout": { - "css": [ - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/isolation.css?sha=0417009581d1933ada92ba746db761f9496d8774", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/hallway3.css?sha=85719c35385fb0589d5a18a86b6c519cbaf1f220", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/scanner.css?sha=73f97cb8aac3a4f3c0894e404ce7c9ef7b0c17b8", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/hallway4.css?sha=f747496cb1de0be4f39710bb1ee245602d6446a4", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/alien_base.css?sha=7e310e223692a1169d19ad0eec747488ece7ca4e", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/hallway2.css?sha=38ec4a1aa6c275d67c0c1ce35d79ca52027eb545", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/hallway.css?sha=a0724cde5e5afaddb956eba76523dccef9515f91", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/nightmare.css?sha=a75b65cad0455b260b1e6209b23ffc2389615b2a", - "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/isolation_video.css?sha=7f1f89ab6d60182910b4ecf5b162057742f2b5a0" - ] - }, - "alien": { - "css": [ - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/isolation.css?sha=0417009581d1933ada92ba746db761f9496d8774", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway3.css?sha=85719c35385fb0589d5a18a86b6c519cbaf1f220", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/scanner.css?sha=73f97cb8aac3a4f3c0894e404ce7c9ef7b0c17b8", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway4.css?sha=f747496cb1de0be4f39710bb1ee245602d6446a4", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/alien_base.css?sha=7e310e223692a1169d19ad0eec747488ece7ca4e", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway2.css?sha=38ec4a1aa6c275d67c0c1ce35d79ca52027eb545", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway.css?sha=a0724cde5e5afaddb956eba76523dccef9515f91", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/nightmare.css?sha=a75b65cad0455b260b1e6209b23ffc2389615b2a", - "https://theme-park.dev/CSS/addons/unraid/login-page/alien/isolation_video.css?sha=7f1f89ab6d60182910b4ecf5b162057742f2b5a0" - ] - } - } - }, - "prowlarr": { - "prowlarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/prowlarr/prowlarr-darker/prowlarr-darker.css?sha=5b36960c9c385ae5f40b22919af1ad93d581afdc" - ] - } - }, - "radarr": { - "radarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/radarr/radarr-darker/radarr-4k-logo.css?sha=bedc13f37e392d0b17a4443c88a64ca76dff9b1a" - ] - }, - "radarr-4k-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=bedc13f37e392d0b17a4443c88a64ca76dff9b1a" - ] - } - }, - "plex": { - "plex-alt-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/plex/plex-alt-logo/overseerr-side-menu.css?sha=b14fcec4d4226f766e3f3931b073b4b45ea416ff" - ] - }, - "overseerr-side-menu": { - "css": [ - "https://theme-park.dev/CSS/addons/plex/overseerr-side-menu/overseerr-side-menu.css?sha=b14fcec4d4226f766e3f3931b073b4b45ea416ff" + "https://theme-park.dev/CSS/addons/organizr/glass/glass-base.css?sha=056e0c4e097462b9d0ef236f40dde99453c332fa", + "https://theme-park.dev/CSS/addons/organizr/glass/glass-login.css?sha=0200383709509139874da6540d8a7fc07030f172" ] } }, "sonarr": { - "sonarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/sonarr/sonarr-darker/sonarr-4k-logo.css?sha=0f0f47f170531ab1020c6211f4610e9f96c19395" - ] - }, - "sonarr-4k-logo": { - "css": [ - "https://theme-park.dev/CSS/addons/sonarr/sonarr-4k-logo/sonarr-4k-logo.css?sha=0f0f47f170531ab1020c6211f4610e9f96c19395" - ] + "sonarr-darker": "https://theme-park.dev/CSS/addons/sonarr/sonarr-darker/sonarr-darker.css?sha=b1eb1ff0827684361ad596fb49baa6362cc23036", + "sonarr-4k-logo": "https://theme-park.dev/CSS/addons/sonarr/sonarr-4k-logo/sonarr-4k-logo.css?sha=0f0f47f170531ab1020c6211f4610e9f96c19395" + }, + "unraid": { + "login-page": { + "fallout": { + "css": [ + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/dirty_terminal2.css?sha=09ab0765e89df3081abfa3229d725884cc44f7ef", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/dirty_terminal.css?sha=1f318dd614edb2a2cd3f5fb1dbdb04cd412af9d1", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/fallout_video.css?sha=ad5db68decc504f5b920f19d65481322c97b4db3", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/terminal.css?sha=8d924fbaba139bef37c1156c3c5b32ba959bb3a5", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/fallout_base.css?sha=3a79171bff7252461e4ff5e76b507640bffcf5e1", + "https://theme-park.dev/CSS/addons/unraid/login-page/fallout/terminal2.css?sha=0cdbad30781b4e56b3ed7db820a7c1e8d9da2627" + ] + }, + "retro-terminal": { + "css": [ + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/white.css?sha=7616e7d06646356a0d99b3c7cd7db8fbd5cfe94d", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/retro-terminal-base.css?sha=860f370f1b8e25b26ab9bc45a73632de58c799ce", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/red.css?sha=7d250ac647db0ade37a389f59a295213d6d286b1", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/green.css?sha=5fa51725eccdeb604387b5d9078325c7419b06ec", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/amber.css?sha=ce3d2ec61e4d228dbf369eb9892fe4ba59814303", + "https://theme-park.dev/CSS/addons/unraid/login-page/retro-terminal/blue.css?sha=11ba12dd12e7079ac6c48805db70dec0a8fe751e" + ] + }, + "alien": { + "css": [ + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/alien_base.css?sha=7e310e223692a1169d19ad0eec747488ece7ca4e", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway4.css?sha=f747496cb1de0be4f39710bb1ee245602d6446a4", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/nightmare.css?sha=a75b65cad0455b260b1e6209b23ffc2389615b2a", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway.css?sha=a0724cde5e5afaddb956eba76523dccef9515f91", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway3.css?sha=85719c35385fb0589d5a18a86b6c519cbaf1f220", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/isolation_video.css?sha=7f1f89ab6d60182910b4ecf5b162057742f2b5a0", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/hallway2.css?sha=38ec4a1aa6c275d67c0c1ce35d79ca52027eb545", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/isolation.css?sha=0417009581d1933ada92ba746db761f9496d8774", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/custom.css?sha=a2f4b06d3816bf875f861b12d7f07252c2862d82", + "https://theme-park.dev/CSS/addons/unraid/login-page/alien/scanner.css?sha=73f97cb8aac3a4f3c0894e404ce7c9ef7b0c17b8" + ] + } } }, "lidarr": { - "lidarr-darker": { - "css": [ - "https://theme-park.dev/CSS/addons/lidarr/lidarr-darker/lidarr-darker.css?sha=fc479d221c05b5232d720f1c32d9cb1717f7b60b" - ] - } + "lidarr-darker": "https://theme-park.dev/CSS/addons/lidarr/lidarr-darker/lidarr-darker.css?sha=fc479d221c05b5232d720f1c32d9cb1717f7b60b" + }, + "bazarr": { + "bazarr-darker": "https://theme-park.dev/CSS/addons/bazarr/bazarr-darker/bazarr-darker.css?sha=29ece53bbee1995e502f54eda3bfb166448918bd", + "bazarr-4k-logo": "https://theme-park.dev/CSS/addons/bazarr/bazarr-4k-logo/bazarr-4k-logo.css?sha=81c8e54d0ba80c741f0f3168892c5fd8111e9bbb" + }, + "plex": { + "overseerr-side-menu": "https://theme-park.dev/CSS/addons/plex/overseerr-side-menu/overseerr-side-menu.css?sha=b14fcec4d4226f766e3f3931b073b4b45ea416ff", + "plex-alt-logo": "https://theme-park.dev/CSS/addons/plex/plex-alt-logo/plex-alt-logo.css?sha=3e9bc7c76e836f8eb335431058241fe49906aa8f" + }, + "readarr": { + "readarr-alt-logo": "https://theme-park.dev/CSS/addons/readarr/readarr-alt-logo/readarr-alt-logo.css?sha=ca63018567194349619240a1257fcccd52fa4827", + "readarr-darker": "https://theme-park.dev/CSS/addons/readarr/readarr-darker/readarr-darker.css?sha=415a258cc9d1e40bf094f6f20350225c06120825" + }, + "radarr": { + "radarr-4k-logo": "https://theme-park.dev/CSS/addons/radarr/radarr-4k-logo/radarr-4k-logo.css?sha=bedc13f37e392d0b17a4443c88a64ca76dff9b1a", + "radarr-darker": "https://theme-park.dev/CSS/addons/radarr/radarr-darker/radarr-darker.css?sha=317432984f97518011463ef62af84b04420e524d" } }, "themes": { + "Soul": { + "url": "https://theme-park.dev/CSS/variables/soul.css?sha=1ce095e4b03920af4bbd70b6fa8776614b3536db" + }, + "Overseerr": { + "url": "https://theme-park.dev/CSS/variables/overseerr.css?sha=7e3a8e3ca21dd82641113cf53f071a89252c7235" + }, "Dark": { "url": "https://theme-park.dev/CSS/variables/dark.css?sha=dc21605e303d094fed0564a15fb983d81bcd33dd" }, - "Plex": { - "url": "https://theme-park.dev/CSS/variables/plex.css?sha=54a3677e798eb4d7fe331fd0887894b9b19e8978" + "Hotpink": { + "url": "https://theme-park.dev/CSS/variables/hotpink.css?sha=55999afb133b62cdc067c1ce91b6dc9bd9b10102" + }, + "Mind": { + "url": "https://theme-park.dev/CSS/variables/mind.css?sha=7e39faa6f0b23f9be3e920a8edffcf600e5e555c" + }, + "Space-gray": { + "url": "https://theme-park.dev/CSS/variables/space-gray.css?sha=566e5616a8e48be2d0670d3f4d1ce106d2616ea2" + }, + "Hotline": { + "url": "https://theme-park.dev/CSS/variables/hotline.css?sha=e027feaeea0f623144af4c45b61e332a0757f5fb" + }, + "Space": { + "url": "https://theme-park.dev/CSS/variables/space.css?sha=cbd0b8beca2a4afe74d1daf4ade332d3f842ee96" }, "Organizr-dark": { "url": "https://theme-park.dev/CSS/variables/organizr-dark.css?sha=6d9165e0b0208ccabd404bded0e5570c7cf129e1" @@ -467,44 +377,26 @@ "Power": { "url": "https://theme-park.dev/CSS/variables/power.css?sha=d1be419eb6a4ae18102794ea0445f89eb2bd3734" }, - "Hotline": { - "url": "https://theme-park.dev/CSS/variables/hotline.css?sha=e027feaeea0f623144af4c45b61e332a0757f5fb" + "Dracula": { + "url": "https://theme-park.dev/CSS/variables/dracula.css?sha=5abf85508d87243007cf5f4fda34a60340583466" + }, + "Plex": { + "url": "https://theme-park.dev/CSS/variables/plex.css?sha=54a3677e798eb4d7fe331fd0887894b9b19e8978" }, "Aquamarine": { "url": "https://theme-park.dev/CSS/variables/aquamarine.css?sha=5cdf3f13a57669f3732b64a7573580bcaa9ac6fc" }, - "Time": { - "url": "https://theme-park.dev/CSS/variables/time.css?sha=d7dd3e5ff6601ac1325218a24dc0f49944aa9a61" - }, - "Mind": { - "url": "https://theme-park.dev/CSS/variables/mind.css?sha=7e39faa6f0b23f9be3e920a8edffcf600e5e555c" + "Reality": { + "url": "https://theme-park.dev/CSS/variables/reality.css?sha=2a5c00f303bdc8ec33f9c0f250bd03779257e504" }, "Onedark": { "url": "https://theme-park.dev/CSS/variables/onedark.css?sha=cbccbf4366ab59bd2b9253c221b1f093c2e85118" }, - "Overseerr": { - "url": "https://theme-park.dev/CSS/variables/overseerr.css?sha=7e3a8e3ca21dd82641113cf53f071a89252c7235" - }, - "Reality": { - "url": "https://theme-park.dev/CSS/variables/reality.css?sha=2a5c00f303bdc8ec33f9c0f250bd03779257e504" - }, "Hotline-old": { "url": "https://theme-park.dev/CSS/variables/hotline-old.css?sha=73fce8f3f316c64b864e8b0502de0005f3883df4" }, - "Dracula": { - "url": "https://theme-park.dev/CSS/variables/dracula.css?sha=5abf85508d87243007cf5f4fda34a60340583466" - }, - "Space-gray": { - "url": "https://theme-park.dev/CSS/variables/space-gray.css?sha=566e5616a8e48be2d0670d3f4d1ce106d2616ea2" - }, - "Space": { - "url": "https://theme-park.dev/CSS/variables/space.css?sha=cbd0b8beca2a4afe74d1daf4ade332d3f842ee96" - }, - "Soul": { - "url": "https://theme-park.dev/CSS/variables/soul.css?sha=1ce095e4b03920af4bbd70b6fa8776614b3536db" - }, - "Hotpink": { - "url": "https://theme-park.dev/CSS/variables/hotpink.css?sha=55999afb133b62cdc067c1ce91b6dc9bd9b10102" + "Time": { + "url": "https://theme-park.dev/CSS/variables/time.css?sha=d7dd3e5ff6601ac1325218a24dc0f49944aa9a61" } } } \ No newline at end of file diff --git a/themes.py b/themes.py index 9cf279d5..32d4a207 100644 --- a/themes.py +++ b/themes.py @@ -1,96 +1,108 @@ from os import listdir from os.path import isdir, isfile, join -from json import dump,dumps, loads +from json import dump, dumps, loads import subprocess + def get_shas(output): """Returns a dict of CSS files and SHAs""" output_lines = output.splitlines() sha_dict = {} for line in output_lines: - line = line.decode('utf-8').replace("\t","").split(" ") + line = line.decode('utf-8').replace("\t", "").split(" ") sha = line[1] css_file = [file for file in line[2].split("/") if "css" in file][0] sha_dict.update({css_file: sha}) return(sha_dict) + def create_addons_json(): - addon_shas = subprocess.check_output(["git", "ls-files", "-s", "./CSS/addons/*.css"]) + addon_shas = subprocess.check_output( + ["git", "ls-files", "-s", "./CSS/addons/*.css"]) SHAS = get_shas(addon_shas) - ADDONS = {"addons":{}} + ADDONS = {"addons": {}} addon_root = './CSS/addons' - addon_folders = [name for name in listdir(addon_root) if isdir(join(addon_root, name))] + addon_folders = [name for name in listdir( + addon_root) if isdir(join(addon_root, name))] for app in addon_folders: app_addons = [addon for addon in listdir(f"{addon_root}/{app}")] ADDONS["addons"].update({ - app: { - addon: {} for addon in app_addons - } + app: { + addon: {} for addon in app_addons + } }) for addon in app_addons: files = [file for file in listdir( f"{addon_root}/{app}/{addon}") if isfile(join(f"{addon_root}/{app}/{addon}", file))] - ADDONS["addons"].update({ - app: { - addon: { - "css": [f"https://{DOMAIN}/CSS/addons/{app}/{addon}/{file}?sha={SHAS.get(file)}" for file in files if file.split(".")[1] == "css"] - } for addon in app_addons + if len([f for f in files if f.endswith('.css')]) > 1: + ADDONS["addons"][app][addon].update({ + "css": [f"https://{DOMAIN}/CSS/addons/{app}/{addon}/{file}?sha={SHAS.get(file)}" for file in files if file.split(".")[1] == "css"] } - }) + ) + else: + ADDONS["addons"][app].update({ + addon: f"https://{DOMAIN}/CSS/addons/{app}/{addon}/{file}?sha={SHAS.get(file)}" for file in files if file.split(".")[1] == "css" + } + ) extra_dirs = [dir for dir in listdir( f"{addon_root}/{app}/{addon}") if isdir(join(f"{addon_root}/{app}/{addon}", dir))] if extra_dirs: for dir in extra_dirs: extra_dir_files = [file for file in listdir( f"{addon_root}/{app}/{addon}/{dir}") if isfile(join(f"{addon_root}/{app}/{addon}/{dir}", file))] - ADDONS["addons"][app].update({ - addon: { - dir: { - "css": [f"https://{DOMAIN}/CSS/addons/{app}/{addon}/{dir}/{extra_file}?sha={SHAS.get(extra_file)}" for extra_file in extra_dir_files if extra_file.split(".")[1] == "css"] - } for dir in extra_dirs - } - }) + ADDONS["addons"][app][addon].update({ + dir: { + "css": [f"https://{DOMAIN}/CSS/addons/{app}/{addon}/{dir}/{extra_file}?sha={SHAS.get(extra_file)}" for extra_file in extra_dir_files if extra_file.split(".")[1] == "css"] + } + } + ) return dumps(ADDONS) -def create_json(app_folders:list=None,themes:list=None,no_sub_folders=False): + +def create_json(app_folders: list = None, themes: list = None, no_sub_folders=False): if no_sub_folders: THEMES = {} - theme_shas = subprocess.check_output(["git", "ls-files", "-s", "./CSS/variables/*.css"]) + theme_shas = subprocess.check_output( + ["git", "ls-files", "-s", "./CSS/variables/*.css"]) SHAS = get_shas(theme_shas) for theme in themes: THEMES.update({ "themes": { theme.split(".")[0].capitalize(): { - "url": f"https://{DOMAIN}/CSS/variables/{theme}?sha={SHAS.get(theme)}" + "url": f"https://{DOMAIN}/CSS/variables/{theme}?sha={SHAS.get(theme)}" }for theme in themes } }) return dumps(THEMES) else: ADDONS = loads(create_addons_json()) - APPS = {"applications":{}} - app_shas = subprocess.check_output(["git", "ls-files", "-s", "./CSS/themes/*base.css"]) + APPS = {"applications": {}} + app_shas = subprocess.check_output( + ["git", "ls-files", "-s", "./CSS/themes/*base.css"]) SHAS = get_shas(app_shas) for app in app_folders: APPS.update({ - "applications":{ + "applications": { app: { "base_css": f"https://{DOMAIN}/CSS/themes/{app}/{app}-base.css?sha={SHAS.get(f'{app}-base.css')}", "addons": ADDONS["addons"][app] if app in ADDONS["addons"] else {} - } for app in app_folders - } + } for app in app_folders } + } ) - THEMES = loads(create_json(themes=themes,no_sub_folders=True)) + THEMES = loads(create_json(themes=themes, no_sub_folders=True)) APPS.update(ADDONS) APPS.update(THEMES) return dumps(APPS) -if __name__== "__main__": - app_folders = [name for name in listdir('./CSS/themes') if isdir(join('./CSS/themes', name))] - themes = [name for name in listdir('./CSS/variables') if isfile(join('./CSS/variables', name))] - DOMAIN = open("CNAME","rt",closefd=True).readline() - apps = loads(create_json(app_folders,themes)) + +if __name__ == "__main__": + app_folders = [name for name in listdir( + './CSS/themes') if isdir(join('./CSS/themes', name))] + themes = [name for name in listdir( + './CSS/variables') if isfile(join('./CSS/variables', name))] + DOMAIN = open("CNAME", "rt", closefd=True).readline() + apps = loads(create_json(app_folders, themes)) with open("themes.json", "w") as outfile: - dump(apps, outfile,indent=2) + dump(apps, outfile, indent=2)