updated
This commit is contained in:
parent
eb33db5d87
commit
a7c6f637f0
|
@ -40,6 +40,7 @@ header {
|
||||||
}
|
}
|
||||||
#search.active #input {
|
#search.active #input {
|
||||||
background: var(--surfacePrimary);
|
background: var(--surfacePrimary);
|
||||||
|
border-color: white;
|
||||||
}
|
}
|
||||||
#search.active input {
|
#search.active input {
|
||||||
color: var(--textPrimary);
|
color: var(--textPrimary);
|
||||||
|
@ -131,8 +132,8 @@ nav > div {
|
||||||
.input {
|
.input {
|
||||||
background: var(--surfaceSecondary);
|
background: var(--surfaceSecondary);
|
||||||
color: var(--textPrimary);
|
color: var(--textPrimary);
|
||||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input:hover,
|
.input:hover,
|
||||||
.input:focus {
|
.input:focus {
|
||||||
border-color: rgba(255, 255, 255, 0.15);
|
border-color: rgba(255, 255, 255, 0.15);
|
||||||
|
@ -215,5 +216,5 @@ nav {
|
||||||
}
|
}
|
||||||
#result-desktop #result-list {
|
#result-desktop #result-list {
|
||||||
background: #2a3137;
|
background: #2a3137;
|
||||||
|
max-height: unset;
|
||||||
}
|
}
|
|
@ -5,9 +5,6 @@
|
||||||
</div>
|
</div>
|
||||||
<listingBar v-if="currentView === 'listing'"></listingBar>
|
<listingBar v-if="currentView === 'listing'"></listingBar>
|
||||||
<editorBar v-else-if="currentView === 'editor'"></editorBar>
|
<editorBar v-else-if="currentView === 'editor'"></editorBar>
|
||||||
<editorBar v-else-if="currentView === 'share'"></editorBar>
|
|
||||||
<editorBar v-else-if="currentView === 'dashboard'"></editorBar>
|
|
||||||
<editorBar v-else-if="currentView === 'error'"></editorBar>
|
|
||||||
<defaultBar v-else></defaultBar>
|
<defaultBar v-else></defaultBar>
|
||||||
<sidebar></sidebar>
|
<sidebar></sidebar>
|
||||||
<main>
|
<main>
|
||||||
|
@ -19,10 +16,9 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import editorBar from "./files/EditorBar.vue"
|
import editorBar from "./bars/EditorBar.vue"
|
||||||
import defaultBar from "./files/Default.vue"
|
import defaultBar from "./bars/Default.vue"
|
||||||
import listingBar from "./files/ListingBar.vue"
|
import listingBar from "./bars/ListingBar.vue"
|
||||||
import previewBar from "./files/Preview.vue"
|
|
||||||
import Prompts from "@/components/prompts/Prompts";
|
import Prompts from "@/components/prompts/Prompts";
|
||||||
import Action from "@/components/header/Action";
|
import Action from "@/components/header/Action";
|
||||||
import { mapState, mapGetters } from "vuex";
|
import { mapState, mapGetters } from "vuex";
|
||||||
|
@ -35,7 +31,6 @@ export default {
|
||||||
defaultBar,
|
defaultBar,
|
||||||
editorBar,
|
editorBar,
|
||||||
listingBar,
|
listingBar,
|
||||||
previewBar,
|
|
||||||
Action,
|
Action,
|
||||||
Sidebar,
|
Sidebar,
|
||||||
Prompts,
|
Prompts,
|
||||||
|
|
|
@ -52,6 +52,10 @@ import { mapState } from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "settings",
|
name: "settings",
|
||||||
|
mounted() {
|
||||||
|
// Update the req name property
|
||||||
|
this.$store.commit("updateRequest", { name: "Settings" });
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["user", "loading","req"]),
|
...mapState(["user", "loading","req"]),
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<header-bar>
|
<header-bar>
|
||||||
<action
|
<action icon="close" :label="$t('buttons.close')" @action="close()" />
|
||||||
class="menu-button"
|
|
||||||
icon="menu"
|
|
||||||
:label="$t('buttons.toggleSidebar')"
|
|
||||||
@action="toggleSidebar()"
|
|
||||||
/>
|
|
||||||
<title class="topTitle">{{ req.name }}</title>
|
<title class="topTitle">{{ req.name }}</title>
|
||||||
|
|
||||||
</header-bar>
|
</header-bar>
|
||||||
|
@ -24,6 +19,7 @@ import Vue from "vue";
|
||||||
import { mapState, mapGetters, mapMutations } from "vuex";
|
import { mapState, mapGetters, mapMutations } from "vuex";
|
||||||
import { users, files as api } from "@/api";
|
import { users, files as api } from "@/api";
|
||||||
import { enableExec } from "@/utils/constants";
|
import { enableExec } from "@/utils/constants";
|
||||||
|
import url from "@/utils/url";
|
||||||
import HeaderBar from "@/components/header/HeaderBar.vue";
|
import HeaderBar from "@/components/header/HeaderBar.vue";
|
||||||
import Action from "@/components/header/Action.vue";
|
import Action from "@/components/header/Action.vue";
|
||||||
import * as upload from "@/utils/upload";
|
import * as upload from "@/utils/upload";
|
||||||
|
@ -53,6 +49,9 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(["req", "selected", "user", "show", "multiple", "selected", "loading"]),
|
...mapState(["req", "selected", "user", "show", "multiple", "selected", "loading"]),
|
||||||
...mapGetters(["selectedCount"]),
|
...mapGetters(["selectedCount"]),
|
||||||
|
isSettings() {
|
||||||
|
return this.$route.path.includes("/settings/")
|
||||||
|
},
|
||||||
nameSorted() {
|
nameSorted() {
|
||||||
return this.req.sorting.by === "name";
|
return this.req.sorting.by === "name";
|
||||||
},
|
},
|
||||||
|
@ -582,7 +581,17 @@ export default {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
close() {
|
||||||
|
if (this.isSettings) { // Use this.isSettings to access the computed property
|
||||||
|
this.$router.push({ path: "/files/" }, () => { });
|
||||||
|
this.$store.commit("closeHovers");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.$store.commit("updateRequest", {});
|
||||||
|
let uri = url.removeLastDir(this.$route.path) + "/";
|
||||||
|
console.log(url)
|
||||||
|
this.$router.push({ path: uri });
|
||||||
|
},
|
||||||
upload: function () {
|
upload: function () {
|
||||||
if (
|
if (
|
||||||
typeof window.DataTransferItem !== "undefined" &&
|
typeof window.DataTransferItem !== "undefined" &&
|
|
@ -132,11 +132,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
if (this.isSettings) { // Use this.isSettings to access the computed property
|
|
||||||
this.$router.push({ path: "/files/" }, () => { });
|
|
||||||
this.$store.commit("closeHovers");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.$store.commit("updateRequest", {});
|
this.$store.commit("updateRequest", {});
|
||||||
let uri = url.removeLastDir(this.$route.path) + "/";
|
let uri = url.removeLastDir(this.$route.path) + "/";
|
||||||
this.$router.push({ path: uri });
|
this.$router.push({ path: uri });
|
|
@ -28,9 +28,9 @@
|
||||||
import Vue from "vue";
|
import Vue from "vue";
|
||||||
import { mapState, mapGetters, mapMutations } from "vuex";
|
import { mapState, mapGetters, mapMutations } from "vuex";
|
||||||
import { users, files as api } from "@/api";
|
import { users, files as api } from "@/api";
|
||||||
import { enableExec } from "@/utils/constants";
|
|
||||||
import HeaderBar from "@/components/header/HeaderBar.vue";
|
import HeaderBar from "@/components/header/HeaderBar.vue";
|
||||||
import Action from "@/components/header/Action.vue";
|
import Action from "@/components/header/Action.vue";
|
||||||
|
import url from "@/utils/url";
|
||||||
import * as upload from "@/utils/upload";
|
import * as upload from "@/utils/upload";
|
||||||
import css from "@/utils/css";
|
import css from "@/utils/css";
|
||||||
import throttle from "lodash.throttle";
|
import throttle from "lodash.throttle";
|
Loading…
Reference in New Issue