encryption of sqlite working

This commit is contained in:
Martin Drechsel
2025-04-28 12:18:39 +02:00
parent 2c5ec6b281
commit 410a885d21
31 changed files with 3664 additions and 1766 deletions

View File

@ -3,45 +3,22 @@
class="flex shrink-0 transition-[width] ease-in duration-300 z-30 h-full overflow-hidden fixed sm:relative left-0 shadow border-r border-base-300"
>
<div class="sm:flex flex-col w-14 bg-base-200 shrink-0 h-full hidden">
<img
src="/logo.svg"
class="bg-primary p-3 size-16"
/>
<img src="/logo.svg" class="bg-primary p-3 size-16" />
<div class="flex flex-col justify-between h-full overflow-y-scroll z-10">
<div class="flex flex-col space-y-2 text-base-content/90">
<template v-for="item in menu.top">
<UiSidebarLink
v-if="item.to"
:to="item.to ?? ''"
:icon="item.icon"
:label="$t(item.label)"
/>
<UiSidebarLink v-if="item.to" v-bind="item" />
<UiSidebarButton
v-else
:icon="item.icon"
:label="$t(item.label)"
@click="item.click"
/>
<UiSidebarButton v-else :icon="item.icon" :label="$t(item.label)" @click="item.click" />
</template>
</div>
<div class="flex flex-col space-y-2 text-base-content/90">
<template v-for="item in menu.bottom">
<UiSidebarLink
v-if="item.to"
:to="item.to ?? ''"
:icon="item.icon"
:label="$t(item.label)"
/>
<UiSidebarLink v-if="item.to" v-bind="item" />
<UiSidebarButton
v-else
:icon="item.icon"
:label="$t(item.label)"
@click="item.click"
/>
<UiSidebarButton v-else :icon="item.icon" :label="$t(item.label)" @click="item.click" />
</template>
<!-- <UiSidebarLink
v-for="item in menu.bottom"

View File

@ -1,50 +1,37 @@
<template>
<li
@click="triggerNavigate"
class="hover:text-primary"
class="hover:text-primary rounded"
:class="{ ['bg-base-300']: isActive }"
>
<UiTooltip
:tooltip="tooltip ?? name"
direction="right-end"
>
<UiTooltip :tooltip="tooltip ?? name" direction="right-start">
<NuxtLinkLocale
:class="{ ['bg-base-300']: isActive }"
:to="{
name: type === 'browser' ? 'haexBrowser' : 'haexExtension',
params: type === 'browser' ? {} : { extensionId: id },
}"
:to
class="flex items-center justify-center cursor-pointer tooltip-toogle"
ref="link"
>
<Icon
:name="icon"
class="shrink-0 size-6"
/>
<Icon :name="icon" class="shrink-0 size-6" />
</NuxtLinkLocale>
</UiTooltip>
</li>
</template>
<script setup lang="ts">
import { type ISidebarItem } from '#imports';
import { type ISidebarItem } from "#imports";
const props = defineProps<ISidebarItem>();
const router = useRouter();
const isActive = computed(() => {
if (props.type === 'browser') {
return router.currentRoute.value.name === 'haexBrowser';
} else if (props.type === 'extension') {
return (
router.currentRoute.value.name === 'haexExtension' &&
getSingleRouteParam(router.currentRoute.value.params.extensionId) ===
props.id
);
if (props.to?.name === "haexExtension") {
return getSingleRouteParam(router.currentRoute.value.params.extensionId) === props.id;
} else {
return props.to?.name === router.currentRoute.value.meta.name;
}
});
const link = useTemplateRef('link');
const link = useTemplateRef("link");
const triggerNavigate = () => link.value?.$el.click();