2023-08-24 17:17:54 +03:00
|
|
|
import { persisted, type Persisted } from '@square/svelte-store';
|
|
|
|
|
|
|
|
export function projectHttpsWarningBannerDismissed(projectId: string): Persisted<boolean> {
|
|
|
|
const key = 'projectHttpsWarningBannerDismissed_';
|
|
|
|
return persisted(false, key + projectId);
|
|
|
|
}
|
2023-08-28 14:27:07 +03:00
|
|
|
|
|
|
|
export function projectMergeUpstreamWarningDismissed(projectId: string): Persisted<boolean> {
|
|
|
|
const key = 'projectMergeUpstreamWarningDismissed_';
|
|
|
|
return persisted(false, key + projectId);
|
|
|
|
}
|
2023-09-15 12:26:09 +03:00
|
|
|
|
|
|
|
export function projectCommitGenerationExtraConcise(projectId: string): Persisted<boolean> {
|
|
|
|
const key = 'projectCommitGenerationExtraConcise_';
|
|
|
|
return persisted(false, key + projectId);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function projectCommitGenerationUseEmojis(projectId: string): Persisted<boolean> {
|
|
|
|
const key = 'projectCommitGenerationUseEmojis_';
|
|
|
|
return persisted(false, key + projectId);
|
|
|
|
}
|
2023-10-13 16:08:03 +03:00
|
|
|
|
|
|
|
export function projectCreatePullRequestInsteadOfPush(projectId: string): Persisted<boolean> {
|
|
|
|
const key = 'projectCreatePullRequestInsteadOfPush_';
|
|
|
|
return persisted(false, key + projectId);
|
|
|
|
}
|
2023-10-28 21:43:58 +03:00
|
|
|
|
|
|
|
export enum ListPRsFilter {
|
|
|
|
All = 'ALL',
|
|
|
|
ExcludeBots = 'EXCLUDE_BOTS',
|
|
|
|
OnlyYours = 'ONLY_YOURS'
|
|
|
|
}
|
|
|
|
|
|
|
|
export function projectPullRequestListingFilter(projectId: string): Persisted<string> {
|
|
|
|
const key = 'projectPullRequestListingFilter_';
|
|
|
|
return persisted(ListPRsFilter.All, key + projectId);
|
|
|
|
}
|