Commit 1db2e36f authored by liuzheng712's avatar liuzheng712

feat: build luna

parent 4d3a2172
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json", "start": "ng serve --proxy-config proxy.conf.json",
"build": "ng build", "build": "ng build -prod --deploy '/luna/'",
"test": "ng test", "test": "ng test",
"lint": "ng lint", "lint": "ng lint",
"e2e": "ng e2e" "e2e": "ng e2e"
......
<div id="rdp"> <div id="rdp">
<div *ngFor="let m of NavList.List;let i=index" <div *ngFor="let m of NavList.List;let i=index"
[ngClass]="{'disconnected':!m.connected,'hidden': m.hide,'hidden':m.type!='rdp'}" id="rdp-{{i}}"> [ngClass]="{'disconnected':!m.connected,'hidden': m.hide || m.type!='rdp'}" id="rdp-{{i}}">
<canvas id="canvas-{{i}}"></canvas> <canvas id="canvas-{{i}}"></canvas>
</div> </div>
</div> </div>
<div id="term"> <div id="term">
<div *ngFor="let m of NavList.List;let i=index" <div *ngFor="let m of NavList.List;let i=index"
[ngClass]="{'disconnected':!m.connected,'hidden': m.hide,'hidden':m.type!='ssh'}" id="term-{{i}}"> [ngClass]="{'disconnected':!m.connected,'hidden': m.hide || m.type!='ssh'}" id="term-{{i}}">
</div> </div>
</div> </div>
<span id="liuzheng">liuzheng</span> <span id="liuzheng">liuzheng</span>
...@@ -19,7 +19,7 @@ export let Q: string = ''; ...@@ -19,7 +19,7 @@ export let Q: string = '';
styleUrls: ['./search.component.css'] styleUrls: ['./search.component.css']
}) })
export class SearchComponent implements OnChanges { export class SearchComponent implements OnChanges {
q: string;
@Input() input; @Input() input;
searchrequest: any; searchrequest: any;
......
...@@ -20,10 +20,9 @@ const appRoutes: Routes = [ ...@@ -20,10 +20,9 @@ const appRoutes: Routes = [
// { path: 'crisis-center', component: CrisisListComponent }, // { path: 'crisis-center', component: CrisisListComponent },
// {path: 'welcome', component: IndexPageComponent}, // <-- delete this line // {path: 'welcome', component: IndexPageComponent}, // <-- delete this line
{path: 'users/login', component: LoginComponent}, {path: 'users/login', component: LoginComponent},
{path: 'control', component: ControlPageComponent},
{path: 'rdp/:token', component: RdppageComponent}, {path: 'rdp/:token', component: RdppageComponent},
{path: 'term/:token', component: TermpageComponent}, {path: 'term/:token', component: TermpageComponent},
{path: '', redirectTo: '/control', pathMatch: 'full'}, {path: '', component: ControlPageComponent},
{path: '**', component: NotFoundComponent} {path: '**', component: NotFoundComponent}
]; ];
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>JumpServer</title> <title>JumpServer</title>
<base href="/"> <base href="/luna">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment