mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-09 05:40:07 +01:00
👌 Updated goals, new asset, SwiftUI integration
This commit is contained in:
@@ -25,7 +25,7 @@ struct PhpFrameworks {
|
||||
"roots/bedrock": "Bedrock",
|
||||
"cakephp/app": "CakePHP",
|
||||
|
||||
// TODO: Handle wildcards like these (currently disabled)
|
||||
// TODO: (5.0) Handle wildcards like these (currently disabled)
|
||||
// "concrete5/*": "Concrete5",
|
||||
// "contao/*": "Contao",
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class Valet {
|
||||
let file = FileManager.default.homeDirectoryForCurrentUser
|
||||
.appendingPathComponent(".config/valet/config.json")
|
||||
|
||||
// TODO: Fix loading of invalid JSON: do not crash the app
|
||||
// TODO: (5.1) Fix loading of invalid JSON: do not crash the app
|
||||
config = try! JSONDecoder().decode(
|
||||
Valet.Configuration.self,
|
||||
from: try! String(contentsOf: file, encoding: .utf8).data(using: .utf8)!
|
||||
|
||||
25
phpmon/Domain/SwiftUI/PMServicesView.swift
Normal file
25
phpmon/Domain/SwiftUI/PMServicesView.swift
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// PMHeaderView.swift
|
||||
// PHP Monitor
|
||||
//
|
||||
// Created by Nico Verbruggen on 15/04/2021.
|
||||
// Copyright © 2021 Nico Verbruggen. All rights reserved.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@available(OSX 11.0, *)
|
||||
struct PMServicesView: View {
|
||||
var body: some View {
|
||||
PMServices().frame(minWidth: 0, maxWidth: 450, minHeight: 0, maxHeight: 50)
|
||||
}
|
||||
}
|
||||
|
||||
@available(OSX 11.0, *)
|
||||
struct PMServices: NSViewRepresentable {
|
||||
func makeNSView(context: Context) -> some NSView {
|
||||
return ServicesView.asMenuItem().view!
|
||||
}
|
||||
|
||||
func updateNSView(_ nsView: NSViewType, context: Context) {}
|
||||
}
|
||||
Reference in New Issue
Block a user