Skip to content

Commit cda166f

Browse files
Merge pull request #57213 from nextcloud/dependabot/npm_and_yarn/stable31/nextcloud/files-3.12.2
[stable31] build(deps): Bump @nextcloud/files from 3.12.0 to 3.12.2
2 parents 59f472c + 13e6602 commit cda166f

File tree

115 files changed

+353
-283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+353
-283
lines changed

apps/files/src/services/DropService.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import type { RootDirectory } from './DropServiceUtils'
88

99
import { Folder, Node, NodeStatus, davRootPath } from '@nextcloud/files'
1010
import { getUploader, hasConflict } from '@nextcloud/upload'
11-
import { join } from 'path'
12-
import { joinPaths } from '@nextcloud/paths'
11+
import { join } from '@nextcloud/paths'
1312
import { showError, showInfo, showSuccess, showWarning } from '@nextcloud/dialogs'
14-
import { translate as t } from '@nextcloud/l10n'
13+
import { t } from '@nextcloud/l10n'
1514
import Vue from 'vue'
1615

1716
import { Directory, traverseTree, resolveConflict, createDirectoryIfNotExists } from './DropServiceUtils'
@@ -125,7 +124,7 @@ export async function onDropExternalFiles(root: RootDirectory, destination: Fold
125124
// If the file is a directory, we need to create it first
126125
// then browse its tree and upload its contents.
127126
if (file instanceof Directory) {
128-
const absolutePath = joinPaths(davRootPath, destination.path, relativePath)
127+
const absolutePath = join(davRootPath, destination.path, relativePath)
129128
try {
130129
console.debug('Processing directory', { relativePath })
131130
await createDirectoryIfNotExists(absolutePath)

apps/files/src/services/FolderTree.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { davRemoteURL } from '@nextcloud/files'
1010
import axios from '@nextcloud/axios'
1111
import { generateOcsUrl } from '@nextcloud/router'
1212
import { getCurrentUser } from '@nextcloud/auth'
13-
import { dirname, encodePath, joinPaths } from '@nextcloud/paths'
13+
import { dirname, encodePath, join } from '@nextcloud/paths'
1414
import { getCanonicalLocale, getLanguage } from '@nextcloud/l10n'
1515

1616
import { getContents as getFiles } from './Files.ts'
@@ -51,7 +51,7 @@ const compareNodes = (a: TreeNodeData, b: TreeNodeData) => collator.compare(a.di
5151
const getTreeNodes = (tree: Tree, currentPath: string = '/', nodes: TreeNode[] = []): TreeNode[] => {
5252
const sortedTree = tree.toSorted(compareNodes)
5353
for (const { id, basename, displayName, children } of sortedTree) {
54-
const path = joinPaths(currentPath, basename)
54+
const path = join(currentPath, basename)
5555
const source = `${sourceRoot}${path}`
5656
const node: TreeNode = {
5757
source,

apps/files_trashbin/src/files_views/columns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function parseOriginalLocation(node: Node): string {
9797
}
9898

9999
const dir = dirname(path)
100-
if (dir === path) { // Node is in root folder
100+
if (dir === path || dir === '.') { // Node is in root folder
101101
return t('files_trashbin', 'All files')
102102
}
103103

apps/files_versions/src/components/Version.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ import { getCurrentUser } from '@nextcloud/auth'
124124
import { Permission, formatFileSize } from '@nextcloud/files'
125125
import { loadState } from '@nextcloud/initial-state'
126126
import { t } from '@nextcloud/l10n'
127-
import { joinPaths } from '@nextcloud/paths'
127+
import { join } from '@nextcloud/paths'
128128
import { getRootUrl } from '@nextcloud/router'
129129
import { defineComponent } from 'vue'
130130
@@ -249,7 +249,7 @@ export default defineComponent({
249249
250250
downloadURL(): string {
251251
if (this.isCurrent) {
252-
return getRootUrl() + joinPaths('/remote.php/webdav', this.fileInfo.path, this.fileInfo.name)
252+
return getRootUrl() + join('/remote.php/webdav', this.fileInfo.path, this.fileInfo.name)
253253
} else {
254254
return getRootUrl() + this.version.url
255255
}

apps/files_versions/src/utils/versions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import type { FileStat, ResponseDataDetailed } from 'webdav'
99

1010
import { generateRemoteUrl, generateUrl } from '@nextcloud/router'
1111
import { getCurrentUser } from '@nextcloud/auth'
12-
import { joinPaths, encodePath } from '@nextcloud/paths'
12+
import { join, encodePath } from '@nextcloud/paths'
1313
import moment from '@nextcloud/moment'
1414
import axios from '@nextcloud/axios'
1515

@@ -97,7 +97,7 @@ function formatVersion(version: any, fileInfo: any): Version {
9797
})
9898
} else {
9999
previewUrl = generateUrl('/apps/files_versions/preview?file={file}&version={fileVersion}&mimeFallback=1', {
100-
file: joinPaths(fileInfo.path, fileInfo.name),
100+
file: join(fileInfo.path, fileInfo.name),
101101
fileVersion: version.basename,
102102
})
103103
}
@@ -117,7 +117,7 @@ function formatVersion(version: any, fileInfo: any): Version {
117117
mtime,
118118
permissions: 'R',
119119
previewUrl,
120-
url: joinPaths('/remote.php/dav', version.filename),
120+
url: join('/remote.php/dav', version.filename),
121121
source: generateRemoteUrl('dav') + encodePath(version.filename),
122122
fileVersion: version.basename,
123123
}

core/src/OC/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
dirname,
2020
encodePath,
2121
isSamePath,
22-
joinPaths,
22+
join,
2323
} from '@nextcloud/paths'
2424
import {
2525
build as buildQueryString,
@@ -187,7 +187,7 @@ export default {
187187
/**
188188
* @deprecated 18.0.0 use https://www.npmjs.com/package/@nextcloud/paths
189189
*/
190-
joinPaths,
190+
joinPaths: join,
191191

192192
/**
193193
* Host (url) helpers

cypress.config.ts

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -128,33 +128,12 @@ export default defineConfig({
128128
specPattern: ['core/**/*.cy.ts', 'apps/**/*.cy.ts'],
129129
devServer: {
130130
framework: 'vue',
131-
bundler: 'webpack',
132-
webpackConfig: async () => {
133-
process.env.npm_package_name = 'NcCypress'
134-
process.env.npm_package_version = '1.0.0'
135-
process.env.NODE_ENV = 'development'
136-
137-
/**
138-
* Needed for cypress stubbing
139-
*
140-
* @see https://github.com/sinonjs/sinon/issues/1121
141-
* @see https://github.com/cypress-io/cypress/issues/18662
142-
*/
143-
const babel = require('./babel.config.js')
144-
babel.plugins.push([
145-
'@babel/plugin-transform-modules-commonjs',
146-
{
147-
loose: true,
148-
},
149-
])
150-
151-
const config = webpackConfig
152-
config.module.rules.push({
153-
test: /\.svg$/,
154-
type: 'asset/source',
155-
})
156-
157-
return config
131+
bundler: 'vite',
132+
async viteConfig() {
133+
const { default: vue } = await import('@vitejs/plugin-vue2')
134+
return {
135+
plugins: [vue()],
136+
}
158137
},
159138
},
160139
},

dist/1252-1252.js.license

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ This file is generated from multiple sources. Included packages:
6161
- version: 3.3.3
6262
- license: GPL-3.0-or-later
6363
- @nextcloud/files
64-
- version: 3.12.0
64+
- version: 3.12.2
6565
- license: AGPL-3.0-or-later
6666
- @nextcloud/initial-state
6767
- version: 2.2.0
@@ -70,14 +70,17 @@ This file is generated from multiple sources. Included packages:
7070
- version: 3.4.1
7171
- license: GPL-3.0-or-later
7272
- @nextcloud/logger
73-
- version: 3.0.2
73+
- version: 3.0.3
7474
- license: GPL-3.0-or-later
7575
- @nextcloud/paths
76-
- version: 2.4.0
76+
- version: 3.0.0
7777
- license: GPL-3.0-or-later
7878
- @nextcloud/router
7979
- version: 3.1.0
8080
- license: GPL-3.0-or-later
81+
- @nextcloud/initial-state
82+
- version: 3.0.0
83+
- license: GPL-3.0-or-later
8184
- @nextcloud/sharing
8285
- version: 0.3.0
8386
- license: GPL-3.0-or-later

dist/1642-1642.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ This file is generated from multiple sources. Included packages:
4444
- version: 3.4.1
4545
- license: GPL-3.0-or-later
4646
- @nextcloud/logger
47-
- version: 3.0.2
47+
- version: 3.0.3
4848
- license: GPL-3.0-or-later
4949
- @nextcloud/router
5050
- version: 3.1.0

dist/2452-2452.js.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ This file is generated from multiple sources. Included packages:
4141
- version: 3.4.1
4242
- license: GPL-3.0-or-later
4343
- @nextcloud/logger
44-
- version: 3.0.2
44+
- version: 3.0.3
4545
- license: GPL-3.0-or-later
4646
- @nextcloud/router
4747
- version: 3.1.0

0 commit comments

Comments
 (0)