#591 - sites [wip]

This commit is contained in:
Saeed Vaziry
2025-05-25 22:17:19 +02:00
parent ff11fb44e0
commit f5fdbae4ac
77 changed files with 2156 additions and 414 deletions

View File

@ -17,6 +17,7 @@ public function toArray(Request $request): array
return [
'id' => $this->id,
'backup_id' => $this->backup_id,
'backup' => new BackupResource($this->whenLoaded('backup')),
'server_id' => $this->backup->server_id,
'name' => $this->name,
'size' => $this->size,

View File

@ -17,6 +17,7 @@ public function toArray(Request $request): array
return [
'id' => $this->id,
'server_id' => $this->server_id,
'server' => new ServerResource($this->whenLoaded('server')),
'source_control_id' => $this->source_control_id,
'type' => $this->type,
'type_data' => $this->type_data,
@ -28,8 +29,10 @@ public function toArray(Request $request): array
'repository' => $this->repository,
'branch' => $this->branch,
'status' => $this->status,
'status_color' => Site::$statusColors[$this->status] ?? 'default',
'port' => $this->port,
'user' => $this->user,
'url' => $this->getUrl(),
'progress' => $this->progress,
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,