mirror of https://github.com/abpframework/abp.git
57 changed files with 509 additions and 446 deletions
@ -1,3 +1,4 @@ |
|||
{ |
|||
"printWidth": 120, |
|||
"singleQuote": true |
|||
} |
|||
|
|||
@ -1,2 +1,2 @@ |
|||
export * from './localization.pipe'; |
|||
export * from "./sort.pipe"; |
|||
export * from './sort.pipe'; |
|||
|
|||
@ -1,13 +1,14 @@ |
|||
import { Pipe, PipeTransform } from '@angular/core'; |
|||
|
|||
@Pipe({ |
|||
name: 'abpSort', |
|||
pure: false |
|||
name: 'abpSort', |
|||
// tslint:disable-next-line: no-pipe-impure
|
|||
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; |
|||
} |
|||
} |
|||
transform(value: any[], sortOrder: string): any { |
|||
sortOrder = sortOrder.toLowerCase(); |
|||
if (sortOrder === 'desc') return value.reverse(); |
|||
else return value; |
|||
} |
|||
} |
|||
|
|||
@ -1,4 +1,5 @@ |
|||
export function noop() { |
|||
// tslint:disable-next-line: only-arrow-functions
|
|||
const fn = function() {}; |
|||
return fn; |
|||
} |
|||
|
|||
@ -1,5 +1,6 @@ |
|||
export function uuid(a?: any): string { |
|||
return a |
|||
? (a ^ ((Math.random() * 16) >> (a / 4))).toString(16) |
|||
? // tslint:disable-next-line: no-bitwise
|
|||
(a ^ ((Math.random() * 16) >> (a / 4))).toString(16) |
|||
: ('' + 1e7 + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid); |
|||
} |
|||
|
|||
@ -1 +1 @@ |
|||
export * from "./feature-management.state"; |
|||
export * from './feature-management.state'; |
|||
|
|||
@ -1 +1 @@ |
|||
export * from "./permission-management.state"; |
|||
export * from './permission-management.state'; |
|||
|
|||
@ -1 +1 @@ |
|||
export * from "./layout.state"; |
|||
export * from './layout.state'; |
|||
|
|||
@ -0,0 +1,13 @@ |
|||
<ol *ngIf="show" class="breadcrumb"> |
|||
<li class="breadcrumb-item"> |
|||
<a routerLink="/"><i class="fa fa-home"></i> </a> |
|||
</li> |
|||
<li |
|||
*ngFor="let segment of segments; let last = last" |
|||
class="breadcrumb-item" |
|||
[class.active]="last" |
|||
aria-current="page" |
|||
> |
|||
{{ segment | abpLocalization }} |
|||
</li> |
|||
</ol> |
|||
@ -0,0 +1,22 @@ |
|||
<div class="error"> |
|||
<button id="abp-close-button mr-4" type="button" class="close" (click)="destroy()"> |
|||
<span aria-hidden="true">×</span> |
|||
</button> |
|||
<div class="row centered"> |
|||
<div class="col-md-12"> |
|||
<div class="error-template"> |
|||
<h1> |
|||
{{ title | abpLocalization }} |
|||
</h1> |
|||
<div class="error-details"> |
|||
{{ details | abpLocalization }} |
|||
</div> |
|||
<div class="error-actions"> |
|||
<a (click)="destroy()" routerLink="/" class="btn btn-primary btn-md mt-2" |
|||
><span class="glyphicon glyphicon-home"></span> {{ '::Menu:Home' | abpLocalization }} |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
@ -1 +1 @@ |
|||
export default ``; |
|||
export default ''; |
|||
|
|||
@ -1,17 +1,7 @@ |
|||
{ |
|||
"extends": "../../tslint.json", |
|||
"rules": { |
|||
"directive-selector": [ |
|||
true, |
|||
"attribute", |
|||
"lib", |
|||
"camelCase" |
|||
], |
|||
"component-selector": [ |
|||
true, |
|||
"element", |
|||
"lib", |
|||
"kebab-case" |
|||
] |
|||
"directive-selector": [true, "attribute", "abp", "camelCase"], |
|||
"component-selector": [true, "element", "abp", "kebab-case"] |
|||
} |
|||
} |
|||
|
|||
@ -1,55 +1,100 @@ |
|||
{ |
|||
"extends": "tslint:recommended", |
|||
"rulesDirectory": ["node_modules/codelyzer"], |
|||
"rules": { |
|||
"array-type": false, |
|||
"contextual-lifecycle": true, |
|||
"component-class-suffix": [true, "Component"], |
|||
"directive-class-suffix": [true, "Directive"], |
|||
"max-line-length": [true, 140], |
|||
"no-consecutive-blank-lines": false, |
|||
"no-redundant-jsdoc": true, |
|||
"no-var-requires": false, |
|||
"object-literal-key-quotes": [true, "as-needed"], |
|||
"ordered-imports": false, |
|||
"trailing-comma": false, |
|||
"component-max-inline-declarations": [true, { "animations": 20, "styles": 10, "template": 10 }], |
|||
"no-forward-ref": true, |
|||
"no-lifecycle-call": true, |
|||
"no-pipe-impure": true, |
|||
"no-queries-metadata-property": true, |
|||
"no-unused-css": true, |
|||
"prefer-output-readonly": true, |
|||
"template-conditional-complexity": [true, 4], |
|||
"use-component-selector": true, |
|||
"max-classes-per-file": false, |
|||
"arrow-parens": false, |
|||
"arrow-return-shorthand": true, |
|||
"callable-types": true, |
|||
"class-name": true, |
|||
"component-selector": [true, "element", "abp", "kebab-case"], |
|||
"curly": false, |
|||
"deprecation": { |
|||
"severity": "warn" |
|||
}, |
|||
"component-class-suffix": true, |
|||
"contextual-lifecycle": true, |
|||
"directive-class-suffix": true, |
|||
"directive-selector": [true, "attribute", "abp", "camelCase"], |
|||
"component-selector": [true, "element", "abp", "kebab-case"], |
|||
"forin": true, |
|||
"import-blacklist": [true, "rxjs/Rx"], |
|||
"interface-name": false, |
|||
"max-classes-per-file": false, |
|||
"max-line-length": [true, 140], |
|||
"member-access": false, |
|||
"interface-over-type-literal": true, |
|||
"interface-name": [true, "never-prefix"], |
|||
"member-access": [true, "no-public"], |
|||
"member-ordering": [ |
|||
true, |
|||
{ |
|||
"order": ["static-field", "instance-field", "static-method", "instance-method"] |
|||
} |
|||
], |
|||
"no-consecutive-blank-lines": false, |
|||
"no-arg": true, |
|||
"no-bitwise": true, |
|||
"no-conflicting-lifecycle": true, |
|||
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"], |
|||
"no-construct": true, |
|||
"no-debugger": true, |
|||
"no-duplicate-super": true, |
|||
"no-empty-interface": true, |
|||
"no-empty": false, |
|||
"no-inferrable-types": [false, "ignore-params"], |
|||
"no-non-null-assertion": true, |
|||
"no-redundant-jsdoc": true, |
|||
"no-switch-case-fall-through": true, |
|||
"no-use-before-declare": true, |
|||
"no-var-requires": false, |
|||
"curly": false, |
|||
"object-literal-key-quotes": [true, "as-needed"], |
|||
"object-literal-sort-keys": false, |
|||
"ordered-imports": false, |
|||
"quotemark": [true, "single"], |
|||
"trailing-comma": false, |
|||
"no-conflicting-lifecycle": true, |
|||
"no-eval": true, |
|||
"no-host-metadata-property": true, |
|||
"no-input-rename": true, |
|||
"no-inferrable-types": [true, "ignore-params"], |
|||
"no-input-rename": false, |
|||
"no-inputs-metadata-property": true, |
|||
"no-misused-new": true, |
|||
"no-namespace": false, |
|||
"no-non-null-assertion": true, |
|||
"no-output-native": true, |
|||
"no-output-on-prefix": true, |
|||
"no-output-rename": true, |
|||
"no-output-rename": false, |
|||
"no-outputs-metadata-property": true, |
|||
"no-namespace": false, |
|||
"template-banana-in-box": true, |
|||
"template-no-negated-async": true, |
|||
"no-shadowed-variable": true, |
|||
"no-string-literal": false, |
|||
"no-string-throw": true, |
|||
"no-switch-case-fall-through": true, |
|||
"no-unnecessary-initializer": true, |
|||
"no-unnecessary-semicolons": false, |
|||
"no-unused-expression": true, |
|||
"no-var-keyword": true, |
|||
"object-literal-sort-keys": false, |
|||
"prefer-const": true, |
|||
"quotemark": [true, "single", "avoid-escape", "avoid-template"], |
|||
"radix": true, |
|||
"semicolon": [true, "always", "ignore-bound-class-methods"], |
|||
// "template-accessibility-alt-text": true, |
|||
// "template-accessibility-elements-content": true, |
|||
// "template-accessibility-label-for": true, |
|||
// "template-accessibility-tabindex-no-positive": true, |
|||
// "template-accessibility-table-scope": true, |
|||
// "template-accessibility-valid-aria": true, |
|||
// "template-banana-in-box": true, |
|||
// "template-click-events-have-key-events": true, |
|||
// "template-mouse-events-have-key-events": true, |
|||
// "template-no-autofocus": true, |
|||
// "template-no-distracting-elements": true, |
|||
// "template-no-negated-async": true, |
|||
"triple-equals": [true, "allow-null-check"], |
|||
"unified-signatures": true, |
|||
"use-lifecycle-interface": true, |
|||
"use-pipe-transform-interface": true |
|||
}, |
|||
"rulesDirectory": ["codelyzer"] |
|||
"use-pipe-transform-interface": true, |
|||
"variable-name": false, |
|||
"prefer-for-of": false |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue