* chore: 🤖 create terminal preload * chore: 🤖 created terminal-manager service and updated handlers * chore: 🤖 adds terminal view and bundling script * chore: 🤖 addede terminal service, updated tabs component * chore: 🤖 hides terminal on signout modal * test: 💍 added terminal service tests * chore: 🤖 removed debug file * chore: 🤖 adds windows event handler * docs: ✏️ adds jsdoc for terminal view * chore: 🤖 removed xterm dependency from desktop package.json * chore: 🤖 updated sessionId check * chore: 🤖 fixed zoom sync with main window * chore: 🤖 adds CSP for terminal view * chore: 🤖 hides terminal on error * chore: 🤖 cleamup listener, fixed failing tests * chore: 🤖 fixed terminal view cleanup * chore: 🤖 addressed feedback * fix: 🐛 adds null check for destroy, hdie terminal view * fix: 🐛 fixed terminal view on logout/app quit modal * fix: 🐛 fixed hidding modal on app quit * chore: 🤖 addressed feedback * chore: 🤖 hides terminal view when sidenav is expanded * chore: 🤖 removed canDisplayExistingTerminal
39 lines
1.1 KiB
Handlebars
39 lines
1.1 KiB
Handlebars
{{!
|
|
Copyright IBM Corp. 2021, 2026
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
{{#if @model.target.isRDP}}
|
|
{{! RDP: Show content directly without tabs }}
|
|
{{#if (and @model.proxy_address @model.proxy_port)}}
|
|
<Session::ProxyUrl
|
|
@proxyAddress={{@model.proxy_address}}
|
|
@proxyPort={{@model.proxy_port}}
|
|
@targetType={{@model.target.type}}
|
|
/>
|
|
{{/if}}
|
|
|
|
<Session::Details @model={{@model}} />
|
|
{{else}}
|
|
{{! Non-RDP: Show tabbed interface }}
|
|
<Hds::Tabs as |T|>
|
|
<T.Tab {{on 'click' this.openDetails}}>{{t 'titles.details'}}</T.Tab>
|
|
<T.Tab @icon='terminal' {{on 'click' this.openTerminal}}>
|
|
{{t 'resources.session.shell'}}
|
|
</T.Tab>
|
|
<T.Panel>
|
|
{{#if (and @model.proxy_address @model.proxy_port)}}
|
|
<Session::ProxyUrl
|
|
@proxyAddress={{@model.proxy_address}}
|
|
@proxyPort={{@model.proxy_port}}
|
|
@targetType={{@model.target.type}}
|
|
/>
|
|
{{/if}}
|
|
|
|
<Session::Details @model={{@model}} />
|
|
</T.Panel>
|
|
<T.Panel>
|
|
<div id='terminal-container'></div>
|
|
</T.Panel>
|
|
</Hds::Tabs>
|
|
{{/if}} |