Skip to content

Commit

Permalink
Perf: Change Terminal Connect Ways
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoJiSen committed Dec 27, 2024
1 parent 1a289c8 commit 7dcd509
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 243 deletions.
10 changes: 9 additions & 1 deletion src/app/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class Account {
has_secret: boolean;
secret: string;
actions: Array<Action>;
id?: string;
}

class TreeNodeMeta {
Expand Down Expand Up @@ -372,6 +373,13 @@ export class ConnectOption {
options?: any[];
}

export class AdminConnectData {
asset: Asset;
account: Account;
protocol: Protocol;
input_username: string;
method: string;
}

export class ConnectData {
asset: Asset;
Expand Down Expand Up @@ -451,7 +459,7 @@ export class Endpoint {
if (['http', 'https'].indexOf(_protocol) !== -1 && port === 0) {
port = window.location.port;
}

return port;
}

Expand Down
10 changes: 4 additions & 6 deletions src/app/pages/pam/gui.component/gui.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ export class PagePamGUIComponent implements OnInit, OnDestroy {
private pausedElapsedTime: number = 0;

constructor(
private route: ActivatedRoute,
private viewSrv: ViewService,
private _http: HttpService,
private _appSvc: AppService,
private _dialogAlert: DialogService,
private _i18n: I18nService,
private _logger: LogService
private _logger: LogService,
private _dialogAlert: DialogService,
private route: ActivatedRoute
) {
this.startTime = new Date();
}
Expand Down Expand Up @@ -125,7 +123,7 @@ export class PagePamGUIComponent implements OnInit, OnDestroy {
if (res) {
const url = this.getUrl();

this.iframeURL = `${url}/koko/connect?token=${res.id}`;
this.iframeURL = `${url}/lion/connect?token=${res.id}`;
}
});
});
Expand Down
Loading

0 comments on commit 7dcd509

Please sign in to comment.