forked from angular-fullstack/generator-angular-fullstack
-
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.
Merge pull request angular-fullstack#1156 from kingcody/feature/oauth…
…-buttons feat(app): implement oauth-buttons directive
- Loading branch information
Showing
40 changed files
with
402 additions
and
192 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
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
30 changes: 0 additions & 30 deletions
30
app/templates/client/app/account(auth)/login/login(less).less
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
app/templates/client/app/account(auth)/login/login(sass).scss
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
app/templates/client/app/account(auth)/login/login(stylus).styl
This file was deleted.
Oops, something went wrong.
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
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
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
12 changes: 12 additions & 0 deletions
12
app/templates/client/components/oauth-buttons(oauth)/oath-buttons(html).html
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<% if(filters.facebookAuth) { %><a ng-class="classes" ng-click="OauthButtons.loginOauth('facebook')" class="btn<% if (filters.bootstrap) { %> btn-social<% } %> btn-facebook"> | ||
<i class="fa fa-facebook"></i> | ||
Connect with Facebook | ||
</a> | ||
<% } if (filters.googleAuth) { %><a ng-class="classes" ng-click="OauthButtons.loginOauth('google')" class="btn<% if (filters.bootstrap) { %> btn-social<% } %> btn-google"> | ||
<i class="fa fa-google-plus"></i> | ||
Connect with Google+ | ||
</a> | ||
<% } if (filters.twitterAuth) { %><a ng-class="classes" ng-click="OauthButtons.loginOauth('twitter')" class="btn<% if (filters.bootstrap) { %> btn-social<% } %> btn-twitter"> | ||
<i class="fa fa-twitter"></i> | ||
Connect with Twitter | ||
</a><% } %> |
19 changes: 8 additions & 11 deletions
19
...nt/app/account(auth)/login/login(css).css → ...uth-buttons(oauth)/oauth-buttons(css).css
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
14 changes: 14 additions & 0 deletions
14
app/templates/client/components/oauth-buttons(oauth)/oauth-buttons(jade).jade
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<% if(filters.facebookAuth) { %>a.btn<% if (filters.bootstrap) { %>.btn-social<% } %>.btn-facebook(ng-class='classes' | ||
ng-click='OauthButtons.loginOauth("facebook")') | ||
i.fa.fa-facebook | ||
| Connect with Facebook | ||
|
||
<% } if(filters.googleAuth) { %>a.btn<% if (filters.bootstrap) { %>.btn-social<% } %>.btn-google(ng-class='classes' | ||
ng-click='OauthButtons.loginOauth("google")') | ||
i.fa.fa-google-plus | ||
| Connect with Google+ | ||
|
||
<% } if(filters.twitterAuth) { %>a.btn<% if (filters.bootstrap) { %>.btn-social<% } %>.btn-twitter(ng-class='classes' | ||
ng-click='OauthButtons.loginOauth("twitter")') | ||
i.fa.fa-twitter | ||
| Connect with Twitter<% } %> |
20 changes: 20 additions & 0 deletions
20
app/templates/client/components/oauth-buttons(oauth)/oauth-buttons(less).less
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<% if (!filters.bootstrap) { if (filters.facebookAuth) { %>.btn-facebook { | ||
color: #fff; | ||
background-color: #3B5998; | ||
border-color: #133783; | ||
} | ||
<% } if (filters.googleAuth) { %>.btn-google { | ||
color: #fff; | ||
background-color: #dd4b39; | ||
border-color: #c53727; | ||
} | ||
<% } if (filters.twitterAuth) { %>.btn-twitter { | ||
color: #fff; | ||
background-color: #2daddc; | ||
border-color: #0271bf; | ||
} | ||
<% } %>.btn-github { | ||
color: #fff; | ||
background-color: #fafafa; | ||
border-color: #ccc; | ||
}<% } %> |
Oops, something went wrong.