Skip to content

Commit

Permalink
firstCommit
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimnir committed May 25, 2023
1 parent 4772ef6 commit b17f5ae
Show file tree
Hide file tree
Showing 37 changed files with 921 additions and 490 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"cSpell.words": [
"Malshinon"
]
}
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"src/assets"
],
"styles": [
"node_modules/bootstrap/dist/css/bootstrap.min.css",
"src/styles.css"
],
"scripts": []
Expand Down Expand Up @@ -98,4 +99,4 @@
}
}
}
}
}
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
"@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.2.0",
"bootstrap": "^3.4.1",
"bootstrap-autocomplete": "^2.3.7",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
Expand Down
19 changes: 18 additions & 1 deletion src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,24 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ReportsComponent } from './reports/reports.component';
import { AuthComponent } from './auth/auth.component';
import { ReportStartComponent } from './reports/report-start/report-start.component';
import { ReportDetailComponent } from './reports/report-detail/report-detail.component';
import { ReportEditComponent } from './reports/report-edit/report-edit.component';

const routes: Routes = [];
const routes: Routes = [
{ path: '', redirectTo: '/reports', pathMatch: 'full' },
{
path: 'reports', component: ReportsComponent, children: [
{ path: '', component: ReportStartComponent },
{ path: 'new', component: ReportEditComponent },
{ path: ':id', component: ReportDetailComponent },
{ path: ':id/edit', component: ReportEditComponent },
]
},
{ path: 'register', component: AuthComponent },

];

@NgModule({
imports: [RouterModule.forRoot(routes)],
Expand Down
Loading

0 comments on commit b17f5ae

Please sign in to comment.