mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-29 12:33:49 +03:00
fix: rename ui CommitLines dir
This commit is contained in:
parent
f3e79e85c8
commit
89a12044c3
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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[];
|
@ -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
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user