chore: update .gitignore

update .gitignore; optimize the style of some files
This commit is contained in:
Frank.R.Wu 2021-12-03 15:27:14 +08:00
parent 5e7ebcacae
commit ce4d24a32d
6 changed files with 91 additions and 90 deletions

2
.gitignore vendored
View File

@ -78,3 +78,5 @@ typings/
# DynamoDB Local files
.dynamodb/
.idea/

View File

@ -1,4 +1,4 @@
<html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Cache-Control" content="no-cache"/>
@ -730,7 +730,8 @@
<div class="input-group-prepend">
<span class="input-group-text" id="ncFile">证书文件地址:</span>
</div>
<input type="text" class="form-control" id="ncFileInput" placeholder="请配置所有准入中心一致的证书并且确保路径准确!">
<input type="text" class="form-control" id="ncFileInput"
placeholder="请配置所有准入中心一致的证书并且确保路径准确!">
<div class='input-group-append'>
<button class='btn btn-outline-secondary' type='button'
id='changeNCFile' onclick='changeNCFile()'>修改
@ -1012,7 +1013,6 @@
//initWSocket();
</script>
</body>
</html>

View File

@ -1,4 +1,4 @@
<html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Cache-Control" content="no-cache"/>
@ -175,7 +175,6 @@
</div>
<!-- Flexbox container for aligning the toasts -->
<div aria-live="polite" aria-atomic="true"
class="d-flex justify-content-center align-items-center"

View File

@ -1,4 +1,4 @@
<html>
<html lang="zh">
<header>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Cache-Control" content="no-cache"/>

View File

@ -1,24 +1,26 @@
var updateResultDisplay = function (obj) {
function updateResultDisplay(obj) {
obj_label = document.getElementById("result");
var jsonData = JSON.stringify(obj);// 转成JSON格式
// var result = $.parseJSON(jsonData);// 转成JSON对象
obj_label.innerHTML = jsonData;
};
var showDialog = function (title, cb) {
}
function showDialog(title, cb) {
$("#dialogTitleH5").html(title);
$("#dialogConfimBtn").off("click").on("click", cb);
$("#dialog").modal("show");
};
}
var updateResultDisplayStr = function (str) {
function updateResultDisplayStr(str) {
obj_label = document.getElementById("result");
obj_label.innerHTML = str;
};
}
var alertNoPermission = function (message, title) {
if ($("#nopermissionSpan").length > 0) {
function alertNoPermission(message, title) {
const noPermissionSpan = $("#nopermissionSpan");
if (noPermissionSpan.length > 0) {
console.log(message + " status:" + $("#dialog")[0].getAttribute("class"));
$("#nopermissionSpan").append("<br/>" + message);
noPermissionSpan.append("<br/>" + message);
} else {
var body = "<div class='row'><div class='col-sm-12'><span id='nopermissionSpan'>";
body += message;
@ -28,5 +30,4 @@ var alertNoPermission = function (message, title) {
$("#dialogBodyDiv").html("");
});
}
return;
};
}

View File

@ -1,4 +1,4 @@
<html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Cache-Control" content="no-cache"/>
@ -89,7 +89,6 @@
</div>
<!-- Flexbox container for aligning the toasts -->
<div aria-live="polite" aria-atomic="true"
class="d-flex justify-content-center align-items-center"