Compare commits
No commits in common. "67dbfb16e129027d11ea9b6c32b320dac53aec4e" and "1c35bcb9d1ced173d31fc012c54dea45ee17105e" have entirely different histories.
67dbfb16e1
...
1c35bcb9d1
3 changed files with 5 additions and 9 deletions
|
|
@ -52,7 +52,7 @@ function notImplemented() {
|
||||||
<DropdownMenuContent align="center" class="w-40">
|
<DropdownMenuContent align="center" class="w-40">
|
||||||
<DropdownMenuLabel>{{ t('common.nav.theme') }}</DropdownMenuLabel>
|
<DropdownMenuLabel>{{ t('common.nav.theme') }}</DropdownMenuLabel>
|
||||||
<DropdownMenuSeparator />
|
<DropdownMenuSeparator />
|
||||||
<DropdownMenuRadioGroup :model-value="theme" @update:model-value="(v) => v != null && setTheme(v as 'dark' | 'light' | 'system')">
|
<DropdownMenuRadioGroup :model-value="theme" @update:model-value="(v: string) => setTheme(v as 'dark' | 'light' | 'system')">
|
||||||
<DropdownMenuRadioItem value="light"><Sun class="w-4 h-4 mr-2" />{{ t('common.nav.themeLight') }}</DropdownMenuRadioItem>
|
<DropdownMenuRadioItem value="light"><Sun class="w-4 h-4 mr-2" />{{ t('common.nav.themeLight') }}</DropdownMenuRadioItem>
|
||||||
<DropdownMenuRadioItem value="dark"><Moon class="w-4 h-4 mr-2" />{{ t('common.nav.themeDark') }}</DropdownMenuRadioItem>
|
<DropdownMenuRadioItem value="dark"><Moon class="w-4 h-4 mr-2" />{{ t('common.nav.themeDark') }}</DropdownMenuRadioItem>
|
||||||
<DropdownMenuRadioItem value="system"><Monitor class="w-4 h-4 mr-2" />{{ t('common.nav.themeSystem') }}</DropdownMenuRadioItem>
|
<DropdownMenuRadioItem value="system"><Monitor class="w-4 h-4 mr-2" />{{ t('common.nav.themeSystem') }}</DropdownMenuRadioItem>
|
||||||
|
|
@ -71,7 +71,7 @@ function notImplemented() {
|
||||||
<DropdownMenuContent align="center" class="w-44">
|
<DropdownMenuContent align="center" class="w-44">
|
||||||
<DropdownMenuLabel>{{ t('common.nav.language') }}</DropdownMenuLabel>
|
<DropdownMenuLabel>{{ t('common.nav.language') }}</DropdownMenuLabel>
|
||||||
<DropdownMenuSeparator />
|
<DropdownMenuSeparator />
|
||||||
<DropdownMenuRadioGroup :model-value="currentLocale" @update:model-value="(v) => v != null && setLocale(v as string)">
|
<DropdownMenuRadioGroup :model-value="currentLocale" @update:model-value="(v: string) => setLocale(v)">
|
||||||
<DropdownMenuRadioItem v-for="l in locales" :key="l.code" :value="l.code">
|
<DropdownMenuRadioItem v-for="l in locales" :key="l.code" :value="l.code">
|
||||||
<span class="mr-2">{{ l.flag }}</span>{{ l.name }}
|
<span class="mr-2">{{ l.flag }}</span>{{ l.name }}
|
||||||
</DropdownMenuRadioItem>
|
</DropdownMenuRadioItem>
|
||||||
|
|
@ -106,7 +106,7 @@ function notImplemented() {
|
||||||
</button>
|
</button>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent align="end" class="w-40">
|
<DropdownMenuContent align="end" class="w-40">
|
||||||
<DropdownMenuRadioGroup :model-value="theme" @update:model-value="(v) => v != null && setTheme(v as 'dark' | 'light' | 'system')">
|
<DropdownMenuRadioGroup :model-value="theme" @update:model-value="(v: string) => setTheme(v as 'dark' | 'light' | 'system')">
|
||||||
<DropdownMenuRadioItem value="light"><Sun class="w-4 h-4 mr-2" />{{ t('common.nav.themeLight') }}</DropdownMenuRadioItem>
|
<DropdownMenuRadioItem value="light"><Sun class="w-4 h-4 mr-2" />{{ t('common.nav.themeLight') }}</DropdownMenuRadioItem>
|
||||||
<DropdownMenuRadioItem value="dark"><Moon class="w-4 h-4 mr-2" />{{ t('common.nav.themeDark') }}</DropdownMenuRadioItem>
|
<DropdownMenuRadioItem value="dark"><Moon class="w-4 h-4 mr-2" />{{ t('common.nav.themeDark') }}</DropdownMenuRadioItem>
|
||||||
<DropdownMenuRadioItem value="system"><Monitor class="w-4 h-4 mr-2" />{{ t('common.nav.themeSystem') }}</DropdownMenuRadioItem>
|
<DropdownMenuRadioItem value="system"><Monitor class="w-4 h-4 mr-2" />{{ t('common.nav.themeSystem') }}</DropdownMenuRadioItem>
|
||||||
|
|
@ -129,7 +129,7 @@ function notImplemented() {
|
||||||
</button>
|
</button>
|
||||||
</DropdownMenuTrigger>
|
</DropdownMenuTrigger>
|
||||||
<DropdownMenuContent align="end" class="w-44">
|
<DropdownMenuContent align="end" class="w-44">
|
||||||
<DropdownMenuRadioGroup :model-value="currentLocale" @update:model-value="(v) => v != null && setLocale(v as string)">
|
<DropdownMenuRadioGroup :model-value="currentLocale" @update:model-value="(v: string) => setLocale(v)">
|
||||||
<DropdownMenuRadioItem v-for="l in locales" :key="l.code" :value="l.code">
|
<DropdownMenuRadioItem v-for="l in locales" :key="l.code" :value="l.code">
|
||||||
<span class="mr-2">{{ l.flag }}</span>{{ l.name }}
|
<span class="mr-2">{{ l.flag }}</span>{{ l.name }}
|
||||||
</DropdownMenuRadioItem>
|
</DropdownMenuRadioItem>
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,7 @@
|
||||||
<User class="h-10 w-10 text-muted-foreground" />
|
<User class="h-10 w-10 text-muted-foreground" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Upload component. Avatars are small; tighten the
|
<!-- Upload component -->
|
||||||
default compress knobs so a 4K phone photo lands as
|
|
||||||
a ~200 KB 512px WebP. -->
|
|
||||||
<ImageUpload
|
<ImageUpload
|
||||||
v-model="uploadedPicture"
|
v-model="uploadedPicture"
|
||||||
:multiple="false"
|
:multiple="false"
|
||||||
|
|
@ -40,7 +38,6 @@
|
||||||
:max-size-mb="5"
|
:max-size-mb="5"
|
||||||
:disabled="isUpdating"
|
:disabled="isUpdating"
|
||||||
:allow-camera="true"
|
:allow-camera="true"
|
||||||
:compress="{ maxWidthOrHeight: 512, maxSizeMB: 0.2 }"
|
|
||||||
placeholder="Upload picture"
|
placeholder="Upload picture"
|
||||||
accept="image/*"
|
accept="image/*"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,6 @@
|
||||||
:show-primary-button="true"
|
:show-primary-button="true"
|
||||||
:disabled="isCreating"
|
:disabled="isCreating"
|
||||||
:allow-camera="true"
|
:allow-camera="true"
|
||||||
:compress="true"
|
|
||||||
placeholder="Add product photos"
|
placeholder="Add product photos"
|
||||||
/>
|
/>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue