Beispiel #1
0
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            imports: [
                platform_browser_1.BrowserModule,
                http_1.HttpModule,
                router_1.RouterModule.forRoot([
                    { path: "", redirectTo: "", pathMatch: "full" },
                    { path: "login", component: loginController_1.loginController },
                    { path: "home", component: homeController_1.homeController },
                    { path: "**", component: errorController_1.errorController }
                ]),
                core_2.AgmCoreModule.forRoot({
                    apiKey: 'AIzaSyAYQqheDArL8eDL7vXcU-HWD7-BAsp6hYA'
                })
            ],
            declarations: [
                loginController_1.loginController,
                homeController_1.homeController,
                errorController_1.errorController
            ],
            bootstrap: [
                loginController_1.loginController
            ]
        }), 
        __metadata('design:paramtypes', [])
    ], AppModule);
    return AppModule;
}());
Beispiel #2
0
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            declarations: [
                app_component_1.AppComponent,
                about_component_1.AboutComponent,
                repo_browser_component_1.RepoBrowserComponent,
                repo_list_component_1.RepoListComponent,
                repo_detail_component_1.RepoDetailComponent,
                home_component_1.HomeComponent,
                contact_component_1.ContactComponent
            ],
            imports: [
                platform_browser_1.BrowserModule,
                forms_1.FormsModule,
                forms_1.ReactiveFormsModule,
                http_1.HttpModule,
                router_1.RouterModule.forRoot(app_routes_1.rootRouterConfig, { useHash: true })
            ],
            providers: [
                github_service_1.GithubService
            ],
            bootstrap: [app_component_1.AppComponent]
        })
    ], AppModule);
    return AppModule;
}());
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            imports: [
                platform_browser_1.BrowserModule,
                router_1.RouterModule.forRoot([
                    {
                        path: 'about',
                        component: about_component_1.AboutComponent
                    },
                    {
                        path: 'home',
                        component: home_component_1.HomeComponent
                    }
                ])
            ],
            declarations: [
                app_component_1.AppComponent,
                navbar_component_1.NavbarComponent,
                jumbotron_component_1.JumbotronComponent,
                home_component_1.HomeComponent,
                about_component_1.AboutComponent
            ],
            bootstrap: [
                app_component_1.AppComponent
            ]
        }), 
        __metadata('design:paramtypes', [])
    ], AppModule);
    return AppModule;
}());
Beispiel #4
0
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            imports: [platform_browser_1.BrowserModule, http_1.HttpModule, forms_1.FormsModule, ng_bootstrap_1.NgbModule.forRoot(),
                router_1.RouterModule.forRoot([
                    { path: 'gastos', component: gastos_component_1.GastosComponent },
                    { path: 'compras', component: compras_component_1.ComprasComponent },
                    { path: '', component: gastos_component_1.GastosComponent }
                ])],
            providers: [{ provide: common_1.LocationStrategy, useClass: common_1.HashLocationStrategy }],
            declarations: [app_component_1.AppComponent, gastos_component_1.GastosComponent, deudasMes_component_1.DeudasMesComponent, calendario_component_1.CalendarioComponent, compras_component_1.ComprasComponent, editarPago_component_1.EditarPagoComponent, home_component_1.HomeComponent,
                framework.ProgresoModal, framework.ArchivoUploader,
                ng2_file_upload_1.FileSelectDirective,
                spinner.RotatingPlaneComponent,
                spinner.DoubleBounceComponent,
                spinner.WaveComponent,
                spinner.WanderingCubesComponent,
                spinner.PulseComponent,
                spinner.ChasingDotsComponent,
                spinner.CircleComponent,
                spinner.ThreeBounceComponent,
                spinner.CubeGridComponent,
                spinner.WordPressComponent,
                spinner.FadingCircleComponent,
                spinner.FoldingCubeComponent],
            entryComponents: [editarPago_component_1.EditarPagoComponent, framework.ProgresoModal, framework.ArchivoUploader],
            bootstrap: [app_component_1.AppComponent],
        }), 
        __metadata('design:paramtypes', [])
    ], AppModule);
    return AppModule;
}());
export var AppModule = (function () {
    function AppModule() {
    }
    AppModule.decorators = [
        { type: NgModule, args: [{
                    imports: [BrowserModule, StoreModule, AdminModule,
                        RouterModule.forRoot([
                            {
                                path: "store", component: StoreComponent,
                                canActivate: [StoreFirstGuard]
                            },
                            {
                                path: "cart", component: CartDetailComponent,
                                canActivate: [StoreFirstGuard]
                            },
                            {
                                path: "checkout", component: CheckoutComponent,
                                canActivate: [StoreFirstGuard]
                            },
                            {
                                path: "admin",
                                children: [
                                    { path: "auth", component: AuthComponent },
                                    {
                                        path: "main", component: AdminComponent,
                                        canActivate: [AuthGuard],
                                        children: [
                                            {
                                                path: "products/:mode/:id",
                                                component: ProductEditorComponent
                                            },
                                            {
                                                path: "products/:mode",
                                                component: ProductEditorComponent
                                            },
                                            { path: "products", component: ProductTableComponent },
                                            { path: "orders", component: OrderTableComponent },
                                            { path: "**", redirectTo: "products" }
                                        ]
                                    },
                                    { path: "**", redirectTo: "auth" }
                                ],
                                //loadChildren: "app/admin/admin.module#AdminModule",
                                canActivate: [StoreFirstGuard]
                            },
                            { path: "**", redirectTo: "/store" }
                        ])],
                    providers: [StoreFirstGuard],
                    declarations: [AppComponent],
                    bootstrap: [AppComponent]
                },] },
    ];
    /** @nocollapse */
    AppModule.ctorParameters = [];
    return AppModule;
}());
var AppRoutingModule = (function () {
    function AppRoutingModule() {
    }
    AppRoutingModule = __decorate([
        core_1.NgModule({
            imports: [router_1.RouterModule.forRoot(routes)],
            exports: [router_1.RouterModule]
        })
    ], AppRoutingModule);
    return AppRoutingModule;
}());
var ImprovPlusRoutingModule = (function () {
    function ImprovPlusRoutingModule() {
    }
    ImprovPlusRoutingModule = __decorate([
        core_1.NgModule({
            imports: [router_1.RouterModule.forChild(routes)],
            exports: [router_1.RouterModule]
        })
    ], ImprovPlusRoutingModule);
    return ImprovPlusRoutingModule;
}());
var AppRoutingModule = (function () {
    function AppRoutingModule() {
    }
    AppRoutingModule = __decorate([
        core_1.NgModule({
            imports: [router_1.RouterModule.forRoot(routes)],
            exports: [router_1.RouterModule]
        }), 
        __metadata('design:paramtypes', [])
    ], AppRoutingModule);
    return AppRoutingModule;
}());
var DeviceRoutingModule = (function () {
    function DeviceRoutingModule() {
    }
    DeviceRoutingModule = __decorate([
        core_1.NgModule({
            imports: [
                router_1.RouterModule.forChild(routes)
            ],
            exports: [router_1.RouterModule]
        })
    ], DeviceRoutingModule);
    return DeviceRoutingModule;
}());
var ClienteRoutingModule = /** @class */ (function () {
    function ClienteRoutingModule() {
    }
    ClienteRoutingModule = __decorate([
        core_1.NgModule({
            imports: [
                router_1.RouterModule.forChild(clienteRoutes)
            ],
            exports: [router_1.RouterModule]
        })
    ], ClienteRoutingModule);
    return ClienteRoutingModule;
}());
var AppRoutingModule = /** @class */ (function () {
    function AppRoutingModule() {
    }
    AppRoutingModule = __decorate([
        NgModule({
            imports: [
                RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }),
                IonicStorageModule.forRoot()
            ],
            exports: [RouterModule]
        })
    ], AppRoutingModule);
    return AppRoutingModule;
}());
var AboutRoutingModule = (function () {
    function AboutRoutingModule() {
    }
    AboutRoutingModule = __decorate([
        core_1.NgModule({
            imports: [router_1.RouterModule.forChild([
                    { path: 'about', component: about_component_1.AboutComponent }
                ])],
            exports: [router_1.RouterModule]
        }), 
        __metadata('design:paramtypes', [])
    ], AboutRoutingModule);
    return AboutRoutingModule;
}());
var ServicesRoutingModule = (function () {
    function ServicesRoutingModule() {
    }
    ServicesRoutingModule = __decorate([
        core_1.NgModule({
            imports: [router_1.RouterModule.forChild([
                    { path: 'services', component: services_component_1.ServicesComponent }
                ])],
            exports: [router_1.RouterModule]
        }), 
        __metadata('design:paramtypes', [])
    ], ServicesRoutingModule);
    return ServicesRoutingModule;
}());
var DashboardModule = (function () {
    function DashboardModule() {
    }
    DashboardModule = __decorate([
        core_1.NgModule({
            imports: [
                router_1.RouterModule.forChild(dashboard_routes_1.MODULE_ROUTES)
            ],
            declarations: [dashboard_routes_1.MODULE_COMPONENTS]
        }), 
        __metadata('design:paramtypes', [])
    ], DashboardModule);
    return DashboardModule;
}());
var DetailPageModule = /** @class */ (function () {
    function DetailPageModule() {
    }
    DetailPageModule = __decorate([
        NgModule({
            imports: [
                CommonModule,
                FormsModule,
                IonicModule,
                RouterModule.forChild(routes)
            ],
            declarations: [DetailPage]
        })
    ], DetailPageModule);
    return DetailPageModule;
}());
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            imports: [platform_browser_1.BrowserModule, forms_1.FormsModule, http_1.HttpModule,
                // InMemoryWebApiModule.forRoot(InMemoryDataService), //for api simulation
                router_1.RouterModule.forRoot(router_instances)],
            declarations: [app_component_1.AppComponent, main_component_1.MainComponent, hero_detail_component_1.HeroDetailComponent, two_component_1.TwoComponent, one_component_1.OneComponent],
            providers: [hero_service_1.HeroService],
            bootstrap: [app_component_1.AppComponent]
        }), 
        __metadata('design:paramtypes', [])
    ], AppModule);
    return AppModule;
}());
var FavoritesPageModule = /** @class */ (function () {
    function FavoritesPageModule() {
    }
    FavoritesPageModule = __decorate([
        NgModule({
            imports: [
                CommonModule,
                FormsModule,
                IonicModule,
                RouterModule.forChild(routes)
            ],
            declarations: [FavoritesPage]
        })
    ], FavoritesPageModule);
    return FavoritesPageModule;
}());
Beispiel #18
0
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            imports: [
                platform_browser_1.BrowserModule,
                forms_1.FormsModule,
                http_1.HttpModule,
                forms_1.ReactiveFormsModule,
                router_1.RouterModule.forRoot(routes_1.appRoutes)],
            declarations: [
                events_app_component_1.EventsAppComponent,
                index_1.EventsListComponent,
                index_1.EventThumbnailComponent,
                navbar_component_1.NavBarComponent,
                index_1.EventDetailsComponent,
                index_1.CreateEventComponent,
                index_1.CreateSessionComponent,
                _404_component_1.Error404Component,
                index_1.SessionListComponent,
                index_2.CollapsibleWellComponent,
                index_2.SimpleModalComponent,
                index_1.UpvoteComponent,
                index_2.ModalTriggerDirective,
                index_1.LocationValidator,
                index_1.DurationPipe],
            providers: [
                index_1.EventService,
                { provide: index_2.TOASTR_TOKEN, useValue: toastr },
                { provide: index_2.JQ_TOKEN, useValue: jQuery },
                index_1.EventResolver,
                index_1.EventListResolver,
                index_1.VoterService,
                auth_service_1.AuthService,
                {
                    provide: 'canDeactivateCreateEvent',
                    useValue: checkDirtyState
                }],
            bootstrap: [events_app_component_1.EventsAppComponent]
        }), 
        __metadata('design:paramtypes', [])
    ], AppModule);
    return AppModule;
}());
var LogintRoutingModule = (function () {
    function LogintRoutingModule() {
    }
    LogintRoutingModule = __decorate([
        core_1.NgModule({
            imports: [
                router_1.RouterModule.forChild([
                    {
                        path: 'login',
                        component: login_component_1.LoginComponent,
                        data: {
                            preventNavbar: true
                        }
                    },
                    {
                        path: 'resetpassword',
                        component: reset_password_component_1.ResetPasswordComponent,
                        data: {
                            preventNavbar: true
                        }
                    },
                    {
                        path: 'resetpassword/:resettoken',
                        component: reset_password_component_1.ResetPasswordComponent,
                        data: {
                            preventNavbar: true
                        }
                    },
                    {
                        path: 'forgotpassword',
                        component: forgot_password_component_1.ForgotPasswordComponent,
                        data: {
                            preventNavbar: true
                        }
                    },
                ])
            ],
            exports: [router_1.RouterModule]
        })
    ], LogintRoutingModule);
    return LogintRoutingModule;
}());
var HomePageModule = /** @class */ (function () {
    function HomePageModule() {
    }
    HomePageModule = __decorate([
        NgModule({
            imports: [
                CommonModule,
                FormsModule,
                IonicModule,
                RouterModule.forChild([
                    {
                        path: '',
                        component: HomePage
                    }
                ])
            ],
            declarations: [HomePage]
        })
    ], HomePageModule);
    return HomePageModule;
}());
Beispiel #21
0
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            imports: [
                platform_browser_1.BrowserModule,
                ng2_bootstrap_1.DropdownModule,
                router_1.RouterModule.forRoot([
                    { path: 'pet-owner', component: petowner_component_1.PetOwnerComponent },
                    { path: '', component: aboutme_component_1.AboutMeComponent }
                ])
            ],
            declarations: [
                app_component_1.AppComponent,
                aboutme_component_1.AboutMeComponent,
                petowner_component_1.PetOwnerComponent
            ],
            bootstrap: [app_component_1.AppComponent]
        }), 
        __metadata('design:paramtypes', [])
    ], AppModule);
    return AppModule;
}());
Beispiel #22
0
var AppModule = (function () {
    function AppModule() {
    }
    AppModule = __decorate([
        core_1.NgModule({
            imports: [
                platform_browser_1.BrowserModule,
                forms_1.FormsModule,
                router_1.RouterModule.forRoot([
                    { path: 'home', component: front_component_1.FrontComponent },
                    { path: 'contact', component: contact_component_1.ContactComponent },
                    { path: 'single/:id', component: single_component_1.SingleComponent },
                    { path: '', redirectTo: 'home', pathMatch: 'full' },
                    { path: '**', redirectTo: 'home', pathMatch: 'full' }
                ])
            ],
            declarations: [app_component_1.AppComponent, header_component_1.HeaderComponent, front_component_1.FrontComponent, footer_component_1.FooterComponent, contact_component_1.ContactComponent, single_component_1.SingleComponent],
            providers: [demo_data_service_1.DemoDataService],
            bootstrap: [app_component_1.AppComponent]
        }), 
        __metadata('design:paramtypes', [])
    ], AppModule);
    return AppModule;
}());
Beispiel #23
0
const affairs_module_1 = require("./affairs/affairs.module");
let AppModule = class AppModule {
};
AppModule = __decorate([
    core_1.NgModule({
        imports: [
            platform_browser_1.BrowserModule,
            http_1.HttpModule,
            authentication_module_1.AuthenticationModule,
            header_module_1.HeaderModule,
            getInvolved_module_1.getInvolvedModule,
            pointRequests_module_1.PointRequestsModule,
            affairs_module_1.AffairsModule,
            forms_1.FormsModule,
            common_1.CommonModule,
            router_1.RouterModule.forRoot(app_routes_1.AppRoutes)
        ],
        declarations: [
            home_component_1.HomeComponent,
            contactUs_component_1.contactUsComponent,
            app_component_1.AppComponent
        ],
        providers: [
            authentication_service_1.AuthenticationService,
            pointRequests_service_1.PointRequestsService,
            affairs_service_1.AffairsService,
        ],
        bootstrap: [app_component_1.AppComponent]
    })
], AppModule);
exports.AppModule = AppModule;
Beispiel #24
0
    function AppModule() {
    }
    return AppModule;
}());
AppModule = __decorate([
    core_1.NgModule({
        declarations: [
            auth_component_1.AuthComponent,
            home_component_1.HomeComponent,
            app_component_1.AppComponent,
        ],
        imports: [
            angular2_universal_1.UniversalModule,
            forms_1.FormsModule,
            router_1.RouterModule.forRoot([
                { path: '', loadChildren: 'app/yard/yard.module#YardModule' },
                { path: 'auth', component: auth_component_1.AuthComponent },
            ]),
            material_1.MaterialModule.forRoot(),
        ],
        providers: [
            api_request_service_1.ApiRequestService,
            auth_service_1.AuthService,
            app_client_service_1.AppClientService,
        ],
        bootstrap: [app_component_1.AppComponent]
    }),
    __metadata("design:paramtypes", [])
], AppModule);
exports.AppModule = AppModule;
//# sourceMappingURL=app.module.js.map
"use strict";
var router_1 = require('@angular/router');
var recipes_component_1 = require('./components/recipes.component');
var ingredients_component_1 = require('./components/ingredients.component');
var details_component_1 = require('./components/details.component');
var selector_component_1 = require('./components/selector.component');
var appRoutes = [
    {
        path: '',
        redirectTo: '/select',
        pathMatch: 'full'
    },
    { path: 'select', component: selector_component_1.SelectorComponent },
    { path: 'list', component: recipes_component_1.RecipesComponent },
    { path: 'ingredients', component: ingredients_component_1.IngredientsComponent },
    { path: 'details', component: details_component_1.DetailComponent }
];
exports.routing = router_1.RouterModule.forRoot(appRoutes);
//# sourceMappingURL=app.routing.js.map
Beispiel #26
0
const sidebar_component_1 = require("./core/sidebar/sidebar.component");
const navbar_component_1 = require("./core/navbar/navbar.component");
const appRoutes = [
    { path: 'contact', component: contact_component_1.ContactComponent },
    { path: 'price', component: price_component_1.PriceComponent },
    { path: 'home', component: home_component_1.HomeComponent },
    { path: 'error', component: error_1.ErrorPage }
];
let AppModule = class AppModule {
};
AppModule = __decorate([
    core_1.NgModule({
        imports: [
            platform_browser_1.BrowserModule,
            forms_1.FormsModule,
            router_1.RouterModule.forRoot(appRoutes, { enableTracing: false })
        ],
        declarations: [
            app_component_1.AppComponent,
            home_component_1.HomeComponent,
            price_component_1.PriceComponent,
            contact_component_1.ContactComponent,
            sidebar_component_1.SidebarComponent,
            navbar_component_1.NavbarComponent,
            error_1.ErrorPage
        ],
        bootstrap: [app_component_1.AppComponent]
    })
], AppModule);
exports.AppModule = AppModule;
Beispiel #27
0
"use strict";
var router_1 = require('@angular/router');
var admin_component_1 = require("./admin.component");
var query_component_1 = require("./pages/query.component");
var qrcode_component_1 = require("./pages/qrcode.component");
var auth_service_1 = require('../services/auth.service');
exports.routes = [
    {
        path: 'admin', component: admin_component_1.AdminComponent,
        canActivateChild: [auth_service_1.AuthService],
        children: [
            { path: "", component: query_component_1.QueryComponent },
            { path: "query", component: query_component_1.QueryComponent },
            { path: "qrcode", component: qrcode_component_1.QrcodeComponent }
        ]
    }
];
exports.routing = router_1.RouterModule.forChild(exports.routes);
//# sourceMappingURL=admin.routing.js.map
"use strict";
var router_1 = require('@angular/router');
var resource_list_component_1 = require("./resource-list.component");
var resource_detail_component_1 = require("./resource-detail.component");
var new_resource_component_1 = require("./new-resource.component");
var resourcesRoutes = [
    {
        path: 'resource',
        component: resource_list_component_1.ResourceListComponent
    },
    {
        path: 'resource/detail/:resourceType/:id',
        component: resource_detail_component_1.ResourceDetailsComponent
    },
    {
        path: 'resource/new',
        component: new_resource_component_1.NewResourceComponent,
    },
];
exports.resourcesRouting = router_1.RouterModule.forChild(resourcesRoutes);
//# sourceMappingURL=resource.routing.js.map
Beispiel #29
0
}());
AppModule = __decorate([
    core_1.NgModule({
        imports: [
            platform_browser_1.BrowserModule,
            forms_1.FormsModule,
            router_1.RouterModule.forRoot([
                {
                    path: '',
                    redirectTo: '/dashboard',
                    pathMatch: 'full'
                },
                {
                    path: 'heroes',
                    component: heroes_component_1.HeroesComponent
                },
                {
                    path: 'dashboard',
                    component: dashboard_component_1.DashboardComponent
                },
                {
                    path: 'detail/:id',
                    component: hero_detail_component_1.HeroDetailComponent
                },
            ])
        ],
        declarations: [
            app_component_1.AppComponent,
            hero_detail_component_1.HeroDetailComponent,
            heroes_component_1.HeroesComponent,
            dashboard_component_1.DashboardComponent
Beispiel #30
0
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var router_1 = require("@angular/router");
var welcome_component_1 = require("./home/welcome.component");
var AppRoutingModule = (function () {
    function AppRoutingModule() {
    }
    return AppRoutingModule;
}());
AppRoutingModule = __decorate([
    core_1.NgModule({
        imports: [
            router_1.RouterModule.forRoot([
                { path: 'welcome', component: welcome_component_1.WelcomeComponent },
                { path: '', redirectTo: 'welcome', pathMatch: 'full' },
                { path: '**', redirectTo: 'welcome', pathMatch: 'full' }
            ])
        ],
        exports: [router_1.RouterModule]
    }),
    __metadata("design:paramtypes", [])
], AppRoutingModule);
exports.AppRoutingModule = AppRoutingModule;
//# sourceMappingURL=app-routing.module.js.map