Skip to content

Commit 9381d8c

Browse files
authored
feat(auth): configurable auth social icons (#1545)
Closes #1515
1 parent 480a90b commit 9381d8c

File tree

4 files changed

+33
-0
lines changed

4 files changed

+33
-0
lines changed

.angular-cli.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"../node_modules/roboto-fontface/css/roboto/roboto-fontface.css",
3030
"../node_modules/ionicons/scss/ionicons.scss",
3131
"../node_modules/font-awesome/scss/font-awesome.scss",
32+
"../node_modules/socicon/css/socicon.css",
3233
"../node_modules/nebular-icons/scss/nebular-icons.scss",
3334
"../node_modules/pace-js/templates/pace-theme-flash.tmpl.css",
3435
"./app/@theme/styles/styles.scss"

package-lock.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"pace-js": "1.0.2",
6767
"roboto-fontface": "0.8.0",
6868
"rxjs": "5.5.5",
69+
"socicon": "3.0.5",
6970
"tinymce": "4.5.7",
7071
"typeface-exo": "0.0.22",
7172
"web-animations-js": "2.2.5",

src/app/@core/core.module.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ import { throwIfAlreadyLoaded } from './module-import-guard';
88
import { DataModule } from './data/data.module';
99
import { AnalyticsService } from './utils/analytics.service';
1010

11+
const socialLinks = [
12+
{
13+
url: 'https://github.com/akveo/nebular',
14+
target: '_blank',
15+
icon: 'socicon-github',
16+
},
17+
{
18+
url: 'https://www.facebook.com/akveo/',
19+
target: '_blank',
20+
icon: 'socicon-facebook',
21+
},
22+
{
23+
url: 'https://twitter.com/akveo_inc',
24+
target: '_blank',
25+
icon: 'socicon-twitter',
26+
},
27+
];
28+
1129
const NB_CORE_PROVIDERS = [
1230
...DataModule.forRoot().providers,
1331
...NbAuthModule.forRoot({
@@ -22,6 +40,14 @@ const NB_CORE_PROVIDERS = [
2240
},
2341
},
2442
},
43+
forms: {
44+
login: {
45+
socialLinks: socialLinks,
46+
},
47+
register: {
48+
socialLinks: socialLinks,
49+
},
50+
},
2551
}).providers,
2652
NbSecurityModule.forRoot({
2753
accessControl: {

0 commit comments

Comments
 (0)