mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 08:50:13 +01:00
project structure update for more accurate import
This commit is contained in:
parent
36288562e6
commit
945cdb7e4f
43 changed files with 47 additions and 42 deletions
|
|
@ -3,7 +3,7 @@ import {RouteConfig, Router} from 'angular2/router';
|
||||||
import {Subscription} from 'rxjs/Subscription';
|
import {Subscription} from 'rxjs/Subscription';
|
||||||
|
|
||||||
import {Pages} from './pages';
|
import {Pages} from './pages';
|
||||||
import {ThemeGlobal} from "./theme/theme.global";
|
import {ThemeGlobal} from "./theme";
|
||||||
|
|
||||||
// TODO: is it really the best place to globally require that dependency?
|
// TODO: is it really the best place to globally require that dependency?
|
||||||
require("!style!css!sass!./theme/sass/_ionicons.scss");
|
require("!style!css!sass!./theme/sass/_ionicons.scss");
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {Component, ViewEncapsulation} from 'angular2/core';
|
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||||
import {BaCard} from '../../../../theme';
|
import {BaCard} from '../../../../theme/components';
|
||||||
|
|
||||||
import {ChartJsService} from "./chartJs.service";
|
import {ChartJsService} from "./chartJs.service";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {Component, ViewEncapsulation} from 'angular2/core';
|
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||||
import {BaCard} from '../../../../theme';
|
import {BaCard} from '../../../../theme/components';
|
||||||
|
|
||||||
import {ChartistJsService} from "./chartistJs.service";
|
import {ChartistJsService} from "./chartistJs.service";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import {Component, ViewEncapsulation} from 'angular2/core';
|
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||||
|
|
||||||
import {PopularApp} from './popularApp';
|
import {PopularApp} from './popularApp';
|
||||||
import {BaCard} from '../../theme';
|
import {BaCard} from '../../theme/components';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {Component, ViewEncapsulation} from 'angular2/core';
|
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||||
import {BaCard} from '../../../../theme';
|
import {BaCard} from '../../../../theme/components';
|
||||||
|
|
||||||
import {layoutPaths} from "../../../../theme/theme.constants";
|
import {layoutPaths} from "../../../../theme/theme.constants";
|
||||||
import {BubbleMapsService} from "./bubbleMaps.service";
|
import {BubbleMapsService} from "./bubbleMaps.service";
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {Component, ViewEncapsulation, ElementRef} from 'angular2/core';
|
import {Component, ViewEncapsulation, ElementRef} from 'angular2/core';
|
||||||
import {BaCard} from '../../../../theme';
|
import {BaCard} from '../../../../theme/components';
|
||||||
import {DOM} from "angular2/src/platform/dom/dom_adapter";
|
import {DOM} from "angular2/src/platform/dom/dom_adapter";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {Component, ViewEncapsulation, ElementRef} from 'angular2/core';
|
import {Component, ViewEncapsulation, ElementRef} from 'angular2/core';
|
||||||
import {BaCard} from '../../../../theme';
|
import {BaCard} from '../../../../theme/components';
|
||||||
import {DOM} from "angular2/src/platform/dom/dom_adapter";
|
import {DOM} from "angular2/src/platform/dom/dom_adapter";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {Component, ViewEncapsulation} from 'angular2/core';
|
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||||
import {BaCard} from '../../../../theme';
|
import {BaCard} from '../../../../theme/components';
|
||||||
|
|
||||||
import {layoutColors, layoutPaths} from "../../../../theme/theme.constants";
|
import {layoutColors, layoutPaths} from "../../../../theme/theme.constants";
|
||||||
import {LineMapsService} from "./lineMaps.service";
|
import {LineMapsService} from "./lineMaps.service";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
import {Component, ViewEncapsulation} from 'angular2/core';
|
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||||
import {RouteConfig, Router} from 'angular2/router';
|
import {RouteConfig} from 'angular2/router';
|
||||||
|
|
||||||
|
import {PageTop, ContentTop, Sidebar} from '../theme/components';
|
||||||
|
|
||||||
import {PageTop, ContentTop, Sidebar} from '../theme';
|
|
||||||
import {Dashboard} from './dashboard';
|
import {Dashboard} from './dashboard';
|
||||||
import {Ui} from './ui';
|
import {Ui} from './ui';
|
||||||
import {Maps} from './maps';
|
import {Maps} from './maps';
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from './baCard.component';
|
|
||||||
1
src/app/theme/components/baCard/index.ts
Normal file
1
src/app/theme/components/baCard/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './baCard.component.ts';
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import {Component, ViewEncapsulation} from 'angular2/core';
|
import {Component} from 'angular2/core';
|
||||||
|
|
||||||
import {ThemeGlobal} from "../theme.global";
|
|
||||||
import {Subscription} from "rxjs/Subscription";
|
import {Subscription} from "rxjs/Subscription";
|
||||||
|
|
||||||
|
import {ThemeGlobal} from "../../../theme";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'content-top',
|
selector: 'content-top',
|
||||||
styles: [require('./contentTop.scss')],
|
styles: [require('./contentTop.scss')],
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@import '../sass/conf/conf';
|
@import '../../sass/conf/conf';
|
||||||
|
|
||||||
.content-top {
|
.content-top {
|
||||||
padding-top: 13px;
|
padding-top: 13px;
|
||||||
1
src/app/theme/components/contentTop/index.ts
Normal file
1
src/app/theme/components/contentTop/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './contentTop.component.ts';
|
||||||
5
src/app/theme/components/index.ts
Normal file
5
src/app/theme/components/index.ts
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
export * from './pageTop';
|
||||||
|
export * from './msgCenter';
|
||||||
|
export * from './sidebar';
|
||||||
|
export * from './contentTop';
|
||||||
|
export * from './baCard';
|
||||||
1
src/app/theme/components/msgCenter/index.ts
Normal file
1
src/app/theme/components/msgCenter/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './msgCenter.component.ts';
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
import {Component, ViewEncapsulation} from 'angular2/core';
|
import {Component} from 'angular2/core';
|
||||||
import {ProfilePicturePipe} from '../pipes/image/profile-picture.pipe';
|
|
||||||
|
import {ProfilePicturePipe} from '../../pipes';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'msg-center',
|
selector: 'msg-center',
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@import '../sass/conf/conf';
|
@import '../../sass/conf/conf';
|
||||||
|
|
||||||
/* msg center */
|
/* msg center */
|
||||||
@-webkit-keyframes pulsate {
|
@-webkit-keyframes pulsate {
|
||||||
1
src/app/theme/components/pageTop/index.ts
Normal file
1
src/app/theme/components/pageTop/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './pageTop.component.ts';
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
import {Component, ViewEncapsulation} from 'angular2/core';
|
import {Component} from 'angular2/core';
|
||||||
|
|
||||||
import {MsgCenter} from '../msgCenter';
|
import {ThemeGlobal} from '../../../theme';
|
||||||
import {ProfilePicturePipe} from '../pipes/image/profile-picture.pipe';
|
import {ProfilePicturePipe} from '../../pipes';
|
||||||
import {ScrollPosition} from '../directives/scrollPosition.directive';
|
import {MsgCenter} from '../../components/msgCenter';
|
||||||
import {ThemeGlobal} from "../theme.global";
|
import {ScrollPosition} from '../../directives';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'page-top',
|
selector: 'page-top',
|
||||||
|
|
@ -18,7 +18,6 @@ export class PageTop {
|
||||||
|
|
||||||
|
|
||||||
constructor(private _themeGlobal:ThemeGlobal) {
|
constructor(private _themeGlobal:ThemeGlobal) {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
toggleMenu() {
|
toggleMenu() {
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
@import '../sass/conf/conf';
|
@import '../../sass/conf/conf';
|
||||||
@import '../msgCenter/msgCenter';
|
@import '../../components/msgCenter/msgCenter';
|
||||||
|
|
||||||
.page-top {
|
.page-top {
|
||||||
@include bg-translucent-dark(0.5);
|
@include bg-translucent-dark(0.5);
|
||||||
1
src/app/theme/components/sidebar/index.ts
Normal file
1
src/app/theme/components/sidebar/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './sidebar.component.ts';
|
||||||
|
|
@ -1,9 +1,8 @@
|
||||||
import {Component, ElementRef, HostListener, ViewEncapsulation, Input} from 'angular2/core';
|
import {Component, ElementRef, HostListener, ViewEncapsulation} from 'angular2/core';
|
||||||
import {Router} from 'angular2/router';
|
import {Router} from 'angular2/router';
|
||||||
|
|
||||||
import {layoutSizes} from '../theme.constants';
|
import {ThemeGlobal, layoutSizes} from '../../../theme';
|
||||||
import {SidebarService} from './sidebar.service';
|
import {SidebarService} from './sidebar.service';
|
||||||
import {ThemeGlobal} from "../theme.global";
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'sidebar',
|
selector: 'sidebar',
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@import '../sass/conf/conf';
|
@import '../../sass/conf/conf';
|
||||||
|
|
||||||
$sidebar-width: 180px;
|
$sidebar-width: 180px;
|
||||||
$angle-left: "\f100";
|
$angle-left: "\f100";
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from './contentTop.component';
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
export * from './scrollPosition.directive';
|
export * from './scrollPosition';
|
||||||
|
|
|
||||||
1
src/app/theme/directives/scrollPosition/index.ts
Normal file
1
src/app/theme/directives/scrollPosition/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './scrollPosition.directive.ts';
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import {Directive, Input, Output, EventEmitter, HostListener, ElementRef} from 'angular2/core';
|
import {Directive, Input, Output, EventEmitter, HostListener} from 'angular2/core';
|
||||||
|
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: '[scrollPosition]'
|
selector: '[scrollPosition]'
|
||||||
|
|
@ -1,5 +1,2 @@
|
||||||
export * from './pageTop';
|
export * from './theme.constants'
|
||||||
export * from './msgCenter';
|
export * from './theme.global'
|
||||||
export * from './sidebar';
|
|
||||||
export * from './contentTop';
|
|
||||||
export * from './baCard';
|
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from './msgCenter.component';
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from './pageTop.component';
|
|
||||||
1
src/app/theme/pipes/index.ts
Normal file
1
src/app/theme/pipes/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './profilePicture';
|
||||||
1
src/app/theme/pipes/profilePicture/index.ts
Normal file
1
src/app/theme/pipes/profilePicture/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './profilePicture.pipe.ts';
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import {Pipe, PipeTransform} from 'angular2/core';
|
import {Pipe, PipeTransform} from 'angular2/core';
|
||||||
import {layoutPaths} from '../../theme.constants';
|
import {layoutPaths} from '../../../theme';
|
||||||
|
|
||||||
@Pipe({name: 'profilePicture'})
|
@Pipe({name: 'profilePicture'})
|
||||||
export class ProfilePicturePipe implements PipeTransform {
|
export class ProfilePicturePipe implements PipeTransform {
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
export * from './sidebar.component';
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue