diff --git a/admin/.editorconfig b/admin/.editorconfig new file mode 100644 index 00000000..3454886e --- /dev/null +++ b/admin/.editorconfig @@ -0,0 +1,14 @@ +# https://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +insert_final_newline = false +trim_trailing_whitespace = false diff --git a/admin/mock/role/routes.js b/admin/mock/role/routes.js index 92208096..c0581f50 100644 --- a/admin/mock/role/routes.js +++ b/admin/mock/role/routes.js @@ -384,13 +384,13 @@ export const asyncRoutes = [ }, { - path: '/error-log', + path: '/error-integralLog', component: 'layout/Layout', redirect: 'noRedirect', children: [ { path: 'log', - component: 'views/error-log/index', + component: 'views/error-integralLog/index', name: 'ErrorLog', meta: { title: 'Error Log', icon: 'bug' } } diff --git a/admin/public/UEditor/dialogs/wordimage/tangram.js b/admin/public/UEditor/dialogs/wordimage/tangram.js index 2ebd8fd3..c7676ba1 100644 --- a/admin/public/UEditor/dialogs/wordimage/tangram.js +++ b/admin/public/UEditor/dialogs/wordimage/tangram.js @@ -1217,7 +1217,7 @@ baidu.sio.callByServer = /**@function*/function(url, callback, opt_options) { /** * 通过请求一个图片的方式令服务器存储一条日志 * @function - * @grammar baidu.sio.log(url) + * @grammar baidu.sio.integralLog(url) * @param {string} url 要发送的地址. * @author: int08h,leeight */ diff --git a/admin/public/UEditor/third-party/SyntaxHighlighter/shCore.js b/admin/public/UEditor/third-party/SyntaxHighlighter/shCore.js index 32491842..ef9e3bf8 100644 --- a/admin/public/UEditor/third-party/SyntaxHighlighter/shCore.js +++ b/admin/public/UEditor/third-party/SyntaxHighlighter/shCore.js @@ -2657,7 +2657,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter : var functions = 'assert isalnum isalpha iscntrl isdigit isgraph islower isprint' + 'ispunct isspace isupper isxdigit tolower toupper errno localeconv ' + 'setlocale acos asin atan atan2 ceil cos cosh exp fabs floor fmod ' + - 'frexp ldexp log log10 modf pow sin sinh sqrt tan tanh jmp_buf ' + + 'frexp ldexp integralLog log10 modf pow sin sinh sqrt tan tanh jmp_buf ' + 'longjmp setjmp raise signal sig_atomic_t va_arg va_end va_start ' + 'clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen ' + 'fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell ' + @@ -3104,7 +3104,7 @@ typeof(exports) != 'undefined' ? exports.SyntaxHighlighter = SyntaxHighlighter : 'getprotobyname getprotobynumber getprotoent getpwent getpwnam getpwuid ' + 'getservbyname getservbyport getservent getsockname getsockopt glob ' + 'gmtime grep hex index int ioctl join keys kill lc lcfirst length link ' + - 'listen localtime lock log lstat map mkdir msgctl msgget msgrcv msgsnd ' + + 'listen localtime lock integralLog lstat map mkdir msgctl msgget msgrcv msgsnd ' + 'oct open opendir ord pack pipe pop pos print printf prototype push ' + 'quotemeta rand read readdir readline readlink readpipe recv rename ' + 'reset reverse rewinddir rindex rmdir scalar seek seekdir select semctl ' + diff --git a/admin/public/UEditor/third-party/highcharts/highcharts.src.js b/admin/public/UEditor/third-party/highcharts/highcharts.src.js index a29b0fad..940a8ae3 100644 --- a/admin/public/UEditor/third-party/highcharts/highcharts.src.js +++ b/admin/public/UEditor/third-party/highcharts/highcharts.src.js @@ -7013,13 +7013,13 @@ Axis.prototype = { val = val * sign + cvsOffset; val -= minPixelPadding; returnValue = val / localA + localMin; // from chart pixel to value - if (postTranslate) { // log and ordinal axes + if (postTranslate) { // integralLog and ordinal axes returnValue = axis.lin2val(returnValue); } // From value to pixels } else { - if (postTranslate) { // log and ordinal axes + if (postTranslate) { // integralLog and ordinal axes val = axis.val2lin(val); } if (pointPlacement === 'between') { @@ -7487,7 +7487,7 @@ Axis.prototype = { if (isLog) { if (!secondPass && mathMin(axis.min, pick(axis.dataMin, axis.min)) <= 0) { // #978 - error(10, 1); // Can't plot negative values on log axis + error(10, 1); // Can't plot negative values on integralLog axis } axis.min = correctFloat(log2lin(axis.min)); // correctFloat cures #934 axis.max = correctFloat(log2lin(axis.max)); @@ -8039,7 +8039,7 @@ Axis.prototype = { lineNo = i % autoStaggerLines; if (w) { - x = axis.translate(pos); // don't handle log + x = axis.translate(pos); // don't handle integralLog if (lastRight[lineNo] !== UNDEFINED && x < lastRight[lineNo]) { overlap = true; } @@ -13596,7 +13596,7 @@ Series.prototype = { yDataLength = yData.length, activeYData = [], activeCounter = 0, - xExtremes = xAxis.getExtremes(), // #2117, need to compensate for log X axis + xExtremes = xAxis.getExtremes(), // #2117, need to compensate for integralLog X axis xMin = xExtremes.min, xMax = xExtremes.max, validValue, @@ -13671,7 +13671,7 @@ Series.prototype = { pointStack, stackValues; - // Discard disallowed y values for log axes + // Discard disallowed y values for integralLog axes if (yAxis.isLog && yValue <= 0) { point.y = yValue = null; } diff --git a/admin/public/UEditor/third-party/video-js/video.dev.js b/admin/public/UEditor/third-party/video-js/video.dev.js index d01ea600..a7cef1ef 100644 --- a/admin/public/UEditor/third-party/video-js/video.dev.js +++ b/admin/public/UEditor/third-party/video-js/video.dev.js @@ -1247,7 +1247,7 @@ vjs.getAbsoluteURL = function(url){ return url; }; -// usage: log('inside coolFunc',this,arguments); +// usage: integralLog('inside coolFunc',this,arguments); // http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ vjs.log = function(){ vjs.log.history = vjs.log.history || []; // store logs to an array for reference @@ -1312,7 +1312,7 @@ vjs.findPosition = function(el) { * Components are also event emitters. * * button.on('click', function(){ - * console.log('Button Clicked!'); + * console.integralLog('Button Clicked!'); * }); * * button.trigger('customevent'); @@ -2984,13 +2984,13 @@ vjs.Player.prototype.unloadTech = function(){ // Then with the new fullscreen API, Mozilla and webkit browsers will reload the flash object after going to fullscreen. // To get around this, we're unloading the tech, caching source and currentTime values, and reloading the tech once the plugin is resized. // reloadTech: function(betweenFn){ -// vjs.log('unloadingTech') +// vjs.integralLog('unloadingTech') // this.unloadTech(); -// vjs.log('unloadedTech') +// vjs.integralLog('unloadedTech') // if (betweenFn) { betweenFn.call(); } -// vjs.log('LoadingTech') +// vjs.integralLog('LoadingTech') // this.loadTech(this.techName, { src: this.cache_.src }) -// vjs.log('loadedTech') +// vjs.integralLog('loadedTech') // }, /* Fallbacks for unsupported event types @@ -3026,7 +3026,7 @@ vjs.Player.prototype.trackProgress = function(){ this.progressInterval = setInterval(vjs.bind(this, function(){ // Don't trigger unless buffered amount is greater than last time - // log(this.cache_.bufferEnd, this.buffered().end(0), this.duration()) + // integralLog(this.cache_.bufferEnd, this.buffered().end(0), this.duration()) /* TODO: update for multiple buffered regions */ if (this.cache_.bufferEnd < this.buffered().end(0)) { this.trigger('progress'); @@ -6941,7 +6941,7 @@ vjs.ChaptersTrackMenuItem.prototype.update = function(){ var cue = this.cue, currentTime = this.player_.currentTime(); - // vjs.log(currentTime, cue.startTime); + // vjs.integralLog(currentTime, cue.startTime); this.selected(cue.startTime <= currentTime && currentTime < cue.endTime); }; diff --git a/admin/public/UEditor/third-party/webuploader/webuploader.custom.js b/admin/public/UEditor/third-party/webuploader/webuploader.custom.js index 583a0b82..122072aa 100644 --- a/admin/public/UEditor/third-party/webuploader/webuploader.custom.js +++ b/admin/public/UEditor/third-party/webuploader/webuploader.custom.js @@ -306,15 +306,15 @@ * @return {Class} 返回子类。 * @example * function Person() { - * console.log( 'Super' ); + * console.integralLog( 'Super' ); * } * Person.prototype.hello = function() { - * console.log( 'hello' ); + * console.integralLog( 'hello' ); * }; * * var Manager = Base.inherits( Person, { * world: function() { - * console.log( 'World' ); + * console.integralLog( 'World' ); * } * }); * @@ -326,7 +326,7 @@ * instance.world(); // => World * * // 子类的__super__属性指向父类 - * console.log( Manager.__super__ === Person ); // => true + * console.integralLog( Manager.__super__ === Person ); // => true */ inherits: function( Super, protos, staticProtos ) { var child; @@ -370,7 +370,7 @@ * @method bindFn * @example * var doSomething = function() { - * console.log( this.name ); + * console.integralLog( this.name ); * }, * obj = { * name: 'Object Name' @@ -383,9 +383,9 @@ bindFn: bindFn, /** - * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。 - * @grammar Base.log( args... ) => undefined - * @method log + * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。 + * @grammar Base.integralLog( args... ) => undefined + * @method integralLog */ log: (function() { if ( window.console ) { @@ -420,7 +420,7 @@ * @example * function doSomthing() { * var args = Base.slice( arguments, 1 ); - * console.log( args ); + * console.integralLog( args ); * } * * doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"] @@ -458,12 +458,12 @@ * @param {Number} [pointLength=2] 精确到的小数点数。 * @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K. * @example - * console.log( Base.formatSize( 100 ) ); // => 100B - * console.log( Base.formatSize( 1024 ) ); // => 1.00K - * console.log( Base.formatSize( 1024, 0 ) ); // => 1K - * console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M - * console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G - * console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB + * console.integralLog( Base.formatSize( 100 ) ); // => 100B + * console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K + * console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K + * console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB */ formatSize: function( size, pointLength, units ) { var unit; @@ -540,7 +540,7 @@ * Mediator.installTo( obj ); * * obj.on( 'testa', function( arg1, arg2 ) { - * console.log( arg1, arg2 ); // => 'arg1', 'arg2' + * console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2' * }); * * obj.trigger( 'testa', 'arg1', 'arg2' ); @@ -553,7 +553,7 @@ * 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。 * ```javascript * obj.on( 'all', function( type, arg1, arg2 ) { - * console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' + * console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' * }); * ``` * @@ -2625,8 +2625,8 @@ * @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。 * @for Uploader * @example - * console.log( uploader.getFiles() ); // => all files - * console.log( uploader.getFiles('error') ) // => all error files. + * console.integralLog( uploader.getFiles() ); // => all files + * console.integralLog( uploader.getFiles('error') ) // => all error files. */ getFiles: function() { return this.queue.getFiles.apply( this.queue, arguments ); @@ -4198,7 +4198,7 @@ // i, // b; // if (!length || offset + length > dataView.byteLength) { - // Base.log('Invalid Exif data: Invalid thumbnail data.'); + // Base.integralLog('Invalid Exif data: Invalid thumbnail data.'); // return; // } // hexData = []; @@ -5376,7 +5376,7 @@ // benchmarking // var duration = new Date().getTime() - time_start; - // console.log('Encoding time: '+ currentQuality + 'ms'); + // console.integralLog('Encoding time: '+ currentQuality + 'ms'); // return jpegDataUri @@ -5401,7 +5401,7 @@ initQuantTables(sf); currentQuality = quality; - // console.log('Quality set to: '+quality +'%'); + // console.integralLog('Quality set to: '+quality +'%'); } function init(){ @@ -5415,7 +5415,7 @@ setQuality(quality); // var duration = new Date().getTime() - time_start; - // console.log('Initialization '+ duration + 'ms'); + // console.integralLog('Initialization '+ duration + 'ms'); } init(); diff --git a/admin/public/UEditor/third-party/webuploader/webuploader.flashonly.js b/admin/public/UEditor/third-party/webuploader/webuploader.flashonly.js index 10f44969..c6d188fc 100644 --- a/admin/public/UEditor/third-party/webuploader/webuploader.flashonly.js +++ b/admin/public/UEditor/third-party/webuploader/webuploader.flashonly.js @@ -306,15 +306,15 @@ * @return {Class} 返回子类。 * @example * function Person() { - * console.log( 'Super' ); + * console.integralLog( 'Super' ); * } * Person.prototype.hello = function() { - * console.log( 'hello' ); + * console.integralLog( 'hello' ); * }; * * var Manager = Base.inherits( Person, { * world: function() { - * console.log( 'World' ); + * console.integralLog( 'World' ); * } * }); * @@ -326,7 +326,7 @@ * instance.world(); // => World * * // 子类的__super__属性指向父类 - * console.log( Manager.__super__ === Person ); // => true + * console.integralLog( Manager.__super__ === Person ); // => true */ inherits: function( Super, protos, staticProtos ) { var child; @@ -370,7 +370,7 @@ * @method bindFn * @example * var doSomething = function() { - * console.log( this.name ); + * console.integralLog( this.name ); * }, * obj = { * name: 'Object Name' @@ -383,9 +383,9 @@ bindFn: bindFn, /** - * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。 - * @grammar Base.log( args... ) => undefined - * @method log + * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。 + * @grammar Base.integralLog( args... ) => undefined + * @method integralLog */ log: (function() { if ( window.console ) { @@ -420,7 +420,7 @@ * @example * function doSomthing() { * var args = Base.slice( arguments, 1 ); - * console.log( args ); + * console.integralLog( args ); * } * * doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"] @@ -458,12 +458,12 @@ * @param {Number} [pointLength=2] 精确到的小数点数。 * @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K. * @example - * console.log( Base.formatSize( 100 ) ); // => 100B - * console.log( Base.formatSize( 1024 ) ); // => 1.00K - * console.log( Base.formatSize( 1024, 0 ) ); // => 1K - * console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M - * console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G - * console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB + * console.integralLog( Base.formatSize( 100 ) ); // => 100B + * console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K + * console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K + * console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB */ formatSize: function( size, pointLength, units ) { var unit; @@ -540,7 +540,7 @@ * Mediator.installTo( obj ); * * obj.on( 'testa', function( arg1, arg2 ) { - * console.log( arg1, arg2 ); // => 'arg1', 'arg2' + * console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2' * }); * * obj.trigger( 'testa', 'arg1', 'arg2' ); @@ -553,7 +553,7 @@ * 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。 * ```javascript * obj.on( 'all', function( type, arg1, arg2 ) { - * console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' + * console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' * }); * ``` * @@ -2625,8 +2625,8 @@ * @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。 * @for Uploader * @example - * console.log( uploader.getFiles() ); // => all files - * console.log( uploader.getFiles('error') ) // => all error files. + * console.integralLog( uploader.getFiles() ); // => all files + * console.integralLog( uploader.getFiles('error') ) // => all error files. */ getFiles: function() { return this.queue.getFiles.apply( this.queue, arguments ); @@ -3853,7 +3853,7 @@ uid = parts[ 0 ]; type = parts[ 1 ]; - // console.log.apply( console, arguments ); + // console.integralLog.apply( console, arguments ); if ( type === 'Ready' && uid === me.uid ) { me.trigger('ready'); @@ -3861,7 +3861,7 @@ clients[ uid ].trigger( type.toLowerCase(), evt, obj ); } - // Base.log( evt, obj ); + // Base.integralLog( evt, obj ); } // flash的接受器。 diff --git a/admin/public/UEditor/third-party/webuploader/webuploader.html5only.js b/admin/public/UEditor/third-party/webuploader/webuploader.html5only.js index 5dd48137..71a061c8 100644 --- a/admin/public/UEditor/third-party/webuploader/webuploader.html5only.js +++ b/admin/public/UEditor/third-party/webuploader/webuploader.html5only.js @@ -306,15 +306,15 @@ * @return {Class} 返回子类。 * @example * function Person() { - * console.log( 'Super' ); + * console.integralLog( 'Super' ); * } * Person.prototype.hello = function() { - * console.log( 'hello' ); + * console.integralLog( 'hello' ); * }; * * var Manager = Base.inherits( Person, { * world: function() { - * console.log( 'World' ); + * console.integralLog( 'World' ); * } * }); * @@ -326,7 +326,7 @@ * instance.world(); // => World * * // 子类的__super__属性指向父类 - * console.log( Manager.__super__ === Person ); // => true + * console.integralLog( Manager.__super__ === Person ); // => true */ inherits: function( Super, protos, staticProtos ) { var child; @@ -370,7 +370,7 @@ * @method bindFn * @example * var doSomething = function() { - * console.log( this.name ); + * console.integralLog( this.name ); * }, * obj = { * name: 'Object Name' @@ -383,9 +383,9 @@ bindFn: bindFn, /** - * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。 - * @grammar Base.log( args... ) => undefined - * @method log + * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。 + * @grammar Base.integralLog( args... ) => undefined + * @method integralLog */ log: (function() { if ( window.console ) { @@ -420,7 +420,7 @@ * @example * function doSomthing() { * var args = Base.slice( arguments, 1 ); - * console.log( args ); + * console.integralLog( args ); * } * * doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"] @@ -458,12 +458,12 @@ * @param {Number} [pointLength=2] 精确到的小数点数。 * @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K. * @example - * console.log( Base.formatSize( 100 ) ); // => 100B - * console.log( Base.formatSize( 1024 ) ); // => 1.00K - * console.log( Base.formatSize( 1024, 0 ) ); // => 1K - * console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M - * console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G - * console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB + * console.integralLog( Base.formatSize( 100 ) ); // => 100B + * console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K + * console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K + * console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB */ formatSize: function( size, pointLength, units ) { var unit; @@ -540,7 +540,7 @@ * Mediator.installTo( obj ); * * obj.on( 'testa', function( arg1, arg2 ) { - * console.log( arg1, arg2 ); // => 'arg1', 'arg2' + * console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2' * }); * * obj.trigger( 'testa', 'arg1', 'arg2' ); @@ -553,7 +553,7 @@ * 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。 * ```javascript * obj.on( 'all', function( type, arg1, arg2 ) { - * console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' + * console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' * }); * ``` * @@ -2819,8 +2819,8 @@ * @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。 * @for Uploader * @example - * console.log( uploader.getFiles() ); // => all files - * console.log( uploader.getFiles('error') ) // => all error files. + * console.integralLog( uploader.getFiles() ); // => all files + * console.integralLog( uploader.getFiles('error') ) // => all error files. */ getFiles: function() { return this.queue.getFiles.apply( this.queue, arguments ); @@ -4872,7 +4872,7 @@ // i, // b; // if (!length || offset + length > dataView.byteLength) { - // Base.log('Invalid Exif data: Invalid thumbnail data.'); + // Base.integralLog('Invalid Exif data: Invalid thumbnail data.'); // return; // } // hexData = []; diff --git a/admin/public/UEditor/third-party/webuploader/webuploader.js b/admin/public/UEditor/third-party/webuploader/webuploader.js index 39d9351a..72a9e7fa 100644 --- a/admin/public/UEditor/third-party/webuploader/webuploader.js +++ b/admin/public/UEditor/third-party/webuploader/webuploader.js @@ -306,15 +306,15 @@ * @return {Class} 返回子类。 * @example * function Person() { - * console.log( 'Super' ); + * console.integralLog( 'Super' ); * } * Person.prototype.hello = function() { - * console.log( 'hello' ); + * console.integralLog( 'hello' ); * }; * * var Manager = Base.inherits( Person, { * world: function() { - * console.log( 'World' ); + * console.integralLog( 'World' ); * } * }); * @@ -326,7 +326,7 @@ * instance.world(); // => World * * // 子类的__super__属性指向父类 - * console.log( Manager.__super__ === Person ); // => true + * console.integralLog( Manager.__super__ === Person ); // => true */ inherits: function( Super, protos, staticProtos ) { var child; @@ -370,7 +370,7 @@ * @method bindFn * @example * var doSomething = function() { - * console.log( this.name ); + * console.integralLog( this.name ); * }, * obj = { * name: 'Object Name' @@ -383,9 +383,9 @@ bindFn: bindFn, /** - * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。 - * @grammar Base.log( args... ) => undefined - * @method log + * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。 + * @grammar Base.integralLog( args... ) => undefined + * @method integralLog */ log: (function() { if ( window.console ) { @@ -420,7 +420,7 @@ * @example * function doSomthing() { * var args = Base.slice( arguments, 1 ); - * console.log( args ); + * console.integralLog( args ); * } * * doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"] @@ -458,12 +458,12 @@ * @param {Number} [pointLength=2] 精确到的小数点数。 * @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K. * @example - * console.log( Base.formatSize( 100 ) ); // => 100B - * console.log( Base.formatSize( 1024 ) ); // => 1.00K - * console.log( Base.formatSize( 1024, 0 ) ); // => 1K - * console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M - * console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G - * console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB + * console.integralLog( Base.formatSize( 100 ) ); // => 100B + * console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K + * console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K + * console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB */ formatSize: function( size, pointLength, units ) { var unit; @@ -540,7 +540,7 @@ * Mediator.installTo( obj ); * * obj.on( 'testa', function( arg1, arg2 ) { - * console.log( arg1, arg2 ); // => 'arg1', 'arg2' + * console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2' * }); * * obj.trigger( 'testa', 'arg1', 'arg2' ); @@ -553,7 +553,7 @@ * 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。 * ```javascript * obj.on( 'all', function( type, arg1, arg2 ) { - * console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' + * console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' * }); * ``` * @@ -2819,8 +2819,8 @@ * @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。 * @for Uploader * @example - * console.log( uploader.getFiles() ); // => all files - * console.log( uploader.getFiles('error') ) // => all error files. + * console.integralLog( uploader.getFiles() ); // => all files + * console.integralLog( uploader.getFiles('error') ) // => all error files. */ getFiles: function() { return this.queue.getFiles.apply( this.queue, arguments ); @@ -4872,7 +4872,7 @@ // i, // b; // if (!length || offset + length > dataView.byteLength) { - // Base.log('Invalid Exif data: Invalid thumbnail data.'); + // Base.integralLog('Invalid Exif data: Invalid thumbnail data.'); // return; // } // hexData = []; @@ -5657,7 +5657,7 @@ // benchmarking // var duration = new Date().getTime() - time_start; - // console.log('Encoding time: '+ currentQuality + 'ms'); + // console.integralLog('Encoding time: '+ currentQuality + 'ms'); // return jpegDataUri @@ -5682,7 +5682,7 @@ initQuantTables(sf); currentQuality = quality; - // console.log('Quality set to: '+quality +'%'); + // console.integralLog('Quality set to: '+quality +'%'); } function init(){ @@ -5696,7 +5696,7 @@ setQuality(quality); // var duration = new Date().getTime() - time_start; - // console.log('Initialization '+ duration + 'ms'); + // console.integralLog('Initialization '+ duration + 'ms'); } init(); @@ -6399,7 +6399,7 @@ uid = parts[ 0 ]; type = parts[ 1 ]; - // console.log.apply( console, arguments ); + // console.integralLog.apply( console, arguments ); if ( type === 'Ready' && uid === me.uid ) { me.trigger('ready'); @@ -6407,7 +6407,7 @@ clients[ uid ].trigger( type.toLowerCase(), evt, obj ); } - // Base.log( evt, obj ); + // Base.integralLog( evt, obj ); } // flash的接受器。 diff --git a/admin/public/UEditor/third-party/webuploader/webuploader.withoutimage.js b/admin/public/UEditor/third-party/webuploader/webuploader.withoutimage.js index 1b921c3a..29d7ba5f 100644 --- a/admin/public/UEditor/third-party/webuploader/webuploader.withoutimage.js +++ b/admin/public/UEditor/third-party/webuploader/webuploader.withoutimage.js @@ -306,15 +306,15 @@ * @return {Class} 返回子类。 * @example * function Person() { - * console.log( 'Super' ); + * console.integralLog( 'Super' ); * } * Person.prototype.hello = function() { - * console.log( 'hello' ); + * console.integralLog( 'hello' ); * }; * * var Manager = Base.inherits( Person, { * world: function() { - * console.log( 'World' ); + * console.integralLog( 'World' ); * } * }); * @@ -326,7 +326,7 @@ * instance.world(); // => World * * // 子类的__super__属性指向父类 - * console.log( Manager.__super__ === Person ); // => true + * console.integralLog( Manager.__super__ === Person ); // => true */ inherits: function( Super, protos, staticProtos ) { var child; @@ -370,7 +370,7 @@ * @method bindFn * @example * var doSomething = function() { - * console.log( this.name ); + * console.integralLog( this.name ); * }, * obj = { * name: 'Object Name' @@ -383,9 +383,9 @@ bindFn: bindFn, /** - * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.log)。 - * @grammar Base.log( args... ) => undefined - * @method log + * 引用Console.log如果存在的话,否则引用一个[空函数loop](#WebUploader:Base.integralLog)。 + * @grammar Base.integralLog( args... ) => undefined + * @method integralLog */ log: (function() { if ( window.console ) { @@ -420,7 +420,7 @@ * @example * function doSomthing() { * var args = Base.slice( arguments, 1 ); - * console.log( args ); + * console.integralLog( args ); * } * * doSomthing( 'ignored', 'arg2', 'arg3' ); // => Array ["arg2", "arg3"] @@ -458,12 +458,12 @@ * @param {Number} [pointLength=2] 精确到的小数点数。 * @param {Array} [units=[ 'B', 'K', 'M', 'G', 'TB' ]] 单位数组。从字节,到千字节,一直往上指定。如果单位数组里面只指定了到了K(千字节),同时文件大小大于M, 此方法的输出将还是显示成多少K. * @example - * console.log( Base.formatSize( 100 ) ); // => 100B - * console.log( Base.formatSize( 1024 ) ); // => 1.00K - * console.log( Base.formatSize( 1024, 0 ) ); // => 1K - * console.log( Base.formatSize( 1024 * 1024 ) ); // => 1.00M - * console.log( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G - * console.log( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB + * console.integralLog( Base.formatSize( 100 ) ); // => 100B + * console.integralLog( Base.formatSize( 1024 ) ); // => 1.00K + * console.integralLog( Base.formatSize( 1024, 0 ) ); // => 1K + * console.integralLog( Base.formatSize( 1024 * 1024 ) ); // => 1.00M + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024 ) ); // => 1.00G + * console.integralLog( Base.formatSize( 1024 * 1024 * 1024, 0, ['B', 'KB', 'MB'] ) ); // => 1024MB */ formatSize: function( size, pointLength, units ) { var unit; @@ -540,7 +540,7 @@ * Mediator.installTo( obj ); * * obj.on( 'testa', function( arg1, arg2 ) { - * console.log( arg1, arg2 ); // => 'arg1', 'arg2' + * console.integralLog( arg1, arg2 ); // => 'arg1', 'arg2' * }); * * obj.trigger( 'testa', 'arg1', 'arg2' ); @@ -553,7 +553,7 @@ * 就是第一个参数为`type`,记录当前是什么事件在触发。此类`callback`的优先级比脚低,会再正常`callback`执行完后触发。 * ```javascript * obj.on( 'all', function( type, arg1, arg2 ) { - * console.log( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' + * console.integralLog( type, arg1, arg2 ); // => 'testa', 'arg1', 'arg2' * }); * ``` * @@ -2453,8 +2453,8 @@ * @description 返回指定状态的文件集合,不传参数将返回所有状态的文件。 * @for Uploader * @example - * console.log( uploader.getFiles() ); // => all files - * console.log( uploader.getFiles('error') ) // => all error files. + * console.integralLog( uploader.getFiles() ); // => all files + * console.integralLog( uploader.getFiles('error') ) // => all error files. */ getFiles: function() { return this.queue.getFiles.apply( this.queue, arguments ); @@ -4291,7 +4291,7 @@ uid = parts[ 0 ]; type = parts[ 1 ]; - // console.log.apply( console, arguments ); + // console.integralLog.apply( console, arguments ); if ( type === 'Ready' && uid === me.uid ) { me.trigger('ready'); @@ -4299,7 +4299,7 @@ clients[ uid ].trigger( type.toLowerCase(), evt, obj ); } - // Base.log( evt, obj ); + // Base.integralLog( evt, obj ); } // flash的接受器。 diff --git a/admin/public/UEditor/ueditor.all.js b/admin/public/UEditor/ueditor.all.js index ff41942e..f59aa0e4 100644 --- a/admin/public/UEditor/ueditor.all.js +++ b/admin/public/UEditor/ueditor.all.js @@ -51,7 +51,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.ie ) { - * console.log( '当前浏览器是IE' ); + * console.integralLog( '当前浏览器是IE' ); * } * ``` */ @@ -62,7 +62,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.opera ) { - * console.log( '当前浏览器是Opera' ); + * console.integralLog( '当前浏览器是Opera' ); * } * ``` */ @@ -73,7 +73,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.webkit ) { - * console.log( '当前浏览器是webkit内核浏览器' ); + * console.integralLog( '当前浏览器是webkit内核浏览器' ); * } * ``` */ @@ -84,7 +84,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.mac ) { - * console.log( '当前浏览器运行在mac平台下' ); + * console.integralLog( '当前浏览器运行在mac平台下' ); * } * ``` */ @@ -95,7 +95,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.quirks ) { - * console.log( '当前浏览器运行处于“怪异模式”' ); + * console.integralLog( '当前浏览器运行处于“怪异模式”' ); * } * ``` */ @@ -107,7 +107,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.gecko ) { - * console.log( '当前浏览器内核是gecko内核' ); + * console.integralLog( '当前浏览器内核是gecko内核' ); * } * ``` */ @@ -137,7 +137,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.ie9Compat ) { - * console.log( '当前浏览器运行在IE9兼容模式下' ); + * console.integralLog( '当前浏览器运行在IE9兼容模式下' ); * } * ``` */ @@ -149,7 +149,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.ie8 ) { - * console.log( '当前浏览器是IE8浏览器' ); + * console.integralLog( '当前浏览器是IE8浏览器' ); * } * ``` */ @@ -161,7 +161,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.ie8Compat ) { - * console.log( '当前浏览器运行在IE8兼容模式下' ); + * console.integralLog( '当前浏览器运行在IE8兼容模式下' ); * } * ``` */ @@ -173,7 +173,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.ie7Compat ) { - * console.log( '当前浏览器运行在IE7兼容模式下' ); + * console.integralLog( '当前浏览器运行在IE7兼容模式下' ); * } * ``` */ @@ -186,7 +186,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.ie6Compat ) { - * console.log( '当前浏览器运行在IE6模式或者怪异模式下' ); + * console.integralLog( '当前浏览器运行在IE6模式或者怪异模式下' ); * } * ``` */ @@ -218,7 +218,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.chrome ) { - * console.log( '当前浏览器是Chrome' ); + * console.integralLog( '当前浏览器是Chrome' ); * } * ``` */ @@ -232,7 +232,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.safari ) { - * console.log( '当前浏览器是Safari' ); + * console.integralLog( '当前浏览器是Safari' ); * } * ``` */ @@ -259,7 +259,7 @@ var browser = UE.browser = function(){ * * @example * ```javascript - * console.log( '当前浏览器版本号是: ' + UE.browser.version ); + * console.integralLog( '当前浏览器版本号是: ' + UE.browser.version ); * ``` */ browser.version = version; @@ -269,7 +269,7 @@ var browser = UE.browser = function(){ * @example * ```javascript * if ( UE.browser.isCompatible ) { - * console.log( '浏览器与UEditor能够良好兼容' ); + * console.integralLog( '浏览器与UEditor能够良好兼容' ); * } * ``` */ @@ -320,7 +320,7 @@ var utils = UE.utils = { * //output: key1: 1, key2: 2 * UE.utils.each( demoObj, funciton ( value, key ) { * - * console.log( key + ":" + value ); + * console.integralLog( key + ":" + value ); * * } ); * ``` @@ -338,7 +338,7 @@ var utils = UE.utils = { * //output: 0: DIV, 1: DIV ... * UE.utils.each( divs, funciton ( value, key ) { * - * console.log( key + ":" + value.tagName ); + * console.integralLog( key + ":" + value.tagName ); * * } ); * ``` @@ -368,7 +368,7 @@ var utils = UE.utils = { * @example * ```javascript * - * var protoObject = { sayHello: function () { console.log('Hello UEditor!'); } }; + * var protoObject = { sayHello: function () { console.integralLog('Hello UEditor!'); } }; * * var newObject = UE.utils.makeInstance( protoObject ); * //output: Hello UEditor! @@ -400,7 +400,7 @@ var utils = UE.utils = { * UE.utils.extend( target, source ); * * //output: { name: 'source', sex: 1, age: 17 } - * console.log( target ); + * console.integralLog( target ); * * ``` */ @@ -422,7 +422,7 @@ var utils = UE.utils = { * UE.utils.extend( target, source, true ); * * //output: { name: 'target', sex: 1, age: 17 } - * console.log( target ); + * console.integralLog( target ); * * ``` */ @@ -456,7 +456,7 @@ var utils = UE.utils = { * UE.utils.extend2( target, source1, source2 ); * * //output: { name: 'source', age: 17, title: 'dev' } - * console.log( target ); + * console.integralLog( target ); * * ``` */ @@ -488,7 +488,7 @@ var utils = UE.utils = { * * SuperClass.prototype = { * hello:function(str){ - * console.log(this.name + str); + * console.integralLog(this.name + str); * } * } * @@ -524,7 +524,7 @@ var utils = UE.utils = { * newTest = null; * * function test () { - * console.log( this.name ); + * console.integralLog( this.name ); * } * * newTest = UE.utils.bind( test, { name: 'object' } ); @@ -556,7 +556,7 @@ var utils = UE.utils = { * var start = 0; * * function test(){ - * console.log( new Date() - start ); + * console.integralLog( new Date() - start ); * } * * var testDefer = UE.utils.defer( test, 1000 ); @@ -582,7 +582,7 @@ var utils = UE.utils = { * ```javascript * * function test(){ - * console.log(1); + * console.integralLog(1); * } * * var testDefer = UE.utils.defer( test, 1000, true ); @@ -615,7 +615,7 @@ var utils = UE.utils = { * arr = [ 3, 4, 6, 8, 1, 1, 2 ]; * * //output: 4 - * console.log( UE.utils.indexOf( arr, item ) ); + * console.integralLog( UE.utils.indexOf( arr, item ) ); * ``` */ @@ -633,7 +633,7 @@ var utils = UE.utils = { * arr = [ 3, 4, 6, 8, 1, 2, 8, 3, 2, 1, 1, 4 ]; * * //output: 9 - * console.log( UE.utils.indexOf( arr, item, 5 ) ); + * console.integralLog( UE.utils.indexOf( arr, item, 5 ) ); * ``` */ indexOf:function (array, item, start) { @@ -660,7 +660,7 @@ var utils = UE.utils = { * * UE.utils.removeItem( arr, 4 ); * //output: [ 5, 7, 1, 3, 6 ] - * console.log( arr ); + * console.integralLog( arr ); * * ``` */ @@ -684,13 +684,13 @@ var utils = UE.utils = { * var str = " UEdtior "; * * //output: 9 - * console.log( str.length ); + * console.integralLog( str.length ); * * //output: 7 - * console.log( UE.utils.trim( " UEdtior " ).length ); + * console.integralLog( UE.utils.trim( " UEdtior " ).length ); * * //output: 9 - * console.log( str.length ); + * console.integralLog( str.length ); * * ``` */ @@ -708,7 +708,7 @@ var utils = UE.utils = { * ```javascript * * //output: Object {UEdtior: 1, UEDTIOR: 1, Hello: 1, HELLO: 1} - * console.log( UE.utils.listToMap( 'UEdtior,Hello' ) ); + * console.integralLog( UE.utils.listToMap( 'UEdtior,Hello' ) ); * * ``` */ @@ -723,7 +723,7 @@ var utils = UE.utils = { * ```javascript * * //output: Object {UEdtior: 1, UEDTIOR: 1, Hello: 1, HELLO: 1} - * console.log( UE.utils.listToMap( [ 'UEdtior', 'Hello' ] ) ); + * console.integralLog( UE.utils.listToMap( [ 'UEdtior', 'Hello' ] ) ); * * ``` */ @@ -746,7 +746,7 @@ var utils = UE.utils = { * var html = '
&'; * * //output: <body>&</body> - * console.log( UE.utils.unhtml( html ) ); + * console.integralLog( UE.utils.unhtml( html ) ); * * ``` */ @@ -797,7 +797,7 @@ var utils = UE.utils = { * var str = '<body>&</body>'; * * //output: & - * console.log( UE.utils.html( str ) ); + * console.integralLog( UE.utils.html( str ) ); * * ``` */ @@ -825,7 +825,7 @@ var utils = UE.utils = { * var str = 'border-top'; * * //output: borderTop - * console.log( UE.utils.cssStyleToDomStyle( str ) ); + * console.integralLog( UE.utils.cssStyleToDomStyle( str ) ); * * ``` */ @@ -877,7 +877,7 @@ var utils = UE.utils = { * type:"text/javascript", * defer:"defer" * }, function () { - * console.log('加载成功'); + * console.integralLog('加载成功'); * } ); * * ``` @@ -960,22 +960,22 @@ var utils = UE.utils = { * ```javascript * * //output: true - * console.log( UE.utils.isEmptyObject( {} ) ); + * console.integralLog( UE.utils.isEmptyObject( {} ) ); * * //output: true - * console.log( UE.utils.isEmptyObject( [] ) ); + * console.integralLog( UE.utils.isEmptyObject( [] ) ); * * //output: true - * console.log( UE.utils.isEmptyObject( "" ) ); + * console.integralLog( UE.utils.isEmptyObject( "" ) ); * * //output: false - * console.log( UE.utils.isEmptyObject( { key: 1 } ) ); + * console.integralLog( UE.utils.isEmptyObject( { key: 1 } ) ); * * //output: false - * console.log( UE.utils.isEmptyObject( [1] ) ); + * console.integralLog( UE.utils.isEmptyObject( [1] ) ); * * //output: false - * console.log( UE.utils.isEmptyObject( "1" ) ); + * console.integralLog( UE.utils.isEmptyObject( "1" ) ); * * ``` */ @@ -1099,10 +1099,10 @@ var utils = UE.utils = { * ```javascript * * //output: 500px - * console.log( UE.utils.transUnitToPx( '20cm' ) ); + * console.integralLog( UE.utils.transUnitToPx( '20cm' ) ); * * //output: 27px - * console.log( UE.utils.transUnitToPx( '20pt' ) ); + * console.integralLog( UE.utils.transUnitToPx( '20pt' ) ); * * ``` */ @@ -1135,7 +1135,7 @@ var utils = UE.utils = { * * UE.utils.domReady( function () { * - * console.log('123'); + * console.integralLog('123'); * * } ); * @@ -1546,7 +1546,7 @@ EventBase.prototype = { * @example * ```javascript * editor.addListener('selectionchange',function(){ - * console.log("选区已经变化!"); + * console.integralLog("选区已经变化!"); * }) * editor.addListener('beforegetcontent aftergetcontent',function(type){ * if(type == 'beforegetcontent'){ @@ -1554,7 +1554,7 @@ EventBase.prototype = { * }else{ * //do something * } - * console.log(this.getContent) // this是注册的事件的编辑器实例 + * console.integralLog(this.getContent) // this是注册的事件的编辑器实例 * }) * ``` * @see UE.EventBase:fireEvent(String) @@ -1616,7 +1616,7 @@ EventBase.prototype = { * * editor.addListener( "selectionchange", function ( type, arg1, arg2 ) { * - * console.log( arg1 + " " + arg2 ); + * console.integralLog( arg1 + " " + arg2 ); * * } ); * @@ -1944,33 +1944,33 @@ var domUtils = dom.domUtils = { * * //0 * case UE.dom.domUtils.POSITION_IDENTICAL: - * console.log('元素相同'); + * console.integralLog('元素相同'); * break; * //1 * case UE.dom.domUtils.POSITION_DISCONNECTED: - * console.log('两个节点在不同的文档中'); + * console.integralLog('两个节点在不同的文档中'); * break; * //2 * case UE.dom.domUtils.POSITION_FOLLOWING: - * console.log('节点A在节点B之后'); + * console.integralLog('节点A在节点B之后'); * break; * //4 * case UE.dom.domUtils.POSITION_PRECEDING; - * console.log('节点A在节点B之前'); + * console.integralLog('节点A在节点B之前'); * break; * //8 * case UE.dom.domUtils.POSITION_IS_CONTAINED: - * console.log('节点A被节点B包含'); + * console.integralLog('节点A被节点B包含'); * break; * case 10: - * console.log('节点A被节点B包含且节点A在节点B之后'); + * console.integralLog('节点A被节点B包含且节点A在节点B之后'); * break; * //16 * case UE.dom.domUtils.POSITION_CONTAINS: - * console.log('节点A包含节点B'); + * console.integralLog('节点A包含节点B'); * break; * case 20: - * console.log('节点A包含节点B且节点A在节点B之前'); + * console.integralLog('节点A包含节点B且节点A在节点B之前'); * break; * * } @@ -2048,10 +2048,10 @@ var domUtils = dom.domUtils = { * node.appendChild( node = document.createElement( "div" ) ); * * //output: 2 - * console.log( UE.dom.domUtils.getNodeIndex( node ) ); + * console.integralLog( UE.dom.domUtils.getNodeIndex( node ) ); * * //output: 1 - * console.log( UE.dom.domUtils.getNodeIndex( node, true ) ); + * console.integralLog( UE.dom.domUtils.getNodeIndex( node, true ) ); * * ``` */ @@ -2082,12 +2082,12 @@ var domUtils = dom.domUtils = { * var node = document.createElement("div"); * * //output: false - * console.log( UE.do.domUtils.inDoc( node, document ) ); + * console.integralLog( UE.do.domUtils.inDoc( node, document ) ); * * document.body.appendChild( node ); * * //output: true - * console.log( UE.do.domUtils.inDoc( node, document ) ); + * console.integralLog( UE.do.domUtils.inDoc( node, document ) ); * * ``` */ @@ -2114,7 +2114,7 @@ var domUtils = dom.domUtils = { * } ); * * //output: true - * console.log( filterNode === null ); + * console.integralLog( filterNode === null ); * ``` */ @@ -2143,7 +2143,7 @@ var domUtils = dom.domUtils = { * //output: DIV, BODY * var filterNode = UE.dom.domUtils.findParent( document.getElementById( "test" ), function ( node ) { * - * console.log( node.tagName ); + * console.integralLog( node.tagName ); * return false; * * }, true ); @@ -2175,7 +2175,7 @@ var domUtils = dom.domUtils = { * ```javascript * var node = UE.dom.domUtils.findParentByTagName( document.getElementsByTagName("div")[0], [ "BODY" ] ); * //output: BODY - * console.log( node.tagName ); + * console.integralLog( node.tagName ); * ``` */ @@ -2193,7 +2193,7 @@ var domUtils = dom.domUtils = { * var queryTarget = document.getElementsByTagName("div")[0]; * var node = UE.dom.domUtils.findParentByTagName( queryTarget, [ "DIV" ], true ); * //output: true - * console.log( queryTarget === node ); + * console.integralLog( queryTarget === node ); * ``` */ findParentByTagName:function (node, tagNames, includeSelf, excludeFn) { @@ -2254,7 +2254,7 @@ var domUtils = dom.domUtils = { * * ``` */ @@ -2273,7 +2273,7 @@ var domUtils = dom.domUtils = { * * ``` */ @@ -2308,7 +2308,7 @@ var domUtils = dom.domUtils = { * * ``` @@ -2325,7 +2325,7 @@ var domUtils = dom.domUtils = { * * //由于id为test的i节点之后没有兄弟节点, 则查找其父节点(div)后面的兄弟节点 * //output: b节点 - * console.log( UE.dom.domUtils.getNextDomNode( document.getElementById( "test" ) ) ); + * console.integralLog( UE.dom.domUtils.getNextDomNode( document.getElementById( "test" ) ) ); * * * ``` @@ -2359,7 +2359,7 @@ var domUtils = dom.domUtils = { * * ``` */ @@ -2374,7 +2374,7 @@ var domUtils = dom.domUtils = { * @example * ```javascript * //output: true - * console.log( UE.dom.domUtils.getWindow( document.body ) === window ); + * console.integralLog( UE.dom.domUtils.getWindow( document.body ) === window ); * ``` */ getWindow:function (node) { @@ -2392,7 +2392,7 @@ var domUtils = dom.domUtils = { * ```javascript * var commonAncestor = UE.dom.domUtils.getCommonAncestor( document.body, document.body.firstChild ); * //output: true - * console.log( commonAncestor.tagName.toLowerCase() === 'body' ); + * console.integralLog( commonAncestor.tagName.toLowerCase() === 'body' ); * ``` */ getCommonAncestor:function (nodeA, nodeB) { @@ -2440,7 +2440,7 @@ var domUtils = dom.domUtils = { * UE.dom.domUtils.clearEmptySibling( document.getElementById( "test" ) ); * * //output: xxx - * console.log( document.body.innerHTML ); + * console.integralLog( document.body.innerHTML ); * * * ``` @@ -2492,7 +2492,7 @@ var domUtils = dom.domUtils = { * * ``` */ @@ -2524,7 +2524,7 @@ var domUtils = dom.domUtils = { * * * ``` */ @@ -2542,7 +2542,7 @@ var domUtils = dom.domUtils = { * ```javascript * var location = UE.dom.domUtils.getXY( document.getElementById("test") ); * //output: test的坐标为: 12, 24 - * console.log( 'test的坐标为: ', location.x, ',', location.y ); + * console.integralLog( 'test的坐标为: ', location.x, ',', location.y ); * ``` */ getXY:function (element) { @@ -2681,10 +2681,10 @@ var domUtils = dom.domUtils = { * var nodes = document.getElementsByTagName( "span" ); * * //output: true - * console.log( UE.dom.domUtils.isSameElement( nodes[0], nodes[1] ) ); + * console.integralLog( UE.dom.domUtils.isSameElement( nodes[0], nodes[1] ) ); * * //output: false - * console.log( UE.dom.domUtils.isSameElement( nodes[2], nodes[3] ) ); + * console.integralLog( UE.dom.domUtils.isSameElement( nodes[2], nodes[3] ) ); * * * ``` @@ -2756,10 +2756,10 @@ var domUtils = dom.domUtils = { * var nodes = document.getElementsByTagName( "span" ); * * //output: true - * console.log( UE.dom.domUtils.isSameStyle( nodes[0], nodes[1] ) ); + * console.integralLog( UE.dom.domUtils.isSameStyle( nodes[0], nodes[1] ) ); * * //output: false - * console.log( UE.dom.domUtils.isSameStyle( nodes[2], nodes[3] ) ); + * console.integralLog( UE.dom.domUtils.isSameStyle( nodes[2], nodes[3] ) ); * * * ``` @@ -2813,13 +2813,13 @@ var domUtils = dom.domUtils = { * * ``` @@ -2835,7 +2835,7 @@ var domUtils = dom.domUtils = { * @example * ```javascript * //output: true - * console.log( UE.dom.domUtils.isBody( document.body ) ); + * console.integralLog( UE.dom.domUtils.isBody( document.body ) ); * ``` */ isBody:function (node) { @@ -2860,13 +2860,13 @@ var domUtils = dom.domUtils = { * * //拆分前 * //output:- * console.log( wrapNode.innerHTML ); + * console.integralLog( wrapNode.innerHTML ); * * * UE.dom.domUtils.breakParent( node, parent ); * //拆分后 * //output: - * console.log( wrapNode.innerHTML ); + * console.integralLog( wrapNode.innerHTML ); * * ``` */ @@ -2953,12 +2953,12 @@ var domUtils = dom.domUtils = { * node.appendChild( document.createTextNode( "" ) ); * * //3 - * console.log( node.childNodes.length ); + * console.integralLog( node.childNodes.length ); * * UE.dom.domUtils.trimWhiteTextNode( node ); * * //1 - * console.log( node.childNodes.length ); + * console.integralLog( node.childNodes.length ); * ``` */ trimWhiteTextNode:function (node) { @@ -3060,12 +3060,12 @@ var domUtils = dom.domUtils = { * var child = document.getElementById( "child" ); * * //output: sub - * console.log( child.parentNode.id ); + * console.integralLog( child.parentNode.id ); * * UE.dom.domUtils.mergeToParent( child ); * * //output: parent - * console.log( child.parentNode.id ); + * console.integralLog( child.parentNode.id ); * * * ``` @@ -3110,7 +3110,7 @@ var domUtils = dom.domUtils = { * var demoNode = document.getElementById("test"); * UE.dom.domUtils.mergeSibling( demoNode ); * //output: xxxxoooxxxx - * console.log( demoNode.innerHTML ); + * console.integralLog( demoNode.innerHTML ); * * ``` */ @@ -3128,7 +3128,7 @@ var domUtils = dom.domUtils = { * var demoNode = document.getElementById("test"); * UE.dom.domUtils.mergeSibling( demoNode, true ); * //output: oooxxxx - * console.log( demoNode.innerHTML ); + * console.integralLog( demoNode.innerHTML ); * * ``` */ @@ -3148,7 +3148,7 @@ var domUtils = dom.domUtils = { * var demoNode = document.getElementById("test"); * UE.dom.domUtils.mergeSibling( demoNode, false, true ); * //output: xxxxooo - * console.log( demoNode.innerHTML ); + * console.integralLog( demoNode.innerHTML ); * * ``` */ @@ -3224,7 +3224,7 @@ var domUtils = dom.domUtils = { * UE.dom.domUtils.removeAttributes( document.getElementById( "test" ), "id name" ); * * //output: xxxxx - * console.log( document.getElementById("wrap").innerHTML ); + * console.integralLog( document.getElementById("wrap").innerHTML ); * * * ``` @@ -3246,7 +3246,7 @@ var domUtils = dom.domUtils = { * UE.dom.domUtils.removeAttributes( document.getElementById( "test" ), ["id", "name"] ); * * //output: xxxxx - * console.log( document.getElementById("wrap").innerHTML ); + * console.integralLog( document.getElementById("wrap").innerHTML ); * * * ``` @@ -3281,10 +3281,10 @@ var domUtils = dom.domUtils = { * } ); * * //output: DIV - * console.log( ele.tagName ); + * console.integralLog( ele.tagName ); * * //output: test - * console.log( ele.id ); + * console.integralLog( ele.id ); * * ``` */ @@ -3308,7 +3308,7 @@ var domUtils = dom.domUtils = { * } ); * * //output: demo - * console.log( testNode.id ); + * console.integralLog( testNode.id ); * * * @@ -3357,7 +3357,7 @@ var domUtils = dom.domUtils = { * * * ``` */ @@ -3409,7 +3409,7 @@ var domUtils = dom.domUtils = { * UE.dom.domUtils.removeClasses( testNode, "test1 test2" ); * * //output: test3 - * console.log( testNode.className ); + * console.integralLog( testNode.className ); * * * ``` @@ -3430,7 +3430,7 @@ var domUtils = dom.domUtils = { * UE.dom.domUtils.removeClasses( testNode, ["test1", "test2"] ); * * //output: test3 - * console.log( testNode.className ); + * console.integralLog( testNode.className ); * * * ``` @@ -3464,7 +3464,7 @@ var domUtils = dom.domUtils = { * UE.dom.domUtils.addClass( testNode, "cls2 cls3 cls4" ); * * //output: cl1 cls2 cls3 cls4 - * console.log( testNode.className ); + * console.integralLog( testNode.className ); * * * ``` */ @@ -3537,10 +3537,10 @@ var domUtils = dom.domUtils = { * var test1 = document.getElementById("test1"); * * //output: false - * console.log( UE.dom.domUtils.hasClass( test1, [ "cls2", "cls1", "cls3" ] ) ); + * console.integralLog( UE.dom.domUtils.hasClass( test1, [ "cls2", "cls1", "cls3" ] ) ); * * //output: true - * console.log( UE.dom.domUtils.hasClass( test1, [ "cls2", "cls1" ]) ); + * console.integralLog( UE.dom.domUtils.hasClass( test1, [ "cls2", "cls1" ]) ); * * ``` */ @@ -3585,7 +3585,7 @@ var domUtils = dom.domUtils = { * UE.dom.domUtils.removeStyle( testNode, 'color' ); * * //output: background: blue; - * console.log( testNode.style.cssText ); + * console.integralLog( testNode.style.cssText ); * * * ``` @@ -3626,10 +3626,10 @@ var domUtils = dom.domUtils = { * var testNode = document.getElementById( "test" ); * * //output: red - * console.log( UE.dom.domUtils.getStyle( testNode, "color" ) ); + * console.integralLog( UE.dom.domUtils.getStyle( testNode, "color" ) ); * * //output: "" - * console.log( UE.dom.domUtils.getStyle( testNode, "background" ) ); + * console.integralLog( UE.dom.domUtils.getStyle( testNode, "background" ) ); * * * ``` @@ -3653,11 +3653,11 @@ var domUtils = dom.domUtils = { * var testNode = document.getElementById( "test" ); * * //output: "" - * console.log( testNode.style.color ); + * console.integralLog( testNode.style.color ); * * UE.dom.domUtils.setStyle( testNode, 'color', 'red' ); * //output: "red" - * console.log( testNode.style.color ); + * console.integralLog( testNode.style.color ); * * * ``` @@ -3682,13 +3682,13 @@ var domUtils = dom.domUtils = { * var testNode = document.getElementById( "test" ); * * //output: "" - * console.log( testNode.style.color ); + * console.integralLog( testNode.style.color ); * * UE.dom.domUtils.setStyles( testNode, { * 'color': 'red' * } ); * //output: "red" - * console.log( testNode.style.color ); + * console.integralLog( testNode.style.color ); * * * ``` @@ -3725,7 +3725,7 @@ var domUtils = dom.domUtils = { * * ``` @@ -3746,7 +3746,7 @@ var domUtils = dom.domUtils = { * * ``` */ @@ -3975,7 +3975,7 @@ var domUtils = dom.domUtils = { * } ); * * //output: top: 300px; left: 100px; position: absolute; - * console.log( testNode.style.cssText ); + * console.integralLog( testNode.style.cssText ); * * * ``` @@ -4008,12 +4008,12 @@ var domUtils = dom.domUtils = { * var testNode = document.getElementById("test"); * * //output: 0 - * console.log( testNode.childNodes.length ); + * console.integralLog( testNode.childNodes.length ); * * UE.dom.domUtils.fillNode( document, testNode ); * * //output: 1 - * console.log( testNode.childNodes.length ); + * console.integralLog( testNode.childNodes.length ); * * * ``` @@ -4046,10 +4046,10 @@ var domUtils = dom.domUtils = { * UE.dom.domUtils.moveChild( test1, test2 ); * * //output: ""(空字符串) - * console.log( test1.innerHTML ); + * console.integralLog( test1.innerHTML ); * * //output: "" - * console.log( test2.innerHTML ); + * console.integralLog( test2.innerHTML ); * * * ``` @@ -4078,10 +4078,10 @@ var domUtils = dom.domUtils = { * UE.dom.domUtils.moveChild( test1, test2, true ); * * //output: ""(空字符串) - * console.log( test1.innerHTML ); + * console.integralLog( test1.innerHTML ); * * //output: "" - * console.log( test2.innerHTML ); + * console.integralLog( test2.innerHTML ); * * * ``` @@ -4109,10 +4109,10 @@ var domUtils = dom.domUtils = { * * ``` @@ -4146,7 +4146,7 @@ var domUtils = dom.domUtils = { * * ``` @@ -4167,7 +4167,7 @@ var domUtils = dom.domUtils = { * divNodes = [].slice.call( divNodes, 0 ); * * //output: null - * console.log( UE.dom.domUtils.filterNodeList( divNodes, function ( node ) { + * console.integralLog( UE.dom.domUtils.filterNodeList( divNodes, function ( node ) { * return node.tagName.toLowerCase() !== 'div'; * } ) ); * ``` @@ -4185,7 +4185,7 @@ var domUtils = dom.domUtils = { * divNodes = [].slice.call( divNodes, 0 ); * * //output: null - * console.log( UE.dom.domUtils.filterNodeList( divNodes, 'a span' ) ); + * console.integralLog( UE.dom.domUtils.filterNodeList( divNodes, 'a span' ) ); * ``` */ @@ -4204,21 +4204,21 @@ var domUtils = dom.domUtils = { * divNodes = [].slice.call( divNodes, 0 ); * * //output: 3(假定有3个div) - * console.log( divNodes.length ); + * console.integralLog( divNodes.length ); * * var nodes = UE.dom.domUtils.filterNodeList( divNodes, function ( node ) { * return node.tagName.toLowerCase() === 'div'; * }, true ); * * //output: 3 - * console.log( nodes.length ); + * console.integralLog( nodes.length ); * * var node = UE.dom.domUtils.filterNodeList( divNodes, function ( node ) { * return node.tagName.toLowerCase() === 'div'; * }, false ); * * //output: div - * console.log( node.nodeName ); + * console.integralLog( node.nodeName ); * ``` */ filterNodeList : function(nodelist,filter,forAll){ @@ -4541,7 +4541,7 @@ var fillCharReg = new RegExp(domUtils.fillChar, 'g'); * node.appendChild( fragment ); * * //output: xxx - * console.log( node.innerHTML ); + * console.integralLog( node.innerHTML ); * * *