|
1 | 1 | import { persisted, type Persisted } from '$lib/persisted/persisted';
|
2 | 2 |
|
3 | 3 | export function projectHttpsWarningBannerDismissed(projectId: string): Persisted<boolean> {
|
4 |
| - const key = 'projectHttpsWarningBannerDismissed_'; |
5 |
| - return persisted(false, key + projectId); |
| 4 | + const key = 'projectHttpsWarningBannerDismissed_'; |
| 5 | + return persisted(false, key + projectId); |
6 | 6 | }
|
7 | 7 |
|
8 | 8 | export function projectMergeUpstreamWarningDismissed(projectId: string): Persisted<boolean> {
|
9 |
| - const key = 'projectMergeUpstreamWarningDismissed_'; |
10 |
| - return persisted(false, key + projectId); |
| 9 | + const key = 'projectMergeUpstreamWarningDismissed_'; |
| 10 | + return persisted(false, key + projectId); |
11 | 11 | }
|
12 | 12 |
|
13 | 13 | export function projectCommitGenerationExtraConcise(projectId: string): Persisted<boolean> {
|
14 |
| - const key = 'projectCommitGenerationExtraConcise_'; |
15 |
| - return persisted(false, key + projectId); |
| 14 | + const key = 'projectCommitGenerationExtraConcise_'; |
| 15 | + return persisted(false, key + projectId); |
16 | 16 | }
|
17 | 17 |
|
18 | 18 | export function projectCommitGenerationUseEmojis(projectId: string): Persisted<boolean> {
|
19 |
| - const key = 'projectCommitGenerationUseEmojis_'; |
20 |
| - return persisted(false, key + projectId); |
| 19 | + const key = 'projectCommitGenerationUseEmojis_'; |
| 20 | + return persisted(false, key + projectId); |
21 | 21 | }
|
22 | 22 |
|
23 | 23 | export enum ListPRsFilter {
|
24 |
| - All = 'ALL', |
25 |
| - ExcludeBots = 'EXCLUDE_BOTS', |
26 |
| - OnlyYours = 'ONLY_YOURS' |
| 24 | + All = 'ALL', |
| 25 | + ExcludeBots = 'EXCLUDE_BOTS', |
| 26 | + OnlyYours = 'ONLY_YOURS' |
27 | 27 | }
|
28 | 28 |
|
29 | 29 | export function projectPullRequestListingFilter(projectId: string): Persisted<string> {
|
30 |
| - const key = 'projectPullRequestListingFilter_'; |
31 |
| - return persisted(ListPRsFilter.All, key + projectId); |
| 30 | + const key = 'projectPullRequestListingFilter_'; |
| 31 | + return persisted(ListPRsFilter.All, key + projectId); |
32 | 32 | }
|
33 | 33 |
|
34 | 34 | export function projectAiGenEnabled(projectId: string): Persisted<boolean> {
|
35 |
| - const key = 'projectAiGenEnabled_'; |
36 |
| - return persisted(false, key + projectId); |
| 35 | + const key = 'projectAiGenEnabled_'; |
| 36 | + return persisted(false, key + projectId); |
37 | 37 | }
|
38 | 38 |
|
39 | 39 | export function projectAiGenAutoBranchNamingEnabled(projectId: string): Persisted<boolean> {
|
40 |
| - const key = 'projectAiGenAutoBranchNamingEnabled_'; |
41 |
| - return persisted(false, key + projectId); |
| 40 | + const key = 'projectAiGenAutoBranchNamingEnabled_'; |
| 41 | + return persisted(false, key + projectId); |
42 | 42 | }
|
43 | 43 |
|
44 | 44 | export function projectRunCommitHooks(projectId: string): Persisted<boolean> {
|
45 |
| - const key = 'projectRunCommitHooks_'; |
46 |
| - return persisted(false, key + projectId); |
| 45 | + const key = 'projectRunCommitHooks_'; |
| 46 | + return persisted(false, key + projectId); |
47 | 47 | }
|
48 | 48 |
|
49 | 49 | export function projectLaneCollapsed(projectId: string, laneId: string): Persisted<boolean> {
|
50 |
| - const key = 'projectLaneCollapsed_'; |
51 |
| - return persisted(false, key + projectId + '_' + laneId); |
| 50 | + const key = 'projectLaneCollapsed_'; |
| 51 | + return persisted(false, key + projectId + '_' + laneId); |
52 | 52 | }
|
53 | 53 |
|
54 | 54 | export function navCollapsed(): Persisted<boolean> {
|
55 |
| - const key = 'projectNavCollapsed_'; |
56 |
| - return persisted(false, key); |
| 55 | + const key = 'projectNavCollapsed_'; |
| 56 | + return persisted(false, key); |
57 | 57 | }
|
58 | 58 |
|
59 | 59 | export function projectCurrentCommitMessage(
|
60 |
| - projectId: string, |
61 |
| - branchId: string |
| 60 | + projectId: string, |
| 61 | + branchId: string |
62 | 62 | ): Persisted<string> {
|
63 |
| - const key = 'projectCurrentCommitMessage_'; |
64 |
| - return persisted('', key + projectId + '_' + branchId); |
| 63 | + const key = 'projectCurrentCommitMessage_'; |
| 64 | + return persisted('', key + projectId + '_' + branchId); |
65 | 65 | }
|
0 commit comments