File tree 1 file changed +31
-0
lines changed
src/content/docs/services
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ This service is somewhat incomplete, feel free to open a PR to improve it
13
13
* ` primary ` : ` "wifi" | "wired" `
14
14
* ` wired ` : ` Wired `
15
15
* ` wifi ` : ` Wifi `
16
+ * ` vpn ` : ` Vpn `
16
17
17
18
## methods
18
19
@@ -58,6 +59,36 @@ meaning you can't bind to it or use notify::prop signal
58
59
* ` state ` : ` string ` : [ NM.DeviceState] ( https://gjs-docs.gnome.org/nm10~1.0/nm.devicestate ) as lowercase string
59
60
* ` icon-name ` : ` string `
60
61
62
+ ## Vpn
63
+
64
+ ### signals
65
+
66
+ * ` connection-added ` : ` (uuid: string) `
67
+ * ` connection-removed ` : ` (uuid: string) `
68
+
69
+ ### properties
70
+
71
+ * ` connections ` : ` VpnConnection[] `
72
+ * ` activated-connections ` : ` VpnConnection[] `
73
+
74
+ ### methods
75
+
76
+ * ` getConnection ` : ` (uuid: string) => VpnConnection `
77
+
78
+ ## VpnConnection
79
+
80
+ ### properties
81
+
82
+ * ` uuid ` : ` string `
83
+ * ` id ` : ` string ` : The unique name of the connection
84
+ * ` state ` : ` "connected" | "connecting" | "disconnecting" | "disconnected" `
85
+ * ` vpn-state ` : ` "unknown" | "prepare" | "needs_auth" | "connect" | "ip_config" | "activated" | "failed" | "disconnected" `
86
+ * ` icon-name ` : ` string `
87
+
88
+ ### methods
89
+
90
+ * ` setConnection ` : ` (connect: boolean) => void `
91
+
61
92
## Example Widget
62
93
63
94
``` js
You can’t perform that action at this time.
0 commit comments