move files around

This commit is contained in:
Andras Bacsai
2023-04-25 11:01:56 +02:00
parent 18a2d0bd90
commit dd51b002b8
29 changed files with 63 additions and 38 deletions

View File

@@ -21,7 +21,7 @@ class ApplicationController extends Controller
if (!$application) {
return redirect()->route('home');
}
return view('project.applications.configuration', ['application' => $application]);
return view('project.application.configuration', ['application' => $application]);
}
public function deployments()
{
@@ -37,7 +37,7 @@ class ApplicationController extends Controller
if (!$application) {
return redirect()->route('home');
}
return view('project.applications.deployments', ['application' => $application, 'deployments' => $application->deployments()]);
return view('project.application.deployments', ['application' => $application, 'deployments' => $application->deployments()]);
}
public function deployment()
@@ -58,7 +58,7 @@ class ApplicationController extends Controller
}
$activity = Activity::where('properties->deployment_uuid', '=', $deployment_uuid)->first();
return view('project.applications.deployment', [
return view('project.application.deployment', [
'application' => $application,
'activity' => $activity,
'deployment_uuid' => $deployment_uuid,

View File

@@ -46,7 +46,7 @@ class ProjectController extends Controller
if (!$application) {
return redirect()->route('home');
}
return view('project.applications.configuration', ['application' => $application]);
return view('project.application.configuration', ['application' => $application]);
}
public function application_deployments()
{
@@ -62,7 +62,7 @@ class ProjectController extends Controller
if (!$application) {
return redirect()->route('home');
}
return view('project.applications.deployments', ['application' => $application, 'deployments' => $application->deployments()]);
return view('project.application.deployments', ['application' => $application, 'deployments' => $application->deployments()]);
}
public function application_deployment()
@@ -83,7 +83,7 @@ class ProjectController extends Controller
}
$activity = Activity::where('properties->deployment_uuid', '=', $deployment_uuid)->first();
return view('project.applications.deployment', [
return view('project.application.deployment', [
'application' => $application,
'activity' => $activity,
'deployment_uuid' => $deployment_uuid,

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire;
namespace App\Http\Livewire\Project\Application;
use App\Jobs\DeployApplicationJob;
use App\Models\Application;
@@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Route;
use Livewire\Component;
use Visus\Cuid2\Cuid2;
class DeployApplication extends Component
class Deploy extends Component
{
public string $applicationId;
public $activity;
@@ -35,7 +35,7 @@ class DeployApplication extends Component
}
protected function redirectToDeployment()
{
return redirect()->route('project.applications.deployment', $this->parameters);
return redirect()->route('project.application.deployment', $this->parameters);
}
public function start()
{

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\Application;
namespace App\Http\Livewire\Project\Application;
use Livewire\Component;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\Application;
namespace App\Http\Livewire\Project\Application;
use Livewire\Component;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\Application;
namespace App\Http\Livewire\Project\Application;
use App\Models\Application;
use Livewire\Component;

View File

@@ -1,11 +1,11 @@
<?php
namespace App\Http\Livewire;
namespace App\Http\Livewire\Project\Application;
use Livewire\Component;
use Spatie\Activitylog\Models\Activity;
class PollDeployment extends Component
class GetDeployments extends Component
{
public string $deployment_uuid;
public string $created_at;

View File

@@ -1,11 +1,11 @@
<?php
namespace App\Http\Livewire;
namespace App\Http\Livewire\Project\Application;
use Livewire\Component;
use Spatie\Activitylog\Models\Activity;
class PollActivity extends Component
class PollDeployment extends Component
{
public $activity;
public $isKeepAliveOn = true;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\Application;
namespace App\Http\Livewire\Project\Application;
use App\Models\Application;
use Livewire\Component;

View File

@@ -1,6 +1,6 @@
<?php
namespace App\Http\Livewire\Application;
namespace App\Http\Livewire\Project\Application;
use Illuminate\Database\Eloquent\Collection;
use Livewire\Component;

View File

@@ -0,0 +1,10 @@
<?php
namespace App\Http\Livewire\Project;
use Livewire\Component;
class NewProject extends Component
{
}