mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #2072 from appwrite/chore-pass-branch-name-to-get-repo-contents
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@ai-sdk/svelte": "^1.1.24",
|
||||
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@56743f5",
|
||||
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c",
|
||||
"@appwrite.io/pink-icons": "0.25.0",
|
||||
"@appwrite.io/pink-icons-svelte": "^2.0.0-RC.1",
|
||||
"@appwrite.io/pink-legacy": "^1.0.3",
|
||||
|
||||
Generated
+5
-5
@@ -12,8 +12,8 @@ importers:
|
||||
specifier: ^1.1.24
|
||||
version: 1.1.24(svelte@5.25.3)(zod@3.24.3)
|
||||
'@appwrite.io/console':
|
||||
specifier: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@56743f5
|
||||
version: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@56743f5
|
||||
specifier: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c
|
||||
version: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c
|
||||
'@appwrite.io/pink-icons':
|
||||
specifier: 0.25.0
|
||||
version: 0.25.0
|
||||
@@ -257,8 +257,8 @@ packages:
|
||||
'@analytics/type-utils@0.6.2':
|
||||
resolution: {integrity: sha512-TD+xbmsBLyYy/IxFimW/YL/9L2IEnM7/EoV9Aeh56U64Ify8o27HJcKjo38XY9Tcn0uOq1AX3thkKgvtWvwFQg==}
|
||||
|
||||
'@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@56743f5':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@56743f5}
|
||||
'@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c':
|
||||
resolution: {tarball: https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c}
|
||||
version: 1.9.0
|
||||
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@d521606fc63e0800b996f0fbb1a8d1f6907480ed':
|
||||
@@ -3636,7 +3636,7 @@ snapshots:
|
||||
|
||||
'@analytics/type-utils@0.6.2': {}
|
||||
|
||||
'@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@56743f5': {}
|
||||
'@appwrite.io/console@https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@8836b0c': {}
|
||||
|
||||
'@appwrite.io/pink-icons-svelte@https://pkg.pr.new/appwrite/pink/@appwrite.io/pink-icons-svelte@d521606fc63e0800b996f0fbb1a8d1f6907480ed(svelte@5.25.3)':
|
||||
dependencies:
|
||||
|
||||
@@ -90,5 +90,5 @@
|
||||
</Fieldset>
|
||||
|
||||
{#if show}
|
||||
<SelectRootModal bind:show bind:rootDir {product} />
|
||||
<SelectRootModal bind:show bind:rootDir {product} {branch} />
|
||||
{/if}
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
export let show = false;
|
||||
export let rootDir: string;
|
||||
export let product: 'sites' | 'functions' = 'functions';
|
||||
export let branch: string;
|
||||
|
||||
let isLoading = true;
|
||||
let directories: Directory[] = [
|
||||
@@ -42,7 +43,7 @@
|
||||
try {
|
||||
const content = await sdk
|
||||
.forProject(page.params.region, page.params.project)
|
||||
.vcs.getRepositoryContents($installation.$id, $repository.id, currentPath);
|
||||
.vcs.getRepositoryContents($installation.$id, $repository.id, currentPath, branch);
|
||||
directories[0].fileCount = content.contents?.length ?? 0;
|
||||
directories[0].children = content.contents
|
||||
.filter((e) => e.isDirectory)
|
||||
@@ -82,7 +83,7 @@
|
||||
try {
|
||||
const content = await sdk
|
||||
.forProject(page.params.region, page.params.project)
|
||||
.vcs.getRepositoryContents($installation.$id, $repository.id, path);
|
||||
.vcs.getRepositoryContents($installation.$id, $repository.id, path, branch);
|
||||
|
||||
const fileCount = content.contents?.length ?? 0;
|
||||
const contentDirectories = content.contents.filter((e) => e.isDirectory);
|
||||
|
||||
+5
-1
@@ -274,5 +274,9 @@
|
||||
<DisconnectRepo bind:show={showDisconnect} on:success={loadRepository} />
|
||||
{/if}
|
||||
{#if showSelectRoot}
|
||||
<SelectRootModal bind:show={showSelectRoot} product="sites" bind:rootDir={selectedDir} />
|
||||
<SelectRootModal
|
||||
bind:show={showSelectRoot}
|
||||
product="sites"
|
||||
bind:rootDir={selectedDir}
|
||||
branch={selectedBranch} />
|
||||
{/if}
|
||||
|
||||
+5
-1
@@ -269,5 +269,9 @@
|
||||
{/if}
|
||||
|
||||
{#if showSelectRoot}
|
||||
<SelectRootModal bind:show={showSelectRoot} product="sites" bind:rootDir={selectedDir} />
|
||||
<SelectRootModal
|
||||
bind:show={showSelectRoot}
|
||||
product="sites"
|
||||
bind:rootDir={selectedDir}
|
||||
branch={selectedBranch} />
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user