mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-03 14:37:05 +03:00
disable edit-tree@8b14088..8fdcaf7
This commit is contained in:
parent
665d4122a6
commit
c378387232
@ -119,7 +119,7 @@ module.exports = query {
|
||||
sein:'t'
|
||||
}, recl
|
||||
displayName: "Body"
|
||||
isOwn: -> urb.user? and urb.user is urb.ship
|
||||
isOwn: -> no # urb.user? and urb.user is urb.ship # disabled pending review
|
||||
getInitialState: -> edit: @isOwn() and document.location.hash is "#edit"
|
||||
|
||||
pauseWasp: ->
|
||||
|
@ -26,7 +26,7 @@ $ ->
|
||||
TreeActions = require './actions/TreeActions.coffee'
|
||||
TreePersistence = require './persistence/TreePersistence.coffee'
|
||||
|
||||
frag = window.tree.fragpath window.location.pathname
|
||||
frag = window.tree.fragpath window.location.pathname.replace /\.[^\/]*$/, ''
|
||||
|
||||
TreeActions.setCurr frag
|
||||
TreeActions.loadPath frag,window.tree.data
|
||||
|
@ -665,7 +665,7 @@ module.exports = query({
|
||||
}, recl({
|
||||
displayName: "Body",
|
||||
isOwn: function() {
|
||||
return (urb.user != null) && urb.user === urb.ship;
|
||||
return false;
|
||||
},
|
||||
getInitialState: function() {
|
||||
return {
|
||||
@ -1744,7 +1744,7 @@ $(function() {
|
||||
|
||||
},{"./actions/TreeActions.coffee":1,"./components/AnchorComponent.coffee":2,"./components/BodyComponent.coffee":4,"./components/Components.coffee":6,"./persistence/TreePersistence.coffee":20}],16:[function(require,module,exports){
|
||||
/*!
|
||||
Copyright (c) 2015 Jed Watson.
|
||||
Copyright (c) 2016 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/
|
||||
@ -1756,7 +1756,7 @@ $(function() {
|
||||
var hasOwn = {}.hasOwnProperty;
|
||||
|
||||
function classNames () {
|
||||
var classes = '';
|
||||
var classes = [];
|
||||
|
||||
for (var i = 0; i < arguments.length; i++) {
|
||||
var arg = arguments[i];
|
||||
@ -1765,19 +1765,19 @@ $(function() {
|
||||
var argType = typeof arg;
|
||||
|
||||
if (argType === 'string' || argType === 'number') {
|
||||
classes += ' ' + arg;
|
||||
classes.push(arg);
|
||||
} else if (Array.isArray(arg)) {
|
||||
classes += ' ' + classNames.apply(null, arg);
|
||||
classes.push(classNames.apply(null, arg));
|
||||
} else if (argType === 'object') {
|
||||
for (var key in arg) {
|
||||
if (hasOwn.call(arg, key) && arg[key]) {
|
||||
classes += ' ' + key;
|
||||
classes.push(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return classes.substr(1);
|
||||
return classes.join(' ');
|
||||
}
|
||||
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
|
@ -7,7 +7,7 @@ module.exports =
|
||||
put: (sup,mime,cb)-> urb.send {sup,mime},{mark:'write-tree'}, cb
|
||||
|
||||
get: (path,query="no-query",cb) ->
|
||||
url = "#{window.tree.basepath(path)}.json?q=#{@encode query}"
|
||||
url = "#{window.tree.basepath(path)}.tree-json?q=#{@encode query}"
|
||||
return if dedup[url]
|
||||
dedup[url] = true
|
||||
$.get url, {}, (data) -> if cb then cb null,data
|
||||
|
Loading…
Reference in New Issue
Block a user