From b0418f730f183e74df155adf1327f8489bbc56bf Mon Sep 17 00:00:00 2001 From: John Molakvoæ Date: Thu, 6 Jul 2023 16:11:15 +0200 Subject: fix: drop legacy sharing files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- apps/files_sharing/src/files_sharing.js | 25 ------------------------- apps/files_sharing/src/files_sharing.ts | 29 +++++++++++++++++++++++++++++ apps/files_sharing/src/main.ts | 6 ------ 3 files changed, 29 insertions(+), 31 deletions(-) delete mode 100644 apps/files_sharing/src/files_sharing.js create mode 100644 apps/files_sharing/src/files_sharing.ts (limited to 'apps/files_sharing/src') diff --git a/apps/files_sharing/src/files_sharing.js b/apps/files_sharing/src/files_sharing.js deleted file mode 100644 index 0578da7f9c5..00000000000 --- a/apps/files_sharing/src/files_sharing.js +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @copyright Copyright (c) 2016 John Molakvoæ - * - * @author John Molakvoæ - * @author Julius Härtl - * - * @license AGPL-3.0-or-later - * - * 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 . - * - */ - -import '../js/app.js' -import '../js/sharedfilelist.js' diff --git a/apps/files_sharing/src/files_sharing.ts b/apps/files_sharing/src/files_sharing.ts new file mode 100644 index 00000000000..a92f7ceca93 --- /dev/null +++ b/apps/files_sharing/src/files_sharing.ts @@ -0,0 +1,29 @@ +/** + * @copyright Copyright (c) 2019 John Molakvoæ + * + * @author John Molakvoæ + * @author Julius Härtl + * + * @license AGPL-3.0-or-later + * + * 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 . + * + */ +import registerSharingViews from './views/shares' + +import './actions/acceptShareAction' +import './actions/rejectShareAction' +import './actions/restoreShareAction' + +registerSharingViews() diff --git a/apps/files_sharing/src/main.ts b/apps/files_sharing/src/main.ts index c1d91bb470d..040dd2e17ad 100644 --- a/apps/files_sharing/src/main.ts +++ b/apps/files_sharing/src/main.ts @@ -20,10 +20,6 @@ * along with this program. If not, see . * */ -import './actions/acceptShareAction' -import './actions/rejectShareAction' -import './actions/restoreShareAction' -import registerSharingViews from './views/shares' // register default shares types Object.assign(window.OC, { @@ -41,5 +37,3 @@ Object.assign(window.OC, { SHARE_TYPE_SCIENCEMESH: 15, }, }) - -registerSharingViews() -- cgit v1.2.3