fix
This commit is contained in:
1 parent
cfd31f398c
commit
26e7453ad9
2 files changed
+3
-3
No files matched your search
@@ -21,7 +21,7 @@
|
|||||||
<select class="w-full rounded-md border bg-background p-2 text-sm" bind:value={authMode}><option value="bearer">Bearer token (optional)</option><option value="header">Custom API key header</option></select>
|
<select class="w-full rounded-md border bg-background p-2 text-sm" bind:value={authMode}><option value="bearer">Bearer token (optional)</option><option value="header">Custom API key header</option></select>
|
||||||
{#if authMode==="header"}<input class="w-full rounded-md border bg-background p-2 text-sm" bind:value={headerName} placeholder="X-API-Key" />{/if}
|
{#if authMode==="header"}<input class="w-full rounded-md border bg-background p-2 text-sm" bind:value={headerName} placeholder="X-API-Key" />{/if}
|
||||||
<input class="w-full rounded-md border bg-background p-2 text-sm" type="password" autocomplete="off" bind:value={token} placeholder="API key / token (optional)" />
|
<input class="w-full rounded-md border bg-background p-2 text-sm" type="password" autocomplete="off" bind:value={token} placeholder="API key / token (optional)" />
|
||||||
<textarea class="w-full rounded-md border bg-background p-2 font-mono text-xs" rows="2" bind:value={extra} placeholder='Additional headers JSON, e.g. {"X-Tenant":"my-store"}'></textarea>
|
<textarea class="w-full rounded-md border bg-background p-2 font-mono text-xs" rows="2" bind:value={extra} placeholder={'Additional headers JSON, e.g. {"X-Tenant":"my-store"}'}></textarea>
|
||||||
{#if error}<p class="text-sm text-destructive">{error}</p>{/if}
|
{#if error}<p class="text-sm text-destructive">{error}</p>{/if}
|
||||||
<button class="rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50" disabled={busy}>{busy?"Importing...":"Import JSON"}</button>
|
<button class="rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground disabled:opacity-50" disabled={busy}>{busy?"Importing...":"Import JSON"}</button>
|
||||||
</form>
|
</form>
|
||||||
@@ -1285,7 +1285,7 @@ function openAdd(source: "url" | "file" = "url") {
|
|||||||
{#if formAuthType === "header"}<Input placeholder="Header name (X-API-Key)" bind:value={formAuthHeader} />{/if}
|
{#if formAuthType === "header"}<Input placeholder="Header name (X-API-Key)" bind:value={formAuthHeader} />{/if}
|
||||||
<Input type="password" autocomplete="off" placeholder="Token / API key (optional)" bind:value={formAuthToken}/>
|
<Input type="password" autocomplete="off" placeholder="Token / API key (optional)" bind:value={formAuthToken}/>
|
||||||
<Label for="feed-headers">Other headers (JSON object, optional)</Label>
|
<Label for="feed-headers">Other headers (JSON object, optional)</Label>
|
||||||
<textarea id="feed-headers" class="w-full rounded-md border bg-background p-2 font-mono text-xs" rows="2" bind:value={formHeaders} placeholder='{"X-Store-ID":"store-1"}'></textarea>
|
<textarea id="feed-headers" class="w-full rounded-md border bg-background p-2 font-mono text-xs" rows="2" bind:value={formHeaders} placeholder={'{"X-Store-ID":"store-1"}'}></textarea>
|
||||||
<p class="text-xs text-muted-foreground">Credentials are encrypted. Existing keys are not shown when editing.</p>
|
<p class="text-xs text-muted-foreground">Credentials are encrypted. Existing keys are not shown when editing.</p>
|
||||||
</div>
|
</div>
|
||||||
</TabsContent>
|
</TabsContent>
|
||||||
@@ -1381,7 +1381,7 @@ function openAdd(source: "url" | "file" = "url") {
|
|||||||
{#if formAuthType === "header"}<Input placeholder="Header name" bind:value={formAuthHeader} />{/if}
|
{#if formAuthType === "header"}<Input placeholder="Header name" bind:value={formAuthHeader} />{/if}
|
||||||
<Input type="password" autocomplete="off" placeholder="New token / API key" bind:value={formAuthToken} />
|
<Input type="password" autocomplete="off" placeholder="New token / API key" bind:value={formAuthToken} />
|
||||||
<Label for="edit-feed-headers">Other headers (JSON object)</Label>
|
<Label for="edit-feed-headers">Other headers (JSON object)</Label>
|
||||||
<textarea id="edit-feed-headers" class="w-full rounded-md border bg-background p-2 font-mono text-xs" rows="2" bind:value={formHeaders} placeholder='{"X-Store-ID":"store-1"}'></textarea>
|
<textarea id="edit-feed-headers" class="w-full rounded-md border bg-background p-2 font-mono text-xs" rows="2" bind:value={formHeaders} placeholder={'{"X-Store-ID":"store-1"}'}></textarea>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="space-y-1.5">
|
<div class="space-y-1.5">
|
||||||
|
|||||||
Reference in new issue
Block a user