diff --git a/loama/src/App.vue b/loama/src/App.vue index eed0da4..dc97ffa 100644 --- a/loama/src/App.vue +++ b/loama/src/App.vue @@ -22,7 +22,7 @@ h1 { } h2 { - color: var(--Solid-Purple); + color: var(--solid-purple); font-weight: 700; } diff --git a/loama/src/components/LoSwitch.vue b/loama/src/components/LoSwitch.vue new file mode 100644 index 0000000..a62feb7 --- /dev/null +++ b/loama/src/components/LoSwitch.vue @@ -0,0 +1,28 @@ + + + + + \ No newline at end of file diff --git a/loama/src/components/explorer/ExplorerEntity.vue b/loama/src/components/explorer/ExplorerEntity.vue new file mode 100644 index 0000000..9fbc19f --- /dev/null +++ b/loama/src/components/explorer/ExplorerEntity.vue @@ -0,0 +1,39 @@ + + + + + \ No newline at end of file diff --git a/loama/src/components/explorer/ExplorerEntry.vue b/loama/src/components/explorer/ExplorerEntry.vue index 31004f7..82590bd 100644 --- a/loama/src/components/explorer/ExplorerEntry.vue +++ b/loama/src/components/explorer/ExplorerEntry.vue @@ -1,11 +1,8 @@ @@ -32,13 +33,15 @@ import ExplorerEntry from "./ExplorerEntry.vue"; import type { FormattedThing } from "loama-controller/dist/types"; import { useRoute } from "vue-router"; import ExplorerBreadcrumbs from "./ExplorerBreadcrumbs.vue"; +import SelectedEntry from "./SelectedEntry.vue"; +import type { Entry } from "@/utils/types"; const data = ref(await getThingsAtLevel(store.usedPod)); const route = useRoute(); -const selectedEntry = ref(null) +const selectedEntry = ref(null) -const changeSelectedEntry = (thing: FormattedThing) => selectedEntry.value = thing; +const changeSelectedEntry = (thing: Entry) => selectedEntry.value = thing; const fileUrl = (path: string | string[]) => `${store.usedPod}${path}` @@ -49,6 +52,7 @@ const uriToName = (uri: string, isContainer: boolean) => { } watch(() => route.params.filePath, async (path) => { + selectedEntry.value = null; data.value = await getThingsAtLevel(fileUrl(path)), { immediate: true } }) @@ -124,17 +128,22 @@ i { } .right-panel { - padding-left: 0.5rem; flex: 2; +} + +.default-panel-container { + padding-left: 0.5rem; + width: 100%; + height: 100%; background-color: var(--lama-gray); - position: relative; justify-content: center; align-items: center; + display: flex; } -.selectedEntry { - background-color: var(--off-white); - height: 100%; - width: 100%; +.default-panel { + align-items: center; + display: flex; + flex-direction: column; } \ No newline at end of file diff --git a/loama/src/components/explorer/SelectedEntry.vue b/loama/src/components/explorer/SelectedEntry.vue new file mode 100644 index 0000000..df86405 --- /dev/null +++ b/loama/src/components/explorer/SelectedEntry.vue @@ -0,0 +1,103 @@ + + + + + \ No newline at end of file diff --git a/loama/src/utils/types.ts b/loama/src/utils/types.ts new file mode 100644 index 0000000..10af962 --- /dev/null +++ b/loama/src/utils/types.ts @@ -0,0 +1,3 @@ +import type { FormattedThing } from 'loama-controller/dist/types' + +export type Entry = FormattedThing & { name: string; isContainer: boolean }