mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
Fix code formatting and linting errors
This commit is contained in:
parent
e069b5aeef
commit
0404a3a0bd
@ -2,10 +2,10 @@
|
||||
import SyncButton from './SyncButton.svelte';
|
||||
import Badge from '$lib/components/Badge.svelte';
|
||||
import Icon from '$lib/components/Icon.svelte';
|
||||
import { page } from '$app/stores';
|
||||
import type { Project } from '$lib/backend/projects';
|
||||
import type { GitHubService } from '$lib/github/service';
|
||||
import type { BaseBranchService } from '$lib/vbranches/branchStoresCache';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
export let project: Project;
|
||||
export let baseBranchService: BaseBranchService;
|
||||
|
@ -1,8 +1,8 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import UpdateBaseButton from './UpdateBaseButton.svelte';
|
||||
import type { BranchController } from '$lib/vbranches/branchController';
|
||||
import type { BaseBranchService } from '$lib/vbranches/branchStoresCache';
|
||||
import UpdateBaseButton from './UpdateBaseButton.svelte';
|
||||
import { page } from '$app/stores';
|
||||
|
||||
export let href: string;
|
||||
export let domain: string;
|
||||
@ -39,9 +39,7 @@
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
<span class="text-base-13 text-semibold" class:collapsed-txt={isNavCollapsed}>
|
||||
Workspace
|
||||
</span>
|
||||
<span class="text-base-13 text-semibold" class:collapsed-txt={isNavCollapsed}>Workspace</span>
|
||||
{#if ($base$?.behind || 0) > 0 && !isNavCollapsed}
|
||||
<UpdateBaseButton {branchController} />
|
||||
{/if}
|
||||
|
@ -1,14 +1,13 @@
|
||||
<script lang="ts">
|
||||
import BaseBranchCard from './BaseBranchCard.svelte';
|
||||
import Branches from './Branches.svelte';
|
||||
import Button from './Button.svelte';
|
||||
import DomainButton from './DomainButton.svelte';
|
||||
import Footer from './Footer.svelte';
|
||||
import ProjectSelector from './ProjectSelector.svelte';
|
||||
import UpdateBaseButton from './UpdateBaseButton.svelte';
|
||||
import BaseBranchCard from './BaseBranchCard.svelte';
|
||||
import Resizer from './Resizer.svelte';
|
||||
import Button from './Button.svelte';
|
||||
import { navCollapsed } from '$lib/config/config';
|
||||
import { persisted, type Persisted } from '$lib/persisted/persisted';
|
||||
import { persisted } from '$lib/persisted/persisted';
|
||||
import { SETTINGS_CONTEXT, type SettingsStore } from '$lib/settings/userSettings';
|
||||
import { getContext } from 'svelte';
|
||||
import type { User } from '$lib/backend/cloud';
|
||||
|
@ -1,65 +1,65 @@
|
||||
import { persisted, type Persisted } from '$lib/persisted/persisted';
|
||||
|
||||
export function projectHttpsWarningBannerDismissed(projectId: string): Persisted<boolean> {
|
||||
const key = 'projectHttpsWarningBannerDismissed_';
|
||||
return persisted(false, key + projectId);
|
||||
const key = 'projectHttpsWarningBannerDismissed_';
|
||||
return persisted(false, key + projectId);
|
||||
}
|
||||
|
||||
export function projectMergeUpstreamWarningDismissed(projectId: string): Persisted<boolean> {
|
||||
const key = 'projectMergeUpstreamWarningDismissed_';
|
||||
return persisted(false, key + projectId);
|
||||
const key = 'projectMergeUpstreamWarningDismissed_';
|
||||
return persisted(false, key + projectId);
|
||||
}
|
||||
|
||||
export function projectCommitGenerationExtraConcise(projectId: string): Persisted<boolean> {
|
||||
const key = 'projectCommitGenerationExtraConcise_';
|
||||
return persisted(false, key + projectId);
|
||||
const key = 'projectCommitGenerationExtraConcise_';
|
||||
return persisted(false, key + projectId);
|
||||
}
|
||||
|
||||
export function projectCommitGenerationUseEmojis(projectId: string): Persisted<boolean> {
|
||||
const key = 'projectCommitGenerationUseEmojis_';
|
||||
return persisted(false, key + projectId);
|
||||
const key = 'projectCommitGenerationUseEmojis_';
|
||||
return persisted(false, key + projectId);
|
||||
}
|
||||
|
||||
export enum ListPRsFilter {
|
||||
All = 'ALL',
|
||||
ExcludeBots = 'EXCLUDE_BOTS',
|
||||
OnlyYours = 'ONLY_YOURS'
|
||||
All = 'ALL',
|
||||
ExcludeBots = 'EXCLUDE_BOTS',
|
||||
OnlyYours = 'ONLY_YOURS'
|
||||
}
|
||||
|
||||
export function projectPullRequestListingFilter(projectId: string): Persisted<string> {
|
||||
const key = 'projectPullRequestListingFilter_';
|
||||
return persisted(ListPRsFilter.All, key + projectId);
|
||||
const key = 'projectPullRequestListingFilter_';
|
||||
return persisted(ListPRsFilter.All, key + projectId);
|
||||
}
|
||||
|
||||
export function projectAiGenEnabled(projectId: string): Persisted<boolean> {
|
||||
const key = 'projectAiGenEnabled_';
|
||||
return persisted(false, key + projectId);
|
||||
const key = 'projectAiGenEnabled_';
|
||||
return persisted(false, key + projectId);
|
||||
}
|
||||
|
||||
export function projectAiGenAutoBranchNamingEnabled(projectId: string): Persisted<boolean> {
|
||||
const key = 'projectAiGenAutoBranchNamingEnabled_';
|
||||
return persisted(false, key + projectId);
|
||||
const key = 'projectAiGenAutoBranchNamingEnabled_';
|
||||
return persisted(false, key + projectId);
|
||||
}
|
||||
|
||||
export function projectRunCommitHooks(projectId: string): Persisted<boolean> {
|
||||
const key = 'projectRunCommitHooks_';
|
||||
return persisted(false, key + projectId);
|
||||
const key = 'projectRunCommitHooks_';
|
||||
return persisted(false, key + projectId);
|
||||
}
|
||||
|
||||
export function projectLaneCollapsed(projectId: string, laneId: string): Persisted<boolean> {
|
||||
const key = 'projectLaneCollapsed_';
|
||||
return persisted(false, key + projectId + '_' + laneId);
|
||||
const key = 'projectLaneCollapsed_';
|
||||
return persisted(false, key + projectId + '_' + laneId);
|
||||
}
|
||||
|
||||
export function navCollapsed(): Persisted<boolean> {
|
||||
const key = 'projectNavCollapsed_';
|
||||
return persisted(false, key);
|
||||
const key = 'projectNavCollapsed_';
|
||||
return persisted(false, key);
|
||||
}
|
||||
|
||||
export function projectCurrentCommitMessage(
|
||||
projectId: string,
|
||||
branchId: string
|
||||
projectId: string,
|
||||
branchId: string
|
||||
): Persisted<string> {
|
||||
const key = 'projectCurrentCommitMessage_';
|
||||
return persisted('', key + projectId + '_' + branchId);
|
||||
const key = 'projectCurrentCommitMessage_';
|
||||
return persisted('', key + projectId + '_' + branchId);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user