add a javascript base class for plugins
This commit is contained in:
parent
77253f835c
commit
7d495e2a16
|
@ -0,0 +1,11 @@
|
||||||
|
Deluge.Plugin = Ext.extend(Ext.util.Observable, {
|
||||||
|
constructor: function(config) {
|
||||||
|
this.name = config.name;
|
||||||
|
this.addEvents({
|
||||||
|
"enabled": true,
|
||||||
|
"disabled": true
|
||||||
|
});
|
||||||
|
this.isDelugePlugin = true;
|
||||||
|
Deluge.Plugin.superclass.constructor.call(config);
|
||||||
|
}
|
||||||
|
});
|
|
@ -1,4 +1,4 @@
|
||||||
DELUGE_FILES="Deluge.js Deluge.Formatters.js Deluge.Menus.js Deluge.Events.js Deluge.OptionsManager.js Deluge.MultiOptionsManager.js Deluge.Add.js Deluge.Add.File.js Deluge.Add.Url.js Deluge.Client.js Deluge.ConnectionManager.js Deluge.Details.js Deluge.Details.Status.js Deluge.Details.Details.js Deluge.Details.Files.js Deluge.Details.Peers.js Deluge.Details.Options.js Deluge.EditTrackers.js Deluge.Keys.js Deluge.Login.js Deluge.Preferences.js Deluge.Preferences.Downloads.js Deluge.Preferences.Network.js Deluge.Preferences.Encryption.js Deluge.Preferences.Bandwidth.js Deluge.Preferences.Interface.js Deluge.Preferences.Other.js Deluge.Preferences.Daemon.js Deluge.Preferences.Queue.js Deluge.Preferences.Proxy.js Deluge.Preferences.Notification.js Deluge.Preferences.Cache.js Deluge.Preferences.Plugins.js Deluge.Remove.js Deluge.Sidebar.js Deluge.Statusbar.js Deluge.Toolbar.js Deluge.Torrents.js Deluge.UI.js"
|
DELUGE_FILES="Deluge.js Deluge.Formatters.js Deluge.Menus.js Deluge.Events.js Deluge.OptionsManager.js Deluge.MultiOptionsManager.js Deluge.Add.js Deluge.Add.File.js Deluge.Add.Url.js Deluge.Client.js Deluge.ConnectionManager.js Deluge.Details.js Deluge.Details.Status.js Deluge.Details.Details.js Deluge.Details.Files.js Deluge.Details.Peers.js Deluge.Details.Options.js Deluge.EditTrackers.js Deluge.Keys.js Deluge.Login.js Deluge.Plugin.js Deluge.Preferences.js Deluge.Preferences.Downloads.js Deluge.Preferences.Network.js Deluge.Preferences.Encryption.js Deluge.Preferences.Bandwidth.js Deluge.Preferences.Interface.js Deluge.Preferences.Other.js Deluge.Preferences.Daemon.js Deluge.Preferences.Queue.js Deluge.Preferences.Proxy.js Deluge.Preferences.Notification.js Deluge.Preferences.Cache.js Deluge.Preferences.Plugins.js Deluge.Remove.js Deluge.Sidebar.js Deluge.Statusbar.js Deluge.Toolbar.js Deluge.Torrents.js Deluge.UI.js"
|
||||||
ALL_FILES="ext-extensions-debug.js $DELUGE_FILES"
|
ALL_FILES="ext-extensions-debug.js $DELUGE_FILES"
|
||||||
|
|
||||||
[ -e /usr/bin/jsdoc_toolkit ] && JSDOC="/usr/bin/jsdoc_toolkit"
|
[ -e /usr/bin/jsdoc_toolkit ] && JSDOC="/usr/bin/jsdoc_toolkit"
|
||||||
|
|
|
@ -328,6 +328,7 @@ class TopLevel(resource.Resource):
|
||||||
"/js/Deluge.EditTrackers.js",
|
"/js/Deluge.EditTrackers.js",
|
||||||
"/js/Deluge.Keys.js",
|
"/js/Deluge.Keys.js",
|
||||||
"/js/Deluge.Login.js",
|
"/js/Deluge.Login.js",
|
||||||
|
"/js/Deluge.Plugin.js",
|
||||||
"/js/Deluge.Preferences.js",
|
"/js/Deluge.Preferences.js",
|
||||||
"/js/Deluge.Preferences.Downloads.js",
|
"/js/Deluge.Preferences.Downloads.js",
|
||||||
"/js/Deluge.Preferences.Network.js",
|
"/js/Deluge.Preferences.Network.js",
|
||||||
|
|
Loading…
Reference in New Issue