mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-26 02:29:47 +02:00
add new domain name
This commit is contained in:
@ -5,7 +5,6 @@ coffees = assets/coffee/bootstrap.coffee \
|
||||
assets/coffee/BaseObject.coffee \
|
||||
assets/coffee/APIManager.coffee \
|
||||
assets/coffee/MarkOn.coffee \
|
||||
assets/coffee/WVNC.coffee \
|
||||
assets/coffee/WebVNC.coffee
|
||||
|
||||
SED=sed
|
||||
@ -17,7 +16,7 @@ endif
|
||||
main: js
|
||||
- mkdir -p $(BUILDDIR)/assets
|
||||
cp -rf $(copyfiles) $(BUILDDIR)
|
||||
cp -r assets/css assets/scripts assets/shs $(BUILDDIR)/assets
|
||||
cp -r assets/css assets/scripts $(BUILDDIR)/assets
|
||||
- cd $(BUILDDIR) && ln -s ../grs ./rst
|
||||
|
||||
js:
|
||||
|
@ -14,6 +14,7 @@ class WebVNC extends window.classes.BaseObject
|
||||
args =
|
||||
{
|
||||
element: 'canvas',
|
||||
#ws: 'wss://localhost:9192/wvnc',
|
||||
ws: 'wss://lxsang.me/wvnc',
|
||||
worker: '/assets/scripts/decoder.js'
|
||||
}
|
||||
@ -34,9 +35,9 @@ class WebVNC extends window.classes.BaseObject
|
||||
me.client.connect "/opt/www/vnc.conf", {
|
||||
bbp: 32,
|
||||
flag: 3,
|
||||
quality: 40
|
||||
quality: 30
|
||||
}
|
||||
$("#tbstatus").html "32bbp, compress JPEG & ZLib, JPEG quality 10%"
|
||||
$("#tbstatus").html "32bbp, compression JPEG & ZLib, JPEG quality 30%"
|
||||
$("#stop").click (e) ->
|
||||
me.client.disconnect()
|
||||
$("#selscale").on 'change', (e) ->
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Generated by CoffeeScript 1.12.7
|
||||
// Generated by CoffeeScript 1.9.3
|
||||
(function() {
|
||||
var APIManager, BaseObject, MarkOn, WebVNC, require,
|
||||
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
||||
@ -181,7 +181,7 @@
|
||||
var args, me;
|
||||
args = {
|
||||
element: 'canvas',
|
||||
ws: 'wss://localhost:9192/wvnc',
|
||||
ws: 'wss://lxsang.me/wvnc',
|
||||
worker: '/assets/scripts/decoder.js'
|
||||
};
|
||||
this.client = new WVNC(args);
|
||||
@ -197,17 +197,17 @@
|
||||
});
|
||||
};
|
||||
this.client.oncopy = function(text) {
|
||||
return ($("#clipboard"))[0].value = text;
|
||||
return cosole.log(text);
|
||||
};
|
||||
return this.client.init().then(function() {
|
||||
$("#connect").click(function(e) {
|
||||
return me.client.connect("/Users/mrsang/Documents/build/www/vnc.conf", {
|
||||
return me.client.connect("/opt/www/vnc.conf", {
|
||||
bbp: 32,
|
||||
flag: 3,
|
||||
quality: 10
|
||||
quality: 30
|
||||
});
|
||||
});
|
||||
$("#tbstatus").html("32bbp, compress JPEG & ZLib, JPEG quality 10%");
|
||||
$("#tbstatus").html("32bbp, compression JPEG & ZLib, JPEG quality 30%");
|
||||
$("#stop").click(function(e) {
|
||||
return me.client.disconnect();
|
||||
});
|
||||
|
@ -1,57 +0,0 @@
|
||||
#! /bin/bash
|
||||
echo "AND auto build script"
|
||||
if [ -d "ant-http" ]; then
|
||||
echo "Updating Antd source..."
|
||||
cd "ant-http"
|
||||
git stash
|
||||
git pull
|
||||
else
|
||||
echo "Getting Antd..."
|
||||
git clone https://github.com/lxsang/ant-http
|
||||
cd "ant-http"
|
||||
fi
|
||||
[[ -d "plugins" ]] || mkdir "plugins"
|
||||
echo "getting plugins..."
|
||||
cd "plugins"
|
||||
|
||||
for plugin in $1; do
|
||||
echo "Getting plugin: $plugin..."
|
||||
if [ -d "antd-$plugin-plugin" ]; then
|
||||
echo "Updating $plugin source..."
|
||||
cd "antd-$plugin-plugin"
|
||||
git pull
|
||||
cd ../
|
||||
else
|
||||
echo "Getting $plugin..."
|
||||
git clone "https://github.com/lxsang/antd-$plugin-plugin"
|
||||
fi
|
||||
done
|
||||
cd ../
|
||||
# ask user for some custom setting
|
||||
read -p "Build to (absolute path):" build_dir </dev/tty
|
||||
[[ -d "$build_dir" ]] || mkdir -p "$build_dir"
|
||||
[[ -d "$build_dir/htdocs" ]] || mkdir -p "$build_dir/htdocs"
|
||||
[[ -d "$build_dir/database" ]] || mkdir -p "$build_dir/database"
|
||||
[[ -d "$build_dir/tmp" ]] || mkdir -p "$build_dir/tmp"
|
||||
escape="${build_dir//\//\\/}"
|
||||
escape="${escape//\./\\.}"
|
||||
read -p "Default HTTP port : " http_port </dev/tty
|
||||
cmd="sed -i -E 's/[^P]BUILDIRD=.*/BUILDIRD=$escape/' var.mk"
|
||||
eval $cmd
|
||||
echo
|
||||
make && make antd_plugins
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "[SERVER]" > "$build_dir/config.ini"
|
||||
echo "port=$http_port" >> "$build_dir/config.ini"
|
||||
echo "plugins=$build_dir/plugins/" >> "$build_dir/config.ini"
|
||||
echo "plugins_ext=.dylib" >> "$build_dir/config.ini"
|
||||
echo "database=$build_dir/database/" >> "$build_dir/config.ini"
|
||||
echo "htdocs=$build_dir/htdocs/" >> "$build_dir/config.ini"
|
||||
echo "tmpdir=$build_dir/tmp/" >> "$build_dir/config.ini"
|
||||
echo "ssl.enable=0" >> "$build_dir/config.ini"
|
||||
chmod u+x "$build_dir/antd"
|
||||
echo "Build done, to run the server, execute the command:"
|
||||
echo "$build_dir/antd"
|
||||
else
|
||||
echo "FAIL to build, please check dependencies"
|
||||
fi
|
Reference in New Issue
Block a user