-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverConfig.js
96 lines (96 loc) · 3.88 KB
/
serverConfig.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
module.exports = {
tokenize: {
objects: {
"Date": "Date",
"Array": "Array",
"Math": "Math",
"RegExp": "RegExp",
"fcf.UNDEFINED": true,
"fcf.NULL": true,
"fcf.NAN": true,
"fcf.BOOLEAN": true,
"fcf.NUMBER": true,
"fcf.STRING": true,
"fcf.DATE": true,
"fcf.OBJECT": true,
"fcf.ARRAY": true,
"fcf.ITERABLE": true,
"fcf.NUMBERED": true,
},
functions: [
{
object: "",
allow: ["parseFloat", "parseInt", "isNaN", "Error", "String", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "isFinite", "Number"],
},
{
object: "fcf",
allow: ["isServer", "escapeQuotes", "str", "unescape", "replaceAll", "decodeHtml", "encodeHtml", "stripTags",
"ltrim", "rtrim", "trim", "pad", "id", "uuid", "base64Encode", "base64Decode", "isObject", "isIterable",
"isNumbered", "isNature", "isContains", "isContainsNature", "count", "empty", "clone", "equal", "compare",
"styleToString", "load", "getParamCount", "parseObjectAddress", "resolveEx", "resolve", "stackToString",
"errorToString", "parseStack", "getDirectory", "getExtension", "get", "has", "getShortFileName",
"getFileName", "resolvePath", "getPath", "parseDate", "dateFormat", "buildUrl", "t", "getContext", "RouteInfo", "Exception"],
},
{
object: "JSON",
allow: ["parse", "stringify"],
},
{
object: "Math",
allow: ["abs", "acos", "acosh", "asin","asinh", "atan", "atan2", "atanh", "cbrt", "ceil",
"clz32", "cos", "cosh", "exp", "expm1", "floor", "fround", "hypot", "imul", "log",
"log1p", "log2", "log10", "max", "min", "pow", "random", "round", "sign", "sin",
"sinh", "sqrt", "tan", "tanh", "trunc"],
},
{
object: "*",
allow: ["toString"],
},
{
object: "*",
class: "Array",
allow: ["at", "concat", "entries", "flat", "flatMap", "includes", "indexOf", "keys", "lastIndexOf", "slice", "values", "join"],
},
{
object: "Array",
allow: ["of", "isArray", "from", "constructor"],
},
{
object: "*",
class: "Date",
allow: ["getDate", "getDay", "getFullYear", "getHours", "getMilliseconds", "getMinutes",
"getMonth", "getSeconds", "getTime", "getTimezoneOffset", "getUTCDate", "getUTCDay",
"getUTCFullYear", "getUTCHours", "getUTCMilliseconds", "getUTCMinutes", "getUTCMonth",
"getUTCSeconds", "getYear", "toDateString", "toISOString", "toJSON", "toLocaleDateString",
"toLocaleString", "toLocaleTimeString", "toTimeString", "toUTCString"],
},
{
object: "Date",
allow: ["parse", "now", "UTC", "constructor"],
},
{
object: "RegExp",
allow: ["constructor"]
},
{
object: "*",
class: "RegExp",
allow: ["exec", "test"],
},
{
object: "*",
class: "String",
allow: ["anchor", "at", "big", "blink", "bold", "charAt", "charCodeAt", "codePointAt", "concat",
"endsWith", "fixed", "fontcolor", "fontsize", "includes", "indexOf", "isWellFormed",
"italics", "lastIndexOf", "link", "localeCompare", "match", "matchAll", "normalize",
"padEnd", "padStart", "repeat", "replace", "replaceAll", "search", "slice", "small",
"split", "startsWith", "strike", "sub", "substr", "substring", "sup", "toLocaleLowerCase",
"toLocaleUpperCase", "toLowerCase", "toUpperCase", "toWellFormed", "trim", "trimEnd", "trimStart"],
},
{
object: "String",
allow: ["fromCharCode", "fromCodePoint"],
}
],
}
};