mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 15:55:16 +02:00
Add Access Tokens base.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
module.exports = function AccessTokensCtrl($scope) {
|
||||
|
||||
}
|
||||
17
res/app/settings/keys/access-tokens/access-tokens-spec.js
Normal file
17
res/app/settings/keys/access-tokens/access-tokens-spec.js
Normal file
@@ -0,0 +1,17 @@
|
||||
describe('AccessTokensCtrl', function () {
|
||||
|
||||
beforeEach(angular.mock.module(require('./index').name))
|
||||
|
||||
var scope, ctrl
|
||||
|
||||
beforeEach(inject(function ($rootScope, $controller) {
|
||||
scope = $rootScope.$new()
|
||||
ctrl = $controller('AccessTokensCtrl', {$scope: scope})
|
||||
}))
|
||||
|
||||
it('should ...', inject(function () {
|
||||
expect(1).toEqual(1)
|
||||
|
||||
}))
|
||||
|
||||
})
|
||||
3
res/app/settings/keys/access-tokens/access-tokens.css
Normal file
3
res/app/settings/keys/access-tokens/access-tokens.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.stf-access-tokens {
|
||||
|
||||
}
|
||||
33
res/app/settings/keys/access-tokens/access-tokens.jade
Normal file
33
res/app/settings/keys/access-tokens/access-tokens.jade
Normal file
@@ -0,0 +1,33 @@
|
||||
.widget-container.fluid-height.stf-access-tokens(ng-controller='AccessTokensCtrl')
|
||||
.heading
|
||||
i.fa.fa-key
|
||||
span(translate) Access Tokens
|
||||
|
||||
button.btn.pull-right.btn-sm(
|
||||
ng-click='showAdd = !showAdd',
|
||||
ng-class='{ "btn-primary-outline": !showAdd, "btn-primary": showAdd }')
|
||||
i.fa.fa-plus.fa-fw
|
||||
|
||||
a(ng-href='/#!/docs/access-tokens').pull-right.btn.btn-sm
|
||||
i.fa.fa-question-circle(tooltip='{{"More about Access Tokens" | translate}}', tooltip-placement='left')
|
||||
|
||||
.widget-content.padded
|
||||
|
||||
//add-adb-key(show-clipboard='true', show-add='showAdd')
|
||||
|
||||
nothing-to-show(icon='fa-key', message='{{"No access tokens" | translate}}',
|
||||
ng-if='!adbKeys.length && !showAdd')
|
||||
|
||||
|
||||
|
||||
ul.list-group.key-list
|
||||
li.list-group-item(ng-repeat='key in adbKeys').animate-repeat
|
||||
a
|
||||
i.fa.fa-key.fa-2x.fa-fw.key-list-icon
|
||||
.key-list-details.selectable
|
||||
.key-list-title(ng-bind='key.title')
|
||||
.key-list-fingerprint(ng-bind='key.fingerprint')
|
||||
|
||||
button.btn.btn-xs.btn-danger-outline.pull-right.key-list-remove(ng-click='removeKey(key)')
|
||||
i.fa.fa-trash-o
|
||||
span(translate) Remove
|
||||
11
res/app/settings/keys/access-tokens/index.js
Normal file
11
res/app/settings/keys/access-tokens/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
require('./access-tokens.css')
|
||||
|
||||
module.exports = angular.module('stf.access-tokens', [
|
||||
require('stf/common-ui').name
|
||||
])
|
||||
.run(["$templateCache", function ($templateCache) {
|
||||
$templateCache.put(
|
||||
'settings/keys/access-tokens/access-tokens.jade', require('./access-tokens.jade')
|
||||
)
|
||||
}])
|
||||
.controller('AccessTokensCtrl', require('./access-tokens-controller'))
|
||||
Reference in New Issue
Block a user