-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3783 from coollabsio/next
v4.0.0-beta.357
- Loading branch information
Showing
82 changed files
with
4,346 additions
and
150 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ yarn-error.log | |
/_data | ||
.rnd | ||
/.ssh | ||
.ignition.json |
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 |
---|---|---|
|
@@ -32,3 +32,4 @@ _ide_helper_models.php | |
.rnd | ||
/.ssh | ||
scripts/load-test/* | ||
.ignition.json |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace App\Actions\Application; | ||
|
||
use App\Models\Application; | ||
use Lorisleiva\Actions\Concerns\AsAction; | ||
|
||
class GenerateConfig | ||
{ | ||
use AsAction; | ||
|
||
public function handle(Application $application, bool $is_json = false) | ||
{ | ||
ray()->clearAll(); | ||
return $application->generateConfig(is_json: $is_json); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
namespace App\Enums; | ||
|
||
enum StaticImageTypes: string | ||
{ | ||
case NGINX_ALPINE = 'nginx:alpine'; | ||
} |
Large diffs are not rendered by default.
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
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace App\Livewire\Project\Shared; | ||
|
||
use App\Models\Application; | ||
use Livewire\Component; | ||
|
||
class UploadConfig extends Component | ||
{ | ||
public $config; | ||
public $applicationId; | ||
public function mount() { | ||
if (isDev()) { | ||
$this->config = '{ | ||
"build_pack": "nixpacks", | ||
"base_directory": "/nodejs", | ||
"publish_directory": "/", | ||
"ports_exposes": "3000", | ||
"settings": { | ||
"is_static": false | ||
} | ||
}'; | ||
} | ||
} | ||
public function uploadConfig() | ||
{ | ||
try { | ||
$application = Application::findOrFail($this->applicationId); | ||
$application->setConfig($this->config); | ||
$this->dispatch('success', 'Application settings updated'); | ||
} catch (\Exception $e) { | ||
$this->dispatch('error', $e->getMessage()); | ||
return; | ||
} | ||
|
||
} | ||
public function render() | ||
{ | ||
return view('livewire.project.shared.upload-config'); | ||
} | ||
} |
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
Oops, something went wrong.