Welcome to mirror list, hosted at ThFree Co, Russian Federation.

photos-src_views_Locations_vue.js.map « js - github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0c2dc6fe25a5e0df87d94f966b666a0b3212807a (plain)
1
{"version":3,"file":"photos-src_views_Locations_vue.js?v=e79371886baaebf24692","mappings":";0KAGIA,QAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,qMAAsM,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,uCAAuC,MAAQ,GAAG,SAAW,8EAA8E,eAAiB,CAAC,ivBAAi0B,WAAa,MAErvC,yDCPA,oUCCA,wtOA0BA,SACCC,KAAM,wBAENC,KAAI,WACH,MAAO,CACNC,yBAA0B,KAC1BC,oBAAoB,EAEtB,EAEAC,OAAQ,CACPC,EAAAA,GAGDC,QAAS,EAAF,MACHC,EAAAA,EAAAA,IAAW,CACb,oBACC,IAEIC,iBAAgB,SAACC,GAAgB,IA7CzC,EA6CyC,cA7CzC,EA6CyC,oGAClC,EAAKN,mBAAoB,CAAF,wCACnB,IAAE,OAK2B,OAL3B,SAIT,EAAKA,oBAAqB,EAC1B,EAAKD,yBAA2B,KAAI,UAEVM,EAAAA,EAAAA,IAAiBC,EAAgB,CAAEC,OAAQ,EAAKC,gBAAgBD,SAAS,OAE/D,OAF9BE,EAAc,EAAH,KAEjB,EAAKC,eAAe,CAAED,YAAAA,IAAc,kBAE7BA,GAAW,kCAEa,OAAb,QAAd,OAAME,gBAAQ,aAAd,EAAgBC,QACnB,EAAKb,yBAA2B,IAEhC,EAAKA,yBAA2B,EAAH,GAC7B,QAE8B,OAF9B,UAED,EAAKC,oBAAqB,EAAK,8CAGzB,IAAE,+DArEZ,gLAsEE,6RCfF,gmGAAAa,GAAA,wBAAAA,EAAA,sBAAAA,GAAA,iBAAAA,GAAA,ssDAAAA,EAAA,yBAAAA,GAAA,IAAAA,EAAA,uBAAAA,GAAA,4bAAAA,EAAA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AM,qBAAeM,EAAWC,UAAW,UAAUZ,EAAIa,EAAE,SAAU,0CAA2C,CAAEC,aAAcH,EAAWC,WAAY,YAAYZ,EAAIe,GAAG,WAAPf,CAAmBW,EAAWK,aAAa,CAACd,EAAG,KAAK,CAACE,YAAY,kBAAkB,CAACJ,EAAIiB,GAAG,aAAajB,EAAIkB,GAAGP,EAAWC,UAAU,cAAcZ,EAAIiB,GAAG,KAAKf,EAAG,MAAM,CAACE,YAAY,oBAAoBC,MAAM,CAAC,KAAO,YAAYc,KAAK,YAAY,CAACnB,EAAIiB,GAAG,aAAajB,EAAIkB,GAAGlB,EAAIoB,EAAE,SAAU,UAAW,uBAAwBT,EAAWU,UAAW,eAAe,MAAM,CAACnB,EAAG,mBAAmB,CAACO,IAAI,aAAaJ,MAAM,CAAC,KAAO,SAAS,QAAUL,EAAIjC,mBAAmB,MAAQiC,EAAIa,EAAE,SAAU,aAAa,aAAab,EAAIa,EAAE,SAAU,cAAcS,GAAG,CAAC,QAAUtB,EAAIP,gBAAgB0B,KAAK,WAAWnB,EAAIiB,GAAG,KAAKjB,EAAIiB,GAAG,KAAKf,EAAG,iBAAiB,CAACG,MAAM,CAAC,KAAO,yBAAyB,MAAQL,EAAIa,EAAE,SAAU,8BAA8BM,KAAK,0BAA0B,CAACjB,EAAG,sBAAsB,CAACG,MAAM,CAAC,KAAO,QAAQc,KAAK,UAAU,IAAI,IAAI,EACv0C,GACsB,IKUpB,EACA,KACA,WACA,MAI8B","sources":["webpack:///photos/src/views/Locations.vue?vue&type=style&index=0&id=383a7b00&prod&lang=scss&scoped=true&","webpack://photos/./src/views/Locations.vue?7dee","webpack:///photos/src/mixins/FetchCollectionsMixin.js","webpack:///photos/src/views/Locations.vue","webpack:///photos/src/views/Locations.vue?vue&type=script&lang=js&","webpack://photos/./src/views/Locations.vue?07e3","webpack://photos/./src/views/Locations.vue?ffb3"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".locations-list[data-v-383a7b00]{display:flex;flex-direction:column}.locations-list .location__name[data-v-383a7b00]{font-weight:normal;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/views/Locations.vue\"],\"names\":[],\"mappings\":\"AAEA,iCACC,YAAA,CACA,qBAAA,CAEA,iDACC,kBAAA,CACA,eAAA,CACA,kBAAA,CACA,sBAAA\",\"sourcesContent\":[\"$sizes: (\\\"400\\\": (\\\"count\\\": 3, \\\"marginTop\\\": 66, \\\"marginW\\\": 8), \\\"700\\\": (\\\"count\\\": 4, \\\"marginTop\\\": 66, \\\"marginW\\\": 8), \\\"1024\\\": (\\\"count\\\": 5, \\\"marginTop\\\": 66, \\\"marginW\\\": 44), \\\"1280\\\": (\\\"count\\\": 4, \\\"marginTop\\\": 66, \\\"marginW\\\": 44), \\\"1440\\\": (\\\"count\\\": 5, \\\"marginTop\\\": 88, \\\"marginW\\\": 66), \\\"1600\\\": (\\\"count\\\": 6, \\\"marginTop\\\": 88, \\\"marginW\\\": 66), \\\"2048\\\": (\\\"count\\\": 7, \\\"marginTop\\\": 88, \\\"marginW\\\": 66), \\\"2560\\\": (\\\"count\\\": 8, \\\"marginTop\\\": 88, \\\"marginW\\\": 88), \\\"3440\\\": (\\\"count\\\": 9, \\\"marginTop\\\": 88, \\\"marginW\\\": 88), \\\"max\\\": (\\\"count\\\": 10, \\\"marginTop\\\": 88, \\\"marginW\\\": 88));\\n\\n.locations-list {\\n\\tdisplay: flex;\\n\\tflex-direction: column;\\n\\n\\t.location__name {\\n\\t\\tfont-weight: normal;\\n\\t\\toverflow: hidden;\\n\\t\\twhite-space: nowrap;\\n\\t\\ttext-overflow: ellipsis;\\n\\t}\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('CollectionsList',{staticClass:\"locations-list\",attrs:{\"collections\":_vm.locations,\"loading\":_vm.loadingCollections,\"error\":_vm.errorFetchingCollections},scopedSlots:_vm._u([{key:\"default\",fn:function({collection}){return _c('CollectionCover',{key:collection.basename,attrs:{\"link\":`/locations/${collection.basename}`,\"alt-img\":_vm.t('photos', 'Cover photo for location {locationName}', { locationName: collection.basename }),\"cover-url\":_vm._f(\"coverUrl\")(collection.lastPhoto)}},[_c('h2',{staticClass:\"location__name\"},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(collection.basename)+\"\\n\\t\\t\\t\")]),_vm._v(\" \"),_c('div',{staticClass:\"location__details\",attrs:{\"slot\":\"subtitle\"},slot:\"subtitle\"},[_vm._v(\"\\n\\t\\t\\t\\t\"+_vm._s(_vm.n('photos', '%n item', '%n photos and videos', collection.nbItems,))+\"\\n\\t\\t\\t\")])])}}])},[_c('HeaderNavigation',{key:\"navigation\",attrs:{\"slot\":\"header\",\"loading\":_vm.loadingCollections,\"title\":_vm.t('photos', 'Locations'),\"root-title\":_vm.t('photos', 'Locations')},on:{\"refresh\":_vm.fetchLocations},slot:\"header\"}),_vm._v(\" \"),_vm._v(\" \"),_c('NcEmptyContent',{attrs:{\"slot\":\"empty-collections-list\",\"title\":_vm.t('photos', 'There is no location yet!')},slot:\"empty-collections-list\"},[_c('FolderMultipleImage',{attrs:{\"slot\":\"icon\"},slot:\"icon\"})],1)],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","/**\n * @copyright Copyright (c) 2022 Louis Chemineau <louis@chmn.me>\n *\n * @author Louis Chemineau <louis@chmn.me>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nimport { mapActions } from 'vuex'\n\nimport AbortControllerMixin from './AbortControllerMixin.js'\nimport { fetchCollections } from '../services/collectionFetcher.js'\n\nexport default {\n\tname: 'FetchCollectionsMixin',\n\n\tdata() {\n\t\treturn {\n\t\t\terrorFetchingCollections: null,\n\t\t\tloadingCollections: false,\n\t\t}\n\t},\n\n\tmixins: [\n\t\tAbortControllerMixin,\n\t],\n\n\tmethods: {\n\t\t...mapActions([\n\t\t\t'addCollections',\n\t\t]),\n\n\t\tasync fetchCollections(collectionHome) {\n\t\t\tif (this.loadingCollections) {\n\t\t\t\treturn []\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tthis.loadingCollections = true\n\t\t\t\tthis.errorFetchingCollections = null\n\n\t\t\t\tconst collections = await fetchCollections(collectionHome, { signal: this.abortController.signal })\n\n\t\t\t\tthis.addCollections({ collections })\n\n\t\t\t\treturn collections\n\t\t\t} catch (error) {\n\t\t\t\tif (error.response?.status === 404) {\n\t\t\t\t\tthis.errorFetchingCollections = 404\n\t\t\t\t} else {\n\t\t\t\t\tthis.errorFetchingCollections = error\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tthis.loadingCollections = false\n\t\t\t}\n\n\t\t\treturn []\n\t\t},\n\t},\n}\n","<!--\n - @copyright Copyright (c) 2022 Louis Chemineau <louis@chmn.me>\n -\n - @author Louis Chemineau <louis@chmn.me>\n -\n - @license AGPL-3.0-or-later\n -\n - This program is free software: you can redistribute it and/or modify\n - it under the terms of the GNU Affero General Public License as\n - published by the Free Software Foundation, either version 3 of the\n - License, or (at your option) any later version.\n -\n - This program is distributed in the hope that it will be useful,\n - but WITHOUT ANY WARRANTY; without even the implied warranty of\n - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n - GNU Affero General Public License for more details.\n -\n - You should have received a copy of the GNU Affero General Public License\n - along with this program. If not, see <http://www.gnu.org/licenses/>.\n -\n -->\n<template>\n\t<div>\n\t\t<CollectionsList :collections=\"locations\"\n\t\t\t:loading=\"loadingCollections\"\n\t\t\t:error=\"errorFetchingCollections\"\n\t\t\tclass=\"locations-list\">\n\t\t\t<HeaderNavigation key=\"navigation\"\n\t\t\t\tslot=\"header\"\n\t\t\t\t:loading=\"loadingCollections\"\n\t\t\t\t:title=\"t('photos', 'Locations')\"\n\t\t\t\t:root-title=\"t('photos', 'Locations')\"\n\t\t\t\t@refresh=\"fetchLocations\" />\n\n\t\t\t<CollectionCover :key=\"collection.basename\"\n\t\t\t\tslot-scope=\"{collection}\"\n\t\t\t\t:link=\"`/locations/${collection.basename}`\"\n\t\t\t\t:alt-img=\"t('photos', 'Cover photo for location {locationName}', { locationName: collection.basename })\"\n\t\t\t\t:cover-url=\"collection.lastPhoto | coverUrl\">\n\t\t\t\t<h2 class=\"location__name\">\n\t\t\t\t\t{{ collection.basename }}\n\t\t\t\t</h2>\n\n\t\t\t\t<div slot=\"subtitle\" class=\"location__details\">\n\t\t\t\t\t{{ n('photos', '%n item', '%n photos and videos', collection.nbItems,) }}\n\t\t\t\t</div>\n\t\t\t</CollectionCover>\n\n\t\t\t<NcEmptyContent slot=\"empty-collections-list\" :title=\"t('photos', 'There is no location yet!')\">\n\t\t\t\t<FolderMultipleImage slot=\"icon\" />\n\t\t\t</NcEmptyContent>\n\t\t</CollectionsList>\n\t</div>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex'\n\nimport FolderMultipleImage from 'vue-material-design-icons/FolderMultipleImage'\n\nimport { generateUrl } from '@nextcloud/router'\nimport { NcEmptyContent } from '@nextcloud/vue'\nimport { getCurrentUser } from '@nextcloud/auth'\n\nimport FetchCollectionsMixin from '../mixins/FetchCollectionsMixin.js'\nimport CollectionsList from '../components/Collection/CollectionsList.vue'\nimport CollectionCover from '../components/Collection/CollectionCover.vue'\nimport HeaderNavigation from '../components/HeaderNavigation.vue'\n\nexport default {\n\tname: 'Locations',\n\tcomponents: {\n\t\tFolderMultipleImage,\n\t\tNcEmptyContent,\n\t\tCollectionsList,\n\t\tCollectionCover,\n\t\tHeaderNavigation,\n\t},\n\n\tfilters: {\n\t\t/**\n\t\t * @param {string} fileId The location's last photo.\n\t\t */\n\t\tcoverUrl(fileId) {\n\t\t\tif (fileId === -1) {\n\t\t\t\treturn ''\n\t\t\t}\n\n\t\t\treturn generateUrl(`/apps/photos/api/v1/preview/${fileId}?x=${512}&y=${512}`)\n\t\t},\n\t},\n\n\tmixins: [\n\t\tFetchCollectionsMixin,\n\t],\n\n\tcomputed: {\n\t\t...mapGetters([\n\t\t\t'locations',\n\t\t]),\n\t},\n\n\tasync beforeMount() {\n\t\tthis.fetchLocations()\n\t},\n\n\tmethods: {\n\t\tfetchLocations() {\n\t\t\tthis.fetchCollections(`/photos/${getCurrentUser()?.uid}/locations`)\n\t\t},\n\t},\n}\n</script>\n<style lang=\"scss\" scoped>\n.locations-list {\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t.location__name {\n\t\tfont-weight: normal;\n\t\toverflow: hidden;\n\t\twhite-space: nowrap;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n</style>\n","import mod from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Locations.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/babel-loader/lib/index.js!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Locations.vue?vue&type=script&lang=js&\"","\n      import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[3]!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Locations.vue?vue&type=style&index=0&id=383a7b00&prod&lang=scss&scoped=true&\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n      options.insert = insertFn.bind(null, \"head\");\n    \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js??clonedRuleSet-2.use[3]!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Locations.vue?vue&type=style&index=0&id=383a7b00&prod&lang=scss&scoped=true&\";\n       export default content && content.locals ? content.locals : undefined;\n","import { render, staticRenderFns } from \"./Locations.vue?vue&type=template&id=383a7b00&scoped=true&\"\nimport script from \"./Locations.vue?vue&type=script&lang=js&\"\nexport * from \"./Locations.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Locations.vue?vue&type=style&index=0&id=383a7b00&prod&lang=scss&scoped=true&\"\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  \"383a7b00\",\n  null\n  \n)\n\nexport default component.exports"],"names":["___CSS_LOADER_EXPORT___","push","module","id","name","data","errorFetchingCollections","loadingCollections","mixins","AbortControllerMixin","methods","mapActions","fetchCollections","collectionHome","signal","abortController","collections","addCollections","response","status","i","components","FolderMultipleImage","NcEmptyContent","CollectionsList","CollectionCover","HeaderNavigation","filters","coverUrl","FetchCollectionsMixin","computed","mapGetters","beforeMount","fetchLocations","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","_vm","this","_c","_self","staticClass","attrs","locations","scopedSlots","_u","key","fn","collection","basename","t","locationName","_f","lastPhoto","_v","_s","slot","n","nbItems","on"],"sourceRoot":""}