mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-02-12 03:14:20 +01:00
refactor(router): code style changes
This commit is contained in:
parent
f24546639c
commit
24de0070fa
15 changed files with 80 additions and 59 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import {Component} from '@angular/core';
|
||||
import {RouteConfig} from '@angular/router-deprecated';
|
||||
|
||||
import {Ckeditor} from "./components/ckeditor";
|
||||
import {Ckeditor} from './components/ckeditor';
|
||||
|
||||
@Component({
|
||||
selector: 'editors',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {Component} from "@angular/core";
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'forms',
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<div class="auth-main">
|
||||
<div class="auth-block">
|
||||
<h1>Sign in to ng2-admin</h1>
|
||||
<a [routerLink]="['Register']" class="auth-link">New to ng2-admin? Sign up!</a>
|
||||
<a [routerLink]="['/register']" class="auth-link">New to ng2-admin? Sign up!</a>
|
||||
|
||||
<form [ngFormModel]="form" (ngSubmit)="onSubmit(form.value)" class="form-horizontal">
|
||||
<div class="form-group row" [ngClass]="{'has-error': (!email.valid && email.touched), 'has-success': (email.valid && email.touched)}">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import {RouterConfig} from "@angular/router";
|
||||
import {Login} from "./login.component";
|
||||
import {RouterConfig} from '@angular/router';
|
||||
import {Login} from './login.component';
|
||||
|
||||
export const LoginRoutes: RouterConfig = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {Component} from "@angular/core";
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'maps',
|
||||
|
|
|
|||
|
|
@ -1,25 +1,25 @@
|
|||
import {RouterConfig} from '@angular/router';
|
||||
import {Dashboard} from "./dashboard/dashboard.component";
|
||||
import {Charts} from "./charts/charts.component";
|
||||
import {ChartistJs} from "./charts/components/chartistJs/chartistJs.component";
|
||||
import {Pages} from "./pages.component";
|
||||
import {Ui} from "./ui/ui.component";
|
||||
import {Typography} from "./ui/components/typography/typography.component";
|
||||
import {Buttons} from "./ui/components/buttons/buttons.component";
|
||||
import {Icons} from "./ui/components/incons/icons.component";
|
||||
import {Grid} from "./ui/components/grid/grid.component";
|
||||
import {Forms} from "./forms/forms.component";
|
||||
import {Inputs} from "./forms/components/inputs/inputs.component";
|
||||
import {Layouts} from "./forms/components/layouts/layouts.component";
|
||||
import {BasicTables} from "./tables/components/basicTables/basicTables.component";
|
||||
import {Tables} from "./tables/tables.component";
|
||||
import {Maps} from "./maps/maps.component";
|
||||
import {GoogleMaps} from "./maps/components/googleMaps/googleMaps.component";
|
||||
import {LeafletMaps} from "./maps/components/leafletMaps/leafletMaps.component";
|
||||
import {BubbleMaps} from "./maps/components/bubbleMaps/bubbleMaps.component";
|
||||
import {LineMaps} from "./maps/components/lineMaps/lineMaps.component";
|
||||
import {Login} from "./login/login.component";
|
||||
import {Register} from "./register/register.component";
|
||||
import {Dashboard} from './dashboard/dashboard.component';
|
||||
import {Charts} from './charts/charts.component';
|
||||
import {ChartistJs} from './charts/components/chartistJs/chartistJs.component';
|
||||
import {Pages} from './pages.component';
|
||||
import {Ui} from './ui/ui.component';
|
||||
import {Typography} from './ui/components/typography/typography.component';
|
||||
import {Buttons} from './ui/components/buttons/buttons.component';
|
||||
import {Icons} from './ui/components/incons/icons.component';
|
||||
import {Grid} from './ui/components/grid/grid.component';
|
||||
import {Forms} from './forms/forms.component';
|
||||
import {Inputs} from './forms/components/inputs/inputs.component';
|
||||
import {Layouts} from './forms/components/layouts/layouts.component';
|
||||
import {BasicTables} from './tables/components/basicTables/basicTables.component';
|
||||
import {Tables} from './tables/tables.component';
|
||||
import {Maps} from './maps/maps.component';
|
||||
import {GoogleMaps} from './maps/components/googleMaps/googleMaps.component';
|
||||
import {LeafletMaps} from './maps/components/leafletMaps/leafletMaps.component';
|
||||
import {BubbleMaps} from './maps/components/bubbleMaps/bubbleMaps.component';
|
||||
import {LineMaps} from './maps/components/lineMaps/lineMaps.component';
|
||||
import {Editors} from './editors/editors.component';
|
||||
import {Ckeditor} from './editors/components/ckeditor/ckeditor.component';
|
||||
|
||||
//noinspection TypeScriptValidateTypes
|
||||
export const PagesRoutes:RouterConfig = [
|
||||
|
|
@ -31,6 +31,16 @@ export const PagesRoutes:RouterConfig = [
|
|||
path: 'dashboard',
|
||||
component: Dashboard
|
||||
},
|
||||
{
|
||||
path: 'editors',
|
||||
component: Editors,
|
||||
children: [
|
||||
{
|
||||
path: 'ckeditor',
|
||||
component: Ckeditor
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'charts',
|
||||
component: Charts,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<div class="auth-main">
|
||||
<div class="auth-block">
|
||||
<h1>Sign up to ng2-admin</h1>
|
||||
<a [routerLink]="['Login']" class="auth-link">Already have an ng2-admin account? Sign in!</a>
|
||||
<a [routerLink]="['/login']" class="auth-link">Already have an ng2-admin account? Sign in!</a>
|
||||
|
||||
<form [ngFormModel]="form" (ngSubmit)="onSubmit(form.value)" class="form-horizontal">
|
||||
<div class="form-group row" [ngClass]="{'has-error': (!name.valid && name.touched), 'has-success': (name.valid && name.touched)}">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import {RouterConfig} from "@angular/router";
|
||||
import {Register} from "./register.component";
|
||||
import {RouterConfig} from '@angular/router';
|
||||
import {Register} from './register.component';
|
||||
|
||||
export const RegisterRoutes: RouterConfig = [
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {Component} from "@angular/core";
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'forms',
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {Component} from "@angular/core";
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ui',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue