From 692047e4c81d2072e2b88d407d5f801e66934df3 Mon Sep 17 00:00:00 2001 From: Ibrahim H Date: Thu, 2 May 2024 19:11:46 +0100 Subject: [PATCH 01/29] fixt: env file --- .gitpod.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 228f1b94c..6fd6797b5 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,7 +3,7 @@ tasks: # Fix because of https://github.com/gitpod-io/gitpod/issues/16614 before: sudo curl -o /usr/local/bin/docker-compose -fsSL https://github.com/docker/compose/releases/download/v2.16.0/docker-compose-linux-$(uname -m) init: | - cp .env.example .env && + cp .env.development.example .env && sed -i "s#APP_URL=http://localhost#APP_URL=$(gp url 8000)#g" .env sed -i "s#USERID=#USERID=33333#g" .env sed -i "s#GROUPID=#GROUPID=33333#g" .env @@ -20,7 +20,7 @@ tasks: echo "Waiting for Sail environment to boot up." gp sync-await spin-is-ready ./vendor/bin/spin exec vite npm install - ./vendor/bin/spin exec vite npm run dev + ./vendor/bin/spin exec vite npm run dev -- --host - name: Laravel Queue Worker, listening to code changes command: | From c901ace21ae4fad0b6e70b8206ac40fe6ff232f0 Mon Sep 17 00:00:00 2001 From: Luciano Laratelli Date: Fri, 3 May 2024 09:31:05 -0400 Subject: [PATCH 02/29] don't append '.git' for sr.ht repositories --- app/Livewire/Project/New/PublicGitRepository.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Livewire/Project/New/PublicGitRepository.php b/app/Livewire/Project/New/PublicGitRepository.php index c6c699acf..b71a0b670 100644 --- a/app/Livewire/Project/New/PublicGitRepository.php +++ b/app/Livewire/Project/New/PublicGitRepository.php @@ -98,7 +98,8 @@ class PublicGitRepository extends Component (str($this->repository_url)->startsWith('https://') || str($this->repository_url)->startsWith('http://')) && !str($this->repository_url)->endsWith('.git') && - !str($this->repository_url)->contains('github.com') + (!str($this->repository_url)->contains('github.com') || + !str($this->repository_url)->contains('git.sr.ht')) ) { $this->repository_url = $this->repository_url . '.git'; } From d71682a3f7bad7af4811213f8448ec752d9d7ab0 Mon Sep 17 00:00:00 2001 From: Chiko <53100578+chikof@users.noreply.github.com> Date: Fri, 3 May 2024 15:06:06 +0100 Subject: [PATCH 03/29] Change of wording --- resources/views/livewire/settings/configuration.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/livewire/settings/configuration.blade.php b/resources/views/livewire/settings/configuration.blade.php index a7292f624..dbcf79552 100644 --- a/resources/views/livewire/settings/configuration.blade.php +++ b/resources/views/livewire/settings/configuration.blade.php @@ -38,7 +38,7 @@ id="next_channel" label="Enable pre-release (early) updates" /> @else @endif From a86d13632e484deb5fa1003ccd10248655a62b37 Mon Sep 17 00:00:00 2001 From: Francesco Bruno <59353843+FrancescoBrunoDev@users.noreply.github.com> Date: Fri, 3 May 2024 14:49:41 +0000 Subject: [PATCH 04/29] Format foar a correct tailwind positioning of classes and eliminated usless spaces. --- resources/css/app.css | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 1f218490d..d6fcf2cb6 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -32,7 +32,7 @@ body { @apply block w-full py-1.5 rounded border-0 text-sm ring-1 ring-inset; } -.input[type='password'] { +.input[type="password"] { @apply pr-10; } @@ -52,7 +52,6 @@ button[isHighlighted]:not(:disabled) { @apply text-white bg-coollabs hover:bg-coollabs-100; } - h1 { @apply text-2xl font-bold dark:text-white; } @@ -78,7 +77,7 @@ label { } table { - @apply min-w-full divide-y dark:divide-coolgray-200 divide-neutral-300 ; + @apply min-w-full divide-y dark:divide-coolgray-200 divide-neutral-300; } thead { @@ -117,7 +116,7 @@ tr td:first-child { @apply flex items-center gap-2 text-error; } .tag { - @apply px-2 py-1 cursor-pointer box-description dark:bg-coolgray-100 dark:hover:bg-coolgray-300 bg-neutral-100 hover:bg-neutral-200 + @apply px-2 py-1 cursor-pointer box-description dark:bg-coolgray-100 dark:hover:bg-coolgray-300 bg-neutral-100 hover:bg-neutral-200; } .add-tag { @apply flex items-center px-2 text-xs cursor-pointer dark:text-neutral-500/20 text-neutral-500 group-hover:text-neutral-700 group-hover:dark:text-white dark:hover:bg-coolgray-300 hover:bg-neutral-200; @@ -135,7 +134,6 @@ tr td:first-child { .badge-absolute { @apply absolute top-0 right-0 w-2 h-2 border-none rounded-t-none rounded-r-none; - } .badge-success { @@ -174,7 +172,6 @@ tr td:first-child { @apply w-6 h-6 dark:hover:text-white; } - .scrollbar { @apply scrollbar-thumb-coollabs-100 dark:scrollbar-track-coolgray-200 scrollbar-track-neutral-200 scrollbar-w-2; } @@ -203,20 +200,19 @@ tr td:first-child { @apply relative flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 bg-white border text-black dark:text-white hover:text-black border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:no-underline; } .box-boarding { - @apply flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 dark:text-white bg-neutral-50 border border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:text-black hover:no-underline text-black ; + @apply flex lg:flex-row flex-col p-2 transition-colors cursor-pointer min-h-[4rem] dark:bg-coolgray-100 dark:text-white bg-neutral-50 border border-neutral-200 dark:border-black hover:bg-neutral-100 dark:hover:bg-coollabs-100 dark:hover:text-white hover:text-black hover:no-underline text-black; } .box-without-bg { @apply flex p-2 transition-colors dark:hover:text-white hover:no-underline min-h-[4rem] border border-neutral-200 dark:border-black; } .box-without-bg-without-border { - @apply flex p-2 transition-colors dark:hover:text-white hover:no-underline min-h-[4rem] ; + @apply flex p-2 transition-colors dark:hover:text-white hover:no-underline min-h-[4rem]; } .on-box { @apply rounded hover:bg-neutral-300 dark:hover:bg-coolgray-500/20; } - .box-title { @apply font-bold text-black dark:text-white group-hover:dark:text-white; } From 0cddce7a3720d7bd0bc0ffb0ba0aadb86e1c3ec7 Mon Sep 17 00:00:00 2001 From: Francesco Bruno <59353843+FrancescoBrunoDev@users.noreply.github.com> Date: Fri, 3 May 2024 14:51:08 +0000 Subject: [PATCH 05/29] Changed the navbar-main class to utilize overflow-x-scroll, preventing the page from overflowing entirely. --- resources/css/app.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/css/app.css b/resources/css/app.css index d6fcf2cb6..377af4e88 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -185,7 +185,7 @@ tr td:first-child { } .navbar-main { - @apply flex items-center h-10 gap-6 pb-2 border-b-2 border-solid dark:border-coolgray-200; + @apply flex items-center h-fit gap-6 pb-2 border-b-2 border-solid dark:border-coolgray-200 overflow-x-scroll min-h-10; } .loading { From be4386658a7f1dd072a6b4dbf237865a71fac206 Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Sat, 4 May 2024 01:23:31 +0900 Subject: [PATCH 06/29] fix: typo in tags.blade.php seperated -> separated --- resources/views/livewire/project/shared/tags.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/livewire/project/shared/tags.blade.php b/resources/views/livewire/project/shared/tags.blade.php index 2d4240dfa..0de2540fd 100644 --- a/resources/views/livewire/project/shared/tags.blade.php +++ b/resources/views/livewire/project/shared/tags.blade.php @@ -21,7 +21,7 @@
Add From efa5091b9826216df0459346e9deccb82ee9de01 Mon Sep 17 00:00:00 2001 From: "sipc.ink" Date: Sun, 5 May 2024 21:07:49 +0800 Subject: [PATCH 07/29] Create zh-cn.json --- lang/zh-cn.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lang/zh-cn.json diff --git a/lang/zh-cn.json b/lang/zh-cn.json new file mode 100644 index 000000000..70c457fa8 --- /dev/null +++ b/lang/zh-cn.json @@ -0,0 +1,30 @@ +{ + "auth.login": "登录", + "auth.login.azure": "使用 Microsoft 登录", + "auth.login.bitbucket": "使用 Bitbucket 登录", + "auth.login.github": "使用 GitHub 登录", + "auth.login.gitlab": "使用 Gitlab 登录", + "auth.login.google": "使用 Google 登录", + "auth.already_registered": "已经注册?", + "auth.confirm_password": "确认密码", + "auth.forgot_password": "忘记密码", + "auth.forgot_password_send_email": "发送密码重置邮件", + "auth.register_now": "注册", + "auth.logout": "退出登录", + "auth.register": "注册", + "auth.registration_disabled": "注册已禁用,请联系管理员", + "auth.reset_password": "重置密码", + "auth.failed": "这些凭据与我们的记录不符", + "auth.failed.callback": "处理第三方登录的回调时出错", + "auth.failed.password": "密码错误", + "auth.failed.email": "该账户未注册", + "auth.throttle": "登录次数过多,请在 :seconds 秒后重试", + "input.name": "用户名", + "input.email": "邮箱", + "input.password": "密码", + "input.password.again": "确认密码", + "input.code": "验证码", + "input.recovery_code": "恢复码", + "button.save": "保存", + "repository.url": "示例
对于公共代码仓库,请使用 https://...
对于私有代码仓库,请使用 git@...

https://github.com/coollabsio/coolify-examples main 分支将被选择
https://github.com/coollabsio/coolify-examples/tree/nodejs-fastify nodejs-fastify 分支将被选择。
https://gitea.com/sedlav/expressjs.git main 分支将被选择。
https://gitlab.com/andrasbacsai/nodejs-example.git main 分支将被选择" +} From 1a5fec39c07d0d0e24fa98f619a862a2e7be5193 Mon Sep 17 00:00:00 2001 From: "sipc.ink" Date: Sun, 5 May 2024 21:11:44 +0800 Subject: [PATCH 08/29] fix: install.sh error --- scripts/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index f377c85bc..588afc243 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -73,6 +73,9 @@ centos | fedora | rhel | ol | rocky | almalinux | amzn) if [ "$OS_TYPE" = "amzn" ]; then dnf install -y wget git jq >/dev/null 2>&1 else + if ! command -v dnf >/dev/null 2>&1; then + yum install -y dnf >/dev/null 2>&1 + fi dnf install -y curl wget git jq >/dev/null 2>&1 fi ;; From 6102e441d6a1f23fef6fa2fbfee6549802fedffb Mon Sep 17 00:00:00 2001 From: Francesco Bruno <59353843+FrancescoBrunoDev@users.noreply.github.com> Date: Sun, 5 May 2024 15:23:25 +0000 Subject: [PATCH 09/29] In small screen the submenu is moved up, under the navbar-main --- resources/css/app.css | 2 +- .../livewire/project/application/configuration.blade.php | 6 +++--- .../views/livewire/project/database/configuration.blade.php | 6 +++--- .../views/livewire/project/service/configuration.blade.php | 4 ++-- resources/views/livewire/project/service/index.blade.php | 6 +++--- resources/views/livewire/server/resources.blade.php | 6 +++--- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index 377af4e88..aaa717700 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -157,7 +157,7 @@ tr td:first-child { } .menu-item { - @apply flex items-center w-full gap-3 py-1 pl-2 dark:hover:bg-coolgray-100 dark:hover:text-white hover:bg-neutral-300; + @apply flex items-center w-full gap-3 py-1 px-2 sm:pr-0 dark:hover:bg-coolgray-100 dark:hover:text-white hover:bg-neutral-300; } .menu-item-active { diff --git a/resources/views/livewire/project/application/configuration.blade.php b/resources/views/livewire/project/application/configuration.blade.php index 4aaf96569..c93080183 100644 --- a/resources/views/livewire/project/application/configuration.blade.php +++ b/resources/views/livewire/project/application/configuration.blade.php @@ -2,8 +2,8 @@

Configuration

-
-
+
+
General @if ($application->destination->server->isSwarm()) @@ -78,7 +78,7 @@ @click.prevent="activeTab = 'danger'; window.location.hash = 'danger'" href="#">Danger Zone
-
+
diff --git a/resources/views/livewire/project/database/configuration.blade.php b/resources/views/livewire/project/database/configuration.blade.php index 1a69781da..dd3e05349 100644 --- a/resources/views/livewire/project/database/configuration.blade.php +++ b/resources/views/livewire/project/database/configuration.blade.php @@ -2,8 +2,8 @@

Configuration

-
-
+
+ -
+
@if ($database->type() === 'standalone-postgresql') diff --git a/resources/views/livewire/project/service/configuration.blade.php b/resources/views/livewire/project/service/configuration.blade.php index 3c0e113e4..94bcfaa15 100644 --- a/resources/views/livewire/project/service/configuration.blade.php +++ b/resources/views/livewire/project/service/configuration.blade.php @@ -1,6 +1,6 @@
-
+
-
+

Services

diff --git a/resources/views/livewire/project/service/index.blade.php b/resources/views/livewire/project/service/index.blade.php index 563625305..098a751bb 100644 --- a/resources/views/livewire/project/service/index.blade.php +++ b/resources/views/livewire/project/service/index.blade.php @@ -1,7 +1,7 @@
-
-
+
+ -
+
@isset($serviceApplication)
diff --git a/resources/views/livewire/server/resources.blade.php b/resources/views/livewire/server/resources.blade.php index 8c888b131..a5ff69ea1 100644 --- a/resources/views/livewire/server/resources.blade.php +++ b/resources/views/livewire/server/resources.blade.php @@ -1,13 +1,13 @@
-
-
+
+ -
+
From d52aac76c08015a397725757d44ce50899a6d5e3 Mon Sep 17 00:00:00 2001 From: Francesco Bruno <59353843+FrancescoBrunoDev@users.noreply.github.com> Date: Sun, 5 May 2024 15:55:58 +0000 Subject: [PATCH 10/29] Changed the breadcrumbs for let it using flex-wrap --- .../resources/breadcrumbs.blade.php | 37 +++++++++---------- .../project/environment-edit.blade.php | 20 +++++++--- .../livewire/project/resource/index.blade.php | 3 +- 3 files changed, 34 insertions(+), 26 deletions(-) diff --git a/resources/views/components/resources/breadcrumbs.blade.php b/resources/views/components/resources/breadcrumbs.blade.php index 5b0956c93..1e5aaa997 100644 --- a/resources/views/components/resources/breadcrumbs.blade.php +++ b/resources/views/components/resources/breadcrumbs.blade.php @@ -1,35 +1,34 @@
-
+
From 91dbf1f01a5721d46f17738da9da955293cd658b Mon Sep 17 00:00:00 2001 From: Francesco Bruno <59353843+FrancescoBrunoDev@users.noreply.github.com> Date: Sun, 5 May 2024 16:33:52 +0000 Subject: [PATCH 11/29] navbar changed in order top move as first element the button for start/redeploy --- resources/css/app.css | 4 +- .../components/notification/navbar.blade.php | 30 +++-- .../components/security/navbar.blade.php | 18 +-- .../views/components/server/navbar.blade.php | 70 +++++----- .../components/settings/navbar.blade.php | 26 ++-- .../views/components/team/navbar.blade.php | 22 ++-- .../project/application/general.blade.php | 2 +- .../project/application/heading.blade.php | 34 ++--- .../project/database/heading.blade.php | 121 +++++++++--------- .../livewire/project/service/navbar.blade.php | 15 ++- 10 files changed, 179 insertions(+), 163 deletions(-) diff --git a/resources/css/app.css b/resources/css/app.css index aaa717700..fd3e1d174 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -157,7 +157,7 @@ tr td:first-child { } .menu-item { - @apply flex items-center w-full gap-3 py-1 px-2 sm:pr-0 dark:hover:bg-coolgray-100 dark:hover:text-white hover:bg-neutral-300; + @apply flex items-center text-sm w-full gap-3 py-1 px-2 sm:pr-0 dark:hover:bg-coolgray-100 dark:hover:text-white hover:bg-neutral-300; } .menu-item-active { @@ -185,7 +185,7 @@ tr td:first-child { } .navbar-main { - @apply flex items-center h-fit gap-6 pb-2 border-b-2 border-solid dark:border-coolgray-200 overflow-x-scroll min-h-10; + @apply flex h-fit flex-col sm:flex-row justify-items-start sm:justify-between gap-4 pb-2 border-b-2 border-solid dark:border-coolgray-200 sm:items-center; } .loading { diff --git a/resources/views/components/notification/navbar.blade.php b/resources/views/components/notification/navbar.blade.php index 24b4fecfd..50e8ae89d 100644 --- a/resources/views/components/notification/navbar.blade.php +++ b/resources/views/components/notification/navbar.blade.php @@ -1,18 +1,20 @@

Notifications

Get notified about your infrastructure.
- +
diff --git a/resources/views/components/security/navbar.blade.php b/resources/views/components/security/navbar.blade.php index 5ad4afb3c..e3add9776 100644 --- a/resources/views/components/security/navbar.blade.php +++ b/resources/views/components/security/navbar.blade.php @@ -1,12 +1,14 @@

Security

Security related settings.
- +
diff --git a/resources/views/components/server/navbar.blade.php b/resources/views/components/server/navbar.blade.php index 2130d0031..6d23af891 100644 --- a/resources/views/components/server/navbar.blade.php +++ b/resources/views/components/server/navbar.blade.php @@ -5,47 +5,49 @@
{{ data_get($server, 'name') }}.
- +
+ +
+
diff --git a/resources/views/components/settings/navbar.blade.php b/resources/views/components/settings/navbar.blade.php index fc431d220..fff8cc4b8 100644 --- a/resources/views/components/settings/navbar.blade.php +++ b/resources/views/components/settings/navbar.blade.php @@ -1,17 +1,19 @@

Settings

Instance wide settings for Coolify.
- +
diff --git a/resources/views/components/team/navbar.blade.php b/resources/views/components/team/navbar.blade.php index 2c38d9695..d5fe82f95 100644 --- a/resources/views/components/team/navbar.blade.php +++ b/resources/views/components/team/navbar.blade.php @@ -6,14 +6,16 @@
Team wide configurations.
- +
diff --git a/resources/views/livewire/project/application/general.blade.php b/resources/views/livewire/project/application/general.blade.php index c6aa05813..1f112288a 100644 --- a/resources/views/livewire/project/application/general.blade.php +++ b/resources/views/livewire/project/application/general.blade.php @@ -116,7 +116,7 @@ @if ($application->build_pack !== 'dockerimage')

Build

@if ($application->build_pack !== 'dockercompose') -
+
+
@script - @endscript + Start + + @endif + @script + + @endscript +
diff --git a/resources/views/livewire/project/service/navbar.blade.php b/resources/views/livewire/project/service/navbar.blade.php index 817efd2d7..1821396fd 100644 --- a/resources/views/livewire/project/service/navbar.blade.php +++ b/resources/views/livewire/project/service/navbar.blade.php @@ -9,13 +9,14 @@

Configuration