fix: format the files using latest .eslintrc.json
This commit is contained in:
parent
2f28bb4e62
commit
f75e4a275e
@ -1,9 +1,5 @@
|
||||
<template>
|
||||
<div
|
||||
id="editor-container"
|
||||
@touchmove.prevent.stop
|
||||
@wheel.prevent.stop
|
||||
>
|
||||
<div id="editor-container" @touchmove.prevent.stop @wheel.prevent.stop>
|
||||
<header-bar>
|
||||
<action icon="close" :label="$t('buttons.close')" @action="close()" />
|
||||
<title>{{ req.name }}</title>
|
||||
|
||||
@ -383,7 +383,10 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
req: function () {
|
||||
if (window.sessionStorage.getItem("listFrozen") !=="true" && window.sessionStorage.getItem("modified") !=="true"){
|
||||
if (
|
||||
window.sessionStorage.getItem("listFrozen") !== "true" &&
|
||||
window.sessionStorage.getItem("modified") !== "true"
|
||||
) {
|
||||
// Reset the show value
|
||||
this.showLimit = this.req.numDirs + this.req.numFiles;
|
||||
|
||||
@ -395,15 +398,20 @@ export default {
|
||||
// Fill and fit the window with listing items
|
||||
this.fillWindow(true);
|
||||
if (window.sessionStorage.getItem(this.$route.path)) {
|
||||
document.documentElement.scrollTop = JSON.parse(window.sessionStorage.getItem(this.$route.path))[0];
|
||||
if(!this.isMobile) this.addSelected(JSON.parse(window.sessionStorage.getItem(this.$route.path))[1]);
|
||||
window.sessionStorage.removeItem(this.$route.path);
|
||||
document.documentElement.scrollTop = JSON.parse(
|
||||
window.sessionStorage.getItem(this.$route.path)
|
||||
)[0];
|
||||
if (!this.isMobile)
|
||||
this.addSelected(
|
||||
JSON.parse(window.sessionStorage.getItem(this.$route.path))[1]
|
||||
);
|
||||
window.sessionStorage.removeItem(this.$route.path);
|
||||
}
|
||||
});
|
||||
}
|
||||
if (this.req.isDir) {
|
||||
window.sessionStorage.setItem("listFrozen", "false");
|
||||
window.sessionStorage.setItem("modified", "false");
|
||||
window.sessionStorage.setItem("modified", "false");
|
||||
}
|
||||
},
|
||||
},
|
||||
@ -887,9 +895,13 @@ export default {
|
||||
const windowHeight = window.innerHeight;
|
||||
|
||||
// Quantity of items needed to fill 2x of the window height
|
||||
const showQuantity = window.sessionStorage.getItem(this.$route.path) ?
|
||||
Math.ceil((JSON.parse(window.sessionStorage.getItem(this.$route.path))[0] + windowHeight * 2) / this.itemWeight) :
|
||||
Math.ceil((windowHeight + windowHeight * 2) / this.itemWeight);
|
||||
const showQuantity = window.sessionStorage.getItem(this.$route.path)
|
||||
? Math.ceil(
|
||||
(JSON.parse(window.sessionStorage.getItem(this.$route.path))[0] +
|
||||
windowHeight * 2) /
|
||||
this.itemWeight
|
||||
)
|
||||
: Math.ceil((windowHeight + windowHeight * 2) / this.itemWeight);
|
||||
|
||||
// Less items to display than current
|
||||
if (this.showLimit > showQuantity && !fit) return;
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<div
|
||||
id="previewer"
|
||||
@touchmove.prevent.stop
|
||||
@touchmove.prevent.stop
|
||||
@wheel.prevent.stop
|
||||
@mousemove="toggleNavigation"
|
||||
@touchstart="toggleNavigation"
|
||||
>
|
||||
<header-bar v-if="showNav">
|
||||
<header-bar v-if="showNav">
|
||||
<action icon="close" :label="$t('buttons.close')" @action="close()" />
|
||||
<title>{{ name }}</title>
|
||||
<action
|
||||
@ -346,7 +346,7 @@ export default {
|
||||
close() {
|
||||
this.$store.commit("updateRequest", {});
|
||||
|
||||
history.back();
|
||||
history.back();
|
||||
},
|
||||
download() {
|
||||
window.open(this.downloadUrl);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user