server/dist/files-sidebar.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

2 строки
52 KiB
JavaScript
Исходник Постоянная ссылка Обычный вид История

(()=>{var e,i,s,n={9165:(t,e,i)=>{"use strict";i.d(e,{NZC:()=>s,ZL5:()=>r,dF:()=>o,fEr:()=>n});var s="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z",n="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",r="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",o="M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z"},85638:(t,e,i)=>{"use strict";const{XMLParser:s,XMLValidator:n}=i(86454),r=t=>{if(null==t)return!1;if(0===(t=t.toString().trim()).length)return!1;if(!0!==n.validate(t))return!1;let e;const i=new s;try{e=i.parse(t)}catch(t){return!1}return!!e&&"svg"in e};t.exports=r,t.exports.default=r},61710:(e,i,s)=>{"use strict";var n=s(85471),r=s(53334),o=s(21777),a=s(87485),d=s(85168),l=s(61338),c=s(35810),u=s(71225),p=s(63814),h=s(77905),f=s(9165),m=s(65043),g=s(74692),E=s.n(g),y=s(35190),b=s(89257),A=s(4604),v=s(34196),w=s(6695);const N={name:"LegacyView",props:{component:{type:Object,required:!0},fileInfo:{type:Object,default:()=>{},required:!0}},watch:{fileInfo(t){this.setFileInfo(t)}},mounted(){this.component.$el.replaceAll(this.$el),this.setFileInfo(this.fileInfo)},methods:{setFileInfo(t){this.component.setFileInfo(new OCA.Files.FileInfoModel(t))}}};var I=s(14486);const T=(0,I.A)(N,(function(){return(0,this._self._c)("div")}),[],!1,null,null,null).exports,O={name:"SidebarTab",components:{NcAppSidebarTab:s(46503).A,NcEmptyContent:v.A},props:{fileInfo:{type:Object,default:()=>{},required:!0},id:{type:String,required:!0},name:{type:String,required:!0},icon:{type:String,required:!1},onMount:{type:Function,required:!0},onUpdate:{type:Function,required:!0},onDestroy:{type:Function,required:!0},onScrollBottomReached:{type:Function,default:()=>{}}},data:()=>({loading:!0}),computed:{activeTab(){return this.$parent.activeTab}},watch:{async fileInfo(t,e){t.id!==e.id&&(this.loading=!0,await this.onUpdate(this.fileInfo),this.loading=!1)}},async mounted(){this.loading=!0,await this.onMount(this.$refs.mount,this.fileInfo,this.$refs.tab),this.loading=!1},async beforeDestroy(){await this.onDestroy()}},L=(0,I.A)(O,(function(){var t=this,e=t._self._c;return e("NcAppSidebarTab",{ref:"tab",attrs:{id:t.id,name:t.name,icon:t.icon},on:{bottomReached:t.onScrollBottomReached},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon")]},proxy:!0}],null,!0)},[t._v(" "),t.loading?e("NcEmptyContent",{attrs:{icon:"icon-loading"}}):t._e(),t._v(" "),e("div",{ref:"mount"})],1)}),[],!1,null,null,null).exports;var S=s(84237),_=s(5212),R=s(71654);const C={userVisible:!0,userAssignable:!0,canAssign:!0},x=t=>t.map((t=>{let{props:e}=t;return Object.fromEntries(Object.entries(e).map((t=>{let[e,i]=t;return[(0,R.A)(e),"displayName"===(0,R.A)(e)?String(i):i]})))})),$=t=>{if("name"in t&&!("displayName"in t))return{...t};const e={...t};return e.name=e.displayName,delete e.displayName,e};var F=s(60669);const D=(0,p.dC)("dav"),P=(0,F.UU)(D),M=t=>{P.setHeaders({"X-Requested-With":"XMLHttpRequest",requesttoken:t??""})};(0,o.zo)(M),M((0,o.do)());var U=s(35947);const j=(0,U.YK)().setApp("systemtags").detectUser().build(),B='<?xml version="1.0"?>\n<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">\n\t<d:prop>\n\t\t<oc:id />\n\t\t<oc:display-name />\n\t\t<oc:user-visible />\n\t\t<oc:user-assignable />\n\t\t<oc:can-assign />\n\t</d:prop>\n</d:propfind>',G=async(e,i)=>{const s="/systemtags-relations/files/"+i+"/"+e.id,n=$(e);try{await P.customRequest(s,{method:"PUT",data:n})}catch(e){throw j.error(t("systemtags","Failed to set tag for file"),{error:e}),new Error(t("systemtags","Failed to set tag for file"))}},k=n.Ay.extend({name:"SystemTags",components:{NcLoadingIcon:S.A,NcSelectTags:_.A},props:{fileId:{type:Number,required:!0},disabled:{type:Boolean,default:!1}},data:()=>({sortedTags:[],selectedTags:[],loadingTags:!1,loading:!1}),async
//# sourceMappingURL=files-sidebar.js.map?v=58a06493961c083244a8