Skip to content

Commit

Permalink
Merge pull request #4 from szymonpoltorak/login
Browse files Browse the repository at this point in the history
Login
  • Loading branch information
szymonpoltorak authored Oct 15, 2023
2 parents 9d1a361 + c2a3486 commit 551c88e
Show file tree
Hide file tree
Showing 34 changed files with 1,331 additions and 620 deletions.
2 changes: 2 additions & 0 deletions todo-app-frontend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ testem.log
.DS_Store
Thumbs.db
.angular
*.css
*.css.map
8 changes: 5 additions & 3 deletions todo-app-frontend/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser-esbuild",
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/todo-app-frontend",
"index": "src/index.html",
Expand All @@ -30,7 +30,8 @@
"src/assets"
],
"styles": [
"src/styles.scss"
"@angular/material/prebuilt-themes/purple-green.css",
"src/styles.scss"
],
"scripts": []
},
Expand Down Expand Up @@ -93,7 +94,8 @@
"src/assets"
],
"styles": [
"src/styles.scss"
"@angular/material/prebuilt-themes/purple-green.css",
"src/styles.scss"
],
"scripts": []
}
Expand Down
915 changes: 907 additions & 8 deletions todo-app-frontend/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions todo-app-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
"private": true,
"dependencies": {
"@angular/animations": "^16.2.0",
"@angular/cdk": "^16.2.8",
"@angular/common": "^16.2.0",
"@angular/compiler": "^16.2.0",
"@angular/core": "^16.2.0",
"@angular/forms": "^16.2.0",
"@angular/material": "^16.2.8",
"@angular/platform-browser": "^16.2.0",
"@angular/platform-browser-dynamic": "^16.2.0",
"@angular/router": "^16.2.0",
Expand All @@ -34,9 +36,7 @@
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"postcss": "^8.4.31",
"scss": "^0.2.4",
"tailwindcss": "^3.3.3",
"typescript": "~5.1.3"
}
}
6 changes: 0 additions & 6 deletions todo-app-frontend/postcss.config.js

This file was deleted.

21 changes: 17 additions & 4 deletions todo-app-frontend/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { RouterPaths } from "@enums/RouterPaths";

const routes: Routes = [];
const routes: Routes = [
{
path: "auth",
loadChildren: () => import("./pages/auth/auth.module")
.then(module => module.AuthModule)
},
{
path: RouterPaths.CURRENT_PATH,
redirectTo: "auth/login",
pathMatch: 'full'
}
];

@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
export class AppRoutingModule {
}
Loading

0 comments on commit 551c88e

Please sign in to comment.