Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
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
ops
luna
Commits
9649aaa2
Unverified
Commit
9649aaa2
authored
Feb 09, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
69649bfb
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
84 additions
and
82 deletions
+84
-82
cn.json
i18n/cn.json
+31
-2
app.module.ts
src/app/app.module.ts
+0
-2
leftbar.component.html
src/app/elements/leftbar/leftbar.component.html
+0
-4
basic.component.html
src/app/setting-page/basic/basic.component.html
+20
-12
basic.component.scss
src/app/setting-page/basic/basic.component.scss
+12
-0
nav.component.html
src/app/setting-page/nav/nav.component.html
+0
-20
nav.component.scss
src/app/setting-page/nav/nav.component.scss
+0
-0
nav.component.spec.ts
src/app/setting-page/nav/nav.component.spec.ts
+0
-25
nav.component.ts
src/app/setting-page/nav/nav.component.ts
+0
-15
setting-page.component.html
src/app/setting-page/setting-page.component.html
+16
-2
setting-page.component.scss
src/app/setting-page/setting-page.component.scss
+5
-0
No files found.
i18n/cn.json
View file @
9649aaa2
{
"reset"
:
"重置"
,
"submit"
:
"提交"
,
"email subject prefix"
:
"邮件"
,
"email subject prefix"
:
"邮件主题前缀"
,
"basic setting"
:
"基本设置"
,
"email setting"
:
"邮件设置"
,
"ldap setting"
:
"LDAP设置"
,
"terminal setting"
:
"终端设置"
,
"current site url"
:
"当前站点URL"
,
"user guide url"
:
"用户向导URL"
,
"user first login update profile done redirect to it"
:
"用户第一次登录,修改profile后重定向到地址"
,
"server"
:
"服务器"
,
"view"
:
"视图"
,
"help"
:
"帮助"
,
...
...
@@ -10,5 +17,27 @@
"disconnect all"
:
"断开所有链接"
,
"disconnect"
:
"断开链接"
,
"website"
:
"我们的网站"
,
"search"
:
"搜索"
"search"
:
"搜索"
,
"settings"
:
"系统设置"
,
"job center"
:
"作业中心"
,
"sessions"
:
"会话管理"
,
"perms"
:
"权限管理"
,
"assets"
:
"资产管理"
,
"users"
:
"用户管理"
,
"dashboard"
:
"仪表盘"
,
"task"
:
"任务"
,
"session online"
:
"在线会话"
,
"session offline"
:
"离线会话"
,
"commands"
:
"命令记录"
,
"terminal"
:
"终端管理"
,
"asset perminssion"
:
"资产授权"
,
"asset"
:
"资产"
,
"asset group"
:
"资产组"
,
"cluster"
:
"集群"
,
"admin user"
:
"管理用户"
,
"system user"
:
"系统用户"
,
"labels"
:
"标签管理"
,
"user"
:
"用户"
,
"user group"
:
"用户组"
,
"login logs"
:
"登陆日志"
}
src/app/app.module.ts
View file @
9649aaa2
...
...
@@ -58,7 +58,6 @@ import {ElementTableComponent} from './elements/table/table.component';
import
{
SettingPageComponent
}
from
'./setting-page/setting-page.component'
;
import
{
ElementLeftbarComponent
}
from
'./elements/leftbar/leftbar.component'
;
import
{
ElementOfooterComponent
}
from
'./elements/ofooter/ofooter.component'
;
import
{
SettingPageNavComponent
}
from
'./setting-page/nav/nav.component'
;
import
{
SettingPageBasicComponent
}
from
'./setting-page/basic/basic.component'
;
import
{
SettingPageEmailComponent
}
from
'./setting-page/email/email.component'
;
import
{
SettingPageLdapComponent
}
from
'./setting-page/ldap/ldap.component'
;
...
...
@@ -115,7 +114,6 @@ import {TransPipe} from './trans.pipe';
TestPageComponent
,
BlankPageComponent
,
SettingPageComponent
,
SettingPageNavComponent
,
SettingPageBasicComponent
,
SettingPageEmailComponent
,
SettingPageLdapComponent
,
...
...
src/app/elements/leftbar/leftbar.component.html
View file @
9649aaa2
...
...
@@ -7,10 +7,6 @@
<a
href=
"http://www.jumpserver.org"
target=
"_blank"
>
<img
alt=
"image"
height=
"55"
src=
"/static/imgs/logo-text.png"
style=
"margin-left: 10px"
>
</a>
<div
class=
"clearfix"
></div>
<div
class=
"logo-element"
>
<img
alt=
"image"
height=
"40"
src=
"/static/imgs/logo.png"
>
</div>
</div>
<div
class=
"body"
>
<ul
class=
"nav metismenu nav-frist-level"
>
...
...
src/app/setting-page/basic/basic.component.html
View file @
9649aaa2
<mat-form-field
hintLabel=
"http://jumpserver.abc.com:8080"
>
<input
matInput
#
input
maxlength=
"10"
placeholder=
"Current SITE URL"
>
</mat-form-field>
<mat-form-field
hintLabel=
"User first login update profile done redirect to it"
>
<input
matInput
#
input
maxlength=
"10"
placeholder=
"User Guide URL"
>
</mat-form-field>
<mat-form-field
hintLabel=
""
>
<input
matInput
#
input
maxlength=
"10"
placeholder=
"Email Subject Prefix"
>
</mat-form-field>
<button
mat-button
>
{{ 'Reset' | trans }}
</button>
<button
mat-button
>
{{ 'Submit' | trans }}
</button>
<div
class=
"basic-form"
>
<br/>
<mat-form-field
hintLabel=
"http://jumpserver.abc.com:8080"
>
<input
matInput
#
input
maxlength=
"10"
placeholder=
"{{'Current SITE URL'|trans}}"
>
</mat-form-field>
<br/>
<mat-form-field
hintLabel=
"{{'User first login update profile done redirect to it'|trans}}"
>
<input
matInput
#
input
maxlength=
"10"
placeholder=
"{{'User Guide URL'|trans}}"
>
</mat-form-field>
<br/>
<mat-form-field
hintLabel=
""
>
<input
matInput
#
input
maxlength=
"10"
placeholder=
"{{'Email Subject Prefix'|trans}}"
>
</mat-form-field>
<br/>
<div
class=
"button-row"
>
<button
mat-raised-button
>
{{ 'Reset' | trans }}
</button>
<button
mat-raised-button
color=
"primary"
>
{{ 'Submit' | trans }}
</button>
</div>
<br/>
</div>
src/app/setting-page/basic/basic.component.scss
View file @
9649aaa2
.basic-form
{
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
max-width
:
400px
;
margin
:
auto
;
font-size
:
14pt
;
}
.basic-form
>
*
{
width
:
100%
;
}
src/app/setting-page/nav/nav.component.html
deleted
100644 → 0
View file @
69649bfb
<div
class=
"panel-options"
>
<ul
class=
"nav nav-tabs"
>
<li>
<a
href=
" "
class=
"text-center"
><i
class=
"fa fa-cubes"
></i>
trans 'Basic setting'
</a>
</li>
<li>
<a
href=
" "
class=
"text-center"
><i
class=
"fa fa-envelope"
></i>
trans 'Email setting'
</a>
</li>
<li>
<a
href=
" "
class=
"text-center"
><i
class=
"fa fa-archive"
></i>
trans 'LDAP setting'
</a>
</li>
<li
class=
"active"
>
<a
href=
" "
class=
"text-center"
><i
class=
"fa fa-hdd-o"
></i>
trans 'Terminal setting'
</a>
</li>
</ul>
</div>
src/app/setting-page/nav/nav.component.scss
deleted
100644 → 0
View file @
69649bfb
src/app/setting-page/nav/nav.component.spec.ts
deleted
100644 → 0
View file @
69649bfb
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
SettingPageNavComponent
}
from
'./nav.component'
;
describe
(
'SettingPageNavComponent'
,
()
=>
{
let
component
:
SettingPageNavComponent
;
let
fixture
:
ComponentFixture
<
SettingPageNavComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
SettingPageNavComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
SettingPageNavComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should create'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/setting-page/nav/nav.component.ts
deleted
100644 → 0
View file @
69649bfb
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-sp-nav'
,
templateUrl
:
'./nav.component.html'
,
styleUrls
:
[
'./nav.component.scss'
]
})
export
class
SettingPageNavComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
src/app/setting-page/setting-page.component.html
View file @
9649aaa2
<div
class=
"pace-done"
>
<app-element-leftbar></app-element-leftbar>
<!--<app-sp-basic></app-sp-basic>-->
<mat-card
class=
"content"
>
<mat-tab-group>
<mat-tab
label=
"{{'Basic setting'|trans}}"
>
<app-sp-basic></app-sp-basic>
</mat-tab>
<mat-tab
label=
"{{'Email setting'|trans}}"
>
<app-sp-email></app-sp-email>
</mat-tab>
<mat-tab
label=
"{{'LDAP setting'|trans}}"
>
<app-sp-ldap></app-sp-ldap>
</mat-tab>
<mat-tab
label=
"{{'Terminal setting'|trans}}"
>
<app-sp-terminal></app-sp-terminal>
</mat-tab>
</mat-tab-group>
</mat-card>
<app-element-ofooter></app-element-ofooter>
</div>
src/app/setting-page/setting-page.component.scss
View file @
9649aaa2
...
...
@@ -3,3 +3,8 @@
height
:
100%
;
padding
:
0
;
}
.content
{
margin-left
:
220px
;
height
:
100%
;
}
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