preparing stock module

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-10-12 19:16:50 +02:00
parent 0bbb6157e1
commit fea21872e3
7 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
<script>
import Locations from './Locations.svelte';
import ItemList from './ItemList.svelte';
import ItemProps from './ItemProps.svelte';
import { t } from '../../translations.svelte';
let companies = [
{
id: 1,
name: 'SRSoftware',
locations:{
Langenorla:{
Hauptgebäude:{
Obergeschoss:{
},
Untergeschoss:{
Einliegerwohnung:{
Bad:{
},
Küche:{
},
Wohnzimmer:{
}
},
Flur:{
},
Küche:{
},
Studio:{
}
},
Werkstatt:{
}
},
Nebengebäude:{
},
Grundstück:{
}
}
}
},
{ id: 2, name: 'Alrauna', locations: {} }
]
</script>
<h2>{t('Stock')}</h2>
<table>
<tbody>
<tr>
<td class="locations">
{#each companies as company}
<h3>{company.name}</h3>
<Locations locations={company.locations} />
{/each}
</td>
<td class="items">
<ItemList />
</td>
<td class="properties">
<ItemProps />
</td>
</tr>
</tbody>
</table>