Update editor, workspace, Git services, appearance, and project guides
This commit is contained in:
@@ -117,22 +117,20 @@
|
||||
{#each external as plugin (plugin.manifest.id)}
|
||||
<div class="card">
|
||||
<div class="row">
|
||||
<div><label for={`external-${plugin.manifest.id}`}>{plugin.manifest.name}</label><p>{plugin.manifest.description}</p><small>{plugin.manifest.author} · {plugin.manifest.version} · Full app access</small></div>
|
||||
<input id={`external-${plugin.manifest.id}`} type="checkbox" role="switch" checked={plugin.enabled} disabled={busy || plugin.removal} onchange={event => { const value = event.currentTarget.checked; event.currentTarget.checked = plugin.enabled; void toggle(plugin.manifest.id, value, plugin.hash); }} />
|
||||
</div>
|
||||
{#if plugin.error || $externalErrors[plugin.manifest.id]}<p class="error" role="alert">{plugin.error || $externalErrors[plugin.manifest.id]}</p>{/if}
|
||||
<div class="actions">
|
||||
<div class="status">
|
||||
<span class="badge">{plugin.removal ? "Removal incomplete" : plugin.enabled ? "Enabled" : "Disabled"}</span>
|
||||
<span class="note">
|
||||
{#if plugin.installedAt != null}
|
||||
Installed <time datetime={new Date(plugin.installedAt).toISOString()}>{installDateFormat.format(plugin.installedAt)}</time>
|
||||
{:else}
|
||||
Install date unknown
|
||||
{/if}
|
||||
</span>
|
||||
<div class="plugin-copy"><label for={`external-${plugin.manifest.id}`}>{plugin.manifest.name}</label><p>{plugin.manifest.description}</p><small>{plugin.manifest.author} · {plugin.manifest.version} · Full app access</small>
|
||||
<div class="status">
|
||||
<span class="badge">{plugin.manifest.id === "runestone.browser" ? "Included with RuneStone" : plugin.removal ? "Removal incomplete" : plugin.enabled ? "Enabled" : "Disabled"}</span>
|
||||
<span class="note">
|
||||
{#if plugin.installedAt != null}
|
||||
Installed <time datetime={new Date(plugin.installedAt).toISOString()}>{installDateFormat.format(plugin.installedAt)}</time>
|
||||
{:else}
|
||||
Install date unknown
|
||||
{/if}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="controls">
|
||||
<input id={`external-${plugin.manifest.id}`} type="checkbox" role="switch" checked={plugin.manifest.id === "runestone.browser" || plugin.enabled} disabled={busy || plugin.removal || plugin.manifest.id === "runestone.browser"} onchange={event => { const value = event.currentTarget.checked; event.currentTarget.checked = plugin.enabled; void toggle(plugin.manifest.id, value, plugin.hash); }} />
|
||||
<IconButton icon="folder-open" label="Show files" disabled={busy || plugin.removal} onclick={() => reveal(plugin.manifest.id)} />
|
||||
{#if plugin.removal}
|
||||
<button disabled={busy} onclick={() => run(async () => { await invoke("plugins_retry_remove", { id: plugin.manifest.id }); await refreshPlugins(); message = "Plugin file cleanup completed."; })}><Icon icon="refresh" />Retry cleanup</button>
|
||||
@@ -141,11 +139,13 @@
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{#if plugin.manifest.id === "runestone.browser"}<p class="note">Browser is now built in. You can remove this old package. Your browser profiles and bookmarks stay available.</p>{/if}
|
||||
{#if plugin.error || $externalErrors[plugin.manifest.id]}<p class="error" role="alert">{plugin.error || $externalErrors[plugin.manifest.id]}</p>{/if}
|
||||
</div>
|
||||
{/each}
|
||||
{#if $restartPlugins.length}<p class="note" role="status">Restart RuneStone to clear all code from plugins that stopped in this window.</p>{/if}
|
||||
{#if error}<p class="error" role="alert">{error}</p>{/if}
|
||||
<p class="saved" role="status">{message}</p>
|
||||
{#if message}<p class="saved" role="status">{message}</p>{/if}
|
||||
|
||||
{#if candidates.length || plan || gitForm}
|
||||
<dialog bind:this={modal} aria-labelledby="plugin-dialog-title" onkeydown={trap} oncancel={event => { event.preventDefault(); event.stopPropagation(); void cancel(); }}>
|
||||
@@ -190,37 +190,41 @@
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
h2 { margin: 0; font-size: 23px; color: var(--rs-text-strong); }
|
||||
h3 { font-size: 14px; margin: 24px 0 10px; }
|
||||
p { color: var(--rs-text-dim); line-height: 1.6; }
|
||||
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 10px; color: var(--rs-text); background: var(--rs-bg-elevated); border: 1px solid var(--rs-border); border-radius: var(--rs-control-radius); }
|
||||
h2 { margin: 0; font-size: var(--rs-settings-heading-size); color: var(--rs-text-strong); }
|
||||
h3 { font-size: 13px; margin: var(--rs-settings-section-gap) 0 8px; }
|
||||
p { margin: 6px 0 10px; color: var(--rs-text-dim); line-height: 1.45; }
|
||||
button { display: inline-flex; align-items: center; justify-content: center; gap: var(--rs-settings-gap); min-height: var(--rs-settings-control-height); padding: 4px 8px; color: var(--rs-text); background: var(--rs-bg-elevated); border: 1px solid var(--rs-border); border-radius: var(--rs-control-radius); }
|
||||
button:hover:not(:disabled) { background: var(--rs-bg-active); }
|
||||
button:disabled { opacity: .5; }
|
||||
.toolbar, .actions, footer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
|
||||
.card { background: var(--rs-bg-elevated); border: 1px solid var(--rs-border); border-radius: var(--rs-control-radius); padding: 0 14px 10px; margin-bottom: 10px; }
|
||||
.row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0 8px; }
|
||||
.row > div { min-width: 0; overflow-wrap: anywhere; }
|
||||
.row p { margin: 5px 0; font-size: 12px; }
|
||||
.toolbar, footer { display: flex; align-items: center; flex-wrap: wrap; gap: var(--rs-settings-gap); }
|
||||
.card { border-bottom: 1px solid var(--rs-border); }
|
||||
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: var(--rs-settings-row-padding) 0; }
|
||||
.plugin-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
|
||||
.row p { margin: 3px 0; font-size: var(--rs-settings-description-size); }
|
||||
label { font-weight: 500; }
|
||||
.path { overflow-wrap: anywhere; font-size: 11px; }
|
||||
small, .badge, .note { color: var(--rs-text-dim); font-size: 12px; }
|
||||
.status { display: flex; flex: 1 1 240px; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
|
||||
.controls { display: flex; align-items: center; gap: 6px; margin-left: auto; }
|
||||
.controls :global(.icon-btn) { width: 32px; height: 32px; flex-basis: 32px; }
|
||||
small, .badge, .note { color: var(--rs-text-dim); font-size: var(--rs-settings-description-size); }
|
||||
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 3px; }
|
||||
.controls { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
|
||||
.controls .danger { display: flex; }
|
||||
.controls .danger :global(.icon-btn) { color: var(--rs-error); }
|
||||
.error { color: var(--rs-error); white-space: pre-wrap; }
|
||||
.saved { color: var(--rs-ok); min-height: 20px; }
|
||||
.danger { color: var(--rs-error); }
|
||||
input[role=switch] { appearance: none; width: 38px; height: 22px; flex: 0 0 38px; border-radius: 20px; background: var(--rs-bg-active); border: 1px solid var(--rs-text-dim); cursor: pointer; }
|
||||
input[role=switch] { appearance: none; width: 38px; height: 22px; flex: 0 0 38px; margin: 0 4px 0 0; border-radius: 20px; background: var(--rs-bg-active); border: 1px solid var(--rs-text-dim); cursor: pointer; }
|
||||
input[role=switch]::before { content: ""; display: block; width: 16px; height: 16px; margin: 2px; background: var(--rs-text); border-radius: 50%; }
|
||||
input[role=switch]:checked { background: var(--rs-accent); border-color: var(--rs-accent); }
|
||||
input[role=switch]:checked::before { transform: translateX(16px); background: var(--rs-bg); }
|
||||
dialog { width: min(650px, 90vw); max-height: 85vh; padding: 24px; color: var(--rs-text); background: var(--rs-bg); border: 1px solid var(--rs-border); border-radius: var(--rs-control-radius); }
|
||||
dialog { width: min(650px, 90vw); max-height: 85vh; padding: 16px; color: var(--rs-text); background: var(--rs-bg); border: 1px solid var(--rs-border); border-radius: var(--rs-control-radius); }
|
||||
dialog::backdrop { background: #0009; }
|
||||
footer { justify-content: flex-end; margin-top: 24px; }
|
||||
.candidate { padding: 16px 0; border-bottom: 1px solid var(--rs-border); }
|
||||
footer { justify-content: flex-end; margin-top: var(--rs-settings-section-gap); }
|
||||
.candidate { padding: var(--rs-settings-row-padding) 0; border-bottom: 1px solid var(--rs-border); }
|
||||
.candidate label { display: flex; gap: 8px; }
|
||||
.field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
|
||||
.field input { min-width: 0; padding: 8px 10px; color: var(--rs-text); background: var(--rs-bg-elevated); border: 1px solid var(--rs-border); border-radius: var(--rs-control-radius); }
|
||||
.field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
|
||||
.field input { min-width: 0; min-height: var(--rs-settings-control-height); padding: 4px 8px; color: var(--rs-text); background: var(--rs-bg-elevated); border: 1px solid var(--rs-border); border-radius: var(--rs-control-radius); }
|
||||
@media (max-width: 420px) {
|
||||
.row { flex-wrap: wrap; }
|
||||
.plugin-copy { flex-basis: 100%; }
|
||||
.controls { margin-left: auto; }
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user