add settings component + ngx-toastr package
This commit is contained in:
1 parent
05e4505fdb
commit
c51a389519
9 files changed
+67
-3
No files matched your search
@@ -7,6 +7,7 @@ import { PopularComponent } from './features/discover/popular/popular.component'
|
||||
import { LibraryComponent } from './features/library/library.component';
|
||||
import { FavoritComponent } from './features/favorit/favorit.component';
|
||||
import { WatchlistComponent } from './features/watchlist/watchlist.component';
|
||||
import { SettingsComponent } from './features/settings/settings.component';
|
||||
|
||||
const routes: Routes = [
|
||||
{ path: '', redirectTo: '/home', pathMatch: 'full' },
|
||||
@@ -18,6 +19,7 @@ const routes: Routes = [
|
||||
{ path: 'library', component: LibraryComponent },
|
||||
{ path: 'favorit', component: FavoritComponent },
|
||||
{ path: 'watchlist', component: WatchlistComponent },
|
||||
{ path: 'settings', component: SettingsComponent },
|
||||
// { path: 'entry', component: LibraryComponent },
|
||||
{
|
||||
path: 'entries',
|
||||
|
||||
@@ -23,6 +23,8 @@ import { MainCardComponent } from './shared/components/cards/main-card/main-card
|
||||
import { FavoritComponent } from './features/favorit/favorit.component';
|
||||
import { WatchlistComponent } from './features/watchlist/watchlist.component';
|
||||
import { SharedModule } from './shared/shared.module';
|
||||
import { SettingsComponent } from './features/settings/settings.component';
|
||||
import { ToastrModule } from 'ngx-toastr';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
@@ -40,6 +42,9 @@ import { SharedModule } from './shared/shared.module';
|
||||
HttpClientModule,
|
||||
|
||||
DragDropModule,
|
||||
|
||||
// ? downloaded
|
||||
ToastrModule.forRoot(),
|
||||
],
|
||||
declarations: [
|
||||
AppComponent,
|
||||
@@ -52,6 +57,7 @@ import { SharedModule } from './shared/shared.module';
|
||||
LibraryComponent,
|
||||
FavoritComponent,
|
||||
WatchlistComponent,
|
||||
SettingsComponent,
|
||||
|
||||
// ? temp shared components
|
||||
MainCardComponent,
|
||||
|
||||
Whitespace-only changes.
@@ -0,0 +1,4 @@
|
||||
<!--breadcrumb-->
|
||||
<div class="page-breadcrumb d-none d-sm-flex align-items-center mb-3">
|
||||
<div class="breadcrumb-title pe-3">Settings</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { SettingsComponent } from './settings.component';
|
||||
|
||||
describe('SettingsComponent', () => {
|
||||
let component: SettingsComponent;
|
||||
let fixture: ComponentFixture<SettingsComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [SettingsComponent]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(SettingsComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-settings',
|
||||
templateUrl: './settings.component.html',
|
||||
styleUrl: './settings.component.css',
|
||||
})
|
||||
export class SettingsComponent {
|
||||
constructor() {}
|
||||
}
|
||||
Reference in new issue
Block a user