Changeset - e30493d458f9
[Not reviewed]
default
0 13 0
drewp@bigasterisk.com - 7 years ago 2018-04-30 06:37:19
drewp@bigasterisk.com
more npm setup. n3 upgraded but code is not, yet
Ignore-this: f2c1fdfef218cedc322e03d3784d1123
13 files changed with 58 insertions and 63 deletions:
0 comments (0 inline, 0 general)
bin/homepage
Show inline comments
 
@@ -18,18 +18,23 @@ events {
 

	
 
http {
 
 include $ROOT/light9/web/mime.types;
 
 
 
 server {
 
  access_log off;
 
  autoindex on;
 

	
 
  include "/tmp/light9_nginx_routes.conf";
 

	
 
  location / {
 
    root $ROOT/light9/web;
 
  }
 

	
 
  location /node_modules {
 
    root $ROOT/;
 
  }
 

	
 
 }
 
}
 
EOF
 
head -1 /tmp/light9_nginx_routes.conf
 
exec /usr/sbin/nginx -c $CONF
light9/web/edit-choice-demo.html
Show inline comments
 
@@ -3,13 +3,13 @@
 
  <head>
 
    <title></title>
 
    <meta charset="utf-8" />
 
    <script src="/lib/webcomponentsjs/webcomponents-hi-sd-ce.js"></script>
 
    <link rel="import" href="rdfdb-synced-graph.html">
 
    <link rel="import" href="edit-choice.html">
 
    <script src="/lib/N3.js-pull61/browser/n3-browser.js"></script>
 
    <script src="/node_modules/n3/n3-browser.js"></script>
 
      <script src="/lib/knockout/dist/knockout.js"></script>
 
      <script src="/lib/shortcut/index.js"></script>
 
      <script src="/lib/async/dist/async.js"></script>
 
      <script src="/lib/underscore/underscore-min.js"></script>
 
  </head>
 
  <body>
light9/web/effects/index.html
Show inline comments
 
@@ -4,13 +4,13 @@
 
    <title>subserver effects2</title>
 
    <meta charset="utf-8" />
 
    <link rel="stylesheet" href="/style.css">
 
    <script src="/lib/webcomponentsjs/webcomponents-lite.min.js"></script>
 
    <link rel="import" href="/lib/polymer/polymer.html">
 
    <link rel="import" href="/lib/iron-ajax/iron-ajax.html">
 
    <script src="/lib/N3.js-pull61/browser/n3-browser.js"></script>
 
    <script src="/node_modules/n3/n3-browser.js"></script>
 
    <script src="/lib/async/dist/async.js"></script>
 
    <script src="/lib/underscore/underscore-min.js"></script>
 
    <link rel="import" href="/rdfdb-synced-graph.html">
 
    <link rel="import" href="/resource-display.html">
 
  </head>
 
  <body>
light9/web/graph.coffee
Show inline comments
 
@@ -3,14 +3,14 @@ log = console.log
 
# Patch is {addQuads: <quads>, delQuads: <quads>}
 
# <quads> is [{subject: s, ...}, ...]
 

	
 
# for mocha
 
if require?
 
  `window = {}`
 
  `N3 = require('./lib/N3.js-pull61/N3.js')`
 
  `d3 = require('./lib/d3/build/d3.min.js')`
 
  `N3 = require('../../node_modules/n3/n3-browser.js')`
 
  `d3 = require('../../node_modules/d3/dist/d3.min.js')`
 
  `RdfDbClient = require('./rdfdbclient.js').RdfDbClient`
 
  module.exports = window
 

	
 
RDF = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
 

	
 
patchSizeSummary = (patch) ->
light9/web/index.html
Show inline comments
 
<!doctype html>
 
<html>
 
  <head>
 
    <title>light9 home</title>
 
    <meta charset="utf-8" />
 
    <script src="/lib/webcomponentsjs/webcomponents-lite.min.js"></script>
 
    <script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
 
    <link rel="stylesheet" href="/style.css">
 
    <link rel="import" href="/lib/polymer/polymer.html">
 
    <link rel="import" href="/node_modules/@polymer/polymer/polymer.html">
 
  </head>
 
  <body>
 
    <dom-module id="service-button-row">
 
      <template>
 
        <style>
 
         a {
 
             color: #7d7dec;
 
         }
 
         div {
 
             display: flex;
 
             justify-content: space-between;
 
             padding: 2px 3px;
 
         }
 
         div:hover {
light9/web/lib/bower.json
Show inline comments
 
{
 
  "name": "3rd-party libs",
 
  "name": "3rd-party-libs",
 
  "dependencies": {
 
    "polymer": "2.6.0",
 
    "paper-slider": "PolymerElements/paper-slider#~2.0.6",
 
    "iron-ajax": "PolymerElements/iron-ajax#~2.1.3",
 
    "jquery": "^3.3.1",
 
    "underscore": "~1.8.3",
 
    "jquery-ui": "~1.11.4",
 
    "N3.js": "https://github.com/RubenVerborgh/N3.js.git#04f4e21f4ccb351587dc00a3f26340b28d4bb10f",
 
    "QueryString": "http://unixpapa.com/js/QueryString.js",
 
    "async": "https://github.com/caolan/async.git#^1.5.2",
 
    "color": "https://github.com/One-com/one-color.git#^3.0.4",
 
    "iron-ajax": "PolymerElements/iron-ajax#~2.1.3",
 
    "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^2.1.0",
 
    "isotope": "^3.0.4",
 
    "isotope-fit-columns": "^1.1.3",
 
    "jquery": "^3.3.1",
 
    "jquery-ui": "~1.11.4",
 
    "jquery.columnizer": "https://github.com/adamwulf/Columnizer-jQuery-Plugin.git#^1.6.2",
 
    "knockout": "knockoutjs#^3.4.2",
 
    "sylvester": "~0.1.3",
 
    "d3": "https://github.com/d3/d3.git#e7194db33090a0afc06c77a959594361ffb949df",
 
    "rdflib.js": "https://github.com/linkeddata/rdflib.js.git#920e59fe37",
 
    "rdfstore": "https://github.com/antoniogarrote/rdfstore-js.git#b3f7c0c9c1da9b26261af0d4858722fa982411bb",
 
    "N3.js": "https://github.com/RubenVerborgh/N3.js.git#04f4e21f4ccb351587dc00a3f26340b28d4bb10f",
 
    "shortcut": "http://www.openjs.com/scripts/events/keyboard_shortcuts/shortcut.js",
 
    "async": "https://github.com/caolan/async.git#^1.5.2",
 
    "iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^2.1.0",
 
    "paper-radio-button": "PolymerElements/paper-radio-button#^2.1.0",
 
    "paper-button": "PolymerElements/paper-button#^2.1.0",
 
    "paper-dialog": "PolymerElements/paper-dialog#^2.1.0",
 
    "paper-item": "PolymerElements/paper-item#2.1.0",
 
    "paper-listbox": "PolymerElements/paper-listbox#2.1.0",
 
    "paper-radio-button": "PolymerElements/paper-radio-button#^2.1.0",
 
    "paper-radio-group": "PolymerElements/paper-radio-group#^2.1.0",
 
    "color": "https://github.com/One-com/one-color.git#^3.0.4",
 
    "paper-listbox": "PolymerElements/paper-listbox#2.1.0",
 
    "paper-item": "PolymerElements/paper-item#2.1.0",
 
    "paper-slider": "PolymerElements/paper-slider#~2.0.6",
 
    "paper-styles": "PolymerElements/paper-styles#^2.1.0",
 
    "isotope": "^3.0.4",
 
    "isotope-fit-columns": "^1.1.3",
 
    "jquery.columnizer": "https://github.com/adamwulf/Columnizer-jQuery-Plugin.git#^1.6.2"
 
  },
 
  "resolutions": {
 
    "rdflib.js": "920e59fe37",
 
    "d3": "e7194db33090a0afc06c77a959594361ffb949df",
 
    "jquery": "^3.2.1",
 
    "webcomponentsjs": "^v1.1.0",
 
    "paper-radio-button": "^2.1.0",
 
    "iron-resizable-behavior": "^2.1.0",
 
    "polymer": "2.6.0",
 
    "paper-slider": "~2.0.6",
 
    "iron-ajax": "~2.1.3",
 
    "paper-styles": "^2.1.0"
 
    "rdflib.js": "https://github.com/linkeddata/rdflib.js.git#920e59fe37",
 
    "rdfstore": "https://github.com/antoniogarrote/rdfstore-js.git#b3f7c0c9c1da9b26261af0d4858722fa982411bb",
 
    "shortcut": "http://www.openjs.com/scripts/events/keyboard_shortcuts/shortcut.js",
 
    "sylvester": "~0.1.3",
 
    "underscore": "~1.8.3"
 
  }
 
}
light9/web/live/index.html
Show inline comments
 
@@ -10,13 +10,13 @@
 
    <link rel="import" href="/lib/paper-listbox/paper-listbox.html">
 
    <link rel="import" href="/lib/paper-item/paper-item.html">
 
    <link rel="import" href="/lib/iron-ajax/iron-ajax.html">
 
    <link rel="import" href="../light9-collector-client.html">
 

	
 
    <script src="/lib/d3/build/d3.min.js"></script>
 
    <script src="/lib/N3.js-pull61/browser/n3-browser.js"></script>
 
    <script src="/node_modules/n3/n3-browser.js"></script>
 
    <script src="/lib/async/dist/async.js"></script>
 
    <script src="/lib/underscore/underscore-min.js"></script>
 
    <!-- see live.coffee
 
         <script src="/lib/jquery/dist/jquery.js"></script>
 
         <script src="/lib/isotope/dist/isotope.pkgd.min.js"></script>
 
         <script src="/lib/isotope-fit-columns/fit-columns.js"></script>
 
@@ -160,13 +160,13 @@
 
        <template is="dom-if" if="{{deviceAttr.useChoice}}">
 
          <light9-listbox choices="{{deviceAttr.choices}}" value="{{value}}">
 
          </light9-listbox>
 
        </template>
 

	
 
      </template>
 
     
 
      
 
    </dom-module>
 

	
 
    <dom-module id="light9-live-device-control">
 
      <template>
 
        <style>
 
         :host {
 
@@ -240,13 +240,13 @@
 
         
 
         light9-live-device-control > div {
 
             break-inside: avoid-column;
 
         }
 
         light9-live-device-control {
 

	
 
             }
 
         }
 
        </style>
 
        <rdfdb-synced-graph graph="{{graph}}"></rdfdb-synced-graph>
 

	
 
        <light9-collector-client self="{{client}}"></light9-collector-client>
 
        <h1>device control
 
          <button on-click="resendAll">resend all</button>
light9/web/paint/paint-elements.html
Show inline comments
 
@@ -86,13 +86,13 @@
 
                 ></feComposite> -->
 
          </filter>
 
        </defs>
 
      </svg>
 
    </div>
 
  </template>
 
 
 
  
 
</dom-module>
 

	
 
<dom-module id="light9-paint">
 
  <template>
 
    <rdfdb-synced-graph graph="{{graph}}"></rdfdb-synced-graph>
 

	
 
@@ -105,12 +105,12 @@
 
    <div>To collector: <light9-collector-client self="{{client}}"></light9-collector-client></div>
 

	
 
    <light9-simulation graph="{{graph}}" solution="{{solve}}" layers="{{layers}}"></light9-simulation>
 
  </template>
 
</dom-module>
 

	
 
<script src="/lib/N3.js-pull61/browser/n3-browser.js"></script>
 
<script src="/node_modules/n3/n3-browser.js"></script>
 
<script src="/lib/shortcut/index.js"></script>
 
<script src="/lib/underscore/underscore-min.js"></script>
 
<script src="/lib/async/dist/async.js"></script>
 

	
 
<script src="paint-elements.js"></script>
light9/web/rdfdbclient.coffee
Show inline comments
 
log = console.log
 

	
 
# for mocha
 
if require?
 
  `window = {}`
 
  `N3 = require('./lib/N3.js-pull61/N3.js')`
 
  `N3 = require('../../node_modules/n3/n3-browser.js')`
 
  module.exports = window
 

	
 

	
 
toJsonPatch = (jsPatch, cb) ->
 
  out = {patch: {adds: '', deletes: ''}}
 

	
light9/web/timeline/index.html
Show inline comments
 
<!doctype html>
 
<html>
 
  <head>
 
    <title>timeline</title>
 
    <meta charset="utf-8" />
 
    <script src="/lib/webcomponentsjs/webcomponents-lite.min.js"></script>
 
    <script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-lite.js"></script>
 
    <link rel="import" href="timeline-elements.html">
 
  </head>
 
  <body>
 
    <light9-timeline-editor style="position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px;">
 
    </light9-timeline-editor>
 
  </body>
light9/web/timeline/timeline-elements.html
Show inline comments
 
@@ -73,13 +73,13 @@
 
      <light9-timeline-diagram-layer id="dia" selection="{{selection}}"></light9-timeline-diagram-layer>
 
      <light9-adjusters-canvas id="adjustersCanvas" set-adjuster="{{setAdjuster}}">
 
      </light9-adjusters-canvas>
 
      <light9-cursor-canvas id="cursorCanvas"></light9-cursor-canvas>
 
    </div>
 
  </template>
 
 
 
  
 
</dom-module>
 

	
 
<!-- the whole section that pans/zooms in time (most of the editor) -->
 
<dom-module id="light9-timeline-time-zoomed">
 
  <template>
 
    <style>
 
@@ -270,23 +270,19 @@
 
        </td></tr>
 
      </table>
 
    </div>
 
  </template>
 
</dom-module>
 

	
 
<script src="/lib/sylvester/sylvester.js"></script>
 
<script src="/lib/d3/build/d3.min.js"></script>
 

	
 
<!-- version with https://github.com/RubenVerborgh/N3.js/pull/61 -->
 
<script src="/lib/N3.js-pull61/browser/n3-browser.js"></script>
 
<!-- master version -->
 
<xxscript src="/lib/N3.js/browser/n3-browser.js"></script>
 
  
 
<script src="/lib/async/dist/async.js"></script>
 
<script src="/lib/knockout/dist/knockout.js"></script>
 
<script src="/lib/shortcut/index.js"></script>
 
<script src="/lib/async/dist/async.js"></script>
 
<script src="/lib/sylvester/sylvester.js"></script>
 
<script src="/lib/underscore/underscore-min.js"></script>
 
<script src="/lib/pixi.js/dist/pixi.min.js"></script>
 
<script src="/node_modules/d3/dist/d3.min.js"></script>
 
<script src="/node_modules/n3/n3-browser.js"></script> 
 
<script src="/node_modules/pixi.js/dist/pixi.min.js"></script>
 

	
 
<script src="adjustable.js"></script>
 
<script src="drawing.js"></script>
 
<script src="timeline.js"></script>
 
<script src="cursor_canvas.js"></script>
makefile
Show inline comments
 
@@ -48,18 +48,16 @@ node_modules/bower/bin/bower:
 

	
 
bin/node:
 
	ln -sf `which nodejs` bin/node
 

	
 
bower: node_modules/bower/bin/bower bin/node
 
	cd light9/web/lib; nodejs ../../../node_modules/bower/bin/bower install
 
	# pixi is fetched with npm
 
	ln -s ../../../node_modules/pixi.js light9/web/lib/
 

	
 
	cd light9/web/lib/N3.js; npm install; PATH=../../../../bin:$(PATH) npm run browser
 

	
 
	cd light9/web/lib/d3; PATH=../../../../bin:$(PATH) npm install
 
npm:
 
	npm install
 
	cd node_modules/n3; nodejs ../browserify/bin/cmd.js --standalone N3 --require n3 -o n3-browser.js
 

	
 
bin/ascoltami2: gst_packages link_to_sys_packages
 

	
 
effect_node_setup: create_virtualenv packages binexec install_python_deps
 

	
 
tkdnd_build:
package.json
Show inline comments
 
{
 
  "name": "light9",
 
  "version": "1.0.0",
 
  "repository": "...",
 
  "license": "MIT",
 
  "description": "Mini instructions:",
 
  "main": "index.js",
 
  "directories": {
 
    "test": "test"
 
  },
 
  "dependencies": {
 
    "@webcomponents/shadycss": "^1.1.3",
 
    "@webcomponents/webcomponentsjs": "^1.2.0",
 
    "bower": "^1.8.0",
 
    "browserify": "^16.2.0",
 
    "chai": "^3.5.0",
 
    "d3": "^5.1.0",
 
    "mocha": "^2.5.3",
 
    "n3": "^1.0.0-alpha",
 
    "pixi.js": "^4.7.3"
 
  },
 
  "devDependencies": {
 
    "mocha": "^2.5.3"
 
  },
 
  "scripts": {
0 comments (0 inline, 0 general)