7 Commits

Author SHA1 Message Date
Rohit Yadav
4364cb9784 rat: Fix license for file from recent ui-plugins merge
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-14 17:18:22 +05:30
Brian Federle
690dd66d3e UI plugin: Show custom icon
Show custom icon '<pluginName>/icon.png' on side nav bar (if plugin
added new section), and on plugin listing.
2013-01-29 16:05:48 -08:00
Brian Federle
22c351fabc UI plugins: Implement plugin detail page
Renders all metadata from plugin's config.js onto a detail page, on
click of the plugin row under the 'Plugins' main section.
2013-01-29 14:35:30 -08:00
Brian Federle
d1166e6b8b Add plugin detail view on click 2013-01-02 16:57:07 -08:00
Brian Federle
347ac311a0 UI Plugin: Use new format
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
    //
  };
2012-12-20 11:55:44 -08:00
Brian Federle
59c77b4850 Add plugin loading functionality and basic framework
Dynamically load UI plugins via require.js

Plugin code uses the following format:

(function (cloudStack) {
  var testPlugin1 = function(plugin) {
    // Plugin code goes here
  };

  cloudStack.plugin({
    id: 'testPlugin1',
    title: 'Test Plugin 1',
    desc: 'Sample plugin 1',
    load: testPlugin1
  });
}(cloudStack));
2012-12-19 15:47:25 -08:00
Brian Federle
f0a6e86e14 Add/style basic plugin listing 2012-12-19 15:04:47 -08:00