1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2025-07-26 10:39:46 +02:00

fix stuff

This commit is contained in:
lxsang
2018-10-09 12:14:33 +02:00
parent c3f58c08ed
commit 0ad5eaa138
8 changed files with 23 additions and 14 deletions

View File

@ -29,6 +29,8 @@ class WebVNC extends window.classes.BaseObject
r('demo', 'demo')
@client.oncopy = (text) ->
cosole.log text
@client.onerror = (m) ->
alert(m)
@client.init()
.then () ->
$("#connect").click (e) ->

View File

@ -199,6 +199,9 @@
this.client.oncopy = function(text) {
return cosole.log(text);
};
this.client.onerror = function(m) {
return alert(m);
};
return this.client.init().then(function() {
$("#connect").click(function(e) {
return me.client.connect("/opt/www/vnc.conf", {

View File

@ -5,7 +5,7 @@
-- some global variables
DIR_SEP = "/"
WWW_ROOT = "/opt/www/htdocs/apps"
HTTP_ROOT = "https://10.1.10.84:9195/apps"
HTTP_ROOT = "https://apps.lxsang.me"
-- class path: path.to.class
BASE_FRW = ""
-- class path: path.to.class
@ -21,7 +21,7 @@ POLICY.mimes["application/wasm"] = true
-- registry object store global variables
local REGISTRY = {}
-- set logging level
REGISTRY.logger = Logger:new{ levels = {INFO = true, ERROR = true, DEBUG = true}}
REGISTRY.logger = Logger:new{ levels = {INFO = false, ERROR = true, DEBUG = false}}
REGISTRY.db = DBHelper:new{db="iosapps"}
REGISTRY.layout = 'default'
REGISTRY.fileaccess = true
@ -33,7 +33,7 @@ router:setPath(CONTROLLER_ROOT)
--router:route('edit', 'post/edit', "ALL" )
-- example of depedencies to the current main route
-- each layout may have different dependencies
--[[ -- each layout may have different dependencies
local default_routes_dependencies = {
edit = {
url = "post/edit",
@ -48,8 +48,8 @@ local default_routes_dependencies = {
-- url = "cat/index",
-- visibility = "ALL"
--}
}
router:route('default', default_routes_dependencies )
}
router:route('default', default_routes_dependencies )]]
router:delegate()
if REGISTRY.db then REGISTRY.db:close() end