fix: rename ui CommitLines dir

This commit is contained in:
ndom91 2024-06-27 16:16:59 +02:00
parent f3e79e85c8
commit 89a12044c3
No known key found for this signature in database
10 changed files with 13 additions and 39 deletions

View File

@ -1,5 +1,5 @@
<script lang="ts">
import type { BaseNode, Color } from '$lib/commitLines/types';
import type { BaseNode, Color } from '$lib/CommitLines/types';
interface Props {
baseNode: BaseNode;
color: Color;

View File

@ -1,7 +1,7 @@
<script lang="ts">
import Fork from '$lib/commitLines/Cell/Fork.svelte';
import Straight from '$lib/commitLines/Cell/Straight.svelte';
import type { Cell } from '$lib/commitLines/types';
import Fork from '$lib/CommitLines/Cell/Fork.svelte';
import Straight from '$lib/CommitLines/Cell/Straight.svelte';
import type { Cell } from '$lib/CommitLines/types';
interface Props {
cell: Cell;

View File

@ -1,5 +1,5 @@
<script lang="ts">
import type { Color, Style } from '$lib/commitLines/types';
import type { Color, Style } from '$lib/CommitLines/types';
interface Props {
color: Color;

View File

@ -1,7 +1,7 @@
<script lang="ts">
import { tooltip } from '$lib/utils/tooltip';
import { isDefined } from '$lib/utils/typeguards';
import type { CommitNode, Color } from '$lib/commitLines/types';
import type { CommitNode, Color } from '$lib/CommitLines/types';
interface Props {
commitNode: CommitNode;

View File

@ -1,9 +1,9 @@
<script lang="ts">
import BaseNode from '$lib/commitLines/BaseNode.svelte';
import Cell from '$lib/commitLines/Cell.svelte';
import CommitNode from '$lib/commitLines/CommitNode.svelte';
import BaseNode from '$lib/CommitLines/BaseNode.svelte';
import Cell from '$lib/CommitLines/Cell.svelte';
import CommitNode from '$lib/CommitLines/CommitNode.svelte';
import { pxToRem } from '$lib/utils/pxToRem';
import type { Line } from '$lib/commitLines/types';
import type { Line } from '$lib/CommitLines/types';
interface Props {
line: Line;

View File

@ -1,6 +1,6 @@
<script lang="ts">
import Line from '$lib/commitLines/Line.svelte';
import type { LineGroup } from '$lib/commitLines/types';
import Line from '$lib/CommitLines/Line.svelte';
import type { LineGroup } from '$lib/CommitLines/types';
interface Props {
lineGroup: LineGroup;

View File

@ -1,4 +1,4 @@
import type { CommitData, LineGroup, Line, Color } from '$lib/commitLines/types';
import type { CommitData, LineGroup, Line, Color } from '$lib/CommitLines/types';
interface Commits {
remoteCommits: CommitData[];

View File

@ -1,26 +0,0 @@
import type { CommitData, Author } from '$lib/commitLines/types';
import type { AnyCommit } from '$lib/vbranches/types';
export function transformAnyCommit(anyCommit: AnyCommit): CommitData {
const output = pullCommitDetails(anyCommit);
if (anyCommit.relatedTo) {
output.relatedRemoteCommit = pullCommitDetails(anyCommit.relatedTo);
}
return output;
}
function pullCommitDetails(anyCommit: AnyCommit): CommitData {
const author: Author = {
name: anyCommit.author.name,
email: anyCommit.author.email,
gravatarUrl: anyCommit.author.gravatarUrl
};
return {
id: anyCommit.id,
title: anyCommit.descriptionTitle,
author
};
}