Project apikeys

This commit is contained in:
Vincent Fiduccia 2017-11-25 01:20:35 -07:00
parent 462c639e35
commit 25f73bf81b
No known key found for this signature in database
GPG Key ID: 2B29AD6BB2BB2582
6 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
<section class="header has-tabs clearfix p-0">
<ul class="tab-nav">
<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>
<div class="right-buttons">

View File

@ -1,11 +1,11 @@
<section class="header has-tabs clearfix p-0">
<ul class="tab-nav">
<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>
<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>
</section>
@ -20,8 +20,8 @@
<p>
<b>{{t 'apiPage.currentEndpoint'}}</b>
<code>
<a href="{{endpointService.api.auth.environment.current}}" target="_blank" rel="nofollow noreferer">{{endpointService.api.display.environment.current}}</a>
{{copy-to-clipboard clipboardText=endpointService.api.auth.environment.current size="sm"}}
<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.project.current size="sm"}}
</code>
</p>
</section>

View File

@ -43,8 +43,8 @@ Router.map(function() {
this.route('new', {path: '/add'}, function() {
this.route('rke');
});
this.route('new-project', {path: '/add-env'});
this.route('project', {path: '/env/:project_id'});
this.route('new-project', {path: '/add-project'});
this.route('project', {path: '/p/:project_id'});
this.route('cluster', {path: '/:cluster_id'}, function() {
this.route('edit');
@ -65,11 +65,11 @@ Router.map(function() {
});
// Per-Project
this.route('project', {path: '/env/:project_id'}, function() {
this.route('project', {path: '/p/:project_id'}, function() {
this.route('index', {path: '/'});
this.route('apikeys', {path: '/api/keys'}, function() {
this.route('account', {path: '/account'});
this.route('environment', {path: '/environment'});
this.route('project', {path: '/project'});
});
this.route('waiting');
@ -151,7 +151,7 @@ Router.map(function() {
this.route('apikeys', {path: '/api/keys'}, function() {
this.route('account', {path: '/account'});
this.route('environment', {path: '/environment'});
this.route('project', {path: '/project'});
});
this.route('hooks', {path: '/api/hooks'}, function() {

View File

@ -64,7 +64,7 @@ export default Service.extend({
current: authBase + current,
legacy: authBase + legacy
},
environment: {
project: {
current: authBase + current + project,
legacy: authBase + legacy + project
}
@ -74,7 +74,7 @@ export default Service.extend({
current: base + current,
legacy: base + legacy
},
environment: {
project: {
current: base + current + project,
legacy: base + legacy + project
}