Skip to content

Commit

Permalink
Merge pull request #3 from brbenji/dump
Browse files Browse the repository at this point in the history
dump kelvin to 414, and clean things up
  • Loading branch information
brbenji authored Apr 19, 2023
2 parents 7c23c52 + 7a96618 commit 572fb98
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 69 deletions.
12 changes: 1 addition & 11 deletions desk/app/focus.hoon
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:: focus: an interval timer
::
:: v1.2.0 - now with pause button, and goals!
:: v1.2.1 - now with pause button, and goals!
::
:: the fun thing about focus, is that's it's techniaclly 100% hoon.
:: made using sail and rudder there is only 6 lines of javascript.
Expand Down Expand Up @@ -506,16 +506,6 @@
%fact
?+ p.cage.sign (on-agent:def wire sign)
%goal-home-update
:: XX: remove this scratch pad for figuring out
:: scrying into %gol-cli and address numbering
::
:: =/ foo !<(expected-type q.cage.sign)
:: ~& "I think I got something!"
:: ~& !<(home-update:goal q.cage.sign)
:: ~& pin:!<(home-update:goal q.cage.sign)
:: ~& +62:!<(home-update:goal q.cage.sign)
:: address numbers
:: 1 @2 3 @6 7 @14 15 @30 31 @62 63 @126 127 @254 255 @510 511 1022
`this
==
==
Expand Down
39 changes: 12 additions & 27 deletions desk/app/webui/index.hoon
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
:: design issues
:: both goals toggle and reps-btn will move around based on zoom
:: goals text is squished on mobile bc of the ownership pop-up
:: (can't do a lot about that)
:: times in goals are in utc. that's lame but we don't know how to
Expand Down Expand Up @@ -28,8 +27,7 @@
[%goals |]
?: |((~(has by args) 'begin') (~(has by args) 'nav'))
?: (~(has by args) 'multi')
:: multis the hidden rest inputs
:: perhaps the name should have been multi or more?
:: multi will reveal the hidden rest inputs
::
[%multi &]
?: =((~(got by args) 'nav') 'new')
Expand Down Expand Up @@ -256,7 +254,6 @@
==
;div#enter.clock
;form.brothers(method "post")
:: XX: add an id that makes this to-form like the original
;input.to-form(type "submit", name "nav", value "form", autofocus "");
==
;div.face.brothers
Expand All @@ -274,22 +271,11 @@
;iframe(src "apps/gol-cli/", style "margin-top: 3em;", width "100%", height "550em");
==
== ==
++ goal-frame
:: XX: learn why I can't just insert elements like this using an
:: arm?
:: I think it would be useful to build components in arms and
:: arrange as necessary in different pages.
::
;iframe@"http://localhost/apps/gol-cli/"(style "margin-top: 3em;", width "100%", height "100%");

::
:: "THIS CODE KILLS 99.99% OF JAVASCRIPT"
:: location.reload(), localStore(), submit(), and play() are so
:: far what I need from js
::
:: XX: remove reload and sfx on pause and if display isn't clock
:: that the right way to do it instead, I'll just make
:: +handle-refresh and +handle-wrap take a day if paused. "what a hack"
::
++ script
"""
function goalsToggle() \{
Expand All @@ -303,12 +289,6 @@
setTimeout(() => \{
document.location.reload();
}, {handle-refresh});
/* stop that dang mobile scrolling on focus */
const repsInput = document.getElementById('reps');
repsInput.addEventListener('focus', () => \{
repsInput.scrollIntoView(false);
});
"""
:: helper arms for dynamically changing
:: +script, +mod-style, +build
Expand Down Expand Up @@ -337,7 +317,6 @@
|= left=@dr
^- tape
:: need a null protection here (bc using div)
:: what should be the alternate path?
::
?~ left "315"
=/ wipe-amount (div (mul left 315) mode-switch)
Expand Down Expand Up @@ -484,8 +463,13 @@
margin: 0;
box-sizing: border-box;
}
input[type=number]::-webkit-inner-spin-button {
opacity: 1
body {
font-family: Times, Times New Roman, serif;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: inner-spin-button;
appearance: inner-spin-button;
}
svg {
transform: rotate(-90deg);
Expand All @@ -494,6 +478,7 @@
input {
font-weight: 700;
cursor: pointer;
font-family: Arial, Helvetica, sans-serif;
}
p {
place-self: start;
Expand Down Expand Up @@ -582,12 +567,12 @@
top: 2.8em;
right: -6.5em;
mix-blend-mode: difference;
text-align: end;
background-color: black;
border-radius: .33em;
border: solid 1px whitesmoke;
border: solid .09em whitesmoke;
color: white;
scale: .66;
transition: .3s ease-in-out;
}
.new:hover {
background-color: #333;
Expand Down
2 changes: 1 addition & 1 deletion desk/desk.docket-0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
:~
title+''
info+'elegant interval timer with %goals integration'
info+'an interval timer with goals integration'
color+0xff.ffff
version+[1 2 0]
website+'https://github.com/brbenji/focus'
Expand Down
29 changes: 0 additions & 29 deletions desk/lib/rudder.hoon
Original file line number Diff line number Diff line change
Expand Up @@ -178,25 +178,10 @@
::NOTE as set by %next replies
?~ msg=(get-header:http 'rmsg' args) [~ args]
[`[& u.msg] (delete-header:http 'rmsg' args)]
:: XX: maybe this is where I disconnect +build from spout
:: can I instead set a timer, and add [eyre-id
:: simple-payload] to state?
::
:: maybe state has wait=?
:: and build branches from it. it's set with the timers.
::
:: ?: wait :- dat(res.state-p [id (paint (build:page args msg))]
::
:: this probably isn't where I save it into state. perhaps I need
:: adlib for that...only that is only called on a no route.
:: even if I did it +solve, that is only called after POST.
:: and I want to manipulate GET.
::
:-
%+ spout id
(paint (build:page args msg))
dat
:: [dat [id (paint (build:page args msg))]]
::
%'POST'
?@ act=(argue:page [header-list body]:request.order)
Expand All @@ -207,21 +192,7 @@
:_ dat
=? act ?=(~ act) 'failed to process request'
(spout id (paint (final:page | res)))
:: +>.res is dat or the state provided by +solve
:: as defined by the agent
:: -.res is the optional briefing message
:: +<.res is the cards that +solve produces
::
:: XX: what all is possible with this?
:: spout here is going to give me the http-response cards
:: I want those cards in state.
:: if the agent knew those cards within +solve,
:: I could insert it into state there,
:: but this is where it originates and
:: where it is expelled out -.out, back in the agent.
::
:_ +>.res
:: (weld (spout id (paint (final:page & -.res))) [+<.res (spout id (paint (final:page & -.res)))])
(weld (spout id (paint (final:page & -.res))) +<.res)
==
--
Expand Down
2 changes: 1 addition & 1 deletion desk/sys.kelvin
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[%zuse 415]
[%zuse 414]

0 comments on commit 572fb98

Please sign in to comment.