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
3352585f
Commit
3352585f
authored
Apr 02, 2017
by
Virink
Committed by
undefined
Apr 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增网站备注功能 (#87) thx @virink
👍
parent
e7725160
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
7 deletions
+21
-7
database.js
modules/database.js
+2
-0
en.js
source/language/en.js
+3
-0
zh.js
source/language/zh.js
+3
-0
data.js
source/modules/shellmanager/data.js
+1
-1
form.js
source/modules/shellmanager/list/form.js
+7
-2
grid.js
source/modules/shellmanager/list/grid.js
+5
-4
No files found.
modules/database.js
View file @
3352585f
...
...
@@ -121,6 +121,7 @@ class Database {
category
:
opts
.
base
[
'category'
]
||
'default'
,
url
:
opts
.
base
[
'url'
],
pwd
:
opts
.
base
[
'pwd'
],
note
:
opts
.
base
[
'note'
],
type
:
opts
.
base
[
'type'
],
ip
:
ret
[
'ip'
],
addr
:
ret
[
'addr'
],
...
...
@@ -161,6 +162,7 @@ class Database {
addr
:
ret
[
'addr'
],
url
:
_new
.
base
[
'url'
],
pwd
:
_new
.
base
[
'pwd'
],
note
:
_new
.
base
[
'note'
],
type
:
_new
.
base
[
'type'
],
encode
:
_new
.
base
[
'encode'
],
encoder
:
_new
.
base
[
'encoder'
],
...
...
source/language/en.js
View file @
3352585f
...
...
@@ -97,6 +97,7 @@ module.exports = {
url
:
'URL'
,
ip
:
'IP'
,
addr
:
'ADDR'
,
note
:
'NOTE'
,
ctime
:
'CTIME'
,
utime
:
'UTIME'
},
...
...
@@ -109,6 +110,7 @@ module.exports = {
form
:
{
url
:
'Shell url'
,
pwd
:
'Shell pwd'
,
note
:
'Note'
,
encode
:
'Encode'
,
type
:
'Shell type'
,
encoder
:
'Encoder'
...
...
@@ -126,6 +128,7 @@ module.exports = {
form
:
{
url
:
'Shell url'
,
pwd
:
'Shell pwd'
,
note
:
'Note'
,
encode
:
'Encode'
,
type
:
'Shell type'
,
encoder
:
'Encoder'
...
...
source/language/zh.js
View file @
3352585f
...
...
@@ -98,6 +98,7 @@ module.exports = {
url
:
'URL地址'
,
ip
:
'IP地址'
,
addr
:
'物理位置'
,
note
:
'网站备注'
,
ctime
:
'创建时间'
,
utime
:
'更新时间'
},
...
...
@@ -110,6 +111,7 @@ module.exports = {
form
:
{
url
:
'URL地址'
,
pwd
:
'连接密码'
,
note
:
'网站备注'
,
encode
:
'编码设置'
,
type
:
'连接类型'
,
encoder
:
'编码器'
...
...
@@ -127,6 +129,7 @@ module.exports = {
form
:
{
url
:
'URL地址'
,
pwd
:
'连接密码'
,
note
:
'网站备注'
,
encode
:
'编码设置'
,
type
:
'连接类型'
,
encoder
:
'编码器'
...
...
source/modules/shellmanager/data.js
View file @
3352585f
...
...
@@ -26,7 +26,7 @@ module.exports = {
data
.
push
({
id
:
_
[
'_id'
],
data
:
[
_
[
'url'
],
_
[
'ip'
],
_
[
'addr'
],
_
[
'url'
],
_
[
'ip'
],
_
[
'addr'
],
_
[
'note'
],
new
Date
(
_
[
'ctime'
]).
format
(
'yyyy/MM/dd hh:mm:ss'
),
new
Date
(
_
[
'utime'
]).
format
(
'yyyy/MM/dd hh:mm:ss'
)
]
...
...
source/modules/shellmanager/list/form.js
View file @
3352585f
...
...
@@ -142,6 +142,7 @@ class Form {
const
opt
=
Object
.
assign
({},
{
url
:
''
,
pwd
:
''
,
note
:
''
,
type
:
'php'
,
encode
:
'utf8'
,
encoder
:
'default'
...
...
@@ -155,9 +156,12 @@ class Form {
},
{
type
:
'input'
,
label
:
LANG
[
'list'
][
'add'
][
'form'
][
'pwd'
],
name
:
'pwd'
,
required
:
true
,
value
:
opt
.
pwd
},
{
},{
type
:
'input'
,
label
:
LANG
[
'list'
][
'add'
][
'form'
][
'note'
],
name
:
'note'
,
value
:
opt
.
note
},
{
type
:
'combo'
,
label
:
LANG
[
'list'
][
'add'
][
'form'
][
'encode'
],
readonly
:
true
,
name
:
'encode'
,
options
:
this
.
_parseEncodes
(
opt
.
encode
)
name
:
'encode'
,
readonly
:
true
,
options
:
this
.
_parseEncodes
(
opt
.
encode
)
},
{
type
:
'combo'
,
label
:
LANG
[
'list'
][
'add'
][
'form'
][
'type'
],
name
:
'type'
,
readonly
:
true
,
options
:
this
.
_parseTypes
(
opt
.
type
,
opt
.
encoder
)
...
...
@@ -234,6 +238,7 @@ class Form {
let
_baseData
=
{
url
:
base
[
'url'
],
pwd
:
base
[
'pwd'
],
note
:
base
[
'note'
],
type
:
base
[
'type'
],
encode
:
base
[
'encode'
],
encoder
:
base
[
`encoder_
${
base
[
'type'
]}
`
]
...
...
source/modules/shellmanager/list/grid.js
View file @
3352585f
...
...
@@ -22,13 +22,14 @@ class Grid {
${
LANG
[
'url'
]}
,
${
LANG
[
'ip'
]}
,
${
LANG
[
'addr'
]}
,
${
LANG
[
'note'
]}
,
${
LANG
[
'ctime'
]}
,
${
LANG
[
'utime'
]}
`
);
grid
.
setColTypes
(
"ro,ro,ro,ro,ro"
);
grid
.
setColSorting
(
'str,str,str,str,str'
);
grid
.
setInitWidths
(
"200,120,*,140,140"
);
grid
.
setColAlign
(
"left,left,left,center,center"
);
grid
.
setColTypes
(
"ro,ro,ro,ro,ro
,ro
"
);
grid
.
setColSorting
(
'str,str,str,str,str
,str
'
);
grid
.
setInitWidths
(
"200,120,*,
*,
140,140"
);
grid
.
setColAlign
(
"left,left,left,
left,
center,center"
);
grid
.
enableMultiselect
(
true
);
// 隐藏右键菜单
...
...
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