a ton 👷‍♂️

This commit is contained in:
Andras Bacsai
2023-05-24 14:26:50 +02:00
parent 8677b1d85d
commit 6e7ee0ca48
67 changed files with 754 additions and 992 deletions

View File

@@ -10,7 +10,7 @@ class EmptyProject extends Component
public function createEmptyProject()
{
$project = Project::create([
'name' => generateRandomName(),
'name' => generate_random_name(),
'team_id' => session('currentTeam')->id,
]);
return redirect()->route('project.show', ['project_uuid' => $project->uuid, 'environment_name' => 'production']);

View File

@@ -110,7 +110,7 @@ class GithubPrivateRepository extends Component
$environment = $project->load(['environments'])->environments->where('name', $this->parameters['environment_name'])->first();
$application = Application::create([
'name' => generateRandomName(),
'name' => generate_random_name(),
'repository_project_id' => $this->selected_repository_id,
'git_repository' => "{$this->selected_repository_owner}/{$this->selected_repository_repo}",
'git_branch' => $this->selected_branch_name,
@@ -129,12 +129,12 @@ class GithubPrivateRepository extends Component
'environment_name' => $environment->name
]);
} catch (\Exception $e) {
return generalErrorHandler($e, $this);
return general_error_handler($e, $this);
}
}
public function mount()
{
$this->parameters = getParameters();
$this->parameters = get_parameters();
$this->query = request()->query();
$this->repositories = $this->branches = collect();
$this->github_apps = GithubApp::private();

View File

@@ -34,7 +34,7 @@ class GithubPrivateRepositoryDeployKey extends Component
if (config('app.env') === 'local') {
$this->repository_url = 'https://github.com/coollabsio/coolify-examples/tree/nodejs-fastify';
}
$this->parameters = getParameters();
$this->parameters = get_parameters();
$this->query = request()->query();
$this->private_keys = PrivateKey::where('team_id', session('currentTeam')->id)->get();
}
@@ -74,7 +74,7 @@ class GithubPrivateRepositoryDeployKey extends Component
$project = Project::where('uuid', $this->parameters['project_uuid'])->first();
$environment = $project->load(['environments'])->environments->where('name', $this->parameters['environment_name'])->first();
$application_init = [
'name' => generateRandomName(),
'name' => generate_random_name(),
'git_repository' => $git_repository,
'git_branch' => $git_branch,
'git_full_url' => "git@$git_host:$git_repository.git",
@@ -96,7 +96,7 @@ class GithubPrivateRepositoryDeployKey extends Component
'application_uuid' => $application->uuid,
]);
} catch (\Exception $e) {
return generalErrorHandler($e, $this);
return general_error_handler($e, $this);
}
}
}

View File

@@ -37,7 +37,7 @@ class PublicGitRepository extends Component
$this->repository_url = 'https://github.com/coollabsio/coolify-examples/tree/nodejs-fastify';
$this->port = 3000;
}
$this->parameters = getParameters();
$this->parameters = get_parameters();
$this->query = request()->query();
}
@@ -78,7 +78,7 @@ class PublicGitRepository extends Component
$application_init = [
'name' => generateRandomName(),
'name' => generate_random_name(),
'git_repository' => $git_repository,
'git_branch' => $git_branch,
'build_pack' => 'nixpacks',
@@ -106,7 +106,7 @@ class PublicGitRepository extends Component
'application_uuid' => $application->uuid,
]);
} catch (\Exception $e) {
return generalErrorHandler($e);
return general_error_handler($e);
}
}
}