Commit Graph

5753 Commits

Author SHA1 Message Date
fang
1c01c7dc6c
webterm: update bel and move into lib 2020-11-10 21:11:58 +01:00
fang
c33f027735
hood: auto-start herm 2020-11-10 20:54:06 +01:00
fang
9ccfeb9e8d
soto: tombstone 2020-11-10 20:47:01 +01:00
fang
eb40e2feed
webterm: handle unicode more correctly
Make the marks produce json arrays where the (list @c) type is used.
On the frontend, transform the semantic (character-based) cursor
position into a byte-based one, in order to ensure the cursor gets
rendered at the correct location, even if the presence of multi-byte
characters like emoji.
2020-11-10 20:42:28 +01:00
fang
6b3e062f60
webterm: ensure input spans entire screen
(...even if it might get cut off by prompt rendering details)
2020-11-10 19:35:42 +01:00
fang
9cd9448bcd
dill: remove ducts from %view and %flee interface
This was a little bit too crummy. Instead, we put in a placeholder of ~,
which should be forwards-compatible with atomic session identifiers,
where ~ identifies the default session.

Additionally touches up the herm wires/paths to stick to the above more
closely.
2020-11-10 19:33:11 +01:00
fang
5f5e1def83
mark: handle unicode in belt correctly
Input should be treated as unicode strings
2020-11-10 19:27:25 +01:00
fang
e3dba290c9
webterm: implement underline and blink styles 2020-11-10 01:37:40 +01:00
fang
ee55f34a72
webterm: update input to use indigo components 2020-11-10 00:45:08 +01:00
fang
3b51329b41
webterm: DojoApp -> TermApp 2020-11-10 00:35:27 +01:00
fang
fbda1de612
webterm: dojo -> term
Includes updating the tile data in launch.
2020-11-09 20:29:36 +01:00
fang
089f6515ed
webterm: refactor line to use React.memo
Also leave out unnecessary key detail.
2020-11-09 15:49:30 +01:00
fang
37359d2110
webterm: wrap lines 2020-11-09 15:32:15 +01:00
fang
8e77764cfc
webterm: retain prompt on %clr 2020-11-06 22:41:58 +01:00
fang
acd9176d76
webterm: clean up 2020-11-06 22:32:13 +01:00
fang
f62129d095
herm: keep blit & belt marks in cache
Perhaps there should be a general-purpose mechanism for this, but for
now this will suffice.
2020-11-06 22:30:24 +01:00
fang
f950d710c3
webterm: support downloading files
For %sav and %sag blits.
2020-11-06 13:47:22 +01:00
fang
7a40b1137e
herm: send prompt & cursor on-connect 2020-11-05 20:13:36 +01:00
fang
485a15c913
dill: add scry endpoints for current line & cursor
This will let connecting clients get the rendering-relevant parts of the
current state of the session on demand.
2020-11-05 20:13:03 +01:00
fang
185b553c99
herm: userspace dill proxy
Listens to the default dill session and passes its %blits on to
subscribers. Passes any %belt pokes it gets into dill.

Updates webdojo to make use of it, which is the primary motivation for
herm's existence.
2020-11-05 19:39:08 +01:00
fang
83d46dae88
dill: fall back to default session
This lets us support the "random userspace app sending dill belts".
Ultimately, we'll want to be able to specify a session identifier
alongside the belt, instead of strictly relying on the duct.
2020-11-04 20:12:01 +01:00
fang
eb824f1866
dill: allow watching output of arbitrary sessions
Adds a %view task, which opens a subscription on the output sent to the
specified session. %flee closes the same.
Whenever dill sends a blit to the session, any subscribers get the
output also.

The structures here will become more reasonable once we replace ducts
with proper dill session identifiers.
2020-11-04 20:11:42 +01:00
fang
18494f8a9d
dill: if styled prompt has no style, emit as plain
People using older runtimes might not support the %klr blit. It's not
uncommon for prompts without style to get passed in as %pom though, so
here we catch that case and turn it into a %pro, which gets rendered as
a traditional %lin.
2020-11-04 17:28:05 +01:00
fang
b96e071eb2
Merge branch 'release/next-sys' into release/next-dill 2020-11-04 17:25:35 +01:00
fang
c992e4ce9d
eyre: forego <atom> in favor of (scow %aura atom)
Pretty-printing is expensive, yet we do it whenever we construct the cookie
string, at least once (but usually twice) per authenticated request.

Here we call out the the specific to-tape functions we need, instead of relying
on the pretty-printer for converting... tapes to tapes, among other things.  
The primary gains come from the cookie-related instances, we update the others
mostly for good style.

For the "receive request and immediately send response" case, that is processed
synchronously within eyre (ie, client sends channel ack), speeds thing up by
roughly 55%.
2020-11-04 01:02:11 +01:00
fang
37c0383a79
Merge pull request #3864 from urbit/m/ream-to-zapcom
clay: replace ream with nouns and !, zapcom
2020-11-03 21:55:49 +01:00
fang
acf0f8d0e1
clay: %limb instead of %wing 2020-11-03 16:35:28 +01:00
pkova
b114956870 zuse: improve url extension parsing
Previously extensions ending with numbers such as .woff2 were not recognized.
2020-11-03 15:54:10 +02:00
fang
e7afc51018
clay: replace ream with nouns and !, zapcom
Motivation for the change is performance improvements on the un-`^~`d uses of
ream. Parsing turns out to be slow, making ream slow in turn. So we construct
the hoon ast manually instead.

!, is arguably better style than ream, since it doesn't require a ^~ for static
input, and lets syntax highlighting function properly.

For the investigated case, in +get-cast's +grow flow, improves performance by
over 80%.
2020-11-03 00:27:10 +01:00
fang
a35cad457a
Merge pull request #3830 from urbit/m/respect-forwarded-more
eyre: respect protocol from Forwarded header
2020-10-31 00:38:41 +01:00
fang
f8a2235d6e
Merge pull request #3835 from urbit/m/silent-subs
eyre: ignore facts directly after clog
2020-10-29 22:13:04 +01:00
fang
42229657ca
eyre: respect protocol from Forwarded header
If the Forwarded header specifies the original connection is secure,
update the flag to reflect that, regardless of whether the connection
directly to the urbit was made securely.
2020-10-29 14:24:24 +01:00
fang
82dcad4c59
zuse: if empty, unpack header into empty list
Previously, would give a ~[{}] for the '' header. This makes it parse
that as "no entries" rather than "one entry without data".
2020-10-29 14:19:57 +01:00
Philip Monk
f548deaff6
Merge pull request #3787 from urbit/philip/symbols
hoon: update glyph names
2020-10-26 18:06:53 -07:00
Joe Bryan
aa200cf25a
Merge pull request #3786 from urbit/jb/ames-peek-forward-lane
ames: updates forward-lane scry-handling to prevent routing loops
2020-10-26 11:56:23 -07:00
fang
93475aa756
eyre: remove fact-without-subscription printf 2020-10-26 15:52:39 +01:00
fang
26049a3da0
eyre: ignore facts directly after clog
When an application would send multiple facts during a single event, it
was possible for the first fact to trigger a clog, removing the
subscription and sending a quit, but then the second fact still getting
sent out at normal.

Here, we drop any facts for subscriptions we don't have registered in
state, which should only happen in the described case.
2020-10-24 11:45:21 +02:00
fang
b92cfdb242
eyre: produce moves in correct order
Because storing in reverse order means producing in reverse reverse
order.

The tests didn't catch this because they, too, were infected with the
"reverse moves" meme.
2020-10-24 01:48:51 +02:00
Philip Monk
fc15f0d735
Merge branch 'pr' into HEAD 2020-10-22 20:47:53 -07:00
Matilde Park
6a97ebb54f Merge branch 'release/next-userspace' 2020-10-22 22:21:18 -04:00
Matilde Park
1930a75d73 glob: update to 0v2.1vtfh.0l23v.30s7f.n57l9.dpjvi 2020-10-22 22:19:58 -04:00
matildepark
d8c83f886f
Merge pull request #3773 from urbit/mp/landscape/dm-restoration
chat: create dm route, restore participants option
2020-10-22 22:12:17 -04:00
Liam Fitzgerald
4f3b17412c landscape: make link relative for DM 2020-10-23 12:09:47 +10:00
Liam Fitzgerald
c96cf96c86 landscape: use invite popover for DM 2020-10-23 12:05:00 +10:00
Liam Fitzgerald
bfc412042e landscape: add DM dropdown 2020-10-23 11:48:31 +10:00
matildepark
85ea3a88d3
Merge pull request #3776 from urbit/mp/publish/groupify
landscape: add 'admin only' check to groupify form
2020-10-22 21:27:39 -04:00
matildepark
20240a8d36
Merge pull request #3785 from tylershuster/clock-mask
clock: svg with mask
2020-10-22 21:27:19 -04:00
matildepark
87ae39defc
Merge pull request #3784 from urbit/lf/ordered-map-fix
graph-js: normalize keys in reducer
2020-10-22 21:24:08 -04:00
Liam Fitzgerald
8e7d9a5e01 graph-js: save original keys and indices 2020-10-23 11:21:36 +10:00
Liam Fitzgerald
bf1a206ae1 graph-js: normalize node.post.index 2020-10-23 10:59:02 +10:00