refactor to move aclService from salix to Core
This commit is contained in:
parent
a530c67336
commit
3badf2a48a
|
@ -1,4 +1,7 @@
|
||||||
import ngModule from './module';
|
import {module} from '../module';
|
||||||
|
|
||||||
|
var acl = window.salix ? window.salix.acl : {};
|
||||||
|
module.constant('aclConstant', acl);
|
||||||
|
|
||||||
aclService.$inject = ['aclConstant'];
|
aclService.$inject = ['aclConstant'];
|
||||||
function aclService(aclConstant) {
|
function aclService(aclConstant) {
|
||||||
|
@ -29,4 +32,4 @@ function aclService(aclConstant) {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
ngModule.service('aclService', aclService);
|
module.service('aclService', aclService);
|
|
@ -4,6 +4,7 @@ import './template';
|
||||||
import './getTemplate';
|
import './getTemplate';
|
||||||
import './app';
|
import './app';
|
||||||
import './interceptor';
|
import './interceptor';
|
||||||
|
import './aclService';
|
||||||
|
|
||||||
export * from './util';
|
export * from './util';
|
||||||
export {default as splitingRegister} from './splitingRegister';
|
export {default as splitingRegister} from './splitingRegister';
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import './module';
|
import './module';
|
||||||
import './spliting';
|
import './spliting';
|
||||||
import './aclService';
|
|
||||||
import './configroutes';
|
import './configroutes';
|
||||||
import './config';
|
import './config';
|
||||||
import './run';
|
import './run';
|
||||||
|
|
|
@ -2,9 +2,6 @@ import ngModule from './module';
|
||||||
|
|
||||||
export const appName = 'salix';
|
export const appName = 'salix';
|
||||||
|
|
||||||
var acl = window[appName] ? window[appName].acl : {};
|
|
||||||
ngModule.constant('aclConstant', acl);
|
|
||||||
|
|
||||||
config.$inject = ['$translatePartialLoaderProvider', '$httpProvider'];
|
config.$inject = ['$translatePartialLoaderProvider', '$httpProvider'];
|
||||||
export function config($translatePartialLoaderProvider, $httpProvider) {
|
export function config($translatePartialLoaderProvider, $httpProvider) {
|
||||||
$translatePartialLoaderProvider.addPart(appName);
|
$translatePartialLoaderProvider.addPart(appName);
|
||||||
|
|
Loading…
Reference in New Issue