mirror of
https://github.com/antos-rde/antosdk-apps.git
synced 2024-12-25 03:38:21 +01:00
SystemControl: use new AntoS local setting APIo
All checks were successful
gitea-sync/antosdk-apps/pipeline/head This commit looks good
All checks were successful
gitea-sync/antosdk-apps/pipeline/head This commit looks good
This commit is contained in:
parent
7174dfb8c9
commit
4d03eff031
@ -9,4 +9,5 @@ via the Antunnel service
|
|||||||
|
|
||||||
|
|
||||||
## changelogs
|
## changelogs
|
||||||
|
- 0.1.13-a: fix setting bug on new AntOS local setting API
|
||||||
- 0.1.12-a: use application based dialog instead of global dialog
|
- 0.1.12-a: use application based dialog instead of global dialog
|
||||||
|
@ -9,4 +9,5 @@ via the Antunnel service
|
|||||||
|
|
||||||
|
|
||||||
## changelogs
|
## changelogs
|
||||||
|
- 0.1.13-a: fix setting bug on new AntOS local setting API
|
||||||
- 0.1.12-a: use application based dialog instead of global dialog
|
- 0.1.12-a: use application based dialog instead of global dialog
|
||||||
|
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
|||||||
"dependencies": [
|
"dependencies": [
|
||||||
"Antunnel@0.2.1-b"
|
"Antunnel@0.2.1-b"
|
||||||
],
|
],
|
||||||
"version":"0.1.12-a",
|
"version":"0.1.13-a",
|
||||||
"category":"System",
|
"category":"System",
|
||||||
"iconclass":"fa fa-tachometer",
|
"iconclass":"fa fa-tachometer",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
Binary file not shown.
@ -24,9 +24,9 @@ class SysmondService extends OS.application.BaseService
|
|||||||
@error e.toString(), e
|
@error e.toString(), e
|
||||||
@quit()
|
@quit()
|
||||||
else
|
else
|
||||||
return unless @setting().topic
|
return unless @setting.topic
|
||||||
@tunnel = Antunnel.tunnel
|
@tunnel = Antunnel.tunnel
|
||||||
@sub = new Antunnel.Subscriber(@setting().topic)
|
@sub = new Antunnel.Subscriber(@setting.topic)
|
||||||
@sub.onopen = () =>
|
@sub.onopen = () =>
|
||||||
#@sub.send Antunnel.Msg.DATA, new TextEncoder("utf-8").encode("Hello")
|
#@sub.send Antunnel.Msg.DATA, new TextEncoder("utf-8").encode("Hello")
|
||||||
console.log("Subscribed to notification channel")
|
console.log("Subscribed to notification channel")
|
||||||
@ -48,14 +48,14 @@ class SysmondService extends OS.application.BaseService
|
|||||||
@quit()
|
@quit()
|
||||||
Antunnel.tunnel.subscribe @sub
|
Antunnel.tunnel.subscribe @sub
|
||||||
|
|
||||||
if not @setting().topic
|
if not @setting.topic
|
||||||
console.log "Open dialog"
|
console.log "Open dialog"
|
||||||
@app.openDialog("PromptDialog", {
|
@app.openDialog("PromptDialog", {
|
||||||
title: __("Enter topic name"),
|
title: __("Enter topic name"),
|
||||||
label: __("Please enter topic name")
|
label: __("Please enter topic name")
|
||||||
})
|
})
|
||||||
.then (v) =>
|
.then (v) =>
|
||||||
@setting().topic = v
|
@setting.topic = v
|
||||||
checklib()
|
checklib()
|
||||||
else
|
else
|
||||||
checklib()
|
checklib()
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"dependencies": [
|
"dependencies": [
|
||||||
"Antunnel@0.2.1-b"
|
"Antunnel@0.2.1-b"
|
||||||
],
|
],
|
||||||
"version":"0.1.12-a",
|
"version":"0.1.13-a",
|
||||||
"category":"System",
|
"category":"System",
|
||||||
"iconclass":"fa fa-tachometer",
|
"iconclass":"fa fa-tachometer",
|
||||||
"mimes":["none"],
|
"mimes":["none"],
|
||||||
|
@ -435,8 +435,8 @@
|
|||||||
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/SystemControl/README.md",
|
"description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/SystemControl/README.md",
|
||||||
"category": "System",
|
"category": "System",
|
||||||
"author": "",
|
"author": "",
|
||||||
"version": "0.1.12-a",
|
"version": "0.1.13-a",
|
||||||
"dependencies": ["Antunnel@0.2.1-b"],"version":"0.1.12-a","category":"System","iconclass":"fafa-tachometer","mimes":["none"],
|
"dependencies": ["Antunnel@0.2.1-b"],"version":"0.1.13-a","category":"System","iconclass":"fafa-tachometer","mimes":["none"],
|
||||||
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/SystemControl/build/release/SystemControl.zip"
|
"download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/2.0.x/SystemControl/build/release/SystemControl.zip"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -9,4 +9,5 @@ via the Antunnel service
|
|||||||
|
|
||||||
|
|
||||||
## changelogs
|
## changelogs
|
||||||
|
- 0.1.13-a: fix setting bug on new AntOS local setting API
|
||||||
- 0.1.12-a: use application based dialog instead of global dialog
|
- 0.1.12-a: use application based dialog instead of global dialog
|
||||||
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user