An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Merge branch 'next' into wrong-time-during-a-failed-deployment
Andras Bacsaidbb7989027b5
diff --cc resources/views/livewire/project/application/deployment/index.blade.phpindex 93911be614,41b11dc3b0..a44c627af0--- a/resources/views/livewire/project/application/deployment/index.blade.php+++ b/resources/views/livewire/project/application/deployment/index.blade.php@@@ -112,41 -112,35 +113,55 @@@function goto(url) {window.location.href = url;};- document.addEventListener('alpine:init', () => {- let timers = {};+ let timers = {};- dayjs.extend(window.dayjs_plugin_utc);- dayjs.extend(window.dayjs_plugin_relativeTime);+ dayjs.extend(window.dayjs_plugin_utc);+ dayjs.extend(window.dayjs_plugin_relativeTime);- Alpine.data('elapsedTime', (uuid, status, created_at, updated_at) => ({+ Alpine.data('elapsedTime', (uuid, status, created_at, updated_at) => ({- finished_time: 'calculating...',- started_time: 'calculating...',- init() {- if (timers[uuid]) {- clearInterval(timers[uuid]);+ finished_time: 'calculating...',+ started_time: 'calculating...',+ init() {+ if (timers[uuid]) {+ clearInterval(timers[uuid]);+ }+ if (status === 'in_progress') {+ timers[uuid] = setInterval(() => {+ this.finished_time = dayjs().diff(dayjs.utc(created_at),+ 'second') + 's'+ }, 1000);+ } else {+ let seconds = dayjs.utc(updated_at).diff(dayjs.utc(created_at), 'second')+ this.finished_time = seconds + 's';+ }+ },+ measure_finished_time() {+ if (this.finished_time > 2000) {+ return 0;+ } else {+ return this.finished_time;+ }+ },+ measure_since_started() {+ return dayjs.utc(created_at).fromNow();}- }))- })+ if (status === 'in_progress') {+ timers[uuid] = setInterval(() => {+ this.finished_time = dayjs().diff(dayjs.utc(created_at),+ 'second') + 's'+ }, 1000);+ } else {+ let seconds = dayjs.utc(updated_at).diff(dayjs.utc(created_at), 'second')+ this.finished_time = seconds + 's';+ }+ },+ measure_finished_time() {+ return this.finished_time;+ },+ measure_since_started() {+ return dayjs.utc(created_at).fromNow();+ }+ }))</script>@endif</div>