Parcourir la source

JS注释中移除中文注释

xuxueli il y a 7 ans
Parent
révision
8e0f686431

+ 4 - 4
xxl-job-admin/src/main/webapp/static/js/index.js Voir le fichier

@@ -3,7 +3,7 @@
3 3
  */
4 4
 $(function () {
5 5
 
6
-    // 过滤时间
6
+    // filter Time
7 7
     var _startDate = moment().subtract(1, 'months');    // 默认,最近一月
8 8
     var _endDate = moment();
9 9
     $('#filterTime').daterangepicker({
@@ -43,7 +43,7 @@ $(function () {
43 43
     freshChartDate(_startDate, _endDate);
44 44
 
45 45
     /**
46
-     * 刷新报表
46
+     * fresh Chart Date
47 47
      *
48 48
      * @param startDate
49 49
      * @param endDate
@@ -73,7 +73,7 @@ $(function () {
73 73
     }
74 74
 
75 75
     /**
76
-     * 折线图
76
+     * line Chart Init
77 77
      */
78 78
     function lineChartInit(data) {
79 79
         var option = {
@@ -145,7 +145,7 @@ $(function () {
145 145
     }
146 146
 
147 147
     /**
148
-     * 饼图
148
+     * pie Chart Init
149 149
      */
150 150
     function pieChartInit(data) {
151 151
         var option = {

+ 0 - 6
xxl-job-admin/src/main/webapp/static/js/jobcode.index.1.js Voir le fichier

@@ -1,12 +1,6 @@
1 1
 $(function() {
2 2
 
3 3
 	// init code editor
4
-	/*var codeEditor = CodeMirror.fromTextArea(document.getElementById("glueSource"), {
5
-		mode : "text/x-java",
6
-		lineNumbers : true,
7
-		matchBrackets : true
8
-	});*/
9
-
10 4
 	var codeEditor;
11 5
 	function initIde(glueSource) {
12 6
 		if (codeEditor == null) {

+ 3 - 3
xxl-job-admin/src/main/webapp/static/js/jobgroup.index.1.js Voir le fichier

@@ -35,12 +35,12 @@ $(function() {
35 35
 
36 36
 	});
37 37
 
38
-	// jquery.validate 自定义校验 “英文字母开头,只含有英文字母、数字和下划线
38
+	// jquery.validate “low letters start, limit contants、 letters、numbers and line-through.
39 39
 	jQuery.validator.addMethod("myValid01", function(value, element) {
40 40
 		var length = value.length;
41 41
 		var valid = /^[a-z][a-zA-Z0-9-]*$/;
42 42
 		return this.optional(element) || valid.test(value);
43
-	}, "限制以小写字母开头,由小写字母、数字和划线组成");
43
+	}, "限制以小写字母开头,由小写字母、数字和划线组成");
44 44
 
45 45
 	$('.add').on('click', function(){
46 46
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
@@ -119,7 +119,7 @@ $(function() {
119 119
 		$("#addModal .form .form-group").removeClass("has-error");
120 120
 	});
121 121
 
122
-	// 注册方式,切换
122
+	// addressType change
123 123
 	$("#addModal input[name=addressType], #updateModal input[name=addressType]").click(function(){
124 124
 		var addressType = $(this).val();
125 125
 		var $addressList = $(this).parents("form").find("textarea[name=addressList]");

+ 7 - 13
xxl-job-admin/src/main/webapp/static/js/jobinfo.index.1.js Voir le fichier

@@ -1,4 +1,5 @@
1 1
 $(function() {
2
+
2 3
 	// init date tables
3 4
 	var jobTable = $("#job_list").dataTable({
4 5
 		"deferRender": true,
@@ -19,7 +20,7 @@ $(function() {
19 20
 	    },
20 21
 	    "searching": false,
21 22
 	    "ordering": false,
22
-	    //"scrollX": true,	// X轴滚动条,取消自适应
23
+	    //"scrollX": true,	// scroll x,close self-adaption
23 24
 	    "columns": [
24 25
 	                {
25 26
 	                	"data": 'id',
@@ -170,7 +171,7 @@ $(function() {
170 171
     // table data
171 172
     var tableData = {};
172 173
 
173
-	// 搜索按钮
174
+	// search btn
174 175
 	$('#searchBtn').on('click', function(){
175 176
 		jobTable.fnDraw();
176 177
 	});
@@ -245,15 +246,8 @@ $(function() {
245 246
 			});
246 247
 		});
247 248
 	});
248
-	
249
-	// jquery.validate 自定义校验 “英文字母开头,只含有英文字母、数字和下划线”
250
-	jQuery.validator.addMethod("myValid01", function(value, element) {
251
-		var length = value.length;
252
-		var valid = /^[a-zA-Z][a-zA-Z0-9_]*$/;
253
-		return this.optional(element) || valid.test(value);
254
-	}, "只支持英文字母开头,只含有英文字母、数字和下划线");
255
-	
256
-	// 新增
249
+
250
+	// add
257 251
 	$(".add").click(function(){
258 252
 		$('#addModal').modal({backdrop: false, keyboard: false}).modal('show');
259 253
 	});
@@ -327,7 +321,7 @@ $(function() {
327 321
 	});
328 322
 
329 323
 
330
-    // 运行模式
324
+    // glueType change
331 325
     $(".glueType").change(function(){
332 326
 		// executorHandler
333 327
         var $executorHandler = $(this).parents("form").find("input[name='executorHandler']");
@@ -354,7 +348,7 @@ $(function() {
354 348
 		}
355 349
 	});
356 350
 
357
-	// 更新
351
+	// update
358 352
 	$("#job_list").on('click', '.update',function() {
359 353
 
360 354
         var id = $(this).parent('p').attr("id");

+ 9 - 9
xxl-job-admin/src/main/webapp/static/js/joblog.index.1.js Voir le fichier

@@ -1,6 +1,6 @@
1 1
 $(function() {
2 2
 
3
-	// 任务组列表选中, 任务列表初始化和选中
3
+	// jobGroup change, job list init and select
4 4
 	$("#jobGroup").on("change", function () {
5 5
 		var jobGroup = $(this).children('option:selected').val();
6 6
 		$.ajax({
@@ -33,7 +33,7 @@ $(function() {
33 33
         $("#jobGroup").change();
34 34
 	}
35 35
 
36
-	// 过滤时间
36
+	// filter Time
37 37
 	$('#filterTime').daterangepicker({
38 38
         autoApply:false,
39 39
         singleDatePicker:false,
@@ -221,18 +221,18 @@ $(function() {
221 221
 		}
222 222
 	});
223 223
 	
224
-	// 日志弹框提示
224
+	// logTips alert
225 225
 	$('#joblog_list').on('click', '.logTips', function(){
226 226
 		var msg = $(this).find('span').html();
227 227
 		ComAlertTec.show(msg);
228 228
 	});
229 229
 	
230
-	// 搜索按钮
230
+	// search Btn
231 231
 	$('#searchBtn').on('click', function(){
232 232
 		logTable.fnDraw();
233 233
 	});
234 234
 	
235
-	// 查看执行器详细执行日志
235
+	// logDetail look
236 236
 	$('#joblog_list').on('click', '.logDetail', function(){
237 237
 		var _id = $(this).attr('_id');
238 238
 		
@@ -241,7 +241,7 @@ $(function() {
241 241
 	});
242 242
 
243 243
 	/**
244
-	 * 终止任务
244
+	 * log Kill
245 245
 	 */
246 246
 	$('#joblog_list').on('click', '.logKill', function(){
247 247
 		var _id = $(this).attr('_id');
@@ -278,7 +278,7 @@ $(function() {
278 278
 	});
279 279
 
280 280
 	/**
281
-	 * 清理任务Log
281
+	 * clear Log
282 282
 	 */
283 283
 	$('#clearLog').on('click', function(){
284 284
 
@@ -325,7 +325,7 @@ $(function() {
325 325
 });
326 326
 
327 327
 
328
-// 提示-科技主题
328
+// Com Alert by Tec theme
329 329
 var ComAlertTec = {
330 330
 	html:function(){
331 331
 		var html =
@@ -349,7 +349,7 @@ var ComAlertTec = {
349 349
 			$('body').append(ComAlertTec.html());
350 350
 		}
351 351
 
352
-		// 弹框初始
352
+		// init com alert
353 353
 		$('#ComAlertTec .alert').html(msg);
354 354
 		$('#ComAlertTec').modal('show');
355 355