feat(auth): rewrite authentication to not use oauth manage users in app instead #163

Merged
jleibl merged 13 commits from feature/authentication into main 2025-05-07 14:28:51 +00:00
5 changed files with 7 additions and 14 deletions
Showing only changes of commit a178386355 - Show all commits

View file

@ -1,7 +1,7 @@
import { ChangeDetectionStrategy, Component, inject, OnInit, signal } from '@angular/core'; import { ChangeDetectionStrategy, Component, inject, OnInit, signal } from '@angular/core';
import { NavbarComponent } from '@shared/components/navbar/navbar.component'; import { NavbarComponent } from '@shared/components/navbar/navbar.component';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
import { KeyValuePipe, NgClass, UpperCasePipe } from '@angular/common'; import { KeyValuePipe, UpperCasePipe } from '@angular/common';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
interface SlotResult { interface SlotResult {
@ -13,7 +13,7 @@ interface SlotResult {
@Component({ @Component({
selector: 'app-slots', selector: 'app-slots',
standalone: true, standalone: true,
imports: [NavbarComponent, KeyValuePipe, UpperCasePipe, NgClass, FormsModule], imports: [NavbarComponent, KeyValuePipe, UpperCasePipe, FormsModule],
templateUrl: './slots.component.html', templateUrl: './slots.component.html',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
}) })

View file

@ -1,4 +1,4 @@
import { Component, ChangeDetectorRef } from '@angular/core'; import { ChangeDetectorRef, Component } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { ActivatedRoute, Router } from '@angular/router'; import { ActivatedRoute, Router } from '@angular/router';
import { LootboxService } from '../services/lootbox.service'; import { LootboxService } from '../services/lootbox.service';

View file

@ -1,4 +1,4 @@
import { Component, OnInit, ChangeDetectorRef } from '@angular/core'; import { ChangeDetectorRef, Component, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { NavbarComponent } from '@shared/components/navbar/navbar.component'; import { NavbarComponent } from '@shared/components/navbar/navbar.component';
import { LootboxService } from '../services/lootbox.service'; import { LootboxService } from '../services/lootbox.service';

View file

@ -1,6 +1,6 @@
import { Injectable, inject } from '@angular/core'; import { inject, Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http'; import { HttpClient } from '@angular/common/http';
import { Observable, catchError } from 'rxjs'; import { catchError, Observable } from 'rxjs';
import { LootBox, Reward } from 'app/model/LootBox'; import { LootBox, Reward } from 'app/model/LootBox';
@Injectable({ @Injectable({

View file

@ -1,11 +1,4 @@
import { import { ChangeDetectionStrategy, Component, EventEmitter, inject, Input, Output } from '@angular/core';
ChangeDetectionStrategy,
Component,
EventEmitter,
inject,
Input,
Output,
} from '@angular/core';
import { TransactionService } from '@service/transaction.service'; import { TransactionService } from '@service/transaction.service';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { AsyncPipe, CurrencyPipe, DatePipe, NgIf } from '@angular/common'; import { AsyncPipe, CurrencyPipe, DatePipe, NgIf } from '@angular/common';