mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2025-07-13 06:04:26 +02:00
update vterm and Antunnel
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "xsang.le@gmail.com"
|
||||
},
|
||||
"version":"0.0.5-a",
|
||||
"version":"0.1.2-a",
|
||||
"category":"System",
|
||||
"iconclass":"fa fa-terminal",
|
||||
"mimes":["none"],
|
||||
|
Binary file not shown.
@ -51,15 +51,25 @@ class vTerm extends this.OS.application.BaseApplication
|
||||
@on "hboxchange", (e) =>
|
||||
@resizeContent()
|
||||
|
||||
if not Antunnel.tunnel
|
||||
@error __("The Antunnel service is not started, please start it first")
|
||||
@_gui.pushService("Antunnel/AntunnelService")
|
||||
checklib = () =>
|
||||
if not Antunnel.tunnel
|
||||
@error __("The Antunnel service is not started, please start it first")
|
||||
@_gui.pushService("Antunnel/AntunnelService")
|
||||
.catch (e) =>
|
||||
@error e.toString(), e
|
||||
@quit()
|
||||
else
|
||||
@tunnel = Antunnel.tunnel
|
||||
@openSession()
|
||||
|
||||
if not Antunnel
|
||||
@_api.requires("pkg://Antunnel/main.js").then () =>
|
||||
checklib()
|
||||
.catch (e) =>
|
||||
@error e.toString(), e
|
||||
@quit()
|
||||
@error __("Unable to load Antunnel: {0}",e.toString()), e
|
||||
@quit()
|
||||
else
|
||||
@tunnel = Antunnel.tunnel
|
||||
@openSession()
|
||||
checklib()
|
||||
|
||||
mctxHandle: (data) ->
|
||||
switch data.id
|
||||
@ -111,9 +121,4 @@ class vTerm extends this.OS.application.BaseApplication
|
||||
cleanup: (e) ->
|
||||
@sub.close() if @sub
|
||||
|
||||
|
||||
vTerm.dependencies = [
|
||||
"pkg://Antunnel/main.js"
|
||||
]
|
||||
|
||||
this.OS.register "vTerm", vTerm
|
||||
|
@ -6,7 +6,7 @@
|
||||
"author": "Xuan Sang LE",
|
||||
"email": "xsang.le@gmail.com"
|
||||
},
|
||||
"version":"0.0.5-a",
|
||||
"version":"0.1.2-a",
|
||||
"category":"System",
|
||||
"iconclass":"fa fa-terminal",
|
||||
"mimes":["none"],
|
||||
|
Reference in New Issue
Block a user