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,12 +15,13 @@ struct PreferenceContainer: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(alignment: .leading, spacing: 10) {
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
HStack(spacing: 50) {
|
HStack(alignment: .top, spacing: 50) {
|
||||||
Text(self.name).bold()
|
Text(self.name).bold()
|
||||||
controlView
|
VStack(alignment: .leading) {
|
||||||
|
controlView
|
||||||
|
Text(self.description).font(.subheadline)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.frame(width: 300)
|
|
||||||
Text(self.description).font(.subheadline)
|
|
||||||
}
|
}
|
||||||
.padding(10)
|
.padding(10)
|
||||||
}
|
}
|
||||||
|
@ -19,17 +19,42 @@ struct ConfigManagerView: View {
|
|||||||
.foregroundColor(Color.blue)
|
.foregroundColor(Color.blue)
|
||||||
.padding(12)
|
.padding(12)
|
||||||
VStack(alignment: .leading, spacing: 5) {
|
VStack(alignment: .leading, spacing: 5) {
|
||||||
Text("config_manager.description".localizedForSwiftUI)
|
Text("confman.title".localizedForSwiftUI)
|
||||||
|
.bold()
|
||||||
.font(.system(size: 12))
|
.font(.system(size: 12))
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
Text("config_manager.disclaimer".localizedForSwiftUI)
|
Text("confman.description".localizedForSwiftUI)
|
||||||
.font(.system(size: 12))
|
.font(.system(size: 12))
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
|
.scaledToFit()
|
||||||
|
.lineLimit(4)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(10)
|
.padding(10)
|
||||||
|
|
||||||
Divider()
|
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 {
|
struct ConfigManagerView_Previews: PreviewProvider {
|
||||||
static var previews: some View {
|
static var previews: some View {
|
||||||
ConfigManagerView()
|
ConfigManagerView()
|
||||||
.frame(width: 600, height: 480)
|
// .frame(width: 600, height: 480)
|
||||||
.previewDisplayName("Config Manager")
|
.previewDisplayName("Config Manager")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,11 @@
|
|||||||
"mi_xdebug_actions" = "Actions";
|
"mi_xdebug_actions" = "Actions";
|
||||||
"mi_xdebug_disable_all" = "Disable All Modes";
|
"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
|
||||||
|
|
||||||
"phpman.busy.title" = "Checking for updates!";
|
"phpman.busy.title" = "Checking for updates!";
|
||||||
|
Reference in New Issue
Block a user