diff --git a/CHANGELOG.md b/CHANGELOG.md index af7c93e..3f3f76c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,16 @@ # Changelog +## [1.3.2] - 08-12-2024 + +* Bug fixes to Browser Development Mode settings: + * Now the browser dev url is loaded from an option that is written by edgeboxctl. This is to ensure the environment accounts being ran locally or on a custom or cloud domain name. + ## [1.3.1] - 08-12-2024 -* Fixed linting and code style issues across the project -* Added action to build docker image on push to Pull Requests -* Optimized the Dockerfile build to include the app and dependencies in different layers +* Project fixes and improvements: + * Fixed linting and code style issues across the project + * Added action to build docker image on push to Pull Requests + * Optimized the Dockerfile build to include the app and dependencies in different layers ## [1.3.0] - 05-12-2024 diff --git a/src/src/Helper/BrowserDevHelper.php b/src/src/Helper/BrowserDevHelper.php index 51b85bb..00f329a 100644 --- a/src/src/Helper/BrowserDevHelper.php +++ b/src/src/Helper/BrowserDevHelper.php @@ -69,7 +69,7 @@ public function getBrowserDevPassword(): string public function getBrowserDevUrl(): string { - return 'https://dev.'.$this->optionRepository->findDomainName(); + return $this->optionRepository->findBrowserDevUrl() ?? ''; } public function getBrowserDevStatus($with_password = false): array diff --git a/src/src/Repository/OptionRepository.php b/src/src/Repository/OptionRepository.php index 9ff14d2..ebe90e0 100644 --- a/src/src/Repository/OptionRepository.php +++ b/src/src/Repository/OptionRepository.php @@ -64,6 +64,11 @@ public function findBrowserDevPassword(): ?string return $this->findOption('BROWSERDEV_PASSWORD'); } + public function findBrowserDevUrl(): ?string + { + return $this->findOption('BROWSERDEV_URL'); + } + private function findOption(string $name) { $option = $this->findOneBy(['name' => $name]); diff --git a/src/templates/pages/settings/index.html.twig b/src/templates/pages/settings/index.html.twig index f919deb..5d7c97f 100644 --- a/src/templates/pages/settings/index.html.twig +++ b/src/templates/pages/settings/index.html.twig @@ -144,8 +144,7 @@
Click any of the titles below to see its option details.
{% if (alert is not empty and alert.alert == 'remove_custom_domain') %} @@ -164,17 +163,20 @@Click any of the titles below to see its option details.
- -Configure 1-click internet access to your apps and dashboard. Logging in with a Cloudflare account gives your a frictionless experience. Manual Setup requires you to configure a connection yourself.
-+ Configure 1-click internet access to your apps and dashboard. Logging in with a Cloudflare account gives your a frictionless experience. Manual Setup requires you to configure a connection yourself. +
+ {% endblock %} + {% block card_content %}- Access the underlying edgebox system via a full fledged web browser development environment. This is an environment with full access to your edgebox instance. This is ideal for advanced users who want to run, debug, and develop their code and apps on the edgebox instance. -
-+ Access the underlying edgebox system via a full fledged web browser development environment. This is an environment with full access to your edgebox instance. This is ideal for advanced users who want to run, debug, and develop their code and apps on the edgebox instance. +
+ {% endblock %} + {% block card_content %}