style & bugfixes

This commit is contained in:
Chneemann 2024-04-01 20:25:28 +02:00
parent a802ed094b
commit 3f5e92eea9
5 changed files with 16 additions and 32 deletions

View file

@ -20,18 +20,11 @@
"outputPath": "dist/join", "outputPath": "dist/join",
"index": "src/index.html", "index": "src/index.html",
"browser": "src/main.ts", "browser": "src/main.ts",
"polyfills": [ "polyfills": ["zone.js"],
"zone.js"
],
"tsConfig": "tsconfig.app.json", "tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss", "inlineStyleLanguage": "scss",
"assets": [ "assets": ["src/favicon.ico", "src/assets"],
"src/favicon.ico", "styles": ["src/styles.scss"],
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": [] "scripts": []
}, },
"configurations": { "configurations": {
@ -39,13 +32,13 @@
"budgets": [ "budgets": [
{ {
"type": "initial", "type": "initial",
"maximumWarning": "500kb", "maximumWarning": "1mb",
"maximumError": "1mb" "maximumError": "2mb"
}, },
{ {
"type": "anyComponentStyle", "type": "anyComponentStyle",
"maximumWarning": "2kb", "maximumWarning": "4kb",
"maximumError": "4kb" "maximumError": "8kb"
} }
], ],
"outputHashing": "all" "outputHashing": "all"
@ -79,19 +72,11 @@
"test": { "test": {
"builder": "@angular-devkit/build-angular:karma", "builder": "@angular-devkit/build-angular:karma",
"options": { "options": {
"polyfills": [ "polyfills": ["zone.js", "zone.js/testing"],
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json", "tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss", "inlineStyleLanguage": "scss",
"assets": [ "assets": ["src/favicon.ico", "src/assets"],
"src/favicon.ico", "styles": ["src/styles.scss"],
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": [] "scripts": []
} }
} }

View file

@ -7,7 +7,6 @@ import { SidebarMobileComponent } from './shared/components/sidebar/sidebar-mobi
import { ContactEditComponent } from './components/contacts/contact-edit/contact-edit.component'; import { ContactEditComponent } from './components/contacts/contact-edit/contact-edit.component';
import { CommonModule } from '@angular/common'; import { CommonModule } from '@angular/common';
import { SharedService } from './services/shared.service'; import { SharedService } from './services/shared.service';
import { Observable } from 'rxjs';
import { ContactDeleteComponent } from './components/contacts/contact-delete/contact-delete.component'; import { ContactDeleteComponent } from './components/contacts/contact-delete/contact-delete.component';
@Component({ @Component({
@ -40,9 +39,6 @@ export class AppComponent {
} }
getUserIdInLocalStorage() { getUserIdInLocalStorage() {
localStorage.setItem( localStorage.setItem('currentUser', JSON.stringify('5EX7gnwPPGEDbN186Rdw'));
'currentUserId',
JSON.stringify('5EX7gnwPPGEDbN186Rdw')
);
} }
} }

View file

@ -57,7 +57,6 @@ export class ContactFormComponent implements OnChanges {
} }
deleteContact() { deleteContact() {
this.userService.deleteUser(this.currentUserId);
this.sharedService.isDeleteContactDialogOpen = false; this.sharedService.isDeleteContactDialogOpen = false;
this.sharedService.isAnyDialogOpen = false; this.sharedService.isAnyDialogOpen = false;
} }

View file

@ -41,7 +41,7 @@ export class UserService implements OnDestroy {
getCurrentUserId() { getCurrentUserId() {
let currentUser = localStorage.getItem('currentUser'); let currentUser = localStorage.getItem('currentUser');
if (currentUser !== null) { if (currentUser !== null) {
return JSON.parse(currentUser)[0].id; return JSON.parse(currentUser);
} }
} }

View file

@ -4,6 +4,10 @@
font-family: "Inter", sans-serif; font-family: "Inter", sans-serif;
} }
body {
background-color: var(--bgContent);
}
:root { :root {
--bgSidebar: #2b3647; --bgSidebar: #2b3647;
--bgContent: #f6f7f8; --bgContent: #f6f7f8;