mirror of
https://github.com/cytopia/devilbox.git
synced 2025-01-05 12:24:22 +00:00
Intranet: Show wscat version
This commit is contained in:
parent
794e3d8961
commit
0b561dfdd2
@ -13,8 +13,8 @@ error_reporting(-1);
|
|||||||
putenv('RES_OPTIONS=retrans:1 retry:1 timeout:1 attempts:1');
|
putenv('RES_OPTIONS=retrans:1 retry:1 timeout:1 attempts:1');
|
||||||
|
|
||||||
|
|
||||||
$DEVILBOX_VERSION = 'v3.0.0-beta-0.2';
|
$DEVILBOX_VERSION = 'v3.0.0-beta-0.3';
|
||||||
$DEVILBOX_DATE = '2022-12-27';
|
$DEVILBOX_DATE = '2022-12-31';
|
||||||
$DEVILBOX_API_PAGE = 'devilbox-api/status.json';
|
$DEVILBOX_API_PAGE = 'devilbox-api/status.json';
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -150,6 +150,11 @@ if (loadClass('Helper')->isLoggedIn()) {
|
|||||||
$_GET['software'] => (($version = loadClass('Php')->getWpcliVersion()) !== false) ? $version : $no
|
$_GET['software'] => (($version = loadClass('Php')->getWpcliVersion()) !== false) ? $version : $no
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
else if ($_GET['software'] == 'wscat') {
|
||||||
|
echo json_encode(array(
|
||||||
|
$_GET['software'] => (($version = loadClass('Php')->getWscatVersion()) !== false) ? $version : $no
|
||||||
|
));
|
||||||
|
}
|
||||||
else if ($_GET['software'] == 'yarn') {
|
else if ($_GET['software'] == 'yarn') {
|
||||||
echo json_encode(array(
|
echo json_encode(array(
|
||||||
$_GET['software'] => (($version = loadClass('Php')->getYarnVersion()) !== false) ? $version : $no
|
$_GET['software'] => (($version = loadClass('Php')->getYarnVersion()) !== false) ? $version : $no
|
||||||
|
@ -428,6 +428,10 @@ $HEALTH_PERCENT = 100 - ceil(100 * $HEALTH_FAILS / $HEALTH_TOTAL);
|
|||||||
<th>Wordpress Cli</th>
|
<th>Wordpress Cli</th>
|
||||||
<td id="app_wpcli"></td>
|
<td id="app_wpcli"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>Wscat</th>
|
||||||
|
<td id="app_wscat"></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Yarn</th>
|
<th>Yarn</th>
|
||||||
<td id="app_yarn"></td>
|
<td id="app_yarn"></td>
|
||||||
@ -970,6 +974,7 @@ $HEALTH_PERCENT = 100 - ceil(100 * $HEALTH_FAILS / $HEALTH_TOTAL);
|
|||||||
updateVersions('vue_cli');
|
updateVersions('vue_cli');
|
||||||
updateVersions('webpack_cli');
|
updateVersions('webpack_cli');
|
||||||
updateVersions('wpcli');
|
updateVersions('wpcli');
|
||||||
|
updateVersions('wscat');
|
||||||
updateVersions('yarn');
|
updateVersions('yarn');
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
@ -140,6 +140,11 @@ class Php extends BaseClass implements BaseInterface
|
|||||||
$output = loadClass('Helper')->exec('wp --version 2>/dev/null | grep -i ^WP', $output);
|
$output = loadClass('Helper')->exec('wp --version 2>/dev/null | grep -i ^WP', $output);
|
||||||
return loadClass('Helper')->egrep('/[0-9.]+/', $output);
|
return loadClass('Helper')->egrep('/[0-9.]+/', $output);
|
||||||
}
|
}
|
||||||
|
public function getWscatVersion()
|
||||||
|
{
|
||||||
|
$output = loadClass('Helper')->exec('wscat --version 2>/dev/null | head -1', $output);
|
||||||
|
return loadClass('Helper')->egrep('/[0-9.]+/', $output);
|
||||||
|
}
|
||||||
public function getYarnVersion()
|
public function getYarnVersion()
|
||||||
{
|
{
|
||||||
$output = loadClass('Helper')->exec('yarn --version 2>/dev/null', $output);
|
$output = loadClass('Helper')->exec('yarn --version 2>/dev/null', $output);
|
||||||
|
14
CHANGELOG.md
14
CHANGELOG.md
@ -6,6 +6,20 @@ Make sure to have a look at [UPDATING.md](https://github.com/cytopia/devilbox/bl
|
|||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
|
||||||
|
## Release v3.0.0-beta-0.3 (2022-12-31)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Intranet: mail.php fixed deprecation warnings [#798](https://github.com/cytopia/devilbox/issues/798)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Use `dvl.to` as default `TLD_SUFFIX` (it always poits to `127.0.0.1` removing the need to create `/etc/hosts` entries)
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- Intranet: vhost overview shows listening ports
|
||||||
|
- Intranet: vhost overview now has modals to show httpd and vhost-gen configs
|
||||||
|
- Docs: Show available tools per version in README.md
|
||||||
|
|
||||||
|
|
||||||
## Release v3.0.0-beta-0.2 (2022-12-27)
|
## Release v3.0.0-beta-0.2 (2022-12-27)
|
||||||
|
|
||||||
The Backend configuration now supports websockets as well:
|
The Backend configuration now supports websockets as well:
|
||||||
|
Loading…
Reference in New Issue
Block a user