-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use SASS instead of CSS + Complete ReFormat + Update Dependecies + Ad…
…ded several missing semicolons + Several smaller changes
- Loading branch information
Showing
48 changed files
with
1,971 additions
and
1,739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,35 @@ | ||
function AuthConfig($stateProvider, $httpProvider) { | ||
'ngInject'; | ||
'ngInject'; | ||
|
||
// Define the routes | ||
$stateProvider | ||
// Define the routes | ||
$stateProvider | ||
|
||
.state('app.login', { | ||
url: '/login', | ||
controller: 'AuthCtrl as $ctrl', | ||
templateUrl: 'auth/auth.html', | ||
title: 'Sign in', | ||
resolve: { | ||
auth: (User) => { | ||
return User.ensureAuthIs(false); | ||
} | ||
} | ||
}) | ||
.state('app.login', { | ||
url: '/login', | ||
controller: 'AuthCtrl as $ctrl', | ||
templateUrl: 'auth/auth.html', | ||
title: 'Sign in', | ||
resolve: { | ||
auth: (User) => { | ||
return User.ensureAuthIs(false); | ||
} | ||
} | ||
}) | ||
|
||
.state('app.register', { | ||
url: '/register', | ||
controller: 'AuthCtrl as $ctrl', | ||
templateUrl: 'auth/auth.html', | ||
title: 'Sign up', | ||
resolve: { | ||
auth: (User) => { | ||
return User.ensureAuthIs(false); | ||
} | ||
} | ||
}); | ||
.state('app.register', { | ||
url: '/register', | ||
controller: 'AuthCtrl as $ctrl', | ||
templateUrl: 'auth/auth.html', | ||
title: 'Sign up', | ||
resolve: { | ||
auth: (User) => { | ||
return User.ensureAuthIs(false); | ||
} | ||
} | ||
}); | ||
|
||
} | ||
|
||
}; | ||
AuthConfig.$inject = ["$stateProvider", "$httpProvider"]; //Explicit annotation needed! | ||
|
||
export default AuthConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,51 @@ | ||
<div class="auth-page"> | ||
<div class="row"> | ||
<div class="auth-header"> | ||
<ul> | ||
<li class="nav-item canvas-button"> | ||
<a class="nav-link" | ||
ui-sref-active="active" | ||
ui-sref="app.home"> | ||
Home | ||
</a> | ||
</li> | ||
<h1 class="auth-title" ng-bind="::$ctrl.title"></h1> | ||
<div class="block"></div> | ||
</ul> | ||
</div> | ||
<div class="auth-header"> | ||
<ul> | ||
<li class="nav-item canvas-button"> | ||
<a class="nav-link" | ||
ui-sref-active="active" | ||
ui-sref="app.home"> | ||
Home | ||
</a> | ||
</li> | ||
<h1 class="auth-title" ng-bind="::$ctrl.title"></h1> | ||
<div class="block"></div> | ||
</ul> | ||
|
||
</div> | ||
<p> | ||
<a ui-sref="app.login" ng-show="$ctrl.authType === 'register'"> | ||
Have an account? | ||
</a> | ||
<a ui-sref="app.register" ng-show="$ctrl.authType === 'login'"> | ||
Need an account? | ||
</a> | ||
<a ui-sref="app.login" ng-show="$ctrl.authType === 'register'"> | ||
Have an account? | ||
</a> | ||
<a ui-sref="app.register" ng-show="$ctrl.authType === 'login'"> | ||
Need an account? | ||
</a> | ||
</p> | ||
|
||
<p class="auth-error">{{$ctrl.errors}}</p> | ||
|
||
<form name="authForm" novalidate ng-submit="$ctrl.submitForm()" id="authForm"> | ||
<fieldset ng-disabled="$ctrl.isSubmitting"> | ||
<p class="auth-error">{{$ctrl.errors}}</p> | ||
|
||
<form name="authForm" novalidate ng-submit="$ctrl.submitForm()" id="authForm"> | ||
<fieldset ng-disabled="$ctrl.isSubmitting"> | ||
|
||
<input class="auth-input" | ||
type="text" | ||
placeholder="Username" | ||
ng-model="$ctrl.formData.username" | ||
ng-pattern="/^([A-Za-z0-9\-\_]{3,16}$)+$/" ng-required="$ctrl.authType === 'register'" ng-show="$ctrl.authType === 'register'"/> | ||
<input class="auth-input" | ||
type="text" | ||
placeholder="Username" | ||
ng-model="$ctrl.formData.username" | ||
ng-pattern="/^([A-Za-z0-9\-\_]{3,16}$)+$/" ng-required="$ctrl.authType === 'register'" ng-show="$ctrl.authType === 'register'"/> | ||
|
||
<input class="auth-input" | ||
type="email" | ||
placeholder="Email" | ||
ng-model="$ctrl.formData.email" required/> | ||
<input class="auth-input" | ||
type="email" | ||
placeholder="Email" | ||
ng-model="$ctrl.formData.email" required/> | ||
|
||
<input class="auth-input" | ||
type="password" | ||
placeholder="Password" | ||
ng-model="$ctrl.formData.password" required/> | ||
<input class="auth-input" | ||
type="password" | ||
placeholder="Password" | ||
ng-model="$ctrl.formData.password" required/> | ||
|
||
<md-button class="authSubmit md-raised" type="submit" ng-bind="$ctrl.title" ng-disabled="authForm.$invalid" aria-label="auth"/> | ||
</fieldset> | ||
</form> | ||
</div> | ||
<md-button class="authSubmit md-raised" type="submit" ng-bind="$ctrl.title" ng-disabled="authForm.$invalid" aria-label="auth"/> | ||
</fieldset> | ||
</form> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
function CanvasConfig($stateProvider) { | ||
'ngInject'; | ||
'ngInject'; | ||
|
||
$stateProvider | ||
.state('app.canvas', { | ||
url: '/canvas', | ||
controller: 'CanvasCtrl as $ctrl', | ||
templateUrl: 'canvas/canvas.html', | ||
title: 'Canvas', | ||
resolve: { | ||
auth: function(User) { | ||
return User.ensureAuthIs(true); | ||
} | ||
} | ||
}); | ||
$stateProvider | ||
.state('app.canvas', { | ||
url: '/canvas', | ||
controller: 'CanvasCtrl as $ctrl', | ||
templateUrl: 'canvas/canvas.html', | ||
title: 'Canvas', | ||
resolve: { | ||
auth: function (User) { | ||
return User.ensureAuthIs(true); | ||
} | ||
} | ||
}); | ||
|
||
} | ||
|
||
}; | ||
CanvasConfig.$inject = ["$stateProvider"]; //Explicit annotation needed! | ||
|
||
export default CanvasConfig; |
Oops, something went wrong.