@@ -2,17 +2,22 @@ import SwiftUI
2
2
3
3
class PreviewVPN : Desktop . CoderVPN {
4
4
@Published var state : Desktop . CoderVPNState = . disabled
5
- @Published var data : [ Desktop . AgentRow ] = [
6
- AgentRow ( id: UUID ( ) , name: " dogfood2 " , status: . red, copyableDNS: " asdf.coder " ) ,
7
- AgentRow ( id: UUID ( ) , name: " testing-a-very-long-name " , status: . green, copyableDNS: " asdf.coder " ) ,
8
- AgentRow ( id: UUID ( ) , name: " opensrc " , status: . yellow, copyableDNS: " asdf.coder " ) ,
9
- AgentRow ( id: UUID ( ) , name: " gvisor " , status: . gray, copyableDNS: " asdf.coder " ) ,
10
- AgentRow ( id: UUID ( ) , name: " example " , status: . gray, copyableDNS: " asdf.coder " ) ,
11
- AgentRow ( id: UUID ( ) , name: " dogfood2 " , status: . red, copyableDNS: " asdf.coder " ) ,
12
- AgentRow ( id: UUID ( ) , name: " testing-a-very-long-name " , status: . green, copyableDNS: " asdf.coder " ) ,
13
- AgentRow ( id: UUID ( ) , name: " opensrc " , status: . yellow, copyableDNS: " asdf.coder " ) ,
14
- AgentRow ( id: UUID ( ) , name: " gvisor " , status: . gray, copyableDNS: " asdf.coder " ) ,
15
- AgentRow ( id: UUID ( ) , name: " example " , status: . gray, copyableDNS: " asdf.coder " ) ,
5
+ @Published var baseAccessURL : URL = URL ( string: " https://dev.coder.com " ) !
6
+ @Published var agents : [ Desktop . AgentRow ] = [
7
+ AgentRow ( id: UUID ( ) , name: " dogfood2 " , status: . red, copyableDNS: " asdf.coder " , workspaceName: " dogfood2 " ) ,
8
+ AgentRow ( id: UUID ( ) , name: " testing-a-very-long-name " , status: . green, copyableDNS: " asdf.coder " ,
9
+ workspaceName: " testing-a-very-long-name "
10
+ ) ,
11
+ AgentRow ( id: UUID ( ) , name: " opensrc " , status: . yellow, copyableDNS: " asdf.coder " , workspaceName: " opensrc " ) ,
12
+ AgentRow ( id: UUID ( ) , name: " gvisor " , status: . gray, copyableDNS: " asdf.coder " , workspaceName: " gvisor " ) ,
13
+ AgentRow ( id: UUID ( ) , name: " example " , status: . gray, copyableDNS: " asdf.coder " , workspaceName: " example " ) ,
14
+ AgentRow ( id: UUID ( ) , name: " dogfood2 " , status: . red, copyableDNS: " asdf.coder " , workspaceName: " dogfood2 " ) ,
15
+ AgentRow ( id: UUID ( ) , name: " testing-a-very-long-name " , status: . green, copyableDNS: " asdf.coder " ,
16
+ workspaceName: " testing-a-very-long-name "
17
+ ) ,
18
+ AgentRow ( id: UUID ( ) , name: " opensrc " , status: . yellow, copyableDNS: " asdf.coder " , workspaceName: " opensrc " ) ,
19
+ AgentRow ( id: UUID ( ) , name: " gvisor " , status: . gray, copyableDNS: " asdf.coder " , workspaceName: " gvisor " ) ,
20
+ AgentRow ( id: UUID ( ) , name: " example " , status: . gray, copyableDNS: " asdf.coder " , workspaceName: " example " ) ,
16
21
]
17
22
let shouldFail : Bool
18
23
0 commit comments