{"version":3,"sources":["webpack:///./src/views/Hangfire/HangfireDashboard.vue?aa64","webpack:///./src/views/Hangfire/HangfireDashboard.vue?fe42","webpack:///./src/views/Hangfire/HangfireDashboard.vue?0e2a","webpack:///./src/views/Hangfire/HangfireDashboard.vue","webpack:///./src/views/Hangfire/HangfireDashboard.vue?e4f4","webpack:///./src/mixins/requiresAdminMixin.ts"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","text","$t","to","name","_v","_s","isLoading","data","getLabels","colors","getHangfireServerInfo","recurringJobCount","_l","job","index","key","checkStateSucces","lastJobStateType","style","color","opacity","checkStateFailed","checkStateScheduled","checkStateNotRun","getDate","createdAt","lastExecution","nextExecution","retryAttempt","error","reason","exceptionType","message","getDateTime","timeOfFailure","_e","staticRenderFns","components","BasePage","BaseBreadcrumb","LoadingBlock","LoadingText","ChartPie","mixins","requiresAdminMixin","errorHandlingApiResponse","webservicesData","cronIsLoading","polling","computed","i18n","t","created","$moment","locale","$store","dispatch","then","response","countStatus","pollData","mounted","$watch","newLocale","oldLocale","setLocale","methods","date","formattedDate","Date","calendar","format","succes","getJobs","filter","x","length","failure","scheduled","notrun","rest","triggerCronJob","jobId","setInterval","beforeDestroy","clearInterval","component","beforeRouteEnter","from","next","state","auth","roles","includes"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,YAAY,CAACA,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,kBAAkB,CAACG,MAAM,CAAC,MAAQ,CACtL,CACEC,KAAMP,KAAKQ,GAAG,yBACdC,GAAI,CAAEC,KAAM,aAEd,CACEH,KAAMP,KAAKQ,GAAG,gCAEbL,EAAG,KAAK,CAACE,YAAY,QAAQ,CAACN,EAAIY,GAAG,IAAIZ,EAAIa,GAAGb,EAAIS,GAAG,6BAA6B,OAAOL,EAAG,MAAM,CAACE,YA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Ac5F,KAAKuD,WClVuY,I,wBCQ1ZsC,EAAY,eACd,EACA/F,EACA6C,GACA,EACA,KACA,WACA,MAIa,aAAAkD,E,2CCnBf,yBAAkgB,EAAG,G,wGCExf1C,EAAqB,CAChC2C,iBADgC,SACfrF,EAAIsF,EAAMC,GACpB,OAAMC,MAAMC,KAAKC,OAKlB,OAAMF,MAAMC,KAAKC,MAAMC,SAAS,SAClCJ,IALAA,EAAK,CAAEtF,KAAM,Y","file":"js/chunk-159fd2dc.39dfa51b1b1b4cb7c68b.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-page',[_c('div',{staticClass:\"container mt-4\"},[_c('base-breadcrumb',{attrs:{\"items\":[\n {\n text: this.$t('Settings.app_settings'),\n to: { name: 'Settings' }\n },\n {\n text: this.$t('Settings.navisiontesten')\n }\n ]}}),_c('h1',{staticClass:\"mt-4\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"dashboard.hangfire_title\"))+\" \")]),_c('div',{staticClass:\"card w-100 mb-4 overview-card\"},[_c('div',{staticClass:\"row no-gutters\"},[_c('div',{staticClass:\"col-auto custom-icon-containter\"},[_c('loading-block',{attrs:{\"loading\":_vm.isLoading}},[_c('chart-pie',{staticClass:\"mt-3 text-left\",attrs:{\"data\":_vm.data,\"labels\":_vm.getLabels,\"colors\":_vm.colors,\"height\":\"350px\"}})],1)],1),_c('div',{staticClass:\"col\"},[_c('h3',[_vm._v(_vm._s(_vm.$t(\"dashboard.overzicht\")))]),_c('table',{staticClass:\"d-inline-block\"},[_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"dashboard.totaal_cronjobs\"))+\":\")]),_c('td',[_vm._v(_vm._s(_vm.getHangfireServerInfo.recurringJobCount))])])])])])]),_c('loading-block',{attrs:{\"loading\":_vm.isLoading}},[_vm._l((_vm.getJobs),function(job,index){return [_c('div',{key:index,staticClass:\"card mb-1 mt-1\"},[_c('div',{staticClass:\"row no-gutters\"},[_c('div',{staticClass:\"col-auto custom-icon-containter\"},[_c('div',[_c('font-awesome-layers',{staticClass:\"fa-3x\"},[(_vm.checkStateSucces(job.lastJobStateType))?_c('font-awesome-icon',{style:({ color: '#10b519', opacity: '0.8' }),attrs:{\"icon\":\"check\",\"transform\":\" up-3 shrink-1 right-5\",\"alt\":\"Geen Afbeelding Beschikbaar\"}}):(_vm.checkStateFailed(job.lastJobStateType))?_c('font-awesome-icon',{style:({ color: '#f20707', opacity: '0.8' }),attrs:{\"icon\":\"times\",\"transform\":\" up-3 shrink-1 right-5\",\"alt\":\"Geen Afbeelding Beschikbaar\"}}):(_vm.checkStateScheduled(job.lastJobStateType))?_c('font-awesome-icon',{style:({ color: 'orange', opacity: '0.8' }),attrs:{\"icon\":\"exclamation\",\"transform\":\" up-3 shrink-1 right-5\",\"alt\":\"Geen Afbeelding Beschikbaar\"}}):(_vm.checkStateNotRun(job.lastJobStateType))?_c('font-awesome-icon',{style:({ color: '#f5f500', opacity: '0.8' }),attrs:{\"icon\":\"exclamation\",\"transform\":\" up-3 shrink-1 right-5\",\"alt\":\"Geen Afbeelding Beschikbaar\"}}):_c('font-awesome-icon',{style:({ color: '#C0C0C0', opacity: '0.8' }),attrs:{\"icon\":\"question\",\"transform\":\" up-3 shrink-1 right-5\",\"alt\":\"Geen Afbeelding Beschikbaar\"}})],1)],1)]),_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card-block px-2\"},[_c('h4',{staticClass:\"card-title\"},[_vm._v(_vm._s(_vm.$t((\"Settings.\" + (job.id)))))]),_c('div',{staticClass:\"row no-gutters\"},[_c('table',{staticClass:\"col ml-3\"},[_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"dashboard.aangemaakt\"))+\":\")]),_c('td',[_vm._v(_vm._s(_vm.getDate(job.createdAt)))])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"dashboard.laatst_uitgevoerd\"))+\":\")]),_c('td',[_vm._v(\" \"+_vm._s(job.lastExecution != null ? _vm.getDate(job.lastExecution) : \"-\")+\" \")])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"dashboard.volgende_uitvoering\"))+\":\")]),_c('td',[_vm._v(_vm._s(_vm.getDate(job.nextExecution)))])])]),_c('table',{staticClass:\"col ml-3\"},[_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"dashboard.status\"))+\":\")]),_c('td',[_vm._v(\" \"+_vm._s(_vm.$t((\"enum_cronState_type.\" + (job.lastJobStateType))))+\" \")])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"dashboard.opnieuw_geprobeerd\"))+\":\")]),_c('td',[_vm._v(_vm._s(job.retryAttempt))])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"dashboard.reden\"))+\":\")]),_c('td',[_vm._v(\" \"+_vm._s(_vm.$t( (\"enum_cronState_explanation.\" + (job.lastJobStateType)) ))+\" \")])])])])])])]),(job.error)?_c('div',{staticClass:\"text-center\"},[_c('hr'),_c('b',[_vm._v(_vm._s(_vm.$t(\"dashboard.error_info\")))]),_vm._l((job.error),function(error,key){return _c('table',{key:key,staticClass:\"text-left mx-auto\"},[_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"dashboard.reden\"))+\":\")]),_c('td',[_vm._v(_vm._s(error.reason))])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"error.type\"))+\":\")]),_c('td',[_vm._v(_vm._s(error.exceptionType))])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"error.bericht\"))+\":\")]),_c('td',[_vm._v(_vm._s(error.message))])]),_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"error.time_ofFailure\"))+\":\")]),_c('td',[_vm._v(_vm._s(_vm.getDateTime(error.timeOfFailure)))])])])})],2):_vm._e()])]})],2)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\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\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\nimport { mapGetters } from \"vuex\";\nimport { apiClient } from \"@/services/api-client\";\nimport BasePage from \"@/components/Base/BasePage.vue\";\nimport BaseBreadcrumb from \"@/components/Base/BaseBreadcrumb.vue\";\nimport LoadingBlock from \"@/components/LoadingBlock.vue\";\nimport LoadingText from \"@/components/LoadingText.vue\";\nimport { requiresAdminMixin } from \"@/mixins/requiresAdminMixin\";\nimport { errorHandlingApiResponse } from \"@/mixins/errorHandlingApiResponse\";\nimport { i18n } from \"@/plugins/i18n\";\nimport ChartPie from \"@/components/ChartPie.vue\";\n\nexport default {\n name: \"CronDashboard\",\n components: {\n BasePage,\n BaseBreadcrumb,\n LoadingBlock,\n LoadingText,\n ChartPie\n },\n mixins: [requiresAdminMixin, errorHandlingApiResponse],\n data() {\n return {\n webservicesData: {},\n isLoading: false,\n cronIsLoading: false,\n data: [],\n colors: [\"#10b519\", \"#ffa500\", \"#f20707\", \"#f5f500\", \"#C0C0C0\"],\n polling: null\n };\n },\n computed: {\n ...mapGetters([\"getJobs\", \"getHangfireServerInfo\", \"isSet\"]),\n getLabels() {\n return [\n i18n.t(\"enum_cronState_type.Succeeded\"),\n i18n.t(\"enum_cronState_type.Scheduled\"),\n i18n.t(\"enum_cronState_type.Failed\"),\n i18n.t(\"enum_cronState_type.StateNotRun\"),\n i18n.t(\"enum_cronState_type.Other\")\n ];\n }\n },\n created() {\n this.isLoading = true;\n this.$moment.locale(i18n.locale);\n\n this.$store.dispatch(\"jobsRequested\").then(response => {\n this.data = this.countStatus();\n });\n\n this.pollData();\n\n this.isLoading = false;\n },\n\n mounted() {\n this.$watch(\"$i18n.locale\", (newLocale, oldLocale) => {\n if (newLocale === oldLocale) {\n return;\n }\n\n this.setLocale();\n this.$store.dispatch(\"jobsRequested\").then(response => {\n this.data = this.countStatus();\n });\n });\n },\n\n methods: {\n setLocale() {\n this.$moment.locale(i18n.locale);\n },\n\n getDate(date) {\n var formattedDate = new Date(date);\n return this.$moment(formattedDate).calendar(); //\n },\n\n getDateTime(date) {\n var formattedDate = new Date(date);\n return this.$moment(formattedDate).format(\"DD/MM/YYYY, h:mm:ss\"); //\n },\n\n countStatus() {\n var succes = this.getJobs.filter(x =>\n this.checkStateSucces(x.lastJobStateType)\n ).length;\n var failure = this.getJobs.filter(x =>\n this.checkStateFailed(x.lastJobStateType)\n ).length;\n var scheduled = this.getJobs.filter(x =>\n this.checkStateScheduled(x.lastJobStateType)\n ).length;\n var notrun = this.getJobs.filter(x =>\n this.checkStateNotRun(x.lastJobStateType)\n ).length;\n var rest = this.getJobs.length - succes - failure - scheduled - notrun;\n\n return [succes, scheduled, failure, notrun, rest];\n },\n\n triggerCronJob(jobId) {\n this.cronIsLoading = true;\n this.$store.dispatch(\"triggerManual\", jobId).then(response => {\n this.cronIsLoading = false;\n });\n },\n\n checkStateSucces(lastJobStateType) {\n if (lastJobStateType == \"Succeeded\") {\n return true;\n }\n\n return false;\n },\n\n checkStateFailed(lastJobStateType) {\n if (lastJobStateType == \"Failed\") {\n return true;\n }\n\n return false;\n },\n\n checkStateScheduled(lastJobStateType) {\n if (lastJobStateType == \"Scheduled\") {\n return true;\n }\n return false;\n },\n\n checkStateNotRun(lastJobStateType) {\n if (lastJobStateType == \"StateNotRun\") {\n return true;\n }\n return false;\n },\n\n pollData() {\n this.polling = setInterval(() => {\n this.$store.dispatch(\"jobsRequested\").then(response => {\n this.data = this.countStatus();\n });\n }, 30000);\n }\n },\n beforeDestroy() {\n //prevent polling from running when page is closed\n clearInterval(this.polling);\n }\n};\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HangfireDashboard.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--13-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HangfireDashboard.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./HangfireDashboard.vue?vue&type=template&id=bdebc098&scoped=true&\"\nimport script from \"./HangfireDashboard.vue?vue&type=script&lang=ts&\"\nexport * from \"./HangfireDashboard.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./HangfireDashboard.vue?vue&type=style&index=0&id=bdebc098&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bdebc098\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HangfireDashboard.vue?vue&type=style&index=0&id=bdebc098&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./HangfireDashboard.vue?vue&type=style&index=0&id=bdebc098&scoped=true&lang=css&\"","import store from \"@/store/store\";\n\nexport const requiresAdminMixin = {\n beforeRouteEnter(to, from, next) {\n if (!store.state.auth.roles) {\n next({ name: \"Home\" });\n return;\n }\n\n if (store.state.auth.roles.includes(\"Admin\")) {\n next();\n return;\n }\n\n next({ name: \"Home\" });\n }\n};\n"],"sourceRoot":""}