File tree Expand file tree Collapse file tree 7 files changed +16
-21
lines changed
routes/(console)/project-[region]-[project]
create-function/repository-[repository]
sites/create-site/repositories/repository-[repository] Expand file tree Collapse file tree 7 files changed +16
-21
lines changed Original file line number Diff line number Diff line change 2020 },
2121 "dependencies" : {
2222 "@ai-sdk/svelte" : " ^1.1.24" ,
23- "@appwrite.io/console" : " https://pkg.vc/-/@appwrite/@appwrite.io/console@f151724 " ,
23+ "@appwrite.io/console" : " https://pkg.vc/-/@appwrite/@appwrite.io/console@d223f36 " ,
2424 "@appwrite.io/pink-icons" : " 0.25.0" ,
2525 "@appwrite.io/pink-icons-svelte" : " https://pkg.vc/-/@appwrite/@appwrite.io/pink-icons-svelte@bfe7ce3" ,
2626 "@appwrite.io/pink-legacy" : " ^1.0.3" ,
Original file line number Diff line number Diff line change 138138
139139 $repositories .repositories =
140140 product === ' functions'
141- ? (
142- result as unknown as {
143- runtimeProviderRepositories: (Models .ProviderRepository & {
144- runtime: string ;
145- })[];
146- }
147- ).runtimeProviderRepositories
141+ ? (result as unknown as Models .ProviderRepositoryRuntimeList )
142+ .runtimeProviderRepositories
148143 : (result as unknown as Models .ProviderRepositoryFrameworkList )
149144 .frameworkProviderRepositories ; // TODO: remove forced cast after backend fixes
150145 $repositories .total = result .total ;
Original file line number Diff line number Diff line change 55 import { iconPath } from ' $lib/stores/app' ;
66 import { sdk } from ' $lib/stores/sdk' ;
77 import { installation , repository } from ' $lib/stores/vcs' ;
8- import { VCSDetectionType } from ' @appwrite.io/console' ;
8+ import { VCSDetectionType , type Models } from ' @appwrite.io/console' ;
99 import DirectoryPicker from ' $lib/components/git/DirectoryPicker.svelte' ;
1010 import { writable } from ' svelte/store' ;
1111
112112
113113 const iconName =
114114 product === ' sites'
115- ? detection .framework
116- : (detection as unknown as { runtime : string } ).runtime ;
115+ ? ( detection as unknown as Models . DetectionFramework ) .framework
116+ : (detection as unknown as Models . DetectionRuntime ).runtime ;
117117 const resolved = resolveIconUrl (iconName );
118118 iconCache .set (path , resolved );
119119 return resolved ;
Original file line number Diff line number Diff line change 8484 installationId: data .installation .$id ,
8585 providerRepositoryId: page .params .repository ,
8686 type: VCSDetectionType .Runtime
87- })) as unknown as {
88- entrypoint: string ;
89- commands: string ;
90- runtime: string ;
91- variables: { name: string ; value: string }[];
92- }; /* SDK return type is wrong atm */
87+ })) as unknown as Models .DetectionRuntime ;
9388
9489 entrypoint = detections .entrypoint ;
9590 buildCommand = detections .commands ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export const repositories: Writable<{
2121 repositories :
2222 | Models . ProviderRepository [ ]
2323 | Models . ProviderRepositoryFramework [ ]
24- | ( Models . ProviderRepository & { runtime : string } ) [ ] ;
24+ | Models . ProviderRepositoryRuntime [ ] ;
2525} > = writable ( {
2626 search : '' ,
2727 installationId : '' ,
Original file line number Diff line number Diff line change 7575 type: VCSDetectionType .Framework ,
7676 providerRootDirectory: rootDir
7777 });
78- framework = data .frameworks .frameworks .find ((f ) => f .key === response .framework );
78+ framework = data .frameworks .frameworks .find (
79+ (f ) => f .key === (response as unknown as Models .DetectionFramework ).framework
80+ );
81+ if (! framework ) {
82+ framework = data .frameworks .frameworks .find ((f ) => f .key === ' other' );
83+ }
7984 adapter = framework ?.adapters [0 ];
8085 installCommand = adapter ?.installCommand ;
8186 buildCommand = adapter ?.buildCommand ;
You can’t perform that action at this time.
0 commit comments