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
087b20fe
Commit
087b20fe
authored
Apr 21, 2019
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Enhance:ShellManager) 复制 Shell URL #144
parent
d0c5b3d0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
4 deletions
+25
-4
CHANGELOG.md
CHANGELOG.md
+1
-0
en.js
source/language/en.js
+2
-1
zh.js
source/language/zh.js
+2
-1
zh_hk.js
source/language/zh_hk.js
+2
-1
zh_tw.js
source/language/zh_tw.js
+2
-1
contextmenu.js
source/modules/shellmanager/list/contextmenu.js
+16
-0
No files found.
CHANGELOG.md
View file @
087b20fe
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
*
主窗口增加 CSP 策略
*
主窗口增加 CSP 策略
*
Fix self-xss in database config #151 (thx @miaochiahao)
*
Fix self-xss in database config #151 (thx @miaochiahao)
*
Fix #153 (thx @ViCrack)
*
Fix #153 (thx @ViCrack)
*
复制 Shell URL #144
## `v(2.0.7.2)`
## `v(2.0.7.2)`
...
...
source/language/en.js
View file @
087b20fe
...
@@ -68,7 +68,8 @@ module.exports = {
...
@@ -68,7 +68,8 @@ module.exports = {
pluginStore
:
'Plugin Store'
,
pluginStore
:
'Plugin Store'
,
clearCache
:
'Clear cache'
,
clearCache
:
'Clear cache'
,
clearAllCache
:
'Clear all cache'
,
clearAllCache
:
'Clear all cache'
,
viewsite
:
'View Site'
viewsite
:
'View Site'
,
copyurl
:
'Copy URL'
},
},
category
:
{
category
:
{
title
:
'Category'
,
title
:
'Category'
,
...
...
source/language/zh.js
View file @
087b20fe
...
@@ -69,7 +69,8 @@ module.exports = {
...
@@ -69,7 +69,8 @@ module.exports = {
pluginStore
:
'插件市场'
,
pluginStore
:
'插件市场'
,
clearCache
:
'清空缓存'
,
clearCache
:
'清空缓存'
,
clearAllCache
:
'清空所有缓存'
,
clearAllCache
:
'清空所有缓存'
,
viewsite
:
'浏览网站'
viewsite
:
'浏览网站'
,
copyurl
:
'复制URL'
},
},
category
:
{
category
:
{
title
:
'分类目录'
,
title
:
'分类目录'
,
...
...
source/language/zh_hk.js
View file @
087b20fe
...
@@ -69,7 +69,8 @@ module.exports = {
...
@@ -69,7 +69,8 @@ module.exports = {
pluginStore
:
'插件市場'
,
pluginStore
:
'插件市場'
,
clearCache
:
'清空緩存'
,
clearCache
:
'清空緩存'
,
clearAllCache
:
'清空所有緩存'
,
clearAllCache
:
'清空所有緩存'
,
viewsite
:
'瀏覽網站'
viewsite
:
'瀏覽網站'
,
copyurl
:
'複製URL'
},
},
category
:
{
category
:
{
title
:
'分類目錄'
,
title
:
'分類目錄'
,
...
...
source/language/zh_tw.js
View file @
087b20fe
...
@@ -69,7 +69,8 @@ module.exports = {
...
@@ -69,7 +69,8 @@ module.exports = {
pluginStore
:
'插件市場'
,
pluginStore
:
'插件市場'
,
clearCache
:
'清空緩存'
,
clearCache
:
'清空緩存'
,
clearAllCache
:
'清空所有緩存'
,
clearAllCache
:
'清空所有緩存'
,
viewsite
:
'瀏覽網站'
viewsite
:
'瀏覽網站'
,
copyurl
:
'複製URL'
},
},
category
:
{
category
:
{
title
:
'分類目錄'
,
title
:
'分類目錄'
,
...
...
source/modules/shellmanager/list/contextmenu.js
View file @
087b20fe
...
@@ -8,6 +8,7 @@ const ViewSite = require('../../viewsite/');
...
@@ -8,6 +8,7 @@ const ViewSite = require('../../viewsite/');
const
Terminal
=
require
(
'../../terminal/'
);
const
Terminal
=
require
(
'../../terminal/'
);
const
Database
=
require
(
'../../database/'
);
const
Database
=
require
(
'../../database/'
);
const
FileManager
=
require
(
'../../filemanager/'
);
const
FileManager
=
require
(
'../../filemanager/'
);
const
clipboard
=
require
(
'electron'
).
clipboard
;
const
LANG
=
antSword
[
'language'
][
'shellmanager'
];
const
LANG
=
antSword
[
'language'
][
'shellmanager'
];
const
LANG_T
=
antSword
[
'language'
][
'toastr'
];
const
LANG_T
=
antSword
[
'language'
][
'toastr'
];
...
@@ -38,6 +39,7 @@ class ContextMenu {
...
@@ -38,6 +39,7 @@ class ContextMenu {
[
'viewsite'
,
'chrome'
,
selectedData
,
()
=>
{
[
'viewsite'
,
'chrome'
,
selectedData
,
()
=>
{
new
ViewSite
(
data
[
0
]);
new
ViewSite
(
data
[
0
]);
}],
}],
[
'copyurl'
,
'copy'
,
selectedData
,
this
.
copyUrl
.
bind
(
this
,
data
[
0
])],
false
,
false
,
[
'plugin'
,
'folder-o'
,
selectedMultiData
,
null
,
this
.
parsePlugContextMenu
(
data
)],
[
'plugin'
,
'folder-o'
,
selectedMultiData
,
null
,
this
.
parsePlugContextMenu
(
data
)],
[
[
...
@@ -351,6 +353,20 @@ class ContextMenu {
...
@@ -351,6 +353,20 @@ class ContextMenu {
}
}
});
});
}
}
/**
* 复制URL
* @param {opt} info
*/
copyUrl
(
info
)
{
let
url
=
info
[
'url'
];
clipboard
.
writeText
(
url
);
let
txt
=
clipboard
.
readText
();
if
(
txt
==
url
)
{
toastr
.
success
(
'Copy Success'
,
LANG_T
[
'success'
]);
}
else
{
toastr
.
error
(
'Copy Failed'
,
LANG_T
[
'error'
]);
}
}
}
}
module
.
exports
=
ContextMenu
;
module
.
exports
=
ContextMenu
;
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