mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-20 22:00:43 +08:00
Update frontend dependencies
This commit is contained in:
@@ -164,49 +164,47 @@
|
||||
{#snippet leftHeader()}
|
||||
<div class="txt-semibold">Commits</div>
|
||||
{/snippet}
|
||||
{#snippet children()}
|
||||
<div style:padding="0 1rem">
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
||||
<div
|
||||
class="global-flex txt-small summary"
|
||||
class:disabled={selectedCommit}
|
||||
style:cursor="pointer"
|
||||
onclick={() =>
|
||||
selectRevision({
|
||||
headId: revision.head,
|
||||
baseId: revision.base,
|
||||
})}>
|
||||
<Icon name="branch" />
|
||||
{commits.length}
|
||||
{pluralize("commit", commits.length)} on base
|
||||
<Id
|
||||
id={revision.base}
|
||||
variant={selectedCommit ? "none" : "commit"} />
|
||||
<div class="global-counter">base</div>
|
||||
</div>
|
||||
<div class="commits">
|
||||
{#each commits.reverse() as commit}
|
||||
<div class="commit" style:position="relative">
|
||||
<div class="commit-dot"></div>
|
||||
<div
|
||||
class="commit-dot"
|
||||
class:active={isActiveCommit(commit.id)}>
|
||||
</div>
|
||||
<CobCommitTeaser
|
||||
disabled={isTeaserDisabled(commit.id)}
|
||||
onclick={() =>
|
||||
selectRevision({
|
||||
headId: commit.id,
|
||||
baseId: commit.parents[0],
|
||||
commitId: commit.id,
|
||||
})}
|
||||
{commit} />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
<div style:padding="0 1rem">
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
||||
<div
|
||||
class="global-flex txt-small summary"
|
||||
class:disabled={selectedCommit}
|
||||
style:cursor="pointer"
|
||||
onclick={() =>
|
||||
selectRevision({
|
||||
headId: revision.head,
|
||||
baseId: revision.base,
|
||||
})}>
|
||||
<Icon name="branch" />
|
||||
{commits.length}
|
||||
{pluralize("commit", commits.length)} on base
|
||||
<Id
|
||||
id={revision.base}
|
||||
variant={selectedCommit ? "none" : "commit"} />
|
||||
<div class="global-counter">base</div>
|
||||
</div>
|
||||
{/snippet}
|
||||
<div class="commits">
|
||||
{#each commits.reverse() as commit}
|
||||
<div class="commit" style:position="relative">
|
||||
<div class="commit-dot"></div>
|
||||
<div
|
||||
class="commit-dot"
|
||||
class:active={isActiveCommit(commit.id)}>
|
||||
</div>
|
||||
<CobCommitTeaser
|
||||
disabled={isTeaserDisabled(commit.id)}
|
||||
onclick={() =>
|
||||
selectRevision({
|
||||
headId: commit.id,
|
||||
baseId: commit.parents[0],
|
||||
commitId: commit.id,
|
||||
})}
|
||||
{commit} />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
</CommitsContainer>
|
||||
</div>
|
||||
{/await}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
<script lang="ts">
|
||||
import type { IssueStatus, PatchStatus } from "@app/views/repo/router";
|
||||
|
||||
import * as router from "@app/lib/router";
|
||||
|
||||
import { storeLayout, getLayout } from "@app/views/repo/Layout.svelte";
|
||||
@@ -11,9 +9,7 @@
|
||||
import NakedButton from "./NakedButton.svelte";
|
||||
|
||||
interface Props {
|
||||
activeTab:
|
||||
| { type: "issues"; status: IssueStatus }
|
||||
| { type: "patches"; status?: PatchStatus };
|
||||
activeTab: "issues" | "patches";
|
||||
rid: string;
|
||||
}
|
||||
|
||||
@@ -45,7 +41,7 @@
|
||||
<div class="global-flex" style:height="40px">
|
||||
<Icon name="repo" />
|
||||
</div>
|
||||
{#if activeTab.type === "issues"}
|
||||
{#if activeTab === "issues"}
|
||||
<Border
|
||||
styleCursor="pointer"
|
||||
onclick={() => {
|
||||
@@ -75,7 +71,7 @@
|
||||
</button>
|
||||
{/if}
|
||||
|
||||
{#if activeTab.type === "patches"}
|
||||
{#if activeTab === "patches"}
|
||||
<Border
|
||||
styleCursor="pointer"
|
||||
onclick={() => {
|
||||
|
||||
@@ -2,22 +2,23 @@
|
||||
import type { ErrorWrapper } from "@bindings/error/ErrorWrapper";
|
||||
|
||||
import * as router from "@app/lib/router";
|
||||
import { createEventEmittersOnce } from "@app/lib/startup.svelte";
|
||||
import { invoke } from "@app/lib/invoke";
|
||||
|
||||
import debounce from "lodash/debounce";
|
||||
import Button from "@app/components/Button.svelte";
|
||||
import Icon from "@app/components/Icon.svelte";
|
||||
import TextInput from "@app/components/TextInput.svelte";
|
||||
import logo from "/radicle.svg?url";
|
||||
import { invoke } from "@app/lib/invoke";
|
||||
import { createEventEmittersOnce } from "@app/lib/startup.svelte";
|
||||
import { debounce } from "lodash";
|
||||
|
||||
let passphrase = $state("");
|
||||
let notMatchingPassphrases = $state<boolean>();
|
||||
let passphraseRepeat = $state("");
|
||||
let alias = $state("");
|
||||
const errors = $state<{ alias: ErrorWrapper[]; passphrase: ErrorWrapper[] }>({
|
||||
const errors: { alias: ErrorWrapper[]; passphrase: ErrorWrapper[] } = {
|
||||
alias: [],
|
||||
passphrase: [],
|
||||
});
|
||||
};
|
||||
|
||||
const validatePassphraseRepeat = debounce(() => {
|
||||
if (passphrase !== passphraseRepeat && passphraseRepeat.length !== 0) {
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
|
||||
<Layout publicKey={config.publicKey}>
|
||||
{#snippet sidebar()}
|
||||
<Sidebar activeTab={{ type: "issues", status }} rid={repo.rid} />
|
||||
<Sidebar activeTab="issues" rid={repo.rid} />
|
||||
{/snippet}
|
||||
|
||||
{#snippet secondColumn()}
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
{/snippet}
|
||||
|
||||
{#snippet sidebar()}
|
||||
<Sidebar activeTab={{ type: "issues", status }} rid={repo.rid} />
|
||||
<Sidebar activeTab="issues" rid={repo.rid} />
|
||||
{/snippet}
|
||||
|
||||
{#snippet secondColumn()}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
{/snippet}
|
||||
|
||||
{#snippet sidebar()}
|
||||
<Sidebar activeTab={{ type: "issues", status }} rid={repo.rid} />
|
||||
<Sidebar activeTab="issues" rid={repo.rid} />
|
||||
{/snippet}
|
||||
|
||||
{#snippet secondColumn()}
|
||||
|
||||
@@ -346,7 +346,7 @@
|
||||
{/snippet}
|
||||
|
||||
{#snippet sidebar()}
|
||||
<Sidebar activeTab={{ type: "patches", status }} rid={repo.rid} />
|
||||
<Sidebar activeTab="patches" rid={repo.rid} />
|
||||
{/snippet}
|
||||
|
||||
{#snippet secondColumn()}
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
{/snippet}
|
||||
|
||||
{#snippet sidebar()}
|
||||
<Sidebar activeTab={{ type: "patches", status }} rid={repo.rid} />
|
||||
<Sidebar activeTab="patches" rid={repo.rid} />
|
||||
{/snippet}
|
||||
|
||||
{#snippet secondColumn()}
|
||||
|
||||
Reference in New Issue
Block a user