Remove redundant PluginAPI file now that min version is 6.9.0

This commit is contained in:
Squidly271 2021-12-28 09:58:14 -05:00
parent 6ea7fb57df
commit e6f2f05fd5
8 changed files with 44 additions and 267 deletions

Binary file not shown.

View File

@ -134,6 +134,9 @@ function tr($string,$ret=false) {
</script> </script>
<?endif;?> <?endif;?>
<script> <script>
String.prototype.basename = function() {return this.split('/').reverse()[0];}
String.prototype.escapeHTML = function() {return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');}
var searchBoxInput; var searchBoxInput;
var searchBoxAwesomplete; var searchBoxAwesomplete;
var pluginInstallIntervalTimer; var pluginInstallIntervalTimer;
@ -226,9 +229,7 @@ $(function(){
$(".sidebarClose").on("click",function(e) { $(".sidebarClose").on("click",function(e) {
closeSidebar(); closeSidebar();
}); });
$(".mainArea").on("click",".actionsButtonContext,.actionsButton,.supportButton,.supportButtonCardContext",function() {
data.actions = true;
});
$("#searchBox").keydown(function(e) { $("#searchBox").keydown(function(e) {
if (e.which === 13) { if (e.which === 13) {
searchBoxAwesomplete.close(); searchBoxAwesomplete.close();
@ -348,29 +349,25 @@ $(function(){
} }
}); });
$('body').on("click",".ca_holder",function(event) { $("body").on("click",".repoPopup,.ca_repoinfo,.ca_reporeadmore,.ca_repoFromPopUp,.cardDescriptionRepo", function() {
if (data.actions) { var repository = $(this).data("repository");
data.actions = false; showRepoPopup(repository);
});
$('body').on("click",".ca_appPopup,.cardDescription,.homespotlightIconArea",function() {
if ( $(this).hasClass("dockerCardBackground") || $(this).hasClass("noClick") )
return;
if ( $(".dropdown-menu").is(":visible") ) {
$(".dropdown-menu").hide();
return; return;
} }
data.actions = false;
event.stopPropagation();
if ( $(this).hasClass("ca_repoPopup") ) {
var repository = $(this).data("repository");
showRepoPopup(repository);
} else {
if ( $(this).hasClass("dockerCardBackground") || $(this).hasClass("noClick") )
return;
if ( $(".dropdown-menu").is(":visible") ) {
$(".dropdown-menu").hide();
return;
}
var apppath = $(this).data("apppath"); var apppath = $(this).data("apppath");
var appname = $(this).data("appname"); var appname = $(this).data("appname");
appname = stripTags(appname); appname = stripTags(appname);
showSidebarApp(apppath,appname);
} showSidebarApp(apppath,appname);
}); });
$('body').on("click",".dockerPopup", function() { $('body').on("click",".dockerPopup", function() {
@ -988,7 +985,6 @@ function installPlugin(pluginURL,update=false,comment="") {
} else { } else {
openBox('/plugins/community.applications/scripts/pluginInstall.php&arg1='+type+'&arg2='+pluginURL,title,600,900,true,"OpenSidebarAndRefreshDisplay"); openBox('/plugins/community.applications/scripts/pluginInstall.php&arg1='+type+'&arg2='+pluginURL,title,600,900,true,"OpenSidebarAndRefreshDisplay");
} }
} }
function OpenSidebarAndRefreshDisplay() { function OpenSidebarAndRefreshDisplay() {
@ -1113,10 +1109,6 @@ function postUninstallPlugin() {
enableSearch(); enableSearch();
} }
String.prototype.basename = function() {
return this.split('/').reverse()[0];
}
function uninstallDocker(application,humanName) { function uninstallDocker(application,humanName) {
closeSidebar(); closeSidebar();
disableSearch(); disableSearch();
@ -1216,7 +1208,6 @@ function pinnedApps() {
} }
function displayTags(leadTemplate,rename=false) { function displayTags(leadTemplate,rename=false) {
event.stopPropagation();
closeSidebar(); closeSidebar();
post({action:'displayTags',leadTemplate:leadTemplate,noSpinner:true,rename:rename},function(result) { post({action:'displayTags',leadTemplate:leadTemplate,noSpinner:true,rename:rename},function(result) {
disableSearch(); disableSearch();
@ -1240,6 +1231,7 @@ function displayTags(leadTemplate,rename=false) {
function makePlural(string,count) { function makePlural(string,count) {
return ( (count > 1) || (count == 0) ) ? string + "s" : string; return ( (count > 1) || (count == 0) ) ? string + "s" : string;
} }
function selectAllPrevious() { function selectAllPrevious() {
$(".ca_multiselect").each(function() { $(".ca_multiselect").each(function() {
$(this).prop("checked",true); $(this).prop("checked",true);
@ -1512,7 +1504,7 @@ function saveState() {
$.cookie("ca_selectedMenu",selectedMenu); $.cookie("ca_selectedMenu",selectedMenu);
$.cookie("ca_filter",$("#searchBox").val()); $.cookie("ca_filter",$("#searchBox").val());
$.cookie("ca_categoryName",$(".categoryMenuName").html()); $.cookie("ca_categoryName",$(".categoryMenuName").html());
} }
function restoreState() { function restoreState() {
swalBackground("transparent"); swalBackground("transparent");
@ -1538,7 +1530,6 @@ function restoreState() {
$("#searchButton").removeClass("fa-search").addClass("fa-remove"); $("#searchButton").removeClass("fa-search").addClass("fa-remove");
var ca_sortIcon = $.cookie("ca_sortIcon"); var ca_sortIcon = $.cookie("ca_sortIcon");
// enableIcon("#sortIcon",ca_sortIcon);
post({action:"getSortOrder"},function(sortOrder) { post({action:"getSortOrder"},function(sortOrder) {
$(".sortIcons").removeClass("enabledIcon"); $(".sortIcons").removeClass("enabledIcon");
$(".sortIcons").each(function() { $(".sortIcons").each(function() {
@ -1610,10 +1601,6 @@ function addDockerWarning(enableDisable) {
} }
} }
String.prototype.escapeHTML = function() {
return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
}
function post(options,callback) { function post(options,callback) {
var URL = "/plugins/<?=$plugin?>/include/exec.php"; var URL = "/plugins/<?=$plugin?>/include/exec.php";
@ -1807,13 +1794,11 @@ function CAswitchLanguage(language) {
} }
function installLanguage(languageURL,language) { function installLanguage(languageURL,language) {
disableSearch(); disableSearch();
openBox('/plugins/community.applications/scripts/languageInstall.sh&arg1=install&arg2='+languageURL,"<?tr('Install Language Pack')?>",600,900,true,"postLanguageRefresh"); openBox('/plugins/community.applications/scripts/languageInstall.sh&arg1=install&arg2='+languageURL,"<?tr('Install Language Pack')?>",600,900,true,"postLanguageRefresh");
} }
function updateLanguage(language) { function updateLanguage(language) {
disableSearch(); disableSearch();
$.cookie("updateLanguage",language); $.cookie("updateLanguage",language);
openBox('/plugins/community.applications/scripts/languageInstall.sh&arg1=update&arg2='+language,"<?tr('Update Language Pack')?>",600,900,true,"postUpdateLanguage"); openBox('/plugins/community.applications/scripts/languageInstall.sh&arg1=update&arg2='+language,"<?tr('Update Language Pack')?>",600,900,true,"postUpdateLanguage");
@ -1832,10 +1817,10 @@ function postUpdateLanguage() {
refreshDisplay(); refreshDisplay();
} }
} }
function removeLanguage(language) { function removeLanguage(language) {
closeSidebar(); closeSidebar();
openBox('/plugins/community.applications/scripts/languageInstall.sh&arg1=remove&arg2='+language,"<?tr('Remove Language Pack')?>",600,900,true,"postLanguageRemove"); openBox('/plugins/community.applications/scripts/languageInstall.sh&arg1=remove&arg2='+language,"<?tr('Remove Language Pack')?>",600,900,true,"postLanguageRemove");
} }
function postLanguageRefresh() { function postLanguageRefresh() {
@ -1905,7 +1890,6 @@ function setFavourite(button) {
} }
function popupInstallXML(xml,type,comment="") { function popupInstallXML(xml,type,comment="") {
event.stopPropagation();
saveState(); saveState();
if ( $.trim(comment) ) { if ( $.trim(comment) ) {
swal({ swal({

View File

@ -1,205 +0,0 @@
Menu='Buttons'
Link='nav-user'
---
<?
###############################################################
# #
# Community Applications copyright 2015-2021, Andrew Zawadzki #
# Licenced under GPLv2 #
# #
###############################################################
### Note: This file is only needed on OS versions less than 6.8.3
?>
<? if ( ! file_exists("/usr/local/emhttp/plugins/dynamix.plugin.manager/PluginHelpers.page") ) : ?>
<style>
.ca_plugin_notice{position:fixed;top:1px;left:0;}
.ca_element_notice{padding-right:20px;width:100%;height:40px;line-height:40px;color:#e68a00;background:#feefb3;border-bottom:#e68a00 1px solid;text-align:center;font-size:1.4rem;z-index:900;display:none;}
.ca_PluginUpdateDismiss{float:right;margin-right:20px;cursor:pointer;}
.ca_pluginUpdateInfo{cursor:pointer;}
.ca_PluginUpdateInstall{cursor:pointer;}
a.bannerInfo {cursor:pointer;text-decoration:none;}
.bannerInfo::before {content:"\f05a";font-family:fontAwesome;color:#e68a00;}
</style>
<script>
var ca_PluginUpdatePLG;
var ca_PluginUpdateElement;
var ca_WarningItems = [];
var currentWarning = 0;
warningInterval = false;
$(function() {
$(".upgrade_notice").after("<div class='ca_plugin_notice ca_element_notice'></div>");
});
if ( typeof caPluginUpdateCheck !== "function" ) {
function ca_PluginUpdate_openBox(cmd,title,height,width,load,func) {
// open shadowbox window (run in foreground)
var run = cmd.split('?')[0].substr(-4)=='.php' ? cmd : '/logging.htm?cmd='+cmd+'&csrf_token=<?=$var['csrf_token']?>';
var options = load ? {modal:true,onClose:function(){ eval(func); }} : {modal:true};
Shadowbox.open({content:run, player:'iframe', title:title, height:height, width:width, options:options});
}
function ca_hidePluginUpdate(version) {
$.cookie(ca_PluginUpdatePLG,version);
$(ca_PluginUpdateElement).hide();
}
function ca_pluginUpdateInstall(plugin) {
ca_PluginUpdate_openBox("/plugins/community.applications/scripts/installPluginUpdate.sh&arg1="+plugin,"Installing Update",600,900,true,"window.location.reload()");
}
function ca_pluginUpdateShowInfo(cmd,title,height,width,load,func,id) {
// open shadowbox window (run in foreground)
var run = cmd.split('?')[0].substr(-4)=='.php' ? cmd : '/logging.htm?cmd='+cmd+'&csrf_token=<?=$var['csrf_token']?>';
var options = load ? (func ? {modal:true,onClose:function(){setTimeout(func+'('+'"'+(id||'')+'")',0);}} : {modal:false,onClose:function(){location=location;}}) : {modal:false};
Shadowbox.open({content:run, player:'iframe', title:title, height:Math.min(height,screen.availHeight), width:Math.min(width,screen.availWidth), options:options});
}
function ca_pluginUpdate_evaluateBoolean(str) {
regex=/^\s*(true|1|on)\s*$/i
return regex.test(str);
}
function caPluginUpdateCheck(plugin,options=[],callback) {
ca_PluginUpdatePLG = plugin;
pluginFilename = plugin.substr(0, plugin.lastIndexOf("."));
console.time("checkPlugin "+plugin);
console.log("checkPlugin "+plugin);
$.post("/plugins/community.applications/scripts/PluginAPI.php",{action:'checkPlugin',options:{plugin:plugin}},function(caAPIresult) {
console.groupCollapsed("Result checkPlugin "+plugin);
console.log(caAPIresult);
console.timeEnd("checkPlugin "+plugin);
console.groupEnd();
var result = JSON.parse(caAPIresult);
if ( options.debug == true ) result.updateAvailable = true;
var name = options.name ? options.name : "this plugin ("+plugin+")";
if ( ! options.element ) {
if ( result.updateAvailable ) {
var HTML = "An upgrade to "+name+" is available. Click <a class='ca_PluginUpdateInstall' onclick='ca_pluginUpdateInstall(&quot;"+plugin+"&quot;);'>here</a> to install version "+result.version+" <a class='bannerInfo fa fa-info-circle' onclick=ca_pluginUpdateShowInfo('/plugins/dynamix.plugin.manager/include/ShowChanges.php?file=%2Ftmp%2Fplugins%2F"+pluginFilename+".txt','Release&nbsp;Notes',600,900); return false;'></a>";
addBannerWarning(HTML,false,ca_pluginUpdate_evaluateBoolean(options.noDismiss));
}
} else {
if ( $.cookie(plugin) != result.version ) {
if ( result.updateAvailable ) {
var HTML = "An upgrade to "+name+" is available. Click <a class='ca_PluginUpdateInstall' onclick='ca_pluginUpdateInstall(&quot;"+plugin+"&quot;);'>here</a> to install version "+result.version+" <i class='ca_pluginUpdateInfo fa fa-info-circle' onclick=ca_pluginUpdateShowInfo('/plugins/dynamix.plugin.manager/include/ShowChanges.php?file=%2Ftmp%2Fplugins%2F"+pluginFilename+".txt','Release&nbsp;Notes',600,900); return false;'></i>";
if ( ! ca_pluginUpdate_evaluateBoolean(options.noDismiss) ) {
HTML = HTML.concat("<span class='ca_PluginUpdateDismiss'><i class='fa fa-close' onclick='ca_hidePluginUpdate(&quot;"+result.version+"&quot;);'></i>");
}
result.HTML = HTML;
ca_PluginUpdateElement = options.element ? options.element : ".ca_plugin_notice";
if ( ! ca_pluginUpdate_evaluateBoolean(options.dontShow) ) {
if ( ! options.element ) {
$(".ca_element_notice").html(HTML);
if (options.priority) {
var z_index = $(".upgrade_notice").css("z-index");
$(".ca_element_notice").css("z-index",z_index+1);
}
} else {
$(ca_PluginUpdateElement).html(HTML);
}
$(ca_PluginUpdateElement).addClass("ca_element_notice").show();
}
}
}
}
if ( typeof options === "function" ) {
callback = options;
}
if ( typeof callback === "function" ) {
callback(JSON.stringify(result));
}
});
}
}
if ( typeof addBannerWarning !== "function" ) {
function addBannerWarning(text,warning=true,noDismiss=false) {
var cookieText = text.replace(/[^a-z0-9]/gi,'');
if ( $.cookie(cookieText) == "true" ) { return false; }
var z_index = $(".upgrade_notice").css("z-index");
$(".ca_element_notice").css("z-index",z_index+1); // Warnings take precendence over unRaid's OS warnings
if ( warning ) {
text = "<i class='fa fa-warning'></i> "+text;
}
var arrayEntry = ca_WarningItems.push("placeholder") - 1;
if ( ! noDismiss ) {
text = text + "<span class='ca_PluginUpdateDismiss'><i class='fa fa-close' onclick='dismissBannerWarning("+arrayEntry+",&quot;"+cookieText+"&quot;)'></i>";
}
ca_WarningItems[arrayEntry] = text;
if ( ! warningInterval ) {
showWarnings();
warningInterval = setInterval(function() {
showWarnings()
},10000);
}
return arrayEntry;
}
function dismissBannerWarning(entry,cookieText) {
$.cookie(cookieText,"true");
removeBannerWarning(entry);
}
function removeBannerWarning(entry) {
ca_WarningItems[entry] = false;
showWarnings();
}
function filterArray(array) {
var newArray = [];
array.filter(function(value,index,arr) {
if ( value ) {
newArray.push(value);
}
});
return newArray;
}
function showWarnings() {
var allWarnings = filterArray(Object.values(ca_WarningItems));
if ( allWarnings.length == 0 ) {
$(".ca_plugin_notice,.ca_element_notice").hide();
clearInterval(warningInterval);
warningInterval = false;
return;
}
if ( currentWarning >= allWarnings.length ) {
currentWarning = 0;
}
$(".upgrade_notice").hide();
$(".ca_plugin_notice,.ca_element_notice").show();
$(".ca_plugin_notice").html(allWarnings[currentWarning]);
currentWarning++;
}
}
</script>
<? endif; ?>
<script>
if ( typeof addRebootNotice !== "function" ) {
// add any pre-existing reboot notices
$(function() {
<?
$rebootNotice = @file("/tmp/reboot_notifications") ?: array();
foreach ($rebootNotice as $notice):
?>
var rebootMessage = "<?=trim($notice)?>";
if ( rebootMessage ) {
addBannerWarning(rebootMessage,true,true);
}
<?
endforeach;
?>
});
function addRebootNotice(message="You must reboot for changes to take effect") {
addBannerWarning(message,true,true);
$.post("/plugins/community.applications/scripts/PluginAPI.php",{action:'addRebootNotice',message:message});
}
}
</script>

View File

@ -1,4 +1,4 @@
8ec96e4413a11691820a9ccc725857ae ./Apps.page 36a80b353bf7906b83ff090090a13eb6 ./Apps.page
83b3f89cd42e8601c7c217d5b4889c81 ./CA_notices.page 83b3f89cd42e8601c7c217d5b4889c81 ./CA_notices.page
18ded5848ac35ffae0e8e0fc8ed3c512 ./ca_settings.page 18ded5848ac35ffae0e8e0fc8ed3c512 ./ca_settings.page
ed2883d6c44c19304c431079596a1731 ./default.cfg ed2883d6c44c19304c431079596a1731 ./default.cfg
@ -6,7 +6,6 @@ bb619eacf570f936207f98d99ea3f9de ./include/exec.php
b6920c2d8b2ea81a4dabbd935b93895e ./include/helpers.php b6920c2d8b2ea81a4dabbd935b93895e ./include/helpers.php
95709ae0ed53e2889a93849a69b37892 ./include/paths.php 95709ae0ed53e2889a93849a69b37892 ./include/paths.php
410c0166bae560754e231486050621f6 ./javascript/libraries.js 410c0166bae560754e231486050621f6 ./javascript/libraries.js
8c24d585c7dd3ff9ef961bb2c2705711 ./PluginAPI.page
b398273cf7daa62ab00d2de2336ca25f ./README.md b398273cf7daa62ab00d2de2336ca25f ./README.md
717f49d6faabd7e1d7cf0940beb5cd5e ./scripts/checkForUpdates.php 717f49d6faabd7e1d7cf0940beb5cd5e ./scripts/checkForUpdates.php
1e2b902321d4bb7efe0d0b78c8130a73 ./scripts/installMulti.php 1e2b902321d4bb7efe0d0b78c8130a73 ./scripts/installMulti.php
@ -20,6 +19,6 @@ c0b2c395a14863960438e4622f20f6ff ./scripts/notices.php
e3dc9ed23036a09d69d5cd5c3111751e ./scripts/showStatistics.php e3dc9ed23036a09d69d5cd5c3111751e ./scripts/showStatistics.php
4425f8fd4ef662a7dc65cee01de3e419 ./scripts/updatePLG.sh 4425f8fd4ef662a7dc65cee01de3e419 ./scripts/updatePLG.sh
2bd671daecaf01549f8cc0202cb184b3 ./scripts/updatePluginSupport.php 2bd671daecaf01549f8cc0202cb184b3 ./scripts/updatePluginSupport.php
e847d17faa1276c97ce3702f57ac56ea ./skins/Narrow/css.php bcc62bbda52f8863c09a469eede2e521 ./skins/Narrow/css.php
cfa1511913f794c8c5980460dfcdf049 ./skins/Narrow/skin.html cfa1511913f794c8c5980460dfcdf049 ./skins/Narrow/skin.html
1612dbb7b05d8d48e61b43c24e506659 ./skins/Narrow/skin.php 44912f026b88f862384922c49b0b0f0c ./skins/Narrow/skin.php

View File

@ -193,10 +193,8 @@ a.ca_fa-delete{text-decoration:none;margin-left:1rem;font-size:2rem;margin-top:-
.ca_favouriteRepo{margin-right:1rem;margin-bottom:1rem;font-size:1.5rem;line-height:2rem;cursor:pointer;display:inline-block;color:<?=$supportPopupText?>!important;background: -webkit-linear-gradient(top, transparent 0%, rgba(0,0,0,0.4) 100%),-webkit-linear-gradient(left, lighten(<?=$donateBackground?>, 15%) 0%, <?=$donateBackground?> 50%, lighten(<?=$donateBackground?>, 15%) 100%); background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%),linear-gradient(to right, lighten(#E68321, 15%) 0%, #E68321 50%, lighten(#E68321, 15%) 100%); background-position: 0 0; background-size: 100% 100%; border-radius: 15px; color: #fff; padding: 1px 10px 1px 10px;} .ca_favouriteRepo{margin-right:1rem;margin-bottom:1rem;font-size:1.5rem;line-height:2rem;cursor:pointer;display:inline-block;color:<?=$supportPopupText?>!important;background: -webkit-linear-gradient(top, transparent 0%, rgba(0,0,0,0.4) 100%),-webkit-linear-gradient(left, lighten(<?=$donateBackground?>, 15%) 0%, <?=$donateBackground?> 50%, lighten(<?=$donateBackground?>, 15%) 100%); background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%),linear-gradient(to right, lighten(#E68321, 15%) 0%, #E68321 50%, lighten(#E68321, 15%) 100%); background-position: 0 0; background-size: 100% 100%; border-radius: 15px; color: #fff; padding: 1px 10px 1px 10px;}
.ca_favouriteRepo:hover{text-decoration:none;background-color:<?=$unRaid66color?>;} .ca_favouriteRepo:hover{text-decoration:none;background-color:<?=$unRaid66color?>;}
.ca_forum::before{content:"\f1cd";font-family:fontAwesome;} .ca_forum::before{content:"\f1cd";font-family:fontAwesome;}
.ca_holder{background-color:<?=$templateBackground?>;display:inline-block;float:left;height:20rem;min-width:24rem;max-width:24rem;overflow:hidden;padding:20px;margin-top:0px;margin-bottom:1rem;margin-right:1rem;border:1px solid;border-color:<?=$borderColor?>;cursor:pointer;} .ca_holder{background-color:<?=$templateBackground?>;display:inline-block;float:left;height:20rem;min-width:24rem;max-width:24rem;overflow:hidden;padding:20px;margin-top:0px;margin-bottom:1rem;margin-right:1rem;border:1px solid;border-color:<?=$borderColor?>;}
.ca_holder:hover{background-color:<?=$templateHoverBackground?>;} .ca_holder:hover{background-color:<?=$templateHoverBackground?>;}
.dockerHubHolder {background-color:<?=$templateBackground?>;display:inline-block;float:left;height:20rem;min-width:24rem;max-width:24rem;overflow:hidden;padding:20px;margin-top:0px;margin-bottom:1rem;margin-right:1rem;border:1px solid;border-color:<?=$borderColor?>;cursor:pointer;}
.dockerHubHolder:hover{background-color:<?=$templateHoverBackground?>;}
.ca_holderFav{background-color:<?=$templateFavourite?> !important;} .ca_holderFav{background-color:<?=$templateFavourite?> !important;}
.ca_homeTemplates{display:flex;flex-wrap:wrap;height:24.5rem;overflow:hidden;} .ca_homeTemplates{display:flex;flex-wrap:wrap;height:24.5rem;overflow:hidden;}
.ca_homeTemplatesHeader{font-size:2rem;margin-top:1rem;margin-bottom:0.5rem;} .ca_homeTemplatesHeader{font-size:2rem;margin-top:1rem;margin-bottom:0.5rem;}
@ -321,8 +319,10 @@ p {margin:auto;text-align:left;margin-bottom:10px;} /* override dynamix styling
.pageNumber:hover{color:<?=$unRaid66color?>;} .pageNumber:hover{color:<?=$unRaid66color?>;}
.pageRight::after{content:"\f138";font-family:fontAwesome;} .pageRight::after{content:"\f138";font-family:fontAwesome;}
.pageSelected{cursor:default;color:<?=$unRaid66color?>;} .pageSelected{cursor:default;color:<?=$unRaid66color?>;}
.pinned{margin-left:1rem;font-size:2rem;cursor:pointer;padding-left:.5rem;padding-right:.5rem;cursor:pointer;color:#1fa67a;padding:.3rem;} /* .pinned{margin-left:1rem;font-size:2rem;cursor:pointer;padding-left:.5rem;padding-right:.5rem;cursor:pointer;color:#1fa67a;padding:.3rem;}
.pinned::after{content:"\f08d";font-family:fontAwesome;} .pinned::after{content:"\f08d";font-family:fontAwesome;} */
.pinButton{margin-left:1rem;line-height:2rem;cursor:pointer;display:inline-block;color:<?=$donateText?>!important;background: <?=$donateBackground?>;background: -webkit-linear-gradient(top, transparent 0%, rgba(0,0,0,0.4) 100%),-webkit-linear-gradient(left, lighten(<?=$donateBackground?>, 15%) 0%, <?=$donateBackground?> 50%, lighten(<?=$donateBackground?>, 15%) 100%); background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 100%),linear-gradient(to right, lighten(#E68321, 15%) 0%, #E68321 50%, lighten(#E68321, 15%) 100%); background-position: 0 0; background-size: 100% 100%; border-radius: 15px; color: #fff; padding: 1px 10px 1px 10px;}
.pinButton:hover{background:<?=$unRaid66color?>}
.pinnedCard{float:right;color:#1fa67a;font-size:1.75rem;} .pinnedCard{float:right;color:#1fa67a;font-size:1.75rem;}
.pinnedCard::before{content:"\f08d";font-family:fontAwesome;} .pinnedCard::before{content:"\f08d";font-family:fontAwesome;}
.pinned:hover{text-decoration:none;color:<?=$unRaid66color?>;} .pinned:hover{text-decoration:none;color:<?=$unRaid66color?>;}
@ -425,10 +425,10 @@ table {background-color:transparent;}
.templateSearch:hover{color:<?=$unRaid66color?>;} .templateSearch:hover{color:<?=$unRaid66color?>;}
.trendingDown::before{content:"\f063";font-family:fontAwesome;} .trendingDown::before{content:"\f063";font-family:fontAwesome;}
.trendingUp::before{content:"\f062";font-family:fontAwesome;} .trendingUp::before{content:"\f062";font-family:fontAwesome;}
.unpinned{font-size:2rem;cursor:pointer;margin-left:1rem;padding-left:.5rem;padding-right:.5rem;cursor:pointer;padding:.3rem;} /* .unpinned{font-size:2rem;cursor:pointer;margin-left:1rem;padding-left:.5rem;padding-right:.5rem;cursor:pointer;padding:.3rem;}
.unpinned::after {content:"\f08d";font-family:fontAwesome;display:inline-block;-webkit-transform: rotate(20deg);-moz-transform: rotate(20deg);-ms-transform: rotate(20deg); -o-transform: rotate(20deg); transform: rotate(20deg);} *//* .unpinned::after {content:"\f08d";font-family:fontAwesome;display:inline-block;-webkit-transform: rotate(20deg);-moz-transform: rotate(20deg);-ms-transform: rotate(20deg); -o-transform: rotate(20deg); transform: rotate(20deg);}
.unpinned:hover{text-decoration:none;color:<?=$unRaid66color?>;} .unpinned:hover{text-decoration:none;color:<?=$unRaid66color?>;}
.unraidIcon{margin-top:4rem;} */.unraidIcon{margin-top:4rem;}
.vid{display:inline-block;font-size:8rem;position:relative;top:-0.5rem;color:<?=$sidebarText?>;opacity:70%;padding-right:10px;} .vid{display:inline-block;font-size:8rem;position:relative;top:-0.5rem;color:<?=$sidebarText?>;opacity:70%;padding-right:10px;}
.vid:hover{color:<?=$unRaid66color;?>} .vid:hover{color:<?=$unRaid66color;?>}
.warningCardBackground{clip-path: polygon(0 0,100% 0, 100% 100%);background-color: #810000;top:0px;height:9rem;width:9rem;position: relative;left:-10rem;margin-right:-9rem;} .warningCardBackground{clip-path: polygon(0 0,100% 0, 100% 100%);background-color: #810000;top:0px;height:9rem;width:9rem;position: relative;left:-10rem;margin-right:-9rem;}

View File

@ -935,7 +935,6 @@ function displayCard($template) {
$supportContext[] = array("icon"=>"ca_fa-support","link"=>$Support,"text"=> $SupportLanguage ?: tr("Support Forum")); $supportContext[] = array("icon"=>"ca_fa-support","link"=>$Support,"text"=> $SupportLanguage ?: tr("Support Forum"));
} else { } else {
$holderClass='repositoryCard';
$cardClass = "ca_repoinfo"; $cardClass = "ca_repoinfo";
$ID = str_replace(" ","",$RepoName); $ID = str_replace(" ","",$RepoName);
$supportContext = array(); $supportContext = array();
@ -963,15 +962,15 @@ function displayCard($template) {
if ( $DockerHub ) { if ( $DockerHub ) {
$backgroundClickable = "dockerCardBackground"; $backgroundClickable = "dockerCardBackground";
$card .= " $card .= "
<div class='dockerHubHolder $class $popupType'> <div class='ca_holder $class'>
<div class='ca_bottomLine $bottomClass'> <div class='ca_bottomLine $bottomClass'>
<div class='infoButton_docker dockerPopup' data-dockerHub='$DockerHub'>".tr("Docker Hub")."</div>"; <div class='infoButton_docker dockerPopup' data-dockerHub='$DockerHub'>".tr("Docker Hub")."</div>";
} else { } else {
$backgroundClickable = "ca_backgroundClickable"; $backgroundClickable = "ca_backgroundClickable";
$card .= " $card .= "
<div class='ca_holder $class $popupType $holderClass' data-apppath='$Path' data-appname='$Name' data-repository='".htmlentities($RepoName,ENT_QUOTES)."'> <div class='ca_holder $class'>
<div class='ca_bottomLine $bottomClass'> <div class='ca_bottomLine $bottomClass'>
<div class='infoButton $cardClass'>".tr("Info")."</div> <div class='infoButton $cardClass' data-apppath='$Path' data-appname='$Name' data-repository='".htmlentities($RepoName,ENT_QUOTES)."'>".tr("Info")."</div>
"; ";
} }
if ( count($supportContext) == 1) if ( count($supportContext) == 1)
@ -991,9 +990,9 @@ function displayCard($template) {
$card .= "<span class='$appType' title='".htmlentities($typeTitle)."'></span>"; $card .= "<span class='$appType' title='".htmlentities($typeTitle)."'></span>";
if ( $ca_fav ) { if ( $ca_fav ) {
$favText = $RepositoryTemplate ? tr("This is your favourite repository") : tr("This application is from your favourite repository"); $favText = $RepositoryTemplate ? tr("This is your favourite repository") : tr("This application is from your favourite repository");
$card .= "<span class='favCardBackground' title='".htmlentities($favText)."'></span>"; $card .= "<span class='favCardBackground' title='".htmlentities($favText)."' data-repository='".htmlentities($RepoName,ENT_QUOTES)."'></span>";
} else } else
$card .= "<span class='favCardBackground' title='".htmlentities($favText)."' style='display:none;'></span>"; $card .= "<span class='favCardBackground' title='".htmlentities($favText)."' style='display:none;' data-repository='".htmlentities($RepoName,ENT_QUOTES)."'></span>";
if ( ! $Pinned ) if ( ! $Pinned )
$pinStyle = "display:none;"; $pinStyle = "display:none;";
@ -1006,7 +1005,7 @@ function displayCard($template) {
$card .= "<input class='ca_multiselect ca_tooltip' title='".tr("Check off to select multiple reinstalls")."' type='checkbox' data-name='$previousAppName' data-humanName='$Name' data-type='$type' data-deletepath='$InstallPath' $checked>"; $card .= "<input class='ca_multiselect ca_tooltip' title='".tr("Check off to select multiple reinstalls")."' type='checkbox' data-name='$previousAppName' data-humanName='$Name' data-type='$type' data-deletepath='$InstallPath' $checked>";
} }
$card .= "</div>"; $card .= "</div>";
$card .= "<div class='$cardClass $backgroundClickable'>"; $card .= "<div class='$cardClass $backgroundClickable' data-apppath='$Path' data-appname='$Name' data-repository='".htmlentities($RepoName,ENT_QUOTES)."'>";
$card .= "<div class='ca_iconArea'>"; $card .= "<div class='ca_iconArea'>";
if ( $DockerHub ) if ( $DockerHub )
$imageNoClick = "noClick"; $imageNoClick = "noClick";
@ -1018,7 +1017,7 @@ function displayCard($template) {
else { else {
$displayIcon = $template['IconFA'] ?: $template['Icon']; $displayIcon = $template['IconFA'] ?: $template['Icon'];
$displayIconClass = startsWith($displayIcon,"icon-") ? $displayIcon : "fa fa-$displayIcon"; $displayIconClass = startsWith($displayIcon,"icon-") ? $displayIcon : "fa fa-$displayIcon";
$card .= "<i class='ca_appPopup $displayIconClass displayIcon $imageNoClick'></i>"; $card .= "<i class='ca_appPopup $displayIconClass displayIcon $imageNoClick' data-apppath='$Path' data-appname='$Name'></i>";
} }
$card .= "</div>"; $card .= "</div>";
@ -1068,10 +1067,10 @@ function displayCard($template) {
$ovr = str_replace("\n","<br>",$ovr); $ovr = str_replace("\n","<br>",$ovr);
$Overview = str_replace("<br>"," ",$ovr); $Overview = str_replace("<br>"," ",$ovr);
$descClass= $RepositoryTemplate ? "cardDescriptionRepo" : "cardDescription"; $descClass= $RepositoryTemplate ? "cardDescriptionRepo" : "cardDescription";
$card .= "<div class='$descClass $backgroundClickable'><div class='cardDesc'>$Overview</div></div>"; $card .= "<div class='$descClass $backgroundClickable' data-apppath='$Path' data-appname='$Name' data-repository='".htmlentities($RepoName,ENT_QUOTES)."'><div class='cardDesc'>$Overview</div></div>";
if ( $RecommendedDate ) { if ( $RecommendedDate ) {
$card .= " $card .= "
<div class='homespotlightIconArea ca_center''> <div class='homespotlightIconArea ca_center' data-apppath='$Path' data-appname='$Name' data-repository='".htmlentities($RepoName,ENT_QUOTES)."'>
<div><img class='spotlightIcon' src='{$caPaths['SpotlightIcon']}'></img></div> <div><img class='spotlightIcon' src='{$caPaths['SpotlightIcon']}'></img></div>
<div class='spotlightDate'>".tr(date("M Y",$RecommendedDate),0)."</div> <div class='spotlightDate'>".tr(date("M Y",$RecommendedDate),0)."</div>
</div> </div>

BIN
webImages/1657438_1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB