Skip to content

Commit 8c5de6c

Browse files
committed
feat: added tabs
1 parent 66d3532 commit 8c5de6c

File tree

64 files changed

+512
-170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+512
-170
lines changed

src/app/app.component.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
<app-form-filter
2-
[widgetInput]="filterState()"
3-
(savedState)="updateSavedState($event)"
4-
></app-form-filter>
5-
6-
<app-button></app-button>
1+
<router-outlet></router-outlet>

src/app/app.component.ts

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
1-
import { Component, signal } from '@angular/core';
2-
import { ButtonComponent } from './button/button.component';
3-
import { FILTER_INPUT } from './dummy-data/fund-input-dummy';
4-
import { FormFilterModule } from './form-filter/form-filter.module';
5-
import { SavedFilter } from './form-filter/models/saved-filter.model';
6-
import { WidgetInput } from './models/widget-input.model';
1+
import { Component } from '@angular/core';
2+
import { RouterOutlet } from '@angular/router';
73

84
@Component({
95
selector: 'app-root',
10-
imports: [FormFilterModule, ButtonComponent],
6+
imports: [RouterOutlet],
117
templateUrl: './app.component.html',
128
styleUrl: './app.component.scss',
139
})
14-
export class AppComponent {
15-
filterState = signal<WidgetInput>(FILTER_INPUT);
16-
17-
updateSavedState(savedState: SavedFilter) {
18-
this.filterState.update((state) => ({
19-
...state,
20-
state: savedState,
21-
}));
22-
23-
console.log('Saved state:', savedState);
24-
}
25-
}
10+
export class AppComponent {}

src/app/app.routes.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
import { Routes } from '@angular/router';
2+
import { GridContainerComponent } from './components/grid-container/grid-container.component';
3+
import { MainComponent } from './views/main/main.component';
24

3-
export const routes: Routes = [];
5+
export const routes: Routes = [
6+
{
7+
path: '',
8+
component: MainComponent,
9+
children: [
10+
{
11+
path: ':workspace',
12+
component: GridContainerComponent,
13+
},
14+
],
15+
},
16+
];

src/app/button/button.component.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/app/button/button.component.scss

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/app/button/button.component.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/app/form-filter/components/company-filter/company-filter.component.html renamed to src/app/components/form-filter/components/company-filter/company-filter.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field>
1+
<mat-form-field appearance="outline">
22
<input
33
matInput
44
[formControl]="inputForm"

src/app/form-filter/components/company-filter/company-filter.component.scss renamed to src/app/components/form-filter/components/company-filter/company-filter.component.scss

File renamed without changes.

src/app/form-filter/components/company-filter/company-filter.component.ts renamed to src/app/components/form-filter/components/company-filter/company-filter.component.ts

File renamed without changes.

src/app/form-filter/components/country-filter/country-filter.component.html renamed to src/app/components/form-filter/components/country-filter/country-filter.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-form-field>
1+
<mat-form-field appearance="outline">
22
<mat-label>Countries</mat-label>
33
<mat-select [formControlName]="controlKey()" multiple>
44
<mat-select-trigger>

0 commit comments

Comments
 (0)