domain和url域新增时增加警告提示信息【后期需在审核时也增加此警告】。
保护名单信息杨威提供后,再进行完善
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
#修改proxy的缓存 url region字典,标记为url配置,用作保护名单的提醒
|
||||
update function_region_dict set config_service_type='cache_url' where dict_id=604;
|
||||
@@ -85,7 +85,7 @@
|
||||
<!-- 此配置的关键词可以输入多个关键词 -->
|
||||
<c:if test="${region.configMultiKeywords eq 1}">
|
||||
<div class="col-md-6">
|
||||
<input class="form-control required tags" type="text" id="tags_${tabName}${status.index}"
|
||||
<input class="form-control required tags <c:if test="${fn:containsIgnoreCase(region.configServiceType,'domain') }"> domainCheck </c:if> <c:if test="${fn:containsIgnoreCase(region.configServiceType,'url') }"> urlCheck </c:if>" type="text" id="tags_${tabName}${status.index}"
|
||||
name="${cfgName}.cfgKeywords"
|
||||
value="${cfg.cfgKeywords}">
|
||||
</div>
|
||||
@@ -96,6 +96,7 @@
|
||||
|
||||
<input class="form-control required invisibleChar
|
||||
<c:if test="${fn:containsIgnoreCase(region.configServiceType,'domain') }"> domainCheck </c:if>
|
||||
<c:if test="${fn:containsIgnoreCase(region.configServiceType,'url') }"> urlCheck </c:if>
|
||||
"
|
||||
type="text"
|
||||
name="${cfgName}.cfgKeywords"
|
||||
|
||||
@@ -87,6 +87,8 @@
|
||||
noStrategyCheck:"No effective spoofing IP configuration",
|
||||
keywordLength:"Please enter a value between 4 and 1024 characters long.",
|
||||
arbitrary:"Arbitrarily",
|
||||
log_trend:"Log Trend"
|
||||
log_trend:"Log Trend",
|
||||
info:"Prompt",
|
||||
protect_warn:"Warning!"
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
@@ -87,6 +87,8 @@
|
||||
noStrategyCheck:"Нет актированной конфигурации IP-спуфинг.",
|
||||
keywordLength:"Введите между 4 и 1024 символов длинной.",
|
||||
arbitrary:"Любой",
|
||||
log_trend:"Журнал Тенденция"
|
||||
log_trend:"Журнал Тенденция",
|
||||
info:"Инфо",
|
||||
protect_warn:"Warning!"
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
@@ -87,6 +87,8 @@
|
||||
noStrategyCheck:"策略组下无有效的欺骗IP配置",
|
||||
keywordLength:"请输入一个长度介于4 和1024 之间的字符串",
|
||||
arbitrary:"任意",
|
||||
log_trend:"日志趋势"
|
||||
log_trend:"日志趋势",
|
||||
info:"提示",
|
||||
protect_warn:"Warning!"
|
||||
});
|
||||
}(jQuery));
|
||||
|
||||
@@ -1,4 +1,11 @@
|
||||
$(function(){
|
||||
var protectedList = [".com"];
|
||||
$(".domainCheck").each(function(){
|
||||
$(this).on("blur",function(){
|
||||
protectedListWarn(this,$(this).val(),protectedList);
|
||||
});
|
||||
protectedListWarn(this,$(this).val(),protectedList);
|
||||
});
|
||||
// var leff =$("span[class~='le-ca-fo']").attr("data-original-title")
|
||||
// getConfigSyncStatus();
|
||||
$("#contentTable").not(".logTb").find("tbody tr").each(function(i){
|
||||
@@ -429,6 +436,9 @@ $(function(){
|
||||
});
|
||||
$(this).prev("input[name$='cfgKeywords']").val(keywordValue);*/
|
||||
exprTypeChecked(objNamePrefix,size,options);
|
||||
if($(this).hasClass("urlCheck")){
|
||||
protectedListWarn($("#"+$(this).attr("id")+"_tagsinput"),$(this).val(),protectedList);
|
||||
}
|
||||
},
|
||||
onRemoveTag:function(tag,size){
|
||||
$(this).parent(".col-md-6").next("div").html("");
|
||||
@@ -439,6 +449,9 @@ $(function(){
|
||||
});
|
||||
$(this).prev("input[name$='cfgKeywords']").val(keywordValue);*/
|
||||
exprTypeChecked(objNamePrefix,size,options);
|
||||
if($(this).hasClass("urlCheck")){
|
||||
protectedListWarn($("#"+$(this).attr("id")+"_tagsinput"),$(this).val(),protectedList);
|
||||
}
|
||||
}
|
||||
});
|
||||
$(".tagsinput").popover({
|
||||
@@ -1705,3 +1718,14 @@ function addPrintTableCss(rowValue,cellValue,tableIdValue,cssName){
|
||||
}
|
||||
}
|
||||
}
|
||||
/**保护名单提醒**/
|
||||
function protectedListWarn(obj,value,protectedList){
|
||||
$(obj).next(".fa-warning").remove();
|
||||
if(value !=null){
|
||||
if(protectedList.indexOf(value) >= 0){
|
||||
//$(obj).after("<i class='fa fa-warning font-red-flamingo'>"+$.validator.messages.protect_warn+"</i>");
|
||||
$.jBox.info($.validator.messages.protect_warn,$.validator.messages.info);
|
||||
$('.jbox-body .jbox-icon').css('top','55px');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user