mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
👌 Add copy about inactive services
This commit is contained in:
@ -15,15 +15,9 @@ struct HelpButton: View {
|
||||
var body: some View {
|
||||
Button(action: action, label: {
|
||||
ZStack {
|
||||
Circle()
|
||||
.strokeBorder(Color(NSColor.separatorColor), lineWidth: 0.5)
|
||||
.background(Circle().foregroundColor(Color(NSColor.controlColor)))
|
||||
.shadow(color: Color(NSColor.separatorColor).opacity(0.3), radius: 1)
|
||||
.frame(width: 20, height: 20)
|
||||
Text("?").font(.system(size: 15, weight: .medium ))
|
||||
Text("?").font(.system(size: 15, weight: .medium))
|
||||
}
|
||||
})
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
}
|
||||
|
||||
struct HelpButton_Previews: PreviewProvider {
|
||||
|
@ -34,6 +34,7 @@ struct ServicesView: View {
|
||||
}
|
||||
|
||||
@ObservedObject var manager: ServicesManager
|
||||
|
||||
var perRow: Int
|
||||
var rowCount: Int
|
||||
var rowSpacing: Int = 0
|
||||
@ -79,7 +80,14 @@ struct ServicesView: View {
|
||||
.font(.system(size: 12))
|
||||
if self.manager.statusColor == .red {
|
||||
HelpButton {
|
||||
print("oof")
|
||||
// Show an alert with more information
|
||||
BetterAlert().withInformation(
|
||||
title: "alert.key_service_not_running.title".localized,
|
||||
subtitle: "alert.key_service_not_running.subtitle".localized,
|
||||
description: "alert.key_service_not_running.desc".localized
|
||||
)
|
||||
.withPrimary(text: "generic.ok".localized)
|
||||
.show()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -546,6 +546,16 @@ If you are seeing this message but are confused why this folder has gone missing
|
||||
"alert.errors.homebrew_permissions.applescript_returned_nil.title" = "Restore Homebrew Permissions has been cancelled.";
|
||||
"alert.errors.homebrew_permissions.applescript_returned_nil.description" = "The outcome of the script that is executed to adjust the permissions returned nil, which usually means that you did not grant administrative permissions to PHP Monitor.\n\nIf you clicked on Cancel during the authentication prompt, this is normal. If you did actually authenticate and you are still seeing this message, something probably went wrong.";
|
||||
|
||||
"alert.key_service_not_running.title" = "Due to issues with the Homebrew services required, Valet is currently not working correctly";
|
||||
"alert.key_service_not_running.subtitle" = "For Valet to work properly, at least three key services need to be running correctly.
|
||||
|
||||
PHP Monitor is reporting that this isn't the case. You can try to fix this by pressing the button with the 'X' in the menu below the affected service to (re)start the service that is currently inactive.";
|
||||
"alert.key_service_not_running.desc" = "If clicking on the button below the service doesn't work (i.e. the spinner appears but remains an 'X' after some time), you may need to run Fix My Valet. You can do this via the menu First Aid > Fix My Valet.
|
||||
|
||||
Alternatively, you can use `valet stop` and `valet start` in the terminal, which may also fix the issue (as an alternative to Fix My Valet).
|
||||
|
||||
For further debugging, you may wish to check the GitHub issue tracker, where others may have had similar issues. As the developer, I attempt to make sure every question gets answered :)";
|
||||
|
||||
// CHECK FOR UPDATES
|
||||
|
||||
"updater.alerts.newer_version_available.title" = "PHP Monitor v%@ is now available!";
|
||||
|
@ -47,6 +47,10 @@ class TestableConfigurations {
|
||||
"""),
|
||||
"/opt/homebrew/etc/php/8.2/php-fpm.d/valet-fpm.conf"
|
||||
: .fake(.text),
|
||||
"/opt/homebrew/etc/php/8.2/php.ini"
|
||||
: .fake(.text),
|
||||
"/opt/homebrew/etc/php/8.2/conf.d/php-memory-limits.ini"
|
||||
: .fake(.text)
|
||||
],
|
||||
shellOutput: [
|
||||
"sysctl -n sysctl.proc_translated"
|
||||
@ -164,10 +168,7 @@ class TestableConfigurations {
|
||||
"/opt/homebrew/bin/php -r echo ini_get('post_max_size');": "512M",
|
||||
"/opt/homebrew/bin/php -r echo php_ini_scanned_files();"
|
||||
: """
|
||||
/opt/homebrew/etc/php/8.2/conf.d/error_log.ini,
|
||||
/opt/homebrew/etc/php/8.2/conf.d/ext-opcache.ini,
|
||||
/opt/homebrew/etc/php/8.2/conf.d/php-memory-limits.ini,
|
||||
/opt/homebrew/etc/php/8.2/conf.d/xdebug.ini
|
||||
"""
|
||||
]
|
||||
)
|
||||
|
Reference in New Issue
Block a user