{"version":3,"sources":["webpack:///./src/views/FetchData.vue?dacb","webpack:///./src/views/FetchData.vue?f705","webpack:///./src/views/FetchData.vue?5c94","webpack:///./src/views/FetchData.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","_v","staticClass","headers","forecasts","loading","scopedSlots","_u","key","fn","props","_s","item","dateFormatted","temperatureC","temperatureF","summary","proxy","showError","domProps","errorMessage","staticRenderFns","text","value","fetchWeatherForecasts","a","get","then","response","data","catch","e","message","finally","component","VAlert","VCol","VContainer","VDataTable","VProgressLinear","VRow","VSlideYTransition"],"mappings":"mHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,cAAc,CAACE,MAAM,CAAC,MAAQ,KAAK,CAACF,EAAG,uBAAuB,CAACE,MAAM,CAAC,KAAO,WAAW,CAACF,EAAG,QAAQ,CAACA,EAAG,QAAQ,CAACA,EAAG,KAAK,CAACJ,EAAIO,GAAG,sBAAsBH,EAAG,IAAI,CAACJ,EAAIO,GAAG,gEAAgEH,EAAG,eAAe,CAACI,YAAY,cAAcF,MAAM,CAAC,QAAUN,EAAIS,QAAQ,MAAQT,EAAIU,UAAU,sBAAsB,GAAG,QAAUV,EAAIW,SAASC,YAAYZ,EAAIa,GAAG,CAAC,CAACC,IAAI,QAAQC,GAAG,SAASC,GAAO,MAAO,CAACZ,EAAG,KAAK,CAACJ,EAAIO,GAAGP,EAAIiB,GAAGD,EAAME,KAAKC,kBAAkBf,EAAG,KAAK,CAACJ,EAAIO,GAAGP,EAAIiB,GAAGD,EAAME,KAAKE,iBAAiBhB,EAAG,KAAK,CAACJ,EAAIO,GAAGP,EAAIiB,GAAGD,EAAME,KAAKG,iBAAiBjB,EAAG,KAAK,CAACJ,EAAIO,GAAGP,EAAIiB,GAAGD,EAAME,KAAKI,kBAAkB,CAAClB,EAAG,oBAAoB,CAACE,MAAM,CAAC,MAAQ,O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iB,QAWhC,IAAkBA,EAAW,CAACC,SAAA,KAAOC,OAAA,KAAKC,aAAA,KAAWC,aAAA,KAAWC,kBAAA,KAAgBC,OAAA,KAAKC,kBAAA","file":"js/fetch-data.c5dcd0d8.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-container',{attrs:{\"fluid\":\"\"}},[_c('v-slide-y-transition',{attrs:{\"mode\":\"out-in\"}},[_c('v-row',[_c('v-col',[_c('h1',[_vm._v(\"Weather forecast\")]),_c('p',[_vm._v(\"This component demonstrates fetching data from the server.\")]),_c('v-data-table',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.headers,\"items\":_vm.forecasts,\"hide-default-footer\":\"\",\"loading\":_vm.loading},scopedSlots:_vm._u([{key:\"items\",fn:function(props){return [_c('td',[_vm._v(_vm._s(props.item.dateFormatted))]),_c('td',[_vm._v(_vm._s(props.item.temperatureC))]),_c('td',[_vm._v(_vm._s(props.item.temperatureF))]),_c('td',[_vm._v(_vm._s(props.item.summary))])]}}])},[_c('v-progress-linear',{attrs:{\"color\":\"blue\",\"indeterminate\":\"\"},scopedSlots:_vm._u([{key:\"progress\",fn:function(){return undefined},proxy:true}])})],1)],1)],1)],1),_c('v-alert',{attrs:{\"value\":_vm.showError,\"type\":\"error\"},domProps:{\"textContent\":_vm._s(_vm.errorMessage)}},[_vm._v(\"\\n This is an error alert.\\n \")]),_c('v-alert',{attrs:{\"value\":_vm.showError,\"type\":\"warning\"}},[_vm._v(\"\\n Are you sure you're using ASP.NET Core endpoint? (default at \"),_c('a',{attrs:{\"href\":\"http://localhost:5000/fetch-data\"}},[_vm._v(\"http://localhost:5000\")]),_vm._v(\")\"),_c('br'),_vm._v(\"\\n API call would fail with status code 404 when calling from Vue app (default at \"),_c('a',{attrs:{\"href\":\"http://localhost:8080/fetch-data\"}},[_vm._v(\"http://localhost:8080\")]),_vm._v(\") without devServer proxy settings in vue.config.js file.\\n \")])],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\nimport { Component, Vue } from 'vue-property-decorator';\nimport { Forecast } from '../models/Forecast';\nimport axios from 'axios';\n\n@Component({})\nexport default class FetchDataView extends Vue {\n private loading: boolean = true;\n private showError: boolean = false;\n private errorMessage: string = 'Error while loading weather forecast.';\n private forecasts: Forecast[] = [];\n private headers = [\n { text: 'Date', value: 'dateFormatted' },\n { text: 'Temp. (C)', value: 'temperatureC' },\n { text: 'Temp. (F)', value: 'temperatureF' },\n { text: 'Summary', value: 'summary' },\n ];\n\n private created() {\n this.fetchWeatherForecasts();\n }\n\n private fetchWeatherForecasts() {\n axios\n .get('api/SampleData/WeatherForecasts')\n .then((response) => {\n this.forecasts = response.data;\n })\n .catch((e) => {\n this.showError = true;\n this.errorMessage = `Error while loading weather forecast: ${e.message}.`;\n })\n .finally(() => (this.loading = false));\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/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FetchData.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/vuetify-loader/lib/loader.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./FetchData.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./FetchData.vue?vue&type=template&id=560df30a&\"\nimport script from \"./FetchData.vue?vue&type=script&lang=ts&\"\nexport * from \"./FetchData.vue?vue&type=script&lang=ts&\"\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 null,\n null\n \n)\n\nexport default component.exports\n\n/* vuetify-loader */\nimport installComponents from \"!../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VAlert } from 'vuetify/lib/components/VAlert';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VProgressLinear } from 'vuetify/lib/components/VProgressLinear';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSlideYTransition } from 'vuetify/lib/components/transitions';\ninstallComponents(component, {VAlert,VCol,VContainer,VDataTable,VProgressLinear,VRow,VSlideYTransition})\n"],"sourceRoot":""}