aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-01-25 16:50:27 +0100
committerGitHub <noreply@github.com>2024-01-25 16:50:27 +0100
commita2d795ffe2899bbe0e3735186bbe7fdb0f5ee0e4 (patch)
treeb7b77bd7c468433e8755e177f305e065c0e937e5 /apps/files
parent342d7534744d508ad5e0da254e85ebdd42f60ddb (diff)
parent92d5fbb15177f5c858914913d6b336362ac91777 (diff)
downloadnextcloud-server-a2d795ffe2899bbe0e3735186bbe7fdb0f5ee0e4.tar.gz
nextcloud-server-a2d795ffe2899bbe0e3735186bbe7fdb0f5ee0e4.zip
Merge pull request #43104 from nextcloud/chore/cleanup
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/list.php45
-rw-r--r--apps/files/simplelist.php35
-rw-r--r--apps/files/templates/appnavigation.php93
-rw-r--r--apps/files/templates/fileexists.html31
-rw-r--r--apps/files/templates/simplelist.php39
5 files changed, 0 insertions, 243 deletions
diff --git a/apps/files/list.php b/apps/files/list.php
deleted file mode 100644
index 5f1bc07f499..00000000000
--- a/apps/files/list.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-/**
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- *
- * @author Christoph Wurst <christoph@winzerhof-wurst.at>
- * @author John Molakvoæ <skjnldsv@protonmail.com>
- * @author Robin Appelman <robin@icewind.nl>
- * @author Vincent Petry <vincent@nextcloud.com>
- *
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * 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, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
- */
-use OCP\IConfig;
-use OCP\IUserSession;
-use OCP\Server;
-use OCP\Share\IManager;
-
-$config = Server::get(IConfig::class);
-$userSession = Server::get(IUserSession::class);
-// TODO: move this to the generated config.js
-/** @var IManager $shareManager */
-$shareManager = Server::get(IManager::class);
-$publicUploadEnabled = $shareManager->shareApiLinkAllowPublicUpload() ? 'yes' : 'no';
-
-$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
-
-// renders the controls and table headers template
-$tmpl = new OCP\Template('files', 'list', '');
-
-// gridview not available for ie
-$tmpl->assign('showgridview', $showgridview);
-$tmpl->assign('publicUploadEnabled', $publicUploadEnabled);
-$tmpl->printPage();
diff --git a/apps/files/simplelist.php b/apps/files/simplelist.php
deleted file mode 100644
index b20bdcc9c63..00000000000
--- a/apps/files/simplelist.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-/**
- * @copyright Copyright (c) 2016, ownCloud, Inc.
- *
- * @author Christoph Wurst <christoph@winzerhof-wurst.at>
- * @author John Molakvoæ <skjnldsv@protonmail.com>
- * @author Vincent Petry <vincent@nextcloud.com>
- *
- * @license AGPL-3.0
- *
- * This code is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Affero General Public License, version 3,
- * as published by the Free Software Foundation.
- *
- * 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, version 3,
- * along with this program. If not, see <http://www.gnu.org/licenses/>
- *
- */
-// TODO: move to handlebars
-$config = \OC::$server->getConfig();
-$userSession = \OC::$server->getUserSession();
-
-$showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false);
-
-// renders the controls and table headers template
-$tmpl = new OCP\Template('files', 'simplelist', '');
-
-// gridview not available for ie
-$tmpl->assign('showgridview', $showgridview);
-$tmpl->printPage();
diff --git a/apps/files/templates/appnavigation.php b/apps/files/templates/appnavigation.php
deleted file mode 100644
index d2b57b03eca..00000000000
--- a/apps/files/templates/appnavigation.php
+++ /dev/null
@@ -1,93 +0,0 @@
-<div id="app-navigation-files" role="navigation"></div>
-<div class="hidden">
- <ul class="with-icon" tabindex="0">
- <?php
- $pinned = 0;
- foreach ($_['navigationItems'] as $item) {
- $pinned = NavigationListElements($item, $l, $pinned);
- }
- ?>
- </ul>
-</div>
-
-
-<?php
-
-/**
- * Prints the HTML for a single Entry.
- *
- * @param $item The item to be added
- * @param $l Translator
- * @param $pinned IntegerValue to count the pinned entries at the bottom
- *
- * @return int Returns the pinned value
- */
-function NavigationListElements($item, $l, $pinned) {
- strpos($item['classes'] ?? '', 'pinned') !== false ? $pinned++ : ''; ?>
- <li
- data-id="<?php p($item['id']) ?>"
- <?php if (isset($item['dir'])) { ?> data-dir="<?php p($item['dir']); ?>" <?php } ?>
- <?php if (isset($item['view'])) { ?> data-view="<?php p($item['view']); ?>" <?php } ?>
- <?php if (isset($item['expandedState'])) { ?> data-expandedstate="<?php p($item['expandedState']); ?>" <?php } ?>
- class="nav-<?php p($item['id']) ?>
- <?php if (isset($item['classes'])) {
- p($item['classes']);
- } ?>
- <?php p($pinned === 1 ? 'first-pinned' : '') ?>
- <?php if (isset($item['defaultExpandedState']) && $item['defaultExpandedState']) { ?> open<?php } ?>"
- <?php if (isset($item['folderPosition'])) { ?> folderposition="<?php p($item['folderPosition']); ?>" <?php } ?>>
-
- <a href="<?php p($item['href'] ?? '#') ?>"
- class="nav-icon-<?php p(isset($item['icon']) && $item['icon'] !== '' ? $item['icon'] : $item['id']) ?> svg"><?php p($item['name']); ?></a>
-
-
- <?php
- NavigationElementMenu($item);
- if (isset($item['sublist'])) {
- ?>
- <button class="collapse app-navigation-noclose" aria-expanded="<?= !empty($item['defaultExpandedState']) ? 'true' : 'false' ?>"
- aria-label="<?php p($l->t('Toggle %1$s sublist', $item['name'])) ?>"
- <?php if (sizeof($item['sublist']) == 0) { ?> style="display: none" <?php } ?>>
- </button>
- <ul id="sublist-<?php p($item['id']); ?>">
- <?php
- foreach ($item['sublist'] as $item) {
- $pinned = NavigationListElements($item, $l, $pinned);
- } ?>
- </ul>
- <?php
- } ?>
- </li>
-
-
- <?php
- return $pinned;
-}
-
-/**
- * Prints the HTML for a dotmenu.
- *
- * @param $item The item to be added
- *
- * @return void
- */
-function NavigationElementMenu($item) {
- if (isset($item['menubuttons']) && $item['menubuttons'] === 'true') {
- ?>
- <div id="dotmenu-<?php p($item['id']); ?>"
- class="app-navigation-entry-utils" <?php if (isset($item['enableMenuButton']) && $item['enableMenuButton'] === 0) { ?> style="display: none"<?php } ?>>
- <ul>
- <li class="app-navigation-entry-utils-menu-button svg">
- <button id="dotmenu-button-<?php p($item['id']) ?>"></button>
- </li>
- </ul>
- </div>
- <div id="dotmenu-content-<?php p($item['id']) ?>"
- class="app-navigation-entry-menu">
- <ul>
-
- </ul>
- </div>
- <?php
- }
-}
diff --git a/apps/files/templates/fileexists.html b/apps/files/templates/fileexists.html
deleted file mode 100644
index e3513237d2b..00000000000
--- a/apps/files/templates/fileexists.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<div id="{dialog_name}" title="{title}" class="fileexists">
- <span class="why">{why}<!-- Which files do you want to keep --></span><br/>
- <span class="what">{what}<!-- If you select both versions, the copied file will have a number added to its name. --></span><br/>
- <br/>
- <table>
- <th><input id="checkbox-allnewfiles" class="allnewfiles checkbox" type="checkbox" /><label for="checkbox-allnewfiles">{allnewfiles}<span class="count"></span></label></th>
- <th><input id="checkbox-allexistingfiles" class="allexistingfiles checkbox" type="checkbox" /><label for="checkbox-allexistingfiles">{allexistingfiles}<span class="count"></span></label></th>
- </table>
- <div class="conflicts">
- <div class="template">
- <div class="filename"></div>
- <div class="replacement">
- <input type="checkbox" class="checkbox u-left"/>
- <label>
- <span class="svg icon"></span>
- <div class="mtime"></div>
- <div class="size"></div>
- </label>
- </div>
- <div class="original">
- <input type="checkbox" class="checkbox u-left" />
- <label>
- <span class="svg icon"></span>
- <div class="mtime"></div>
- <div class="size"></div>
- <div class="message"></div>
- </label>
- </div>
- </div>
- </div>
-</div>
diff --git a/apps/files/templates/simplelist.php b/apps/files/templates/simplelist.php
deleted file mode 100644
index fc0a9fb38c9..00000000000
--- a/apps/files/templates/simplelist.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<div class="emptyfilelist emptycontent hidden">
- <div class="icon-starred"></div>
- <h2><?php p($l->t('No favorites yet')); ?></h2>
- <p><?php p($l->t('Files and folders you mark as favorite will show up here')); ?></p>
-</div>
-
-<div class="nofilterresults emptycontent hidden">
- <div class="icon-search"></div>
- <h2><?php p($l->t('No entries found in this folder')); ?></h2>
- <p></p>
-</div>
-<table class="files-filestable list-container <?php p($_['showgridview'] ? 'view-grid' : '') ?>">
- <thead>
- <tr>
- <th class="hidden column-name">
- <div class="column-name-container">
- <a class="name sort columntitle" onclick="event.preventDefault()" href="#" data-sort="name"><span><?php p($l->t('Name')); ?></span><span class="sort-indicator"></span></a>
- </div>
- </th>
- <th class="hidden column-size">
- <a class="size sort columntitle" onclick="event.preventDefault()" href="#" data-sort="size"><span><?php p($l->t('Size')); ?></span><span class="sort-indicator"></span></a>
- </th>
- <th class="hidden column-mtime">
- <a class="columntitle" onclick="event.preventDefault()" href="#" data-sort="mtime"><span><?php p($l->t('Modified')); ?></span><span class="sort-indicator"></span></a>
- <span class="selectedActions">
- <a onclick="event.preventDefault()" href="#" class="delete-selected">
- <img class="svg" alt=""
- src="<?php print_unescaped(OCP\Template::image_path("core", "actions/delete.svg")); ?>" />
- <?php p($l->t('Delete'))?>
- </a>
- </span>
- </th>
- </tr>
- </thead>
- <tbody class="files-fileList">
- </tbody>
- <tfoot>
- </tfoot>
-</table>