chore: bump up dependencies
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/767/head
parent
101170d71d
commit
ec8a2baed0
File diff suppressed because it is too large
Load Diff
20
package.json
20
package.json
|
@ -30,20 +30,20 @@
|
||||||
"e2e": "playwright test"
|
"e2e": "playwright test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nextcloud/l10n": "^2.1.0",
|
"@nextcloud/l10n": "^2.2.0",
|
||||||
"@nextcloud/paths": "^2.1.0",
|
"@nextcloud/paths": "^2.1.0",
|
||||||
"@nextcloud/sharing": "^0.1.0",
|
"@nextcloud/sharing": "^0.1.0",
|
||||||
"@nextcloud/vue": "7.11.2",
|
"@nextcloud/vue": "7.12.1",
|
||||||
"camelcase": "^7.0.1",
|
"camelcase": "^7.0.1",
|
||||||
"filerobot-image-editor": "^4.5.1",
|
"filerobot-image-editor": "^4.5.1",
|
||||||
"fuse.js": "^6.6.2",
|
"fuse.js": "^6.6.2",
|
||||||
"hammerjs": "^2.0.8",
|
"hammerjs": "^2.0.8",
|
||||||
"justified-layout": "^4.1.0",
|
"justified-layout": "^4.1.0",
|
||||||
"leaflet": "^1.9.3",
|
"leaflet": "^1.9.4",
|
||||||
"leaflet-edgebuffer": "^1.0.6",
|
"leaflet-edgebuffer": "^1.0.6",
|
||||||
"luxon": "^3.3.0",
|
"luxon": "^3.3.0",
|
||||||
"path-posix": "^1.0.0",
|
"path-posix": "^1.0.0",
|
||||||
"photoswipe": "^5.3.7",
|
"photoswipe": "^5.3.8",
|
||||||
"plyr": "^3.7.8",
|
"plyr": "^3.7.8",
|
||||||
"react-filerobot-image-editor": "^4.5.1",
|
"react-filerobot-image-editor": "^4.5.1",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
|
@ -65,14 +65,14 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nextcloud/browserslist-config": "^2.3.0",
|
"@nextcloud/browserslist-config": "^2.3.0",
|
||||||
"@nextcloud/webpack-vue-config": "^5.5.1",
|
"@nextcloud/webpack-vue-config": "^5.5.1",
|
||||||
"@playwright/test": "^1.33.0",
|
"@playwright/test": "^1.36.1",
|
||||||
"@types/hammerjs": "^2.0.41",
|
"@types/hammerjs": "^2.0.41",
|
||||||
"@types/luxon": "^3.3.0",
|
"@types/luxon": "^3.3.1",
|
||||||
"@types/url-parse": "^1.4.8",
|
"@types/url-parse": "^1.4.8",
|
||||||
"@types/videojs-contrib-quality-levels": "^2.0.1",
|
"@types/videojs-contrib-quality-levels": "^2.0.1",
|
||||||
"playwright": "^1.33.0",
|
"playwright": "^1.36.1",
|
||||||
"ts-loader": "^9.4.2",
|
"ts-loader": "^9.4.4",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.1.6",
|
||||||
"workbox-webpack-plugin": "^6.5.4"
|
"workbox-webpack-plugin": "^7.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,6 @@ export * from './dav/archive';
|
||||||
export * from './dav/download';
|
export * from './dav/download';
|
||||||
export * from './dav/face';
|
export * from './dav/face';
|
||||||
export * from './dav/favorites';
|
export * from './dav/favorites';
|
||||||
export * from './dav/folders';
|
|
||||||
export * from './dav/onthisday';
|
export * from './dav/onthisday';
|
||||||
export * from './dav/tags';
|
export * from './dav/tags';
|
||||||
export * from './dav/other';
|
export * from './dav/other';
|
||||||
|
|
|
@ -1,73 +0,0 @@
|
||||||
import * as base from './base';
|
|
||||||
import { getCurrentUser } from '@nextcloud/auth';
|
|
||||||
import { genFileInfo } from '../FileUtils';
|
|
||||||
import { IFileInfo } from '../../types';
|
|
||||||
import client from '../DavClient';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get file infos for files in folder path
|
|
||||||
* @param folderPath Path to folder
|
|
||||||
* @param limit Max number of files to return
|
|
||||||
*/
|
|
||||||
export async function getFolderPreviewFileIds(folderPath: string, limit: number): Promise<IFileInfo[]> {
|
|
||||||
const prefixPath = `/files/${getCurrentUser()?.uid}`;
|
|
||||||
|
|
||||||
const filter = base.IMAGE_MIME_TYPES.map(
|
|
||||||
(mime) => `
|
|
||||||
<d:like>
|
|
||||||
<d:prop>
|
|
||||||
<d:getcontenttype/>
|
|
||||||
</d:prop>
|
|
||||||
<d:literal>${mime}</d:literal>
|
|
||||||
</d:like>
|
|
||||||
`
|
|
||||||
).join('');
|
|
||||||
|
|
||||||
const options = {
|
|
||||||
method: 'SEARCH',
|
|
||||||
headers: {
|
|
||||||
'content-Type': 'text/xml',
|
|
||||||
},
|
|
||||||
data: `<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<d:searchrequest xmlns:d="DAV:"
|
|
||||||
xmlns:oc="http://owncloud.org/ns"
|
|
||||||
xmlns:nc="http://nextcloud.org/ns"
|
|
||||||
xmlns:ns="https://github.com/icewind1991/SearchDAV/ns"
|
|
||||||
xmlns:ocs="http://open-collaboration-services.org/ns">
|
|
||||||
<d:basicsearch>
|
|
||||||
<d:select>
|
|
||||||
<d:prop>
|
|
||||||
${base.props}
|
|
||||||
</d:prop>
|
|
||||||
</d:select>
|
|
||||||
<d:from>
|
|
||||||
<d:scope>
|
|
||||||
<d:href>${prefixPath}/${folderPath}</d:href>
|
|
||||||
<d:depth>0</d:depth>
|
|
||||||
</d:scope>
|
|
||||||
</d:from>
|
|
||||||
<d:where>
|
|
||||||
<d:or>
|
|
||||||
${filter}
|
|
||||||
</d:or>
|
|
||||||
</d:where>
|
|
||||||
<d:limit>
|
|
||||||
<d:nresults>${limit}</d:nresults>
|
|
||||||
</d:limit>
|
|
||||||
</d:basicsearch>
|
|
||||||
</d:searchrequest>`,
|
|
||||||
deep: true,
|
|
||||||
details: true,
|
|
||||||
responseType: 'text',
|
|
||||||
};
|
|
||||||
|
|
||||||
let response: any = await client.getDirectoryContents('', options);
|
|
||||||
return response.data
|
|
||||||
.map((data: any) => genFileInfo(data))
|
|
||||||
.map((data: any) =>
|
|
||||||
Object.assign({}, data, {
|
|
||||||
filename: data.filename.replace(prefixPath, ''),
|
|
||||||
etag: data.etag.replace(/"/g, ''), // remove quotes
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
Loading…
Reference in New Issue