mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +03:00
Merge branch 'master' into test
This commit is contained in:
commit
03f27e4b77
274
ape/dojo.hoon
274
ape/dojo.hoon
@ -10,7 +10,7 @@
|
|||||||
!: :: ::
|
!: :: ::
|
||||||
=> |% :: external structures
|
=> |% :: external structures
|
||||||
++ house :: all state
|
++ house :: all state
|
||||||
$: %2
|
$: %3
|
||||||
hoc=(map bone session) :: conversations
|
hoc=(map bone session) :: conversations
|
||||||
== ::
|
== ::
|
||||||
++ session :: per conversation
|
++ session :: per conversation
|
||||||
@ -23,14 +23,17 @@
|
|||||||
buf=tape :: multiline buffer
|
buf=tape :: multiline buffer
|
||||||
== ::
|
== ::
|
||||||
++ dojo-command ::
|
++ dojo-command ::
|
||||||
$% [%flat p=path q=dojo-source] :: noun to unix atom
|
$& (pair dojo-sink dojo-source) :: route value
|
||||||
[%pill p=path q=dojo-source] :: noun to unix pill
|
[%brev p=term] :: unbind variable
|
||||||
:: [%tree p=path q=dojo-source] :: noun to unix tree
|
++ dojo-sink ::
|
||||||
[%file p=beam q=dojo-source] :: save to clay
|
$% [%flat p=path] :: atom to unix
|
||||||
[%http p=?(%post %put) q=purl r=dojo-source] :: http outbound
|
[%pill p=path] :: noun to unix pill
|
||||||
[%poke p=goal q=dojo-source] :: make and poke
|
:: [%tree p=path] :: noun to unix tree
|
||||||
[%show p=dojo-source] :: print
|
[%file p=beam] :: save to clay
|
||||||
[%verb p=term q=(unit dojo-source)] :: store variable
|
[%http p=?(%post %put) q=purl] :: http outbound
|
||||||
|
[%poke p=goal] :: poke app
|
||||||
|
[%show p=?(0 1 2 3)] :: print val/type/twig
|
||||||
|
[%verb p=term] :: store variable
|
||||||
== ::
|
== ::
|
||||||
++ dojo-source :: construction node
|
++ dojo-source :: construction node
|
||||||
$: p=@ud :: assembly index
|
$: p=@ud :: assembly index
|
||||||
@ -104,26 +107,30 @@
|
|||||||
++ dp :: dojo parser
|
++ dp :: dojo parser
|
||||||
|%
|
|%
|
||||||
++ dp-default-app %hood
|
++ dp-default-app %hood
|
||||||
++ dp-specify
|
++ dp-message :: %poke
|
||||||
|= [gol=goal mod=dojo-model]
|
|= [gol=goal mod=dojo-model] ^- dojo-command
|
||||||
^- (pair goal dojo-source)
|
[[%poke gol] [0 [%ge mod(q.p [q.gol q.p.mod])]]]
|
||||||
[gol [0 [%ge mod(q.p [q.gol q.p.mod])]]]
|
|
||||||
::
|
::
|
||||||
++ dp-command-line ;~(sfix dp-command (just '\0a'))
|
++ dp-command-line ;~(sfix dp-command (just '\0a'))
|
||||||
|
++ dp-variable :: %verb or %brev
|
||||||
|
|* [sym=_rule src=_rule]
|
||||||
|
%- cook :_ ;~(plug sym (punt src))
|
||||||
|
|= [a=term b=(unit dojo-source)] ^- dojo-command
|
||||||
|
?~(b [%brev a] [[%verb a] u.b])
|
||||||
|
::
|
||||||
++ dp-command :: ++dojo-command
|
++ dp-command :: ++dojo-command
|
||||||
%+ knee *dojo-command |. ~+
|
%+ knee *dojo-command |. ~+
|
||||||
;~ pose
|
;~ pose
|
||||||
;~ plug (cold %poke bar)
|
;~ pfix bar
|
||||||
%+ cook dp-specify
|
%+ cook dp-message
|
||||||
(stag [our.hid dp-default-app] dp-model)
|
(stag [our.hid dp-default-app] dp-model)
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
;~ plug (cold %poke col)
|
;~ pfix col
|
||||||
%+ cook
|
%+ cook
|
||||||
|= [a=goal b=$&(dojo-model dojo-source)]
|
|= [a=goal b=$&(dojo-model dojo-source)]
|
||||||
^- (pair goal dojo-source)
|
?@ -.b [[%poke a] b]
|
||||||
?@ -.b [a b]
|
(dp-message a b)
|
||||||
(dp-specify a b)
|
|
||||||
;~ plug
|
;~ plug
|
||||||
dp-goal
|
dp-goal
|
||||||
;~ pose
|
;~ pose
|
||||||
@ -133,21 +140,26 @@
|
|||||||
==
|
==
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
;~(plug (cold %file tar) dp-beam ;~(pfix ace dp-source))
|
;~(pfix tis (dp-variable sym ;~(pfix ace dp-source)))
|
||||||
;~(plug (cold %flat pat) (most fas sym) ;~(pfix ace dp-source))
|
;~ pfix fas
|
||||||
;~(plug (cold %pill dot) (most fas sym) ;~(pfix ace dp-source))
|
|
||||||
;~(plug (cold %http lus) (easy %post) auri:epur ;~(pfix ace dp-source))
|
|
||||||
;~(plug (cold %http hep) (easy %put) auri:epur ;~(pfix ace dp-source))
|
|
||||||
;~(plug (cold %verb tis) sym (punt ;~(pfix ace dp-source)))
|
|
||||||
;~ plug (cold %verb fas)
|
|
||||||
;~ pose
|
;~ pose
|
||||||
;~(plug (cold %arc hep) (punt ;~(pfix gap dp-hooves)))
|
(dp-variable (cold %arc hep) ;~(pfix gap dp-hooves))
|
||||||
;~(plug (cold %lib lus) (punt ;~(pfix gap dp-hooves)))
|
(dp-variable (cold %lib lus) ;~(pfix gap dp-hooves))
|
||||||
(stag %dir :(stag ~ 0 %ex %clsg dp-poor))
|
:(stag [%verb %dir] 0 %ex %clsg dp-poor)
|
||||||
==
|
==
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
(stag %show dp-source)
|
;~((glue ace) dp-sink dp-source)
|
||||||
|
(stag [%show %0] dp-source)
|
||||||
|
==
|
||||||
|
++ dp-sink
|
||||||
|
;~ pose
|
||||||
|
;~(plug (cold %file tar) dp-beam)
|
||||||
|
;~(plug (cold %flat pat) (most fas sym))
|
||||||
|
;~(plug (cold %pill dot) (most fas sym))
|
||||||
|
;~(plug (cold %http lus) (easy %post) auri:epur)
|
||||||
|
;~(plug (cold %http hep) (easy %put) auri:epur)
|
||||||
|
(stag %show (cook ?(1 2 3) (cook lent (stun [1 3] wut))))
|
||||||
==
|
==
|
||||||
++ dp-hooves :: hoof list
|
++ dp-hooves :: hoof list
|
||||||
:(stag 0 %ex %clsg (cook |=(a=tusk a) (most ;~(plug com gaw) dp-hoof)))
|
:(stag 0 %ex %clsg (cook |=(a=tusk a) (most ;~(plug com gaw) dp-hoof)))
|
||||||
@ -196,17 +208,17 @@
|
|||||||
==
|
==
|
||||||
++ dp-beam :: ++beam
|
++ dp-beam :: ++beam
|
||||||
%+ cook |=(a=path =+((tome a) ?^(- u [he-beak (flop a)])))
|
%+ cook |=(a=path =+((tome a) ?^(- u [he-beak (flop a)])))
|
||||||
=+ vez=(vang & dp-path)
|
=+ vez=(vang | dp-path)
|
||||||
(sear plex:vez (stag %clsg poor:vez))
|
(sear plex:vez (stag %clsg poor:vez))
|
||||||
::
|
::
|
||||||
++ dp-model ;~(plug dp-server dp-config) :: ++dojo-model
|
++ dp-model ;~(plug dp-server dp-config) :: ++dojo-model
|
||||||
++ dp-path (tope he-beam) :: ++path
|
++ dp-path (tope he-beam) :: ++path
|
||||||
++ dp-server (stag 0 (most fas sym)) :: ++dojo-server
|
++ dp-server (stag 0 (most fas sym)) :: ++dojo-server
|
||||||
++ dp-twig tall:(vang & dp-path) :: ++twig
|
++ dp-twig tall:(vang | dp-path) :: ++twig
|
||||||
++ dp-poor poor:(vang & (tope dir)) :: (list ++twig)
|
++ dp-poor poor:(vang | (tope dir)) :: (list ++twig)
|
||||||
++ dp-value :: ++dojo-source
|
++ dp-value :: ++dojo-source
|
||||||
;~ pose
|
;~ pose
|
||||||
(stag %tu (ifix [kel ker] (most ace dp-source)))
|
(stag %tu (ifix [sel ser] (most ace dp-source)))
|
||||||
(stag %ex dp-twig)
|
(stag %ex dp-twig)
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
@ -262,25 +274,11 @@
|
|||||||
++ dy-init-command :: ++dojo-command
|
++ dy-init-command :: ++dojo-command
|
||||||
|= mad=dojo-command
|
|= mad=dojo-command
|
||||||
^+ [mad +>]
|
^+ [mad +>]
|
||||||
?- -.mad
|
?@ -.mad [mad +>.$]
|
||||||
%file =^(src +>.$ (dy-init-source q.mad) [mad(q src) +>.$])
|
=. q.mad
|
||||||
%flat =^(src +>.$ (dy-init-source q.mad) [mad(q src) +>.$])
|
?+(-.p.mad q.mad %http [0 %as %mime q.mad])
|
||||||
%pill =^(src +>.$ (dy-init-source q.mad) [mad(q src) +>.$])
|
=^ src +>.$ (dy-init-source q.mad)
|
||||||
%poke =^(src +>.$ (dy-init-source q.mad) [mad(q src) +>.$])
|
[mad(q src) +>.$]
|
||||||
%show =^(src +>.$ (dy-init-source p.mad) [mad(p src) +>.$])
|
|
||||||
%verb =^(src +>.$ (dy-init-source-unit q.mad) [mad(q src) +>.$])
|
|
||||||
%http
|
|
||||||
=. r.mad [0 %as %mime r.mad]
|
|
||||||
=^ src +>.$ (dy-init-source r.mad)
|
|
||||||
[mad(r src) +>.$]
|
|
||||||
==
|
|
||||||
::
|
|
||||||
++ dy-init-source-unit :: (unit dojo-source)
|
|
||||||
|= urc=(unit dojo-source)
|
|
||||||
^+ [urc +>]
|
|
||||||
?~ urc [~ +>]
|
|
||||||
=^ src +> (dy-init-source u.urc)
|
|
||||||
[`src +>.$]
|
|
||||||
::
|
::
|
||||||
++ dy-init-source :: ++dojo-source
|
++ dy-init-source :: ++dojo-source
|
||||||
|= src=dojo-source
|
|= src=dojo-source
|
||||||
@ -291,6 +289,13 @@
|
|||||||
==
|
==
|
||||||
[src +>.$(num +(num), job (~(put by job) src))]
|
[src +>.$(num +(num), job (~(put by job) src))]
|
||||||
::
|
::
|
||||||
|
++ dy-init-source-unit :: (unit dojo-source)
|
||||||
|
|= urc=(unit dojo-source)
|
||||||
|
^+ [urc +>]
|
||||||
|
?~ urc [~ +>]
|
||||||
|
=^ src +> (dy-init-source u.urc)
|
||||||
|
[`src +>.$]
|
||||||
|
::
|
||||||
++ dy-init-build :: ++dojo-build
|
++ dy-init-build :: ++dojo-build
|
||||||
|= bul=dojo-build
|
|= bul=dojo-build
|
||||||
^+ [bul +>]
|
^+ [bul +>]
|
||||||
@ -390,49 +395,24 @@
|
|||||||
::
|
::
|
||||||
++ dy-over :: finish construction
|
++ dy-over :: finish construction
|
||||||
^+ +>
|
^+ +>
|
||||||
?- -.mad
|
?: ?=([%show 3] -.mad)
|
||||||
%poke
|
(dy-rash %tan (dy-show-source q.mad) ~) :: XX separate command
|
||||||
%- he-card(poy ~)
|
?: ?=(%brev -.mad)
|
||||||
:* %deal
|
=. var (~(del by var) p.mad)
|
||||||
/poke
|
|
||||||
[our.hid p.p.mad]
|
|
||||||
q.p.mad
|
|
||||||
%poke
|
|
||||||
(~(got by rez) p.q.mad)
|
|
||||||
==
|
|
||||||
::
|
|
||||||
%file
|
|
||||||
%- he-card(poy ~) :*
|
|
||||||
%info
|
|
||||||
/file
|
|
||||||
our.hid
|
|
||||||
(foal (tope p.mad) (~(got by rez) p.q.mad))
|
|
||||||
==
|
|
||||||
::
|
|
||||||
%flat
|
|
||||||
=+ out=q.q:(~(got by rez) p.q.mad)
|
|
||||||
?^ out
|
|
||||||
(dy-rash %tan [%leaf "not an atom"]~)
|
|
||||||
(dy-rash %sav p.mad out)
|
|
||||||
::
|
|
||||||
%pill
|
|
||||||
(dy-rash %sag p.mad q.q:(~(got by rez) p.q.mad))
|
|
||||||
::
|
|
||||||
%verb
|
|
||||||
?~ q.mad
|
|
||||||
=. var (~(del by var) p.mad)
|
|
||||||
=< dy-amok
|
|
||||||
?+ p.mad .
|
|
||||||
?(%eny %now %our) !!
|
|
||||||
%lib .(lib ~)
|
|
||||||
%arc .(arc ~)
|
|
||||||
%dir .(dir [[our.hid %home ud/0] /])
|
|
||||||
==
|
|
||||||
=+ cay=(~(got by rez) p.u.q.mad)
|
|
||||||
=. var (~(put by var) p.mad cay)
|
|
||||||
~| bad-set/[p.mad p.q.cay]
|
|
||||||
=< dy-amok
|
=< dy-amok
|
||||||
?+ p.mad .
|
?+ p.mad .
|
||||||
|
?(%eny %now %our) !!
|
||||||
|
%lib .(lib ~)
|
||||||
|
%arc .(arc ~)
|
||||||
|
%dir .(dir [[our.hid %home ud/0] /])
|
||||||
|
==
|
||||||
|
=+ cay=(~(got by rez) p.q.mad)
|
||||||
|
?- -.p.mad
|
||||||
|
%verb
|
||||||
|
=. var (~(put by var) p.p.mad cay)
|
||||||
|
~| bad-set/[p.p.mad p.q.cay]
|
||||||
|
=< dy-amok
|
||||||
|
?+ p.p.mad .
|
||||||
%eny ~|(%entropy-is-eternal !!)
|
%eny ~|(%entropy-is-eternal !!)
|
||||||
%now ~|(%time-is-immutable !!)
|
%now ~|(%time-is-immutable !!)
|
||||||
%our ~|(%self-is-immutable !!)
|
%our ~|(%self-is-immutable !!)
|
||||||
@ -442,21 +422,53 @@
|
|||||||
=- +(..dy (he-diff %tan - ~))
|
=- +(..dy (he-diff %tan - ~))
|
||||||
rose/[" " `~]^~[leaf/"=%" (smyt (tope he-beak s.dir))]
|
rose/[" " `~]^~[leaf/"=%" (smyt (tope he-beak s.dir))]
|
||||||
==
|
==
|
||||||
|
::
|
||||||
|
%poke
|
||||||
|
%- he-card(poy ~)
|
||||||
|
:* %deal
|
||||||
|
/poke
|
||||||
|
[our.hid p.p.p.mad]
|
||||||
|
q.p.p.mad
|
||||||
|
%poke
|
||||||
|
cay
|
||||||
|
==
|
||||||
|
::
|
||||||
|
%file
|
||||||
|
%- he-card(poy ~) :*
|
||||||
|
%info
|
||||||
|
/file
|
||||||
|
our.hid
|
||||||
|
(foal (tope p.p.mad) cay)
|
||||||
|
==
|
||||||
|
::
|
||||||
|
%flat
|
||||||
|
?^ q.q.cay
|
||||||
|
(dy-rash %tan [%leaf "not an atom"]~)
|
||||||
|
(dy-rash %sav p.p.mad q.q.cay)
|
||||||
|
::
|
||||||
|
%pill
|
||||||
|
(dy-rash %sag p.p.mad q.q.cay)
|
||||||
::
|
::
|
||||||
%http
|
%http
|
||||||
=+ cay=(~(got by rez) p.r.mad)
|
|
||||||
?> ?=(%mime p.cay)
|
?> ?=(%mime p.cay)
|
||||||
=+ mim=;;(mime q.q.cay)
|
=+ mim=;;(mime q.q.cay)
|
||||||
=+ maf=(~(add ja *math) content-type/(moon p.mim))
|
=+ maf=(~(add ja *math) content-type/(moon p.mim))
|
||||||
(dy-eyre /show [q.mad p.mad maf ~ q.mim])
|
(dy-eyre /show [q.p.mad p.p.mad maf ~ q.mim])
|
||||||
::
|
::
|
||||||
%show
|
%show
|
||||||
(dy-show (~(got by rez) p.p.mad))
|
%+ dy-print cay
|
||||||
|
?- p.p.mad
|
||||||
|
0 ~
|
||||||
|
1 [%rose [~ " " ~] (skol p.q.cay) ~]~ :: [%rose [~ " " ~] >p.cay< ~]
|
||||||
|
2 [%rose [~ " " ~] (dy-show-type-noun p.q.cay) ~]~
|
||||||
|
==
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
++ dy-show
|
++ dy-show |=(cay=cage (dy-print cay ~))
|
||||||
|= cay=cage
|
++ dy-print
|
||||||
|
|= [cay=cage tan=tang]
|
||||||
%+ dy-rash %tan
|
%+ dy-rash %tan
|
||||||
|
%- welp :_ tan
|
||||||
?+ p.cay [(sell q.cay)]~
|
?+ p.cay [(sell q.cay)]~
|
||||||
%tang ;;(tang q.q.cay)
|
%tang ;;(tang q.q.cay)
|
||||||
%httr
|
%httr
|
||||||
@ -468,6 +480,53 @@
|
|||||||
(turn `wain`?~(r.hit ~ (lore q.u.r.hit)) trip)
|
(turn `wain`?~(r.hit ~ (lore q.u.r.hit)) trip)
|
||||||
==
|
==
|
||||||
::
|
::
|
||||||
|
++ dy-show-type-noun
|
||||||
|
|= a=type ^- tank
|
||||||
|
=- >[-]<
|
||||||
|
|- ^- $? $% [%atom @tas]
|
||||||
|
[%cell _$ _$]
|
||||||
|
[%cube * _$]
|
||||||
|
[%face @tas _$]
|
||||||
|
[%fork _$ _$]
|
||||||
|
[%hold (list ,[_$ twig])]
|
||||||
|
==
|
||||||
|
wain :: "<|core|>"
|
||||||
|
?(%noun %void)
|
||||||
|
==
|
||||||
|
?+ a a
|
||||||
|
[?(%cube %face) ^] a(q $(a q.a))
|
||||||
|
[?(%cell %fork) ^] a(p $(a p.a), q $(a q.a))
|
||||||
|
[%bull ^] $(a q.a)
|
||||||
|
[%core ^] `wain`/core
|
||||||
|
[%hold *] a(p (turn p.a |=([b=type c=twig] [^$(a b) c])))
|
||||||
|
==
|
||||||
|
::
|
||||||
|
++ dy-show-source
|
||||||
|
|= a=dojo-source ^- tank
|
||||||
|
=- >[-]<
|
||||||
|
=+ `[@ bil=dojo-build]`a
|
||||||
|
|- ^- $& [_$ _$]
|
||||||
|
$? twig
|
||||||
|
$% [%ur purl]
|
||||||
|
[%dv path]
|
||||||
|
[%as mark _$]
|
||||||
|
[%do twig _$]
|
||||||
|
[%ge path (list ,_$) (map term (unit ,_$))]
|
||||||
|
==
|
||||||
|
==
|
||||||
|
?- -.bil
|
||||||
|
?(%ur %dv) bil
|
||||||
|
%ex p.bil
|
||||||
|
%tu ?~ p.bil !!
|
||||||
|
|-
|
||||||
|
?~ t.p.bil ^$(bil q.i.p.bil)
|
||||||
|
[^$(bil q.i.p.bil) $(p.bil t.p.bil)]
|
||||||
|
%as bil(q $(bil q.q.bil))
|
||||||
|
%do bil(q $(bil q.q.bil))
|
||||||
|
%ge :+ %ge q.p.p.bil
|
||||||
|
[(turn p.q.p.bil ..$) (~(run by q.q.p.bil) (lift ..$))]
|
||||||
|
==
|
||||||
|
::
|
||||||
++ dy-edit :: handle edit
|
++ dy-edit :: handle edit
|
||||||
|= cal=sole-change
|
|= cal=sole-change
|
||||||
^+ +>+>
|
^+ +>+>
|
||||||
@ -643,6 +702,8 @@
|
|||||||
|= nex=@ud
|
|= nex=@ud
|
||||||
^+ +>+>
|
^+ +>+>
|
||||||
?> ?=(~ cud)
|
?> ?=(~ cud)
|
||||||
|
?: ?=([%show 3] -.mad)
|
||||||
|
dy-over
|
||||||
?: =(nex num)
|
?: =(nex num)
|
||||||
dy-over
|
dy-over
|
||||||
dy-make(cud `[nex (~(got by job) nex)])
|
dy-make(cud `[nex (~(got by job) nex)])
|
||||||
@ -836,12 +897,17 @@
|
|||||||
=+ session-1==+(*session ,_-(poy *(unit)))
|
=+ session-1==+(*session ,_-(poy *(unit)))
|
||||||
=+ session-0==+(*session-1 ,[_say syd=desk * _|2.-])
|
=+ session-0==+(*session-1 ,[_say syd=desk * _|2.-])
|
||||||
:: ,_`..prep
|
:: ,_`..prep
|
||||||
=+ hoze=$%([%0 p=(map bone session-0)] [%1 p=(map bone session-1)])
|
=+ ^= hoze
|
||||||
|
$% [%0 p=(map bone session-0)]
|
||||||
|
[%1 p=(map bone session-1)]
|
||||||
|
[%2 p=(map bone session-1)]
|
||||||
|
==
|
||||||
|= old=(unit ?(house hoze)) ^+ [~ ..prep]
|
|= old=(unit ?(house hoze)) ^+ [~ ..prep]
|
||||||
?~ old `..prep
|
?~ old `..prep
|
||||||
?- -.u.old
|
?- -.u.old
|
||||||
%2 `..prep(+<+ u.old)
|
%3 `..prep(+<+ u.old)
|
||||||
%1 `..prep(+<+ [%2 (~(run by p.u.old) |=(session-1 +<(poy ~)))])
|
%2 `..prep(+<+ [%3 (~(run by p.u.old) |=(session-1 +<(poy ~)))])
|
||||||
|
%1 `..prep(+<+ [%3 (~(run by p.u.old) |=(session-1 +<(poy ~)))])
|
||||||
%0 =< ^$(u.old [%1 (~(run by p.u.old) .)])
|
%0 =< ^$(u.old [%1 (~(run by p.u.old) .)])
|
||||||
|= sos=session-0 ^- session-1
|
|= sos=session-0 ^- session-1
|
||||||
[-.sos [[our.hid syd.sos ud/0] /] |3.sos]
|
[-.sos [[our.hid syd.sos ud/0] /] |3.sos]
|
||||||
|
@ -148,6 +148,7 @@
|
|||||||
::
|
::
|
||||||
++ fcgi :: credential caboose
|
++ fcgi :: credential caboose
|
||||||
|= [quy=quay ced=cred] ^- coin
|
|= [quy=quay ced=cred] ^- coin
|
||||||
|
~& fcgi/[`@uv`(mug ced) quy]
|
||||||
:* %many
|
:* %many
|
||||||
[%$ %ta ~]
|
[%$ %ta ~]
|
||||||
[%blob ced]
|
[%blob ced]
|
||||||
|
@ -499,6 +499,19 @@
|
|||||||
++ dash :: process cache
|
++ dash :: process cache
|
||||||
|= cof=cafe
|
|= cof=cafe
|
||||||
^+ +>
|
^+ +>
|
||||||
|
~? |
|
||||||
|
:+ %dash (lent (skim (~(tap in p.cof)) |=(a=calx ?=(%bake -.a))))
|
||||||
|
=. q.cof (~(dif by q.cof) jav.bay)
|
||||||
|
=+ num=10
|
||||||
|
%. |= a=(list calx)
|
||||||
|
=+ len=(lent a)
|
||||||
|
=- [len (scag num (turn a f)) ?:((gth len num) %etc ~)]
|
||||||
|
=+ dewe=|=(beam +<(s ?+(s s [@ %web *] t.t.s)))
|
||||||
|
f=|=(b=calx [-.b ?+(-.b ~ %bake [p.q.b (tope (dewe q.q.b))])])
|
||||||
|
%~ run by
|
||||||
|
=< `(jar term calx)`(~(rep by q.cof) .)
|
||||||
|
|= [[* a=calx] b=(jar term calx)]
|
||||||
|
(~(add ja b) -.a a)
|
||||||
%_(+> jav.bay q.cof)
|
%_(+> jav.bay q.cof)
|
||||||
::
|
::
|
||||||
++ diff :: diff
|
++ diff :: diff
|
||||||
@ -1866,7 +1879,6 @@
|
|||||||
::
|
::
|
||||||
++ load :: highly forgiving
|
++ load :: highly forgiving
|
||||||
|= old=axle
|
|= old=axle
|
||||||
::=. pol.old (~(run by pol.old) |=(baby +<(jav ~)))
|
|
||||||
..^$(+>- old)
|
..^$(+>- old)
|
||||||
::=. old
|
::=. old
|
||||||
:: ?. ?=([%0 *] old) old :: remove at 1
|
:: ?. ?=([%0 *] old) old :: remove at 1
|
||||||
|
@ -47,7 +47,7 @@ Links = React.createFactory query {
|
|||||||
render: -> div {className:'links'}, @props.children, @_render()
|
render: -> div {className:'links'}, @props.children, @_render()
|
||||||
_render: -> div {id:"sibs"}, div {className:"active"}, a {}, @props.curr
|
_render: -> div {id:"sibs"}, div {className:"active"}, a {}, @props.curr
|
||||||
|
|
||||||
CLICK = 'a' # 'a,h1,h2,h3,h4,h5,h6'
|
CLICK = 'a,h1,h2,h3,h4,h5,h6'
|
||||||
module.exports = query {sein:'t',path:'t',name:'t',next:'t',prev:'t'},recl
|
module.exports = query {sein:'t',path:'t',name:'t',next:'t',prev:'t'},recl
|
||||||
displayName: "Anchor"
|
displayName: "Anchor"
|
||||||
getInitialState: -> url: window.location.pathname
|
getInitialState: -> url: window.location.pathname
|
||||||
|
@ -142,7 +142,7 @@ Links = React.createFactory(query({
|
|||||||
}
|
}
|
||||||
})));
|
})));
|
||||||
|
|
||||||
CLICK = 'a';
|
CLICK = 'a,h1,h2,h3,h4,h5,h6';
|
||||||
|
|
||||||
module.exports = query({
|
module.exports = query({
|
||||||
sein: 't',
|
sein: 't',
|
||||||
@ -1785,29 +1785,6 @@ TreeStore = _.extend(EventEmitter.prototype, {
|
|||||||
}
|
}
|
||||||
if (data.kids && _.isEmpty(data.kids)) {
|
if (data.kids && _.isEmpty(data.kids)) {
|
||||||
old.EMPTY = true;
|
old.EMPTY = true;
|
||||||
old.body = {
|
|
||||||
gn: 'div',
|
|
||||||
c: [
|
|
||||||
{
|
|
||||||
gn: 'h1',
|
|
||||||
ga: {
|
|
||||||
className: 'error'
|
|
||||||
},
|
|
||||||
c: ['Error: Empty path']
|
|
||||||
}, {
|
|
||||||
gn: 'div',
|
|
||||||
c: [
|
|
||||||
{
|
|
||||||
gn: 'pre',
|
|
||||||
c: [this.getCurr()]
|
|
||||||
}, {
|
|
||||||
gn: 'span',
|
|
||||||
c: ['is either empty or does not exist.']
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
return _data[path] = old;
|
return _data[path] = old;
|
||||||
},
|
},
|
||||||
|
@ -59,14 +59,15 @@ TreeStore = _.extend EventEmitter.prototype, {
|
|||||||
|
|
||||||
if data.kids && _.isEmpty data.kids
|
if data.kids && _.isEmpty data.kids
|
||||||
old.EMPTY = true
|
old.EMPTY = true
|
||||||
old.body =
|
# XX why here?
|
||||||
gn: 'div'
|
# old.body =
|
||||||
c: [ {gn:'h1', ga:{className:'error'}, c:['Error: Empty path']}
|
# gn: 'div'
|
||||||
{gn:'div', c:[
|
# c: [ {gn:'h1', ga:{className:'error'}, c:['Error: Empty path']}
|
||||||
{gn:'pre', c:[@getCurr()]}
|
# {gn:'div', c:[
|
||||||
{gn:'span', c:['is either empty or does not exist.']}
|
# {gn:'pre', c:[@getCurr()]}
|
||||||
# {gn:'list'} XX handle empty snip
|
# {gn:'span', c:['is either empty or does not exist.']}
|
||||||
] }]
|
# # {gn:'list'} XX handle empty snip
|
||||||
|
# ] }]
|
||||||
|
|
||||||
_data[path] = old
|
_data[path] = old
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user