Skip to content

Commit

Permalink
NAVIGUATE
Browse files Browse the repository at this point in the history
  • Loading branch information
Zorin95670 committed Oct 8, 2024
1 parent e8bc864 commit da78598
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 31 deletions.
8 changes: 7 additions & 1 deletion src/components/drawer/ModelizerDrawLeftDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
data-cy="draw-page-left-drawer"
class="no-scroll"
>
<project-details-list level="2" />
<q-splitter
v-model="splitterModel"
:limits="[10, 15]"
class="bordered-splitter"
>
<template #before>
<q-tabs
Expand Down Expand Up @@ -50,7 +52,6 @@
name="components"
class="q-pa-none"
>
<project-details-list level="2" />
<library-list :plugin="plugin" />
</q-tab-panel>

Expand Down Expand Up @@ -90,6 +91,11 @@ const isVisible = ref(true);
const active = ref('components');
const splitterModel = ref(15);
</script>
<style lang="scss" scoped>
.bordered-splitter {
border-top: 1px solid rgba(0, 0, 0, 0.12)
}
</style>

<style lang="scss">
.left-drawer-tab .q-tab__label {
Expand Down
23 changes: 0 additions & 23 deletions src/components/list/VariableList.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
<template>
<q-list data-cy="variable-list">
<q-item>
<q-item-section>
<q-item-label
overline
header
>
{{ $t('page.modelizer.drawer.variables.header') }}
</q-item-label>
</q-item-section>
</q-item>
<div class="row justify-center">
<q-btn
:label="$t('page.modelizer.button.back.label')"
:title="$t('page.modelizer.button.back.title')"
color="positive"
class="q-mr-md"
no-caps
data-cy="models-page-link-button"
@click="router.push(`/projects/${projectName}/models`)"
/>
</div>
<q-expansion-item
v-for="file in Object.keys(variableData)"
:key="file"
Expand Down Expand Up @@ -100,9 +79,7 @@ import {
onMounted,
} from 'vue';
import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
const router = useRouter();
const { t } = useI18n();
const props = defineProps({
variables: {
Expand Down
1 change: 0 additions & 1 deletion src/i18n/en-US/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ export default {
},
variables: {
empty: 'No variables to display.',
header: 'Variables',
name: 'Name',
value: 'Value',
},
Expand Down
11 changes: 5 additions & 6 deletions src/layouts/ModelizerDrawLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
:project-name="projectName"
/>

<modelizer-draw-left-drawer
v-if="data.plugin"
:plugin="data.plugin"
:project-name="projectName"
/>

<q-page-container>
<modelizer-draw-left-drawer
v-if="data.plugin"
:plugin="data.plugin"
:project-name="projectName"
/>
<q-splitter
v-model="splitter"
:limits="[25, 100]"
Expand Down

0 comments on commit da78598

Please sign in to comment.