_id.js.map 3.8 KB

1
  1. {"version":3,"file":"pages/qrcode/_id.js","sources":["webpack:///./pages/qrcode/_id.vue","webpack:///./pages/qrcode/_id.vue?1bcf","webpack:///./pages/qrcode/_id.vue?ee7a","webpack:///./pages/qrcode/_id.vue?aa80","webpack:///./pages/qrcode/_id.vue?0628"],"sourcesContent":["\nexport default {\n layout: \"blank_layout\",\n data() {\n return {\n mediaUrl: \"\",\n fileExtension: \"\",\n loading: true,\n type: null,\n };\n },\n computed: {\n isImageType() {\n return this.type === 1 || this.type === 8 || this.isType([\"jpg\", \"jpeg\", \"png\", \"gif\", \"bmp\", \"webp\"]);\n },\n isVideoType() {\n return this.type === 5 || this.isType([\"mp4\", \"webm\", \"ogg\"]);\n },\n isAudioType() {\n return this.isType([\"mp3\", \"wav\", \"ogg\"]);\n },\n isPdfType() {\n return this.isType([\"pdf\"]);\n },\n isOtherType() {\n return !this.isImageType && !this.isVideoType && !this.isAudioType && !this.isPdfType;\n },\n },\n created() {\n this.$axios\n .get(`/uk-api/data/detail/${+this.$route.params.id}`)\n .then((response) => {\n const { media_url, type } = response.result;\n this.mediaUrl = media_url;\n this.type = type;\n const url = new URL(this.mediaUrl);\n this.fileExtension = url.pathname.split(\".\").pop().toLowerCase();\n this.loading = false;\n })\n .catch((error) => {\n console.error(\"Fail:\", error);\n this.loading = false;\n });\n },\n methods: {\n isType(types) {\n return types.includes(this.fileExtension);\n },\n },\n};\n","// Exports\nmodule.exports = {\n\n};\n","export * from \"-!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-0!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/sass-loader/dist/cjs.js??ref--7-oneOf-1-2!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_id.vue?vue&type=style&index=0&id=0d6475ee&prod&lang=scss&scoped=true\"","import mod from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_id.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js??ref--2-0!../../node_modules/@nuxt/components/dist/loader.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./_id.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./_id.vue?vue&type=template&id=0d6475ee&scoped=true\"\nimport script from \"./_id.vue?vue&type=script&lang=js\"\nexport * from \"./_id.vue?vue&type=script&lang=js\"\nfunction injectStyles (context) {\n \n var style0 = require(\"./_id.vue?vue&type=style&index=0&id=0d6475ee&prod&lang=scss&scoped=true\")\nif (style0.__inject__) style0.__inject__(context)\n\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 injectStyles,\n \"0d6475ee\",\n \"06a80a7f\"\n \n)\n\nexport default component.exports"],"mappings":";;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACjDA;AACA;AACA;AACA;;;;;;;;;ACHA;AAAA;AAAA;AAAA;;;;;;;;;;;;;AFAA;AAAA;AAAA;AAAA;AACA;AACA;;;;;;;;AGFA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;A","sourceRoot":""}