Update folder structure and refactor

This commit is contained in:
Çetin 2021-12-29 09:28:51 +03:00
parent 01624fc767
commit 940d8ee261
35 changed files with 269 additions and 268 deletions

View File

@ -23,7 +23,6 @@ import {FloatLabelComponent} from './components/floatlabel/floatlabel.component'
import { InvalidStateComponent } from './components/invalidstate/invalidstate.component'; import { InvalidStateComponent } from './components/invalidstate/invalidstate.component';
import { TimelineComponent } from './components/timeline/timeline.component'; import { TimelineComponent } from './components/timeline/timeline.component';
import { IconsComponent } from './components/icons/icons.component'; import { IconsComponent } from './components/icons/icons.component';
import {MenusComponent} from './components/menus/menus.component';
@NgModule({ @NgModule({
imports: [ imports: [
RouterModule.forRoot([ RouterModule.forRoot([
@ -42,7 +41,7 @@ import {MenusComponent} from './components/menus/menus.component';
{path: 'uikit/panel', component: PanelsComponent}, {path: 'uikit/panel', component: PanelsComponent},
{path: 'uikit/overlay', component: OverlaysComponent}, {path: 'uikit/overlay', component: OverlaysComponent},
{path: 'uikit/media', component: MediaComponent}, {path: 'uikit/media', component: MediaComponent},
{path: 'uikit/menu', component: MenusComponent}, {path: 'uikit/menu', loadChildren: () => import('./components/menus/menus.module').then(m => m.MenusModule)},
{path: 'uikit/message', component: MessagesComponent}, {path: 'uikit/message', component: MessagesComponent},
{path: 'uikit/misc', component: MiscComponent}, {path: 'uikit/misc', component: MiscComponent},
{path: 'uikit/charts', component: ChartsComponent}, {path: 'uikit/charts', component: ChartsComponent},

View File

@ -1,4 +1,4 @@
import {Component, AfterViewInit, OnDestroy, ViewChild, Renderer2, OnInit} from '@angular/core'; import { Component, AfterViewInit, OnDestroy, Renderer2, OnInit } from '@angular/core';
import { trigger, state, style, transition, animate } from '@angular/animations'; import { trigger, state, style, transition, animate } from '@angular/animations';
import { PrimeNGConfig } from 'primeng/api'; import { PrimeNGConfig } from 'primeng/api';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';

View File

@ -120,6 +120,10 @@ import {TimelineComponent} from './components/timeline/timeline.component';
import { IconsComponent } from './components/icons/icons.component'; import { IconsComponent } from './components/icons/icons.component';
import { AppBlocksComponent } from './components/app-blocks/app-blocks.component'; import { AppBlocksComponent } from './components/app-blocks/app-blocks.component';
import { PaymentComponent} from './components/menus/payment.component';
import { ConfirmationComponent } from './components/menus/confirmation.component';
import { PersonalComponent } from './components/menus/personal.component';
import { SeatComponent } from './components/menus/seat.component';
import { CountryService } from './service/countryservice'; import { CountryService } from './service/countryservice';
import { CustomerService } from './service/customerservice'; import { CustomerService } from './service/customerservice';
import { EventService } from './service/eventservice'; import { EventService } from './service/eventservice';
@ -250,11 +254,11 @@ import {MenuService} from './service/app.menu.service';
TimelineComponent, TimelineComponent,
AppBlocksComponent, AppBlocksComponent,
BlockViewer, BlockViewer,
// SeatDemoComponent, MediaComponent,
// PaymentDemoComponent, PaymentComponent,
// PersonalDemoComponent, ConfirmationComponent,
// ConfirmationDemoComponent, PersonalComponent,
MediaComponent SeatComponent,
], ],
providers: [ providers: [
{provide: LocationStrategy, useClass: HashLocationStrategy}, {provide: LocationStrategy, useClass: HashLocationStrategy},

View File

@ -1,5 +1,4 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import {MenuModule} from 'primeng/menu';
import { MenuItem } from 'primeng/api'; import { MenuItem } from 'primeng/api';
import { Product } from '../../api/product'; import { Product } from '../../api/product';
import { ProductService } from '../../service/productservice'; import { ProductService } from '../../service/productservice';

View File

@ -6,7 +6,6 @@ import {CountryService} from '../../service/countryservice';
}) })
export class InvalidStateComponent implements OnInit { export class InvalidStateComponent implements OnInit {
countries: any[]; countries: any[];
cities: any[]; cities: any[];

View File

@ -1,7 +1,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
selector: 'app-confirmationdemo', selector: 'app-confirmation',
template: ` template: `
<div class="flex flex-column align-items-center py-5 px-3"> <div class="flex flex-column align-items-center py-5 px-3">
<i class="pi pi-fw pi-check mr-2 text-2xl"></i> <i class="pi pi-fw pi-check mr-2 text-2xl"></i>
@ -9,7 +9,7 @@ import { Component } from '@angular/core';
</div> </div>
` `
}) })
export class ConfirmationDemoComponent { export class ConfirmationComponent {
constructor() { } constructor() { }
} }

View File

@ -0,0 +1,27 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { PaymentComponent } from './payment.component';
import { SeatComponent } from './seat.component';
import { PersonalComponent } from './personal.component';
import { ConfirmationComponent } from './confirmation.component';
import { MenusComponent } from './menus.component';
@NgModule({
declarations: [],
imports: [
CommonModule,
RouterModule.forChild([
{path:'',component: MenusComponent, children:[
{path:'', redirectTo: 'personal', pathMatch: 'full'},
{path: 'personal', component: PersonalComponent},
{path: 'confirmation', component: ConfirmationComponent},
{path: 'seat', component: SeatComponent},
{path: 'payment', component: PaymentComponent}
]}
])
],
exports: [RouterModule]
})
export class MenusModule { }

View File

@ -1,7 +1,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
selector: 'app-paymentdemo', selector: 'app-payment',
template: ` template: `
<div class="flex flex-column align-items-center py-5 px-3"> <div class="flex flex-column align-items-center py-5 px-3">
<i class="pi pi-fw pi-money-bill mr-2 text-2xl"></i> <i class="pi pi-fw pi-money-bill mr-2 text-2xl"></i>
@ -9,7 +9,7 @@ import { Component } from '@angular/core';
</div> </div>
` `
}) })
export class PaymentDemoComponent{ export class PaymentComponent{
constructor() { } constructor() { }
} }

View File

@ -1,7 +1,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
selector: 'app-personaldemo', selector: 'app-personal',
template: ` template: `
<div class="flex flex-column align-items-center py-5 px-3"> <div class="flex flex-column align-items-center py-5 px-3">
<i class="pi pi-fw pi-user mr-2 text-2xl"></i> <i class="pi pi-fw pi-user mr-2 text-2xl"></i>
@ -9,7 +9,7 @@ import { Component } from '@angular/core';
</div> </div>
` `
}) })
export class PersonalDemoComponent{ export class PersonalComponent{
constructor() { } constructor() { }
} }

View File

@ -1,7 +1,7 @@
import { Component } from '@angular/core'; import { Component } from '@angular/core';
@Component({ @Component({
selector: 'app-seatdemo', selector: 'app-seat',
template: ` template: `
<div class="flex flex-column align-items-center py-5 px-3"> <div class="flex flex-column align-items-center py-5 px-3">
<i class="pi pi-fw pi-ticket mr-2 text-2xl"></i> <i class="pi pi-fw pi-ticket mr-2 text-2xl"></i>
@ -9,7 +9,7 @@ import { Component } from '@angular/core';
</div> </div>
` `
}) })
export class SeatDemoComponent{ export class SeatComponent{
constructor() { } constructor() { }
} }

View File

@ -1,27 +0,0 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';
import { PaymentDemoComponent } from './paymentdemo.component';
import { SeatDemoComponent } from './seatdemo.component';
import { PersonalDemoComponent } from './personaldemo.component';
import { ConfirmationDemoComponent } from './confirmationdemo.component';
// import { MenusDemoComponent } from '../menusdemo.component';
@NgModule({
declarations: [],
imports: [
CommonModule,
RouterModule.forChild([
// {path:'',component: MenusDemoComponent, children:[
// {path:'', redirectTo: 'personal', pathMatch: 'full'},
// {path: 'personal', component: PersonalDemoComponent},
// {path: 'confirmation', component: ConfirmationDemoComponent},
// {path: 'seat', component: SeatDemoComponent},
// {path: 'payment', component: PaymentDemoComponent}
// ]}
])
],
exports: [RouterModule]
})
export class MenudemoModule { }