navigation update
parent
dc54f381c5
commit
d8ed1fa618
|
|
@ -14,9 +14,10 @@
|
|||
<contact-section [section]="section" *ngSwitchCase="'page-section-contacts'"></contact-section>
|
||||
<feedback-section [section]="section" *ngSwitchCase="'page-section-feedback'"></feedback-section>
|
||||
<maps-section [section]="section" *ngSwitchCase="'page-section-maps'"></maps-section>
|
||||
<member-section [section]="section" *ngSwitchCase="'page-section-list-members'" [page]="page" [editMode]="editMode"></member-section>
|
||||
<cards-section [section]="section" *ngSwitchCase="'page-section-cards'"></cards-section>
|
||||
<!--member-section [section]="section" *ngSwitchCase="'page-section-list-members'" [page]="page" [editMode]="editMode"></member-section>
|
||||
<image-group-section [section]="section" *ngSwitchCase="'page-section-image-group'" [page]="page" [editMode]="editMode"></image-group-section>
|
||||
<document-section [section]="section" *ngSwitchCase="'page-section-document'"></document-section>
|
||||
<document-section [section]="section" *ngSwitchCase="'page-section-document'"></document-section-->
|
||||
<p *ngSwitchDefault>section {{type?.name}} is undefined</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
<p>cards section {{type?.name}}</p>
|
||||
|
|
@ -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() {
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue