fix typos

This commit is contained in:
Ray Berger 2024-01-07 22:32:54 +00:00
parent 98704fc3c2
commit 5ee29c6072
16 changed files with 40 additions and 40 deletions

View File

@ -142,83 +142,83 @@ private function cleanup_stucked_resources()
try { try {
$applications = Application::withTrashed()->whereNotNull('deleted_at')->get(); $applications = Application::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($applications as $application) { foreach ($applications as $application) {
echo "Deleting stucked application: {$application->name}\n"; echo "Deleting stuck application: {$application->name}\n";
$application->forceDelete(); $application->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stucked application: {$e->getMessage()}\n"; echo "Error in cleaning stuck application: {$e->getMessage()}\n";
} }
try { try {
$postgresqls = StandalonePostgresql::withTrashed()->whereNotNull('deleted_at')->get(); $postgresqls = StandalonePostgresql::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($postgresqls as $postgresql) { foreach ($postgresqls as $postgresql) {
echo "Deleting stucked postgresql: {$postgresql->name}\n"; echo "Deleting stuck postgresql: {$postgresql->name}\n";
$postgresql->forceDelete(); $postgresql->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stucked postgresql: {$e->getMessage()}\n"; echo "Error in cleaning stuck postgresql: {$e->getMessage()}\n";
} }
try { try {
$redis = StandaloneRedis::withTrashed()->whereNotNull('deleted_at')->get(); $redis = StandaloneRedis::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($redis as $redis) { foreach ($redis as $redis) {
echo "Deleting stucked redis: {$redis->name}\n"; echo "Deleting stuck redis: {$redis->name}\n";
$redis->forceDelete(); $redis->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stucked redis: {$e->getMessage()}\n"; echo "Error in cleaning stuck redis: {$e->getMessage()}\n";
} }
try { try {
$mongodbs = StandaloneMongodb::withTrashed()->whereNotNull('deleted_at')->get(); $mongodbs = StandaloneMongodb::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($mongodbs as $mongodb) { foreach ($mongodbs as $mongodb) {
echo "Deleting stucked mongodb: {$mongodb->name}\n"; echo "Deleting stuck mongodb: {$mongodb->name}\n";
$mongodb->forceDelete(); $mongodb->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stucked mongodb: {$e->getMessage()}\n"; echo "Error in cleaning stuck mongodb: {$e->getMessage()}\n";
} }
try { try {
$mysqls = StandaloneMysql::withTrashed()->whereNotNull('deleted_at')->get(); $mysqls = StandaloneMysql::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($mysqls as $mysql) { foreach ($mysqls as $mysql) {
echo "Deleting stucked mysql: {$mysql->name}\n"; echo "Deleting stuck mysql: {$mysql->name}\n";
$mysql->forceDelete(); $mysql->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stucked mysql: {$e->getMessage()}\n"; echo "Error in cleaning stuck mysql: {$e->getMessage()}\n";
} }
try { try {
$mariadbs = StandaloneMariadb::withTrashed()->whereNotNull('deleted_at')->get(); $mariadbs = StandaloneMariadb::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($mariadbs as $mariadb) { foreach ($mariadbs as $mariadb) {
echo "Deleting stucked mariadb: {$mariadb->name}\n"; echo "Deleting stuck mariadb: {$mariadb->name}\n";
$mariadb->forceDelete(); $mariadb->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stucked mariadb: {$e->getMessage()}\n"; echo "Error in cleaning stuck mariadb: {$e->getMessage()}\n";
} }
try { try {
$services = Service::withTrashed()->whereNotNull('deleted_at')->get(); $services = Service::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($services as $service) { foreach ($services as $service) {
echo "Deleting stucked service: {$service->name}\n"; echo "Deleting stuck service: {$service->name}\n";
$service->forceDelete(); $service->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stucked service: {$e->getMessage()}\n"; echo "Error in cleaning stuck service: {$e->getMessage()}\n";
} }
try { try {
$serviceApps = ServiceApplication::withTrashed()->whereNotNull('deleted_at')->get(); $serviceApps = ServiceApplication::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($serviceApps as $serviceApp) { foreach ($serviceApps as $serviceApp) {
echo "Deleting stucked serviceapp: {$serviceApp->name}\n"; echo "Deleting stuck serviceapp: {$serviceApp->name}\n";
$serviceApp->forceDelete(); $serviceApp->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stucked serviceapp: {$e->getMessage()}\n"; echo "Error in cleaning stuck serviceapp: {$e->getMessage()}\n";
} }
try { try {
$serviceDbs = ServiceDatabase::withTrashed()->whereNotNull('deleted_at')->get(); $serviceDbs = ServiceDatabase::withTrashed()->whereNotNull('deleted_at')->get();
foreach ($serviceDbs as $serviceDb) { foreach ($serviceDbs as $serviceDb) {
echo "Deleting stucked serviceapp: {$serviceDb->name}\n"; echo "Deleting stuck serviceapp: {$serviceDb->name}\n";
$serviceDb->forceDelete(); $serviceDb->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
echo "Error in cleaning stucked serviceapp: {$e->getMessage()}\n"; echo "Error in cleaning stuck serviceapp: {$e->getMessage()}\n";
} }
// Cleanup any resources that are not attached to any environment or destination or server // Cleanup any resources that are not attached to any environment or destination or server

View File

@ -201,7 +201,7 @@ public function resetDefaultLabels($showToaster = true)
public function updatedApplicationFqdn() public function updatedApplicationFqdn()
{ {
$this->resetDefaultLabels(false); $this->resetDefaultLabels(false);
$this->dispatch('success', 'Labels reseted to default!'); $this->dispatch('success', 'Labels reset to default!');
} }
public function submit($showToaster = true) public function submit($showToaster = true)
{ {

View File

@ -358,9 +358,9 @@ public function isLogDrainEnabled()
public function validateOS(): bool | Stringable public function validateOS(): bool | Stringable
{ {
$os_release = instant_remote_process(['cat /etc/os-release'], $this); $os_release = instant_remote_process(['cat /etc/os-release'], $this);
$datas = collect(explode("\n", $os_release)); $data = collect(explode("\n", $os_release));
$collectedData = collect([]); $collectedData = collect([]);
foreach ($datas as $data) { foreach ($data as $data) {
$item = Str::of($data)->trim(); $item = Str::of($data)->trim();
$collectedData->put($item->before('=')->value(), $item->after('=')->lower()->replace('"', '')->value()); $collectedData->put($item->before('=')->value(), $item->after('=')->lower()->replace('"', '')->value());
} }

View File

@ -14,8 +14,8 @@ public function send(SendsEmail $notifiable, Notification $notification): void
{ {
try { try {
$this->bootConfigs($notifiable); $this->bootConfigs($notifiable);
$recepients = $notifiable->getRecepients($notification); $recipients = $notifiable->getRecepients($notification);
if (count($recepients) === 0) { if (count($recipients) === 0) {
throw new Exception('No email recipients found'); throw new Exception('No email recipients found');
} }
@ -24,7 +24,7 @@ public function send(SendsEmail $notifiable, Notification $notification): void
[], [],
[], [],
fn (Message $message) => $message fn (Message $message) => $message
->to($recepients) ->to($recipients)
->subject($mailMessage->subject) ->subject($mailMessage->subject)
->html((string)$mailMessage->render()) ->html((string)$mailMessage->render())
); );
@ -35,8 +35,8 @@ public function send(SendsEmail $notifiable, Notification $notification): void
} }
ray($e->getMessage()); ray($e->getMessage());
$message = "EmailChannel error: {$e->getMessage()}. Failed to send email to:"; $message = "EmailChannel error: {$e->getMessage()}. Failed to send email to:";
if (isset($recepients)) { if (isset($recipients)) {
$message .= implode(', ', $recepients); $message .= implode(', ', $recipients);
} }
if (isset($mailMessage)) { if (isset($mailMessage)) {
$message .= " with subject: {$mailMessage->subject}"; $message .= " with subject: {$mailMessage->subject}";

View File

@ -302,7 +302,7 @@ class="grid max-w-sm grid-cols-1 -mt-16 divide-y divide-coolgray-500 isolate gap
</div> </div>
<div class="mt-1 text-base leading-7 text-gray-300"> <div class="mt-1 text-base leading-7 text-gray-300">
Once you connected your server, Coolify will start managing it and do a Once you connected your server, Coolify will start managing it and do a
lot of adminstrative tasks for you. You can also write your own scripts to lot of administrative tasks for you. You can also write your own scripts to
automate your server<span class="text-warning">*</span>. automate your server<span class="text-warning">*</span>.
</div> </div>
</div> </div>
@ -384,7 +384,7 @@ class="grid max-w-sm grid-cols-1 -mt-16 divide-y divide-coolgray-500 isolate gap
<div class="text-2xl font-semibold text-white">Powerful API</div> <div class="text-2xl font-semibold text-white">Powerful API</div>
</div> </div>
<div class="mt-1 text-base leading-7 text-gray-300"> <div class="mt-1 text-base leading-7 text-gray-300">
Programatically deploy, query, and manage your servers & resources. Programmatically deploy, query, and manage your servers & resources.
Integrate to your CI/CD pipelines, or build your own custom integrations. <span Integrate to your CI/CD pipelines, or build your own custom integrations. <span
class="text-warning">*</span> class="text-warning">*</span>
</div> </div>

View File

@ -1,7 +1,7 @@
<nav class="flex pt-2 pb-10"> <nav class="flex pt-2 pb-10">
<ol class="flex items-center"> <ol class="flex items-center">
<li class="inline-flex items-center"> <li class="inline-flex items-center">
<a wire:nagivate class="text-xs truncate lg:text-sm" <a wire:navigate class="text-xs truncate lg:text-sm"
href="{{ route('project.show', ['project_uuid' => $this->parameters['project_uuid']]) }}"> href="{{ route('project.show', ['project_uuid' => $this->parameters['project_uuid']]) }}">
{{ data_get($resource, 'environment.project.name', 'Undefined Name') }}</a> {{ data_get($resource, 'environment.project.name', 'Undefined Name') }}</a>
</li> </li>

View File

@ -1,5 +1,5 @@
<x-emails.layout> <x-emails.layout>
Connection could not be establised with one of your S3 Storage ({{ $name }}). Please fix it Connection could not be established with one of your S3 Storage ({{ $name }}). Please fix it
[here]({{ $url }}). [here]({{ $url }}).
{{ $reason }} {{ $reason }}

View File

@ -1,7 +1,7 @@
<div> <div>
<dialog id="sendTestEmail" class="modal"> <dialog id="sendTestEmail" class="modal">
<form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'> <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
<x-forms.input placeholder="test@example.com" id="emails" label="Recepients" required /> <x-forms.input placeholder="test@example.com" id="emails" label="Recipients" required />
<x-forms.button onclick="sendTestEmail.close()" wire:click="sendTestNotification"> <x-forms.button onclick="sendTestEmail.close()" wire:click="sendTestNotification">
Send Email Send Email
</x-forms.button> </x-forms.button>

View File

@ -7,7 +7,7 @@
</x-forms.button> </x-forms.button>
</div> </div>
@isset($rate_limit_remaining) @isset($rate_limit_remaining)
<div class="pt-1 ">Requests remaning till rate limited by Git: {{ $rate_limit_remaining }}</div> <div class="pt-1 ">Requests remaining till rate limited by Git: {{ $rate_limit_remaining }}</div>
@endisset @endisset
@if (count($pull_requests) > 0) @if (count($pull_requests) > 0)
<div wire:loading.remove wire:target='load_prs'> <div wire:loading.remove wire:target='load_prs'>

View File

@ -10,8 +10,8 @@
helper=" helper="
You can use these variables in your Docker Compose file and Coolify will generate default values or replace them with the values you set on the UI forms.<br> You can use these variables in your Docker Compose file and Coolify will generate default values or replace them with the values you set on the UI forms.<br>
<br> <br>
- SERVICE_FQDN_*: FQDN - could be changable from the UI. (example: SERVICE_FQDN_GHOST)<br> - SERVICE_FQDN_*: FQDN - could be changeable from the UI. (example: SERVICE_FQDN_GHOST)<br>
- SERVICE_URL_*: URL parsed from FQDN - could be changable from the UI. (example: SERVICE_URL_GHOST)<br> - SERVICE_URL_*: URL parsed from FQDN - could be changeable from the UI. (example: SERVICE_URL_GHOST)<br>
- SERVICE_BASE64_64_*: Generated 'base64' string with length of '64' (example: SERVICE_BASE64_64_GHOST, to generate 32 bit: SERVICE_BASE64_32_GHOST)<br> - SERVICE_BASE64_64_*: Generated 'base64' string with length of '64' (example: SERVICE_BASE64_64_GHOST, to generate 32 bit: SERVICE_BASE64_32_GHOST)<br>
- SERVICE_USER_*: Generated user (example: SERVICE_USER_MYSQL)<br> - SERVICE_USER_*: Generated user (example: SERVICE_USER_MYSQL)<br>
- SERVICE_PASSWORD_*: Generated password (example: SERVICE_PASSWORD_MYSQL)<br>" - SERVICE_PASSWORD_*: Generated password (example: SERVICE_PASSWORD_MYSQL)<br>"

View File

@ -7,7 +7,7 @@
server <span class="px-1 text-warning">{{ data_get($resource, 'destination.server.name') }}</span> server <span class="px-1 text-warning">{{ data_get($resource, 'destination.server.name') }}</span>
in <span class="px-1 text-warning"> {{ data_get($resource, 'destination.network') }} </span> network.</a> in <span class="px-1 text-warning"> {{ data_get($resource, 'destination.network') }} </span> network.</a>
</div> </div>
{{-- Additonal Destinations: {{-- Additional Destinations:
{{$resource->additional_destinations}} --}} {{$resource->additional_destinations}} --}}
{{-- @if (count($servers) > 0) {{-- @if (count($servers) > 0)
<div> <div>

View File

@ -1,7 +1,7 @@
<div> <div>
<dialog id="sendTestEmail" class="modal"> <dialog id="sendTestEmail" class="modal">
<form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'> <form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
<x-forms.input placeholder="test@example.com" id="emails" label="Recepients" required /> <x-forms.input placeholder="test@example.com" id="emails" label="Recipients" required />
<x-forms.button onclick="sendTestEmail.close()" wire:click="sendTestNotification"> <x-forms.button onclick="sendTestEmail.close()" wire:click="sendTestNotification">
Send Email Send Email
</x-forms.button> </x-forms.button>

View File

@ -28,7 +28,7 @@ ubuntu | debian | raspbian | centos | fedora | rhel | ol | rocky | sles | opensu
;; ;;
esac esac
# Ovewrite LATEST_VERSION if user pass a version number # Overwrite LATEST_VERSION if user pass a version number
if [ "$1" != "" ]; then if [ "$1" != "" ]; then
LATEST_VERSION=$1 LATEST_VERSION=$1
LATEST_VERSION="${LATEST_VERSION,,}" LATEST_VERSION="${LATEST_VERSION,,}"

View File

@ -565,7 +565,7 @@ services:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
- appwrite-builds:/storage/builds:rw - appwrite-builds:/storage/builds:rw
- appwrite-functions:/storage/functions:rw - appwrite-functions:/storage/functions:rw
# Host mount nessessary to share files between executor and runtimes. # Host mount necessary to share files between executor and runtimes.
# It's not possible to share mount file between 2 containers without host mount (copying is too slow) # It's not possible to share mount file between 2 containers without host mount (copying is too slow)
- /tmp:/tmp:rw - /tmp:/tmp:rw
environment: environment:

View File

@ -1,5 +1,5 @@
# documentation: https://github.com/mregni/EmbyStat/wiki/docker # documentation: https://github.com/mregni/EmbyStat/wiki/docker
# slogan: EmyStat is an open-source, self-hosted web analytics tool, designed to provide insight into website traffic and user behavior, of your local Emby deployement, all within your control. # slogan: EmyStat is an open-source, self-hosted web analytics tool, designed to provide insight into website traffic and user behavior, of your local Emby deployment, all within your control.
# tags: media, server, movies, tv, music # tags: media, server, movies, tv, music
services: services:

View File

@ -121,7 +121,7 @@
}, },
"embystat": { "embystat": {
"documentation": "https:\/\/github.com\/mregni\/EmbyStat\/wiki\/docker", "documentation": "https:\/\/github.com\/mregni\/EmbyStat\/wiki\/docker",
"slogan": "EmyStat is an open-source, self-hosted web analytics tool, designed to provide insight into website traffic and user behavior, of your local Emby deployement, all within your control.", "slogan": "EmyStat is an open-source, self-hosted web analytics tool, designed to provide insight into website traffic and user behavior, of your local Emby deployment, all within your control.",
"compose": "c2VydmljZXM6CiAgZW1ieXN0YXQ6CiAgICBpbWFnZTogJ2xzY3IuaW8vbGludXhzZXJ2ZXIvZW1ieXN0YXQ6bGF0ZXN0JwogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gU0VSVklDRV9GUUROX0VNQllTVEFUCiAgICAgIC0gUFVJRD0xMDAwCiAgICAgIC0gUEdJRD0xMDAwCiAgICAgIC0gVFo9RXVyb3BlL01hZHJpZAogICAgdm9sdW1lczoKICAgICAgLSAnZW1ieXN0YXQtY29uZmlnOi9jb25maWcnCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRAogICAgICAgIC0gY3VybAogICAgICAgIC0gJy1mJwogICAgICAgIC0gJ2h0dHA6Ly9sb2NhbGhvc3Q6NjU1NScKICAgICAgaW50ZXJ2YWw6IDJzCiAgICAgIHRpbWVvdXQ6IDEwcwogICAgICByZXRyaWVzOiAxNQo=", "compose": "c2VydmljZXM6CiAgZW1ieXN0YXQ6CiAgICBpbWFnZTogJ2xzY3IuaW8vbGludXhzZXJ2ZXIvZW1ieXN0YXQ6bGF0ZXN0JwogICAgZW52aXJvbm1lbnQ6CiAgICAgIC0gU0VSVklDRV9GUUROX0VNQllTVEFUCiAgICAgIC0gUFVJRD0xMDAwCiAgICAgIC0gUEdJRD0xMDAwCiAgICAgIC0gVFo9RXVyb3BlL01hZHJpZAogICAgdm9sdW1lczoKICAgICAgLSAnZW1ieXN0YXQtY29uZmlnOi9jb25maWcnCiAgICBoZWFsdGhjaGVjazoKICAgICAgdGVzdDoKICAgICAgICAtIENNRAogICAgICAgIC0gY3VybAogICAgICAgIC0gJy1mJwogICAgICAgIC0gJ2h0dHA6Ly9sb2NhbGhvc3Q6NjU1NScKICAgICAgaW50ZXJ2YWw6IDJzCiAgICAgIHRpbWVvdXQ6IDEwcwogICAgICByZXRyaWVzOiAxNQo=",
"tags": [ "tags": [
"media", "media",