Merge Boundary UI OSS branch 'main' at commit 963b5d465
This commit is contained in:
commit
ef15f93f11
7 files changed
+50
-11
No files matched your search
@@ -83,4 +83,17 @@ export default class GeneratedTargetModel extends BaseModel {
|
||||
'An IP address or DNS name for the session to connect to. Cannot be used in conjunction with host sources.',
|
||||
})
|
||||
address;
|
||||
|
||||
@attr('number', {
|
||||
isNestedAttribute: true,
|
||||
description: 'The default port a target should use if present.',
|
||||
})
|
||||
default_port;
|
||||
|
||||
@attr('number', {
|
||||
isNestedAttribute: true,
|
||||
description:
|
||||
"The default port that will be listened on by the client's local proxy.",
|
||||
})
|
||||
default_client_port;
|
||||
}
|
||||
@@ -18,12 +18,6 @@ export default class TargetModel extends GeneratedTargetModel {
|
||||
|
||||
// =attributes
|
||||
|
||||
@attr('number', {
|
||||
isNestedAttribute: true,
|
||||
description: 'The default port a target should use if present.',
|
||||
})
|
||||
default_port;
|
||||
|
||||
/**
|
||||
* @type Array
|
||||
*/
|
||||
|
||||
@@ -17,5 +17,6 @@ export default Factory.extend({
|
||||
updated_time: () => faker.date.recent(),
|
||||
disabled: () => faker.datatype.boolean(),
|
||||
default_port: () => faker.datatype.number(),
|
||||
default_client_port: () => faker.datatype.number(),
|
||||
version: () => faker.datatype.number(),
|
||||
});
|
||||
@@ -31,6 +31,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
type: 'org',
|
||||
},
|
||||
default_port: 1234,
|
||||
default_client_port: 4321,
|
||||
version: 1,
|
||||
type: TYPE_TARGET_TCP,
|
||||
address: '0.0.0.0',
|
||||
@@ -51,6 +52,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
ingress_worker_filter: null,
|
||||
attributes: {
|
||||
default_port: 1234,
|
||||
default_client_port: 4321,
|
||||
},
|
||||
address: '0.0.0.0',
|
||||
});
|
||||
@@ -157,6 +159,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
ingress_worker_filter: null,
|
||||
attributes: {
|
||||
default_port: 1234,
|
||||
default_client_port: null,
|
||||
},
|
||||
address: null,
|
||||
});
|
||||
@@ -192,6 +195,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
ingress_worker_filter: null,
|
||||
attributes: {
|
||||
default_port: 1234,
|
||||
default_client_port: null,
|
||||
},
|
||||
address: null,
|
||||
});
|
||||
@@ -227,6 +231,7 @@ module('Unit | Serializer | target', function (hooks) {
|
||||
ingress_worker_filter: 'ingress worker',
|
||||
attributes: {
|
||||
default_port: 1234,
|
||||
default_client_port: null,
|
||||
},
|
||||
address: null,
|
||||
});
|
||||
|
||||
@@ -33,9 +33,6 @@ grant:
|
||||
address:
|
||||
label: Address
|
||||
help: An IP, host name, or other routable address
|
||||
default_port:
|
||||
label: Default Port
|
||||
help: The default port on which to connect
|
||||
current_password:
|
||||
label: Current Password
|
||||
new_password:
|
||||
|
||||
@@ -326,6 +326,12 @@ target:
|
||||
worker_filter:
|
||||
label: Worker Filter
|
||||
help: Deprecated. Boolean expression to filter the workers that are allowed to satisfy this request.
|
||||
default_port:
|
||||
label: Default Port
|
||||
help: The default port on which to connect.
|
||||
default_client_port:
|
||||
label: Default Client Port
|
||||
help: The local proxy port on which to listen by default when a session is started on a client.
|
||||
questions:
|
||||
delete-host-sources:
|
||||
title: Remove associated host sources?
|
||||
|
||||
@@ -122,9 +122,9 @@
|
||||
as |F|
|
||||
>
|
||||
<F.Label data-test-default-port-label>{{t
|
||||
'form.default_port.label'
|
||||
'resources.target.form.default_port.label'
|
||||
}}</F.Label>
|
||||
<F.HelperText>{{t 'form.default_port.help'}}</F.HelperText>
|
||||
<F.HelperText>{{t 'resources.target.form.default_port.help'}}</F.HelperText>
|
||||
{{#if @model.errors.default_port}}
|
||||
<F.Error as |E|>
|
||||
{{#each @model.errors.default_port as |error|}}
|
||||
@@ -134,6 +134,29 @@
|
||||
{{/if}}
|
||||
</Hds::Form::TextInput::Field>
|
||||
|
||||
<Hds::Form::TextInput::Field
|
||||
@isOptional={{true}}
|
||||
@value={{@model.default_client_port}}
|
||||
@isInvalid={{@model.errors.default_client_port}}
|
||||
@type='text'
|
||||
name='default_client_port'
|
||||
disabled={{form.disabled}}
|
||||
{{on 'input' (set-from-event @model 'default_client_port')}}
|
||||
as |F|
|
||||
>
|
||||
<F.Label>{{t 'resources.target.form.default_client_port.label'}}</F.Label>
|
||||
<F.HelperText>{{t
|
||||
'resources.target.form.default_client_port.help'
|
||||
}}</F.HelperText>
|
||||
{{#if @model.errors.default_client_port}}
|
||||
<F.Error as |E|>
|
||||
{{#each @model.errors.default_client_port as |error|}}
|
||||
<E.Message>{{error.message}}</E.Message>
|
||||
{{/each}}
|
||||
</F.Error>
|
||||
{{/if}}
|
||||
</Hds::Form::TextInput::Field>
|
||||
|
||||
<Hds::Form::TextInput::Field
|
||||
@isOptional={{true}}
|
||||
@value={{@model.session_max_seconds}}
|
||||
|
||||
Reference in new issue
Block a user