-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
71717da
commit 5772164
Showing
16 changed files
with
14 additions
and
739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 0 additions & 25 deletions
25
apps/desktop/src/routes/[projectId]/series/branches/[cloudBranchId]/+page.svelte
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,7 @@ | ||
<script lang="ts"> | ||
import { CloudRepositoriesService } from '@gitbutler/shared/cloud/repositories/service'; | ||
import { getContext } from '@gitbutler/shared/context'; | ||
import Button from '@gitbutler/ui/Button.svelte'; | ||
import { goto } from '$app/navigation'; | ||
const cloudRepositoriesService = getContext(CloudRepositoriesService); | ||
const repositories = $derived(cloudRepositoriesService.repositories); | ||
$inspect($repositories); | ||
</script> | ||
|
||
<h2>Your projects:</h2> | ||
|
||
{#if !$repositories} | ||
<p>Loading...</p> | ||
{:else if $repositories.length === 0} | ||
<p> | ||
You've not got any projects added yet. Enable project syncing in GitButler in order to see | ||
projects. | ||
</p> | ||
{:else} | ||
<div class="card"> | ||
{#each $repositories as repository} | ||
<div class="line-item"> | ||
<div> | ||
<h5 class="text-head-22">{repository.name}</h5> | ||
<p>{repository.name}</p> | ||
</div> | ||
<Button | ||
style="pop" | ||
kind="solid" | ||
onclick={() => { | ||
goto(`/repositories/${repository.repositoryId}`); | ||
}}>Visit</Button | ||
> | ||
</div> | ||
{/each} | ||
</div> | ||
{/if} | ||
|
||
<style> | ||
.line-item { | ||
padding: 8px; | ||
display: flex; | ||
justify-content: space-between; | ||
&:not(:last-child) { | ||
border-bottom: 1px solid var(--clr-border-1); | ||
} | ||
} | ||
</style> |
21 changes: 0 additions & 21 deletions
21
apps/web/src/routes/repositories/[repositoryId]/+layout.svelte
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
apps/web/src/routes/repositories/[repositoryId]/branches/[cloudBranchId]/+page.svelte
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.