Add support direct searching for specific dockerhub repository

This commit is contained in:
Squidly271 2022-02-27 14:45:04 -05:00
parent d0d5f25c61
commit ed6f64ff70
4 changed files with 17 additions and 13 deletions

View File

@ -2,7 +2,7 @@
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
3ec629b7fc4851236413f774f9a35d2f ./include/exec.php
0a8815124067c1a072dc8729bab6327d ./include/exec.php
51a726cbd05fecf5ec30000b29581de7 ./include/helpers.php
d827ebdf8c29aa6a9818df043a37721e ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js

View File

@ -809,18 +809,22 @@ function get_content() {
$searchResults['favNameHit'][] = $template;
continue;
}
if ( filterMatch($filter,array($template['SortName'],$template['RepoShort'],$template['Language'],$template['LanguageLocal'],$template['ExtraSearchTerms'])) ) {
if ( filterMatch($filter,array($template['ExtraSearchTerms'])) && $template['Plugin'] && $template['Author'] == "limetech" )
$searchResults['extraHit'][] = $template;
else
$searchResults['nameHit'][] = $template;
} elseif ( filterMatch($filter,array($template['Author'],$template['RepoName'],$template['Overview'],$template['translatedCategories'])) ) {
if ( $template['RepoName'] == $caSettings['favourite'] ) {
$searchResults['nameHit'][] = $template;
} else {
$searchResults['anyHit'][] = $template;
}
} else continue;
if ( strpos($filter,"/") && filterMatch($filter,array($template['Repository'])) )
$searchResults['nameHit'][] = $template;
else {
if ( filterMatch($filter,array($template['SortName'],$template['RepoShort'],$template['Language'],$template['LanguageLocal'],$template['ExtraSearchTerms'])) ) {
if ( filterMatch($filter,array($template['ExtraSearchTerms'])) && $template['Plugin'] && $template['Author'] == "limetech" )
$searchResults['extraHit'][] = $template;
else
$searchResults['nameHit'][] = $template;
} elseif ( filterMatch($filter,array($template['Author'],$template['RepoName'],$template['Overview'],$template['translatedCategories'])) ) {
if ( $template['RepoName'] == $caSettings['favourite'] ) {
$searchResults['nameHit'][] = $template;
} else {
$searchResults['anyHit'][] = $template;
}
} else continue;
}
}
$display[] = $template;

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB