88 <button class =" menu-item" @click =" modalOpen=true" x-show =" showProgress" >
99 <svg xmlns =" http://www.w3.org/2000/svg"
1010 class =" w-6 h-6 text-pink-500 transition-colors hover:text-pink-300 lds-heart" viewBox =" 0 0 24 24"
11- stroke-width =" 1.5" stroke =" currentColor" fill =" none" stroke-linecap =" round"
12- stroke-linejoin =" round" >
11+ stroke-width =" 1.5" stroke =" currentColor" fill =" none" stroke-linecap =" round" stroke-linejoin =" round" >
1312 <path stroke =" none" d =" M0 0h24v24H0z" fill =" none" />
1413 <path d =" M19.5 13.572l-7.5 7.428l-7.5 -7.428m0 0a5 5 0 1 1 7.5 -6.566a5 5 0 1 1 7.5 6.572" />
1514 </svg >
1615 In progress
1716 </button >
1817 <button class =" menu-item cursor-pointer" @click =" modalOpen=true" x-show =" !showProgress" >
19- <svg xmlns =" http://www.w3.org/2000/svg"
20- class =" w-6 h-6 text-pink-500 transition-colors hover:text-pink-300" viewBox =" 0 0 24 24"
21- stroke-width =" 1.5" stroke =" currentColor" fill =" none" stroke-linecap =" round"
18+ <svg xmlns =" http://www.w3.org/2000/svg" class =" w-6 h-6 text-pink-500 transition-colors hover:text-pink-300"
19+ viewBox =" 0 0 24 24" stroke-width =" 1.5" stroke =" currentColor" fill =" none" stroke-linecap =" round"
2220 stroke-linejoin =" round" >
2321 <path stroke =" none" d =" M0 0h24v24H0z" fill =" none" />
2422 <path
@@ -31,10 +29,9 @@ class="w-6 h-6 text-pink-500 transition-colors hover:text-pink-300" viewBox="0 0
3129 <template x-teleport =" body" >
3230 <div x-show =" modalOpen"
3331 class =" fixed top-0 lg:pt-10 left-0 z-99 flex items-start justify-center w-screen h-screen" x-cloak >
34- <div x-show =" modalOpen" x-transition:enter =" ease-out duration-100"
35- x-transition:enter-start =" opacity-0" x-transition:enter-end =" opacity-100"
36- x-transition:leave =" ease-in duration-100" x-transition:leave-start =" opacity-100"
37- x-transition:leave-end =" opacity-0"
32+ <div x-show =" modalOpen" x-transition:enter =" ease-out duration-100" x-transition:enter-start =" opacity-0"
33+ x-transition:enter-end =" opacity-100" x-transition:leave =" ease-in duration-100"
34+ x-transition:leave-start =" opacity-100" x-transition:leave-end =" opacity-0"
3835 class =" absolute inset-0 w-full h-full bg-black/20 backdrop-blur-xs" ></div >
3936 <div x-show =" modalOpen" x-trap.inert.noscroll =" modalOpen" x-transition:enter =" ease-out duration-100"
4037 x-transition:enter-start =" opacity-0 -translate-y-2 sm:scale-95"
@@ -47,15 +44,17 @@ class="relative w-full py-6 border rounded-sm min-w-full lg:min-w-[36rem] max-w-
4744 {{-- Header --}}
4845 <div class =" flex items-center justify-between pb-3" >
4946 <div >
50- <h3 class =" text-lg font-semibold" x-text =" upgradeComplete ? 'Upgrade Complete!' : (showProgress ? 'Upgrading...' : 'Upgrade Available')" ></h3 >
47+ <h3 class =" text-lg font-semibold"
48+ x-text =" upgradeComplete ? 'Upgrade Complete!' : (showProgress ? 'Upgrading...' : 'Upgrade Available')" >
49+ </h3 >
5150 <div class =" text-sm text-neutral-500 dark:text-neutral-400" >
5251 {{ $currentVersion } } <span class =" mx-1" >&rarr ; </span > {{ $latestVersion } }
5352 </div >
5453 </div >
5554 <button x-show =" !showProgress" @click =" modalOpen=false"
5655 class =" absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5 text-gray-600 rounded-full hover:text-gray-800 hover:bg-gray-50 dark:text-neutral-400 dark:hover:text-white dark:hover:bg-coolgray-300" >
57- <svg class =" w-5 h-5" xmlns =" http://www.w3.org/2000/svg" fill =" none"
58- viewBox = " 0 0 24 24 " stroke-width =" 1.5" stroke =" currentColor" >
56+ <svg class =" w-5 h-5" xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox = " 0 0 24 24 "
57+ stroke-width =" 1.5" stroke =" currentColor" >
5958 <path stroke-linecap =" round" stroke-linejoin =" round" d =" M6 18L18 6M6 6l12 12" />
6059 </svg >
6160 </button >
@@ -81,14 +80,21 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
8180 <div class =" p-4 rounded-lg bg-neutral-200 dark:bg-coolgray-200" >
8281 <div class =" flex items-center gap-3" >
8382 <template x-if =" !upgradeComplete" >
84- <svg class =" w-5 h-5 text-warning animate-spin" xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" >
85- <circle class =" opacity-25" cx =" 12" cy =" 12" r =" 10" stroke =" currentColor" stroke-width =" 4" ></circle >
86- <path class =" opacity-75" fill =" currentColor" d =" M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" ></path >
83+ <svg class =" w-5 h-5 text-warning animate-spin"
84+ xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" >
85+ <circle class =" opacity-25" cx =" 12" cy =" 12" r =" 10" stroke =" currentColor"
86+ stroke-width =" 4" ></circle >
87+ <path class =" opacity-75" fill =" currentColor"
88+ d =" M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" >
89+ </path >
8790 </svg >
8891 </template >
8992 <template x-if =" upgradeComplete" >
90- <svg class =" w-5 h-5 text-success" xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 20 20" fill =" currentColor" >
91- <path fill-rule =" evenodd" d =" M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule =" evenodd" />
93+ <svg class =" w-5 h-5 text-success" xmlns =" http://www.w3.org/2000/svg"
94+ viewBox =" 0 0 20 20" fill =" currentColor" >
95+ <path fill-rule =" evenodd"
96+ d =" M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
97+ clip-rule =" evenodd" />
9298 </svg >
9399 </template >
94100 <span x-text =" currentStatus" class =" text-sm" ></span >
@@ -99,7 +105,8 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
99105 <template x-if =" upgradeComplete" >
100106 <div class =" flex flex-col items-center gap-4" >
101107 <p class =" text-sm text-neutral-500 dark:text-neutral-400" >
102- Reloading in <span x-text =" successCountdown" class =" font-bold text-warning" ></span > seconds...
108+ Reloading in <span x-text =" successCountdown"
109+ class =" font-bold text-warning" ></span > seconds...
103110 </p >
104111 <x-forms .button @click =" reloadNow()" type =" button" >
105112 Reload Now
@@ -112,55 +119,19 @@ class="absolute top-0 right-0 flex items-center justify-center w-8 h-8 mt-5 mr-5
112119 {{-- Confirmation View --}}
113120 <template x-if =" !showProgress" >
114121 <div class =" space-y-4" >
115- {{-- Changelog Preview --}}
116- @if (count ($changelogEntries ) > 0 )
117- <div x-data =" { showChangelog: false }" >
118- <button @click =" showChangelog = !showChangelog"
119- type =" button"
120- class =" flex items-center gap-2 text-sm font-medium text-neutral-600 dark:text-neutral-300 hover:text-neutral-800 dark:hover:text-white" >
121- <svg class =" w-4 h-4 transition-transform duration-200" :class =" showChangelog ? 'rotate-90' : ''" xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 20 20" fill =" currentColor" >
122- <path fill-rule =" evenodd" d =" M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z" clip-rule =" evenodd" />
123- </svg >
124- What's new in {{ $latestVersion } }
125- </button >
126-
127- <div x-show =" showChangelog" x-collapse class =" mt-3" >
128- <div class =" max-h-48 overflow-y-auto space-y-2 scrollbar" >
129- @foreach ($changelogEntries as $entry )
130- <div class =" p-3 text-sm rounded-lg bg-neutral-200 dark:bg-coolgray-200" >
131- <div class =" font-semibold text-neutral-700 dark:text-neutral-200" >{{ $entry [' title' ] } } </div >
132- <div class =" mt-1 text-xs text-neutral-500 dark:text-neutral-400 line-clamp-2" >
133- {!! Str:: limit (strip_tags ($entry [' content_html' ]), 150 ) ! !}
134- </div >
135- </div >
136- @endforeach
137- </div >
138- <a href =" https://github.com/coollabsio/coolify/releases"
139- target =" _blank"
140- class =" inline-flex items-center gap-1 mt-2 text-xs text-blue-500 hover:text-blue-400 hover:underline" >
141- View full changelog
142- <svg class =" w-3 h-3" xmlns =" http://www.w3.org/2000/svg" viewBox =" 0 0 20 20" fill =" currentColor" >
143- <path fill-rule =" evenodd" d =" M4.25 5.5a.75.75 0 00-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 00.75-.75v-4a.75.75 0 011.5 0v4A2.25 2.25 0 0112.75 17h-8.5A2.25 2.25 0 012 14.75v-8.5A2.25 2.25 0 014.25 4h5a.75.75 0 010 1.5h-5z" clip-rule =" evenodd" />
144- <path fill-rule =" evenodd" d =" M6.194 12.753a.75.75 0 001.06.053L16.5 4.44v2.81a.75.75 0 001.5 0v-4.5a.75.75 0 00-.75-.75h-4.5a.75.75 0 000 1.5h2.553l-9.056 8.194a.75.75 0 00-.053 1.06z" clip-rule =" evenodd" />
145- </svg >
146- </a >
147- </div >
148- </div >
149- @endif
150-
151122 {{-- Warning --}}
152123 <x-callout type =" warning" title =" Caution" >
153124 <p >Any deployments running during the update process will
154- fail. Please ensure no deployments are in progress on any server before continuing.
125+ fail.
155126 </p >
156127 </x-callout >
157128
158129 {{-- Help Links --}}
159130 <p class =" text-sm text-neutral-600 dark:text-neutral-400" >
160131 If something goes wrong, check the
161132 <a class =" font-medium underline dark:text-white hover:text-neutral-800 dark:hover:text-neutral-300"
162- href =" https://coolify.io/docs/upgrade"
163- target = " _blank " >upgrade guide</ a > .
133+ href =" https://coolify.io/docs/upgrade" target = " _blank " >upgrade guide</ a > or the
134+ logs on the server at /data/coolify/source/upgrade* .
164135 </p >
165136 </div >
166137 </template >
@@ -353,4 +324,4 @@ class="w-24 dark:bg-coolgray-200 dark:hover:bg-coolgray-300">Cancel
353324 }
354325 }))
355326 })
356- </script >
327+ </script >
0 commit comments