2.3 KiB
2.3 KiB
- 06:32 quick capture: Self-hosted photo and video backups directly from your mobile phone
- 06:34 quick capture: GitHub - immich-app/immich: Self-hosted photo and video backup solution directly from your mobile phone.
- 11:36 quick capture: Show HN: Danswer – Open-source question answering across all your docs
- 11:39 quick capture: https://github.com/lhenault/simpleAI
- 14:27 quick capture: PhotoPrism: Browse Your Life in Pictures
- 16:46 quick capture: HyperPhysics (1998) #teaching
- Un componente #svelte che produce una card editabile cliccandoci sopra.
-
<script> import { onMount, tick } from 'svelte'; let editing = false; let content = 'Clicca per editare'; let textarea; function handleKeyDown(event) { if (event.key === 'Escape') { editing = false; } } async function handleEdit() { editing = true; window.addEventListener('keydown', handleKeyDown); await tick(); textarea.focus(); } function handleBlur() { editing = false; window.removeEventListener('keydown', handleKeyDown); } onMount(() => { if (editing) { textarea.focus(); } }); </script> <div class="card" on:click={handleEdit}> {#if editing} <textarea bind:this={textarea} bind:value={content} on:blur={handleBlur}></textarea> {:else} <p>{content}</p> {/if} </div> <style> .card { padding: 20px; border: 1px solid #ccc; border-radius: 4px; margin: 10px; cursor: pointer; } textarea { width: 100%; height: 100px; } </style>
-
- 06:32 quick capture: Self-hosted photo and video backups directly from your mobile phone #selfhosting #homelab #backup
- 06:34 quick capture: GitHub - immich-app/immich: Self-hosted photo and video backup solution directly from your mobile phone. #selfhosting #homelab