Skip to content

Commit

Permalink
Merge pull request #45178 from nextcloud/fix/style-imports
Browse files Browse the repository at this point in the history
fix: Do not import styles that are already included in server bundle
  • Loading branch information
susnux committed May 6, 2024
2 parents af82536 + b8cdc67 commit a81f954
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 18 deletions.
1 change: 0 additions & 1 deletion apps/files/src/actions/moveOrCopyAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
import '@nextcloud/dialogs/style.css'
import type { Folder, Node, View } from '@nextcloud/files'
import type { IFilePickerButton } from '@nextcloud/dialogs'
import type { FileStat, ResponseDataDetailed } from 'webdav'
Expand Down
2 changes: 0 additions & 2 deletions apps/files/src/actions/moveOrCopyActionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
*
*/

import '@nextcloud/dialogs/style.css'

import type { Folder, Node } from '@nextcloud/files'
import { Permission } from '@nextcloud/files'
import PQueue from 'p-queue'
Expand Down
5 changes: 2 additions & 3 deletions apps/files/src/plugins/search/folderSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@ import { getFilePickerBuilder } from '@nextcloud/dialogs';
import { imagePath } from '@nextcloud/router'
import { translate as t } from '@nextcloud/l10n'
import logger from '../../logger'
import '@nextcloud/dialogs/style.css'

/**
* Initialize the unified search plugin.
*/
function init() {
const OCA = window.OCA
if (!OCA.UnifiedSearch) {
return;
return
}

logger.info('Initializing unified search plugin: folder search from files app');
Expand Down Expand Up @@ -65,4 +64,4 @@ function init() {
})
}

document.addEventListener('DOMContentLoaded', init);
document.addEventListener('DOMContentLoaded', init)
4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files-init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-init.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-main.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files-search.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/files-search.js.map

Large diffs are not rendered by default.

0 comments on commit a81f954

Please sign in to comment.