-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from tocwex/sl/v1.3.X/interface-polish-r1
v1.4.0: transaction actions, ui improvements, bug fixes
- Loading branch information
Showing
89 changed files
with
1,567 additions
and
415 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
:: /lib/fund/alien/hoon: foreign/external interface helper functions for %fund | ||
:: | ||
/- cn=contacts, se=settings | ||
/+ ff=fund-form | ||
|_ bol=bowl:gall | ||
:: | ||
:: +contacts-rolo: %contacts app "rolodex" data (ship/info map) | ||
:: | ||
++ contacts-rolo | ||
~+ | ||
^- rolodex:cn | ||
=/ pre=path (en-beam [our.bol %contacts da+now.bol] /) | ||
?. .^(? %gu (snoc pre %$)) *rolodex:cn | ||
=+ .^(non=noun %gx (weld pre /all/noun)) | ||
(fall ((soft rolodex:cn) non) *rolodex:cn) | ||
:: | ||
:: +contacts-ship: %contacts app ship data (index into "rolodex") | ||
:: | ||
++ contacts-ship | ||
|= sip=@p ~+ | ||
^- (unit contact:cn) | ||
=/ rol=rolodex:cn contacts-rolo | ||
?~ con=(~(get by rol) sip) ~ | ||
?@ for.u.con ~ | ||
?@ con.for.u.con ~ | ||
`con.for.u.con | ||
:: | ||
:: +settings-calm: %settings app "calm engine" data (key/value map) | ||
:: | ||
++ settings-calm | ||
~+ | ||
^- bucket:se | ||
=/ pre=path (en-beam [our.bol %settings da+now.bol] /) | ||
?. .^(? %gu (snoc pre %$)) *bucket:se | ||
?. .^(? %gx (weld pre /has-bucket/landscape/'calmEngine'/noun)) *bucket:se | ||
=+ .^(non=noun %gx (weld pre /bucket/landscape/'calmEngine'/noun)) | ||
=/ dat=data:se (fall ((soft data:se) non) [%bucket *bucket:se]) | ||
?.(?=(%bucket -.dat) *bucket:se bucket.dat) | ||
:: | ||
:: +ship-tytl: ship title, derived from %settings and %contacts | ||
:: | ||
++ ship-tytl | ||
|= sip=@p ~+ | ||
^- tape | ||
=/ dis=val:se (~(gut by settings-calm) 'disableNicknames' [%b |]) | ||
=/ def=tape "{<sip>}" | ||
?: &(?=(%b -.dis) p.dis) def | ||
?~ con=(contacts-ship sip) def | ||
?: =(%$ nickname.u.con) def | ||
(trip nickname.u.con) | ||
:: | ||
:: +ship-logo: ship logo (as url), derived from %settings and %contacts | ||
:: | ||
++ ship-logo | ||
|= sip=@p ~+ | ||
^- tape | ||
=/ dis=val:se (~(gut by settings-calm) 'disableAvatars' [%b |]) | ||
=/ def=tape (surt:enrl:ff sip) | ||
?: &(?=(%b -.dis) p.dis) def | ||
?~ con=(contacts-ship sip) def | ||
?~ avatar.u.con def | ||
?: =(%$ u.avatar.u.con) def | ||
(trip u.avatar.u.con) | ||
-- |
Oops, something went wrong.