mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
2.3 KiB
1 line
2.3 KiB
{"version":3,"file":"abp-ng.setting-management.config.js","sources":["ng://@abp/ng.setting-management.config/lib/services/setting-management-config.service.ts","ng://@abp/ng.setting-management.config/lib/setting-management-config.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { addAbpRoutes, eLayoutType, PatchRouteByName, ABP } from '@abp/ng.core';\nimport { getSettingTabs } from '@abp/ng.theme.shared';\nimport { Store } from '@ngxs/store';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class SettingManagementConfigService {\n constructor(private store: Store) {\n const route = {\n name: 'AbpSettingManagement::Settings',\n path: 'setting-management',\n parentName: 'AbpUiNavigation::Menu:Administration',\n layout: eLayoutType.application,\n order: 6,\n iconClass: 'fa fa-cog',\n } as ABP.FullRoute;\n\n addAbpRoutes(route);\n\n setTimeout(() => {\n const tabs = getSettingTabs();\n if (!tabs || !tabs.length) {\n this.store.dispatch(new PatchRouteByName('AbpSettingManagement::Settings', { ...route, invisible: true }));\n }\n });\n }\n}\n","import { NgModule, APP_INITIALIZER } from '@angular/core';\nimport { SettingManagementConfigService } from './services/setting-management-config.service';\nimport { noop } from '@abp/ng.core';\n\n@NgModule({\n providers: [{ provide: APP_INITIALIZER, deps: [SettingManagementConfigService], useFactory: noop, multi: true }],\n})\nexport class SettingManagementConfigModule {}\n"],"names":[],"mappings":";;;;;;;;;AAAA,MAQa,8BAA8B;;;;IACzC,YAAoB,KAAY;QAAZ,UAAK,GAAL,KAAK,CAAO;;cACxB,KAAK,sBAAG;YACZ,IAAI,EAAE,gCAAgC;YACtC,IAAI,EAAE,oBAAoB;YAC1B,UAAU,EAAE,sCAAsC;YAClD,MAAM;YACN,KAAK,EAAE,CAAC;YACR,SAAS,EAAE,WAAW;SACvB,EAAiB;QAElB,YAAY,CAAC,KAAK,CAAC,CAAC;QAEpB,UAAU;;;QAAC;;kBACH,IAAI,GAAG,cAAc,EAAE;YAC7B,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;gBACzB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,gBAAgB,CAAC,gCAAgC,oBAAO,KAAK,IAAE,SAAS,EAAE,IAAI,IAAG,CAAC,CAAC;aAC5G;SACF,EAAC,CAAC;KACJ;;;YAtBF,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;YAJQ,KAAK;;;;;;;;IAMA,+CAAoB;;;;;;;ACTlC,WAK8F,IAAI;AAElG,MAAa,6BAA6B;;;YAHzC,QAAQ,SAAC;gBACR,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,8BAA8B,CAAC,EAAE,UAAU,IAAM,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;aACjH;;;;;;;;;;;;;;;"} |