refactor: Update target translations
This commit is contained in:
17 files changed
+119
-83
No files matched your search
@@ -1,44 +1,60 @@
|
||||
<Rose::Form
|
||||
class="full-width"
|
||||
@onSubmit={{fn this.submit @submit}}
|
||||
@cancel={{@cancel}}
|
||||
@disabled={{@model.isSaving}}
|
||||
@error={{@model.errors.base}}
|
||||
as |form|
|
||||
>
|
||||
{{#if this.hasAvailableHostSets}}
|
||||
<Rose::Form
|
||||
class="full-width"
|
||||
@onSubmit={{fn this.submit @submit}}
|
||||
@cancel={{@cancel}}
|
||||
@disabled={{@model.isSaving}}
|
||||
@error={{@model.errors.base}}
|
||||
as |form|
|
||||
>
|
||||
|
||||
<form.actions
|
||||
@submitText={{t "actions.add-host-sets"}}
|
||||
@cancelText={{t "actions.cancel"}} />
|
||||
<form.actions
|
||||
@submitText={{t "actions.add-host-sets"}}
|
||||
@cancelText={{t "actions.cancel"}} />
|
||||
|
||||
<Rose::Table as |table|>
|
||||
<table.header as |header|>
|
||||
<header.row as |row|>
|
||||
<row.headerCell>{{t 'form.id.label'}}</row.headerCell>
|
||||
<row.headerCell>{{t 'form.name.label'}}</row.headerCell>
|
||||
<row.headerCell>{{t 'form.type.label'}}</row.headerCell>
|
||||
<row.headerCell>{{t 'resources.host-catalog.title_plural'}}</row.headerCell>
|
||||
</header.row>
|
||||
</table.header>
|
||||
<table.body as |body|>
|
||||
{{#each this.filteredHostSets as |hostSet|}}
|
||||
<body.row as |row|>
|
||||
<row.cell>
|
||||
<form.checkbox
|
||||
@label={{hostSet.id}}
|
||||
@description={{hostSet.description}}
|
||||
onChange={{fn this.toggleHostSet hostSet}} />
|
||||
</row.cell>
|
||||
<row.cell>{{hostSet.name}}</row.cell>
|
||||
<row.cell>
|
||||
<Rose::Badge>{{hostSet.type}}</Rose::Badge>
|
||||
</row.cell>
|
||||
<row.cell>
|
||||
<code>{{hostSet.host_catalog_id}}</code>
|
||||
</row.cell>
|
||||
</body.row>
|
||||
{{/each}}
|
||||
</table.body>
|
||||
</Rose::Table>
|
||||
<Rose::Table as |table|>
|
||||
<table.header as |header|>
|
||||
<header.row as |row|>
|
||||
<row.headerCell>{{t 'form.id.label'}}</row.headerCell>
|
||||
<row.headerCell>{{t 'form.name.label'}}</row.headerCell>
|
||||
<row.headerCell>{{t 'form.type.label'}}</row.headerCell>
|
||||
<row.headerCell>{{t 'resources.host-catalog.title_plural'}}</row.headerCell>
|
||||
</header.row>
|
||||
</table.header>
|
||||
<table.body as |body|>
|
||||
{{#each this.filteredHostSets as |hostSet|}}
|
||||
<body.row as |row|>
|
||||
<row.cell>
|
||||
<form.checkbox
|
||||
@label={{hostSet.id}}
|
||||
@description={{hostSet.description}}
|
||||
onChange={{fn this.toggleHostSet hostSet}} />
|
||||
</row.cell>
|
||||
<row.cell>{{hostSet.name}}</row.cell>
|
||||
<row.cell>
|
||||
<Rose::Badge>{{t (concat 'resources.host-set.types.' hostSet.type)}}</Rose::Badge>
|
||||
</row.cell>
|
||||
<row.cell>
|
||||
<code>{{hostSet.host_catalog_id}}</code>
|
||||
</row.cell>
|
||||
</body.row>
|
||||
{{/each}}
|
||||
</table.body>
|
||||
</Rose::Table>
|
||||
|
||||
</Rose::Form>
|
||||
</Rose::Form>
|
||||
{{/if}}
|
||||
|
||||
{{#unless this.hasAvailableHostSets}}
|
||||
<Rose::Layout::Centered>
|
||||
<Rose::Message @title={{t "resources.target.host-set.messages.none.title"}} as |message|>
|
||||
<message.description>
|
||||
{{t "resources.target.host-set.messages.none.description"}}
|
||||
</message.description>
|
||||
<message.link @route="scopes.scope.projects.project.targets.target.host-sets">
|
||||
<Rose::Icon @name="chevron-left" />
|
||||
{{t "actions.back"}}
|
||||
</message.link>
|
||||
</Rose::Message>
|
||||
</Rose::Layout::Centered>
|
||||
{{/unless}}
|
||||
@@ -11,6 +11,16 @@ export default class FormTargetAddHostSetsComponent extends Component {
|
||||
*/
|
||||
selectedHostSetIDs = A();
|
||||
|
||||
/**
|
||||
* Checks for unassigned hostsets.
|
||||
* @param {[HostSetModel]} filteredHostSets
|
||||
* @type {boolean}
|
||||
*/
|
||||
@computed('filteredHostSets')
|
||||
get hasAvailableHostSets() {
|
||||
return this.filteredHostSets.length > 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Host sets not already added to the target.
|
||||
* @type {[HostSetModel]}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
>
|
||||
|
||||
<form.input
|
||||
@value={{t (concat 'target.types.' @model.type)}}
|
||||
@value={{t (concat 'resources.target.types.' @model.type)}}
|
||||
@label={{t "form.type.label"}}
|
||||
readonly={{true}}
|
||||
@disabled={{true}} />
|
||||
|
||||
@@ -13,6 +13,6 @@ export default class ScopesScopeProjectsProjectTargetsController extends Control
|
||||
* @type {string}
|
||||
*/
|
||||
get breadCrumb() {
|
||||
return this.intl.t('resources.targets');
|
||||
return this.intl.t('resources.target.title_plural');
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -12,6 +12,6 @@ export default class ScopesScopeProjectsProjectTargetsTargetAddHostSetsControlle
|
||||
* @type {string}
|
||||
*/
|
||||
get breadCrumb() {
|
||||
return this.intl.t('actions.add-host-sets');
|
||||
return this.intl.t('resources.target.actions.add-host-sets');
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,6 @@ export default class ScopesScopeProjectsProjectTargetsTargetHostSetsController e
|
||||
* @type {string}
|
||||
*/
|
||||
get breadCrumb() {
|
||||
return this.intl.t('resources.host-sets');
|
||||
return this.intl.t('resources.host-set.title_plural');
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
{{t "resources.session.title_plural"}}
|
||||
</nav.link>
|
||||
<nav.link @route="scopes.scope.projects.project.targets">
|
||||
{{t "resources.targets"}}
|
||||
{{t "resources.target.title_plural"}}
|
||||
</nav.link>
|
||||
<nav.link @route="scopes.scope.projects.project.host-catalogs">
|
||||
{{t "resources.host-catalog.title_plural"}}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{{title (t "resources.targets")}}
|
||||
{{title (t "resources.target.title_plural")}}
|
||||
|
||||
{{outlet}}
|
||||
@@ -5,8 +5,10 @@
|
||||
</page.breadcrumbs>
|
||||
|
||||
<page.header>
|
||||
<h2>{{t "resources.targets"}}</h2>
|
||||
<p>{{t "resources.descriptions.targets"}}</p>
|
||||
<h2>{{t "resources.target.title_plural"}}</h2>
|
||||
{{#if @model}}
|
||||
<p>{{t "resources.target.description"}}</p>
|
||||
{{/if}}
|
||||
</page.header>
|
||||
|
||||
<page.actions>
|
||||
@@ -44,7 +46,7 @@
|
||||
<row.cell>
|
||||
{{#if target.type}}
|
||||
<Rose::Badge>
|
||||
{{t (concat "target.types." target.type)}}
|
||||
{{t (concat "resources.target.types." target.type)}}
|
||||
</Rose::Badge>
|
||||
{{/if}}
|
||||
</row.cell>
|
||||
@@ -59,9 +61,9 @@
|
||||
{{else}}
|
||||
|
||||
<Rose::Layout::Centered>
|
||||
<Rose::Message @title={{t "titles.targets-welcome"}} as |message|>
|
||||
<Rose::Message @title={{t "resources.target.messages.welcome.title"}} as |message|>
|
||||
<message.description>
|
||||
{{t "descriptions.targets-welcome"}}
|
||||
{{t "resources.target.description"}}
|
||||
</message.description>
|
||||
<message.link @route="scopes.scope.projects.project.targets.new">
|
||||
<Rose::Icon @name="plus-circle-outline" />
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<Rose::Dropdown @text="{{t 'actions.manage'}}" @dropdownRight={{true}} as |dropdown|>
|
||||
<dropdown.link @route="scopes.scope.projects.project.targets.target.add-host-sets">
|
||||
{{t 'actions.add-host-sets'}}
|
||||
{{t 'resources.target.actions.add-host-sets'}}
|
||||
</dropdown.link>
|
||||
<dropdown.button
|
||||
@style="danger"
|
||||
@disabled={{@model.canSave}}
|
||||
{{on "click" (route-action "delete" @model)}}
|
||||
>
|
||||
{{t 'actions.delete-target'}}
|
||||
{{t 'resources.target.actions.delete'}}
|
||||
</dropdown.button>
|
||||
</Rose::Dropdown>
|
||||
@@ -1,2 +1,2 @@
|
||||
<h2>{{t "resources.target"}}</h2>
|
||||
<p>{{t "resources.descriptions.target"}}</p>
|
||||
<h2>{{t "resources.target.title"}}</h2>
|
||||
<p>{{t "resources.target.description"}}</p>
|
||||
@@ -3,6 +3,6 @@
|
||||
{{t 'titles.details'}}
|
||||
</nav.link>
|
||||
<nav.link @route='scopes.scope.projects.project.targets.target.host-sets'>
|
||||
{{t 'titles.host-sets'}}
|
||||
{{t 'resources.host-set.title_plural'}}
|
||||
</nav.link>
|
||||
</Rose::Nav::Tabs>
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
{{title (t 'actions.add-host-sets')}}
|
||||
{{title (t 'resources.target.actions.add-host-sets')}}
|
||||
|
||||
{{#if @model.hostSets}}
|
||||
<Form::Target::AddHostSets
|
||||
@@ -12,9 +12,9 @@
|
||||
|
||||
{{#unless @model.hostSets}}
|
||||
<Rose::Layout::Centered>
|
||||
<Rose::Message @title={{t "titles.no-host-sets-for-target"}} as |message|>
|
||||
<Rose::Message @title={{t "resources.target.host-set.messages.none.title"}} as |message|>
|
||||
<message.description>
|
||||
{{t "descriptions.no-host-sets-for-target"}}
|
||||
{{t "resources.target.host-set.messages.none.description"}}
|
||||
</message.description>
|
||||
<message.link @route="scopes.scope.projects.project.targets.target.host-sets">
|
||||
<Rose::Icon @name="chevron-left" />
|
||||
|
||||
+2
-1
@@ -1 +1,2 @@
|
||||
<h2>{{t "actions.add-host-sets"}}</h2>
|
||||
<h2>{{t "resources.target.host-set.messages.add.title"}}</h2>
|
||||
<p>{{t "resources.target.host-set.messages.add.description"}}</p>
|
||||
@@ -1,4 +1,4 @@
|
||||
{{title (t "resources.host-sets")}}
|
||||
{{title (t "resources.host-set.title_plural")}}
|
||||
|
||||
{{#if @model.hostSets}}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<p>{{hostSet.model.description}}</p>
|
||||
</row.headerCell>
|
||||
<row.cell>
|
||||
<Rose::Badge>{{hostSet.model.type}}</Rose::Badge>
|
||||
<Rose::Badge>{{t (concat 'resources.host-set.types.' hostSet.model.type)}}</Rose::Badge>
|
||||
</row.cell>
|
||||
<row.cell>
|
||||
<code>{{hostSet.model.id}}</code>
|
||||
@@ -48,9 +48,9 @@
|
||||
{{else}}
|
||||
|
||||
<Rose::Layout::Centered>
|
||||
<Rose::Message @title={{t "titles.target-host-sets-welcome"}} as |message|>
|
||||
<Rose::Message @title={{t "resources.target.host-set.messages.welcome.title"}} as |message|>
|
||||
<message.description>
|
||||
{{t "descriptions.target-host-sets-welcome"}}
|
||||
{{t "resources.target.host-set.messages.welcome.description"}}
|
||||
</message.description>
|
||||
</Rose::Message>
|
||||
</Rose::Layout::Centered>
|
||||
|
||||
@@ -5,9 +5,6 @@ auth:
|
||||
no-scopes: No scopes were found. To authenticate, ask your administrator to create an scope and grant you access.
|
||||
choose-org: Choose a scope to authenticate.
|
||||
authenticating-with-org: "You're authenticating with {name}."
|
||||
target:
|
||||
types:
|
||||
tcp: TCP
|
||||
titles:
|
||||
iam: IAM
|
||||
new: New
|
||||
@@ -17,16 +14,7 @@ titles:
|
||||
overview: Overview
|
||||
settings: Settings
|
||||
empty-set: No Items Yet
|
||||
targets-welcome: Create your first Target
|
||||
target-host-sets-welcome: No Host Sets Associated
|
||||
targets: Targets
|
||||
global: Global
|
||||
no-host-sets-for-target: No Host Sets Available
|
||||
no-available-users: No Users Available
|
||||
actions: Actions
|
||||
descriptions:
|
||||
empty-set: There are no items to display yet. You may be able to add items or try back later.
|
||||
targets-welcome: Targets provide Users the means to connect to and interact networked services. A Target contains a collection of Hosts and a collection of Credentials.
|
||||
target-host-sets-welcome: Add Host Sets to this target to provide access.
|
||||
no-host-sets-for-target: No host sets are available to add to this target.
|
||||
no-available-users: No users are available to add to this group.
|
||||
empty-set: There are no items to display yet. You may be able to add items or try back later.
|
||||
@@ -152,8 +152,27 @@ role:
|
||||
description: Grants are permissions which allow roles to take actions and access resources
|
||||
actions:
|
||||
create: New Grant
|
||||
target: Target
|
||||
targets: Targets
|
||||
descriptions:
|
||||
target: Target is abstract. A Target is deleted when the Scope it belongs to is deleted.
|
||||
targets: A target is a networked service a User can connect to and interact with through Boundary. A Target does not directly contain any secrets. A Target contains a collection of Hosts. A Target belongs to one and only one Scope. A Target can contain zero or more Host Sets. The lifecycle of a Target is not tied to the lifecycle of any Host Set.
|
||||
target:
|
||||
title: Target
|
||||
title_plural: Targets
|
||||
description: A target is a logical collection of host sets which may be used to initiate sessions.
|
||||
messages:
|
||||
welcome:
|
||||
title: Welcome to Targets
|
||||
actions:
|
||||
create: New Target
|
||||
delete: Delete Target
|
||||
add-host-sets: Add Host Sets
|
||||
types:
|
||||
tcp: TCP
|
||||
host-set:
|
||||
messages:
|
||||
welcome:
|
||||
title: Welcome to Host Sets
|
||||
description: No hosts sets in this target.
|
||||
none:
|
||||
title: No Host Sets Available
|
||||
description: No hosts sets available to add to target.
|
||||
add:
|
||||
title: Add Host Sets
|
||||
description: Select host sets to assign to this target.
|
||||
Reference in new issue
Block a user