Compare commits

..

5 Commits

Author SHA1 Message Date
2871505591 build: add package
All checks were successful
Build and Deploy Angular App / build (push) Successful in 49s
2024-08-24 02:23:39 +03:00
93929633d6 build: change version 2024-08-23 23:58:06 +03:00
9b7b4aba50 feat: add scroll style 2024-08-23 23:57:54 +03:00
ef0de7f709 feat: add header 2024-08-23 23:57:14 +03:00
35217726b0 refactor: remove log 2024-08-23 23:56:21 +03:00
8 changed files with 41 additions and 6 deletions

6
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "frontend", "name": "frontend",
"version": "1.0.0-b0", "version": "1.0.0-b2",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "frontend", "name": "frontend",
"version": "1.0.0-b0", "version": "1.0.0-b2",
"dependencies": { "dependencies": {
"@angular/animations": "^18.2.1", "@angular/animations": "^18.2.1",
"@angular/cdk": "~18.2.1", "@angular/cdk": "~18.2.1",
@ -35,6 +35,7 @@
"karma-coverage": "~2.2.1", "karma-coverage": "~2.2.1",
"karma-jasmine": "~5.1.0", "karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0", "karma-jasmine-html-reporter": "~2.1.0",
"terser-webpack-plugin": "^5.3.10",
"typescript": "^5.5.4" "typescript": "^5.5.4"
} }
}, },
@ -12373,6 +12374,7 @@
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz", "resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz",
"integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==", "integrity": "sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w==",
"dev": true, "dev": true,
"license": "MIT",
"dependencies": { "dependencies": {
"@jridgewell/trace-mapping": "^0.3.20", "@jridgewell/trace-mapping": "^0.3.20",
"jest-worker": "^27.4.5", "jest-worker": "^27.4.5",

View File

@ -1,6 +1,6 @@
{ {
"name": "frontend", "name": "frontend",
"version": "1.0.0-b0", "version": "1.0.0-b2",
"scripts": { "scripts": {
"ng": "ng", "ng": "ng",
"start": "ng serve", "start": "ng serve",
@ -37,6 +37,7 @@
"karma-coverage": "~2.2.1", "karma-coverage": "~2.2.1",
"karma-jasmine": "~5.1.0", "karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0", "karma-jasmine-html-reporter": "~2.1.0",
"terser-webpack-plugin": "^5.3.10",
"typescript": "^5.5.4" "typescript": "^5.5.4"
} }
} }

View File

@ -5,12 +5,14 @@ import localeRu from '@angular/common/locales/ru';
import {registerLocaleData} from '@angular/common'; import {registerLocaleData} from '@angular/common';
import {FocusNextDirective} from "@/directives/focus-next.directive"; import {FocusNextDirective} from "@/directives/focus-next.directive";
import {TokenRefreshService} from "@service/token-refresh.service"; import {TokenRefreshService} from "@service/token-refresh.service";
import {HeaderComponent} from "@component/common/header/header.component";
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
standalone: true, standalone: true,
imports: [RouterOutlet, FooterComponent, FocusNextDirective], imports: [RouterOutlet, FooterComponent, FocusNextDirective, HeaderComponent],
template: ` template: `
<app-header/>
<router-outlet/> <router-outlet/>
<app-footer/>` <app-footer/>`
}) })

View File

@ -0,0 +1,9 @@
mat-toolbar a {
color: inherit;
cursor: pointer;
text-decoration: none;
}
mat-toolbar a:hover {
text-decoration: underline;
}

View File

@ -0,0 +1,3 @@
<mat-toolbar style="justify-content: space-between;">
<a href="/" style="color: inherit;">Winsomnia</a>
</mat-toolbar>

View File

@ -0,0 +1,18 @@
import { Component } from '@angular/core';
import {MatToolbar} from "@angular/material/toolbar";
import {MatAnchor, MatButton} from "@angular/material/button";
@Component({
selector: 'app-header',
standalone: true,
imports: [
MatToolbar,
MatButton,
MatAnchor
],
templateUrl: './header.component.html',
styleUrl: './header.component.css'
})
export class HeaderComponent {
}

View File

@ -67,8 +67,6 @@ export class TabStorageComponent {
selectedData.type = type; selectedData.type = type;
console.log(selectedData);
localStorage.setItem(this.dataName, JSON.stringify(selectedData)); localStorage.setItem(this.dataName, JSON.stringify(selectedData));
} }

View File

@ -1,6 +1,8 @@
html, body { html, body {
height: 100%; height: 100%;
background-color: #1A2026 !important; background-color: #1A2026 !important;
scrollbar-color: #35D073 #231F20 !important;
scrollbar-width: thin !important;
} }
body { body {