mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 10:10:30 +08:00
Improves changeset schemas and fix moved diff syntax highlighting
This commit is contained in:
@@ -154,18 +154,19 @@
|
||||
</div>
|
||||
{/each}
|
||||
{#each diff.moved as file}
|
||||
{#if file.diff}
|
||||
{#if "diff" in file}
|
||||
<div use:intersection={observer} id={"observer:" + file.newPath}>
|
||||
<FileDiff
|
||||
{projectId}
|
||||
{baseUrl}
|
||||
{revision}
|
||||
{expanded}
|
||||
content=""
|
||||
content={files[file.new.oid]?.content}
|
||||
oldContent={files[file.old.oid]?.content}
|
||||
visible={filesVisibility.has(file.newPath)}
|
||||
filePath={file.newPath}
|
||||
oldFilePath={file.oldPath}
|
||||
fileDiff={file.diff}
|
||||
fileDiff={{ ...file.diff, type: getFileType(file.diff, file.new) }}
|
||||
headerBadgeCaption="moved" />
|
||||
</div>
|
||||
{:else}
|
||||
|
||||
Reference in New Issue
Block a user