diff options
Diffstat (limited to 'js/app.js')
-rw-r--r-- | js/app.js | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/js/app.js b/js/app.js deleted file mode 100644 index f5733dc..0000000 --- a/js/app.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * @copyright Copyright (c) 2017 Matthias Held <matthias.held@uni-konstanz.de> - * - * @author Matthias Held <matthias.held@uni-konstanz.de> - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see <https://www.gnu.org/licenses/>. - */ - -/* global OC */ -(function() { - - if (!OCA.RansomwareDetection) { - /** - * Namespace for the ransomware recovery app - * @namespace OCA.RansomwareDetection - */ - OCA.RansomwareDetection = {}; - } - - /** - * @namespace OCA.RansomwareDetection.App - */ - OCA.RansomwareDetection.App = { - utils: null, - /** - * File list for the "Ransomware recovery" section - * - * @member {OCA.RansomwareDetection.FileList} - */ - fileList: null, - /** - * Scan for the "Ransomware recovery" section - * - * @member {OCA.RansomwareDetection.Scan} - */ - scan: null, - - /** - * Initializes the ransomware recovery app - */ - initialize: function() { - if (typeof OCA.RansomwareDetection.Utils != 'undefined') { - this.utils = new OCA.RansomwareDetection.Utils(); - window.Utils = this.utils; - } - if (typeof OCA.RansomwareDetection.FileList != 'undefined') { - this.fileList = new OCA.RansomwareDetection.FileList( - $('#app-content-ransomware-detection-filelist'), {} - ); - window.FileList = this.fileList; - } - - if (typeof OCA.RansomwareDetection.Scan != 'undefined') { - this.scan = new OCA.RansomwareDetection.Scan( - $('#app-content-ransomware-detection-scan'), {} - ); - window.Scan = this.scan; - } - - OC.Plugins.attach('OCA.RansomwareDetection.App', this); - }, - - /** - * Destroy the app - */ - destroy: function() { - if (typeof OCA.RansomwareDetection.Utils != 'undefined') { - this.utils.destroy(); - this.utils = null; - } - if (typeof OCA.RansomwareDetection.Scan != 'undefined') { - this.fileList.destroy(); - this.fileList = null; - } - if (typeof OCA.RansomwareDetection.Scan != 'undefined') { - this.scan.destroy(); - this.scan = null; - } - } - } -})(); - -$(document).ready(function() { - _.defer(function() { - OCA.RansomwareDetection.App.initialize(); - }); -}); |