Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion apps/files_versions/src/views/FilesVersionsSidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,14 @@ function compareVersion(version: Version) {
const _versions = versions.value.map((version) => ({ ...version, previewUrl: undefined }))

window.OCA.Viewer.compare(
{ path: props.node!.path },
{
fileid: props.node!.fileid,
filename: props.node!.path,
basename: props.node!.basename,
source: props.node!.source,
mime: props.node!.mime,
hasPreview: props.node!.attributes?.['has-preview'] ?? false,
},
_versions.find((v) => v.source === version.source),
)
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files_versions-sidebar-tab.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/FilesVersionsSidebarTab-DY_JqX5x.chunk.mjs'),window.OC.filePath('', '', 'dist/index-Dw0lvPB8.chunk.mjs'),window.OC.filePath('', '', 'dist/index-DidlHano.chunk.mjs'),window.OC.filePath('', '', 'dist/index-DMSrybJG.chunk.mjs'),window.OC.filePath('', '', 'dist/runtime-dom.esm-bundler-DWlT_qCz.chunk.mjs'),window.OC.filePath('', '', 'dist/createElementId-DhjFt1I9-DwLQ0IbM.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-Bq3q05SR.chunk.mjs'),window.OC.filePath('', '', 'dist/index-DgEyzq8A.chunk.mjs'),window.OC.filePath('', '', 'dist/createElementId-DhjFt1I9-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/logger-D3RVzcfQ-BLNfN5pN.chunk.mjs'),window.OC.filePath('', '', 'dist/logger-D3RVzcfQ-Ks0gkIDB.chunk.css'),window.OC.filePath('', '', 'dist/mdi-CXnzHoO3.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/index-BaQM1-G8.chunk.css'),window.OC.filePath('', '', 'dist/NcNoteCard-mI7qVZ9j-CAZQGAeu.chunk.mjs'),window.OC.filePath('', '', 'dist/NcNoteCard-mI7qVZ9j-BWNFKLbC.chunk.css'),window.OC.filePath('', '', 'dist/index-D7GI1-GX.chunk.mjs'),window.OC.filePath('', '', 'dist/folder-29HuacU_-BT9jYpev.chunk.mjs'),window.OC.filePath('', '', 'dist/index-sH3U_332.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-BZM5kEUt.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-B3DMd8SU.chunk.css'),window.OC.filePath('', '', 'dist/NcActionRouter-vYFtIOzD-5sr6GOI-.chunk.mjs'),window.OC.filePath('', '', 'dist/NcActionRouter-vYFtIOzD-b9UhLDij.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-1KxMUN7V-DoNpHxmW.chunk.mjs'),window.OC.filePath('', '', 'dist/index-CbaVhrdo.chunk.mjs'),window.OC.filePath('', '', 'dist/colors-Cv9F-jWS-CLqs6A-2.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-BF5OEQFU-CJVyYjdW.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-BF5OEQFU-Bq_6hmXG.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-1KxMUN7V-BCJwOkRP.chunk.css'),window.OC.filePath('', '', 'dist/NcDateTime.vue_vue_type_script_setup_true_lang-BJuPH7S7-DRIRDh6d.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-Dp00hTd6.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-BYHxARP-.chunk.css'),window.OC.filePath('', '', 'dist/TrayArrowDown-CdJ4bgsP.chunk.mjs'),window.OC.filePath('', '', 'dist/TrayArrowDown-BEbvWlY3.chunk.css'),window.OC.filePath('', '', 'dist/dav-B8C3ah_d.chunk.mjs'),window.OC.filePath('', '', 'dist/index-jvbNFgEU.chunk.mjs'),window.OC.filePath('', '', 'dist/files_versions-FilesVersionsSidebarTab-Cjl2hr1y.chunk.css')])))=>i.map(i=>d[i]);
import{i as s,_ as e}from"./index-DidlHano.chunk.mjs";import{r}from"./index-D7GI1-GX.chunk.mjs";import{t}from"./translation-DoG5ZELJ-Bq3q05SR.chunk.mjs";import{d as m,a as n}from"./runtime-dom.esm-bundler-DWlT_qCz.chunk.mjs";import{F as a}from"./folder-29HuacU_-BT9jYpev.chunk.mjs";import"./index-DgEyzq8A.chunk.mjs";import"./index-sH3U_332.chunk.mjs";const d='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-backup-restore" viewBox="0 0 24 24"><path d="M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z" /></svg>',i="files-versions_sidebar-tab";r({id:"files_versions",tagName:i,order:90,displayName:t("files_versions","Versions"),iconSvgInline:d,enabled({node:o}){return!(s()||o.type!==a.File)},async onInit(){const o=n(()=>e(()=>import("./FilesVersionsSidebarTab-DY_JqX5x.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url));window.customElements.define(i,m(o,{shadowRoot:!1}))}});
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/FilesVersionsSidebarTab-DTmTWUPl.chunk.mjs'),window.OC.filePath('', '', 'dist/index-Dw0lvPB8.chunk.mjs'),window.OC.filePath('', '', 'dist/index-DidlHano.chunk.mjs'),window.OC.filePath('', '', 'dist/index-DMSrybJG.chunk.mjs'),window.OC.filePath('', '', 'dist/runtime-dom.esm-bundler-DWlT_qCz.chunk.mjs'),window.OC.filePath('', '', 'dist/createElementId-DhjFt1I9-DwLQ0IbM.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-Bq3q05SR.chunk.mjs'),window.OC.filePath('', '', 'dist/index-DgEyzq8A.chunk.mjs'),window.OC.filePath('', '', 'dist/createElementId-DhjFt1I9-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/logger-D3RVzcfQ-BLNfN5pN.chunk.mjs'),window.OC.filePath('', '', 'dist/logger-D3RVzcfQ-Ks0gkIDB.chunk.css'),window.OC.filePath('', '', 'dist/mdi-CXnzHoO3.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/index-BaQM1-G8.chunk.css'),window.OC.filePath('', '', 'dist/NcNoteCard-mI7qVZ9j-CAZQGAeu.chunk.mjs'),window.OC.filePath('', '', 'dist/NcNoteCard-mI7qVZ9j-BWNFKLbC.chunk.css'),window.OC.filePath('', '', 'dist/index-D7GI1-GX.chunk.mjs'),window.OC.filePath('', '', 'dist/folder-29HuacU_-BT9jYpev.chunk.mjs'),window.OC.filePath('', '', 'dist/index-sH3U_332.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-BZM5kEUt.chunk.mjs'),window.OC.filePath('', '', 'dist/PencilOutline-B3DMd8SU.chunk.css'),window.OC.filePath('', '', 'dist/NcActionRouter-vYFtIOzD-5sr6GOI-.chunk.mjs'),window.OC.filePath('', '', 'dist/NcActionRouter-vYFtIOzD-b9UhLDij.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-1KxMUN7V-DoNpHxmW.chunk.mjs'),window.OC.filePath('', '', 'dist/index-CbaVhrdo.chunk.mjs'),window.OC.filePath('', '', 'dist/colors-Cv9F-jWS-CLqs6A-2.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-BF5OEQFU-CJVyYjdW.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-BF5OEQFU-Bq_6hmXG.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-1KxMUN7V-BCJwOkRP.chunk.css'),window.OC.filePath('', '', 'dist/NcDateTime.vue_vue_type_script_setup_true_lang-BJuPH7S7-DRIRDh6d.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-Dp00hTd6.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-BYHxARP-.chunk.css'),window.OC.filePath('', '', 'dist/TrayArrowDown-CdJ4bgsP.chunk.mjs'),window.OC.filePath('', '', 'dist/TrayArrowDown-BEbvWlY3.chunk.css'),window.OC.filePath('', '', 'dist/dav-B8C3ah_d.chunk.mjs'),window.OC.filePath('', '', 'dist/index-jvbNFgEU.chunk.mjs'),window.OC.filePath('', '', 'dist/files_versions-FilesVersionsSidebarTab-Cjl2hr1y.chunk.css')])))=>i.map(i=>d[i]);
import{i as s,_ as e}from"./index-DidlHano.chunk.mjs";import{r}from"./index-D7GI1-GX.chunk.mjs";import{t}from"./translation-DoG5ZELJ-Bq3q05SR.chunk.mjs";import{d as m,a as n}from"./runtime-dom.esm-bundler-DWlT_qCz.chunk.mjs";import{F as a}from"./folder-29HuacU_-BT9jYpev.chunk.mjs";import"./index-DgEyzq8A.chunk.mjs";import"./index-sH3U_332.chunk.mjs";const d='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-backup-restore" viewBox="0 0 24 24"><path d="M12,3A9,9 0 0,0 3,12H0L4,16L8,12H5A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19C10.5,19 9.09,18.5 7.94,17.7L6.5,19.14C8.04,20.3 9.94,21 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M14,12A2,2 0 0,0 12,10A2,2 0 0,0 10,12A2,2 0 0,0 12,14A2,2 0 0,0 14,12Z" /></svg>',i="files-versions_sidebar-tab";r({id:"files_versions",tagName:i,order:90,displayName:t("files_versions","Versions"),iconSvgInline:d,enabled({node:o}){return!(s()||o.type!==a.File)},async onInit(){const o=n(()=>e(()=>import("./FilesVersionsSidebarTab-DTmTWUPl.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36]),import.meta.url));window.customElements.define(i,m(o,{shadowRoot:!1}))}});
//# sourceMappingURL=files_versions-sidebar-tab.mjs.map
Loading