-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1000 from rokwire/release/1.16.0
Release/1.16.0
- Loading branch information
Showing
16 changed files
with
1,083 additions
and
998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | ||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet"> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> | ||
|
@@ -141,7 +142,14 @@ <h4>Deployment Details</h4> | |
<table> | ||
{% for key,val in envvar.items() %} | ||
<tr> | ||
<td>{{key}}: {{val}}</td> | ||
{% if loop.index %2 == 0 %} | ||
<td>{{key}}:   </td> | ||
<td class="hidetext" style="text-align: center;"> {{val}}</td> | ||
<td>    <i class="bi bi-eye-slash field_icon" id="toggleText" style="cursor: pointer;"></i></td> | ||
{% else %} | ||
<td>{{key}}: </td> | ||
<td>{{val}} </td> | ||
{% endif %} | ||
</tr> | ||
{% endfor %} | ||
</table> | ||
|
@@ -191,7 +199,28 @@ <h4>Deployment Details</h4> | |
if (user_icon.style.display === '') { | ||
document.getElementById("myDropdown").classList.toggle("show"); | ||
} | ||
}) | ||
}); | ||
|
||
// toggle sensitive data visibility | ||
$('.bi').each(function () { | ||
let eye = $(this); | ||
eye.on('click', function() { | ||
let icon = $(this); | ||
icon.toggleClass("bi-eye"); | ||
// get the current row | ||
var current_row = icon.closest("tr"); | ||
// get the current row 2nd cell value | ||
var $cell_value = current_row.find("td:eq(1)"); | ||
if (icon.hasClass('bi-eye')) { | ||
$cell_value.removeClass("hidetext"); | ||
$cell_value.addClass("showtext"); | ||
} | ||
else if (icon.hasClass('bi-eye-slash')) { | ||
$cell_value.removeClass("showtext"); | ||
$cell_value.addClass("hidetext"); | ||
} | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.