From 076e992e4ac0115b0979e719f1e20c095426fe80 Mon Sep 17 00:00:00 2001 From: Galen Wolfe-Pauly Date: Mon, 19 Dec 2016 15:23:15 -0800 Subject: [PATCH 1/3] talk@c83aedc and tree@51dbab2 --- web/talk/main.js | 2 +- web/tree/main.js | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/web/talk/main.js b/web/talk/main.js index 1cc286a8c..495c0b1de 100644 --- a/web/talk/main.js +++ b/web/talk/main.js @@ -338,7 +338,7 @@ module.exports = recl({ _handleAudi: function(e) { var audi; audi = _.map($(e.target).closest('.path').find('div'), function(div) { - return $(div).text(); + return "~" + $(div).text(); }); return this.props._handleAudi(audi); }, diff --git a/web/tree/main.js b/web/tree/main.js index 34af95da0..d8d0bd5e9 100644 --- a/web/tree/main.js +++ b/web/tree/main.js @@ -3153,14 +3153,18 @@ module.exports = { } }, dateFromAtom: function(date) { - var __, day, hor, min, mon, ref, sec, str, yer; + var __, d, day, hor, min, mon, ref, sec, yer; ref = date.slice(1).split("."), yer = ref[0], mon = ref[1], day = ref[2], __ = ref[3], hor = ref[4], min = ref[5], sec = ref[6]; if (day != null) { - str = yer + "-" + mon + "-" + day; - if (hor != null) { - str += " " + hor + ":" + min + ":" + sec; - } - return new Date(str); + d = new Date(); + d.setYear(yer); + d.setMonth(mon - 1); + d.setDate(day); + } + if (hor != null) { + d.setHours(hor); + d.setMinutes(min); + return d.setSeconds(sec); } }, getKeys: function(kids, sortBy) { From 10733de39dd174f0de94138aef074e57462bed71 Mon Sep 17 00:00:00 2001 From: Joseph Bryan Date: Wed, 4 Jan 2017 02:08:40 -0500 Subject: [PATCH 2/3] adds scry-desks feature to %clay (care %d) .^((set desk) %cd /===) --- sys/vane/clay.hoon | 23 ++++++++++++++++++----- sys/zuse.hoon | 2 +- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/sys/vane/clay.hoon b/sys/vane/clay.hoon index 23fb4af59..cf586b3ef 100644 --- a/sys/vane/clay.hoon +++ b/sys/vane/clay.hoon @@ -44,12 +44,13 @@ :: :: Type of request. :: -:: %u checks for existence, %v produces a ++dome of all desk data, %w with a -:: time or label case gets the aeon at that case, %w with a number case is not -:: recommended, %x gets file contents, %y gets a directory listing, and %z gets -:: a recursive hash of the file contents and children. +:: %d produces a set of desks, %u checks for existence, %v produces a ++dome of +:: all desk data, %w with a time or label case gets the aeon at that case, %w +:: with a number case is not recommended, %x gets file contents, %y gets a +:: directory listing, and %z gets a recursive hash of the file contents and +:: children. :: -++ care ?($u $v $w $x $y $z) +:: ++ care ?($d $u $v $w $x $y $z) :: :: Keeps track of subscribers. :: @@ -1393,6 +1394,9 @@ (~(put by haw.u.ref) p.rav ~) == ?- p.p.u.rut + $d + ~| %totally-temporary-error-please-replace-me + !! $u ~| %im-thinkin-its-prolly-a-bad-idea-to-request-rang-over-the-network !! @@ -2118,6 +2122,8 @@ ++ read :: read:ze |= mun/mood :: read at point ^- (unit cage) + ?: ?=($d p.mun) + ~& %dead-d ~ ?: ?=($v p.mun) [~ %dome !>(dom)] :: dead code ?: &(?=($w p.mun) !?=($ud -.q.mun)) @@ -2279,6 +2285,13 @@ ^- (unit (unit (each cage lobe))) ?: &(?=($w p.mun) !?=($ud -.q.mun)) :: NB only her speed ?^(r.mun [~ ~] [~ ~ %& %aeon !>(yon)]) + ?: ?=($d p.mun) + =+ rom=(~(get by fat.ruf) her) + ?~ rom + ~&(%null-rom-cd [~ ~]) + ?^ r.mun + ~&(%no-cd-path [~ ~]) + [~ ~ %& %noun !>(~(key by dos.u.rom))] ?: ?=($u p.mun) (read-u yon r.mun) ?: ?=($v p.mun) diff --git a/sys/zuse.hoon b/sys/zuse.hoon index f3dbf7470..7aed9d83f 100644 --- a/sys/zuse.hoon +++ b/sys/zuse.hoon @@ -326,7 +326,7 @@ $% {$delta p/lobe q/{p/mark q/lobe} r/page} :: delta on q {$direct p/lobe q/page} :: immediate == :: - ++ care ?($u $v $w $x $y $z) :: clay submode + ++ care ?($d $u $v $w $x $y $z) :: clay submode ++ case :: ship desk case spur $% {$da p/@da} :: date {$tas p/@tas} :: label From ac2d780f3286942f671d36f4d14ff15e7ef23a36 Mon Sep 17 00:00:00 2001 From: Joseph Bryan Date: Wed, 4 Jan 2017 12:30:18 -0500 Subject: [PATCH 3/3] removes obsolete ++view:^clay from %zuse --- sys/zuse.hoon | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/zuse.hoon b/sys/zuse.hoon index 7aed9d83f..84d8ecb34 100644 --- a/sys/zuse.hoon +++ b/sys/zuse.hoon @@ -408,7 +408,6 @@ {$| p/(list a) q/(list a)} :: p -> q[chunk] == :: ++ urge |*(a/mold (list (unce a))) :: list change - ++ view ?($u $v $w $x $y $z) :: view mode ++ yaki :: commit $: p/(list tako) :: parents q/(map path lobe) :: namespace