Rename Listing to FileListing (reserved keyword)

This commit is contained in:
Kloon ImKloon 2023-09-08 11:39:37 +02:00
parent aaee956149
commit d6165f48c4
No known key found for this signature in database
GPG Key ID: CCF1C86A995C5B6A
3 changed files with 5 additions and 9 deletions

View File

@ -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,

View File

@ -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"

View File

@ -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();