From 3da5f858eb2b9f8a8f8a4b60b9ccaee5f1168148 Mon Sep 17 00:00:00 2001 From: Anton Dyudin Date: Wed, 6 Dec 2017 14:58:34 -0800 Subject: [PATCH] remove historic mark-dashboard code --- app/test.hoon | 79 +------------------------------------- web/mark-dashboard.hoon | 9 ----- web/mark-dashboard/main.js | 29 -------------- 3 files changed, 1 insertion(+), 116 deletions(-) delete mode 100644 web/mark-dashboard.hoon delete mode 100644 web/mark-dashboard/main.js diff --git a/app/test.hoon b/app/test.hoon index 5cb21c58a2..7f83bca922 100644 --- a/app/test.hoon +++ b/app/test.hoon @@ -1,45 +1,9 @@ -|% -++ results (map mark (each vase tang)) -++ show-results - =, format - |= a/results ^- json - :- %o - %- ~(run by a) - |= b/(each vase tang) - ?- -.b - $& (tape:enjs (text p.b)) - $| (tape:enjs (of-wall (wush 160 (flop p.b)))) - == -++ wush - |= {wid/@u tan/tang} ^- wall - (zing (turn tan |=(a/tank (wash 0^wid a)))) --- :: =, gall =, ford =, format |_ {bowl $~} ++ peek _~ -++ peer-scry-x - |= path - [[ost %exec /all-marks our `build-marks]~ +>] -:: -++ made-all-marks - |= {path @uvH a/gage} - :_ +>.$ - ?> ?=($tabl -.a) - =; res/results - [ost %diff [%json (show-results res)]]~ - %- malt - %+ turn p.a - |= {k/gage v/gage} ^- {mark (each vase tang)} - :- ?>(?=({$& $mark * @tas} k) q.q.p.k) - ?- -.v - $tabl !! - $& [%& q.p.v] - $| v - == -:: ++ made-a-core |= {a/spur @uvH b/gage} :_ +>.$ @@ -65,29 +29,9 @@ :~ %tabl [[%core now-beak a] [%$ %cont !>(b)]] == -:: =; res/results -:: [ost %diff [%json (show-results res)]]~ -:: %- malt -:: %+ turn p.a -:: |= {k/gage v/gage} ^- {mark (each vase tang)} -:: :- ?>(?=({$& $mark * @tas} k) q.q.p.k) -:: ?- -.v -:: $tabl !! -:: $& [%& q.p.v] -:: $| v -:: == -:: -++ build-marks - ^- {beak silk} - :- now-beak - :- %tabl - %+ turn (weld list-marks list-sub-marks) - |= {a/mark $~} ^- {silk silk} - :- [%$ %mark !>(a)] - [%bunt a] :: ++ poke-noun - |= a/path + |= [%cores a=path] ::TODO restore historical [%marks ~] handler :_ +> ?: [dry=|] ~&((list-cores a) ~) @@ -109,25 +53,4 @@ [sup ^$] :: ++ now-beak %_(byk r [%da now]) -++ list-marks - =, space:userlib - =, format - =+ .^(arch %cy (en-beam now-beak /mar)) - %+ skim ~(tap by dir) - |= {a/mark $~} - ?=(^ (file (en-beam now-beak /hoon/[a]/mar))) -:: -++ list-sub-marks - =, space:userlib - =, format - ^- (list {mark $~}) - %- zing ^- (list (list {mark $~})) - =/ top .^(arch %cy (en-beam now-beak /mar)) - %+ turn ~(tap by dir.top) - |= {sub/knot $~} - =+ .^(arch %cy (en-beam now-beak /[sub]/mar)) - %+ murn ~(tap by dir) - |= {a/mark $~} ^- (unit {mark $~}) - ?~ (file (en-beam now-beak /hoon/[a]/[sub]/mar)) ~ - `[(rap 3 sub '-' a ~) ~] -- diff --git a/web/mark-dashboard.hoon b/web/mark-dashboard.hoon deleted file mode 100644 index 2079c4a41f..0000000000 --- a/web/mark-dashboard.hoon +++ /dev/null @@ -1,9 +0,0 @@ -:: -:::: /hoon/mark-dashboard/web - :: -/? 310 -;div.mini-module - ;script@"/~/at/lib/js/urb.js"; - ;mark-dashboard; - ;script@"main.js"; -== diff --git a/web/mark-dashboard/main.js b/web/mark-dashboard/main.js deleted file mode 100644 index 3ebb841e85..0000000000 --- a/web/mark-dashboard/main.js +++ /dev/null @@ -1,29 +0,0 @@ -TreeActions = window.tree.actions -d = React.DOM - -TreeActions.registerComponent("mark-dashboard", React.createClass({ - render: function(){ - return d.ul({}, - !this.state.data ? "loading..." : - _(this.state.data) - .map(function(result,mark){return {result:result, mark:mark}}) - .sortBy('mark') - .map(function(x){ - return d.li({key:x.mark},"%"+x.mark, " ", - (!/\n/.test(x.result) ? d.code({},x.result) : d.pre({},d.code({},x.result))) - )}) - .value() - )}, - getInitialState: function(){ return {data:null}}, - componentDidMount: function(){ - $this = this - - urb.bind("/scry/x/main", - {appl:"mark-dashboard"}, - function(err, dat){ - urb.drop("/scry/x/main", {appl:"mark-dashboard"}) - $this.setState({data:dat.data}) - } - ) - } -}))