1
0
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:
2022-01-29 14:15:39 +01:00
parent 193f459be1
commit 5b40a8fd41
6 changed files with 36 additions and 7 deletions

View File

@@ -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",

View File

@@ -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)!

View 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) {}
}