refactor: reorganize components into domain subfolders and replace relative imports
Move components from flat src/lib/components/ into recipes/, faith/, and cospend/ subdirectories. Replace ~144 relative imports across API routes and lib files with $models, $utils, $types, and $lib aliases. Add $types alias to svelte.config.js. Remove unused EditRecipe.svelte.
This commit is contained in:
23
src/lib/components/recipes/RecipeNote.svelte
Normal file
23
src/lib/components/recipes/RecipeNote.svelte
Normal file
@@ -0,0 +1,23 @@
|
||||
<script lang="ts">
|
||||
let { note, ...restProps } = $props<{ note: string, [key: string]: any }>();
|
||||
</script>
|
||||
<style>
|
||||
div{
|
||||
background-color: var(--red);
|
||||
color: white;
|
||||
padding: 1em;
|
||||
font-size: 1.1rem;
|
||||
max-width: 400px;
|
||||
margin-inline: auto;
|
||||
box-shadow: 0.2em 0.2em 0.5em 0.1em rgba(0, 0, 0, 0.3);
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
h3{
|
||||
margin-block: 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div {...restProps} >
|
||||
<h3>Notiz:</h3>
|
||||
{@html note}
|
||||
</div>
|
||||
Reference in New Issue
Block a user