mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +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={() => {
|
||||
|
||||
Reference in New Issue
Block a user