Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix types
Sebastian Martinez committed 4 years ago
commit e2103483a9a08338c803de06a85759ad2bcb7af7
parent 9620a171671bdee53325876564e65da57c458e1a
2 files changed +5 -5
modified src/base/projects/Commit/CommitTeaser.svelte
@@ -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) => {
modified src/commit.ts
@@ -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 {