Skip to content

Commit 31d6643

Browse files
committed
refactor: migrate to CSS, add tags
1 parent 5969776 commit 31d6643

9 files changed

Lines changed: 12 additions & 8 deletions

File tree

complete-application/angular.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"projectType": "application",
88
"schematics": {
99
"@schematics/angular:component": {
10-
"style": "scss"
10+
"style": "css"
1111
}
1212
},
1313
"root": "",
@@ -24,13 +24,13 @@
2424
"zone.js"
2525
],
2626
"tsConfig": "tsconfig.app.json",
27-
"inlineStyleLanguage": "scss",
27+
"inlineStyleLanguage": "css",
2828
"assets": [
2929
"src/favicon.ico",
3030
"src/assets"
3131
],
3232
"styles": [
33-
"src/styles.scss"
33+
"src/styles.css"
3434
],
3535
"scripts": []
3636
},
@@ -87,13 +87,13 @@
8787
"zone.js/testing"
8888
],
8989
"tsConfig": "tsconfig.spec.json",
90-
"inlineStyleLanguage": "scss",
90+
"inlineStyleLanguage": "css",
9191
"assets": [
9292
"src/favicon.ico",
9393
"src/assets"
9494
],
9595
"styles": [
96-
"src/styles.scss"
96+
"src/styles.css"
9797
],
9898
"scripts": []
9999
}

complete-application/src/app/account-page/account-page.component.scss renamed to complete-application/src/app/account-page/account-page.component.css

File renamed without changes.

complete-application/src/app/account-page/account-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
selector: 'app-account-page',
55
templateUrl: './account-page.component.html',
6-
styleUrls: ['./account-page.component.scss']
6+
styleUrls: ['./account-page.component.css']
77
})
88
export class AccountPageComponent {
99

File renamed without changes.

complete-application/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {fromPromise} from "rxjs/internal/observable/innerFrom";
66
@Component({
77
selector: 'app-root',
88
templateUrl: './app.component.html',
9-
styleUrls: ['./app.component.scss']
9+
styleUrls: ['./app.component.css']
1010
})
1111
export class AppComponent {
1212

complete-application/src/app/app.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,19 @@ import {authGuard} from "./auth-guard";
1616
],
1717
imports: [
1818
BrowserModule,
19+
//tag::routerConfiguration[]
1920
RouterModule.forRoot([
2021
{path: '', component: HomePageComponent, canActivate: [authGuard(false, '/account')]},
2122
{path: 'account', component: AccountPageComponent, canActivate: [authGuard(true, '/')]}
2223
]),
24+
//end::routerConfiguration[]
25+
//tag::fusionAuthModuleConfiguration[]
2326
FusionAuthModule.forRoot({
2427
clientId: 'e9fdb985-9173-4e01-9d73-ac2d60d1dc8e',
2528
serverUrl: 'http://localhost:9011',
2629
redirectUri: 'http://localhost:4200',
2730
})
31+
//end::fusionAuthModuleConfiguration[]
2832
],
2933
providers: [],
3034
bootstrap: [AppComponent]

complete-application/src/app/home-page/home-page.component.scss renamed to complete-application/src/app/home-page/home-page.component.css

File renamed without changes.

complete-application/src/app/home-page/home-page.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {FusionAuthService} from "@fusionauth/angular-sdk";
44
@Component({
55
selector: 'app-home-page',
66
templateUrl: './home-page.component.html',
7-
styleUrls: ['./home-page.component.scss']
7+
styleUrls: ['./home-page.component.css']
88
})
99
export class HomePageComponent {
1010

0 commit comments

Comments
 (0)