1(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[46],{ 2 3/***/ "1af1": 4/***/ (function(module, __webpack_exports__, __webpack_require__) { 5 6"use strict"; 7// ESM COMPAT FLAG 8__webpack_require__.r(__webpack_exports__); 9 10// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/MyOwnedCommunityPage.vue?vue&type=template&id=61e8274e&scoped=true& 11var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('q-page',{staticClass:"of-page-column"},[_c('div',{staticClass:"q-pa-md "},[(true)?_c('community-owner-cards',{}):undefined],1),_c('q-item',[_c('q-item-section',{attrs:{"side":""}},[_c('q-avatar',{attrs:{"rounded":"","size":"48px"}},[_c('img',{attrs:{"src":"statics/images/logo-greenmapper-download-trans.png"}})])],1),_c('q-item-section',[_c('q-item-label',{staticClass:"doc-heading doc-h1"},[_vm._v("\n "+_vm._s(_vm.$t('pages.my_owned_communities.title'))+"\n ")])],1)],1),_c('q-table',{ref:"foodTable",staticClass:"my-sticky-header-table",attrs:{"id":"myTable","wrap-cells":true,"data":_vm.communitySubscribed,"columns":_vm.columns,"row-key":"id","rows-per-page-options":[0],"pagination":_vm.pagination,"dense":"","flat":"","inline":"","binary-state-sort":"","selected-rows-label":function () { return ''; },"selection":"single","selected":_vm.selected,"no-results-label":"no communities found","visible-columns":_vm.visibleColumns,"filter":_vm.filter},on:{"update:pagination":function($event){_vm.pagination=$event},"update:selected":function($event){_vm.selected=$event}},scopedSlots:_vm._u([{key:"header-cell-threads",fn:function(props){return [_c('q-th',{attrs:{"props":props}},[_c('q-icon',{attrs:{"name":"o_forum","size":"1.5em"}})],1)]}},{key:"header-cell-messages",fn:function(props){return [_c('q-th',{attrs:{"props":props}},[_c('q-icon',{attrs:{"name":"o_message","size":"1.5em"}})],1)]}},{key:"header-cell-subs",fn:function(props){return [_c('q-th',{attrs:{"props":props}},[_c('q-icon',{attrs:{"name":"far fa-heart","size":"1.5em"}})],1)]}},{key:"header-cell-polis",fn:function(props){return [_c('q-th',{attrs:{"props":props}},[_c('q-icon',{attrs:{"name":"img:statics/images/polis.png","size":"1.5em"}})],1)]}},{key:"header-cell-polls",fn:function(props){return [_c('q-th',{attrs:{"props":props}},[_c('q-icon',{attrs:{"name":"fas fa-poll-h","size":"1.5em"}})],1)]}},{key:"header-cell-meetings",fn:function(props){return [_c('q-th',{attrs:{"props":props}},[_c('q-icon',{attrs:{"name":"o_call","size":"1.5em"}})],1)]}},{key:"header-cell-pledges",fn:function(props){return [_c('q-th',{attrs:{"props":props}},[_c('q-icon',{attrs:{"name":"fas fa-hand-holding-usd","size":"1.5em"}})],1)]}},{key:"body",fn:function(props){return [_c('q-tr',{attrs:{"props":props}},[_c('q-td',{attrs:{"auto-width":""}},[_c('q-btn',{attrs:{"size":"sm","color":"accent","flat":"","dense":"","icon":props.expand ? 'remove' : 'add'},on:{"click":function($event){props.expand = !props.expand}}})],1),_c('q-td',{key:"id",attrs:{"props":props}},[_vm._v(_vm._s(props.row.id))]),_c('q-td',{key:"title",attrs:{"name":"title","field":"title","props":props}},[_vm._v("\n "+_vm._s(props.row.title)+"\n ")]),_c('q-td',{key:"subs",attrs:{"props":props}},[_vm._v("\n "+_vm._s(_vm.subCount(props.row.id))+"\n ")]),_c('q-td',{key:"threads",attrs:{"props":props}},[_vm._v("\n "+_vm._s(props.row.threads.length)+"\n ")]),_c('q-td',{key:"polis",attrs:{"props":props}},[_vm._v("\n "+_vm._s(props.row.polis.length)+"\n ")]),_c('q-td',{key:"meetings",attrs:{"props":props}},[_vm._v("\n "+_vm._s(props.row.meetings.length)+"\n ")]),_c('q-td',{key:"polls",attrs:{"props":props}},[_vm._v("\n "+_vm._s(props.row.polls.length)+"\n ")]),_c('q-td',{key:"pledges",attrs:{"props":props}},[_vm._v("\n "+_vm._s(props.row.pledges.length)+"\n ")]),_c('q-td',{key:"mods",attrs:{"props":props}},[_vm._v("\n "+_vm._s(props.row.mods.length)+"\n ")])],1),_c('q-tr',{directives:[{name:"show",rawName:"v-show",value:(props.expand),expression:"props.expand"}],attrs:{"props":props}},[_c('q-td',{attrs:{"colspan":"100%"}},[_c('q-card',{staticClass:"my-card",attrs:{"flat":""}},[_c('q-card-section',[_c('div',{staticClass:"row items-center no-wrap"},[_c('div',{staticClass:"col"},[_c('div',{staticClass:"text-h6"},[_vm._v(_vm._s(props.row.title))]),_c('div',{staticClass:"text-subtitle2"},[_vm._v(_vm._s(_vm.$t('labels.created_on'))+"\n "+_vm._s(_vm._f("formatDate")(props.row.dateCreated))+"\n ")])]),_c('div',{staticClass:"col-auto"},[_c('q-btn',{staticClass:"q-ml-sm",attrs:{"flat":"","round":"","dense":"","icon":"more_vert"}},[_c('q-menu',{attrs:{"auto-close":"","offset":[0, 0]}},[_c('q-list',{staticStyle:{"min-width":"170px"}},[(_vm.isOwner(props.row.id))?_c('q-item',{attrs:{"clickable":""},on:{"click":function($event){return _vm.onClickEditCommunity(props.row.id)}}},[_c('q-item-section',[_vm._v(_vm._s(_vm.$t('pages.timeline.edit_btn'))+"\n ")]),_c('q-item-section',{attrs:{"avatar":""}},[_c('q-icon',{attrs:{"name":"edit","unelevated":"","round":"","color":"primary"}})],1)],1):_vm._e()],1)],1)],1)],1)])]),_c('q-card-section',[_c('my-read-more',{staticClass:"text-grey-14",staticStyle:{"white-space":"pre-line"},attrs:{"more-str":_vm.$t('labels.read_more'),"text":props.row.description,"link":"#","max-chars":250}})],1),_c('q-separator'),_c('q-item-label',{staticClass:"q-pt-lg q-pt-md q-pb-none",attrs:{"header":""}},[_vm._v("Moderators")]),_c('q-card-section',{staticClass:"q-pt-none"},[_c('q-list',_vm._l((props.row.mods),function(userid){return _c('q-item',{directives:[{name:"ripple",rawName:"v-ripple"}],key:userid,staticClass:"q-my-sm",attrs:{"clickable":""}},[(_vm.userData(userid))?[_c('q-item-section',{attrs:{"avatar":""}},[_c('q-avatar',{attrs:{"color":"primary","text-color":"white"}},[_vm._v("\n "+_vm._s(_vm.userData(userid).profile.name.charAt(0))+"\n ")])],1),_c('q-item-section',[_vm._v("\n "+_vm._s(_vm.userData(userid).profile.name)+"\n ")])]:_vm._e()],2)}),1)],1),_c('q-separator'),_c('q-card-actions',{attrs:{"align":"right"}},[_c('q-btn',{staticClass:"q-ml-sm",attrs:{"icon-right":"chevron_right","no-caps":"","flat":"","unelevated":"","color":"primary","label":"Community"},on:{"click":function($event){return _vm.$router.push({ path: ("community/" + (props.row.id)) })}}}
11)],1)],1)],1)],1)]}},{key:"top",fn:function(){return [_c('q-input',{staticClass:"q-mb-sm",attrs:{"label":_vm.$t('labels.search'),"dense":"","outlined":"","debounce":"300"},scopedSlots:_vm._u([{key:"prepend",fn:function(){return [_c('q-icon',{attrs:{"name":"search"}})]},proxy:true},{key:"append",fn:function(){return [(_vm.filter !== '')?_c('q-icon',{staticClass:"cursor-pointer",attrs:{"name":"close"},on:{"click":function($event){_vm.filter = ''}}}):_vm._e()]},proxy:true}]),model:{value:(_vm.filter),callback:function ($$v) {_vm.filter=$$v},expression:"filter"}})]},proxy:true}])})],1)} 12var staticRenderFns = [] 13 14 15// CONCATENATED MODULE: ./src/pages/MyOwnedCommunityPage.vue?vue&type=template&id=61e8274e&scoped=true& 16 17// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.object.get-own-property-descriptors.js 18var es7_object_get_own_property_descriptors = __webpack_require__("8e6e"); 19 20// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.symbol.js 21var es6_symbol = __webpack_require__("8a81"); 22 23// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js 24var web_dom_iterable = __webpack_require__("ac6a"); 25 26// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js 27var es6_array_iterator = __webpack_require__("cadf"); 28 29// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.to-string.js 30var es6_object_to_string = __webpack_require__("06db"); 31 32// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js 33var es6_object_keys = __webpack_require__("456d"); 34 35// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs2/helpers/defineProperty.js 36var defineProperty = __webpack_require__("c47a"); 37var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty); 38 39// EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js 40var es7_array_includes = __webpack_require__("6762"); 41 42// EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js 43var es6_string_includes = __webpack_require__("2fdb"); 44 45// EXTERNAL MODULE: ./src/components/ReadMoreComponent.vue + 4 modules 46var ReadMoreComponent = __webpack_require__("149e"); 47 48// EXTERNAL MODULE: ./node_modules/vuex/dist/vuex.esm.js 49var vuex_esm = __webpack_require__("2f62"); 50 51// EXTERNAL MODULE: ./node_modules/moment/moment.js 52var moment = __webpack_require__("c1df"); 53var moment_default = /*#__PURE__*/__webpack_require__.n(moment); 54 55// EXTERNAL MODULE: ./src/boot/eventbus.js 56var eventbus = __webpack_require__("fc0d"); 57 58// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CommunityOwnerCards.vue?vue&type=template&id=174728af& 59var CommunityOwnerCardsvue_type_template_id_174728af_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('q-card',{staticClass:"bg-transparent no-shadow no-border"},[_c('q-card-section',{staticClass:"q-pa-none"},[_c('div',{staticClass:"row q-col-gutter-sm "},_vm._l((_vm.items),function(item,index){return _c('div',{key:index,staticClass:"col-md-4 col-sm-4 col-xs-12"},[_c('q-item',{staticClass:"q-pa-none q-ml-xs",style:(("background-color: " + (item.color1)))},[(_vm.icon_position === 'left')?_c('q-item-section',{staticClass:" q-pa-lg q-mr-none text-white",style:(("background-color: " + (item.color2))),attrs:{"side":""}},[_c('q-icon',{attrs:{"name":item.icon,"color":"white","size":"24px"}})],1):_vm._e(),_c('q-item-section',{staticClass:" q-pa-md q-ml-none text-white"},[_c('q-item-label',{staticClass:"text-white text-h6 text-weight-bolder"},[_vm._v(_vm._s(item.value))]),_c('q-item-label',[_vm._v(_vm._s(item.title))])],1),(_vm.icon_position === 'right')?_c('q-item-section',{staticClass:"q-mr-md text-white",attrs:{"side":""}},[_c('q-icon',{attrs:{"name":item.icon,"color":"white","size":"44px"}})],1):_vm._e()],1)],1)}),0)])],1)} 60var CommunityOwnerCardsvue_type_template_id_174728af_staticRenderFns = [] 61 62 63// CONCATENATED MODULE: ./src/components/CommunityOwnerCards.vue?vue&type=template&id=174728af& 64 65// CONCATENATED MODULE: ./node_modules/@quasar/app/lib/webpack/loader.transform-quasar-imports.js!./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CommunityOwnerCards.vue?vue&type=script&lang=js& 66 67 68 69 70 71 72 73 74 75 76function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } 77 78function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Ob
78ject.getOwnPropertyDescriptor(source, key)); }); } } return target; } 79 80// 81// 82// 83// 84// 85// 86// 87// 88// 89// 90// 91// 92// 93// 94// 95// 96// 97// 98// 99// 100// 101// 102// 103// 104 105 106var geojsonArea = __webpack_require__("9a15"); 107 108/* harmony default export */ var CommunityOwnerCardsvue_type_script_lang_js_ = ({ 109 name: 'CardSocial', 110 data: function data() { 111 return { 112 avgRating: undefined, 113 totalArea: undefined 114 }; 115 }, 116 props: { 117 icon_position: { 118 required: false, 119 default: 'left' 120 } 121 }, 122 watch: { 123 communitySubscribed: function communitySubscribed(val) { 124 this.calcTotalArea(); 125 } 126 }, 127 mounted: function mounted() { 128 this.calcTotalArea(); 129 }, 130 methods: { 131 // roundAccurately (number, decimalPlaces) { 132 // return Number(Math.round(number + 'e' + decimalPlaces) + 'e-' + decimalPlaces) 133 // }, 134 calcTotalArea: function calcTotalArea() { 135 if (!this.communitySubscribed || this.communitySubscribed.length < 1) { 136 this.totalArea = ''; // setTimeout(() => { this.calcAvgRating() }, 1000) 137 } else { 138 this.totalArea = Math.ceil(this.communitySubscribed.reduce(function (sum, measure) { 139 // console.log(measure.geometry) 140 // console.log(measure.geometry.coordinates) 141 // console.log(measure.geometry.coordinates[0]) 142 // console.log(geojsonArea.geometry(measure.geometry)) 143 return sum + geojsonArea.geometry(measure.geometry); 144 }, 0) / 1000000); 145 } 146 } 147 }, 148 computed: _objectSpread({}, Object(vuex_esm["d" /* mapState */])(['measuresMine']), {}, Object(vuex_esm["c" /* mapGetters */])(['communitySubscribed', 'userDataAll']), { 149 numberOfSubs: function numberOfSubs() { 150 var _this = this; 151 152 var sum = 0; 153 this.communitySubscribed.forEach(function (community) { 154 _this.userDataAll.forEach(function (userData) { 155 if (userData.profile.subs && userData.profile.subs.includes(community.id)) { 156 sum = sum + 1; 157 } 158 }); 159 }); 160 return sum; 161 }, 162 items: function items() { 163 return this.icon_position === 'left' ? [{ 164 title: this.$t('pages.my_owned_communities.owned_communities'), 165 icon: 'o_groups', 166 value: this.communitySubscribed.length, 167 color1: '#5064b5', 168 color2: '#3e51b5' 169 }, { 170 title: this.$t('pages.my_owned_communities.total_subs'), 171 icon: 'favorite', 172 value: this.numberOfSubs, 173 color1: '#f37169', 174 color2: '#f34636' 175 }, { 176 title: this.$t('pages.my_owned_communities.joint_surface'), 177 icon: 'fas fa-square-full', 178 value: this.totalArea, 179 color1: '#ea6a7f', 180 color2: '#ea4b64' 181 } 182 /*, 183 { 184 title: 'Website Visits', 185 icon: 'bar_chart', 186 value: '1020', 187 color1: '#a270b1', 188 color2: '#9f52b1' 189 } */ 190 ] : [{ 191 title: 'Monthly Income', 192 icon: 'fas fa-dollar-sign', 193 value: '$ 20k', 194 color1: '#546bfa', 195 color2: '#3e51b5' 196 }, { 197 title: 'Weekly Sales', 198 icon: 'fas fa-chart-bar', 199 value: '20', 200 color1: '#3a9688', 201 color2: '#3e51b5' 202 }, { 203 title: 'New Customers', 204 icon: 'fas fa-chart-line', 205 value: '321', 206 color1: '#7cb342', 207 color2: '#3e51b5' 208 }, { 209 title: 'Active Users', 210 icon: 'person', 211 value: '82', 212 color1: '#f88c2b', 213 color2: '#3e51b5' 214 }]; 215 } 216 }) 217}); 218// CONCATENATED MODULE: ./src/components/CommunityOwnerCards.vue?vue&type=script&lang=js& 219 /* harmony default export */ var components_CommunityOwnerCardsvue_type_script_lang_js_ = (CommunityOwnerCardsvue_type_script_lang_js_); 220// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js 221var componentNormalizer = __webpack_require__("2877"); 222 223// CONCATENATED MODULE: ./src/components/CommunityOwnerCards.vue 224 225 226 227 228 229/* normalize component */ 230 231var component = Object(componentNormalizer["a" /* default */])( 232 components_CommunityOwnerCardsvue_type_script_lang_js_, 233 CommunityOwnerCardsvue_type_template_id_174728af_render, 234 CommunityOwnerCardsvue_type_template_id_174728af_staticRenderFns, 235 false, 236 null, 237 null, 238 null 239 240) 241 242/* harmony default export */ var CommunityOwnerCards = (component.exports); 243// CONCATENATED MODULE: ./node_modules/@quasar/app/lib/webpack/loader.transform-quasar-imports.js!./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/MyOwnedCommunityPage.vue?vue&type=script&lang=js& 244 245 246 247 248 249 250 251 252 253 254function MyOwnedCommunityPagevue_type_script_lang_js_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } 255 256function MyOwnedCommunityPagevue_type_script_lang_js_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { MyOwnedCommunityPagevue_type_script_lang_js_ownKeys(source, true).forEach(function (key) { defineProperty_default()(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { MyOwnedCommunityPagevue_type_script_lang_js_ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Ob
256ject.getOwnPropertyDescriptor(source, key)); }); } } return target; } 257 258// 259// 260// 261// 262// 263// 264// 265// 266// 267// 268// 269// 270// 271// 272// 273// 274// 275// 276// 277// 278// 279// 280// 281// 282// 283// 284// 285// 286// 287// 288// 289// 290// 291// 292// 293// 294// 295// 296// 297// 298// 299// 300// 301// 302// 303// 304// 305// 306// 307// 308// 309// 310// 311// 312// 313// 314// 315// 316// 317// 318// 319// 320// 321// 322// 323// 324// 325// 326// 327// 328// 329// 330// 331// 332// 333// 334// 335// 336// 337// 338// 339// 340// 341// 342// 343// 344// 345// 346// 347// 348// 349// 350// 351// 352// 353// 354// 355// 356// 357// 358// 359// 360// 361// 362// 363// 364// 365// 366// 367// 368// 369// 370// 371// 372// 373// 374// 375// 376// 377// 378// 379// 380// 381// 382// 383// 384// 385// 386// 387// 388// 389// 390// 391// 392// 393// 394// 395// 396// 397// 398// 399// 400// 401// 402// 403// 404// 405// 406// 407// 408// 409// 410// 411// 412// 413// 414// 415// 416// 417// 418// 419// 420// 421// 422// 423// 424// 425// 426// 427// 428// 429// 430// 431// 432// 433// 434// 435// 436// 437// 438// 439// 440// 441// 442// 443// 444// 445// 446// 447// 448// 449// 450// 451// 452// 453// 454// 455// 456// 457// 458// 459// 460// 461// 462// 463// 464// 465// 466// 467// 468// 469// 470// 471// 472// 473// 474// 475// 476// 477// 478// 479// 480// 481// 482// 483// 484// 485// 486// 487// 488// 489// 490// 491// 492// 493// 494// 495// 496// 497// 498// 499// 500// 501// 502// 503// 504// 505// 506// 507// 508// 509// 510// 511// 512// 513// 514// 515// 516// 517// 518// 519// 520// 521// 522// 523// 524// 525// 526// 527// 528// 529// 530// 531// 532// 533// 534// 535// 536// 537// 538// 539// 540// 541// 542 543/* import date from 'quasar/src/utils/date.js'; */ 544 545 546/* import { showErrorMessage } from 'src/functions/my-functions' */ 547 548 549 550/* import Polygon from 'ol/geom/Polygon' 551import MultiPolygon from 'ol/geom/MultiPolygon' */ 552 553 554moment_default.a.locale('nl'); 555/* harmony default export */ var MyOwnedCommunityPagevue_type_script_lang_js_ = ({ 556 components: { 557 // ActivityList, 558 MyReadMore: ReadMoreComponent["a" /* default */], 559 CommunityOwnerCards: CommunityOwnerCards 560 }, 561 data: function data() { 562 var _this = this; 563 564 return { 565 // visibleColumns: ['title', 'threads', 'messages', 'mods', 'subs', 'polis', 'pledges'], 566 visibleColumns: ['title', 'threads', 'mods', 'subs', 'polls', 'polis', 'meetings', 'pledges'], 567 filter: '', 568 selected: [], 569 pagination: { 570 rowsPerPage: 15 571 }, 572 // pagination: { 573 // sortBy: 'name', 574 // descending: false, 575 // page: 2, 576 // rowsPerPage: 100 577 // }, 578 columns: [{ 579 name: 'id', 580 label: 'id l', 581 field: 'id', 582 sortable: true 583 }, // { name: 'title', label: 'title', field: 'title', sortable: true } 584 { 585 name: 'title', 586 label: 'Name', 587 align: 'left', 588 field: function field(row) { 589 return row.title; // ? row['Nederlandse naam'] : row['Latijnse naam'] 590 }, 591 format: function format(val) { 592 return "".concat(val); 593 }, 594 sortable: true, 595 596 /* classes: 'bg-grey-2 ellipsis' */ 597 classes: 'ellipsis' // style: 'max-width: 100px' 598 599 }, { 600 name: 'subs', 601 label: 'Subs', 602 align: 'right', 603 field: function field(row) { 604 return _this.subCount(row.id); 605 }, 606 format: function format(val) { 607 return "".concat(val); 608 }, 609 sortable: true 610 /* classes: 'bg-grey-2 ellipsis' */ 611 // classes: 'ellipsis' 612 // style: 'max-width: 100px' 613 614 }, { 615 name: 'threads', 616 label: 'Threads', 617 align: 'right', 618 field: function field(row) { 619 return row.threads.length; // 12//row.title // ? row['Nederlandse naam'] : row['Latijnse naam'] 620 }, 621 format: function format(val) { 622 return "".concat(val); 623 }, 624 sortable: true 625 /* classes: 'bg-grey-2 ellipsis' */ 626 // classes: 'ellipsis' 627 // style: 'max-width: 100px' 628 629 }, { 630 name: 'messages', 631 label: 'Messages', 632 align: 'right', 633 field: function field(row) { 634 return row.threads.reduce(function (sum, _ref) { 635 var comments = _ref.comments; 636 return sum + comments.length; 637 }, 0); 638 }, 639 format: function format(val) { 640 return "".concat(val); 641 }, 642 sortable: true 643 /* classes: 'bg-grey-2 ellipsis' */ 644 // classes: 'ellipsis' 645 // style: 'max-width: 100px' 646 647 }, { 648 name: 'polis', 649 label: 'Polis', 650 align: 'right', 651 field: function field(row) { 652 return row.polis.length; 653 }, 654 format: function format(val) { 655 return "".concat(val); 656 }, 657 sortable: true 658 /* classes: 'bg-grey-2 ellipsis' */ 659 // classes: 'ellipsis' 660 // style: 'max-width: 100px' 661 662 }, { 663 name: 'meetings', 664 label: 'Meetings', 665 align: 'right', 666 field: function field(row) { 667 return row.meetings.length; 668 }, 669 format: function format(val) { 670 return "".concat(val); 671 }, 672 sortable: true 673 /* classes: 'bg-grey-2 ellipsis' */ 674 // classes: 'ellipsis' 675 // style: 'max-width: 100px' 676 677 }, { 678 name: 'polls', 679 label: 'Polls', 680 align: 'right', 681 field: function field(row) { 682 return row.polls.length; 683 }, 684 format: function format(val) { 685 return "".concat(val); 686 }, 687 sortable: true 688 /* classes: 'bg-grey-2 ellipsis' */ 689 // classes: 'ellipsis' 690 // style: 'max-width: 100px' 691 692 }, { 693 name: 'pledges', 694 label: 'Pledges', 695 align: 'right', 696 field: function field(row) { 697 return row.pledges.length; 698 }, 699 format: function format(val) { 700 return "".concat(val); 701 }, 702 sortable: true 703 /* classes: 'bg-grey-2 ellipsis' */ 704 // classes: 'ellipsis' 705 // style: 'max-width: 100px' 706 707 }, { 708 name: 'mods', 709 label: 'Mods', 710 align: 'right', 711 field: function field(row) { 712 return row.mods.length; 713 }, 714 format: function format(val) { 715 return "".concat(val); 716 }, 717 sortable: true 718 /* classes: 'bg-grey-2 ellipsis' */ 719 // classes: 'ellipsis' 720 // style: 'max-width: 100px' 721 722 } // { name: 'Voorkomen', label: 'Voorkomen', field: 'Voorkomen', sortable: true }, 723 // { name: 'Stuifmeelkleur', label: 'Stuifmeelkleur', field: 'Stuifmeelkleur', sortable: true }, 724 725 /* { name: 'stuifmeelwaarde', label: 'Stuifmeelwaarde', field: 'stuifmeelwaarde', sortable: true }, 726 { name: 'nectarwaarde', label: 'Nectarwaarde', field: 'nectarwaarde', sortable: true }, 727 { name: 'sb', label: 'Startbloei', field: 'sb', sortable: true }, 728 { name: 'eb', label: 'Eindbloei', field: 'eb', sortable: true }, 729 { 730 name: 'latinName', 731 label: 'Latijnse naam', 732 field: row => { 733 return row.latinName // ? row['Nederlandse naam'] : row['Latijnse naam'] 734 }, 735 sortable: true 736 } */ 737 // { name: 'EB', label: 'EB', field: 'EB', sortable: true } 738 ] 739 }; 740 }, 741 filters: { 742 // Filter definitions 743 formatDate: function formatDate(value) { 744 if (value) { 745 // return moment(String(value)).fromNow() 746 // return moment(String(value)).format('MM/DD/YYYY hh:mm') 747 return moment_default()(new Date(value)).format('LLL'); 748 } 749 } 750 }, 751 methods: { 752 onClickEditCommunity: function onClickEditCommunity(communityId) { 753 this.$router.push({ 754 name: 'editCommunity', 755 params: { 756 id: communityId 757 } 758 }); 759 }, 760 subCount: function subCount(communityId) { 761 var sum = 0; 762 this.userDataAll.forEach(function (userData) { 763 // console.log(communityId) 764 if (userData.profile.subs && userData.profile.subs.includes(communityId)) { 765 sum = sum + 1; 766 767 if (communityId === 'e61a3f1c-f651-4cb0-9caa-65eb06d61a30') { 768 console.log(userData._id); 769 } 770 } 771 }); 772 return sum; 773 } 774 /* areaUrl (id) { 775 // console.log(process.env) 776 return `${process.env.SITE_URL}/community/${id}` 777 }, 778 fitToFeature (feature, index) { 779 let mapRef = 'map-' + index 780 let map = this.$refs[mapRef].$map 781 let view = map.getView() 782 let polygon 783 if (feature.geometry.type === 'Polygon') { 784 polygon = new Polygon(feature.geometry.coordinates) 785 } else { 786 polygon = new MultiPolygon(feature.geometry.coordinates) 787 } 788 // feature.geometry.type === 'Polygon' ? console.log('Polygon') : console.log(feature.geometry.type) 789 polygon.transform('EPSG:4326', 'EPSG:3857') 790 view.fit(polygon, {}) 791 }, 792 onMapMounted (index) { 793 let temp = 'map-' + index 794 let map = this.$refs[temp].$map 795 map.getControls().extend([]) 796 EventBus.$on('drawerChanged', () => { 797 setTimeout(function () { 798 map.updateSize() 799 }, 100) 800 }) 801 }, 802 ...mapActions(['setShowToolbarState']), 803 getMeasureTitle (measure) { 804 return measure.meazure ? measure.meazure.titel : measure.titel ? measure.meazure.titel.charAt(0).toUpperCase() + measure.meazure.titel.slice(1) : measure.title 805 }, 806 onClickEditMeasure (measure) { 807 // area/:id/edit 808 // this.$router.push('area') 809 this.$router.push({ path: `area/${measure.id}/edit` }) 810 // this.measure = measure 811 // this.measureProperties = { ...measure } 812 // this.sameContent = true 813 // this.showEditMeasureDialog = true 814 }, 815 onClickRemoveMeasure (measure) { 816 console.log(measure) 817 this.$q.dialog({ 818 dark: false, 819 nocaps: true, 820 title: this.$t('pages.my_communities.delete_title'), 821 message: this.$t('pages.my_communities.delete_subtitle'), 822 cancel: { 823 flat: true, 824 'no-caps': true, 825 label: this.$t('buttons.cancel') 826 }, 827 ok: { 828 color: 'red', 829 flat: true, 830 icon: 'delete', 831 'no-caps': true, 832 label: this.$t('buttons.unsubscribe') 833 }, 834 persistent: true 835 }).onOk(() => { 836 this.$meteor.call('unsubscribe', measure.id, (err) => { 837 this.$q.loading.show({ 838 delay: 400 // ms 839 }) 840 if (err) { 841 this.$q.loading.hide() 842 showErrorMessage(err.reason) 843 } else { 844 this.$q.notify({ 845 message: this.$t('messages.unsubscribed'), 846 color: 'positive' 847 }) 848 this.$q.loading.hide() 849 } 850 }) 851 }) 852 }, 853 onClickAddMeasure () { 854 // this.$store.dispatch('themes/ChangeTheme') 855 this.$router.push({ name: 'map' }) 856 }, 857 subtitleText (measure) { 858 let formattedString = date.formatDate(measure.dateCreated, 'DD-MM-YYYY HH:mm') 859 return formattedString 860 } */ 861 862 }, 863 computed: MyOwnedCommunityPagevue_type_script_lang_js_objectSpread({}, Object(vuex_esm["d" /* mapState */])(['notice']), {}, Object(vuex_esm["c" /* mapGetters */])(['communitySubscribed', 'userid', 864 /* 'timelineAd', */ 865 'bannerAd', 'isModerator', 'userData', 'isOwner', 'userDataAll']), { 866 auth: function auth() { 867 return this.$store.getters.isAuthenticated; 868 }, 869 layout: function layout() { 870 // return this.$q.screen.lt.sm ? 'dense' : (this.$q.screen.lt.md ? 'comfortable' : 'loose') 871 return 'dense'; 872 } 873 }), 874 created: function created() { 875 eventbus["a" /* EventBus */].$on('forceRerender', function () { 876 console.log('------------------forceUpdate--------------'); 877 }); 878 }, 879 beforeCreate: function beforeCreate() { 880 this.$q.loading.show({// delay: 400 // ms 881 }); 882 }, 883 mounted: function mounted() { 884 this.$q.loading.hide(); 885 }, 886 beforeDestroy: function beforeDestroy() { 887 eventbus["a" /* EventBus */].$off('drawerChanged'); 888 } 889}); 890// CONCATENATED MODULE: ./src/pages/MyOwnedCommunityPage.vue?vue&type=script&lang=js& 891 /* harmony default export */ var pages_MyOwnedCommunityPagevue_type_script_lang_js_ = (MyOwnedCommunityPagevue_type_script_lang_js_); 892// EXTERNAL MODULE: ./src/pages/MyOwnedCommunityPage.vue?vue&type=style&index=0&id=61e8274e&lang=stylus&scoped=true& 893var MyOwnedCommunityPagevue_type_style_index_0_id_61e8274e_lang_stylus_scoped_true_ = __webpack_require__("8e65"); 894 895// CONCATENATED MODULE: ./src/pages/MyOwnedCommunityPage.vue 896 897 898 899 900 901 902/* normalize component */ 903 904var MyOwnedCommunityPage_component = Object(componentNormalizer["a" /* default */])( 905 pages_MyOwnedCommunityPagevue_type_script_lang_js_, 906 render, 907 staticRenderFns, 908 false, 909 null, 910 "61e8274e", 911 null 912 913) 914 915/* harmony default export */ var MyOwnedCommunityPage = __webpack_exports__["default"] = (MyOwnedCommunityPage_component.exports); 916 917/***/ }), 918 919/***/ "8e65": 920/***/ (function(module, __webpack_exports__, __webpack_require__) { 921 922"use strict"; 923/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_2_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_2_1_node_modules_vue_loader_lib_loaders_stylePostLo
923ader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_2_2_node_modules_stylus_loader_index_js_ref_7_oneOf_2_3_node_modules_quasar_app_lib_webpack_loader_quasar_stylus_variables_js_node_modules_vue_loader_lib_index_js_vue_loader_options_MyOwnedCommunityPage_vue_vue_type_style_index_0_id_61e8274e_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e69f"); 924/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_2_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_2_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_2_2_node_modules_stylus_loader_index_js_ref_7_oneOf_2_3_node_modules_quasar_app_lib_webpack_loader_quasar_stylus_variables_js_node_modules_vue_loader_lib_index_js_vue_loader_options_MyOwnedCommunityPage_vue_vue_type_style_index_0_id_61e8274e_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_2_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_2_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_2_2_node_modules_stylus_loader_index_js_ref_7_oneOf_2_3_node_modules_quasar_app_lib_webpack_loader_quasar_stylus_variables_js_node_modules_vue_loader_lib_index_js_vue_loader_options_MyOwnedCommunityPage_vue_vue_type_style_index_0_id_61e8274e_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0__); 925/* unused harmony reexport * */ 926 /* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_2_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_2_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_2_2_node_modules_stylus_loader_index_js_ref_7_oneOf_2_3_node_modules_quasar_app_lib_webpack_loader_quasar_stylus_variables_js_node_modules_vue_loader_lib_index_js_vue_loader_options_MyOwnedCommunityPage_vue_vue_type_style_index_0_id_61e8274e_lang_stylus_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); 927 928/***/ }), 929 930/***/ "e69f": 931/***/ (function(module, exports, __webpack_require__) { 932 933// extracted by mini-css-extract-plugin 934 935/***/ }) 936 937}]); 938//# sourceMappingURL=46.0efc9177.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.