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
-3
@@ -21,6 +21,10 @@
|
||||
"assets": ["frontend/src/favicon.ico", "frontend/src/assets"],
|
||||
"styles": [
|
||||
"frontend/src/styles.css",
|
||||
|
||||
"frontend/src/assets/plugins/select2/css/select2.min.css",
|
||||
"frontend/src/assets/plugins/select2/css/select2-bootstrap4.css",
|
||||
|
||||
"frontend/src/assets/css/bootstrap.min.css",
|
||||
"frontend/src/assets/css/bootstrap-extended.css",
|
||||
|
||||
@@ -37,8 +41,7 @@
|
||||
|
||||
"frontend/src/assets/sass/bordered-theme.css",
|
||||
|
||||
"frontend/src/assets/plugins/select2/css/select2.min.css",
|
||||
"frontend/src/assets/plugins/select2/css/select2-bootstrap4.css",
|
||||
"node_modules/ngx-toastr/toastr.css",
|
||||
|
||||
"node_modules/flatpickr/dist/flatpickr.min.css",
|
||||
|
||||
@@ -53,8 +56,9 @@
|
||||
"frontend/src/assets/plugins/apexchart/apexcharts.min.js",
|
||||
"frontend/src/assets/plugins/simplebar/js/simplebar.min.js",
|
||||
"frontend/src/assets/plugins/peity/jquery.peity.min.js",
|
||||
"frontend/src/assets/plugins/select2/js/select2-custom.js",
|
||||
|
||||
"frontend/src/assets/plugins/select2/js/select2.min.js",
|
||||
"frontend/src/assets/plugins/select2/js/select2-custom.js",
|
||||
|
||||
"node_modules/flatpickr/dist/flatpickr.min.js",
|
||||
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
Generated
+14
@@ -28,6 +28,7 @@
|
||||
"multer": "^1.4.5-lts.1",
|
||||
"mysql2": "^3.9.3",
|
||||
"ngx-bootstrap": "^12.0.0",
|
||||
"ngx-toastr": "^18.0.0",
|
||||
"rxjs": "~7.8.0",
|
||||
"sequelize": "^6.37.1",
|
||||
"tslib": "^2.3.0",
|
||||
@@ -13221,6 +13222,19 @@
|
||||
"rxjs": "^6.5.3 || ^7.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/ngx-toastr": {
|
||||
"version": "18.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ngx-toastr/-/ngx-toastr-18.0.0.tgz",
|
||||
"integrity": "sha512-jZ3rOG6kygl8ittY8OltIMSo47P1VStuS01igm3MZXK6InJwHVvxU7wDHI/HGMlXSyNvWncyOuFHnnMEAifsew==",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@angular/common": ">=16.0.0-0",
|
||||
"@angular/core": ">=16.0.0-0",
|
||||
"@angular/platform-browser": ">=16.0.0-0"
|
||||
}
|
||||
},
|
||||
"node_modules/nice-napi": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/nice-napi/-/nice-napi-1.0.2.tgz",
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
"multer": "^1.4.5-lts.1",
|
||||
"mysql2": "^3.9.3",
|
||||
"ngx-bootstrap": "^12.0.0",
|
||||
"ngx-toastr": "^18.0.0",
|
||||
"rxjs": "~7.8.0",
|
||||
"sequelize": "^6.37.1",
|
||||
"tslib": "^2.3.0",
|
||||
|
||||
Reference in new issue
Block a user