diff --git a/bootstrap.js b/bootstrap.js index f2ee890b39bf8e1e915a5b5450dcc5ba4cf68d36..cf278edcb9aae18779512055eeedf50d94dd6a85 100644 --- a/bootstrap.js +++ b/bootstrap.js @@ -32,9 +32,10 @@ let View = {} window.onload = () => { console.log('BOOTUP') - NROL.addHunk('hidden/view', 'TLView').then((view) => { + NROL.addHunk('view', 'TLView').then((view) => { console.log('ADDHUNK VIEW RESOLVES') View = view + $(View.dom).attr('id', 'NROLVIEW') $('#wrapper').get(0).append(View.dom) }).then(() => { NROL.addLink(View.id, 'msgs', NROL.id, 'msgs') diff --git a/gogetter.js b/gogetter.js index 9fc2ba7095299afd358c5c1ad421cebeae887aa8..ed0dae9a7d4156fd16bf6e1c4155a7890fc7c258 100644 --- a/gogetter.js +++ b/gogetter.js @@ -52,6 +52,7 @@ function GoGetter() { // now, writing menu options for each path // sort alphabetically returned.sort() + //console.log('GG returns this', JSON.parse(JSON.stringify(returned))) resolve(returned) } } diff --git a/hunks/comm/websocketclient.js b/hunks/comm/websocketclient.js index 934dbbba49b7e8b3e1be8c9790cb694ad9c4c973..1fafe9c799d78ceeed77c799c332e9d797f04d10 100644 --- a/hunks/comm/websocketclient.js +++ b/hunks/comm/websocketclient.js @@ -24,7 +24,7 @@ function WebSocketClient() { this.outbuffer = new Array() this.init = () => { - //startWs() + startWs() } let startWs = () => { diff --git a/hunks/link.js b/hunks/link.js index 6b977f64ce6196e829bf674c908a6573bc741a6f..61f196c43f9d94281a5b3cff284643a8c0bae53a 100644 --- a/hunks/link.js +++ b/hunks/link.js @@ -142,13 +142,13 @@ function Link() { // if there's a message on the input, and the downstream is clear, if (inports[i].io && inports[i].dss === 'open') { // we can send it, and reset to await an ack - console.log('i', typeof i) + this.log('i', typeof i) let dsmsg = { msg: inports[i].get(), port: parseInt(i), isAck: false, } - console.log('LNK MSG OUT', dsmsg) + this.log('LNK MSG OUT', dsmsg) inports[i].dss = 'await ack' outbuffer.push(dsmsg) } else { diff --git a/hunks/hidden/view.js b/hunks/view.js similarity index 98% rename from hunks/hidden/view.js rename to hunks/view.js index f734935f75599bf122bfe2d4b0025e7ed18171bd..ce6afc0ccb84d166eb06f4dcc7d249f22fbb9426 100644 --- a/hunks/hidden/view.js +++ b/hunks/view.js @@ -1,13 +1,19 @@ /* -NROL39 +VIEW -... is this a hunk ? or a nested object in the manager ... + - scrape to manager, + - manager gogetter ... and then, hello click + - and then, nicely: + - also - link for flowcontrol when downstream non-conn ? the init-over-link question? a few states ... + - div structure ... ? open something up just barely, to test node and scraper + - beer 2 celly + - div structure: the div(div) scaling unfuckery */ -import { Hunkify, Input, Output, State } from '../hunks.js' -import * as BZ from '../../bztools.js' +import { Hunkify, Input, Output, State } from './hunks.js' +import * as BZ from '../bztools.js' function View() { Hunkify(this, 'View') @@ -34,8 +40,7 @@ function View() { // so this is kind of like the 'window.onload' function this.log('hello ui') // for nested dom elements, - this.dom = $('<div>').attr('id', this.id).addClass('view').get(0) - //$(this.dom).append('anything') + this.dom = $('<div>').addClass('view').get(0) // zoom the context this.dom.addEventListener('wheel', mouseWheelListener) diff --git a/programs/mvnv.json b/programs/mvnv.json index 42dfc45121734fb0fbc7cdf19f3284b4adb27954..7d04021fdf7d9679bb834b6d4973aaf9c221cbb7 100644 --- a/programs/mvnv.json +++ b/programs/mvnv.json @@ -22,7 +22,7 @@ "id": "wsclient" }, { - "name": "hidden/view", + "name": "view", "id": "nautilusview" }], "links": [ diff --git a/style.css b/style.css index 3977c353ad8ed740fe938eb3f5c489791534b6f1..f251a1de60590943d48bc0c322b7478e11c3bad9 100644 --- a/style.css +++ b/style.css @@ -36,9 +36,13 @@ body { margin: 0px; } -.view { +#NROLVIEW { height: 100%; width: 100%; +} + +.view { + height: 400px; background: #d6d6d6; /*background-image:url("background.png");*/ /*background-origin: content-box;*/