diff options
Diffstat (limited to 'dist/dashboard-dashboard-main.js')
-rw-r--r-- | dist/dashboard-dashboard-main.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dist/dashboard-dashboard-main.js b/dist/dashboard-dashboard-main.js index 16facab1991..697d5c2903b 100644 --- a/dist/dashboard-dashboard-main.js +++ b/dist/dashboard-dashboard-main.js @@ -1,3 +1,6 @@ -/*! For license information please see dashboard-dashboard-main.js.LICENSE.txt */ -(()=>{"use strict";var n,a={63308:(n,a,e)=>{var o=e(20144),r=e(16453),s=e(22200),i=e(47450),d=e.n(i),c=e(9980),l=e.n(c),A=e(4820),u=e(79753);const p={data(){return{isMobile:this._isMobile()}},beforeMount(){window.addEventListener("resize",this._onResize)},beforeDestroy(){window.removeEventListener("resize",this._onResize)},methods:{_onResize(){this.isMobile=this._isMobile()},_isMobile:()=>document.documentElement.clientWidth<768}},b=t=>(0,u.generateFilePath)("dashboard","","img/")+t,g=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return"default"===t?a&&"backgroundColor"!==a?(0,u.generateUrl)("/apps/theming/image/background")+"?v="+window.OCA.Theming.cacheBuster:window.OCA.Accessibility&&"dark"===window.OCA.Accessibility.theme?b("eduardo-neves-pedra-azul.jpg"):b("kamil-porembinski-clouds.jpg"):"custom"===t?(0,u.generateUrl)("/apps/dashboard/background")+"?v="+n:b(t)},h=(0,r.loadState)("dashboard","shippedBackgrounds"),C={name:"BackgroundSettings",props:{background:{type:String,default:"default"},themingDefaultBackground:{type:String,default:""}},data:()=>({backgroundImage:(0,u.generateUrl)("/apps/dashboard/background")+"?v="+Date.now(),loading:!1}),computed:{shippedBackgrounds:()=>Object.keys(h).map((t=>({name:t,url:b(t),preview:b("previews/"+t),details:h[t]})))},methods:{async update(t){const n="custom"===t.type||"default"===t.type?t.type:t.value;if(this.backgroundImage=g(n,t.version,this.themingDefaultBackground),"color"===t.type||"default"===t.type&&"backgroundColor"===this.themingDefaultBackground)return this.$emit("update:background",t),void(this.loading=!1);const a=new Image;a.onload=()=>{this.$emit("update:background",t),this.loading=!1},a.src=this.backgroundImage},async setDefault(){this.loading="default";const t=await A.default.post((0,u.generateUrl)("/apps/dashboard/background/default"));this.update(t.data)},async setShipped(t){this.loading=t;const n=await A.default.post((0,u.generateUrl)("/apps/dashboard/background/shipped"),{value:t});this.update(n.data)},async setFile(t){this.loading="custom";const n=await A.default.post((0,u.generateUrl)("/apps/dashboard/background/custom"),{value:t});this.update(n.data)},async pickColor(){this.loading="color";const t=OCA&&OCA.Theming?OCA.Theming.color:"#0082c9",n=await A.default.post((0,u.generateUrl)("/apps/dashboard/background/color"),{value:t});this.update(n.data)},pickFile(){window.OC.dialogs.filepicker(t("dashboard","Insert from {productName}",{productName:OC.theme.name}),((t,n)=>{n===OC.dialogs.FILEPICKER_TYPE_CHOOSE&&this.setFile(t)}),!1,["image/png","image/gif","image/jpeg","image/svg"],!0,OC.dialogs.FILEPICKER_TYPE_CHOOSE)}}},v=C;var m=e(93379),k=e.n(m),f=e(56510);k()(f.Z,{insert:"head",singleton:!1}),f.Z.locals;var x=e(51900);const y=(0,x.Z)(v,(function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"background-selector"},[a("button",{staticClass:"background filepicker",class:{active:"custom"===t.background},attrs:{tabindex:"0"},on:{click:t.pickFile}},[t._v("\n\t\t"+t._s(t.t("dashboard","Pick from Files"))+"\n\t")]),t._v(" "),a("button",{staticClass:"background default",class:{"icon-loading":"default"===t.loading,active:"default"===t.background},attrs:{tabindex:"0"},on:{click:t.setDefault}},[t._v("\n\t\t"+t._s(t.t("dashboard","Default images"))+"\n\t")]),t._v(" "),a("button",{staticClass:"background color",class:{active:"custom"===t.background},attrs:{tabindex:"0"},on:{click:t.pickColor}},[t._v("\n\t\t"+t._s(t.t("dashboard","Plain background"))+"\n\t")]),t._v(" "),t._l(t.shippedBackgrounds,(function(n){return a("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:n.details.attribution,expression:"shippedBackground.details.attribution"}],key:n.name,staticClass:"background",class:{"icon-loading":t.loading===n.name,active:t.background===n.name},style:{"background-image":"url("+n.preview+")"},attrs:{tabindex:"0"},on:{click:function(a){return t.setShipped(n.name)}}})}))],2)}),[],!1,null,"e4c3a7ca",null).exports,w=(0,r.loadState)("dashboard","panels"),_=(0,r.loadState)("dashboard","firstRun"),S=(0,r.loadState)("dashboard","background"),B=(0,r.loadState)("dashboard","themingDefaultBackground"),D=(0,r.loadState)("dashboard","version"),O=(0,r.loadState)("dashboard","shippedBackgrounds"),E={weather:{text:t("dashboard","Weather"),icon:"icon-weather-status"},status:{text:t("dashboard","Status"),icon:"icon-user-status-online"}},F={name:"App",components:{Modal:d(),Draggable:l(),BackgroundSettings:y},mixins:[p],data(){var t,n;return{isAdmin:(0,s.getCurrentUser)().isAdmin,timer:new Date,registeredStatus:[],callbacks:{},callbacksStatus:{},allCallbacksStatus:{},statusInfo:E,enabledStatuses:(0,r.loadState)("dashboard","statuses"),panels:w,firstRun:_,displayName:null===(t=(0,s.getCurrentUser)())||void 0===t?void 0:t.displayName,uid:null===(n=(0,s.getCurrentUser)())||void 0===n?void 0:n.uid,layout:(0,r.loadState)("dashboard","layout").filter((t=>w[t])),modal:!1,appStoreUrl:(0,u.generateUrl)("/settings/apps/dashboard"),statuses:{},background:S,themingDefaultBackground:B,version:D}},computed:{backgroundImage(){return g(this.background,this.version,this.themingDefaultBackground)},backgroundStyle(){return"default"===this.background&&"backgroundColor"===this.themingDefaultBackground||this.background.match(/#[0-9A-Fa-f]{6}/g)?null:{backgroundImage:"url(".concat(this.backgroundImage,")")}},greeting(){const n=this.timer.getHours();let a;a=n>=22||n<5?"night":n>=18?"evening":n>=12?"afternoon":"morning";const e={morning:{generic:t("dashboard","Good morning"),withName:t("dashboard","Good morning, {name}",{name:this.displayName},void 0,{escape:!1})},afternoon:{generic:t("dashboard","Good afternoon"),withName:t("dashboard","Good afternoon, {name}",{name:this.displayName},void 0,{escape:!1})},evening:{generic:t("dashboard","Good evening"),withName:t("dashboard","Good evening, {name}",{name:this.displayName},void 0,{escape:!1})},night:{generic:t("dashboard","Hello"),withName:t("dashboard","Hello, {name}",{name:this.displayName},void 0,{escape:!1})}};return{text:this.displayName&&this.uid!==this.displayName?e[a].withName:e[a].generic}},isActive(){return t=>this.layout.indexOf(t.id)>-1},isStatusActive(){return t=>!(t in this.enabledStatuses)||this.enabledStatuses[t]},sortedAllStatuses(){return Object.keys(this.allCallbacksStatus).slice().sort(this.sortStatuses)},sortedPanels(){return Object.values(this.panels).sort(((t,n)=>{const a=this.layout.indexOf(t.id),e=this.layout.indexOf(n.id);return-1===a||-1===e?e-a||t.id-n.id:a-e||t.id-n.id}))},sortedRegisteredStatus(){return this.registeredStatus.slice().sort(this.sortStatuses)}},watch:{callbacks(){this.rerenderPanels()},callbacksStatus(){for(const t in this.callbacksStatus){const n=this.$refs["status-"+t];this.statuses[t]&&this.statuses[t].mounted||(n?(this.callbacksStatus[t](n[0]),o.default.set(this.statuses,t,{mounted:!0})):console.error("Failed to register panel in the frontend as no backend data was provided for "+t))}}},mounted(){this.updateGlobalStyles(),this.updateSkipLink(),window.addEventListener("scroll",this.handleScroll),setInterval((()=>{this.timer=new Date}),3e4),this.firstRun&&window.addEventListener("scroll",this.disableFirstrunHint)},destroyed(){window.removeEventListener("scroll",this.handleScroll)},methods:{register(t,n){o.default.set(this.callbacks,t,n)},registerStatus(t,n){o.default.set(this.allCallbacksStatus,t,n),this.isStatusActive(t)&&(this.registeredStatus.push(t),this.$nextTick((()=>{o.default.set(this.callbacksStatus,t,n)})))},rerenderPanels(){for(const t in this.callbacks){const n=this.$refs[t];-1!==this.layout.indexOf(t)&&(this.panels[t]&&this.panels[t].mounted||(n?(this.callbacks[t](n[0],{widget:this.panels[t]}),o.default.set(this.panels[t],"mounted",!0)):console.error("Failed to register panel in the frontend as no backend data was provided for "+t)))}},saveLayout(){A.default.post((0,u.generateUrl)("/apps/dashboard/layout"),{layout:this.layout.join(",")})},saveStatuses(){A.default.post((0,u.generateUrl)("/apps/dashboard/statuses"),{statuses:JSON.stringify(this.enabledStatuses)})},showModal(){this.modal=!0,this.firstRun=!1},closeModal(){this.modal=!1},updateCheckbox(t,n){const a=this.layout.indexOf(t.id);!n&&a>-1?this.layout.splice(a,1):this.layout.push(t.id),o.default.set(this.panels[t.id],"mounted",!1),this.saveLayout(),this.$nextTick((()=>this.rerenderPanels()))},disableFirstrunHint(){window.removeEventListener("scroll",this.disableFirstrunHint),setTimeout((()=>{this.firstRun=!1}),1e3)},updateBackground(t){this.background="custom"===t.type||"default"===t.type?t.type:t.value,this.version=t.version,this.updateGlobalStyles()},updateGlobalStyles(){document.body.setAttribute("data-dashboard-background",this.background),window.OCA.Theming.inverted&&document.body.classList.add("dashboard--inverted"),"dark"===(O[this.background]?O[this.background].theming:"light")?document.body.classList.add("dashboard--dark"):document.body.classList.remove("dashboard--dark")},updateSkipLink(){document.getElementsByClassName("skip-navigation")[0].setAttribute("href","#app-dashboard")},updateStatusCheckbox(t,n){n?this.enableStatus(t):this.disableStatus(t)},enableStatus(t){this.enabledStatuses[t]=!0,this.registerStatus(t,this.allCallbacksStatus[t]),this.saveStatuses()},disableStatus(t){this.enabledStatuses[t]=!1;const n=this.registeredStatus.findIndex((n=>n===t));-1!==n&&(this.registeredStatus.splice(n,1),o.default.set(this.statuses,t,{mounted:!1}),this.$nextTick((()=>{o.default.delete(this.callbacksStatus,t)}))),this.saveStatuses()},sortStatuses(t,n){const a=t.toLowerCase(),e=n.toLowerCase();return a>e?1:a<e?-1:0},handleScroll(){window.scrollY>70?document.body.classList.add("dashboard--scrolled"):document.body.classList.remove("dashboard--scrolled")}}};var G=e(79547);k()(G.Z,{insert:"head",singleton:!1}),G.Z.locals;const j=(0,x.Z)(F,(function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{style:t.backgroundStyle,attrs:{id:"app-dashboard"}},[a("h2",[t._v(t._s(t.greeting.text))]),t._v(" "),a("ul",{staticClass:"statuses"},t._l(t.sortedRegisteredStatus,(function(t){return a("div",{key:t,attrs:{id:"status-"+t}},[a("div",{ref:"status-"+t,refInFor:!0})])})),0),t._v(" "),a("Draggable",t._b({staticClass:"panels",attrs:{handle:".panel--header"},on:{end:t.saveLayout},model:{value:t.layout,callback:function(n){t.layout=n},expression:"layout"}},"Draggable",{swapThreshold:.3,delay:500,delayOnTouchOnly:!0,touchStartThreshold:3},!1),t._l(t.layout,(function(n){return a("div",{key:t.panels[n].id,staticClass:"panel"},[a("div",{staticClass:"panel--header"},[a("h2",{class:t.panels[n].iconClass},[t._v("\n\t\t\t\t\t"+t._s(t.panels[n].title)+"\n\t\t\t\t")])]),t._v(" "),a("div",{staticClass:"panel--content",class:{loading:!t.panels[n].mounted}},[a("div",{ref:t.panels[n].id,refInFor:!0,attrs:{"data-id":t.panels[n].id}})])])})),0),t._v(" "),a("div",{staticClass:"footer"},[a("a",{staticClass:"edit-panels icon-rename",attrs:{tabindex:"0"},on:{click:t.showModal,keyup:[function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.showModal.apply(null,arguments)},function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"space",32,n.key,[" ","Spacebar"])?null:t.showModal.apply(null,arguments)}]}},[t._v(t._s(t.t("dashboard","Customize")))])]),t._v(" "),t.modal?a("Modal",{on:{close:t.closeModal}},[a("div",{staticClass:"modal__content"},[a("h3",[t._v(t._s(t.t("dashboard","Edit widgets")))]),t._v(" "),a("ol",{staticClass:"panels"},t._l(t.sortedAllStatuses,(function(n){return a("li",{key:n},[a("input",{staticClass:"checkbox",attrs:{id:"status-checkbox-"+n,type:"checkbox"},domProps:{checked:t.isStatusActive(n)},on:{input:function(a){return t.updateStatusCheckbox(n,a.target.checked)}}}),t._v(" "),a("label",{class:t.statusInfo[n].icon,attrs:{for:"status-checkbox-"+n}},[t._v("\n\t\t\t\t\t\t"+t._s(t.statusInfo[n].text)+"\n\t\t\t\t\t")])])})),0),t._v(" "),a("Draggable",t._b({staticClass:"panels",attrs:{tag:"ol",handle:".draggable"},on:{end:t.saveLayout},model:{value:t.layout,callback:function(n){t.layout=n},expression:"layout"}},"Draggable",{swapThreshold:.3,delay:500,delayOnTouchOnly:!0,touchStartThreshold:3},!1),t._l(t.sortedPanels,(function(n){return a("li",{key:n.id},[a("input",{staticClass:"checkbox",attrs:{id:"panel-checkbox-"+n.id,type:"checkbox"},domProps:{checked:t.isActive(n)},on:{input:function(a){return t.updateCheckbox(n,a.target.checked)}}}),t._v(" "),a("label",{class:t.isActive(n)?"draggable "+n.iconClass:n.iconClass,attrs:{for:"panel-checkbox-"+n.id}},[t._v("\n\t\t\t\t\t\t"+t._s(n.title)+"\n\t\t\t\t\t")])])})),0),t._v(" "),t.isAdmin?a("a",{staticClass:"button",attrs:{href:t.appStoreUrl}},[t._v(t._s(t.t("dashboard","Get more widgets from the App Store")))]):t._e(),t._v(" "),a("h3",[t._v(t._s(t.t("dashboard","Change background image")))]),t._v(" "),a("BackgroundSettings",{attrs:{background:t.background,"theming-default-background":t.themingDefaultBackground},on:{"update:background":t.updateBackground}}),t._v(" "),a("h3",[t._v(t._s(t.t("dashboard","Weather service")))]),t._v(" "),a("p",[t._v("\n\t\t\t\t"+t._s(t.t("dashboard","For your privacy, the weather data is requested by your Nextcloud server on your behalf so the weather service receives no personal information."))+"\n\t\t\t")]),t._v(" "),a("p",{staticClass:"credits--end"},[a("a",{attrs:{href:"https://api.met.no/doc/TermsOfService",target:"_blank",rel:"noopener"}},[t._v(t._s(t.t("dashboard","Weather data from Met.no")))]),t._v(",\n\t\t\t\t"),a("a",{attrs:{href:"https://wiki.osmfoundation.org/wiki/Privacy_Policy",target:"_blank",rel:"noopener"}},[t._v(t._s(t.t("dashboard","geocoding with Nominatim")))]),t._v(",\n\t\t\t\t"),a("a",{attrs:{href:"https://www.opentopodata.org/#public-api",target:"_blank",rel:"noopener"}},[t._v(t._s(t.t("dashboard","elevation data from OpenTopoData")))]),t._v(".\n\t\t\t")])],1)]):t._e()],1)}),[],!1,null,"b86c858a",null).exports;var I=e(9944),z=e(15168),T=e.n(z);e.nc=btoa((0,s.getRequestToken)()),e.p=(0,u.generateFilePath)("dashboard","","js/"),o.default.directive("Tooltip",T()),o.default.prototype.t=I.translate,Object.assign(window.OCA.Files,{App:{fileList:{filesClient:OC.Files.getClient()}}},window.OCA.Files);const L=new(o.default.extend(j))({}).$mount("#app-content-vue");window.OCA.Dashboard={register:(t,n)=>L.register(t,n),registerStatus:(t,n)=>L.registerStatus(t,n)}},79547:(t,n,a)=>{a.d(n,{Z:()=>i});var e=a(94015),o=a.n(e),r=a(23645),s=a.n(r)()(o());s.push([t.id,"#app-dashboard[data-v-b86c858a]{width:100%;min-height:100vh;background-size:cover;background-position:center center;background-repeat:no-repeat;background-attachment:fixed;background-color:var(--color-primary);--color-background-translucent: rgba(255, 255, 255, 0.8);--background-blur: blur(10px)}#body-user.theme--dark #app-dashboard[data-v-b86c858a]{background-color:var(--color-main-background);--color-background-translucent: rgba(24, 24, 24, 0.8)}#body-user.theme--highcontrast #app-dashboard[data-v-b86c858a]{background-color:var(--color-main-background);--color-background-translucent: var(--color-main-background)}#app-dashboard>h2[data-v-b86c858a]{color:var(--color-primary-text);text-align:center;font-size:32px;line-height:130%;padding:10vh 16px 0px}.panels[data-v-b86c858a]{width:auto;margin:auto;max-width:1500px;display:flex;justify-content:center;flex-direction:row;align-items:flex-start;flex-wrap:wrap}.panel[data-v-b86c858a],.panels>div[data-v-b86c858a]{width:320px;max-width:100%;margin:16px;background-color:var(--color-background-translucent);-webkit-backdrop-filter:var(--background-blur);backdrop-filter:var(--background-blur);border-radius:var(--border-radius-large)}#body-user.theme--highcontrast .panel[data-v-b86c858a],#body-user.theme--highcontrast .panels>div[data-v-b86c858a]{border:2px solid var(--color-border)}.panel.sortable-ghost[data-v-b86c858a],.panels>div.sortable-ghost[data-v-b86c858a]{opacity:.1}.panel>.panel--header[data-v-b86c858a],.panels>div>.panel--header[data-v-b86c858a]{display:flex;z-index:1;top:50px;padding:16px;cursor:grab}.panel>.panel--header[data-v-b86c858a],.panel>.panel--header[data-v-b86c858a] *,.panels>div>.panel--header[data-v-b86c858a],.panels>div>.panel--header[data-v-b86c858a] *{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.panel>.panel--header[data-v-b86c858a]:active,.panels>div>.panel--header[data-v-b86c858a]:active{cursor:grabbing}.panel>.panel--header a[data-v-b86c858a],.panels>div>.panel--header a[data-v-b86c858a]{flex-grow:1}.panel>.panel--header>h2[data-v-b86c858a],.panels>div>.panel--header>h2[data-v-b86c858a]{display:block;flex-grow:1;margin:0;font-size:20px;line-height:24px;font-weight:bold;background-size:32px;background-position:14px 12px;padding:16px 8px 16px 60px;height:56px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:grab}.panel>.panel--content[data-v-b86c858a],.panels>div>.panel--content[data-v-b86c858a]{margin:0 16px 16px 16px;height:420px;overflow:hidden}@media only screen and (max-width: 709px){.panel>.panel--content[data-v-b86c858a],.panels>div>.panel--content[data-v-b86c858a]{height:auto}}.footer[data-v-b86c858a]{text-align:center;transition:bottom var(--animation-slow) ease-in-out;bottom:0;padding:44px 0}.edit-panels[data-v-b86c858a]{display:inline-block;margin:auto;background-position:16px center;padding:12px 16px;padding-left:36px;border-radius:var(--border-radius-pill);max-width:200px;opacity:1;text-align:center}.edit-panels[data-v-b86c858a],.statuses[data-v-b86c858a] .action-item .action-item__menutoggle,.statuses[data-v-b86c858a] .action-item.action-item--open .action-item__menutoggle{background-color:var(--color-background-translucent);-webkit-backdrop-filter:var(--background-blur);backdrop-filter:var(--background-blur)}.edit-panels[data-v-b86c858a]:hover,.edit-panels[data-v-b86c858a]:focus,.edit-panels[data-v-b86c858a]:active,.statuses[data-v-b86c858a] .action-item .action-item__menutoggle:hover,.statuses[data-v-b86c858a] .action-item .action-item__menutoggle:focus,.statuses[data-v-b86c858a] .action-item .action-item__menutoggle:active,.statuses[data-v-b86c858a] .action-item.action-item--open .action-item__menutoggle:hover,.statuses[data-v-b86c858a] .action-item.action-item--open .action-item__menutoggle:focus,.statuses[data-v-b86c858a] .action-item.action-item--open .action-item__menutoggle:active{background-color:var(--color-background-hover)}.modal__content[data-v-b86c858a]{padding:32px 16px;max-height:70vh;text-align:center;overflow:auto}.modal__content ol[data-v-b86c858a]{display:flex;flex-direction:row;justify-content:center;list-style-type:none;padding-bottom:16px}.modal__content li label[data-v-b86c858a]{display:block;padding:48px 8px 16px 8px;margin:8px;width:160px;background-color:var(--color-background-hover);border:2px solid var(--color-main-background);border-radius:var(--border-radius-large);background-size:24px;background-position:center 16px;text-align:center}.modal__content li label[data-v-b86c858a]:hover{border-color:var(--color-primary)}.modal__content li input:focus+label[data-v-b86c858a]{border-color:var(--color-primary)}.modal__content h3[data-v-b86c858a]{font-weight:bold}.modal__content h3[data-v-b86c858a]:not(:first-of-type){margin-top:64px}.modal__content .button[data-v-b86c858a]{display:inline-block;padding:10px 16px;margin:0}.modal__content p[data-v-b86c858a]{max-width:650px;margin:0 auto}.modal__content p a[data-v-b86c858a]:hover,.modal__content p a[data-v-b86c858a]:focus{border-bottom:2px solid var(--color-border)}.modal__content .credits--end[data-v-b86c858a]{padding-bottom:32px;color:var(--color-text-maxcontrast)}.modal__content .credits--end a[data-v-b86c858a]{color:var(--color-text-maxcontrast)}.flip-list-move[data-v-b86c858a]{transition:transform var(--animation-slow)}.statuses[data-v-b86c858a]{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap;margin-bottom:36px}.statuses>div[data-v-b86c858a]{margin:8px}","",{version:3,sources:["webpack://./apps/dashboard/src/App.vue"],names:[],mappings:"AAqZA,gCACC,UAAA,CACA,gBAAA,CACA,qBAAA,CACA,iCAAA,CACA,2BAAA,CACA,2BAAA,CACA,qCAAA,CACA,wDAAA,CACA,6BAAA,CAEA,uDACC,6CAAA,CACA,qDAAA,CAGD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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#app-dashboard {\n\twidth: 100%;\n\tmin-height: 100vh;\n\tbackground-size: cover;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-attachment: fixed;\n\tbackground-color: var(--color-primary);\n\t--color-background-translucent: rgba(255, 255, 255, 0.8);\n\t--background-blur: blur(10px);\n\n\t#body-user.theme--dark & {\n\t\tbackground-color: var(--color-main-background);\n\t\t--color-background-translucent: rgba(24, 24, 24, 0.8);\n\t}\n\n\t#body-user.theme--highcontrast & {\n\t\tbackground-color: var(--color-main-background);\n\t\t--color-background-translucent: var(--color-main-background);\n\t}\n\n\t> h2 {\n\t\tcolor: var(--color-primary-text);\n\t\ttext-align: center;\n\t\tfont-size: 32px;\n\t\tline-height: 130%;\n\t\tpadding: 10vh 16px 0px;\n\t}\n}\n\n.panels {\n\twidth: auto;\n\tmargin: auto;\n\tmax-width: 1500px;\n\tdisplay: flex;\n\tjustify-content: center;\n\tflex-direction: row;\n\talign-items: flex-start;\n\tflex-wrap: wrap;\n}\n\n.panel, .panels > div {\n\twidth: 320px;\n\tmax-width: 100%;\n\tmargin: 16px;\n\tbackground-color: var(--color-background-translucent);\n\t-webkit-backdrop-filter: var(--background-blur);\n\tbackdrop-filter: var(--background-blur);\n\tborder-radius: var(--border-radius-large);\n\n\t#body-user.theme--highcontrast & {\n\t\tborder: 2px solid var(--color-border);\n\t}\n\n\t&.sortable-ghost {\n\t\t opacity: 0.1;\n\t}\n\n\t& > .panel--header {\n\t\tdisplay: flex;\n\t\tz-index: 1;\n\t\ttop: 50px;\n\t\tpadding: 16px;\n\t\tcursor: grab;\n\n\t\t&, ::v-deep * {\n\t\t\t-webkit-touch-callout: none;\n\t\t\t-webkit-user-select: none;\n\t\t\t-khtml-user-select: none;\n\t\t\t-moz-user-select: none;\n\t\t\t-ms-user-select: none;\n\t\t\tuser-select: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tcursor: grabbing;\n\t\t}\n\n\t\ta {\n\t\t\tflex-grow: 1;\n\t\t}\n\n\t\t> h2 {\n\t\t\tdisplay: block;\n\t\t\tflex-grow: 1;\n\t\t\tmargin: 0;\n\t\t\tfont-size: 20px;\n\t\t\tline-height: 24px;\n\t\t\tfont-weight: bold;\n\t\t\tbackground-size: 32px;\n\t\t\tbackground-position: 14px 12px;\n\t\t\tpadding: 16px 8px 16px 60px;\n\t\t\theight: 56px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: grab;\n\t\t}\n\t}\n\n\t& > .panel--content {\n\t\tmargin: 0 16px 16px 16px;\n\t\theight: 420px;\n\t\t// We specifically do not want scrollbars inside widgets\n\t\toverflow: hidden;\n\t}\n\n\t// No need to extend height of widgets if only one column is shown\n\t@media only screen and (max-width: 709px) {\n\t\t& > .panel--content {\n\t\t\theight: auto;\n\t\t}\n\t}\n}\n\n.footer {\n\ttext-align: center;\n\ttransition: bottom var(--animation-slow) ease-in-out;\n\tbottom: 0;\n\tpadding: 44px 0;\n}\n\n.edit-panels {\n\tdisplay: inline-block;\n\tmargin:auto;\n\tbackground-position: 16px center;\n\tpadding: 12px 16px;\n\tpadding-left: 36px;\n\tborder-radius: var(--border-radius-pill);\n\tmax-width: 200px;\n\topacity: 1;\n\ttext-align: center;\n}\n\n.edit-panels,\n.statuses ::v-deep .action-item .action-item__menutoggle,\n.statuses ::v-deep .action-item.action-item--open .action-item__menutoggle {\n\tbackground-color: var(--color-background-translucent);\n\t-webkit-backdrop-filter: var(--background-blur);\n\tbackdrop-filter: var(--background-blur);\n\n\t&:hover,\n\t&:focus,\n\t&:active {\n\t\tbackground-color: var(--color-background-hover);\n\t}\n}\n\n.modal__content {\n\tpadding: 32px 16px;\n\tmax-height: 70vh;\n\ttext-align: center;\n\toverflow: auto;\n\n\tol {\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\tjustify-content: center;\n\t\tlist-style-type: none;\n\t\tpadding-bottom: 16px;\n\t}\n\tli {\n\t\tlabel {\n\t\t\tdisplay: block;\n\t\t\tpadding: 48px 8px 16px 8px;\n\t\t\tmargin: 8px;\n\t\t\twidth: 160px;\n\t\t\tbackground-color: var(--color-background-hover);\n\t\t\tborder: 2px solid var(--color-main-background);\n\t\t\tborder-radius: var(--border-radius-large);\n\t\t\tbackground-size: 24px;\n\t\t\tbackground-position: center 16px;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\tborder-color: var(--color-primary);\n\t\t\t}\n\t\t}\n\n\t\tinput:focus + label {\n\t\t\tborder-color: var(--color-primary);\n\t\t}\n\t}\n\n\th3 {\n\t\tfont-weight: bold;\n\n\t\t&:not(:first-of-type) {\n\t\t\tmargin-top: 64px;\n\t\t}\n\t}\n\n\t// Adjust design of 'Get more widgets' button\n\t.button {\n\t\tdisplay: inline-block;\n\t\tpadding: 10px 16px;\n\t\tmargin: 0;\n\t}\n\n\tp {\n\t\tmax-width: 650px;\n\t\tmargin: 0 auto;\n\n\t\ta:hover,\n\t\ta:focus {\n\t\t\tborder-bottom: 2px solid var(--color-border);\n\t\t}\n\t}\n\n\t.credits--end {\n\t\tpadding-bottom: 32px;\n\t\tcolor: var(--color-text-maxcontrast);\n\n\t\ta {\n\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t}\n\t}\n}\n\n.flip-list-move {\n\ttransition: transform var(--animation-slow);\n}\n\n.statuses {\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin-bottom: 36px;\n\n\t& > div {\n\t\tmargin: 8px;\n\t}\n}\n"],sourceRoot:""}]);const i=s},56510:(t,n,a)=>{a.d(n,{Z:()=>i});var e=a(94015),o=a.n(e),r=a(23645),s=a.n(r)()(o());s.push([t.id,'.background-selector[data-v-e4c3a7ca]{display:flex;flex-wrap:wrap;justify-content:center}.background-selector .background[data-v-e4c3a7ca]{width:176px;height:96px;margin:8px;background-size:cover;background-position:center center;text-align:center;border-radius:var(--border-radius-large);border:2px solid var(--color-main-background);overflow:hidden}.background-selector .background.current[data-v-e4c3a7ca]{background-image:var(--color-background-dark)}.background-selector .background.filepicker[data-v-e4c3a7ca],.background-selector .background.default[data-v-e4c3a7ca],.background-selector .background.color[data-v-e4c3a7ca]{border-color:var(--color-border)}.background-selector .background.color[data-v-e4c3a7ca]{background-color:var(--color-primary);color:var(--color-primary-text)}.background-selector .background.active[data-v-e4c3a7ca],.background-selector .background[data-v-e4c3a7ca]:hover,.background-selector .background[data-v-e4c3a7ca]:focus{border:2px solid var(--color-primary)}.background-selector .background.active[data-v-e4c3a7ca]:not(.icon-loading):after{background-image:var(--icon-checkmark-fff);background-repeat:no-repeat;background-position:center;background-size:44px;content:"";display:block;height:100%}body.theme--dark .background-selector .background.active[data-v-e4c3a7ca]:not(.icon-loading):after{background-image:var(--icon-checkmark-000)}',"",{version:3,sources:["webpack://./apps/dashboard/src/components/BackgroundSettings.vue"],names:[],mappings:"AA4IA,sCACC,YAAA,CACA,cAAA,CACA,sBAAA,CAEA,kDACC,WAAA,CACA,WAAA,CACA,UAAA,CACA,qBAAA,CACA,iCAAA,CACA,iBAAA,CACA,wCAAA,CACA,6CAAA,CACA,eAAA,CAEA,0DACC,6CAAA,CAGD,+KACC,gCAAA,CAGD,wDACC,qCAAA,CACA,+BAAA,CAGD,yKAGC,qCAAA,CAGD,kFACC,0CAAA,CACA,2BAAA,CACA,0BAAA,CACA,oBAAA,CACA,UAAA,CACA,aAAA,CACA,WAAA,CAEA,mGACC,0CAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.background-selector {\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tjustify-content: center;\n\n\t.background {\n\t\twidth: 176px;\n\t\theight: 96px;\n\t\tmargin: 8px;\n\t\tbackground-size: cover;\n\t\tbackground-position: center center;\n\t\ttext-align: center;\n\t\tborder-radius: var(--border-radius-large);\n\t\tborder: 2px solid var(--color-main-background);\n\t\toverflow: hidden;\n\n\t\t&.current {\n\t\t\tbackground-image: var(--color-background-dark);\n\t\t}\n\n\t\t&.filepicker, &.default, &.color {\n\t\t\tborder-color: var(--color-border);\n\t\t}\n\n\t\t&.color {\n\t\t\tbackground-color: var(--color-primary);\n\t\t\tcolor: var(--color-primary-text);\n\t\t}\n\n\t\t&.active,\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tborder: 2px solid var(--color-primary);\n\t\t}\n\n\t\t&.active:not(.icon-loading):after {\n\t\t\tbackground-image: var(--icon-checkmark-fff);\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: 44px;\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\theight: 100%;\n\n\t\t\tbody.theme--dark & {\n\t\t\t\tbackground-image: var(--icon-checkmark-000);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const i=s}},e={};function o(t){var n=e[t];if(void 0!==n)return n.exports;var r=e[t]={id:t,loaded:!1,exports:{}};return a[t].call(r.exports,r,r.exports,o),r.loaded=!0,r.exports}o.m=a,o.amdD=function(){throw new Error("define cannot be used indirect")},o.amdO={},n=[],o.O=(t,a,e,r)=>{if(!a){var s=1/0;for(l=0;l<n.length;l++){a=n[l][0],e=n[l][1],r=n[l][2];for(var i=!0,d=0;d<a.length;d++)(!1&r||s>=r)&&Object.keys(o.O).every((t=>o.O[t](a[d])))?a.splice(d--,1):(i=!1,r<s&&(s=r));if(i){n.splice(l--,1);var c=e();void 0!==c&&(t=c)}}return t}r=r||0;for(var l=n.length;l>0&&n[l-1][2]>r;l--)n[l]=n[l-1];n[l]=[a,e,r]},o.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return o.d(n,{a:n}),n},o.d=(t,n)=>{for(var a in n)o.o(n,a)&&!o.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:n[a]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),o.j=236,o.p="/dist/",(()=>{var t={236:0};o.O.j=n=>0===t[n];var n=(n,a)=>{var e,r,s=a[0],i=a[1],d=a[2],c=0;if(s.some((n=>0!==t[n]))){for(e in i)o.o(i,e)&&(o.m[e]=i[e]);if(d)var l=d(o)}for(n&&n(a);c<s.length;c++)r=s[c],o.o(t,r)&&t[r]&&t[r][0](),t[s[c]]=0;return o.O(l)},a=self.webpackChunknextcloud=self.webpackChunknextcloud||[];a.forEach(n.bind(null,0)),a.push=n.bind(null,a.push.bind(a))})();var r=o.O(void 0,[874],(()=>o(63308)));r=o.O(r)})(); -//# sourceMappingURL=dashboard-dashboard-main.js.map?v=b00264145991da87ce3c
\ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ "use strict"; +/******/ +/******/ +/******/ })() +;
\ No newline at end of file |