mirror of https://github.com/rancher/ui.git
Project apikeys
This commit is contained in:
parent
462c639e35
commit
25f73bf81b
|
|
@ -1,7 +1,7 @@
|
||||||
<section class="header has-tabs clearfix p-0">
|
<section class="header has-tabs clearfix p-0">
|
||||||
<ul class="tab-nav">
|
<ul class="tab-nav">
|
||||||
<li>{{#link-to "authenticated.project.apikeys.account"}}{{t 'apiPage.account.header'}}{{/link-to}}</li>
|
<li>{{#link-to "authenticated.project.apikeys.account"}}{{t 'apiPage.account.header'}}{{/link-to}}</li>
|
||||||
<li>{{#link-to "authenticated.project.apikeys.environment"}}{{t 'apiPage.header'}}{{/link-to}}</li>
|
<li>{{#link-to "authenticated.project.apikeys.project"}}{{t 'apiPage.header'}}{{/link-to}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="right-buttons">
|
<div class="right-buttons">
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
<section class="header has-tabs clearfix p-0">
|
<section class="header has-tabs clearfix p-0">
|
||||||
<ul class="tab-nav">
|
<ul class="tab-nav">
|
||||||
<li>{{#link-to "authenticated.project.apikeys.account"}}{{t 'apiPage.account.header'}}{{/link-to}}</li>
|
<li>{{#link-to "authenticated.project.apikeys.account"}}{{t 'apiPage.account.header'}}{{/link-to}}</li>
|
||||||
<li>{{#link-to "authenticated.project.apikeys.environment"}}{{t 'apiPage.header'}}{{/link-to}}</li>
|
<li>{{#link-to "authenticated.project.apikeys.project"}}{{t 'apiPage.header'}}{{/link-to}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="right-buttons">
|
<div class="right-buttons">
|
||||||
<button class="btn btn-sm bg-primary" {{action "newApikey" "environment"}}>{{t 'apiPage.actionButton'}}</button>
|
<button class="btn btn-sm bg-primary" {{action "newApikey" "project"}}>{{t 'apiPage.actionButton'}}</button>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
@ -20,8 +20,8 @@
|
||||||
<p>
|
<p>
|
||||||
<b>{{t 'apiPage.currentEndpoint'}}</b>
|
<b>{{t 'apiPage.currentEndpoint'}}</b>
|
||||||
<code>
|
<code>
|
||||||
<a href="{{endpointService.api.auth.environment.current}}" target="_blank" rel="nofollow noreferer">{{endpointService.api.display.environment.current}}</a>
|
<a href="{{endpointService.api.auth.project.current}}" target="_blank" rel="nofollow noreferer">{{endpointService.api.display.project.current}}</a>
|
||||||
{{copy-to-clipboard clipboardText=endpointService.api.auth.environment.current size="sm"}}
|
{{copy-to-clipboard clipboardText=endpointService.api.auth.project.current size="sm"}}
|
||||||
</code>
|
</code>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -43,8 +43,8 @@ Router.map(function() {
|
||||||
this.route('new', {path: '/add'}, function() {
|
this.route('new', {path: '/add'}, function() {
|
||||||
this.route('rke');
|
this.route('rke');
|
||||||
});
|
});
|
||||||
this.route('new-project', {path: '/add-env'});
|
this.route('new-project', {path: '/add-project'});
|
||||||
this.route('project', {path: '/env/:project_id'});
|
this.route('project', {path: '/p/:project_id'});
|
||||||
|
|
||||||
this.route('cluster', {path: '/:cluster_id'}, function() {
|
this.route('cluster', {path: '/:cluster_id'}, function() {
|
||||||
this.route('edit');
|
this.route('edit');
|
||||||
|
|
@ -65,11 +65,11 @@ Router.map(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
// Per-Project
|
// Per-Project
|
||||||
this.route('project', {path: '/env/:project_id'}, function() {
|
this.route('project', {path: '/p/:project_id'}, function() {
|
||||||
this.route('index', {path: '/'});
|
this.route('index', {path: '/'});
|
||||||
this.route('apikeys', {path: '/api/keys'}, function() {
|
this.route('apikeys', {path: '/api/keys'}, function() {
|
||||||
this.route('account', {path: '/account'});
|
this.route('account', {path: '/account'});
|
||||||
this.route('environment', {path: '/environment'});
|
this.route('project', {path: '/project'});
|
||||||
});
|
});
|
||||||
this.route('waiting');
|
this.route('waiting');
|
||||||
|
|
||||||
|
|
@ -151,7 +151,7 @@ Router.map(function() {
|
||||||
|
|
||||||
this.route('apikeys', {path: '/api/keys'}, function() {
|
this.route('apikeys', {path: '/api/keys'}, function() {
|
||||||
this.route('account', {path: '/account'});
|
this.route('account', {path: '/account'});
|
||||||
this.route('environment', {path: '/environment'});
|
this.route('project', {path: '/project'});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.route('hooks', {path: '/api/hooks'}, function() {
|
this.route('hooks', {path: '/api/hooks'}, function() {
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ export default Service.extend({
|
||||||
current: authBase + current,
|
current: authBase + current,
|
||||||
legacy: authBase + legacy
|
legacy: authBase + legacy
|
||||||
},
|
},
|
||||||
environment: {
|
project: {
|
||||||
current: authBase + current + project,
|
current: authBase + current + project,
|
||||||
legacy: authBase + legacy + project
|
legacy: authBase + legacy + project
|
||||||
}
|
}
|
||||||
|
|
@ -74,7 +74,7 @@ export default Service.extend({
|
||||||
current: base + current,
|
current: base + current,
|
||||||
legacy: base + legacy
|
legacy: base + legacy
|
||||||
},
|
},
|
||||||
environment: {
|
project: {
|
||||||
current: base + current + project,
|
current: base + current + project,
|
||||||
legacy: base + legacy + project
|
legacy: base + legacy + project
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue