From d8ed1fa618f0470a9e5b7773c95bd849e46505b9 Mon Sep 17 00:00:00 2001 From: panabonic Date: Tue, 14 Nov 2023 16:02:09 +0300 Subject: [PATCH] navigation update --- .../sections/item/page-section.component.html | 5 +- .../pages/sections/page-sections.module.ts | 48 ++++++++++--------- .../basic/cards/cards-section.component.html | 1 + .../basic/cards/cards-section.component.scss | 0 .../basic/cards/cards-section.component.ts | 32 +++++++++++++ src/environments/environment.ts | 6 +-- 6 files changed, 64 insertions(+), 28 deletions(-) create mode 100644 src/app/_modules/pages/sections/types/basic/cards/cards-section.component.html create mode 100644 src/app/_modules/pages/sections/types/basic/cards/cards-section.component.scss create mode 100644 src/app/_modules/pages/sections/types/basic/cards/cards-section.component.ts diff --git a/src/app/_modules/pages/sections/item/page-section.component.html b/src/app/_modules/pages/sections/item/page-section.component.html index 3fe3261..f1968c3 100644 --- a/src/app/_modules/pages/sections/item/page-section.component.html +++ b/src/app/_modules/pages/sections/item/page-section.component.html @@ -14,9 +14,10 @@ - + +

section {{type?.name}} is undefined

diff --git a/src/app/_modules/pages/sections/page-sections.module.ts b/src/app/_modules/pages/sections/page-sections.module.ts index 37a5a0a..b6caa7c 100644 --- a/src/app/_modules/pages/sections/page-sections.module.ts +++ b/src/app/_modules/pages/sections/page-sections.module.ts @@ -27,6 +27,7 @@ import {PageMenuComponent} from "@app/_modules/pages/sections/menu/page-menu.com import {ImageGroupSectionComponent} from "@app/_modules/pages/sections/types/basic/image-group/image-group-section.component"; import {MemberSectionItemComponent} from "@app/_modules/pages/sections/types/basic/member/item/member-section-item.component"; import {MemberSectionListComponent} from "@app/_modules/pages/sections/types/basic/member/list/member-section-list.component"; +import {CardsSectionComponent} from "@app/_modules/pages/sections/types/basic/cards/cards-section.component"; @NgModule({ @@ -38,29 +39,30 @@ import {MemberSectionListComponent} from "@app/_modules/pages/sections/types/bas SwiperModule, VigetModule ], - declarations: [ - PageMenuComponent, - PageSectionsComponent, - PageSectionComponent, - HeaderSectionComponent, - TextSectionComponent, - AddSectionComponent, - ImagesSectionComponent, - DocumentsSectionComponent, - ListSectionComponent, - HtmlSectionComponent, - VideoSectionComponent, - ButtonSectionComponent, - IframeSectionComponent, - FeedbackSectionComponent, - ContactSectionComponent, - MapsSectionComponent, - MemberSectionComponent, - ImageGroupSectionComponent, - DocumentSectionComponent, - MemberSectionItemComponent, - MemberSectionListComponent, - ], + declarations: [ + PageMenuComponent, + PageSectionsComponent, + PageSectionComponent, + HeaderSectionComponent, + TextSectionComponent, + AddSectionComponent, + ImagesSectionComponent, + DocumentsSectionComponent, + ListSectionComponent, + HtmlSectionComponent, + VideoSectionComponent, + ButtonSectionComponent, + IframeSectionComponent, + FeedbackSectionComponent, + ContactSectionComponent, + MapsSectionComponent, + MemberSectionComponent, + ImageGroupSectionComponent, + DocumentSectionComponent, + MemberSectionItemComponent, + MemberSectionListComponent, + CardsSectionComponent, + ], exports: [ PageSectionsComponent, ImagesSectionComponent diff --git a/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.html b/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.html new file mode 100644 index 0000000..12e03d6 --- /dev/null +++ b/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.html @@ -0,0 +1 @@ +

cards section {{type?.name}}

diff --git a/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.scss b/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.ts b/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.ts new file mode 100644 index 0000000..1a56bc8 --- /dev/null +++ b/src/app/_modules/pages/sections/types/basic/cards/cards-section.component.ts @@ -0,0 +1,32 @@ +import {Component, Input} from '@angular/core'; +import {ObjectsService} from "@app/_services"; + +@Component({ + selector: 'cards-section', + templateUrl: 'cards-section.component.html', + styleUrls: ['cards-section.component.scss'] +}) +export class CardsSectionComponent { + @Input() section: any; + + constructor(private objectsService: ObjectsService) { + } + + + + get type() { + return this.objectsService.getValue(this.section, 'cards-section-type'); + } + /* + get title() { + return this.objectsService.getValue(this.section, 'button-title'); + } + get targetSelf() { + return this.objectsService.getValue(this.section, 'target-self'); + } + */ + + ngOnInit() { + } +} + diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 97f5634..28d9f5f 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,9 +4,9 @@ export const environment = { production: false, - apiUrl: 'http://api.vniigazv2.lc', - clientId: 4, - clientSecret: 'QC09jOPEU7mpfFerpLyAJRshFUW1T28GfhsYzJHc', + apiUrl: 'http://api.nircms.lc', + clientId: 2, + clientSecret: 'Q0p5wSWfodfhFdQ2xHpzFOBuQEJy090ho10Deh4O', project: null };