mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 03:20:33 +08:00
30 lines
595 B
Svelte
30 lines
595 B
Svelte
<script lang="ts">
|
|
import type { Diff } from "@bindings/diff/Diff";
|
|
|
|
import FileDiff from "./Changeset/FileDiff.svelte";
|
|
|
|
interface Props {
|
|
diff: Diff;
|
|
repoId: string;
|
|
}
|
|
|
|
const { diff }: Props = $props();
|
|
</script>
|
|
|
|
<style>
|
|
.diff-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
</style>
|
|
|
|
<div class="diff-list">
|
|
{#each diff.files as file}
|
|
<FileDiff
|
|
filePath={"path" in file ? file.path : file.newPath}
|
|
oldFilePath={"oldPath" in file ? file.oldPath : undefined}
|
|
fileDiff={file.diff}
|
|
headerBadgeCaption={file.status} />
|
|
{/each}
|
|
</div>
|