mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
🏗️ Further experiments with SwiftUI
This commit is contained in:
@ -15,13 +15,14 @@ struct PreferenceContainer: View {
|
||||
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 10) {
|
||||
HStack(spacing: 50) {
|
||||
HStack(alignment: .top, spacing: 50) {
|
||||
Text(self.name).bold()
|
||||
VStack(alignment: .leading) {
|
||||
controlView
|
||||
}
|
||||
.frame(width: 300)
|
||||
Text(self.description).font(.subheadline)
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(10)
|
||||
}
|
||||
}
|
||||
|
@ -19,17 +19,42 @@ struct ConfigManagerView: View {
|
||||
.foregroundColor(Color.blue)
|
||||
.padding(12)
|
||||
VStack(alignment: .leading, spacing: 5) {
|
||||
Text("config_manager.description".localizedForSwiftUI)
|
||||
Text("confman.title".localizedForSwiftUI)
|
||||
.bold()
|
||||
.font(.system(size: 12))
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
Text("config_manager.disclaimer".localizedForSwiftUI)
|
||||
Text("confman.description".localizedForSwiftUI)
|
||||
.font(.system(size: 12))
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.fixedSize(horizontal: false, vertical: true)
|
||||
.scaledToFit()
|
||||
.lineLimit(4)
|
||||
}
|
||||
}
|
||||
.padding(10)
|
||||
|
||||
Divider()
|
||||
|
||||
VStack(spacing: 5) {
|
||||
PreferenceContainer()
|
||||
// PreferenceContainer()
|
||||
// PreferenceContainer()
|
||||
Divider()
|
||||
HStack() {
|
||||
Button("Close", action: {
|
||||
|
||||
})
|
||||
Spacer()
|
||||
Button("Restart PHP-FPM", action: {
|
||||
|
||||
})
|
||||
}
|
||||
.padding(10)
|
||||
.frame(
|
||||
minWidth: 0,
|
||||
maxWidth: .infinity,
|
||||
alignment: .topLeading
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -37,7 +62,7 @@ struct ConfigManagerView: View {
|
||||
struct ConfigManagerView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
ConfigManagerView()
|
||||
.frame(width: 600, height: 480)
|
||||
// .frame(width: 600, height: 480)
|
||||
.previewDisplayName("Config Manager")
|
||||
}
|
||||
}
|
||||
|
@ -81,6 +81,11 @@
|
||||
"mi_xdebug_actions" = "Actions";
|
||||
"mi_xdebug_disable_all" = "Disable All Modes";
|
||||
|
||||
// CONFMAN
|
||||
|
||||
"confman.title" = "PHP Config Editor";
|
||||
"confman.description" = "This utility lets you customize your PHP installation with ease. Changes are automatically applied as you change your configuration values.";
|
||||
|
||||
// PHPMAN
|
||||
|
||||
"phpman.busy.title" = "Checking for updates!";
|
||||
|
Reference in New Issue
Block a user