Skip to content

Commit 56c45c8

Browse files
committed
perf ellipse
1 parent d69868d commit 56c45c8

4 files changed

Lines changed: 16 additions & 8 deletions

File tree

src/app/elements/content/content-window/koko/koko.component.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,12 @@ export class ElementConnectorKokoComponent implements OnInit {
165165
});
166166

167167
if (this.protocol === 'k8s') {
168-
return (this.iframeURL = `${this.baseUrl}/k8s/?` + query);
168+
// return (this.iframeURL = `${this.baseUrl}/k8s/?` + query);
169+
return (this.iframeURL = `http://localhost:9530/koko/k8s/?` + query);
169170
}
170171

171-
this.iframeURL = `${this.baseUrl}/connect/?` + query;
172+
// this.iframeURL = `${this.baseUrl}/connect/?` + query;
173+
this.iframeURL = `http://localhost:9530/koko/connect/?` + query;
172174
}
173175

174176
generateFileManagerURL() {

src/app/elements/iframe/iframe.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class ElementIframeComponent implements OnInit, AfterViewInit, OnDestroy
194194
);
195195

196196
this.subscription = this._iframeSvc.message$.subscribe(message => {
197-
this._logger.info('[Luna] Send msg to iframe: ', message);
197+
// this._logger.info('[Luna] Send msg to iframe: ', message);
198198
this.iframeWindow.postMessage(message, '*');
199199
});
200200

src/app/pipes/truncatechars.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ export class TruncatecharsPipe implements PipeTransform {
1010
if (value.length < length) {
1111
return value;
1212
}
13-
return value.slice(0, length) + '..';
13+
return value.slice(0, length) + '...';
1414
}
1515
}

src/app/router.module.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import { RouterModule, Routes } from '@angular/router';
44
import { PageMainComponent } from './pages/main/main.component';
55
import { PagesBlankComponent } from './pages/blank/blank.component';
66
import { PagesShareComponent } from './pages/share/share.component';
7+
import { PagesConnectComponent } from './pages/connect/connect.component';
8+
import { PageDirectComponent } from './pages/direct/direct.component';
9+
import { PagesReplayComponent } from './pages/replay/replay.component';
710

811
const appRoutes: Routes = [
912
{ path: '', component: PageMainComponent },
@@ -13,18 +16,21 @@ const appRoutes: Routes = [
1316
},
1417
{
1518
path: 'connect',
16-
loadComponent: () =>
17-
import('./pages/connect/connect.component').then(m => m.PagesConnectComponent)
19+
component: PagesConnectComponent
20+
// loadComponent: () =>
21+
// import('./pages/connect/connect.component').then(m => m.PagesConnectComponent)
1822
},
1923
{ path: 'undefined', component: PagesBlankComponent },
2024
{ path: 'share/:id', component: PagesShareComponent },
2125
{
2226
path: 'replay/:sid',
23-
loadComponent: () => import('./pages/replay/replay.component').then(m => m.PagesReplayComponent)
27+
component: PagesReplayComponent
28+
// loadComponent: () => import('./pages/replay/replay.component').then(m => m.PagesReplayComponent)
2429
},
2530
{
2631
path: 'admin-connect',
27-
loadComponent: () => import('./pages/direct/direct.component').then(m => m.PageDirectComponent)
32+
component: PageDirectComponent
33+
// loadComponent: () => import('./pages/direct/direct.component').then(m => m.PageDirectComponent)
2834
},
2935
{
3036
path: 'monitor/:sid',

0 commit comments

Comments
 (0)