# HG changeset patch # User drewp@bigasterisk.com # Date 1559712546 0 # Node ID 157985a971dc0495d74f70207dcc8e521e5fc651 # Parent b0691e922fa1903c364c1de58832aba879d268a7 non-working WIP for vidref web Ignore-this: e4be7b5961222bedb5ffe53c46388b3 diff -r b0691e922fa1 -r 157985a971dc bin/vidref --- a/bin/vidref Wed Jun 05 02:04:33 2019 +0000 +++ b/bin/vidref Wed Jun 05 05:29:06 2019 +0000 @@ -108,13 +108,13 @@ handlers=[ (r'/()', cyclone.web.StaticFileHandler, { 'path': 'light9/vidref', - 'default_filename': 'vidref.html' + 'default_filename': 'index.html' }), (r'/setup/()', cyclone.web.StaticFileHandler, { 'path': 'light9/vidref', 'default_filename': 'setup.html' }), - (r'/setup/live', Live), + (r'/live', Live), (r'/snapshot', Snapshot), (r'/snapshot/(.*)', SnapshotPic, { "path": snapshotDir() diff -r b0691e922fa1 -r 157985a971dc light9/vidref/index.html --- a/light9/vidref/index.html Wed Jun 05 02:04:33 2019 +0000 +++ b/light9/vidref/index.html Wed Jun 05 05:29:06 2019 +0000 @@ -1,37 +1,23 @@ - picamserve + vidref + + + + + + -
- Whole view -
- -
-
-
- Shutters -
-
-
- -
-
-
- - + Live: + + + diff -r b0691e922fa1 -r 157985a971dc light9/web/light9-vidref-live.js --- a/light9/web/light9-vidref-live.js Wed Jun 05 02:04:33 2019 +0000 +++ b/light9/web/light9-vidref-live.js Wed Jun 05 05:29:06 2019 +0000 @@ -1,5 +1,7 @@ import { LitElement, TemplateResult, html, css } from '/node_modules/lit-element/lit-element.js'; - +import { debug } from '/lib/debug/debug-build-es6.js'; +debug.enable('*'); +log = debug('live') class Light9VidrefLive extends LitElement { @@ -26,6 +28,11 @@ } + disconnectedCallback() { + log('bye'); + + } + render() { return html`
diff -r b0691e922fa1 -r 157985a971dc makefile --- a/makefile Wed Jun 05 02:04:33 2019 +0000 +++ b/makefile Wed Jun 05 05:29:06 2019 +0000 @@ -36,6 +36,9 @@ node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build.js --standalone debug perl -pi -e "s,'lit-html,'/node_modules/lit-html,; s,lit-html',lit-html/lit-html.js'," node_modules/lit-element/lit-element.js perl -pi -e 's/module.exports = rounding/export { rounding }/' node_modules/significant-rounding/index.js + node_modules/browserify/bin/cmd.js light9/web/lib/debug/src/browser.js -o light9/web/lib/debug/debug-build-es6.js + node_modules/cjs-to-es6/index.js light9/web/lib/debug/debug-build-es6.js + bin/ascoltami2: gst_packages link_to_sys_packages diff -r b0691e922fa1 -r 157985a971dc package.json --- a/package.json Wed Jun 05 02:04:33 2019 +0000 +++ b/package.json Wed Jun 05 05:29:06 2019 +0000 @@ -14,6 +14,7 @@ "bower": "^1.8.4", "browserify": "^16.2.3", "chai": "^3.5.0", + "cjs-to-es6": "^1.1.1", "coffeelint": "^2.1.0", "coffeescript": "^2.3.0", "d3": "^5.1.0",