Skip to content

Commit

Permalink
migrate SEA, some improvements, some regressions
Browse files Browse the repository at this point in the history
  • Loading branch information
amark committed Apr 7, 2018
1 parent 0591539 commit f72aba3
Show file tree
Hide file tree
Showing 6 changed files with 488 additions and 528 deletions.
3 changes: 3 additions & 0 deletions as.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
as.lock = g;
g.put(data);
}, 99));
$(document).on('submit', 'form', function(e){ e.preventDefault() });
var u;
window.as = as;
$.as = as;
Expand All @@ -113,8 +114,10 @@
var h = href.split('/')[0];
$('.page').hide();
$('#' + h).show();
if(r.on === h){ return }
location.hash = href;
(r.page[h] || {on:function(){}}).on();
r.on = h;
return r;
};
r.page = function(h, cb){
Expand Down
24 changes: 12 additions & 12 deletions examples/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ body {
font-size: 18pt;
}

div, ul, li, p, span, form, button, input, textarea {
div, ul, ol, li, p, span, form, button, input, textarea {
margin: 0;
padding: 0;
position: relative;
Expand Down Expand Up @@ -74,6 +74,17 @@ ul, li {
line-height: 0em;
}

.rim {
margin: 2%;
}
.gap {
padding: 3%;
}
.ditch {
margin-top: 2em;
margin-bottom: 2em;
}

.sit { margin-bottom: 0; }
.row { width: 100%; }
.col { max-width: 33em; }
Expand All @@ -89,17 +100,6 @@ ul, li {
display: inline-block;
}

.rim {
margin: 2%;
}
.gap {
padding: 3%;
}
.ditch {
margin-top: 2em;
margin-bottom: 2em;
}

.loud {
font-size: 150%;
}
Expand Down
1 change: 0 additions & 1 deletion gun.js
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,6 @@
var tmp = cat.root.now; obj.del(cat.root, 'now'); cat.root.PUT = true;
var tmp2 = cat.root.stop;
(as.ref._).now = true;
console.log("PUT!", as.env.graph);
(as.ref._).on('out', {
gun: as.ref, put: as.out = as.env.graph, opt: as.opt, '#': ask
});
Expand Down
121 changes: 44 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gun",
"version": "0.9.991",
"version": "0.9.992",
"description": "A realtime, decentralized, offline-first, graph data synchronization engine.",
"main": "index.js",
"browser": "gun.min.js",
Expand Down Expand Up @@ -53,19 +53,19 @@
"devDependencies": {
"@std/esm": "^0.8.3",
"@trust/webcrypto": "^0.7.1",
"aws-sdk": ">=2.153.0",
"express": ">=4.15.2",
"fake-indexeddb": "^2.0.3",
"hapi": "^17.2.0",
"inert": "^5.1.0",
"ip": "^1.1.5",
"mocha": ">=3.2.0",
"node-localstorage": "^1.3.0",
"node-webcrypto-ossl": "^1.0.31",
"node-webcrypto-ossl": "^1.0.36",
"panic-manager": "^1.2.0",
"panic-server": "^1.1.1",
"text-encoding": "^0.6.4",
"uglify-js": ">=2.8.22",
"uws": "~>0.14.1",
"aws-sdk": ">=2.153.0"
"uws": "~>0.14.1"
}
}
Loading

0 comments on commit f72aba3

Please sign in to comment.