diff options
author | Matthias <ilovemilk@wusa.io> | 2020-04-10 13:25:49 +0300 |
---|---|---|
committer | Matthias <ilovemilk@wusa.io> | 2020-04-10 13:25:49 +0300 |
commit | 133a820b88a78a4281e017d88d11bed169b5fdbf (patch) | |
tree | 0bd785eb085699b18a8283891248d77b194f5c12 /templates | |
parent | 0a92726e3f3d082ad87101dfb9819e736bcd9df7 (diff) |
add first vuejs ui version
Diffstat (limited to 'templates')
-rw-r--r-- | templates/admin.php | 35 | ||||
-rw-r--r-- | templates/index.php | 30 | ||||
-rw-r--r-- | templates/scan.php | 49 |
3 files changed, 8 insertions, 106 deletions
diff --git a/templates/admin.php b/templates/admin.php index ee36fef..32baae8 100644 --- a/templates/admin.php +++ b/templates/admin.php @@ -20,36 +20,13 @@ style('ransomware_detection', 'style'); script('ransomware_detection', 'admin'); ?> -<div id="ransomware_detection_recovery" class="section"> - <h2 class="inlineblock"><?php p($l->t('Recovery')); ?></h2> - <div class="ransomware_detection_cronjob"> +<div id="ransomware_detection_service" class="section"> + <h2 class="inlineblock"><?php p($l->t('Service')); ?></h2> + <div class="ransomware_detection_service"> <h3> - <?php p($l->t('Number of days until a sequence will be deleted')); ?> + <?php p($l->t('URI to the ransomware detection service:')); ?> </h3> - <input id="expire_days" type="text" name="expire_days" value="<?php p($_['expire_days']); ?>"/> - </div> - <div class="ransomware_detection_sequence"> - <h3> - <?php p($l->t('Minimum number of file operations contained by a sequence, that it will be shown in recovery')); ?> - </h3> - <input id="minimum_sequence_length" type="text" name="minimum_sequence_length" value="<?php p($_['minimum_sequence_length']); ?>"/> - </div> -</div> -<div id="ransomware_detection_notification" class="section"> - <h2 class="inlineblock"><?php p($l->t('Notification')); ?></h2> - <div class="ransomware_detection_notification"> - <h3> - <?php p($l->t('Suspicion threshold for notifications')); ?> - </h3> - <select id="sequence-suspicion-level" name="sequence-suspicion-level" class="suspicion-level-<?php p($_['active_suspicion_level']['code']); ?>" data-placeholder="<?php p($l->t('Sequence suspicion level'));?>"> - <option class="suspicion-level-<?php p($_['active_suspicion_level']['code']); ?>" value="<?php p($_['active_suspicion_level']['code']); ?>"> - <?php p($_['active_suspicion_level']['name']); ?> - </option> - <?php foreach ($_['suspicion_levels'] as $suspicionLevel): ?> - <option class="suspicion-level-<?php p($suspicionLevel['code']); ?>" value="<?php p($suspicionLevel['code']); ?>"> - <?php p($suspicionLevel['name']);?> - </option> - <?php endforeach; ?> - </select> + <input id="service-uri" type="text" name="service-uri" value="<?php p($_['service_uri']); ?>"/> + <button id="save"><?php p($l->t('Save')); ?></button> </div> </div> diff --git a/templates/index.php b/templates/index.php index 8793b69..13ecbad 100644 --- a/templates/index.php +++ b/templates/index.php @@ -17,33 +17,7 @@ * 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/>. */ -script('ransomware_detection', 'app'); -script('ransomware_detection', 'utils'); -script('ransomware_detection', 'filelist'); -script('ransomware_detection', 'vendor/font-awesome/fontawesome-all'); +script('ransomware_detection', 'index'); style('ransomware_detection', 'style'); ?> -<div id="app-navigation"> - <ul> - <li class="active"> - <a href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('ransomware_detection.recover.index', [])); ?>"> - <img alt="" src="<?php print_unescaped(\OC::$server->getURLGenerator()->imagePath('core', 'actions/history.svg')); ?>"> - <span>Monitoring</span> - </a> - </li> - <li> - <a href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('ransomware_detection.recover.scan', [])); ?>"> - <img alt="" src="<?php print_unescaped(\OC::$server->getURLGenerator()->imagePath('core', 'actions/search.svg')); ?>"> - <span>Scan files</span> - </a> - </li> - </ul> -</div> -<div id="app-content"> - <div id="app-content-ransomware-detection-filelist"> - <!-- Tables --> - <div class="section" id="section-loading"> - <div class="icon-loading-dark"></div> - </div> - </div> -</div> +<div id="vue-content"></div> diff --git a/templates/scan.php b/templates/scan.php deleted file mode 100644 index bd2de43..0000000 --- a/templates/scan.php +++ /dev/null @@ -1,49 +0,0 @@ -<?php -/** - * @copyright Copyright (c) 2018 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/>. - */ -script('ransomware_detection', 'app'); -script('ransomware_detection', 'utils'); -script('ransomware_detection', 'scan'); -script('ransomware_detection', 'vendor/font-awesome/fontawesome-all'); -style('ransomware_detection', 'style'); -?> -<div id="app-navigation"> - <ul> - <li> - <a href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('ransomware_detection.recover.index', [])); ?>"> - <img alt="" src="<?php print_unescaped(\OC::$server->getURLGenerator()->imagePath('core', 'actions/history.svg')); ?>"> - <span>Monitoring</span> - </a> - </li> - <li class="active"> - <a href="<?php p(\OC::$server->getURLGenerator()->linkToRoute('ransomware_detection.recover.scan', [])); ?>"> - <img alt="" src="<?php print_unescaped(\OC::$server->getURLGenerator()->imagePath('core', 'actions/search.svg')); ?>"> - <span>Scan files</span> - </a> - </li> - </ul> -</div> -<div id="app-content"> - <div id="app-content-ransomware-detection-scan"> - <!-- Tables --> - <div class="section" id="section-loading"> - <div class="icon-loading-dark"></div> - </div> - </div> -</div> |