mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-15 00:07:25 -05:00
2 lines
14 KiB
JavaScript
2 lines
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23874add"],{"12c7":function(t,e,i){},"247d":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-app",{attrs:{id:"catalog"}},["loading"==t.status&&0==t.error.length?i("v-overlay",{attrs:{light:""}},[i("v-progress-circular",{attrs:{indeterminate:"",color:"lime",size:"64"}})],1):t._e(),i("v-app-bar",{attrs:{app:"",dense:"","hide-on-scroll":"",color:"green",dark:""}},[i("v-toolbar-title",[t._v("QGIS Server Catalog")]),i("v-spacer")],1),i("v-main",[t.catalog?i("v-container",{staticClass:"fill-height",attrs:{id:"catalog",fluid:""}},[t.error.length>0||"empty"==t.status?i("v-row",{attrs:{align:"center"}},[i("v-col",{attrs:{cols:"12"}},[t.error.length>0?i("Error",{attrs:{error:t.error}}):t._e(),"empty"==t.status?i("v-alert",{attrs:{type:"warning"}},[i("h2",[t._v("This QGIS Server catalog does not contain any project.")]),i("p",[t._v(" The projects (.QGS and .QGZ files) are searched in directories set by the environment variable "),i("code",[t._v("QGIS_SERVER_LANDING_PAGE_PROJECTS_DIRECTORIES")]),t._v(" (multiple paths can be specified by joining them with "),i("code",[t._v("||")]),t._v("). ")]),i("p",[t._v(" Example: "),i("br"),i("code",[t._v("QGIS_SERVER_LANDING_PAGE_PROJECTS_DIRECTORIES=/path/to/my/projects||/another_path/to/my/projects")])]),i("p",[t._v(" Postgres projects are searched in the connections set by the environment variable "),i("code",[t._v("QGIS_SERVER_LANDING_PAGE_PROJECTS_PG_CONNECTIONS")]),t._v(" (multiple connections can be specified by joining them with "),i("code",[t._v("||")]),t._v("). ")]),i("p",[t._v(" Example: "),i("br"),i("code",[t._v("QGIS_SERVER_LANDING_PAGE_PROJECTS_PG_CONNECTIONS=postgresql://myusername:mypassword@myhost:myport?sslmode=disable&dbname=mydatabase&schema=public")])])]):t._e()],1)],1):t._e(),t.catalog?t._l(t.catalog,(function(e){return i("v-card",{key:e.identifier,staticClass:"mx-auto mb-4",attrs:{"max-width":"800","min-width":"400"}},[i("l-map",{ref:"mapid-"+e.id,refInFor:!0,on:{ready:function(i){return t.loadMap(e,i)}}},[e.capabilities.wmsOutputCrsList.includes("EPSG:3857")?i("l-tile-layer",{attrs:{url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png"}}):t._e()],1),i("v-card-title",[t._v(t._s(e.title))]),e.description?i("v-card-subtitle",{staticClass:"description"},[t._v(t._s(e.description))]):t._e(),i("v-card-actions",[i("v-dialog",{staticClass:"metadata",attrs:{scrollable:"","max-width":"800px"},scopedSlots:t._u([{key:"activator",fn:function(e){var a=e.on;return[i("v-btn",t._g({attrs:{color:"orange",text:""}},a),[i("v-icon",[t._v("mdi-information")]),t._v("Metadata ")],1)]}}],null,!0),model:{value:e.show,callback:function(i){t.$set(e,"show",i)},expression:"project.show"}},[i("v-card",[i("v-card-title",[t._v(t._s(e.title))]),i("v-divider"),i("v-card-text",{staticStyle:{height:"300px"}},[i("Metadata",{attrs:{project:e}})],1),i("v-divider"),i("v-card-actions",[i("v-btn",{attrs:{color:"blue darken-1",text:""},on:{click:function(t){e.show=!1}}},[t._v("Close")])],1)],1)],1),i("v-btn",{attrs:{color:"orange",text:"",to:{name:"map",params:{projectId:e.id}}}},[i("v-icon",[t._v("mdi-map")]),t._v("Browse ")],1)],1)],1)})):t._e()],2):t._e()],1),i("v-footer",{attrs:{color:"lime",app:""}})],1)},n=[],s=i("2699"),r=i("a40a"),o=(i("6cc5"),i("e11e")),c=i("7e9c"),l=i.n(c),d=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-tabs",[i("v-tab",{attrs:{href:"#general-"+t.project.id}},[t._v("General")]),i("v-tab-item",{attrs:{value:"general-"+t.project.id}},[i("v-card",{attrs:{flat:"",tile:""}},[i("v-card-text",[t._l(t.project.metadata,(function(e,a){return["categories"==a||"history"==a?[e.length?[i("dt",{key:t.uniqueKey(a+"k")},[t._v(t._s(t._f("camelTitle")(a)))]),i("dd",{key:t.uniqueKey(a+"v")},t._l(e,(function(e){return i("ul",{key:t.uniqueKey(e)},[i("li",{key:t.uniqueKey(e)},[t._v(t._s(e))])])})),0)]:t._e()]:"links"!=a&&"contacts"!=a&&e?[i("dt",{key:t.uniqueKey(a)},[t._v(t._s(t._f("camelTitle")(a)))]),i("dd",{key:t.uniqueKey(e)},[t._v(t._s(e))])]:t._e()]}))],2)],1)],1),t.project.metadata.contacts.legth>0?[i("v-tab",{attrs:{href:"#contacts-"+t.project.id}},[t._v("Contacts")]),t.project.metadata.contacts?i("v-tab-item",{attrs:{value:"contacts-"+t.project.id}},[i("v-card",{attrs:{flat:"",tile:""}},[i("v-card-text",[t._l(t.project.metadata.contacts,(function(e){return[i("h5",{key:t.uniqueKey(e.name)},[t._v(t._s(e.name))]),i("dl",{key:t.uniqueKey(e.name)},[t._l(e,(function(e,a){return["addresses"!=a&&"name"!=a&&e?[i("dt",{key:t.uniqueKey(a)},[t._v(t._s(t._f("camelTitle")(a)))]),i("dd",{key:t.uniqueKey(e)},[t._v(t._s(e))])]:t._e()]}))],2),t._l(e.addresses,(function(e){return[i("dl",{key:t.uniqueKey(e.name),staticClass:"address"},[t._l(e,(function(e,a){return[e?[i("dt",{key:t.uniqueKey(a)},[t._v(t._s(t._f("camelTitle")(a)))]),i("dd",{key:t.uniqueKey(e)},[t._v(t._s(e))])]:t._e()]}))],2)]}))]}))],2)],1)],1):t._e()]:t._e(),t.project.metadata.links.legth>0?[i("v-tab",{attrs:{href:"#links-"+t.project.id}},[t._v("Links")]),t.project.metadata.links?i("v-tab-item",{attrs:{value:"links-"+t.project.id}},[i("v-card",{attrs:{flat:"",tile:""}},[i("v-card-text",t._l(t.project.metadata.links,(function(e){return i("ul",{key:t.uniqueKey(e.url)},[i("li",[i("a",{attrs:{href:e.url}},[t._v(t._s(e.name))]),t._v(" — "+t._s(e.description)+" ")])])})),0)],1)],1):t._e()]:t._e(),i("v-tab",{attrs:{href:"#services-"+t.project.id}},[t._v("Services")]),i("v-tab-item",{attrs:{value:"services-"+t.project.id}},[i("v-card",{attrs:{flat:"",tile:""}},[i("v-card-text",[i("v-list",[i("v-list-item-group",[t.project.capabilities.wfsLayerIds.length?[i("v-list-item",{attrs:{href:"/project/"+t.project.id+"/wfs3"}},[i("v-list-item-content",[i("v-list-item-title",[t._v("OAPIF/WFS3")])],1)],1),i("v-list-item",{attrs:{href:"/project/"+t.project.id+"/?SERVICE=WFS&REQUEST=GetCapabilities"}},[i("v-list-item-content",[i("v-list-item-title",[t._v("WFS GetCapabilities")])],1)],1)]:t._e(),i("v-list-item",{attrs:{href:"/project/"+t.project.id+"/?SERVICE=WMS&REQUEST=GetCapabilities"}},[i("v-list-item-content",[i("v-list-item-title",[t._v("WMS GetCapabilities")])],1)],1)],2)],1)],1)],1)],1)],2)},u=[],h=(i("a15b"),i("fb6a"),i("ac1f"),i("5319"),i("1276"),i("c64e")),v={props:{project:Object},filters:{camelTitle:function(t){t=t.replace(/([A-Z])/g," $1").toLowerCase().split(" ");for(var e=0;e<t.length;e++)t[e]=t[e].charAt(0).toUpperCase()+t[e].slice(1);return t.join(" ")}},data:function(){return{uniqueKey:function(t){return h()+t}}}},p=v,f=(i("ae52"),i("2877")),m=i("6544"),_=i.n(m),g=i("b0af"),b=i("99d9"),y=i("8860"),C=i("da13"),w=i("5d23"),k=i("1baa"),j=i("71a3"),S=i("c671"),E=i("fe57"),x=Object(f["a"])(p,d,u,!1,null,"2c58573b",null),O=x.exports;_()(x,{VCard:g["a"],VCardText:b["c"],VList:y["a"],VListItem:C["a"],VListItemContent:w["a"],VListItemGroup:k["a"],VListItemTitle:w["b"],VTab:j["a"],VTabItem:S["a"],VTabs:E["a"]});var T=i("3fb9"),I=i("a123"),V={name:"Catalog",components:{LMap:s["a"],LTileLayer:r["a"],Metadata:O,Error:T["a"]},computed:{status:function(){return this.$store.state.status},catalog:function(){return this.$store.state.catalog},error:function(){var t=this.$store.state.error;return this.$store.commit("clearError"),t}},created:function(){this.catalog.length||(this.$store.dispatch("setStatus","loading"),this.$store.dispatch("getCatalog"))},methods:{loadMap:function(t,e){var i=t.geographic_extent[0],a=t.geographic_extent[1],n=t.geographic_extent[2],s=t.geographic_extent[3],r=new o["latLng"](a,i),c=new o["latLng"](s,i),d=new o["latLng"](s,n),u=new o["latLng"](a,n),h=[r,c,d,u],v=new o["Polygon"](h,{fill:!1}).addTo(e);e.setView(v.getBounds().getCenter()),v.getBounds().getEast()!=v.getBounds().getWest()&&v.getBounds().getNorth()!=v.getBounds().getSouth()&&e.fitBounds(v.getBounds()),l.a.overlay("./project/".concat(t.id,"/?"),{layers:I["a"].getAllLayers(t),transparent:!0,format:"image/png"}).addTo(e)}}},A=V,$=(i("554e"),i("0798")),G=i("7496"),L=i("40dc"),B=i("8336"),R=i("62ad"),q=i("a523"),K=(i("7db0"),i("caad"),i("45fc"),i("a9e3"),i("2532"),i("498a"),i("5530")),N=i("2909"),P=i("ade3"),D=(i("368e"),i("480e")),M=i("4ad4"),F=i("b848"),Q=i("75eb"),W=i("e707"),Z=i("e4d3"),J=i("21be"),z=i("f2e7"),U=i("a293"),H=i("58df"),X=i("d9bd"),Y=i("80d2"),tt=Object(H["a"])(M["a"],F["a"],Q["a"],W["a"],Z["a"],J["a"],z["a"]),et=tt.extend({name:"v-dialog",directives:{ClickOutside:U["a"]},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:{type:[String,Number],default:"none"},noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:{type:[String,Number],default:"auto"}},data:function(){return{activatedBy:null,animate:!1,animateTimeout:-1,isActive:!!this.value,stackMinZIndex:200}},computed:{classes:function(){var t;return t={},Object(P["a"])(t,"v-dialog ".concat(this.contentClass).trim(),!0),Object(P["a"])(t,"v-dialog--active",this.isActive),Object(P["a"])(t,"v-dialog--persistent",this.persistent),Object(P["a"])(t,"v-dialog--fullscreen",this.fullscreen),Object(P["a"])(t,"v-dialog--scrollable",this.scrollable),Object(P["a"])(t,"v-dialog--animated",this.animate),t},contentClasses:function(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator:function(){return Boolean(!!this.$slots.activator||!!this.$scopedSlots.activator)}},watch:{isActive:function(t){t?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind())},fullscreen:function(t){this.isActive&&(t?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created:function(){this.$attrs.hasOwnProperty("full-width")&&Object(X["e"])("full-width",this)},beforeMount:function(){var t=this;this.$nextTick((function(){t.isBooted=t.isActive,t.isActive&&t.show()}))},beforeDestroy:function(){"undefined"!==typeof window&&this.unbind()},methods:{animateClick:function(){var t=this;this.animate=!1,this.$nextTick((function(){t.animate=!0,window.clearTimeout(t.animateTimeout),t.animateTimeout=window.setTimeout((function(){return t.animate=!1}),150)}))},closeConditional:function(t){var e=t.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(e)||this.overlay&&e&&!this.overlay.$el.contains(e))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll:function(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):W["a"].options.methods.hideScroll.call(this)},show:function(){var t=this;!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick((function(){t.$refs.content.focus(),t.bind()}))},bind:function(){window.addEventListener("focusin",this.onFocusin)},unbind:function(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside:function(t){this.$emit("click:outside",t),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown:function(t){if(t.keyCode===Y["w"].esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;var e=this.getActivator();this.$nextTick((function(){return e&&e.focus()}))}this.$emit("keydown",t)},onFocusin:function(t){if(t&&this.retainFocus){var e=t.target;if(e&&![document,this.$refs.content].includes(e)&&!this.$refs.content.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some((function(t){return t.contains(e)}))){var i=this.$refs.content.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),a=Object(N["a"])(i).find((function(t){return!t.hasAttribute("disabled")}));a&&a.focus()}}},genContent:function(){var t=this;return this.showLazyContent((function(){return[t.$createElement(D["a"],{props:{root:!0,light:t.light,dark:t.dark}},[t.$createElement("div",{class:t.contentClasses,attrs:Object(K["a"])({role:"document",tabindex:t.isActive?0:void 0},t.getScopeIdAttrs()),on:{keydown:t.onKeydown},style:{zIndex:t.activeZIndex},ref:"content"},[t.genTransition()])])]}))},genTransition:function(){var t=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[t]):t},genInnerContent:function(){var t={class:this.classes,ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(t.style=Object(K["a"])(Object(K["a"])({},t.style),{},{maxWidth:"none"===this.maxWidth?void 0:Object(Y["g"])(this.maxWidth),width:"auto"===this.width?void 0:Object(Y["g"])(this.width)})),this.$createElement("div",t,this.getContentSlot())}},render:function(t){return t("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":""===this.attach||!0===this.attach||"attach"===this.attach},attrs:{role:"dialog"}},[this.genActivator(),this.genContent()])}}),it=i("ce7e"),at=i("553a"),nt=i("132d"),st=i("f6c4"),rt=i("a797"),ot=i("490a"),ct=i("0fd9"),lt=i("2fa4"),dt=i("2a7f"),ut=Object(f["a"])(A,a,n,!1,null,"603d1f06",null);e["default"]=ut.exports;_()(ut,{VAlert:$["a"],VApp:G["a"],VAppBar:L["a"],VBtn:B["a"],VCard:g["a"],VCardActions:b["a"],VCardSubtitle:b["b"],VCardText:b["c"],VCardTitle:b["d"],VCol:R["a"],VContainer:q["a"],VDialog:et,VDivider:it["a"],VFooter:at["a"],VIcon:nt["a"],VMain:st["a"],VOverlay:rt["a"],VProgressCircular:ot["a"],VRow:ct["a"],VSpacer:lt["a"],VToolbarTitle:dt["a"]})},"26c2":function(t,e,i){},"368e":function(t,e,i){},"554e":function(t,e,i){"use strict";var a=i("12c7"),n=i.n(a);n.a},ae52:function(t,e,i){"use strict";var a=i("26c2"),n=i.n(a);n.a}}]);
|
|
//# sourceMappingURL=chunk-23874add.1912a0b5.js.map
|