mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 06:10:44 +08:00
@@ -1,13 +1,13 @@
|
||||
<script lang="ts">
|
||||
import Icon from "@app/Icon.svelte";
|
||||
import type { CommitHeaderWithContext } from "@app/commit";
|
||||
import type { CommitMetadata } from "@app/commit";
|
||||
import type { Project } from "@app/project";
|
||||
import { formatCommit } from "@app/utils";
|
||||
import { createEventDispatcher } from "svelte";
|
||||
import { ProjectContent } from "@app/project";
|
||||
import { formatCommitTime } from "@app/commit";
|
||||
|
||||
export let commit: CommitHeaderWithContext;
|
||||
export let commit: CommitMetadata;
|
||||
export let project: Project;
|
||||
|
||||
const navigateHistory = (revision: string, content?: ProjectContent) => {
|
||||
|
||||
+3
-3
@@ -2,11 +2,11 @@ import type { Stats } from "@app/project";
|
||||
import type { Diff } from "@app/diff";
|
||||
|
||||
export interface CommitsHistory {
|
||||
headers: CommitHeaderWithContext[];
|
||||
headers: CommitMetadata[];
|
||||
stats: Stats;
|
||||
}
|
||||
|
||||
export interface CommitHeaderWithContext {
|
||||
export interface CommitMetadata {
|
||||
header: CommitHeader;
|
||||
context: CommitContext;
|
||||
}
|
||||
@@ -58,7 +58,7 @@ export interface CommitHeader {
|
||||
// A set of commits grouped by time.
|
||||
export interface CommitGroup {
|
||||
time: string;
|
||||
commits: CommitHeaderWithContext[];
|
||||
commits: CommitMetadata[];
|
||||
}
|
||||
|
||||
export interface CommitStats {
|
||||
|
||||
Reference in New Issue
Block a user