Skip to content

Commit

Permalink
add note about showing dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
marcolarosa committed Jan 10, 2024
1 parent 14ddd77 commit 6ca2f08
Showing 1 changed file with 71 additions and 51 deletions.
122 changes: 71 additions & 51 deletions src/components/ControlsDrawer.component.vue
Original file line number Diff line number Diff line change
@@ -1,56 +1,76 @@
<template>
<div>
<el-drawer
v-model="dialogVisible"
title="Preferences"
size="50%"
:show-close="false"
destroy-on-close
direction="rtl"
@closed="closeDialog"
>
<template #header>
<div class="text-xl">Preferences</div>
<el-button @click="closeDialog"> <i class="fa-solid fa-xmark"></i></el-button>
</template>
<el-form :model="data.form" label-position="top" class="flex flex-col space-y-4 w-full">
<el-form-item label="Language">
<el-select
class="w-full"
v-model="data.form.selectedLanguage"
placeholder="Select a language"
<el-drawer
v-model="dialogVisible"
title="Preferences"
size="50%"
:show-close="false"
destroy-on-close
direction="rtl"
@closed="closeDialog"
>
<template #header>
<div class="text-xl">Preferences</div>
<el-button @click="closeDialog"> <i class="fa-solid fa-xmark"></i></el-button>
</template>
<el-form :model="data.form" label-position="top" class="flex flex-col space-y-4 w-full">
<el-form-item label="Language">
<el-select
class="w-full"
v-model="data.form.selectedLanguage"
placeholder="Select a language"
>
<el-option
v-for="item in data.languages"
:key="item.name"
:label="item.name"
:value="item.code"
>
<el-option
v-for="item in data.languages"
:key="item.name"
:label="item.name"
:value="item.code"
>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="Tab location when describing data">
<el-radio-group v-model="data.form.tabLocation">
<el-radio label="left">Left</el-radio>
<el-radio label="top">Top</el-radio>
<el-radio label="right">Right</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item>
<el-switch
v-model="data.form.autoSave"
active-text="Save changes automatically"
/>
</el-form-item>
<el-form-item>
<el-switch
v-model="data.form.purgeUnlinkedEntities"
active-text="Automatically remove unlinked entities and disconnected subtrees."
/>
</el-form-item>
</el-form>
</el-drawer>
</div>
</el-option>
</el-select>
</el-form-item>
<el-form-item label="Tab location when describing data">
<el-radio-group v-model="data.form.tabLocation">
<el-radio label="left">Left</el-radio>
<el-radio label="top">Top</el-radio>
<el-radio label="right">Right</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item>
<el-switch v-model="data.form.autoSave" active-text="Save changes automatically" />
</el-form-item>
<el-form-item>
<el-switch
v-model="data.form.purgeUnlinkedEntities"
active-text="Automatically remove unlinked entities and disconnected subtrees."
/>
</el-form-item>
</el-form>
<div class="bg-slate-100 rounded-lg p-2 my-6">
<div>Show Developer Tools</div>
<ul class="list-disc pl-10">
<li>
Google chrome users see
<a
href="https://developer.chrome.com/docs/devtools/open"
target="_blank"
class="text-blue-700"
>
here.
</a>
</li>
<li>
Microsoft Edge users see
<a
href="https://learn.microsoft.com/en-us/microsoft-edge/devtools-guide-chromium/overview#open-devtools"
target="_blank"
class="text-blue-700"
>
here.</a
>
</li>
</ul>
</div>
</el-drawer>
</template>

<script setup>
Expand Down

0 comments on commit 6ca2f08

Please sign in to comment.