Merge branch 'next' into IARayan-bitbucket-preview-deployment-fix-pullrequest-update
@@ -188,11 +188,22 @@ class PublicGitRepository extends Component
|
|||||||
|
|
||||||
private function getGitSource()
|
private function getGitSource()
|
||||||
{
|
{
|
||||||
|
$this->git_branch = 'main';
|
||||||
|
$this->base_directory = '/';
|
||||||
|
|
||||||
$this->repository_url_parsed = Url::fromString($this->repository_url);
|
$this->repository_url_parsed = Url::fromString($this->repository_url);
|
||||||
$this->git_host = $this->repository_url_parsed->getHost();
|
$this->git_host = $this->repository_url_parsed->getHost();
|
||||||
$this->git_repository = $this->repository_url_parsed->getSegment(1).'/'.$this->repository_url_parsed->getSegment(2);
|
$this->git_repository = $this->repository_url_parsed->getSegment(1).'/'.$this->repository_url_parsed->getSegment(2);
|
||||||
|
|
||||||
if ($this->repository_url_parsed->getSegment(3) === 'tree') {
|
if ($this->repository_url_parsed->getSegment(3) === 'tree') {
|
||||||
$this->git_branch = str($this->repository_url_parsed->getPath())->after('tree/')->value();
|
$path = str($this->repository_url_parsed->getPath())->trim('/');
|
||||||
|
$this->git_branch = str($path)->after('tree/')->before('/')->value();
|
||||||
|
$this->base_directory = str($path)->after($this->git_branch)->after('/')->value();
|
||||||
|
if (filled($this->base_directory)) {
|
||||||
|
$this->base_directory = '/'.$this->base_directory;
|
||||||
|
} else {
|
||||||
|
$this->base_directory = '/';
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->git_branch = 'main';
|
$this->git_branch = 'main';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
$this->configurePasswords();
|
$this->configurePasswords();
|
||||||
$this->configureSanctumModel();
|
$this->configureSanctumModel();
|
||||||
$this->configureGitHubHttp();
|
$this->configureGitHubHttp();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function configureCommands(): void
|
private function configureCommands(): void
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'coolify' => [
|
'coolify' => [
|
||||||
'version' => '4.0.0-beta.390',
|
'version' => '4.0.0-beta.391',
|
||||||
'helper_version' => '1.0.6',
|
'helper_version' => '1.0.6',
|
||||||
'realtime_version' => '1.0.5',
|
'realtime_version' => '1.0.5',
|
||||||
'self_hosted' => env('SELF_HOSTED', true),
|
'self_hosted' => env('SELF_HOSTED', true),
|
||||||
|
|||||||
BIN
public/coolify-logo-dev-transparent.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 7.7 KiB |
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 641 KiB |
|
Before Width: | Height: | Size: 141 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 7.7 KiB |
@@ -21,7 +21,7 @@
|
|||||||
@endphp
|
@endphp
|
||||||
<title>{{ $name }}{{ $title ?? 'Coolify' }}</title>
|
<title>{{ $name }}{{ $title ?? 'Coolify' }}</title>
|
||||||
@env('local')
|
@env('local')
|
||||||
<link rel="icon" href="{{ asset('favicon-dev.png') }}" type="image/x-icon" />
|
<link rel="icon" href="{{ asset('coolify-logo-dev-transparent.png') }}" type="image/x-icon" />
|
||||||
@else
|
@else
|
||||||
<link rel="icon" href="{{ asset('coolify-transparent.png') }}" type="image/x-icon" />
|
<link rel="icon" href="{{ asset('coolify-transparent.png') }}" type="image/x-icon" />
|
||||||
@endenv
|
@endenv
|
||||||
|
|||||||
@@ -103,7 +103,7 @@
|
|||||||
:src='service.logo'
|
:src='service.logo'
|
||||||
x-on:error.window="$event.target.src = service.logo_github_url"
|
x-on:error.window="$event.target.src = service.logo_github_url"
|
||||||
onerror="this.onerror=null; this.src=this.getAttribute('data-fallback');"
|
onerror="this.onerror=null; this.src=this.getAttribute('data-fallback');"
|
||||||
x-on:error="$event.target.src = '/svgs/coolify.png'"
|
x-on:error="$event.target.src = '/svgs/coolify-transparent.png'"
|
||||||
:data-fallback='service.logo_github_url' />
|
:data-fallback='service.logo_github_url' />
|
||||||
</template>
|
</template>
|
||||||
</x-slot:logo>
|
</x-slot:logo>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# documentation: https://github.com/coollabsio/next-image-transformation
|
# documentation: https://github.com/coollabsio/next-image-transformation
|
||||||
# slogan: Drop-in replacement for Vercel's Nextjs image optimization service.
|
# slogan: Drop-in replacement for Vercel's Nextjs image optimization service.
|
||||||
# tags: nextjs,image,transformation,service
|
# tags: nextjs,image,transformation,service
|
||||||
# logo: svgs/coolify.png
|
# logo: svgs/coolify-transparent.png
|
||||||
# port: 3000
|
# port: 3000
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.390"
|
"version": "4.0.0-beta.391"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
"version": "4.0.0-beta.391"
|
"version": "4.0.0-beta.392"
|
||||||
},
|
},
|
||||||
"helper": {
|
"helper": {
|
||||||
"version": "1.0.6"
|
"version": "1.0.6"
|
||||||
|
|||||||