From 108e28d371283969711846505fc345005a0b1395 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 7 Feb 2024 11:34:04 +0100 Subject: [PATCH 1/4] Return version directly as it is already prefixed Fixes https://github.com/hydephp/realtime-compiler/issues/23 --- packages/realtime-compiler/src/Http/DashboardController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/realtime-compiler/src/Http/DashboardController.php b/packages/realtime-compiler/src/Http/DashboardController.php index 7e474a9ec83..5b1a27ec5a9 100644 --- a/packages/realtime-compiler/src/Http/DashboardController.php +++ b/packages/realtime-compiler/src/Http/DashboardController.php @@ -116,9 +116,7 @@ protected function handlePostRequest(): JsonResponse public function getVersion(): string { - $version = InstalledVersions::getPrettyVersion('hyde/realtime-compiler'); - - return str_starts_with($version, 'dev-') ? $version : "v$version"; + return InstalledVersions::getPrettyVersion('hyde/realtime-compiler'); } public function getProjectInformation(): array From b29144752aca2167dabf4e6fddf63cea8646cf7d Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 7 Feb 2024 11:35:31 +0100 Subject: [PATCH 2/4] Visual dashboard bugfixes Merges https://github.com/hydephp/realtime-compiler/pull/24 --- packages/realtime-compiler/resources/dashboard.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/realtime-compiler/resources/dashboard.blade.php b/packages/realtime-compiler/resources/dashboard.blade.php index 1c2f1086e1f..7d0dd2618b1 100644 --- a/packages/realtime-compiler/resources/dashboard.blade.php +++ b/packages/realtime-compiler/resources/dashboard.blade.php @@ -228,7 +228,7 @@ @endif @else - +
@foreach(['Page Type', 'Route Key', 'Source File', 'Output File', 'Identifier'] as $header) @@ -288,7 +288,7 @@ There are no media files yet. Why not add some? @else -
+
@foreach(\Hyde\Support\Filesystem\MediaFile::all() as $mediaFile)
@@ -310,7 +310,7 @@
-

+

{{ $mediaFile->getName() }}

From 6d9a8eb4bc905f39233902e1eab3df96249663fe Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 7 Feb 2024 11:35:48 +0100 Subject: [PATCH 3/4] Format Blade --- packages/realtime-compiler/resources/dashboard.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/realtime-compiler/resources/dashboard.blade.php b/packages/realtime-compiler/resources/dashboard.blade.php index 7d0dd2618b1..f6086d72e25 100644 --- a/packages/realtime-compiler/resources/dashboard.blade.php +++ b/packages/realtime-compiler/resources/dashboard.blade.php @@ -41,9 +41,9 @@ Open full page dashboard
@else - + @endif
@@ -288,7 +288,7 @@ There are no media files yet. Why not add some?
@else -
+
@foreach(\Hyde\Support\Filesystem\MediaFile::all() as $mediaFile)
From 0ecb0d1bb3081243b0af3a55db22c06073a05259 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Wed, 7 Feb 2024 11:37:35 +0100 Subject: [PATCH 4/4] Update RELEASE_NOTES.md --- RELEASE_NOTES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 8e6d0324fb5..f9d7948c8dc 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -27,6 +27,7 @@ This serves two purposes: - Fixed icons not being considered as images by dashboard viewer in https://github.com/hydephp/develop/pull/1512 - HydeFront: Fixed bug where heading permalink buttons were included in text represented output in https://github.com/hydephp/develop/pull/1519 - HydeFront: Fix visual overflow bug in inline code blocks within blockquotes https://github.com/hydephp/hydefront/issues/65 in https://github.com/hydephp/develop/pull/1525 +- Realtime Compiler: Fixes visual dashboard bugs https://github.com/hydephp/realtime-compiler/issues/23 and https://github.com/hydephp/realtime-compiler/issues/24 in https://github.com/hydephp/develop/pull/1528 ### Security - in case of vulnerabilities.
{{ $header }}