wigets rename & heades locale
parent
dc54f381c5
commit
438fd96d53
|
|
@ -6,9 +6,23 @@
|
|||
<img src="">
|
||||
LOGO
|
||||
</a>
|
||||
|
||||
<div class="locales">
|
||||
<a [routerLink]="locale.link" *ngFor="let locale of locales">{{locale.name}}</a>
|
||||
</div>
|
||||
|
||||
<div class="dropdown" [class.hidden]="ddHidden" (click)="close()">
|
||||
<div class="menu">
|
||||
<div class="type" *ngFor="let locale of locales" [routerLink]="locale.link" >
|
||||
<div class="row">{{locale.name}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<pages-menu *ngIf="rootPage" [root]="rootPage" class="top-menu"></pages-menu>
|
||||
<a class="btn vnii" href="" target="_blank">!!!!!!!!!!</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,7 @@ export class HeaderComponent {
|
|||
public menuItems = <any>[];
|
||||
public loading: boolean = false;
|
||||
public error: string = '';
|
||||
public ddHidden:boolean;
|
||||
|
||||
public locales = <any>[];
|
||||
|
||||
|
|
@ -25,6 +26,7 @@ export class HeaderComponent {
|
|||
ngOnInit() {
|
||||
this.pagesService.root().subscribe(res => {
|
||||
this.locales = res.data;
|
||||
console.log(this.locales)
|
||||
});
|
||||
}
|
||||
|
||||
|
|
@ -39,4 +41,15 @@ export class HeaderComponent {
|
|||
openMobileMenu(){
|
||||
this.router.navigate([{outlets: {slider: 'pages-menu'}}], {skipLocationChange: true}).then();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
close() {
|
||||
setTimeout(() => {
|
||||
this.ddHidden = true;
|
||||
}, 10);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import {NgModule} from '@angular/core';
|
|||
import {BrowserModule} from "@angular/platform-browser";
|
||||
import {RouterModule} from "@angular/router";
|
||||
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
|
||||
import { VigetModule } from '@app/_modules/viget/viget.module';
|
||||
import { WidjetModule } from '@app/_modules/widjet/widjet.module';
|
||||
|
||||
import {PagesModule} from "@app/_modules/pages/pages.module";
|
||||
import {HeaderComponent} from "@app/_modules/layout/header/header.component";
|
||||
|
|
@ -20,7 +20,7 @@ import { RightContentComponent } from './right-content/right-content.component';
|
|||
ReactiveFormsModule,
|
||||
RouterModule,
|
||||
PagesModule,
|
||||
VigetModule
|
||||
WidjetModule
|
||||
],
|
||||
declarations: [
|
||||
GridComponent,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import {AuthGuard} from "@app/_helpers";
|
|||
import {SliderFormComponent} from "@app/_modules/objects/form/slider/slider-form.component";
|
||||
import {SliderFiltersComponent} from "@app/_modules/objects/filters/slider/slider-filters.component";
|
||||
import {FormFrameComponent} from "@app/_modules/objects/form/frame/form-frame.component";
|
||||
import { VigetModule } from '../viget/viget.module';
|
||||
import { WidjetModule } from '../widjet/widjet.module';
|
||||
|
||||
const routes: Routes = [
|
||||
{path: 'form/:target/:type', component: SliderFormComponent, outlet: 'slider', canActivate: [AuthGuard]},
|
||||
|
|
@ -27,7 +27,7 @@ const routes: Routes = [
|
|||
RouterModule.forChild(routes),
|
||||
FormFieldsModule,
|
||||
FilterFieldsModule,
|
||||
VigetModule
|
||||
WidjetModule
|
||||
],
|
||||
declarations: [
|
||||
ObjectFormComponent,
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import {SwiperModule} from "swiper/angular";
|
|||
import {PagesTreeComponent} from "@app/_modules/pages/tree/pages-tree.component";
|
||||
import {PagesTreeItemComponent} from "@app/_modules/pages/tree/item/pages-tree-item.component";
|
||||
import {SortablejsModule} from "ngx-sortablejs";
|
||||
import { VigetModule } from '../viget/viget.module';
|
||||
import { WidjetModule } from '../widjet/widjet.module';
|
||||
import { SliderMenuComponent } from './menu/slider-menu/slider-menu.component';
|
||||
|
||||
@NgModule({
|
||||
|
|
@ -30,7 +30,7 @@ import { SliderMenuComponent } from './menu/slider-menu/slider-menu.component';
|
|||
PaginationModule,
|
||||
SwiperModule,
|
||||
SortablejsModule,
|
||||
VigetModule
|
||||
WidjetModule
|
||||
],
|
||||
declarations: [
|
||||
PagesMenuComponent,
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import {FormsModule, ReactiveFormsModule} from "@angular/forms";
|
|||
import {SwiperModule} from "swiper/angular";
|
||||
|
||||
import {ObjectsModule} from "@app/_modules/objects/objects.module";
|
||||
import { VigetModule } from '@app/_modules/viget/viget.module';
|
||||
import { WidjetModule } from '@app/_modules/widjet/widjet.module';
|
||||
|
||||
import {PageSectionsComponent} from "@app/_modules/pages/sections/list/page-sections.component";
|
||||
import {PageSectionComponent} from "@app/_modules/pages/sections/item/page-section.component";
|
||||
|
|
@ -36,7 +36,7 @@ import {MemberSectionListComponent} from "@app/_modules/pages/sections/types/bas
|
|||
ReactiveFormsModule,
|
||||
ObjectsModule,
|
||||
SwiperModule,
|
||||
VigetModule
|
||||
WidjetModule
|
||||
],
|
||||
declarations: [
|
||||
PageMenuComponent,
|
||||
|
|
|
|||
|
|
@ -80,8 +80,5 @@ export class PagesTreeComponent {
|
|||
this.listsService.changed.next(event);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 126 B After Width: | Height: | Size: 126 B |
|
|
@ -28,6 +28,6 @@ import { SwitchComponent } from './switch/switch.component';
|
|||
SwitchComponent
|
||||
]
|
||||
})
|
||||
export class VigetModule {
|
||||
export class WidjetModule {
|
||||
|
||||
}
|
||||
|
|
@ -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: 'w2C4NlaPEi1cCamm45N43WNFgkzAn1Wp6TdwBElh',
|
||||
project: null
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue