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
8524d06d
Commit
8524d06d
authored
Dec 30, 2018
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Enhancement:Modules:FileManager) 编辑文件窗口将「编码」按钮替换为「用此编码打开」
parent
33a8c3ba
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
8 deletions
+12
-8
CHANGELOG.md
CHANGELOG.md
+4
-0
README.md
README.md
+1
-1
README_CN.md
README_CN.md
+1
-1
package-lock.json
package-lock.json
+1
-1
package.json
package.json
+1
-1
en.js
source/language/en.js
+1
-1
zh.js
source/language/zh.js
+1
-1
index.js
source/modules/filemanager/index.js
+2
-2
No files found.
CHANGELOG.md
View file @
8524d06d
...
...
@@ -8,6 +8,10 @@
*
优化返回包解码流程,增加自动猜解编码功能,该功能在中文较少时容易出错,出错了使用用户设置的字符编码
### 文件管理
*
编辑文件窗口将「编码」按钮替换为「用此编码打开」, 若打开文件之后乱码,不妨试试切换编码
### Other
*
新增 Python2 Custom CGI shell 示例
...
...
README.md
View file @
8524d06d
# AntSword [][url-release]
# AntSword [][url-release]
> AntSword in your hands, no worries in your mind!
...
...
README_CN.md
View file @
8524d06d
# 中国蚁剑 [][url-release]
# 中国蚁剑 [][url-release]
> 一剑在手,纵横无忧!
...
...
package-lock.json
View file @
8524d06d
{
"name"
:
"antsword"
,
"version"
:
"2.0.3.
1
"
,
"version"
:
"2.0.3.
2
"
,
"lockfileVersion"
:
1
,
"requires"
:
true
,
"dependencies"
:
{
...
...
package.json
View file @
8524d06d
{
"name"
:
"antsword"
,
"version"
:
"2.0.3.
1
"
,
"version"
:
"2.0.3.
2
"
,
"description"
:
"中国蚁剑是一款跨平台的开源网站管理工具"
,
"main"
:
"app.js"
,
"dependencies"
:
{
...
...
source/language/en.js
View file @
8524d06d
...
...
@@ -333,7 +333,7 @@ module.exports = {
toolbar
:
{
save
:
'Save'
,
mode
:
'Mode'
,
encode
:
'
Encode
'
encode
:
'
Open with Encoding
'
},
loadErr
:
(
err
)
=>
antSword
.
noxss
(
`Load file error!\n
${
err
}
`
),
success
:
(
path
)
=>
antSword
.
noxss
(
`Save the file success!\n
${
path
}
`
),
...
...
source/language/zh.js
View file @
8524d06d
...
...
@@ -334,7 +334,7 @@ module.exports = {
toolbar
:
{
save
:
'保存'
,
mode
:
'高亮'
,
encode
:
'
编码
'
encode
:
'
用此编码打开
'
},
loadErr
:
(
err
)
=>
antSword
.
noxss
(
`加载文件出错!\n
${
err
}
`
),
success
:
(
path
)
=>
antSword
.
noxss
(
`保存文件成功!\n
${
path
}
`
),
...
...
source/modules/filemanager/index.js
View file @
8524d06d
...
...
@@ -881,7 +881,7 @@ class FileManager {
editor.session.setMode(`ace/mode/${mode}`);
}else if (id.startsWith('
encode_
')) {
let encode = id.split('
_
')[1];
editor.session.setValue(iconv.
encode(codes
, encode).toString());
editor.session.setValue(iconv.
decode(new Buffer(codes)
, encode).toString());
}else{
console.info('
toolbar
.
onClick
', id);
}
...
...
@@ -894,7 +894,7 @@ class FileManager {
})
).then((res) => {
let ret = res['
text
'];
codes = re
t
;
codes = re
s['
buff
']
;
let encoding = res['
encoding
'] || this.opts['
encode
'];
if(encoding.toUpperCase() == "UTF-8") {
encoding = "UTF8";
...
...
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