Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
f0d3879c
Commit
f0d3879c
authored
Apr 16, 2016
by
antoor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the encoders to prototype
添加编码器列表到prototype,这样就能在外部动态获取了
parent
ffb25246
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
6 deletions
+37
-6
index.jsx
source/core/asp/index.jsx
+9
-1
index.jsx
source/core/aspx/index.jsx
+9
-1
index.jsx
source/core/custom/index.jsx
+9
-1
index.jsx
source/core/php/index.jsx
+10
-3
No files found.
source/core/asp/index.jsx
View file @
f0d3879c
...
@@ -22,11 +22,19 @@ class ASP extends Base {
...
@@ -22,11 +22,19 @@ class ASP extends Base {
this
.
parseTemplate
(
`./asp/template/
${
_
}
`
);
this
.
parseTemplate
(
`./asp/template/
${
_
}
`
);
});
});
// 解析编码器
// 解析编码器
[]
.
map
((
_
)
=>
{
this
.
encoders
.
map
((
_
)
=>
{
this
.
parseEncoder
(
`./asp/encoder/
${
_
}
`
);
this
.
parseEncoder
(
`./asp/encoder/
${
_
}
`
);
});
});
}
}
/**
* 获取编码器列表
* @return {array} 编码器列表
*/
get
encoders
()
{
return
[];
}
/**
/**
* HTTP请求数据组合函数
* HTTP请求数据组合函数
* @param {Object} data 通过模板解析后的代码对象
* @param {Object} data 通过模板解析后的代码对象
...
...
source/core/aspx/index.jsx
View file @
f0d3879c
...
@@ -22,11 +22,19 @@ class ASPX extends Base {
...
@@ -22,11 +22,19 @@ class ASPX extends Base {
this
.
parseTemplate
(
`./aspx/template/
${
_
}
`
);
this
.
parseTemplate
(
`./aspx/template/
${
_
}
`
);
});
});
// 解析编码器
// 解析编码器
[]
.
map
((
_
)
=>
{
this
.
encoders
.
map
((
_
)
=>
{
this
.
parseEncoder
(
`./aspx/encoder/
${
_
}
`
);
this
.
parseEncoder
(
`./aspx/encoder/
${
_
}
`
);
});
});
}
}
/**
* 获取编码器列表
* @return {array} 编码器列表
*/
get
encoders
()
{
return
[];
}
/**
/**
* HTTP请求数据组合函数
* HTTP请求数据组合函数
* @param {Object} data 通过模板解析后的代码对象
* @param {Object} data 通过模板解析后的代码对象
...
...
source/core/custom/index.jsx
View file @
f0d3879c
...
@@ -19,11 +19,19 @@ class CUSTOM extends Base {
...
@@ -19,11 +19,19 @@ class CUSTOM extends Base {
this
.
parseTemplate
(
`./custom/template/
${
_
}
`
);
this
.
parseTemplate
(
`./custom/template/
${
_
}
`
);
});
});
// 解析编码器
// 解析编码器
[]
.
map
((
_
)
=>
{
this
.
encoders
.
map
((
_
)
=>
{
this
.
parseEncoder
(
`./custom/encoder/
${
_
}
`
);
this
.
parseEncoder
(
`./custom/encoder/
${
_
}
`
);
});
});
}
}
/**
* 获取编码器列表
* @return {array} 编码器列表
*/
get
encoders
()
{
return
[];
}
/**
/**
* HTTP请求数据组合函数
* HTTP请求数据组合函数
* @param {Object} data 通过模板解析后的代码对象
* @param {Object} data 通过模板解析后的代码对象
...
...
source/core/php/index.jsx
View file @
f0d3879c
...
@@ -22,13 +22,20 @@ class PHP extends Base {
...
@@ -22,13 +22,20 @@ class PHP extends Base {
this
.
parseTemplate
(
`./php/template/
${
_
}
`
);
this
.
parseTemplate
(
`./php/template/
${
_
}
`
);
});
});
// 解析编码器
// 解析编码器
[
this
.
encoders
.
map
((
_
)
=>
{
'chr'
,
'base64'
].
map
((
_
)
=>
{
this
.
parseEncoder
(
`./php/encoder/
${
_
}
`
);
this
.
parseEncoder
(
`./php/encoder/
${
_
}
`
);
});
});
}
}
/**
* 获取编码器列表
* ? 可以在antSword.core.php.prototype.encoders中获取此变量
* @return {array} 编码器列表
*/
get
encoders
()
{
return
[
'chr'
,
'base64'
];
}
/**
/**
* HTTP请求数据组合函数
* HTTP请求数据组合函数
* @param {Object} data 通过模板解析后的代码对象
* @param {Object} data 通过模板解析后的代码对象
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment