Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
active: () => { }
}
},
keyboard : {
remove(selector) { },
add(selector) { }
},
/**
* setDisabled
*/
menu : {
setDisabled() { }
},
notify(func, node) { }
}
var bottle = new Bottle();
var _RED = function () {
return RED;
}
bottle.service("RED", _RED);
// bottle.service("Menu", MenuFactory, 'RED');
export { bottle };
constructor() {
this._bottle = new Bottle();
this._localBackend = false;
}
constructor (config = {}) {
this.bottle = new Bottle()
this.bootables = []
this.bottle.value('Config', {
...CONFIG.defaults,
...config
})
window.startingBlocksDebugLevel = this.bottle.container.Config.debug
this.provider('Dom', Dom)
this.provider('BlockBuilder', BlockBuilder)
this.instanceFactory('DefaultPage', c => {
return new DefaultPage(c)
})
}
export default (config) => {
const deps = new Bottle();
Bottle.config.strict = true;
deps.constant('config', config);
deps.service('cli.log', () => log);
deps.service('api', api, 'config', 'aws.ecs', 'aws.ecr');
deps.service('aws.ecs', awsEcs, 'config');
deps.service('aws.ecr', awsEcr, 'config');
deps.service('aws.ec2', awsEc2, 'config');
/**
* @param {string} name
* @param {cli.command} instance
* @param {Array.} extraServices
* @returns {string}
constructor() {
this.bottle = new Bottle();
}
export default function getContainer() {
const bottle = new Bottle();
bottle.value('Logger', getLogger(config.logger));
bottle.factory('SlackApiManager', container => {
const service = new SlackApiManager();
service.setLogger(container.Logger);
service.setConfig(config.slack);
return service;
});
bottle.factory('MemeApiManager', container => {
const service = new MemeApiManager();
service.setLogger(container.Logger);
return service;
});
export default (config) => {
const deps = new Bottle();
Bottle.config.strict = true;
deps.constant('config', config);
deps.service('cli.log', () => log);
deps.service('api', api, 'config', 'aws.ecs', 'aws.ecr');
deps.service('aws.ecs', awsEcs, 'config');
deps.service('aws.ecr', awsEcr, 'config');
deps.service('aws.ec2', awsEc2, 'config');
/**
* @param {string} name
* @param {cli.command} instance
* @param {Array.} extraServices
* @returns {string}
*/