mirror of https://gitee.com/karson/fastadmin.git
parent
85e0f4bacc
commit
3fd25c3de0
|
|
@ -153,6 +153,7 @@ class Api
|
|||
protected function loadlang($name)
|
||||
{
|
||||
$name = Loader::parseName($name);
|
||||
$name = preg_match("/^([a-zA-Z0-9_\.\/]+)\$/i", $name) ? $name : 'index';
|
||||
$lang = $this->request->langset();
|
||||
$lang = preg_match("/^([a-zA-Z\-_]{2,10})\$/i", $lang) ? $lang : 'zh-cn';
|
||||
Lang::load(APP_PATH . $this->request->module() . '/lang/' . $lang . '/' . str_replace('.', '/', $name) . '.php');
|
||||
|
|
|
|||
|
|
@ -237,6 +237,7 @@ class Backend extends Controller
|
|||
protected function loadlang($name)
|
||||
{
|
||||
$name = Loader::parseName($name);
|
||||
$name = preg_match("/^([a-zA-Z0-9_\.\/]+)\$/i", $name) ? $name : 'index';
|
||||
$lang = $this->request->langset();
|
||||
$lang = preg_match("/^([a-zA-Z\-_]{2,10})\$/i", $lang) ? $lang : 'zh-cn';
|
||||
Lang::load(APP_PATH . $this->request->module() . '/lang/' . $lang . '/' . str_replace('.', '/', $name) . '.php');
|
||||
|
|
|
|||
|
|
@ -128,6 +128,7 @@ class Frontend extends Controller
|
|||
protected function loadlang($name)
|
||||
{
|
||||
$name = Loader::parseName($name);
|
||||
$name = preg_match("/^([a-zA-Z0-9_\.\/]+)\$/i", $name) ? $name : 'index';
|
||||
$lang = $this->request->langset();
|
||||
$lang = preg_match("/^([a-zA-Z\-_]{2,10})\$/i", $lang) ? $lang : 'zh-cn';
|
||||
Lang::load(APP_PATH . $this->request->module() . '/lang/' . $lang . '/' . str_replace('.', '/', $name) . '.php');
|
||||
|
|
|
|||
|
|
@ -1022,7 +1022,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
/*!art-template - Template Engine | http://aui.github.com/artTemplate/*/
|
||||
!function(){function a(a){return a.replace(t,"").replace(u,",").replace(v,"").replace(w,"").replace(x,"").split(y)}function b(a){return"'"+a.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}function c(c,d){function e(a){return m+=a.split(/\n/).length-1,k&&(a=a.replace(/\s+/g," ").replace(/<!--[\w\W]*?-->/g,"")),a&&(a=s[1]+b(a)+s[2]+"\n"),a}function f(b){var c=m;if(j?b=j(b,d):g&&(b=b.replace(/\n/g,function(){return m++,"$line="+m+";"})),0===b.indexOf("=")){var e=l&&!/^=[=#]/.test(b);if(b=b.replace(/^=[=#]?|[\s;]*$/g,""),e){var f=b.replace(/\s*\([^\)]+\)/,"");n[f]||/^(include|print)$/.test(f)||(b="$escape("+b+")")}else b="$string("+b+")";b=s[1]+b+s[2]}return g&&(b="$line="+c+";"+b),r(a(b),function(a){if(a&&!p[a]){var b;b="print"===a?u:"include"===a?v:n[a]?"$utils."+a:o[a]?"$helpers."+a:"$data."+a,w+=a+"="+b+",",p[a]=!0}}),b+"\n"}var g=d.debug,h=d.openTag,i=d.closeTag,j=d.parser,k=d.compress,l=d.escape,m=1,p={$data:1,$filename:1,$utils:1,$helpers:1,$out:1,$line:1},q="".trim,s=q?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],t=q?"$out+=text;return $out;":"$out.push(text);",u="function(){var text=''.concat.apply('',arguments);"+t+"}",v="function(filename,data){data=data||$data;var text=$utils.$include(filename,data,$filename);"+t+"}",w="'use strict';var $utils=this,$helpers=$utils.$helpers,"+(g?"$line=0,":""),x=s[0],y="return new String("+s[3]+");";r(c.split(h),function(a){a=a.split(i);var b=a[0],c=a[1];1===a.length?x+=e(b):(x+=f(b),c&&(x+=e(c)))});var z=w+x+y;g&&(z="try{"+z+"}catch(e){throw {filename:$filename,name:'Render Error',message:e.message,line:$line,source:"+b(c)+".split(/\\n/)[$line-1].replace(/^\\s+/,'')};}");try{var A=new Function("$data","$filename",z);return A.prototype=n,A}catch(a){throw a.temp="function anonymous($data,$filename) {"+z+"}",a}}var d=function(a,b){return"string"==typeof b?q(b,{filename:a}):g(a,b)};d.version="3.0.0",d.config=function(a,b){e[a]=b};var e=d.defaults={openTag:"<%",closeTag:"%>",escape:!0,cache:!0,compress:!1,parser:null},f=d.cache={};d.render=function(a,b){return q(a)(b)};var g=d.renderFile=function(a,b){var c=d.get(a)||p({filename:a,name:"Render Error",message:"Template not found"});return b?c(b):c};d.get=function(a){var b;if(f[a])b=f[a];else if("object"==typeof document){var c=document.getElementById(a);if(c){var d=(c.value||c.innerHTML).replace(/^\s*|\s*$/g,"");b=q(d,{filename:a})}}return b};var h=function(a,b){return"string"!=typeof a&&(b=typeof a,"number"===b?a+="":a="function"===b?h(a.call(a)):""),a},i={"<":"<",">":">",'"':""","'":"'","&":"&"},j=function(a){return i[a]},k=function(a){return h(a).replace(/&(?![\w#]+;)|[<>"']/g,j)},l=Array.isArray||function(a){return"[object Array]"==={}.toString.call(a)},m=function(a,b){var c,d;if(l(a))for(c=0,d=a.length;c<d;c++)b.call(a,a[c],c,a);else for(c in a)b.call(a,a[c],c)},n=d.utils={$helpers:{},$include:g,$string:h,$escape:k,$each:m};d.helper=function(a,b){o[a]=b};var o=d.helpers=n.$helpers;d.onerror=function(a){var b="Template Error\n\n";for(var c in a)b+="<"+c+">\n"+a[c]+"\n\n";"object"==typeof console&&console.error(b)};var p=function(a){return d.onerror(a),function(){return"{Template Error}"}},q=d.compile=function(a,b){function d(c){try{return new i(c,h)+""}catch(d){return b.debug?p(d)():(b.debug=!0,q(a,b)(c))}}b=b||{};for(var g in e)void 0===b[g]&&(b[g]=e[g]);var h=b.filename;try{var i=c(a,b)}catch(a){return a.filename=h||"anonymous",a.name="Syntax Error",p(a)}return d.prototype=i.prototype,d.toString=function(){return i.toString()},h&&b.cache&&(f[h]=d),d},r=n.$each,s="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",t=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|\s*\.\s*[$\w\.]+/g,u=/[^\w$]+/g,v=new RegExp(["\\b"+s.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),w=/^\d[^,]*|,\d[^,]*/g,x=/^,+|,+$/g,y=/^$|,+/;"object"==typeof exports&&"undefined"!=typeof module?module.exports=d:"function"==typeof define?define('template',[],function(){return d}):this.template=d}();
|
||||
//! moment.js
|
||||
//! version : 2.29.1
|
||||
//! version : 2.29.3
|
||||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||||
//! license : MIT
|
||||
//! momentjs.com
|
||||
|
|
@ -1099,8 +1099,9 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
function map(arr, fn) {
|
||||
var res = [],
|
||||
i;
|
||||
for (i = 0; i < arr.length; ++i) {
|
||||
i,
|
||||
arrLen = arr.length;
|
||||
for (i = 0; i < arrLen; ++i) {
|
||||
res.push(fn(arr[i], i));
|
||||
}
|
||||
return res;
|
||||
|
|
@ -1229,7 +1230,10 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
updateInProgress = false;
|
||||
|
||||
function copyConfig(to, from) {
|
||||
var i, prop, val;
|
||||
var i,
|
||||
prop,
|
||||
val,
|
||||
momentPropertiesLen = momentProperties.length;
|
||||
|
||||
if (!isUndefined(from._isAMomentObject)) {
|
||||
to._isAMomentObject = from._isAMomentObject;
|
||||
|
|
@ -1262,8 +1266,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
to._locale = from._locale;
|
||||
}
|
||||
|
||||
if (momentProperties.length > 0) {
|
||||
for (i = 0; i < momentProperties.length; i++) {
|
||||
if (momentPropertiesLen > 0) {
|
||||
for (i = 0; i < momentPropertiesLen; i++) {
|
||||
prop = momentProperties[i];
|
||||
val = from[prop];
|
||||
if (!isUndefined(val)) {
|
||||
|
|
@ -1318,8 +1322,9 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
var args = [],
|
||||
arg,
|
||||
i,
|
||||
key;
|
||||
for (i = 0; i < arguments.length; i++) {
|
||||
key,
|
||||
argLen = arguments.length;
|
||||
for (i = 0; i < argLen; i++) {
|
||||
arg = '';
|
||||
if (typeof arguments[i] === 'object') {
|
||||
arg += '\n[' + i + '] ';
|
||||
|
|
@ -1469,7 +1474,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
);
|
||||
}
|
||||
|
||||
var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
|
||||
var formattingTokens =
|
||||
/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
|
||||
localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
|
||||
formatFunctions = {},
|
||||
formatTokenFunctions = {};
|
||||
|
|
@ -1773,8 +1779,9 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
if (typeof units === 'object') {
|
||||
units = normalizeObjectUnits(units);
|
||||
var prioritized = getPrioritizedUnits(units),
|
||||
i;
|
||||
for (i = 0; i < prioritized.length; i++) {
|
||||
i,
|
||||
prioritizedLen = prioritized.length;
|
||||
for (i = 0; i < prioritizedLen; i++) {
|
||||
this[prioritized[i].unit](units[prioritized[i].unit]);
|
||||
}
|
||||
} else {
|
||||
|
|
@ -1804,7 +1811,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
|
||||
// any word (or two) characters or numbers including two/three word month in arabic.
|
||||
// includes scottish gaelic two word and hyphenated months
|
||||
matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
|
||||
matchWord =
|
||||
/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
|
||||
regexes;
|
||||
|
||||
regexes = {};
|
||||
|
|
@ -1830,15 +1838,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
return regexEscape(
|
||||
s
|
||||
.replace('\\', '')
|
||||
.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
|
||||
matched,
|
||||
p1,
|
||||
p2,
|
||||
p3,
|
||||
p4
|
||||
) {
|
||||
.replace(
|
||||
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
||||
function (matched, p1, p2, p3, p4) {
|
||||
return p1 || p2 || p3 || p4;
|
||||
})
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -1850,7 +1855,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
function addParseToken(token, callback) {
|
||||
var i,
|
||||
func = callback;
|
||||
func = callback,
|
||||
tokenLen;
|
||||
if (typeof token === 'string') {
|
||||
token = [token];
|
||||
}
|
||||
|
|
@ -1859,7 +1865,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
array[callback] = toInt(input);
|
||||
};
|
||||
}
|
||||
for (i = 0; i < token.length; i++) {
|
||||
tokenLen = token.length;
|
||||
for (i = 0; i < tokenLen; i++) {
|
||||
tokens[token[i]] = func;
|
||||
}
|
||||
}
|
||||
|
|
@ -1970,12 +1977,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
// LOCALES
|
||||
|
||||
var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
|
||||
'_'
|
||||
),
|
||||
defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
|
||||
var defaultLocaleMonths =
|
||||
'January_February_March_April_May_June_July_August_September_October_November_December'.split(
|
||||
'_'
|
||||
),
|
||||
defaultLocaleMonthsShort =
|
||||
'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
|
||||
defaultMonthsShortRegex = matchWord,
|
||||
defaultMonthsRegex = matchWord;
|
||||
|
|
@ -2417,14 +2424,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
addRegexToken('W', match1to2);
|
||||
addRegexToken('WW', match1to2, match2);
|
||||
|
||||
addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
|
||||
input,
|
||||
week,
|
||||
config,
|
||||
token
|
||||
) {
|
||||
addWeekParseToken(
|
||||
['w', 'ww', 'W', 'WW'],
|
||||
function (input, week, config, token) {
|
||||
week[token.substr(0, 1)] = toInt(input);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
// HELPERS
|
||||
|
||||
|
|
@ -2549,9 +2554,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
return ws.slice(n, 7).concat(ws.slice(0, n));
|
||||
}
|
||||
|
||||
var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
|
||||
'_'
|
||||
),
|
||||
var defaultLocaleWeekdays =
|
||||
'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
defaultWeekdaysRegex = matchWord,
|
||||
|
|
@ -3099,6 +3103,11 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
return globalLocale;
|
||||
}
|
||||
|
||||
function isLocaleNameSane(name) {
|
||||
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
||||
return name.match('^[^/\\\\]*$') != null;
|
||||
}
|
||||
|
||||
function loadLocale(name) {
|
||||
var oldLocale = null,
|
||||
aliasedRequire;
|
||||
|
|
@ -3107,7 +3116,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
locales[name] === undefined &&
|
||||
typeof module !== 'undefined' &&
|
||||
module &&
|
||||
module.exports
|
||||
module.exports &&
|
||||
isLocaleNameSane(name)
|
||||
) {
|
||||
try {
|
||||
oldLocale = globalLocale._abbr;
|
||||
|
|
@ -3324,8 +3334,10 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
// iso 8601 regex
|
||||
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
||||
var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
||||
basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
||||
var extendedIsoRegex =
|
||||
/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
||||
basicIsoRegex =
|
||||
/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
||||
tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
|
||||
isoDates = [
|
||||
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
|
||||
|
|
@ -3356,7 +3368,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
],
|
||||
aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
|
||||
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
||||
rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
|
||||
rfc2822 =
|
||||
/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
|
||||
obsOffsets = {
|
||||
UT: 0,
|
||||
GMT: 0,
|
||||
|
|
@ -3379,12 +3392,13 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
allowTime,
|
||||
dateFormat,
|
||||
timeFormat,
|
||||
tzFormat;
|
||||
tzFormat,
|
||||
isoDatesLen = isoDates.length,
|
||||
isoTimesLen = isoTimes.length;
|
||||
|
||||
if (match) {
|
||||
getParsingFlags(config).iso = true;
|
||||
|
||||
for (i = 0, l = isoDates.length; i < l; i++) {
|
||||
for (i = 0, l = isoDatesLen; i < l; i++) {
|
||||
if (isoDates[i][1].exec(match[1])) {
|
||||
dateFormat = isoDates[i][0];
|
||||
allowTime = isoDates[i][2] !== false;
|
||||
|
|
@ -3396,7 +3410,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
return;
|
||||
}
|
||||
if (match[3]) {
|
||||
for (i = 0, l = isoTimes.length; i < l; i++) {
|
||||
for (i = 0, l = isoTimesLen; i < l; i++) {
|
||||
if (isoTimes[i][1].exec(match[3])) {
|
||||
// match[2] should be 'T' or space
|
||||
timeFormat = (match[2] || ' ') + isoTimes[i][0];
|
||||
|
|
@ -3776,12 +3790,13 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
skipped,
|
||||
stringLength = string.length,
|
||||
totalParsedInputLength = 0,
|
||||
era;
|
||||
era,
|
||||
tokenLen;
|
||||
|
||||
tokens =
|
||||
expandFormat(config._f, config._locale).match(formattingTokens) || [];
|
||||
|
||||
for (i = 0; i < tokens.length; i++) {
|
||||
tokenLen = tokens.length;
|
||||
for (i = 0; i < tokenLen; i++) {
|
||||
token = tokens[i];
|
||||
parsedInput = (string.match(getParseRegexForToken(token, config)) ||
|
||||
[])[0];
|
||||
|
|
@ -3876,15 +3891,16 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
i,
|
||||
currentScore,
|
||||
validFormatFound,
|
||||
bestFormatIsValid = false;
|
||||
bestFormatIsValid = false,
|
||||
configfLen = config._f.length;
|
||||
|
||||
if (config._f.length === 0) {
|
||||
if (configfLen === 0) {
|
||||
getParsingFlags(config).invalidFormat = true;
|
||||
config._d = new Date(NaN);
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < config._f.length; i++) {
|
||||
for (i = 0; i < configfLen; i++) {
|
||||
currentScore = 0;
|
||||
validFormatFound = false;
|
||||
tempConfig = copyConfig({}, config);
|
||||
|
|
@ -4125,7 +4141,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
function isDurationValid(m) {
|
||||
var key,
|
||||
unitHasDecimal = false,
|
||||
i;
|
||||
i,
|
||||
orderLen = ordering.length;
|
||||
for (key in m) {
|
||||
if (
|
||||
hasOwnProp(m, key) &&
|
||||
|
|
@ -4138,7 +4155,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < ordering.length; ++i) {
|
||||
for (i = 0; i < orderLen; ++i) {
|
||||
if (m[ordering[i]]) {
|
||||
if (unitHasDecimal) {
|
||||
return false; // only allow non-integers for smallest unit
|
||||
|
|
@ -4463,7 +4480,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
||||
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
||||
// and further modified to allow for strings containing both week and day
|
||||
isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
||||
isoRegex =
|
||||
/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
||||
|
||||
function createDuration(input, key) {
|
||||
var duration = input,
|
||||
|
|
@ -4684,9 +4702,10 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
'ms',
|
||||
],
|
||||
i,
|
||||
property;
|
||||
property,
|
||||
propertyLen = properties.length;
|
||||
|
||||
for (i = 0; i < properties.length; i += 1) {
|
||||
for (i = 0; i < propertyLen; i += 1) {
|
||||
property = properties[i];
|
||||
propertyTest = propertyTest || hasOwnProp(input, property);
|
||||
}
|
||||
|
|
@ -5309,19 +5328,17 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
addRegexToken('NNNN', matchEraName);
|
||||
addRegexToken('NNNNN', matchEraNarrow);
|
||||
|
||||
addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
|
||||
input,
|
||||
array,
|
||||
config,
|
||||
token
|
||||
) {
|
||||
addParseToken(
|
||||
['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
|
||||
function (input, array, config, token) {
|
||||
var era = config._locale.erasParse(input, token, config._strict);
|
||||
if (era) {
|
||||
getParsingFlags(config).era = era;
|
||||
} else {
|
||||
getParsingFlags(config).invalidEra = input;
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
addRegexToken('y', matchUnsigned);
|
||||
addRegexToken('yy', matchUnsigned);
|
||||
|
|
@ -5613,14 +5630,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
addRegexToken('GGGGG', match1to6, match6);
|
||||
addRegexToken('ggggg', match1to6, match6);
|
||||
|
||||
addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
|
||||
input,
|
||||
week,
|
||||
config,
|
||||
token
|
||||
) {
|
||||
addWeekParseToken(
|
||||
['gggg', 'ggggg', 'GGGG', 'GGGGG'],
|
||||
function (input, week, config, token) {
|
||||
week[token.substr(0, 2)] = toInt(input);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
|
||||
week[token] = hooks.parseTwoDigitYear(input);
|
||||
|
|
@ -6643,7 +6658,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
//! moment.js
|
||||
|
||||
hooks.version = '2.29.1';
|
||||
hooks.version = '2.29.3';
|
||||
|
||||
setHookCallback(createLocal);
|
||||
|
||||
|
|
@ -11759,7 +11774,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|||
},
|
||||
ignoreColumn: [0, 'operate'] //默认不导出第一列(checkbox)与操作(operate)列
|
||||
},
|
||||
pageSize: Config.pagesize || 10,
|
||||
pageSize: Config.pagesize || localStorage.getItem("pagesize") || 10,
|
||||
pageList: [10, 15, 20, 25, 50, 'All'],
|
||||
pagination: true,
|
||||
clickToSelect: true, //是否启用点击选中
|
||||
|
|
@ -11847,6 +11862,12 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|||
$.fn.bootstrapTable.Constructor.prototype.getSelectItem = function () {
|
||||
return this.$selectItem;
|
||||
};
|
||||
var _onPageListChange = $.fn.bootstrapTable.Constructor.prototype.onPageListChange;
|
||||
$.fn.bootstrapTable.Constructor.prototype.onPageListChange = function () {
|
||||
_onPageListChange.apply(this, Array.prototype.slice.apply(arguments));
|
||||
localStorage.setItem('pagesize', this.options.pageSize);
|
||||
return false;
|
||||
};
|
||||
// 写入bootstrap-table默认配置
|
||||
$.extend(true, $.fn.bootstrapTable.defaults, Table.defaults, defaults);
|
||||
// 写入bootstrap-table column配置
|
||||
|
|
|
|||
|
|
@ -1015,7 +1015,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
/*!art-template - Template Engine | http://aui.github.com/artTemplate/*/
|
||||
!function(){function a(a){return a.replace(t,"").replace(u,",").replace(v,"").replace(w,"").replace(x,"").split(y)}function b(a){return"'"+a.replace(/('|\\)/g,"\\$1").replace(/\r/g,"\\r").replace(/\n/g,"\\n")+"'"}function c(c,d){function e(a){return m+=a.split(/\n/).length-1,k&&(a=a.replace(/\s+/g," ").replace(/<!--[\w\W]*?-->/g,"")),a&&(a=s[1]+b(a)+s[2]+"\n"),a}function f(b){var c=m;if(j?b=j(b,d):g&&(b=b.replace(/\n/g,function(){return m++,"$line="+m+";"})),0===b.indexOf("=")){var e=l&&!/^=[=#]/.test(b);if(b=b.replace(/^=[=#]?|[\s;]*$/g,""),e){var f=b.replace(/\s*\([^\)]+\)/,"");n[f]||/^(include|print)$/.test(f)||(b="$escape("+b+")")}else b="$string("+b+")";b=s[1]+b+s[2]}return g&&(b="$line="+c+";"+b),r(a(b),function(a){if(a&&!p[a]){var b;b="print"===a?u:"include"===a?v:n[a]?"$utils."+a:o[a]?"$helpers."+a:"$data."+a,w+=a+"="+b+",",p[a]=!0}}),b+"\n"}var g=d.debug,h=d.openTag,i=d.closeTag,j=d.parser,k=d.compress,l=d.escape,m=1,p={$data:1,$filename:1,$utils:1,$helpers:1,$out:1,$line:1},q="".trim,s=q?["$out='';","$out+=",";","$out"]:["$out=[];","$out.push(",");","$out.join('')"],t=q?"$out+=text;return $out;":"$out.push(text);",u="function(){var text=''.concat.apply('',arguments);"+t+"}",v="function(filename,data){data=data||$data;var text=$utils.$include(filename,data,$filename);"+t+"}",w="'use strict';var $utils=this,$helpers=$utils.$helpers,"+(g?"$line=0,":""),x=s[0],y="return new String("+s[3]+");";r(c.split(h),function(a){a=a.split(i);var b=a[0],c=a[1];1===a.length?x+=e(b):(x+=f(b),c&&(x+=e(c)))});var z=w+x+y;g&&(z="try{"+z+"}catch(e){throw {filename:$filename,name:'Render Error',message:e.message,line:$line,source:"+b(c)+".split(/\\n/)[$line-1].replace(/^\\s+/,'')};}");try{var A=new Function("$data","$filename",z);return A.prototype=n,A}catch(a){throw a.temp="function anonymous($data,$filename) {"+z+"}",a}}var d=function(a,b){return"string"==typeof b?q(b,{filename:a}):g(a,b)};d.version="3.0.0",d.config=function(a,b){e[a]=b};var e=d.defaults={openTag:"<%",closeTag:"%>",escape:!0,cache:!0,compress:!1,parser:null},f=d.cache={};d.render=function(a,b){return q(a)(b)};var g=d.renderFile=function(a,b){var c=d.get(a)||p({filename:a,name:"Render Error",message:"Template not found"});return b?c(b):c};d.get=function(a){var b;if(f[a])b=f[a];else if("object"==typeof document){var c=document.getElementById(a);if(c){var d=(c.value||c.innerHTML).replace(/^\s*|\s*$/g,"");b=q(d,{filename:a})}}return b};var h=function(a,b){return"string"!=typeof a&&(b=typeof a,"number"===b?a+="":a="function"===b?h(a.call(a)):""),a},i={"<":"<",">":">",'"':""","'":"'","&":"&"},j=function(a){return i[a]},k=function(a){return h(a).replace(/&(?![\w#]+;)|[<>"']/g,j)},l=Array.isArray||function(a){return"[object Array]"==={}.toString.call(a)},m=function(a,b){var c,d;if(l(a))for(c=0,d=a.length;c<d;c++)b.call(a,a[c],c,a);else for(c in a)b.call(a,a[c],c)},n=d.utils={$helpers:{},$include:g,$string:h,$escape:k,$each:m};d.helper=function(a,b){o[a]=b};var o=d.helpers=n.$helpers;d.onerror=function(a){var b="Template Error\n\n";for(var c in a)b+="<"+c+">\n"+a[c]+"\n\n";"object"==typeof console&&console.error(b)};var p=function(a){return d.onerror(a),function(){return"{Template Error}"}},q=d.compile=function(a,b){function d(c){try{return new i(c,h)+""}catch(d){return b.debug?p(d)():(b.debug=!0,q(a,b)(c))}}b=b||{};for(var g in e)void 0===b[g]&&(b[g]=e[g]);var h=b.filename;try{var i=c(a,b)}catch(a){return a.filename=h||"anonymous",a.name="Syntax Error",p(a)}return d.prototype=i.prototype,d.toString=function(){return i.toString()},h&&b.cache&&(f[h]=d),d},r=n.$each,s="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",t=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|\s*\.\s*[$\w\.]+/g,u=/[^\w$]+/g,v=new RegExp(["\\b"+s.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),w=/^\d[^,]*|,\d[^,]*/g,x=/^,+|,+$/g,y=/^$|,+/;"object"==typeof exports&&"undefined"!=typeof module?module.exports=d:"function"==typeof define?define('template',[],function(){return d}):this.template=d}();
|
||||
//! moment.js
|
||||
//! version : 2.29.1
|
||||
//! version : 2.29.3
|
||||
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
||||
//! license : MIT
|
||||
//! momentjs.com
|
||||
|
|
@ -1092,8 +1092,9 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
function map(arr, fn) {
|
||||
var res = [],
|
||||
i;
|
||||
for (i = 0; i < arr.length; ++i) {
|
||||
i,
|
||||
arrLen = arr.length;
|
||||
for (i = 0; i < arrLen; ++i) {
|
||||
res.push(fn(arr[i], i));
|
||||
}
|
||||
return res;
|
||||
|
|
@ -1222,7 +1223,10 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
updateInProgress = false;
|
||||
|
||||
function copyConfig(to, from) {
|
||||
var i, prop, val;
|
||||
var i,
|
||||
prop,
|
||||
val,
|
||||
momentPropertiesLen = momentProperties.length;
|
||||
|
||||
if (!isUndefined(from._isAMomentObject)) {
|
||||
to._isAMomentObject = from._isAMomentObject;
|
||||
|
|
@ -1255,8 +1259,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
to._locale = from._locale;
|
||||
}
|
||||
|
||||
if (momentProperties.length > 0) {
|
||||
for (i = 0; i < momentProperties.length; i++) {
|
||||
if (momentPropertiesLen > 0) {
|
||||
for (i = 0; i < momentPropertiesLen; i++) {
|
||||
prop = momentProperties[i];
|
||||
val = from[prop];
|
||||
if (!isUndefined(val)) {
|
||||
|
|
@ -1311,8 +1315,9 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
var args = [],
|
||||
arg,
|
||||
i,
|
||||
key;
|
||||
for (i = 0; i < arguments.length; i++) {
|
||||
key,
|
||||
argLen = arguments.length;
|
||||
for (i = 0; i < argLen; i++) {
|
||||
arg = '';
|
||||
if (typeof arguments[i] === 'object') {
|
||||
arg += '\n[' + i + '] ';
|
||||
|
|
@ -1462,7 +1467,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
);
|
||||
}
|
||||
|
||||
var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
|
||||
var formattingTokens =
|
||||
/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,
|
||||
localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,
|
||||
formatFunctions = {},
|
||||
formatTokenFunctions = {};
|
||||
|
|
@ -1766,8 +1772,9 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
if (typeof units === 'object') {
|
||||
units = normalizeObjectUnits(units);
|
||||
var prioritized = getPrioritizedUnits(units),
|
||||
i;
|
||||
for (i = 0; i < prioritized.length; i++) {
|
||||
i,
|
||||
prioritizedLen = prioritized.length;
|
||||
for (i = 0; i < prioritizedLen; i++) {
|
||||
this[prioritized[i].unit](units[prioritized[i].unit]);
|
||||
}
|
||||
} else {
|
||||
|
|
@ -1797,7 +1804,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123
|
||||
// any word (or two) characters or numbers including two/three word month in arabic.
|
||||
// includes scottish gaelic two word and hyphenated months
|
||||
matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
|
||||
matchWord =
|
||||
/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,
|
||||
regexes;
|
||||
|
||||
regexes = {};
|
||||
|
|
@ -1823,15 +1831,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
return regexEscape(
|
||||
s
|
||||
.replace('\\', '')
|
||||
.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (
|
||||
matched,
|
||||
p1,
|
||||
p2,
|
||||
p3,
|
||||
p4
|
||||
) {
|
||||
.replace(
|
||||
/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,
|
||||
function (matched, p1, p2, p3, p4) {
|
||||
return p1 || p2 || p3 || p4;
|
||||
})
|
||||
}
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
@ -1843,7 +1848,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
function addParseToken(token, callback) {
|
||||
var i,
|
||||
func = callback;
|
||||
func = callback,
|
||||
tokenLen;
|
||||
if (typeof token === 'string') {
|
||||
token = [token];
|
||||
}
|
||||
|
|
@ -1852,7 +1858,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
array[callback] = toInt(input);
|
||||
};
|
||||
}
|
||||
for (i = 0; i < token.length; i++) {
|
||||
tokenLen = token.length;
|
||||
for (i = 0; i < tokenLen; i++) {
|
||||
tokens[token[i]] = func;
|
||||
}
|
||||
}
|
||||
|
|
@ -1963,12 +1970,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
// LOCALES
|
||||
|
||||
var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
|
||||
'_'
|
||||
),
|
||||
defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split(
|
||||
var defaultLocaleMonths =
|
||||
'January_February_March_April_May_June_July_August_September_October_November_December'.split(
|
||||
'_'
|
||||
),
|
||||
defaultLocaleMonthsShort =
|
||||
'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
|
||||
MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,
|
||||
defaultMonthsShortRegex = matchWord,
|
||||
defaultMonthsRegex = matchWord;
|
||||
|
|
@ -2410,14 +2417,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
addRegexToken('W', match1to2);
|
||||
addRegexToken('WW', match1to2, match2);
|
||||
|
||||
addWeekParseToken(['w', 'ww', 'W', 'WW'], function (
|
||||
input,
|
||||
week,
|
||||
config,
|
||||
token
|
||||
) {
|
||||
addWeekParseToken(
|
||||
['w', 'ww', 'W', 'WW'],
|
||||
function (input, week, config, token) {
|
||||
week[token.substr(0, 1)] = toInt(input);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
// HELPERS
|
||||
|
||||
|
|
@ -2542,9 +2547,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
return ws.slice(n, 7).concat(ws.slice(0, n));
|
||||
}
|
||||
|
||||
var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
|
||||
'_'
|
||||
),
|
||||
var defaultLocaleWeekdays =
|
||||
'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),
|
||||
defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
|
||||
defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
|
||||
defaultWeekdaysRegex = matchWord,
|
||||
|
|
@ -3092,6 +3096,11 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
return globalLocale;
|
||||
}
|
||||
|
||||
function isLocaleNameSane(name) {
|
||||
// Prevent names that look like filesystem paths, i.e contain '/' or '\'
|
||||
return name.match('^[^/\\\\]*$') != null;
|
||||
}
|
||||
|
||||
function loadLocale(name) {
|
||||
var oldLocale = null,
|
||||
aliasedRequire;
|
||||
|
|
@ -3100,7 +3109,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
locales[name] === undefined &&
|
||||
typeof module !== 'undefined' &&
|
||||
module &&
|
||||
module.exports
|
||||
module.exports &&
|
||||
isLocaleNameSane(name)
|
||||
) {
|
||||
try {
|
||||
oldLocale = globalLocale._abbr;
|
||||
|
|
@ -3317,8 +3327,10 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
// iso 8601 regex
|
||||
// 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)
|
||||
var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
||||
basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
||||
var extendedIsoRegex =
|
||||
/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
||||
basicIsoRegex =
|
||||
/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,
|
||||
tzRegex = /Z|[+-]\d\d(?::?\d\d)?/,
|
||||
isoDates = [
|
||||
['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/],
|
||||
|
|
@ -3349,7 +3361,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
],
|
||||
aspNetJsonRegex = /^\/?Date\((-?\d+)/i,
|
||||
// RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3
|
||||
rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
|
||||
rfc2822 =
|
||||
/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,
|
||||
obsOffsets = {
|
||||
UT: 0,
|
||||
GMT: 0,
|
||||
|
|
@ -3372,12 +3385,13 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
allowTime,
|
||||
dateFormat,
|
||||
timeFormat,
|
||||
tzFormat;
|
||||
tzFormat,
|
||||
isoDatesLen = isoDates.length,
|
||||
isoTimesLen = isoTimes.length;
|
||||
|
||||
if (match) {
|
||||
getParsingFlags(config).iso = true;
|
||||
|
||||
for (i = 0, l = isoDates.length; i < l; i++) {
|
||||
for (i = 0, l = isoDatesLen; i < l; i++) {
|
||||
if (isoDates[i][1].exec(match[1])) {
|
||||
dateFormat = isoDates[i][0];
|
||||
allowTime = isoDates[i][2] !== false;
|
||||
|
|
@ -3389,7 +3403,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
return;
|
||||
}
|
||||
if (match[3]) {
|
||||
for (i = 0, l = isoTimes.length; i < l; i++) {
|
||||
for (i = 0, l = isoTimesLen; i < l; i++) {
|
||||
if (isoTimes[i][1].exec(match[3])) {
|
||||
// match[2] should be 'T' or space
|
||||
timeFormat = (match[2] || ' ') + isoTimes[i][0];
|
||||
|
|
@ -3769,12 +3783,13 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
skipped,
|
||||
stringLength = string.length,
|
||||
totalParsedInputLength = 0,
|
||||
era;
|
||||
era,
|
||||
tokenLen;
|
||||
|
||||
tokens =
|
||||
expandFormat(config._f, config._locale).match(formattingTokens) || [];
|
||||
|
||||
for (i = 0; i < tokens.length; i++) {
|
||||
tokenLen = tokens.length;
|
||||
for (i = 0; i < tokenLen; i++) {
|
||||
token = tokens[i];
|
||||
parsedInput = (string.match(getParseRegexForToken(token, config)) ||
|
||||
[])[0];
|
||||
|
|
@ -3869,15 +3884,16 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
i,
|
||||
currentScore,
|
||||
validFormatFound,
|
||||
bestFormatIsValid = false;
|
||||
bestFormatIsValid = false,
|
||||
configfLen = config._f.length;
|
||||
|
||||
if (config._f.length === 0) {
|
||||
if (configfLen === 0) {
|
||||
getParsingFlags(config).invalidFormat = true;
|
||||
config._d = new Date(NaN);
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < config._f.length; i++) {
|
||||
for (i = 0; i < configfLen; i++) {
|
||||
currentScore = 0;
|
||||
validFormatFound = false;
|
||||
tempConfig = copyConfig({}, config);
|
||||
|
|
@ -4118,7 +4134,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
function isDurationValid(m) {
|
||||
var key,
|
||||
unitHasDecimal = false,
|
||||
i;
|
||||
i,
|
||||
orderLen = ordering.length;
|
||||
for (key in m) {
|
||||
if (
|
||||
hasOwnProp(m, key) &&
|
||||
|
|
@ -4131,7 +4148,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < ordering.length; ++i) {
|
||||
for (i = 0; i < orderLen; ++i) {
|
||||
if (m[ordering[i]]) {
|
||||
if (unitHasDecimal) {
|
||||
return false; // only allow non-integers for smallest unit
|
||||
|
|
@ -4456,7 +4473,8 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
// from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html
|
||||
// somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere
|
||||
// and further modified to allow for strings containing both week and day
|
||||
isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
||||
isoRegex =
|
||||
/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
||||
|
||||
function createDuration(input, key) {
|
||||
var duration = input,
|
||||
|
|
@ -4677,9 +4695,10 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
'ms',
|
||||
],
|
||||
i,
|
||||
property;
|
||||
property,
|
||||
propertyLen = properties.length;
|
||||
|
||||
for (i = 0; i < properties.length; i += 1) {
|
||||
for (i = 0; i < propertyLen; i += 1) {
|
||||
property = properties[i];
|
||||
propertyTest = propertyTest || hasOwnProp(input, property);
|
||||
}
|
||||
|
|
@ -5302,19 +5321,17 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
addRegexToken('NNNN', matchEraName);
|
||||
addRegexToken('NNNNN', matchEraNarrow);
|
||||
|
||||
addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function (
|
||||
input,
|
||||
array,
|
||||
config,
|
||||
token
|
||||
) {
|
||||
addParseToken(
|
||||
['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],
|
||||
function (input, array, config, token) {
|
||||
var era = config._locale.erasParse(input, token, config._strict);
|
||||
if (era) {
|
||||
getParsingFlags(config).era = era;
|
||||
} else {
|
||||
getParsingFlags(config).invalidEra = input;
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
addRegexToken('y', matchUnsigned);
|
||||
addRegexToken('yy', matchUnsigned);
|
||||
|
|
@ -5606,14 +5623,12 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
addRegexToken('GGGGG', match1to6, match6);
|
||||
addRegexToken('ggggg', match1to6, match6);
|
||||
|
||||
addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (
|
||||
input,
|
||||
week,
|
||||
config,
|
||||
token
|
||||
) {
|
||||
addWeekParseToken(
|
||||
['gggg', 'ggggg', 'GGGG', 'GGGGG'],
|
||||
function (input, week, config, token) {
|
||||
week[token.substr(0, 2)] = toInt(input);
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {
|
||||
week[token] = hooks.parseTwoDigitYear(input);
|
||||
|
|
@ -6636,7 +6651,7 @@ define('fast',['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, u
|
|||
|
||||
//! moment.js
|
||||
|
||||
hooks.version = '2.29.1';
|
||||
hooks.version = '2.29.3';
|
||||
|
||||
setHookCallback(createLocal);
|
||||
|
||||
|
|
@ -11607,7 +11622,7 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|||
},
|
||||
ignoreColumn: [0, 'operate'] //默认不导出第一列(checkbox)与操作(operate)列
|
||||
},
|
||||
pageSize: Config.pagesize || 10,
|
||||
pageSize: Config.pagesize || localStorage.getItem("pagesize") || 10,
|
||||
pageList: [10, 15, 20, 25, 50, 'All'],
|
||||
pagination: true,
|
||||
clickToSelect: true, //是否启用点击选中
|
||||
|
|
@ -11695,6 +11710,12 @@ define('table',['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstr
|
|||
$.fn.bootstrapTable.Constructor.prototype.getSelectItem = function () {
|
||||
return this.$selectItem;
|
||||
};
|
||||
var _onPageListChange = $.fn.bootstrapTable.Constructor.prototype.onPageListChange;
|
||||
$.fn.bootstrapTable.Constructor.prototype.onPageListChange = function () {
|
||||
_onPageListChange.apply(this, Array.prototype.slice.apply(arguments));
|
||||
localStorage.setItem('pagesize', this.options.pageSize);
|
||||
return false;
|
||||
};
|
||||
// 写入bootstrap-table默认配置
|
||||
$.extend(true, $.fn.bootstrapTable.defaults, Table.defaults, defaults);
|
||||
// 写入bootstrap-table column配置
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
|||
},
|
||||
ignoreColumn: [0, 'operate'] //默认不导出第一列(checkbox)与操作(operate)列
|
||||
},
|
||||
pageSize: Config.pagesize || 10,
|
||||
pageSize: Config.pagesize || localStorage.getItem("pagesize") || 10,
|
||||
pageList: [10, 15, 20, 25, 50, 'All'],
|
||||
pagination: true,
|
||||
clickToSelect: true, //是否启用点击选中
|
||||
|
|
@ -114,6 +114,12 @@ define(['jquery', 'bootstrap', 'moment', 'moment/locale/zh-cn', 'bootstrap-table
|
|||
$.fn.bootstrapTable.Constructor.prototype.getSelectItem = function () {
|
||||
return this.$selectItem;
|
||||
};
|
||||
var _onPageListChange = $.fn.bootstrapTable.Constructor.prototype.onPageListChange;
|
||||
$.fn.bootstrapTable.Constructor.prototype.onPageListChange = function () {
|
||||
_onPageListChange.apply(this, Array.prototype.slice.apply(arguments));
|
||||
localStorage.setItem('pagesize', this.options.pageSize);
|
||||
return false;
|
||||
};
|
||||
// 写入bootstrap-table默认配置
|
||||
$.extend(true, $.fn.bootstrapTable.defaults, Table.defaults, defaults);
|
||||
// 写入bootstrap-table column配置
|
||||
|
|
|
|||
Loading…
Reference in New Issue