From 97bee863425e3cc7a656424bb8f3095d1708d874 Mon Sep 17 00:00:00 2001 From: Boris Voropaev Date: Tue, 26 Dec 2023 16:01:21 +0300 Subject: [PATCH] bugfix --- .../administrate-site-pages.component.ts | 5 +- .../login/auth-form-login.component.html | 2 +- src/app/_modules/pages/page/page.component.ts | 3 +- .../publication-page.component.html | 6 ++ .../publication/publication-page.component.ts | 9 ++- .../widjet/locale/locale.component.html | 2 +- .../widjet/locale/locale.component.ts | 10 ++- src/app/_services/licence.service.ts | 4 +- src/app/_services/pages.service.ts | 5 +- .../layout/footer/footer.component.html | 8 +-- .../layout/header/header.component.html | 2 +- .../layout/jumbotron/jumbotron.component.html | 10 +-- .../layout/jumbotron/jumbotron.component.ts | 33 +++++----- .../slider-menu/slider-menu.component.html | 3 + src/vniigaz-v2/css/_basics.scss | 24 +------ src/vniigaz-v2/css/_grid.scss | 13 ++++ src/vniigaz-v2/css/_main-menu.scss | 16 ++++- src/vniigaz-v2/css/_pages-section.scss | 7 ++ src/vniigaz-v2/images/logo_vniigaz.svg | 66 +++++++++++++++++++ 19 files changed, 169 insertions(+), 59 deletions(-) create mode 100644 src/vniigaz-v2/images/logo_vniigaz.svg diff --git a/src/app/_modules/administration/site-pages/administrate-site-pages.component.ts b/src/app/_modules/administration/site-pages/administrate-site-pages.component.ts index 22442a7..26798d4 100644 --- a/src/app/_modules/administration/site-pages/administrate-site-pages.component.ts +++ b/src/app/_modules/administration/site-pages/administrate-site-pages.component.ts @@ -2,6 +2,7 @@ import {Component} from '@angular/core'; import {PagesService} from "@app/_services/pages.service"; import { FormsService } from '@app/_services'; import {LicenceService} from "@app/_services/licence.service"; +import { DialogService } from '@app/_services/dialog.service'; @Component({ selector: 'administrate-site-pages', @@ -9,7 +10,7 @@ import {LicenceService} from "@app/_services/licence.service"; styleUrls: ['administrate-site-pages.component.scss'] }) export class AdministrateSitePagesComponent { - constructor(private pagesService: PagesService, private formsService: FormsService, public licenceService: LicenceService) { + constructor(private pagesService: PagesService, private formsService: FormsService, public licenceService: LicenceService, private dialog: DialogService) { } get isLicenceActive() { @@ -33,7 +34,7 @@ export class AdministrateSitePagesComponent { addLocale() { if (this.isMultilang) this.formsService.createModel('localePage', null, 'pages-tree-root'); - else alert('Отсутствует необходимая опция'); + else this.dialog.alert('Данная опция не входит в Вашу лицензию. Для включения опции обратитесь в службу поддержки НИР (+7 499 490 04 65, help@nirgroup.ru)'); } toggle() { diff --git a/src/app/_modules/auth/forms/login/auth-form-login.component.html b/src/app/_modules/auth/forms/login/auth-form-login.component.html index 5984341..47ef81f 100644 --- a/src/app/_modules/auth/forms/login/auth-form-login.component.html +++ b/src/app/_modules/auth/forms/login/auth-form-login.component.html @@ -18,7 +18,7 @@
- +
diff --git a/src/app/_modules/pages/page/page.component.ts b/src/app/_modules/pages/page/page.component.ts index c681756..a42f1a1 100644 --- a/src/app/_modules/pages/page/page.component.ts +++ b/src/app/_modules/pages/page/page.component.ts @@ -49,7 +49,7 @@ export class PageComponent { ngOnDestroy() { this.routeSubscription?.unsubscribe(); - this.listSubscription.unsubscribe() + this.listSubscription?.unsubscribe() } onNavigationEnd(event: NavigationEnd) { @@ -65,6 +65,7 @@ export class PageComponent { this.loading = true; let include = [ 'parents.children', + 'parents.picture', 'children', 'sections.type', 'sections.groups.fields.value', diff --git a/src/app/_modules/publications/publication/publication-page.component.html b/src/app/_modules/publications/publication/publication-page.component.html index 683ffb2..c360a6f 100644 --- a/src/app/_modules/publications/publication/publication-page.component.html +++ b/src/app/_modules/publications/publication/publication-page.component.html @@ -2,9 +2,15 @@

{{page.name}}

+
+ + + Назад + + diff --git a/src/app/_modules/publications/publication/publication-page.component.ts b/src/app/_modules/publications/publication/publication-page.component.ts index 148dbb9..33bca66 100644 --- a/src/app/_modules/publications/publication/publication-page.component.ts +++ b/src/app/_modules/publications/publication/publication-page.component.ts @@ -1,4 +1,5 @@ import {Component, Input} from '@angular/core'; +import { Router } from '@angular/router'; @Component({ selector: 'publication-page', @@ -9,13 +10,19 @@ export class PublicationPageComponent { @Input() page: any; @Input() editMode: boolean; - constructor() { + constructor( + private router: Router + ) { } get posters() { return this.page.posters?.data; } + back(): void { + window.history.back(); +} + ngOnInit() { } } diff --git a/src/app/_modules/widjet/locale/locale.component.html b/src/app/_modules/widjet/locale/locale.component.html index 4ac9254..9c9cc06 100644 --- a/src/app/_modules/widjet/locale/locale.component.html +++ b/src/app/_modules/widjet/locale/locale.component.html @@ -6,7 +6,7 @@ \ No newline at end of file diff --git a/src/vniigaz-v2/css/_basics.scss b/src/vniigaz-v2/css/_basics.scss index 44541e9..c4544e7 100644 --- a/src/vniigaz-v2/css/_basics.scss +++ b/src/vniigaz-v2/css/_basics.scss @@ -311,27 +311,9 @@ header{ width:27px; object-fit: cover; border: 1px solid lightgray; - } - } -} - -footer{ - .locale{ - position: relative; - .locale-btn{ - display: inline-flex; - } - .dropdown{ - top: auto; - left: -96px; - bottom: 27px; - - } - img{ - height:18px; - width:27px; - object-fit: cover; - border: 1px solid lightgray; + &:hover{ + border-color: var(--prime-act); + } } } } diff --git a/src/vniigaz-v2/css/_grid.scss b/src/vniigaz-v2/css/_grid.scss index 842749b..0ffa652 100644 --- a/src/vniigaz-v2/css/_grid.scss +++ b/src/vniigaz-v2/css/_grid.scss @@ -59,6 +59,8 @@ jumbotron{ .jumbotron-content-center{ align-self: center; align-items: center; + max-width: 100%; + width: 768px; h1{ font-size: 80px; @@ -192,6 +194,8 @@ footer{ &>div{ padding-bottom: 40px; + max-width: fit-content; + flex-basis: 400px; } >div{ display: block; @@ -222,6 +226,12 @@ footer{ font-style: normal; font-weight: 400; margin: 40px 0; + .nir a{ + color: #6C6C6C; + &:hover{ + color: #7c7c7c; + } + } } } } @@ -256,6 +266,9 @@ pages-menu-item{ @media screen and (max-width: 1330px){ .footer{ padding: 40px 24px; + .footer-login{ + display: none; + } } .space{ .layout-corral{ diff --git a/src/vniigaz-v2/css/_main-menu.scss b/src/vniigaz-v2/css/_main-menu.scss index b3bd5cc..e51a7c9 100644 --- a/src/vniigaz-v2/css/_main-menu.scss +++ b/src/vniigaz-v2/css/_main-menu.scss @@ -163,7 +163,9 @@ slider[side="left"]{ } .btn-menu{ - display: block; + display: flex; + flex-direction: column; + gap:40px; padding: 20px 0 0 ; border-top: 1px solid var(--prime); a{ @@ -174,6 +176,18 @@ slider[side="left"]{ letter-spacing: 0.24px; color: #FFF; } + locale{ + img{ + width: 27px; + } + .dropdown{ + left: 48px; + top:-24px; + img{ + border: 1px solid var(--second-dis); + } + } + } } } diff --git a/src/vniigaz-v2/css/_pages-section.scss b/src/vniigaz-v2/css/_pages-section.scss index 6dd85f2..e63796a 100644 --- a/src/vniigaz-v2/css/_pages-section.scss +++ b/src/vniigaz-v2/css/_pages-section.scss @@ -443,6 +443,13 @@ publication-page { flex-direction: column; gap: $p; }; + + .publication-page-back { + display: inline-flex; + align-items: center; + gap: 8px; + margin-top: 24px; + } } diff --git a/src/vniigaz-v2/images/logo_vniigaz.svg b/src/vniigaz-v2/images/logo_vniigaz.svg new file mode 100644 index 0000000..5ee4e80 --- /dev/null +++ b/src/vniigaz-v2/images/logo_vniigaz.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +