feat: delete legacy setting management config

pull/4377/head
Arman Ozak 5 years ago
parent aec2181d54
commit 0f48f6ce85

@ -1,3 +0,0 @@
# @abp/ng.setting-management.config
[docs.abp.io](https://docs.abp.io)

@ -1,6 +0,0 @@
const jestConfig = require('../../jest.config');
module.exports = {
...jestConfig,
name: 'setting-management-config',
};

@ -1,7 +0,0 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/setting-management-config",
"lib": {
"entryFile": "src/public-api.ts"
}
}

@ -1,12 +0,0 @@
{
"name": "@abp/ng.setting-management.config",
"version": "2.9.0",
"homepage": "https://abp.io",
"repository": {
"type": "git",
"url": "https://github.com/abpframework/abp.git"
},
"publishConfig": {
"access": "public"
}
}

@ -1,37 +0,0 @@
import { Injectable, Injector } from '@angular/core';
import { addAbpRoutes, eLayoutType, PatchRouteByName, ABP } from '@abp/ng.core';
import { getSettingTabs } from '@abp/ng.theme.shared';
import { Store } from '@ngxs/store';
import { eSettingManagementRouteNames } from '@abp/ng.setting-management';
@Injectable({
providedIn: 'root',
})
export class SettingManagementConfigService {
get store(): Store {
return this.injector.get(Store);
}
constructor(private injector: Injector) {
const route = {
name: eSettingManagementRouteNames.Settings,
path: 'setting-management',
parentName: 'AbpUiNavigation::Menu:Administration',
requiredPolicy: 'AbpAccount.SettingManagement',
layout: eLayoutType.application,
order: 6,
iconClass: 'fa fa-cog',
} as ABP.FullRoute;
addAbpRoutes(route);
setTimeout(() => {
const tabs = getSettingTabs();
if (!tabs || !tabs.length) {
this.store.dispatch(
new PatchRouteByName('AbpSettingManagement::Settings', { ...route, invisible: true }),
);
}
});
}
}

@ -1,8 +0,0 @@
import { NgModule, APP_INITIALIZER } from '@angular/core';
import { SettingManagementConfigService } from './services/setting-management-config.service';
import { noop } from '@abp/ng.core';
@NgModule({
providers: [{ provide: APP_INITIALIZER, deps: [SettingManagementConfigService], useFactory: noop, multi: true }],
})
export class SettingManagementConfigModule {}

@ -1 +0,0 @@
export * from './lib/setting-management-config.module';

@ -1,19 +0,0 @@
{
"extends": "../../tsconfig.prod.json",
"compilerOptions": {
"outDir": "../../out-tsc/lib",
"target": "es2015",
"declaration": true,
"inlineSources": true,
"types": [],
"lib": ["dom", "es2018"]
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true,
"enableResourceInlining": true
},
"exclude": ["src/test.ts", "**/*.spec.ts"]
}

@ -1,6 +0,0 @@
{
"extends": "./tsconfig.lib.json",
"angularCompilerOptions": {
"enableIvy": false
}
}

@ -1,11 +0,0 @@
{
"extends": "../../tsconfig.prod.json",
"compilerOptions": {
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"]
},
"include": ["**/*.spec.ts", "**/*.d.ts"]
}

@ -1,17 +0,0 @@
{
"extends": "../../tslint.json",
"rules": {
"directive-selector": [
true,
"attribute",
"abp",
"camelCase"
],
"component-selector": [
true,
"element",
"abp",
"kebab-case"
]
}
}
Loading…
Cancel
Save