init Project ✌️✌️
This commit is contained in:
commit
8a6dc19bdd
42 changed files with 249179 additions and 0 deletions
0
client/src/app/features/home/home.component.css
Normal file
0
client/src/app/features/home/home.component.css
Normal file
7
client/src/app/features/home/home.component.html
Normal file
7
client/src/app/features/home/home.component.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<p>home works!</p>
|
||||
<asl-google-signin-button
|
||||
type="standard"
|
||||
shape="pill"
|
||||
text="signin_with"
|
||||
size="large"
|
||||
></asl-google-signin-button>
|
||||
21
client/src/app/features/home/home.component.spec.ts
Normal file
21
client/src/app/features/home/home.component.spec.ts
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { HomeComponent } from './home.component';
|
||||
|
||||
describe('HomeComponent', () => {
|
||||
let component: HomeComponent;
|
||||
let fixture: ComponentFixture<HomeComponent>;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [HomeComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(HomeComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
23
client/src/app/features/home/home.component.ts
Normal file
23
client/src/app/features/home/home.component.ts
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import {
|
||||
GoogleSigninButtonModule,
|
||||
SocialAuthService,
|
||||
} from '@abacritt/angularx-social-login';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { AppModule } from 'src/app/app.module';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
templateUrl: './home.component.html',
|
||||
styleUrls: ['./home.component.css'],
|
||||
imports: [GoogleSigninButtonModule],
|
||||
standalone: true,
|
||||
})
|
||||
export class HomeComponent implements OnInit {
|
||||
constructor(private _authService: SocialAuthService) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this._authService.authState.subscribe((user) => {
|
||||
console.log(user);
|
||||
});
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue