commit
						db9db61d92
					
				| @ -1,7 +1,7 @@ | ||||
| { | ||||
| 	"name": "coolify", | ||||
| 	"description": "An open-source & self-hostable Heroku / Netlify alternative.", | ||||
| 	"version": "2.9.0", | ||||
| 	"version": "2.9.1", | ||||
| 	"license": "AGPL-3.0", | ||||
| 	"scripts": { | ||||
| 		"dev": "docker-compose -f docker-compose-dev.yaml up -d && cross-env NODE_ENV=development & svelte-kit dev --host 0.0.0.0", | ||||
|  | ||||
| @ -67,16 +67,10 @@ export async function getSource({ | ||||
| 	return body; | ||||
| } | ||||
| export async function addGitHubSource({ id, teamId, type, name, htmlUrl, apiUrl, organization }) { | ||||
| 	await prisma.gitSource.update({ | ||||
| 	return await prisma.gitSource.update({ | ||||
| 		where: { id }, | ||||
| 		data: { type, name, htmlUrl, apiUrl, organization } | ||||
| 	}); | ||||
| 	return await prisma.githubApp.create({ | ||||
| 		data: { | ||||
| 			teams: { connect: { id: teamId } }, | ||||
| 			gitSource: { connect: { id } } | ||||
| 		} | ||||
| 	}); | ||||
| } | ||||
| export async function addGitLabSource({ | ||||
| 	id, | ||||
|  | ||||
| @ -80,7 +80,7 @@ | ||||
| </script> | ||||
| 
 | ||||
| <div class="mx-auto max-w-4xl px-6"> | ||||
| 	{#if !source.githubApp?.installationId} | ||||
| 	{#if !source.githubAppId} | ||||
| 		<form on:submit|preventDefault={newGithubApp} class="py-4"> | ||||
| 			<div class="flex space-x-1 pb-5 font-bold"> | ||||
| 				<div class="title">General</div> | ||||
| @ -171,7 +171,7 @@ | ||||
| 		</form> | ||||
| 	{:else} | ||||
| 		<div class="text-center"> | ||||
| 			<button class=" bg-orange-600 mt-8" on:click={() => installRepositories(source)} | ||||
| 			<button class=" mt-8 bg-orange-600" on:click={() => installRepositories(source)} | ||||
| 				>Install Repositories</button | ||||
| 			> | ||||
| 		</div> | ||||
|  | ||||
| @ -113,7 +113,7 @@ | ||||
| </div> | ||||
| 
 | ||||
| <div class="flex flex-col justify-center"> | ||||
| 	{#if !source.gitlabAppId && (!source.githubAppId || !source.githubApp?.installationId)} | ||||
| 	{#if !source.gitlabAppId && !source.githubAppId} | ||||
| 		<div class="flex-col space-y-2 pb-10 text-center"> | ||||
| 			<div class="text-xl font-bold text-white">Select a provider</div> | ||||
| 			<div class="flex justify-center space-x-2"> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user