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 {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?
|
||||
require("!style!css!sass!./theme/sass/_ionicons.scss");
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
import {BaCard} from '../../../../theme';
|
||||
import {BaCard} from '../../../../theme/components';
|
||||
|
||||
import {ChartJsService} from "./chartJs.service";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
import {BaCard} from '../../../../theme';
|
||||
import {BaCard} from '../../../../theme/components';
|
||||
|
||||
import {ChartistJsService} from "./chartistJs.service";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
|
||||
import {PopularApp} from './popularApp';
|
||||
import {BaCard} from '../../theme';
|
||||
import {BaCard} from '../../theme/components';
|
||||
|
||||
|
||||
@Component({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
import {BaCard} from '../../../../theme';
|
||||
import {BaCard} from '../../../../theme/components';
|
||||
|
||||
import {layoutPaths} from "../../../../theme/theme.constants";
|
||||
import {BubbleMapsService} from "./bubbleMaps.service";
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
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";
|
||||
|
||||
@Component({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
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";
|
||||
|
||||
@Component({
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import {Component, ViewEncapsulation} from 'angular2/core';
|
||||
import {BaCard} from '../../../../theme';
|
||||
import {BaCard} from '../../../../theme/components';
|
||||
|
||||
import {layoutColors, layoutPaths} from "../../../../theme/theme.constants";
|
||||
import {LineMapsService} from "./lineMaps.service";
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
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 {Ui} from './ui';
|
||||
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 {ThemeGlobal} from "../theme.global";
|
||||
import {Component} from 'angular2/core';
|
||||
import {Subscription} from "rxjs/Subscription";
|
||||
|
||||
import {ThemeGlobal} from "../../../theme";
|
||||
|
||||
@Component({
|
||||
selector: 'content-top',
|
||||
styles: [require('./contentTop.scss')],
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@import '../sass/conf/conf';
|
||||
@import '../../sass/conf/conf';
|
||||
|
||||
.content-top {
|
||||
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 {ProfilePicturePipe} from '../pipes/image/profile-picture.pipe';
|
||||
import {Component} from 'angular2/core';
|
||||
|
||||
import {ProfilePicturePipe} from '../../pipes';
|
||||
|
||||
@Component({
|
||||
selector: 'msg-center',
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@import '../sass/conf/conf';
|
||||
@import '../../sass/conf/conf';
|
||||
|
||||
/* msg center */
|
||||
@-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 {ProfilePicturePipe} from '../pipes/image/profile-picture.pipe';
|
||||
import {ScrollPosition} from '../directives/scrollPosition.directive';
|
||||
import {ThemeGlobal} from "../theme.global";
|
||||
import {ThemeGlobal} from '../../../theme';
|
||||
import {ProfilePicturePipe} from '../../pipes';
|
||||
import {MsgCenter} from '../../components/msgCenter';
|
||||
import {ScrollPosition} from '../../directives';
|
||||
|
||||
@Component({
|
||||
selector: 'page-top',
|
||||
|
|
@ -18,7 +18,6 @@ export class PageTop {
|
|||
|
||||
|
||||
constructor(private _themeGlobal:ThemeGlobal) {
|
||||
|
||||
}
|
||||
|
||||
toggleMenu() {
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
@import '../sass/conf/conf';
|
||||
@import '../msgCenter/msgCenter';
|
||||
@import '../../sass/conf/conf';
|
||||
@import '../../components/msgCenter/msgCenter';
|
||||
|
||||
.page-top {
|
||||
@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 {layoutSizes} from '../theme.constants';
|
||||
import {ThemeGlobal, layoutSizes} from '../../../theme';
|
||||
import {SidebarService} from './sidebar.service';
|
||||
import {ThemeGlobal} from "../theme.global";
|
||||
|
||||
@Component({
|
||||
selector: 'sidebar',
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
@import '../sass/conf/conf';
|
||||
@import '../../sass/conf/conf';
|
||||
|
||||
$sidebar-width: 180px;
|
||||
$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({
|
||||
selector: '[scrollPosition]'
|
||||
|
|
@ -1,5 +1,2 @@
|
|||
export * from './pageTop';
|
||||
export * from './msgCenter';
|
||||
export * from './sidebar';
|
||||
export * from './contentTop';
|
||||
export * from './baCard';
|
||||
export * from './theme.constants'
|
||||
export * from './theme.global'
|
||||
|
|
|
|||
|
|
@ -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 {layoutPaths} from '../../theme.constants';
|
||||
import {layoutPaths} from '../../../theme';
|
||||
|
||||
@Pipe({name: 'profilePicture'})
|
||||
export class ProfilePicturePipe implements PipeTransform {
|
||||
|
|
@ -1 +0,0 @@
|
|||
export * from './sidebar.component';
|
||||
Loading…
Add table
Add a link
Reference in a new issue