abstract dbm and light composable and components and upgrade light user gui for fine graining with + and -

This commit is contained in:
Adrian Zürcher
2025-05-28 21:56:05 +02:00
parent d7565ed09c
commit 03f23d6d5a
24 changed files with 1324 additions and 841 deletions

View File

@@ -0,0 +1,36 @@
<template>
<div class="q-pa-md">
<q-table
v-if="props.rows.length > 0"
style="height: 600px"
flat
bordered
:title="props.rows[0]?.path"
:rows="props.rows ?? []"
:columns="columns"
row-key="path"
virtual-scroll
:rows-per-page-options="[0]"
/>
</div>
</template>
<script setup lang="ts">
import type { QTableProps } from 'quasar';
import type { Subscribe } from 'src/models/Subscribe';
// we generate lots of rows here
const props = defineProps<{
rows: Subscribe[];
}>();
const columns = [
{ name: 'path', label: 'Path', field: 'path', align: 'left' },
{
name: 'value',
label: 'Value',
field: 'value',
align: 'left',
},
] as QTableProps['columns'];
</script>