mirror of https://github.com/abpframework/abp.git
committed by
GitHub
14 changed files with 165 additions and 67 deletions
@ -1 +1,2 @@ |
|||
export * from './localization.pipe'; |
|||
export * from "./sort.pipe"; |
|||
|
|||
@ -0,0 +1,13 @@ |
|||
import { Pipe, PipeTransform } from '@angular/core'; |
|||
|
|||
@Pipe({ |
|||
name: 'abpSort', |
|||
pure: false |
|||
}) |
|||
export class SortPipe implements PipeTransform { |
|||
transform(value: any[], sortOrder: string): any { |
|||
sortOrder = sortOrder.toLowerCase(); |
|||
if(sortOrder === "desc") return value.reverse(); |
|||
else return value; |
|||
} |
|||
} |
|||
@ -0,0 +1,9 @@ |
|||
export default ` |
|||
.content-header-title { |
|||
font-size: 24px; |
|||
} |
|||
|
|||
.entry-row { |
|||
margin-bottom: 15px; |
|||
} |
|||
`;
|
|||
@ -0,0 +1,15 @@ |
|||
import { Injectable } from '@angular/core'; |
|||
import { Router } from '@angular/router'; |
|||
import { LazyLoadService } from '@abp/ng.core'; |
|||
import styles from '../constants/styles'; |
|||
|
|||
@Injectable({ providedIn: 'root' }) |
|||
export class InitialService { |
|||
constructor(private lazyLoadService: LazyLoadService) { |
|||
this.appendStyle().subscribe(); |
|||
} |
|||
|
|||
appendStyle() { |
|||
return this.lazyLoadService.load(null, 'style', styles, 'head', 'afterbegin'); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue