Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function adLodopConfig(): AdLodopConfig {
return Object.assign(new AdLodopConfig(), {
license: `A59B099A586B3851E0F0D7FDBF37B603`,
licenseA: `C94CEE276DB2187AE6B65D56B3FC2848`
});
}
// endregion
@NgModule({
imports: [
NgZorroAntdModule.forRoot(),
// theme
AlainThemeModule.forRoot(),
// abc
DelonABCModule.forRoot(),
// form
DelonFormModule.forRoot(),
DelonUtilModule.forRoot()
]
})
export class DelonModule {
constructor( @Optional() @SkipSelf() parentModule: DelonModule) {
throwIfAlreadyLoaded(parentModule, 'DelonModule');
}
static forRoot(): ModuleWithProviders {
return {
ngModule: DelonModule,
providers: [
{ provide: AdLodopConfig, useFactory: adLodopConfig }
]
return new Promise((resolve, reject) => {
// 设置reuseTabService.mode为ReuseTabMatchMode.URL
// reuse-tab 是否重用页面,把这个页面排除了,所以只要跳转到别的页面 原tab就会消失
// https://github.com/cipchk/ng-alain/issues/101
this.reuseTabService.mode = ReuseTabMatchMode.URL;
const excludes = new Array();
excludes.push(new RegExp('/can-deactivate'));
this.reuseTabService.excludes = excludes;
zip(
this.httpClient.get(`assets/tmp/i18n/${this.i18n.defaultLang}.json`),
this.httpClient.get('assets/tmp/app-data.json'),
)
.pipe(
// 接收其他拦截器后产生的异常消息
catchError(([langData, appData]) => {
resolve(null);
return [langData, appData];
}),
)
.subscribe(
export function fnSTConfig(): STConfig {
return {
...new STConfig(),
...{
modal: { size: 'lg' }
} as STConfig
};
}
export function fnSTConfig(): STConfig {
return {
...new STConfig(),
modal: { size: 'lg' },
};
}
export function fnPageHeaderConfig(): PageHeaderConfig {
return {
...new PageHeaderConfig(),
...{ homeI18n: 'home' } as PageHeaderConfig
};
}
export function fnPageHeaderConfig(): PageHeaderConfig {
return {
...new PageHeaderConfig(),
homeI18n: 'home',
};
}
export function fnSTConfig(): STConfig {
return {
...new STConfig(),
...({
modal: { size: 'lg' },
} as STConfig),
};
}
export function fnSTConfig(): STConfig {
return {
...new STConfig(),
...{
modal: { size: 'lg' }
} as STConfig
};
}
export function fnSTConfig(): STConfig {
return Object.assign(new STConfig(), {
ps: 3,
});
}
export function fnSTConfig(): STConfig {
return {
...new STConfig(),
modal: { size: 'lg' },
};
}