Rename Listing to FileListing (reserved keyword)
This commit is contained in:
parent
aaee956149
commit
d6165f48c4
@ -48,9 +48,6 @@ import * as upload from "@/utils/upload";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "item",
|
name: "item",
|
||||||
compatConfig: {
|
|
||||||
ATTR_FALSE_VALUE: "suppress-warning",
|
|
||||||
},
|
|
||||||
data: function () {
|
data: function () {
|
||||||
return {
|
return {
|
||||||
touches: 0,
|
touches: 0,
|
||||||
|
|||||||
@ -31,7 +31,7 @@ import HeaderBar from "@/components/header/HeaderBar.vue";
|
|||||||
import Breadcrumbs from "@/components/Breadcrumbs.vue";
|
import Breadcrumbs from "@/components/Breadcrumbs.vue";
|
||||||
import Errors from "@/views/Errors.vue";
|
import Errors from "@/views/Errors.vue";
|
||||||
import Preview from "@/views/files/Preview.vue";
|
import Preview from "@/views/files/Preview.vue";
|
||||||
import Listing from "@/views/files/Listing.vue";
|
import FileListing from "@/views/files/FileListing.vue";
|
||||||
|
|
||||||
function clean(path) {
|
function clean(path) {
|
||||||
return path.endsWith("/") ? path.slice(0, -1) : path;
|
return path.endsWith("/") ? path.slice(0, -1) : path;
|
||||||
@ -44,7 +44,7 @@ export default {
|
|||||||
Breadcrumbs,
|
Breadcrumbs,
|
||||||
Errors,
|
Errors,
|
||||||
Preview,
|
Preview,
|
||||||
Listing,
|
FileListing,
|
||||||
Editor: defineAsyncComponent(() => import("@/views/files/Editor.vue")),
|
Editor: defineAsyncComponent(() => import("@/views/files/Editor.vue")),
|
||||||
},
|
},
|
||||||
data: function () {
|
data: function () {
|
||||||
@ -73,7 +73,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.req.isDir) {
|
if (this.req.isDir) {
|
||||||
return "listing";
|
return "file-listing";
|
||||||
} else if (
|
} else if (
|
||||||
this.req.type === "text" ||
|
this.req.type === "text" ||
|
||||||
this.req.type === "textImmutable"
|
this.req.type === "textImmutable"
|
||||||
|
|||||||
@ -267,7 +267,6 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Vue from "vue";
|
|
||||||
import { mapState, mapWritableState, mapActions, mapStores } from "pinia";
|
import { mapState, mapWritableState, mapActions, mapStores } from "pinia";
|
||||||
import { useAuthStore } from "@/stores/auth";
|
import { useAuthStore } from "@/stores/auth";
|
||||||
import { useClipboardStore } from "@/stores/clipboard";
|
import { useClipboardStore } from "@/stores/clipboard";
|
||||||
@ -287,7 +286,7 @@ import Search from "@/components/Search.vue";
|
|||||||
import Item from "@/components/files/ListingItem.vue";
|
import Item from "@/components/files/ListingItem.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "listing",
|
name: "file-listing",
|
||||||
components: {
|
components: {
|
||||||
HeaderBar,
|
HeaderBar,
|
||||||
Action,
|
Action,
|
||||||
@ -403,7 +402,7 @@ export default {
|
|||||||
this.showLimit = 50;
|
this.showLimit = 50;
|
||||||
|
|
||||||
// Ensures that the listing is displayed
|
// Ensures that the listing is displayed
|
||||||
Vue.nextTick(() => {
|
this.$nextTick(() => {
|
||||||
// How much every listing item affects the window height
|
// How much every listing item affects the window height
|
||||||
this.setItemWeight();
|
this.setItemWeight();
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user