mirror of
https://github.com/urbit/shrub.git
synced 2024-12-04 14:58:10 +03:00
Merge branch 'clock' of https://github.com/ohAitch/base into clock
This commit is contained in:
commit
6928592e08
@ -72,7 +72,7 @@
|
|||||||
== ::
|
== ::
|
||||||
++ pear :: poke fruit
|
++ pear :: poke fruit
|
||||||
$% {$talk-command command} ::
|
$% {$talk-command command} ::
|
||||||
{$write-comment path ship cord} ::
|
{$write-comment spur ship cord} ::
|
||||||
== ::
|
== ::
|
||||||
++ card :: general card
|
++ card :: general card
|
||||||
$% {$diff lime} ::
|
$% {$diff lime} ::
|
||||||
@ -1300,17 +1300,17 @@
|
|||||||
::
|
::
|
||||||
++ ra-base-hart .^(hart %e /(scot %p our.hid)/host/(scot %da now.hid))
|
++ ra-base-hart .^(hart %e /(scot %p our.hid)/host/(scot %da now.hid))
|
||||||
++ ra-comment
|
++ ra-comment
|
||||||
|= {pax/path txt/@t}
|
|= {pax/path sup/spur txt/@t}
|
||||||
=. ..ra-emit
|
=. ..ra-emit
|
||||||
%+ ra-emit ost.hid
|
%+ ra-emit ost.hid
|
||||||
:* %poke
|
:* %poke
|
||||||
/comment
|
/comment
|
||||||
[our.hid %hood]
|
[our.hid %hood]
|
||||||
[%write-comment pax src.hid txt]
|
[%write-comment sup src.hid txt]
|
||||||
==
|
==
|
||||||
=+ man=%comments
|
=+ man=%comments
|
||||||
?: (~(has by stories) man)
|
?: (~(has by stories) man)
|
||||||
(ra-consume-comment man pax txt)
|
(ra-consume-comment man pax sup txt)
|
||||||
=. ..ra-apply
|
=. ..ra-apply
|
||||||
%+ ra-apply our.hid
|
%+ ra-apply our.hid
|
||||||
:+ %design man
|
:+ %design man
|
||||||
@ -1323,11 +1323,11 @@
|
|||||||
(my [[%& our.hid (main our.hid)] *envelope %pending] ~)
|
(my [[%& our.hid (main our.hid)] *envelope %pending] ~)
|
||||||
now.hid
|
now.hid
|
||||||
[~ %app %tree 'receiving comments, ;join %comments for details']
|
[~ %app %tree 'receiving comments, ;join %comments for details']
|
||||||
(ra-consume-comment man pax txt)
|
(ra-consume-comment man pax sup txt)
|
||||||
::
|
::
|
||||||
++ ra-consume-comment
|
++ ra-consume-comment
|
||||||
|= {man/knot pax/path txt/@t} ^+ +>
|
|= {man/knot pax/path sup/spur txt/@t} ^+ +>
|
||||||
=+ nam==+(xap=(flop pax) ?~(xap "" (trip i.xap))) :: file name
|
=+ nam=?~(sup "" (trip i.sup)) :: file name
|
||||||
=+ fra=(crip (time-to-id now.hid)) :: url fragment
|
=+ fra=(crip (time-to-id now.hid)) :: url fragment
|
||||||
%^ ra-consume &
|
%^ ra-consume &
|
||||||
src.hid
|
src.hid
|
||||||
@ -2218,8 +2218,8 @@
|
|||||||
[ost.hid %info /jamfile our.hid (foal paf [%talk-telegrams !>(-)])]
|
[ost.hid %info /jamfile our.hid (foal paf [%talk-telegrams !>(-)])]
|
||||||
::
|
::
|
||||||
++ poke-talk-comment
|
++ poke-talk-comment
|
||||||
|= {pax/path txt/@t} ^- (quip move +>)
|
|= {pax/path sup/spur txt/@t} ^- (quip move +>)
|
||||||
ra-abet:(ra-comment:ra pax txt)
|
ra-abet:(ra-comment:ra pax sup txt)
|
||||||
::
|
::
|
||||||
++ poke-talk-save
|
++ poke-talk-save
|
||||||
|= man/knot
|
|= man/knot
|
||||||
|
@ -77,8 +77,8 @@
|
|||||||
(poke--data [`typ /web/paste/(scot %da now)] %mime / (taco txt))
|
(poke--data [`typ /web/paste/(scot %da now)] %mime / (taco txt))
|
||||||
::
|
::
|
||||||
++ poke-comment
|
++ poke-comment
|
||||||
|= {pax/path him/ship txt/@t} ^+ abet
|
|= {sup/spur him/ship txt/@t} ^+ abet
|
||||||
=. pax [%web (welp pax /comments/(scot %da now))]
|
=+ pax=(welp (flop sup) /comments/(scot %da now))
|
||||||
=. txt
|
=. txt
|
||||||
%+ rap 3 :~
|
%+ rap 3 :~
|
||||||
'## `' (scot %p him) '`'
|
'## `' (scot %p him) '`'
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
::
|
::
|
||||||
/? 310
|
/? 310
|
||||||
!:
|
!:
|
||||||
|_ {pax/path txt/@t}
|
|_ {pax/path sup/spur txt/@t}
|
||||||
++ grab
|
++ grab
|
||||||
|%
|
|%
|
||||||
++ noun {path @t}
|
++ noun {path spur @t}
|
||||||
++ json
|
++ json
|
||||||
(corl need =>(jo (ot pax+(su fel:stab) txt+so ~)))
|
(corl need =>(jo (ot pax+(su fel:stab) sup+(su fel:stab) txt+so ~)))
|
||||||
--
|
--
|
||||||
--
|
--
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
!:
|
!:
|
||||||
::::
|
::::
|
||||||
::
|
::
|
||||||
|_ all/(list (pair time manx))
|
|_ all/(list (pair time {ship marl}))
|
||||||
::
|
::
|
||||||
++ grow :: convert to
|
++ grow :: convert to
|
||||||
|%
|
|%
|
||||||
@ -14,9 +14,9 @@
|
|||||||
:- %a
|
:- %a
|
||||||
%+ turn
|
%+ turn
|
||||||
(sort all |=({a/* b/*} (lor b a)))
|
(sort all |=({a/* b/*} (lor b a)))
|
||||||
|= {a/time b/manx} ^- ^json
|
|= {a/time b/ship c/marl} ^- ^json
|
||||||
=. a.g.b [id+(time-to-id a) a.g.b]
|
=+ bod=[[%div id+(time-to-id a) ~] c]
|
||||||
(jobe time+(jode a) body+(react-to-json:react b) ~)
|
(jobe time+(jode a) user+(jape +:<b>) body+(react-to-json:react bod) ~)
|
||||||
--
|
--
|
||||||
++ grab |% :: convert from
|
++ grab |% :: convert from
|
||||||
++ noun (list {time manx}) :: clam from %noun
|
++ noun (list {time manx}) :: clam from %noun
|
||||||
|
@ -2,8 +2,14 @@
|
|||||||
:::: /hoon/comments/tree/ren
|
:::: /hoon/comments/tree/ren
|
||||||
::
|
::
|
||||||
/? 310
|
/? 310
|
||||||
/: /%/comments /_ @da /&elem&/md/
|
/: /%/comments /_ @da
|
||||||
|
/; |= a/manx ^- {ship marl}
|
||||||
|
~| a
|
||||||
|
?> ?=(_[/div ;/(~) ~[[%h2 **] ~[[%code **] ;/(who=**)]] kid=**] a)
|
||||||
|
=> .(a ^+([/div ;/(~) ~[[%h2 **] ~[[%code **] ;/(who=*tape)]] kid=*marl] a))
|
||||||
|
[(slav %p (crip who.a)) kid.a]
|
||||||
|
/&elem&/md/
|
||||||
::
|
::
|
||||||
::::
|
::::
|
||||||
::
|
::
|
||||||
`(list (pair time manx))`-.-
|
`(list (pair time {ship marl}))`-.-
|
||||||
|
132
web/tree/main.js
132
web/tree/main.js
@ -56,12 +56,10 @@ module.exports = {
|
|||||||
components: components
|
components: components
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
addComment: function(pax, txt) {
|
addComment: function(pax, sup, txt) {
|
||||||
if (pax[0] !== "/") {
|
|
||||||
pax = "/" + pax;
|
|
||||||
}
|
|
||||||
return TreePersistence.put({
|
return TreePersistence.put({
|
||||||
pax: pax,
|
pax: pax,
|
||||||
|
sup: sup,
|
||||||
txt: txt
|
txt: txt
|
||||||
}, "talk-comment");
|
}, "talk-comment");
|
||||||
},
|
},
|
||||||
@ -108,7 +106,7 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
},{"../dispatcher/Dispatcher.coffee":24,"../persistence/TreePersistence.coffee":26}],2:[function(require,module,exports){
|
},{"../dispatcher/Dispatcher.coffee":23,"../persistence/TreePersistence.coffee":25}],2:[function(require,module,exports){
|
||||||
var TreeActions, TreeStore, _load, code, div, fragsrc, recl, ref, span, util;
|
var TreeActions, TreeStore, _load, code, div, fragsrc, recl, ref, span, util;
|
||||||
|
|
||||||
util = require('../utils/util.coffee');
|
util = require('../utils/util.coffee');
|
||||||
@ -175,7 +173,8 @@ module.exports = function(queries, Child, load) {
|
|||||||
return {
|
return {
|
||||||
path: path,
|
path: path,
|
||||||
fresh: fresh,
|
fresh: fresh,
|
||||||
got: got
|
got: got,
|
||||||
|
queries: queries
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mergeWith: function(have, fresh, _queries) {
|
mergeWith: function(have, fresh, _queries) {
|
||||||
@ -281,7 +280,7 @@ module.exports = function(queries, Child, load) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
},{"../actions/TreeActions.coffee":1,"../stores/TreeStore.coffee":27,"../utils/util.coffee":29,"./LoadComponent.coffee":12}],3:[function(require,module,exports){
|
},{"../actions/TreeActions.coffee":1,"../stores/TreeStore.coffee":26,"../utils/util.coffee":28,"./LoadComponent.coffee":12}],3:[function(require,module,exports){
|
||||||
var Comments, TreeActions, TreeStore, a, clas, div, extras, h1, h3, img, input, load, p, query, reactify, recl, ref, rele, util;
|
var Comments, TreeActions, TreeStore, a, clas, div, extras, h1, h3, img, input, load, p, query, reactify, recl, ref, rele, util;
|
||||||
|
|
||||||
clas = require('classnames');
|
clas = require('classnames');
|
||||||
@ -540,7 +539,7 @@ module.exports = query({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
},{"../actions/TreeActions.coffee":1,"../stores/TreeStore.coffee":27,"../utils/util.coffee":29,"./Async.coffee":2,"./CommentsComponent.coffee":5,"./LoadComponent.coffee":12,"./Reactify.coffee":17,"classnames":30}],4:[function(require,module,exports){
|
},{"../actions/TreeActions.coffee":1,"../stores/TreeStore.coffee":26,"../utils/util.coffee":28,"./Async.coffee":2,"./CommentsComponent.coffee":5,"./LoadComponent.coffee":12,"./Reactify.coffee":17,"classnames":29}],4:[function(require,module,exports){
|
||||||
var div, recl, ref, textarea;
|
var div, recl, ref, textarea;
|
||||||
|
|
||||||
recl = React.createClass;
|
recl = React.createClass;
|
||||||
@ -564,7 +563,7 @@ module.exports = recl({
|
|||||||
|
|
||||||
|
|
||||||
},{}],5:[function(require,module,exports){
|
},{}],5:[function(require,module,exports){
|
||||||
var Comment, Ship, TreeActions, a, clas, code, div, form, img, input, load, p, query, reactify, recl, ref, rele, textarea, util;
|
var Comment, Ship, TreeActions, a, clas, code, div, form, h2, img, input, load, p, query, reactify, recl, ref, rele, textarea, util;
|
||||||
|
|
||||||
clas = require('classnames');
|
clas = require('classnames');
|
||||||
|
|
||||||
@ -578,31 +577,34 @@ TreeActions = require('../actions/TreeActions.coffee');
|
|||||||
|
|
||||||
util = require('../utils/util.coffee');
|
util = require('../utils/util.coffee');
|
||||||
|
|
||||||
Ship = require('./ShipComponent.coffee');
|
|
||||||
|
|
||||||
recl = React.createClass;
|
recl = React.createClass;
|
||||||
|
|
||||||
rele = React.createElement;
|
rele = React.createElement;
|
||||||
|
|
||||||
ref = React.DOM, div = ref.div, p = ref.p, img = ref.img, a = ref.a, form = ref.form, textarea = ref.textarea, input = ref.input, code = ref.code;
|
ref = React.DOM, div = ref.div, p = ref.p, h2 = ref.h2, img = ref.img, a = ref.a, form = ref.form, textarea = ref.textarea, input = ref.input, code = ref.code;
|
||||||
|
|
||||||
|
Ship = function(name) {
|
||||||
|
return code({
|
||||||
|
title: "~" + name
|
||||||
|
}, "~", util.shortShip(name));
|
||||||
|
};
|
||||||
|
|
||||||
Comment = function(arg) {
|
Comment = function(arg) {
|
||||||
var body, loading, ref1, time;
|
var body, loading, ref1, time, user;
|
||||||
time = arg.time, body = arg.body, loading = (ref1 = arg.loading) != null ? ref1 : false;
|
time = arg.time, user = arg.user, body = arg.body, loading = (ref1 = arg.loading) != null ? ref1 : false;
|
||||||
return div({
|
return div({
|
||||||
className: clas("comment", {
|
className: clas("comment", {
|
||||||
loading: loading
|
loading: loading
|
||||||
})
|
})
|
||||||
}, "" + (window.urb.util.toDate(new Date(time))), reactify(body, "comt", {
|
}, "" + (window.urb.util.toDate(new Date(time))), h2({}, Ship(user)), reactify(body, "comt", {
|
||||||
components: {
|
components: {}
|
||||||
ship: Ship
|
|
||||||
}
|
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = query({
|
module.exports = query({
|
||||||
comt: 'j',
|
comt: 'j',
|
||||||
path: 't'
|
path: 't',
|
||||||
|
spur: 't'
|
||||||
}, recl({
|
}, recl({
|
||||||
displayName: "Comments",
|
displayName: "Comments",
|
||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
@ -619,29 +621,20 @@ module.exports = query({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onSubmit: function(e) {
|
onSubmit: function(e) {
|
||||||
var body, value;
|
var body, user, value;
|
||||||
value = this.refs["in"].comment.value;
|
value = this.refs["in"].comment.value;
|
||||||
TreeActions.addComment(this.props.path, value);
|
TreeActions.addComment(this.props.path, this.props.spur, value);
|
||||||
body = {
|
body = {
|
||||||
gn: 'div',
|
gn: 'p',
|
||||||
c: [
|
c: [value]
|
||||||
{
|
|
||||||
gn: 'ship',
|
|
||||||
ga: {
|
|
||||||
ship: urb.user
|
|
||||||
},
|
|
||||||
c: []
|
|
||||||
}, {
|
|
||||||
gn: 'p',
|
|
||||||
c: [value]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
user = urb.user;
|
||||||
this.setState({
|
this.setState({
|
||||||
value: "",
|
value: "",
|
||||||
loading: {
|
loading: {
|
||||||
'loading': 'loading',
|
'loading': 'loading',
|
||||||
body: body,
|
body: body,
|
||||||
|
user: urb.user,
|
||||||
time: Date.now()
|
time: Date.now()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -674,9 +667,7 @@ module.exports = query({
|
|||||||
}, form({
|
}, form({
|
||||||
ref: "in",
|
ref: "in",
|
||||||
onSubmit: this.onSubmit
|
onSubmit: this.onSubmit
|
||||||
}, rele(Ship, {
|
}, Ship(urb.user), textarea(textareaAttr), input(inputAttr))), div({
|
||||||
ship: urb.user
|
|
||||||
}), textarea(textareaAttr), input(inputAttr))), div({
|
|
||||||
className: "comments"
|
className: "comments"
|
||||||
}, (this.state.loading != null ? rele(Comment, this.state.loading) : void 0), this.props.comt.map(function(props, key) {
|
}, (this.state.loading != null ? rele(Comment, this.state.loading) : void 0), this.props.comt.map(function(props, key) {
|
||||||
return rele(Comment, _.extend({
|
return rele(Comment, _.extend({
|
||||||
@ -687,7 +678,7 @@ module.exports = query({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
},{"../actions/TreeActions.coffee":1,"../utils/util.coffee":29,"./Async.coffee":2,"./LoadComponent.coffee":12,"./Reactify.coffee":17,"./ShipComponent.coffee":20,"classnames":30}],6:[function(require,module,exports){
|
},{"../actions/TreeActions.coffee":1,"../utils/util.coffee":28,"./Async.coffee":2,"./LoadComponent.coffee":12,"./Reactify.coffee":17,"classnames":29}],6:[function(require,module,exports){
|
||||||
var div, recl;
|
var div, recl;
|
||||||
|
|
||||||
recl = React.createClass;
|
recl = React.createClass;
|
||||||
@ -706,8 +697,6 @@ module.exports = {
|
|||||||
plan: require('./PlanComponent.coffee'),
|
plan: require('./PlanComponent.coffee'),
|
||||||
panel: require('./PanelComponent.coffee'),
|
panel: require('./PanelComponent.coffee'),
|
||||||
imagepanel: require('./ImagepanelComponent.coffee'),
|
imagepanel: require('./ImagepanelComponent.coffee'),
|
||||||
load: require('./LoadComponent.coffee'),
|
|
||||||
ship: require('./ShipComponent.coffee'),
|
|
||||||
lost: recl({
|
lost: recl({
|
||||||
render: function() {
|
render: function() {
|
||||||
return div({}, "<lost(", this.props.children, ")>");
|
return div({}, "<lost(", this.props.children, ")>");
|
||||||
@ -716,7 +705,7 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
},{"./CodeMirror.coffee":4,"./EmailComponent.coffee":8,"./ImagepanelComponent.coffee":9,"./KidsComponent.coffee":10,"./ListComponent.coffee":11,"./LoadComponent.coffee":12,"./ModuleComponent.coffee":13,"./PanelComponent.coffee":15,"./PlanComponent.coffee":16,"./ScriptComponent.coffee":18,"./SearchComponent.coffee":19,"./ShipComponent.coffee":20,"./TocComponent.coffee":22}],7:[function(require,module,exports){
|
},{"./CodeMirror.coffee":4,"./EmailComponent.coffee":8,"./ImagepanelComponent.coffee":9,"./KidsComponent.coffee":10,"./ListComponent.coffee":11,"./ModuleComponent.coffee":13,"./PanelComponent.coffee":15,"./PlanComponent.coffee":16,"./ScriptComponent.coffee":18,"./SearchComponent.coffee":19,"./TocComponent.coffee":21}],7:[function(require,module,exports){
|
||||||
var a, div, recl, ref, util;
|
var a, div, recl, ref, util;
|
||||||
|
|
||||||
util = require('../utils/util.coffee');
|
util = require('../utils/util.coffee');
|
||||||
@ -774,7 +763,7 @@ module.exports = recl({
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
},{"../utils/util.coffee":29}],8:[function(require,module,exports){
|
},{"../utils/util.coffee":28}],8:[function(require,module,exports){
|
||||||
var button, div, input, p, recl, ref;
|
var button, div, input, p, recl, ref;
|
||||||
|
|
||||||
recl = React.createClass;
|
recl = React.createClass;
|
||||||
@ -970,7 +959,7 @@ module.exports = query({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
},{"./Async.coffee":2,"./Reactify.coffee":17,"classnames":30}],11:[function(require,module,exports){
|
},{"./Async.coffee":2,"./Reactify.coffee":17,"classnames":29}],11:[function(require,module,exports){
|
||||||
var a, clas, div, h1, li, pre, query, reactify, recl, ref, span, ul, util;
|
var a, clas, div, h1, li, pre, query, reactify, recl, ref, span, ul, util;
|
||||||
|
|
||||||
clas = require('classnames');
|
clas = require('classnames');
|
||||||
@ -1041,6 +1030,9 @@ module.exports = query({
|
|||||||
if (sorted !== true) {
|
if (sorted !== true) {
|
||||||
_keys = _.keys(this.props.kids).sort();
|
_keys = _.keys(this.props.kids).sort();
|
||||||
}
|
}
|
||||||
|
if (this.props.dataType === 'post') {
|
||||||
|
_keys = _keys.reverse();
|
||||||
|
}
|
||||||
ref5 = _.values(_keys);
|
ref5 = _.values(_keys);
|
||||||
results = [];
|
results = [];
|
||||||
for (i = 0, len = ref5.length; i < len; i++) {
|
for (i = 0, len = ref5.length; i < len; i++) {
|
||||||
@ -1198,7 +1190,7 @@ module.exports = query({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
},{"../utils/util.coffee":29,"./Async.coffee":2,"./Reactify.coffee":17,"classnames":30}],12:[function(require,module,exports){
|
},{"../utils/util.coffee":28,"./Async.coffee":2,"./Reactify.coffee":17,"classnames":29}],12:[function(require,module,exports){
|
||||||
var div, recl, ref, span;
|
var div, recl, ref, span;
|
||||||
|
|
||||||
recl = React.createClass;
|
recl = React.createClass;
|
||||||
@ -1599,7 +1591,7 @@ module.exports = query({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
},{"../actions/TreeActions.coffee":1,"../stores/TreeStore.coffee":27,"../utils/util.coffee":29,"./Async.coffee":2,"./BodyComponent.coffee":3,"./DpadComponent.coffee":7,"./Reactify.coffee":17,"./SibsComponent.coffee":21,"classnames":30}],15:[function(require,module,exports){
|
},{"../actions/TreeActions.coffee":1,"../stores/TreeStore.coffee":26,"../utils/util.coffee":28,"./Async.coffee":2,"./BodyComponent.coffee":3,"./DpadComponent.coffee":7,"./Reactify.coffee":17,"./SibsComponent.coffee":20,"classnames":29}],15:[function(require,module,exports){
|
||||||
var a, li, nav, recl, ref, rele, ul;
|
var a, li, nav, recl, ref, rele, ul;
|
||||||
|
|
||||||
recl = React.createClass;
|
recl = React.createClass;
|
||||||
@ -1955,7 +1947,7 @@ module.exports = _.extend(reactify, {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
},{"../stores/TreeStore.coffee":27,"./LoadComponent.coffee":12}],18:[function(require,module,exports){
|
},{"../stores/TreeStore.coffee":26,"./LoadComponent.coffee":12}],18:[function(require,module,exports){
|
||||||
var appendNext, recl, rele, waitingScripts;
|
var appendNext, recl, rele, waitingScripts;
|
||||||
|
|
||||||
recl = React.createClass;
|
recl = React.createClass;
|
||||||
@ -2141,25 +2133,6 @@ module.exports = query({
|
|||||||
|
|
||||||
|
|
||||||
},{"./Async.coffee":2,"./Reactify.coffee":17}],20:[function(require,module,exports){
|
},{"./Async.coffee":2,"./Reactify.coffee":17}],20:[function(require,module,exports){
|
||||||
var div, recl;
|
|
||||||
|
|
||||||
recl = React.createClass;
|
|
||||||
|
|
||||||
div = React.DOM.div;
|
|
||||||
|
|
||||||
module.exports = recl({
|
|
||||||
render: function() {
|
|
||||||
var attr;
|
|
||||||
attr = {
|
|
||||||
"data-alias": "~" + window.tree.util.shortShip(this.props.ship),
|
|
||||||
className: 'ship'
|
|
||||||
};
|
|
||||||
return div(attr, "~", this.props.ship);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
},{}],21:[function(require,module,exports){
|
|
||||||
var a, clas, li, query, reactify, recl, ref, ul, util;
|
var a, clas, li, query, reactify, recl, ref, ul, util;
|
||||||
|
|
||||||
util = require('../utils/util.coffee');
|
util = require('../utils/util.coffee');
|
||||||
@ -2243,7 +2216,7 @@ module.exports = query({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
},{"../utils/util.coffee":29,"./Async.coffee":2,"./Reactify.coffee":17,"classnames":30}],22:[function(require,module,exports){
|
},{"../utils/util.coffee":28,"./Async.coffee":2,"./Reactify.coffee":17,"classnames":29}],21:[function(require,module,exports){
|
||||||
var div, query, reactify, recl,
|
var div, query, reactify, recl,
|
||||||
slice = [].slice;
|
slice = [].slice;
|
||||||
|
|
||||||
@ -2380,7 +2353,7 @@ module.exports = query({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
},{"./Async.coffee":2,"./Reactify.coffee":17}],23:[function(require,module,exports){
|
},{"./Async.coffee":2,"./Reactify.coffee":17}],22:[function(require,module,exports){
|
||||||
var body, clas, div, head, query, recf, recl;
|
var body, clas, div, head, query, recf, recl;
|
||||||
|
|
||||||
query = require('./Async.coffee');
|
query = require('./Async.coffee');
|
||||||
@ -2423,7 +2396,7 @@ module.exports = query({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
},{"./Async.coffee":2,"./BodyComponent.coffee":3,"./NavComponent.coffee":14,"classnames":30}],24:[function(require,module,exports){
|
},{"./Async.coffee":2,"./BodyComponent.coffee":3,"./NavComponent.coffee":14,"classnames":29}],23:[function(require,module,exports){
|
||||||
module.exports = _.extend(new Flux.Dispatcher(), {
|
module.exports = _.extend(new Flux.Dispatcher(), {
|
||||||
handleServerAction: function(action) {
|
handleServerAction: function(action) {
|
||||||
return this.dispatch({
|
return this.dispatch({
|
||||||
@ -2440,7 +2413,7 @@ module.exports = _.extend(new Flux.Dispatcher(), {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
},{}],25:[function(require,module,exports){
|
},{}],24:[function(require,module,exports){
|
||||||
var rend;
|
var rend;
|
||||||
|
|
||||||
rend = ReactDOM.render;
|
rend = ReactDOM.render;
|
||||||
@ -2448,7 +2421,6 @@ rend = ReactDOM.render;
|
|||||||
$(function() {
|
$(function() {
|
||||||
var frag, main, util;
|
var frag, main, util;
|
||||||
util = require('./utils/util.coffee');
|
util = require('./utils/util.coffee');
|
||||||
window.tree.util = util;
|
|
||||||
require('./utils/scroll.coffee');
|
require('./utils/scroll.coffee');
|
||||||
if (document.location.pathname.substr(-1) !== "/") {
|
if (document.location.pathname.substr(-1) !== "/") {
|
||||||
history.replaceState({}, "", document.location.pathname + "/" + document.location.search + document.location.hash);
|
history.replaceState({}, "", document.location.pathname + "/" + document.location.search + document.location.hash);
|
||||||
@ -2473,7 +2445,7 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
},{"./actions/TreeActions.coffee":1,"./components/Components.coffee":6,"./components/TreeComponent.coffee":23,"./utils/scroll.coffee":28,"./utils/util.coffee":29}],26:[function(require,module,exports){
|
},{"./actions/TreeActions.coffee":1,"./components/Components.coffee":6,"./components/TreeComponent.coffee":22,"./utils/scroll.coffee":27,"./utils/util.coffee":28}],25:[function(require,module,exports){
|
||||||
var dedup, pending, util, waspWait;
|
var dedup, pending, util, waspWait;
|
||||||
|
|
||||||
util = require('../utils/util.coffee');
|
util = require('../utils/util.coffee');
|
||||||
@ -2559,7 +2531,7 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
},{"../utils/util.coffee":29}],27:[function(require,module,exports){
|
},{"../utils/util.coffee":28}],26:[function(require,module,exports){
|
||||||
var EventEmitter, MessageDispatcher, QUERIES, TreeStore, _curr, _data, _nav, _tree, _virt, clog;
|
var EventEmitter, MessageDispatcher, QUERIES, TreeStore, _curr, _data, _nav, _tree, _virt, clog;
|
||||||
|
|
||||||
EventEmitter = require('events').EventEmitter.EventEmitter;
|
EventEmitter = require('events').EventEmitter.EventEmitter;
|
||||||
@ -2586,7 +2558,8 @@ QUERIES = {
|
|||||||
meta: 'j',
|
meta: 'j',
|
||||||
comt: 'j',
|
comt: 'j',
|
||||||
plan: 'j',
|
plan: 'j',
|
||||||
beak: 't'
|
beak: 't',
|
||||||
|
spur: 't'
|
||||||
};
|
};
|
||||||
|
|
||||||
TreeStore = _.extend((new EventEmitter).setMaxListeners(50), {
|
TreeStore = _.extend((new EventEmitter).setMaxListeners(50), {
|
||||||
@ -2851,7 +2824,7 @@ TreeStore.dispatchToken = MessageDispatcher.register(function(p) {
|
|||||||
module.exports = TreeStore;
|
module.exports = TreeStore;
|
||||||
|
|
||||||
|
|
||||||
},{"../dispatcher/Dispatcher.coffee":24,"events":31}],28:[function(require,module,exports){
|
},{"../dispatcher/Dispatcher.coffee":23,"events":30}],27:[function(require,module,exports){
|
||||||
var scroll;
|
var scroll;
|
||||||
|
|
||||||
scroll = {
|
scroll = {
|
||||||
@ -2945,7 +2918,7 @@ scroll.init();
|
|||||||
module.exports = scroll;
|
module.exports = scroll;
|
||||||
|
|
||||||
|
|
||||||
},{}],29:[function(require,module,exports){
|
},{}],28:[function(require,module,exports){
|
||||||
var _basepath;
|
var _basepath;
|
||||||
|
|
||||||
_basepath = window.urb.util.basepath("/");
|
_basepath = window.urb.util.basepath("/");
|
||||||
@ -2953,9 +2926,6 @@ _basepath = window.urb.util.basepath("/");
|
|||||||
_basepath += (window.location.pathname.replace(window.tree._basepath, "")).split("/")[0];
|
_basepath += (window.location.pathname.replace(window.tree._basepath, "")).split("/")[0];
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
components: {
|
|
||||||
ship: require('../components/ShipComponent.coffee')
|
|
||||||
},
|
|
||||||
basepath: function(path) {
|
basepath: function(path) {
|
||||||
var _path, prefix;
|
var _path, prefix;
|
||||||
prefix = _basepath;
|
prefix = _basepath;
|
||||||
@ -3007,7 +2977,7 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
},{"../components/ShipComponent.coffee":20}],30:[function(require,module,exports){
|
},{}],29:[function(require,module,exports){
|
||||||
/*!
|
/*!
|
||||||
Copyright (c) 2016 Jed Watson.
|
Copyright (c) 2016 Jed Watson.
|
||||||
Licensed under the MIT License (MIT), see
|
Licensed under the MIT License (MIT), see
|
||||||
@ -3057,7 +3027,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}());
|
}());
|
||||||
|
|
||||||
},{}],31:[function(require,module,exports){
|
},{}],30:[function(require,module,exports){
|
||||||
// Copyright Joyent, Inc. and other Node contributors.
|
// Copyright Joyent, Inc. and other Node contributors.
|
||||||
//
|
//
|
||||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
@ -3357,4 +3327,4 @@ function isUndefined(arg) {
|
|||||||
return arg === void 0;
|
return arg === void 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
},{}]},{},[25]);
|
},{}]},{},[24]);
|
||||||
|
Loading…
Reference in New Issue
Block a user