From 3c06c95f396b6e911076bc3291d5855ed01b5caa Mon Sep 17 00:00:00 2001 From: "netop://ウィビ" Date: Sun, 26 Apr 2026 20:18:30 -0700 Subject: cleanup and ready for launch --- source/library/components/DocExplorer.svelte | 134 ++++++------ .../components/DocExplorer/FieldView.svelte | 46 +++-- .../library/components/DocExplorer/TypeLink.svelte | 16 +- .../library/components/DocExplorer/TypeView.svelte | 71 ++++--- source/library/components/Editor.svelte | 9 +- source/library/components/HeadersEditor.svelte | 34 ---- source/library/components/HistoryPanel.svelte | 225 +++++++++++---------- source/library/components/ResultViewer.svelte | 97 ++++++--- source/library/components/Splitter.svelte | 95 +++++---- source/library/components/TabBar.svelte | 122 ++++++----- source/library/components/Toolbar.svelte | 130 ++++++++---- 11 files changed, 562 insertions(+), 417 deletions(-) delete mode 100644 source/library/components/HeadersEditor.svelte (limited to 'source/library/components') diff --git a/source/library/components/DocExplorer.svelte b/source/library/components/DocExplorer.svelte index 536cb2a..48525e1 100644 --- a/source/library/components/DocExplorer.svelte +++ b/source/library/components/DocExplorer.svelte @@ -1,18 +1,19 @@ @@ -200,10 +202,12 @@ onclick={() => gotoIndex(i)}>{crumbLabel(entry)} {/each} +
{#if stack.length === 0}
+
{#each rootTypes as entry} - {/if} - {#if onImport} - - - {/if} - {#if entries.length > 0} - - {/if} -
+
+ History + +
+ {#if onExport} + + {/if} + + {#if onImport} + + + {/if} + + {#if entries.length > 0} + + {/if}
- {#if notice} -
- {notice} - {#if onDismissNotice} - - {/if} -
- {/if}
+ + {#if notice} +
+ {notice} + {#if onDismissNotice} + + {/if} +
+ {/if} +
{#if sorted.length === 0}
No history yet.
@@ -264,16 +271,28 @@ class="star" class:active={entry.favorite} onclick={(e) => { e.stopPropagation(); onFavorite(entry.id); }} - type="button">{entry.favorite ? "★" : "☆"} + type="button"> + {#if entry.favorite} + + + + {:else} + + + + {/if} + +
{entry.title}
{formatTimestamp(entry.timestamp)}
+ + type="button">×
{/each} {/if} diff --git a/source/library/components/ResultViewer.svelte b/source/library/components/ResultViewer.svelte index d277ec8..270965b 100644 --- a/source/library/components/ResultViewer.svelte +++ b/source/library/components/ResultViewer.svelte @@ -1,7 +1,10 @@
Response
+ + {#if metadata} - + {/if} + {#if footer} {/if} diff --git a/source/library/components/Splitter.svelte b/source/library/components/Splitter.svelte index 73d0e10..a758385 100644 --- a/source/library/components/Splitter.svelte +++ b/source/library/components/Splitter.svelte @@ -1,4 +1,5 @@ @@ -145,8 +169,7 @@ } }} role="tab" - tabindex="0" - > + tabindex="0"> {#if editingId === tab.id} e.stopPropagation()} onkeydown={onKeydown} - type="text" - /> + type="text"/> {:else} {tab.title} {/if} + {#if extras}{@render extras({ tab })}{/if} + + onclick={(e) => handleClose(e, tab.id)}>×
{/each} +
diff --git a/source/library/components/Toolbar.svelte b/source/library/components/Toolbar.svelte index 9882b7d..37cc7ce 100644 --- a/source/library/components/Toolbar.svelte +++ b/source/library/components/Toolbar.svelte @@ -1,7 +1,10 @@