diff options
author | Azul <azul@riseup.net> | 2020-06-02 12:43:34 +0300 |
---|---|---|
committer | Azul <azul@riseup.net> | 2020-06-09 19:00:35 +0300 |
commit | 27f664be416941da318304805f16db371d8a09ab (patch) | |
tree | 43bc853037526e2169808b6f9ec4cb35174af2ae /js/files-modal.js | |
parent | aeaffb07cc6a0bd8887d86781891d733ab00eb23 (diff) |
allow relative image sources with fileid
includes a unit test for turning the src in markdown
into a src for html that can be resolved by nextcloud
Signed-off-by: Azul <azul@riseup.net>
Diffstat (limited to 'js/files-modal.js')
-rw-r--r-- | js/files-modal.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/files-modal.js b/js/files-modal.js index 437ab9352..8b1263926 100644 --- a/js/files-modal.js +++ b/js/files-modal.js @@ -1,2 +1,2 @@ -(window.textWebpackJsonp=window.textWebpackJsonp||[]).push([[194],{666:function(e,t,l){"use strict";l.r(t);var a=l(629),i={name:"PublicFilesEditor",components:{Modal:l.n(a).a,EditorWrapper:function(){return Promise.all([l.e(0),l.e(188),l.e(197),l.e(189)]).then(l.bind(null,176))}},props:{fileId:{type:Number,default:null},relativePath:{type:String,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mimeType:{type:String,default:null}},computed:{fileName:function(){return this.relativePath.substring(this.relativePath.lastIndexOf("/")+1)}},methods:{close:function(){this.active=!1}}},n=l(19),r=Object(n.a)(i,(function(){var e=this,t=e.$createElement,l=e._self._c||t;return e.active?l("Modal",{attrs:{title:e.fileName},on:{close:e.close}},[l("EditorWrapper",{attrs:{"file-id":e.fileId,"relative-path":e.relativePath,active:e.active,"share-token":e.shareToken,mime:e.mimeType}})],1):e._e()}),[],!1,null,null,null);t.default=r.exports}}]); -//# sourceMappingURL=files-modal.js.map?v=6cb51dfc4d0844e40846
\ No newline at end of file +(window.textWebpackJsonp=window.textWebpackJsonp||[]).push([[194],{667:function(e,t,l){"use strict";l.r(t);var a=l(630),i={name:"PublicFilesEditor",components:{Modal:l.n(a).a,EditorWrapper:function(){return Promise.all([l.e(0),l.e(188),l.e(197),l.e(189)]).then(l.bind(null,176))}},props:{fileId:{type:Number,default:null},relativePath:{type:String,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mimeType:{type:String,default:null}},computed:{fileName:function(){return this.relativePath.substring(this.relativePath.lastIndexOf("/")+1)}},methods:{close:function(){this.active=!1}}},n=l(19),r=Object(n.a)(i,(function(){var e=this,t=e.$createElement,l=e._self._c||t;return e.active?l("Modal",{attrs:{title:e.fileName},on:{close:e.close}},[l("EditorWrapper",{attrs:{"file-id":e.fileId,"relative-path":e.relativePath,active:e.active,"share-token":e.shareToken,mime:e.mimeType}})],1):e._e()}),[],!1,null,null,null);t.default=r.exports}}]); +//# sourceMappingURL=files-modal.js.map?v=e10223cdbcec7be066f6
\ No newline at end of file |