mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 19:58:21 +01:00
update vterm and Antunnel
This commit is contained in:
parent
8b2c534e80
commit
328172ef90
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "xsang.le@lxsang.me"
|
"email": "xsang.le@lxsang.me"
|
||||||
},
|
},
|
||||||
"version":"0.1.1-a",
|
"version":"0.1.2-a",
|
||||||
"category":"Library",
|
"category":"Library",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
Binary file not shown.
@ -217,7 +217,8 @@ class AntunnelApi
|
|||||||
@onclose() if @onclose()
|
@onclose() if @onclose()
|
||||||
|
|
||||||
W = this
|
W = this
|
||||||
W.Antunnel = {
|
if not W.Antunnel
|
||||||
|
W.Antunnel = {
|
||||||
tunnel: undefined
|
tunnel: undefined
|
||||||
init: ((url) ->
|
init: ((url) ->
|
||||||
return new Promise (resolve, reject) ->
|
return new Promise (resolve, reject) ->
|
||||||
@ -229,4 +230,4 @@ W.Antunnel = {
|
|||||||
.catch (e) -> reject(e)),
|
.catch (e) -> reject(e)),
|
||||||
Subscriber: Subscriber,
|
Subscriber: Subscriber,
|
||||||
Msg: Msg
|
Msg: Msg
|
||||||
}
|
}
|
@ -9,7 +9,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "xsang.le@lxsang.me"
|
"email": "xsang.le@lxsang.me"
|
||||||
},
|
},
|
||||||
"version":"0.1.1-a",
|
"version":"0.1.2-a",
|
||||||
"category":"Library",
|
"category":"Library",
|
||||||
"iconclass":"fa fa-adn",
|
"iconclass":"fa fa-adn",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Antunnel/README.md",
|
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Antunnel/README.md",
|
||||||
"category": "Library",
|
"category": "Library",
|
||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"version": "0.1.1-a",
|
"version": "0.1.2-a",
|
||||||
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Antunnel/build/release/Antunnel.zip"
|
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/Antunnel/build/release/Antunnel.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -149,7 +149,7 @@
|
|||||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/vTerm/README.md",
|
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/vTerm/README.md",
|
||||||
"category": "System",
|
"category": "System",
|
||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"version": "0.0.5-a",
|
"version": "0.1.2-a",
|
||||||
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/vTerm/build/release/vTerm.zip"
|
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/vTerm/build/release/vTerm.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "xsang.le@gmail.com"
|
"email": "xsang.le@gmail.com"
|
||||||
},
|
},
|
||||||
"version":"0.0.5-a",
|
"version":"0.1.2-a",
|
||||||
"category":"System",
|
"category":"System",
|
||||||
"iconclass":"fa fa-terminal",
|
"iconclass":"fa fa-terminal",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
Binary file not shown.
@ -51,6 +51,7 @@ class vTerm extends this.OS.application.BaseApplication
|
|||||||
@on "hboxchange", (e) =>
|
@on "hboxchange", (e) =>
|
||||||
@resizeContent()
|
@resizeContent()
|
||||||
|
|
||||||
|
checklib = () =>
|
||||||
if not Antunnel.tunnel
|
if not Antunnel.tunnel
|
||||||
@error __("The Antunnel service is not started, please start it first")
|
@error __("The Antunnel service is not started, please start it first")
|
||||||
@_gui.pushService("Antunnel/AntunnelService")
|
@_gui.pushService("Antunnel/AntunnelService")
|
||||||
@ -61,6 +62,15 @@ class vTerm extends this.OS.application.BaseApplication
|
|||||||
@tunnel = Antunnel.tunnel
|
@tunnel = Antunnel.tunnel
|
||||||
@openSession()
|
@openSession()
|
||||||
|
|
||||||
|
if not Antunnel
|
||||||
|
@_api.requires("pkg://Antunnel/main.js").then () =>
|
||||||
|
checklib()
|
||||||
|
.catch (e) =>
|
||||||
|
@error __("Unable to load Antunnel: {0}",e.toString()), e
|
||||||
|
@quit()
|
||||||
|
else
|
||||||
|
checklib()
|
||||||
|
|
||||||
mctxHandle: (data) ->
|
mctxHandle: (data) ->
|
||||||
switch data.id
|
switch data.id
|
||||||
when "paste"
|
when "paste"
|
||||||
@ -111,9 +121,4 @@ class vTerm extends this.OS.application.BaseApplication
|
|||||||
cleanup: (e) ->
|
cleanup: (e) ->
|
||||||
@sub.close() if @sub
|
@sub.close() if @sub
|
||||||
|
|
||||||
|
|
||||||
vTerm.dependencies = [
|
|
||||||
"pkg://Antunnel/main.js"
|
|
||||||
]
|
|
||||||
|
|
||||||
this.OS.register "vTerm", vTerm
|
this.OS.register "vTerm", vTerm
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
"author": "Xuan Sang LE",
|
"author": "Xuan Sang LE",
|
||||||
"email": "xsang.le@gmail.com"
|
"email": "xsang.le@gmail.com"
|
||||||
},
|
},
|
||||||
"version":"0.0.5-a",
|
"version":"0.1.2-a",
|
||||||
"category":"System",
|
"category":"System",
|
||||||
"iconclass":"fa fa-terminal",
|
"iconclass":"fa fa-terminal",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
Loading…
Reference in New Issue
Block a user