diff --git a/plugin/0ssh/action.coffee b/plugin/0ssh/action.coffee new file mode 100644 index 0000000..530998b --- /dev/null +++ b/plugin/0ssh/action.coffee @@ -0,0 +1,12 @@ +module.exports = + update_passwd: + mode: 'custom' + callback: -> + + killall: + mode: 'alert' + callback: -> + + resetPermission: + mode: 'alert' + callback: -> diff --git a/plugin/0ssh/index.coffee b/plugin/0ssh/index.coffee new file mode 100644 index 0000000..089f75b --- /dev/null +++ b/plugin/0ssh/index.coffee @@ -0,0 +1,27 @@ +action = require './action' +service = require './service' +monitor = require './monitor' + +module.exports = + name: '0ssh' + type: 'service' + version: '0.1.0' + + action: action + + service: service + + static: './static' + + inject: + script: [ + 'panel' + ] + + resources: [ + 'disk' + ] + + monitor: [ + {interval: '6h', callback: monitor.disk} + ] diff --git a/plugin/0ssh/monitor.coffee b/plugin/0ssh/monitor.coffee new file mode 100644 index 0000000..377a151 --- /dev/null +++ b/plugin/0ssh/monitor.coffee @@ -0,0 +1 @@ +exports.disk = -> diff --git a/plugin/0ssh/service.coffee b/plugin/0ssh/service.coffee new file mode 100644 index 0000000..5d00945 --- /dev/null +++ b/plugin/0ssh/service.coffee @@ -0,0 +1,6 @@ +exports.enable = -> + +exports.pause = -> + +exports.delete = -> + diff --git a/plugin/0ssh/static/panel.coffee b/plugin/0ssh/static/panel.coffee new file mode 100644 index 0000000..e69de29 diff --git a/plugin/0ssh/view/modal/update_passwd.jade b/plugin/0ssh/view/modal/update_passwd.jade new file mode 100644 index 0000000..e69de29