lotus / node_modules /.cache /vue-loader /1481bfb50be3729d62de77baa3c18242.json
k-l-lambda's picture
updated node_modules
4cadbaf
raw
history blame
3.75 kB
{"remainingRequest":"/home/camus/work/lotus/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/camus/work/lotus/app/components/dir-browser.vue?vue&type=style&index=0&id=29938dab&lang=scss&scoped=true","dependencies":[{"path":"/home/camus/work/lotus/app/components/dir-browser.vue","mtime":1732184473647},{"path":"/home/camus/work/lotus/node_modules/css-loader/dist/cjs.js","mtime":1719800839423},{"path":"/home/camus/work/lotus/node_modules/vue-loader/lib/loaders/stylePostLoader.js","mtime":1719800840033},{"path":"/home/camus/work/lotus/node_modules/postcss-loader/src/index.js","mtime":1719800839995},{"path":"/home/camus/work/lotus/node_modules/sass-loader/dist/cjs.js","mtime":1719800856708},{"path":"/home/camus/work/lotus/node_modules/cache-loader/dist/cjs.js","mtime":1719800821084},{"path":"/home/camus/work/lotus/node_modules/vue-loader/lib/index.js","mtime":1719800840033}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:CmlmcmFtZQp7Cgl3aWR0aDogMTAwJTsKCWhlaWdodDogMTAwJTsKfQoKLmNvbnRyb2xzCnsKCXBvc2l0aW9uOiBhYnNvbHV0ZTsKCWxlZnQ6IDA7Cgl0b3A6IDA7Cn0K"},{"version":3,"sources":["dir-browser.vue"],"names":[],"mappings":";AA4GA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA","file":"dir-browser.vue","sourceRoot":"app/components","sourcesContent":["<template>\n\t<div class=\"dir-browser\" v-show=\"shown\"\n\t\t@mouseenter=\"hover = true\"\n\t\t@mouseleave=\"hover = false\"\n\t>\n\t\t<iframe ref=\"frame\" :src=\"homeURL\"\n\t\t\t@load=\"onFrameLoad\"\n\t\t/>\n\t\t<div class=\"controls\">\n\t\t\t<button @click=\"$refs.frame.contentWindow.location.href = homeURL\">{{\"\\ud83c\\udfe0\"}}</button>\n\t\t\t<button @click=\"$refs.frame.contentWindow.history.back()\">&#x21e6;</button>\n\t\t</div>\n\t</div>\n</template>\n\n<script>\n\timport debounce from \"lodash/debounce\";\n\n\n\n\texport default {\n\t\tname: \"dir-browser\",\n\n\n\t\tprops: {\n\t\t\thomeURL: String,\n\t\t\tshown: Boolean,\n\t\t\thandlePattern: RegExp,\n\t\t\tautoHide: Boolean,\n\t\t\tcompactFolders: Boolean,\n\t\t},\n\n\n\t\tdata () {\n\t\t\treturn {\n\t\t\t\thref: this.homeURL,\n\t\t\t\thover: false,\n\t\t\t};\n\t\t},\n\n\n\t\tmethods: {\n\t\t\tonFrameLoad () {\n\t\t\t\tthis.href = this.$refs.frame.contentWindow.location.href;\n\t\t\t},\n\n\n\t\t\thide () {\n\t\t\t\tthis.$emit(\"update:shown\", false);\n\t\t\t},\n\n\n\t\t\treload () {\n\t\t\t\tthis.$refs.frame.contentWindow.location.reload();\n\t\t\t},\n\t\t},\n\n\n\t\twatch: {\n\t\t\thref () {\n\t\t\t\tif (this.handlePattern && this.handlePattern.test(this.href)) {\n\t\t\t\t\tthis.$refs.frame.contentWindow.history.back();\n\n\t\t\t\t\tthis.hide();\n\n\t\t\t\t\tconst pos = Math.max(this.href.indexOf(this.homeURL), 0);\n\t\t\t\t\tconst filePath = decodeURI(this.href.substr(pos + this.homeURL.length));\n\t\t\t\t\tthis.$emit(\"pickFile\", filePath);\n\t\t\t\t}\n\t\t\t\telse if (this.compactFolders) {\n\t\t\t\t\tconst lis = this.$refs.frame.contentDocument.querySelectorAll(\"#files li\");\n\t\t\t\t\tconst folders = this.$refs.frame.contentDocument.querySelectorAll(\"#files .folder\");\n\t\t\t\t\t//console.log(\"lis:\", lis, folders);\n\t\t\t\t\tif (lis.length === 2 && folders.length === 1) {\n\t\t\t\t\t\tconst folder = this.$refs.frame.contentDocument.querySelector(\"#files .folder\");\n\t\t\t\t\t\tfolder.click();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\n\t\t\thover (value) {\n\t\t\t\tif (!value && this.autoHide) {\n\t\t\t\t\tdebounce(() => {\n\t\t\t\t\t\tif (!this.hover)\n\t\t\t\t\t\t\tthis.hide();\n\t\t\t\t\t}, 1e+3)();\n\t\t\t\t}\n\t\t\t},\n\t\t},\n\t};\n</script>\n\n<style lang=\"scss\" scoped>\n\tiframe\n\t{\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.controls\n\t{\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\ttop: 0;\n\t}\n</style>\n"]}]}