mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-22 19:01:02 +01:00
- Created EntityTable component for displaying test entities with expandable rows for releases. - Implemented ReleaseTable component to manage and display test releases with actions for editing and deleting. - Added ReleaseModal component for creating and editing releases - Introduced types for TestEntity, TestRelease, and related evaluations - Enhanced general settings page to include TMDB API configuration with connection testing functionality. - Added TMDBSettings component for managing TMDB API access token with reset and test connection features.
36 lines
1.2 KiB
Svelte
36 lines
1.2 KiB
Svelte
<script lang="ts">
|
|
export let label: string;
|
|
export let description: string = '';
|
|
export let placeholder: string = '';
|
|
export let value: string = '';
|
|
export let textarea: boolean = false;
|
|
</script>
|
|
|
|
<div class="space-y-2">
|
|
<div class="block text-sm font-medium text-neutral-900 dark:text-neutral-100">
|
|
{label}
|
|
</div>
|
|
|
|
{#if description}
|
|
<p class="text-xs text-neutral-600 dark:text-neutral-400">
|
|
{description}
|
|
</p>
|
|
{/if}
|
|
|
|
{#if textarea}
|
|
<textarea
|
|
bind:value
|
|
{placeholder}
|
|
rows="6"
|
|
class="block w-full rounded-lg border border-neutral-300 bg-white px-3 py-2 text-neutral-900 placeholder-neutral-400 transition-colors focus:border-neutral-400 focus:outline-none dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-50 dark:placeholder-neutral-500 dark:focus:border-neutral-500"
|
|
></textarea>
|
|
{:else}
|
|
<input
|
|
type="text"
|
|
bind:value
|
|
{placeholder}
|
|
class="block w-full rounded-lg border border-neutral-300 bg-white px-3 py-2 text-neutral-900 placeholder-neutral-400 transition-colors focus:border-neutral-400 focus:outline-none dark:border-neutral-700 dark:bg-neutral-800 dark:text-neutral-50 dark:placeholder-neutral-500 dark:focus:border-neutral-500"
|
|
/>
|
|
{/if}
|
|
</div>
|