initial import for Open Source 🎉
This commit is contained in:
parent
1898c361f3
commit
9c0dd3b722
2048 changed files with 218743 additions and 0 deletions
37
static/js/directives/ui/user-setup.js
Normal file
37
static/js/directives/ui/user-setup.js
Normal file
|
@ -0,0 +1,37 @@
|
|||
/**
|
||||
* An element which displays a box for the user to sign in, sign up and recover their account.
|
||||
*/
|
||||
angular.module('quay').directive('userSetup', function () {
|
||||
var directiveDefinitionObject = {
|
||||
priority: 0,
|
||||
templateUrl: '/static/directives/user-setup.html',
|
||||
replace: false,
|
||||
transclude: true,
|
||||
restrict: 'C',
|
||||
scope: {
|
||||
'redirectUrl': '=redirectUrl',
|
||||
'inviteCode': '=inviteCode',
|
||||
|
||||
'hideLogo': '@hideLogo',
|
||||
|
||||
'signInStarted': '&signInStarted',
|
||||
'signedIn': '&signedIn',
|
||||
'userRegistered': '&userRegistered'
|
||||
},
|
||||
controller: function($scope, $location, $timeout, ApiService, KeyService, UserService, Config, Features, StateService) {
|
||||
$scope.Config = Config;
|
||||
$scope.Features = Features;
|
||||
$scope.currentView = 'signin';
|
||||
$scope.inReadOnlyMode = StateService.inReadOnlyMode();
|
||||
|
||||
$scope.setView = function(view) {
|
||||
$scope.currentView = view;
|
||||
};
|
||||
|
||||
$scope.handleUserRegistered = function(username) {
|
||||
$scope.userRegistered({'username': username});
|
||||
};
|
||||
}
|
||||
};
|
||||
return directiveDefinitionObject;
|
||||
});
|
Reference in a new issue