|
|
@ -7,6 +7,7 @@ define([
|
|
|
|
'/bower_components/nthen/index.js',
|
|
|
|
'/bower_components/nthen/index.js',
|
|
|
|
'/common/sframe-common.js',
|
|
|
|
'/common/sframe-common.js',
|
|
|
|
'/common/common-interface.js',
|
|
|
|
'/common/common-interface.js',
|
|
|
|
|
|
|
|
'/common/common-hash.js',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
'/common/hyperscript.js',
|
|
|
|
'/api/config',
|
|
|
|
'/api/config',
|
|
|
|
'/common/common-realtime.js',
|
|
|
|
'/common/common-realtime.js',
|
|
|
@ -28,6 +29,7 @@ define([
|
|
|
|
nThen,
|
|
|
|
nThen,
|
|
|
|
SFCommon,
|
|
|
|
SFCommon,
|
|
|
|
UI,
|
|
|
|
UI,
|
|
|
|
|
|
|
|
Hash,
|
|
|
|
h,
|
|
|
|
h,
|
|
|
|
ApiConfig,
|
|
|
|
ApiConfig,
|
|
|
|
CommonRealtime,
|
|
|
|
CommonRealtime,
|
|
|
@ -67,9 +69,13 @@ define([
|
|
|
|
logLevel: 0,
|
|
|
|
logLevel: 0,
|
|
|
|
noPrune: true
|
|
|
|
noPrune: true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
var hashes = metadataMgr.getPrivateData().availableHashes;
|
|
|
|
|
|
|
|
var hash = hashes.editHash || hashes.viewHash;
|
|
|
|
|
|
|
|
var chan = Hash.hrefToHexChannelId('/drive/#'+hash);
|
|
|
|
|
|
|
|
|
|
|
|
var makeGraph = function () {
|
|
|
|
var makeGraph = function () {
|
|
|
|
var out = [
|
|
|
|
var out = [
|
|
|
|
'digraph {'
|
|
|
|
chan + ' digraph {'
|
|
|
|
];
|
|
|
|
];
|
|
|
|
var parseBlock = function (x) {
|
|
|
|
var parseBlock = function (x) {
|
|
|
|
var c = x.getChildren();
|
|
|
|
var c = x.getChildren();
|
|
|
|