From 2f6b0b2c244b7cc682a3fe193a2bdda256c1b6e4 Mon Sep 17 00:00:00 2001 From: Mauro Mura Date: Wed, 12 Jun 2024 11:57:27 +0200 Subject: [PATCH] added multiple small fixes (#350) * added multiple small fixes * fixed coding style --- css/apps/files-right-click.scss | 26 +++- css/apps/files.scss | 128 +++++++++++++++--- css/apps/settings.scss | 6 +- l10n/de.json | 12 +- l10n/de_DE.json | 12 +- l10n/en.json | 12 +- l10n/en_GB.json | 12 +- lib/AppInfo/Application.php | 7 - .../BeforeTemplateRenderedListener.php | 3 +- package-lock.json | 12 +- src/nmcfiles.ts | 80 +++++++++++ src/utils/sidebar.js | 18 +++ webpack.config.cjs | 4 +- 13 files changed, 262 insertions(+), 70 deletions(-) create mode 100644 src/nmcfiles.ts create mode 100644 src/utils/sidebar.js diff --git a/css/apps/files-right-click.scss b/css/apps/files-right-click.scss index 78324408..d59a3651 100644 --- a/css/apps/files-right-click.scss +++ b/css/apps/files-right-click.scss @@ -13,7 +13,8 @@ &[data-cy-files-list-row-action="details"], &[data-cy-files-list-row-action="edit-locally"], - &[data-cy-files-list-row-action="view"] { + &[data-cy-files-list-row-action="view"], + &[data-cy-files-list-row-action="cancel_select"] { display: none; } @@ -29,6 +30,11 @@ } } + span.icon-vue { + background-size: 24px; + } + + &[data-cy-files-list-row-action="rename"] { span.icon-vue { background-image: var(--icon-edit-dark); @@ -52,6 +58,24 @@ background-image: var(--icon-delete-dark); } } + + &[data-cy-files-list-row-action="view-in-folder"] { + span.icon-vue { + background-image: var(--icon-folder-dark); + } + } + + &[data-cy-files-list-row-action="files_zip"] { + span.icon-vue { + background-image: var(--icon-compress-zip-dark); + } + } + + &[data-cy-files-list-row-action="sharing-status-menu"] { + span.icon-vue { + background-image: var(--icon-shared-dark); + } + } } } } diff --git a/css/apps/files.scss b/css/apps/files.scss index 05ef2416..6086facc 100644 --- a/css/apps/files.scss +++ b/css/apps/files.scss @@ -28,31 +28,61 @@ .button-vue__text { padding-right: 1rem; } - } - &:nth-of-type(1) { .button-vue__icon { - background-image: var(--original-icon-star-dark); background-repeat: no-repeat; background-position: center; background-size: 1.25rem; - + svg { display: none; } } } - &:nth-of-type(2) { + &.action-item__menutoggle { + padding-right: 1rem; + } + + &.files-list__row-actions-batch-favorite { + .button-vue__icon { + background-image: var(--original-icon-star-dark); + } + } + + &.files-list__row-actions-batch-move-copy { .button-vue__icon { background-image: var(--icon-external-dark); - background-repeat: no-repeat; - background-position: center; - background-size: 1.25rem; + } + } - svg { - display: none; - } + &.files-list__row-actions-batch-download { + .button-vue__icon { + background-image: var(--icon-download-dark); + } + } + + &.files-list__row-actions-batch-delete { + .button-vue__icon { + background-image: var(--icon-delete-dark); + } + } + + &.files-list__row-actions-batch-restore { + .button-vue__icon { + background-image: var(--icon-restore-dark); + } + } + + &.files-list__row-actions-batch-files_zip { + .button-vue__icon { + background-image: var(--icon-compress-zip-dark); + } + } + + &.files-list__row-actions-batch-cancel_select { + .button-vue__icon { + background-image: var(--icon-close-dark); } } @@ -85,7 +115,7 @@ .action-item { button .button-vue__icon { - background-image: var(--icon-delete-dark); + background-image: var(--icon-more-dark); background-repeat: no-repeat; background-position: center; background-size: 1.25rem; @@ -388,6 +418,7 @@ table.files-filestable { width: 50px; img { + background-color: unset; background-position: center; background-repeat: no-repeat; background-size: contain; @@ -434,7 +465,7 @@ table.files-filestable { display: flex; .action-items { - // 'Share' status styles + button.action-item { padding: 0; @@ -444,12 +475,12 @@ table.files-filestable { } .button-vue__wrapper { + .button-vue__text { margin: 0; } .button-vue__icon { - background-image: var(--icon-shared-dark); background-position: center; background-repeat: no-repeat; background-size: 24px; @@ -460,9 +491,23 @@ table.files-filestable { } } - // color Shared icon - &.button-vue--icon-and-text .button-vue__icon { - @include magenta-icon; + &.files-list__row-action-restore { + + .button-vue__icon { + background-image: var(--icon-restore-dark); + @include magenta-icon; + } + } + + &.files-list__row-action-sharing-status { + + .button-vue__icon { + background-image: var(--icon-shared-dark); + } + + &.button-vue--icon-and-text .button-vue__icon { + @include magenta-icon; + } } } @@ -638,6 +683,10 @@ table.files-filestable { &__column { width: fit-content; + & > .action-items { + justify-content: end; + } + &.files-list__row-size { display: none; } @@ -667,11 +716,7 @@ table.files-filestable { &.files-list__row-actions-batch { @include header-menu-files(); - .action-item--single.files-list__row-actions-batch-restore { - padding-left: 0; - } - - .action-item--single.files-list__row-actions-batch-delete { + .action-item--single { padding-left: 0; } } @@ -685,4 +730,43 @@ table.files-filestable { } } } +} + +// Files actions menu items +.v-popper__popper.action-item__popper { + + li.action { + + .icon-vue { + background-size: 24px; + } + + .icon-vue svg { + display: none; + } + + &.files-list__row-actions-batch-delete .icon-vue { + background-image: var(--icon-delete-dark); + } + + &.files-list__row-actions-batch-favorite .icon-vue { + background-image: var(--original-icon-star-dark); + } + + &.files-list__row-actions-batch-move-copy .icon-vue { + background-image: var(--icon-external-dark); + } + + &.files-list__row-actions-batch-download .icon-vue { + background-image: var(--icon-download-dark); + } + + &.files-list__row-actions-batch-files_zip .icon-vue { + background-image: var(--icon-compress-zip-dark); + } + + &.files-list__row-actions-batch-cancel_select .icon-vue { + background-image: var(--icon-close-dark); + } + } } \ No newline at end of file diff --git a/css/apps/settings.scss b/css/apps/settings.scss index c120de19..1c4b6fd9 100644 --- a/css/apps/settings.scss +++ b/css/apps/settings.scss @@ -550,7 +550,7 @@ } .settings-section { - padding: 2rem; + padding: 3rem 3rem 0; border: none; &.theming { @@ -562,10 +562,6 @@ p { max-width: 800px; } - - &:not(:last-child) { - border-bottom: 1px solid var(--color-border); - } } .button-vue { diff --git a/l10n/de.json b/l10n/de.json index d150ad19..eaeda9f5 100644 --- a/l10n/de.json +++ b/l10n/de.json @@ -44,15 +44,14 @@ "Confirm": "Bestätigen", "End-to-end encryption is currently disabled. You can set it up with the {productName} clients.": "Die Ende-zu-Ende Verschlüsselung ist deaktiviert. Sie können sie in den MagentaCLOUD Apps oder Desktop Clients einrichten.", "End-to-End encryption is currently disabled. You can set it up with the {productName} clients.": "Die Ende-zu-Ende Verschlüsselung ist deaktiviert. Sie können sie in den MagentaCLOUD Apps oder Desktop Clients einrichten.", - "You are not allowed to lock the root": "Das Sperren deines gesamten Verzeichnisbaumes durch E2E-Encryption wurde verhindert!" + "You are not allowed to lock the root": "Das Sperren deines gesamten Verzeichnisbaumes durch E2E-Encryption wurde verhindert!", + "Confirm and reset end-to-end encryption": "Bestätigen und Ende-zu-Ende Verschlüsselung zurücksetzen" }, "pluralForm": "nplurals=2; plural=(n != 1);" }, "files": { "translations": { "Crop image previews": "Vorschaubilder beschneiden", - "My shares": "Meine geteilten Inhalte", - "Shared with me": "Mit mir geteilt", "All": "Alle", "Toggle grid view": "Ansicht ändern", "Display settings": "Anzeigeeinstellungen", @@ -64,7 +63,8 @@ "_{count} folder_::_{count} folders_" : ["{count} Ordner","{count} Ordner"], "_{count} file_::_{count} files_" : ["{count} Datei","{count} Dateien"], "{summaryFile} and {summaryFolder}" : "{summaryFile} und {summaryFolder}", - "_including %n hidden_::_including %n hidden_": ["davon %n versteckt","davon %n versteckt"] + "_including %n hidden_::_including %n hidden_": ["davon %n versteckt","davon %n versteckt"], + "\"{displayName}\" batch action executed successfully" : "Aktion \"{displayName}\" erfolgreich ausgeführt" }, "pluralForm": "nplurals=2; plural=(n != 1);" }, @@ -107,6 +107,8 @@ "The password must contain 10 characters and will not be sent with the mail to maintain confidentiality.": "Das Passwort muss 10 Zeichen enthalten und wird nicht mit der E-Mail verschickt, um die Vertraulichkeit zu wahren.", "Link to file": "Link zur Datei", "Link to folder": "Link zum Ordner", + "Shared with others": "Meine geteilten Inhalte", + "Shared with you": "Mit mir geteilt", "No recommendations. Start typing.": "Keine Empfehlungen.Beginnen..." }, "pluralForm": "nplurals=2; plural=(n != 1);" @@ -195,8 +197,6 @@ "used": "genutzt", "Display settings": "Anzeigeeinstellungen", "Show folder info text": "Ordnerinfotext anzeigen", - "Shared with you": "Mit mir geteilt", - "Shared with others": "Meine geteilten Inhalte", "and": "und", "System Design (Standard)" : "System-Design (Standard)", "Enable system design" : "System-Design aktivieren", diff --git a/l10n/de_DE.json b/l10n/de_DE.json index d150ad19..eaeda9f5 100644 --- a/l10n/de_DE.json +++ b/l10n/de_DE.json @@ -44,15 +44,14 @@ "Confirm": "Bestätigen", "End-to-end encryption is currently disabled. You can set it up with the {productName} clients.": "Die Ende-zu-Ende Verschlüsselung ist deaktiviert. Sie können sie in den MagentaCLOUD Apps oder Desktop Clients einrichten.", "End-to-End encryption is currently disabled. You can set it up with the {productName} clients.": "Die Ende-zu-Ende Verschlüsselung ist deaktiviert. Sie können sie in den MagentaCLOUD Apps oder Desktop Clients einrichten.", - "You are not allowed to lock the root": "Das Sperren deines gesamten Verzeichnisbaumes durch E2E-Encryption wurde verhindert!" + "You are not allowed to lock the root": "Das Sperren deines gesamten Verzeichnisbaumes durch E2E-Encryption wurde verhindert!", + "Confirm and reset end-to-end encryption": "Bestätigen und Ende-zu-Ende Verschlüsselung zurücksetzen" }, "pluralForm": "nplurals=2; plural=(n != 1);" }, "files": { "translations": { "Crop image previews": "Vorschaubilder beschneiden", - "My shares": "Meine geteilten Inhalte", - "Shared with me": "Mit mir geteilt", "All": "Alle", "Toggle grid view": "Ansicht ändern", "Display settings": "Anzeigeeinstellungen", @@ -64,7 +63,8 @@ "_{count} folder_::_{count} folders_" : ["{count} Ordner","{count} Ordner"], "_{count} file_::_{count} files_" : ["{count} Datei","{count} Dateien"], "{summaryFile} and {summaryFolder}" : "{summaryFile} und {summaryFolder}", - "_including %n hidden_::_including %n hidden_": ["davon %n versteckt","davon %n versteckt"] + "_including %n hidden_::_including %n hidden_": ["davon %n versteckt","davon %n versteckt"], + "\"{displayName}\" batch action executed successfully" : "Aktion \"{displayName}\" erfolgreich ausgeführt" }, "pluralForm": "nplurals=2; plural=(n != 1);" }, @@ -107,6 +107,8 @@ "The password must contain 10 characters and will not be sent with the mail to maintain confidentiality.": "Das Passwort muss 10 Zeichen enthalten und wird nicht mit der E-Mail verschickt, um die Vertraulichkeit zu wahren.", "Link to file": "Link zur Datei", "Link to folder": "Link zum Ordner", + "Shared with others": "Meine geteilten Inhalte", + "Shared with you": "Mit mir geteilt", "No recommendations. Start typing.": "Keine Empfehlungen.Beginnen..." }, "pluralForm": "nplurals=2; plural=(n != 1);" @@ -195,8 +197,6 @@ "used": "genutzt", "Display settings": "Anzeigeeinstellungen", "Show folder info text": "Ordnerinfotext anzeigen", - "Shared with you": "Mit mir geteilt", - "Shared with others": "Meine geteilten Inhalte", "and": "und", "System Design (Standard)" : "System-Design (Standard)", "Enable system design" : "System-Design aktivieren", diff --git a/l10n/en.json b/l10n/en.json index 03cd0043..c47f4783 100644 --- a/l10n/en.json +++ b/l10n/en.json @@ -44,22 +44,22 @@ "Confirm": "Confirm", "End-to-end encryption is currently disabled. You can set it up with the {productName} clients.": "End-to-end encryption is currently disabled. You can set it up with MagentaCLOUD clients.", "End-to-End encryption is currently disabled. You can set it up with the {productName} clients.": "End-to-End encryption is currently disabled. You can set it up with MagentaCLOUD clients.", - "You are not allowed to lock the root": "The lock of your complete file tree by end2end encryption was prohibited by the system!" + "You are not allowed to lock the root": "The lock of your complete file tree by end2end encryption was prohibited by the system!", + "Confirm and reset end-to-end encryption": "Confirm and reset end-to-end encryption" }, "pluralForm": "nplurals=2; plural=(n != 1);" }, "files": { "translations": { "Crop image previews": "Crop image previews", - "My shares": "My shares", - "Shared with me": "Shared with me", "All": "All", "Toggle grid view": "Toggle grid view", "Display settings": "Display settings", "Expand storage": "Expand storage", "Memory used up to %s%%": "Memory used up to %s%%", "of": "von", - "_including %n hidden_::_including %n hidden_": ["with %n hidden","with %n hidden"] + "_including %n hidden_::_including %n hidden_": ["with %n hidden","with %n hidden"], + "\"{displayName}\" batch action executed successfully" : "\"{displayName}\" action executed successfully" }, "pluralForm": "nplurals=2; plural=(n != 1);" }, @@ -102,6 +102,8 @@ "The password must contain 10 characters and will not be sent with the mail to maintain confidentiality.": "The password must contain 10 characters and will not be sent with the mail to maintain confidentiality.", "Link to file": "Link to file", "Link to folder": "Link to folder", + "Shared with others": "My shares", + "Shared with you": "Shared with me", "No recommendations. Start typing.": "No recommendation. Type.." }, "pluralForm": "nplurals=2; plural=(n != 1);" @@ -190,8 +192,6 @@ "used": "used", "Display settings": "Display settings", "Show folder info text": "Show folder info text", - "Shared with you": "Shared with me", - "Shared with others": "My shares", "and": "and", "System Design (Standard)" : "System Design (Standard)", "Enable system design" : "Enable system design", diff --git a/l10n/en_GB.json b/l10n/en_GB.json index 03cd0043..c47f4783 100644 --- a/l10n/en_GB.json +++ b/l10n/en_GB.json @@ -44,22 +44,22 @@ "Confirm": "Confirm", "End-to-end encryption is currently disabled. You can set it up with the {productName} clients.": "End-to-end encryption is currently disabled. You can set it up with MagentaCLOUD clients.", "End-to-End encryption is currently disabled. You can set it up with the {productName} clients.": "End-to-End encryption is currently disabled. You can set it up with MagentaCLOUD clients.", - "You are not allowed to lock the root": "The lock of your complete file tree by end2end encryption was prohibited by the system!" + "You are not allowed to lock the root": "The lock of your complete file tree by end2end encryption was prohibited by the system!", + "Confirm and reset end-to-end encryption": "Confirm and reset end-to-end encryption" }, "pluralForm": "nplurals=2; plural=(n != 1);" }, "files": { "translations": { "Crop image previews": "Crop image previews", - "My shares": "My shares", - "Shared with me": "Shared with me", "All": "All", "Toggle grid view": "Toggle grid view", "Display settings": "Display settings", "Expand storage": "Expand storage", "Memory used up to %s%%": "Memory used up to %s%%", "of": "von", - "_including %n hidden_::_including %n hidden_": ["with %n hidden","with %n hidden"] + "_including %n hidden_::_including %n hidden_": ["with %n hidden","with %n hidden"], + "\"{displayName}\" batch action executed successfully" : "\"{displayName}\" action executed successfully" }, "pluralForm": "nplurals=2; plural=(n != 1);" }, @@ -102,6 +102,8 @@ "The password must contain 10 characters and will not be sent with the mail to maintain confidentiality.": "The password must contain 10 characters and will not be sent with the mail to maintain confidentiality.", "Link to file": "Link to file", "Link to folder": "Link to folder", + "Shared with others": "My shares", + "Shared with you": "Shared with me", "No recommendations. Start typing.": "No recommendation. Type.." }, "pluralForm": "nplurals=2; plural=(n != 1);" @@ -190,8 +192,6 @@ "used": "used", "Display settings": "Display settings", "Show folder info text": "Show folder info text", - "Shared with you": "Shared with me", - "Shared with others": "My shares", "and": "and", "System Design (Standard)" : "System Design (Standard)", "Enable system design" : "Enable system design", diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 5d0828d5..69bd3b2a 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -9,7 +9,6 @@ namespace OCA\NMCTheme\AppInfo; -use Closure; use OC\AppFramework\Bootstrap\Coordinator; use OC\AppFramework\DependencyInjection\DIContainer; use OC\L10N\Factory; @@ -25,7 +24,6 @@ use OCA\NMCTheme\MimeIconProviderDecorator; use OCA\NMCTheme\NavigationManagerDecorator; use OCA\NMCTheme\Search\SearchComposerDecorator; -use OCA\NMCTheme\Service\NMCFilesService; use OCA\NMCTheme\Service\NMCThemesService; use OCA\NMCTheme\Themes\Magenta; use OCA\NMCTheme\Themes\MagentaDark; @@ -264,11 +262,6 @@ public function register(IRegistrationContext $context): void { } public function boot(IBootContext $context): void { - $context->injectFn(Closure::fromCallable([$this, 'modifyNavigation'])); - } - protected function modifyNavigation(NMCFilesService $filesService): void { - $filesService->rearrangeFilesAppNavigation(); - $filesService->addFilesAppNavigationEntries(); } } diff --git a/lib/Listener/BeforeTemplateRenderedListener.php b/lib/Listener/BeforeTemplateRenderedListener.php index 4b07687e..63765754 100644 --- a/lib/Listener/BeforeTemplateRenderedListener.php +++ b/lib/Listener/BeforeTemplateRenderedListener.php @@ -95,9 +95,8 @@ public function handle(Event $event): void { \OCP\Util::addScript("nmctheme", "nmctheme-nmclogo", "core"); \OCP\Util::addScript('nmctheme', 'nmctheme-nmcheader', "core"); \OCP\Util::addScript('nmctheme', 'nmctheme-nmcfooter', "core"); + \OCP\Util::addScript('nmctheme', 'nmctheme-nmcfiles', "core"); \OCP\Util::addScript("nmctheme", "nmctheme-mimetypes", "core"); - \OCP\Util::addScript("nmctheme", "nmctheme-newfilemenuplugin", "files"); - \OCP\Util::addScript("nmctheme", "nmctheme-filelistplugin", "files"); \OCP\Util::addScript("nmctheme", "nmctheme-filessettings", "files"); \OCP\Util::addScript("nmctheme", "nmctheme-conflictdialog"); \OCP\Util::addScript("nmctheme", "nmctheme-tooltip"); diff --git a/package-lock.json b/package-lock.json index dabb3dd8..f98f9603 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5935,9 +5935,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001522", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001522.tgz", - "integrity": "sha512-TKiyTVZxJGhsTszLuzb+6vUZSjVOAhClszBr2Ta2k9IwtNBT/4dzmL6aywt0HCgEZlmwJzXJd8yNiob6HgwTRg==", + "version": "1.0.30001632", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001632.tgz", + "integrity": "sha512-udx3o7yHJfUxMLkGohMlVHCvFvWmirKh9JAH/d7WOLPetlH+LTL5cocMZ0t7oZx/mdlOWXti97xLZWc8uURRHg==", "funding": [ { "type": "opencollective", @@ -22968,9 +22968,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001522", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001522.tgz", - "integrity": "sha512-TKiyTVZxJGhsTszLuzb+6vUZSjVOAhClszBr2Ta2k9IwtNBT/4dzmL6aywt0HCgEZlmwJzXJd8yNiob6HgwTRg==" + "version": "1.0.30001632", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001632.tgz", + "integrity": "sha512-udx3o7yHJfUxMLkGohMlVHCvFvWmirKh9JAH/d7WOLPetlH+LTL5cocMZ0t7oZx/mdlOWXti97xLZWc8uURRHg==" }, "chalk": { "version": "2.4.2", diff --git a/src/nmcfiles.ts b/src/nmcfiles.ts new file mode 100644 index 00000000..487358f9 --- /dev/null +++ b/src/nmcfiles.ts @@ -0,0 +1,80 @@ +import { getFileActions, registerFileAction, FileAction, Node, Permission, View, getNavigation } from '@nextcloud/files' +import { translate as t } from '@nextcloud/l10n' +import { sidebarAction } from './utils/sidebar.js' + +const Navigation = getNavigation() + +const sharinginView = Navigation.views.find(view => view.id === 'sharingin') + +if (sharinginView) { + sharinginView.order = 3 + Navigation.remove('sharingin') + Navigation.register(sharinginView) +} + +const filesView = Navigation.views.find(view => view.id === 'files') + +if (filesView) { + filesView.order = 10 + Navigation.remove('files') + Navigation.register(filesView) +} + +const handleCancel = async () => { + return true +} + +const fileAction = new FileAction({ + id: 'cancel_select', + order: -100, + iconSvgInline() { + return '' + }, + displayName() { + return t('files', 'Cancel') + }, + enabled() { + return true + }, + async execBatch(nodes: Node[]) { + const result = handleCancel() + return Promise.all(nodes.map(() => result)) + }, + async exec(): Promise { + const result = handleCancel() + return result + }, +}) + +registerFileAction(fileAction) + +const FileActions = getFileActions() + +const sharingStatusAction = FileActions.find(action => action.id === 'sharing-status') + +if (sharingStatusAction) { + + const sharingStatusMenuAction = new FileAction({ + id: 'sharing-status-menu', + order: -100, + iconSvgInline() { + return '' + }, + displayName() { + return t('files_sharing', 'Show sharing options') + }, + enabled() { + return true + }, + async exec(node: Node, view: View, dir: string) { + if ((node.permissions & Permission.READ) !== 0) { + window.OCA?.Files?.Sidebar?.setActiveTab?.('sharing') + return sidebarAction(node, view, dir) + } + return null + }, + }) + + registerFileAction(sharingStatusMenuAction) + +} diff --git a/src/utils/sidebar.js b/src/utils/sidebar.js new file mode 100644 index 00000000..93dd2bf3 --- /dev/null +++ b/src/utils/sidebar.js @@ -0,0 +1,18 @@ +export const sidebarAction = async (node, view, dir) => { + try { + // TODO: migrate Sidebar to use a Node instead + await window.OCA.Files.Sidebar.open(node.path) + + // Silently update current fileid + window.OCP.Files.Router.goToRoute( + null, + { view: view.id, fileid: node.fileid }, + { dir }, + true, + ) + + return null + } catch (error) { + return false + } +} diff --git a/webpack.config.cjs b/webpack.config.cjs index 9d862cd4..fa985b9d 100644 --- a/webpack.config.cjs +++ b/webpack.config.cjs @@ -4,15 +4,13 @@ const webpackConfig = require('@nextcloud/webpack-vue-config') webpackConfig.entry = { ...webpackConfig.entry, - filelistplugin: path.join(__dirname, 'src', 'js', 'filelistplugin.js'), - newfilemenuplugin: path.join(__dirname, 'src', 'js', 'newfilemenuplugin.js'), filessettings: path.join(__dirname, 'src', 'js', 'filessettings.js'), - // keep src for future use: l10nappender: './src/l10nappender.ts', conflictdialog: path.join(__dirname, 'src', 'js', 'conflictdialog.js'), mimetypes: path.join(__dirname, 'src', 'js', 'mimetypes.js'), nmcfooter: path.join(__dirname, 'src', 'nmcfooter.ts'), nmcheader: path.join(__dirname, 'src', 'nmcheader.ts'), nmclogo: path.join(__dirname, 'src', 'nmclogo.ts'), + nmcfiles: path.join(__dirname, 'src', 'nmcfiles.ts'), shareicons: path.join(__dirname, 'src', 'js', 'shareicons.js'), tooltip: path.join(__dirname, 'src', 'js', 'tooltip.js'), }