system
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
root
2024-08-22 19:00:54 +02:00
parent f678bd8731
commit b4d2d8c3fc
2 changed files with 31 additions and 22 deletions

View File

@@ -21,11 +21,11 @@
</div> </div>
<fieldset id="settings" class="hidden"> <fieldset id="settings" class="hidden">
<legend>Settings</legend> <legend>Repositories</legend>
<div id="repositories" style="text-align:left">Loading...</div> <div id="repositories" style="text-align:left">Loading...</div>
<form class="form-install" action="#" method="post"> <form class="form-install" action="#" method="post">
<div class="row"> <div class="row">
<div class="mb-3"> <div class="mb-3">
<label for="registry">Please add a new repository name:</label> <label for="registry">Please add a new repository name:</label>
<input type="registry" class="form-control" name="repository" id="repository" value="" required> <input type="registry" class="form-control" name="repository" id="repository" value="" required>
@@ -33,13 +33,18 @@
Please enter a valid repository name. Please enter a valid repository name.
</div> </div>
</div> </div>
</div>
<div class="row">
<div class="mb-3">
<button class="btn btn-lg btn-primary btn-block" type="button"> Send </button>
</div> </div>
</div> <div class="row">
</form> <div class="mb-3">
<button class="btn btn-lg btn-primary btn-block" type="button"> Add </button>
</div>
</div>
</form>
</fieldset>
<fieldset>
<legend>System</legend>
<div id="system" style="text-align:left">Loading...</div>
</fieldset> </fieldset>
<fieldset> <fieldset>
@@ -110,7 +115,7 @@ function get_system() {
} }
function check_deployments() { function check_deployments() {
var url = 'scan.php?op=check_deployments&services=1'; var url = 'scan.php?op=check_deployments';
jQuery.get(url, function(data) { jQuery.get(url, function(data) {
if (data!="") { if (data!="") {
jQuery("#deployments").html(data); jQuery("#deployments").html(data);
@@ -148,6 +153,7 @@ function get_containers() {
jQuery(document).ready(function(){ jQuery(document).ready(function(){
get_system();
get_repositories(); get_repositories();
get_deployments(); get_deployments();
get_containers(); get_containers();

View File

@@ -72,11 +72,14 @@ switch ($_GET["op"]) {
if (!empty($arr)) { if (!empty($arr)) {
foreach ($arr as $key=>$data) { foreach ($arr as $key=>$data) {
if ($key=="deployments") { if ($key=="deployments") {
if (count($data["INSTALLED_SERVICES"])) {
foreach ($data["INSTALLED_SERVICES"] as $service_name => $content) { foreach ($data["INSTALLED_SERVICES"] as $service_name => $content) {
//echo base64_decode($content); //echo base64_decode($content);
echo $service_name."<br>"; echo $service_name."<br>";
} }
//redis_remove("$key"); }
else echo "There are no deployments.";
redis_remove("$key");
} }
} }
} }