mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 20:10:08 +02:00
👌 Cleanup proxies
This commit is contained in:
@ -18,6 +18,7 @@ class DomainListProxiesCell: NSTableCellView, DomainListCellProtocol
|
||||
@IBOutlet weak var buttonProxyList: NSButton!
|
||||
|
||||
func populateCell(with site: ValetSite) {
|
||||
/*
|
||||
// Show the first proxy
|
||||
textFieldPrimary.stringValue = (site.proxies.count == 0)
|
||||
? ""
|
||||
@ -30,5 +31,7 @@ class DomainListProxiesCell: NSTableCellView, DomainListCellProtocol
|
||||
|
||||
// Show button
|
||||
buttonProxyList.isHidden = site.proxies.count == 0
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -59,9 +59,6 @@ class ValetSite {
|
||||
?? PhpEnv.phpInstall.version.short
|
||||
}
|
||||
|
||||
/// Proxies set up for this domain.
|
||||
var proxies: [String] = []
|
||||
|
||||
enum VersionSource: String {
|
||||
case unknown = "unknown"
|
||||
case require = "require"
|
||||
@ -87,7 +84,6 @@ class ValetSite {
|
||||
determineComposerPhpVersion()
|
||||
determineDriver()
|
||||
determineIsolated()
|
||||
determineProxies()
|
||||
}
|
||||
}
|
||||
|
||||
@ -224,18 +220,6 @@ class ValetSite {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
TODO: This method should determine which proxies are active for this site.
|
||||
For test purposes this method currently will set a fixed value for
|
||||
my own website, eyo. Fun. I will need to check how to determine which
|
||||
sites are being proxied, first (and how this works!).
|
||||
*/
|
||||
private func determineProxies() {
|
||||
if self.name == "nicoverbruggen" {
|
||||
self.proxies = ["127.0.0.1:1337", "127.0.0.1:9999"]
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: File Parsing
|
||||
|
||||
public static func isolatedVersion(_ filePath: String) -> String? {
|
||||
|
Reference in New Issue
Block a user