mirror of https://github.com/apache/cloudstack.git
Define plugins as namespaced objects instead of as function calls. This
is easier to implement and manage by the framework.
New format changes for defining plugins:
Now create 2 JS files in plugin folder:
-config.js
-[pluginName].js
plugins.js (listing) format:
cloudStack.plugins = [
'testPlugin'
];
config.js format:
cloudStack.plugins.testPlugin.config = {
title: 'Test Plugin',
desc: 'Sample plugin'
};
[pluginName].js format:
cloudStack.plugins.testPlugin = function(plugin) {
//
// Plugin code goes here
//
};
|
||
|---|---|---|
| .. | ||
| ui | ||
| ui-custom | ||
| accounts.js | ||
| autoscaler.js | ||
| cloud.core.callbacks.js | ||
| cloudStack.js | ||
| configuration.js | ||
| dashboard.js | ||
| docs.js | ||
| domains.js | ||
| events.js | ||
| globalSettings.js | ||
| installWizard.js | ||
| instanceWizard.js | ||
| instances.js | ||
| lbStickyPolicy.js | ||
| network.js | ||
| plugins.js | ||
| projects.js | ||
| sharedFunctions.js | ||
| storage.js | ||
| system.js | ||
| templates.js | ||
| vpc.js | ||
| zoneWizard.js | ||