Commit Graph

54 Commits

Author SHA1 Message Date
Richard Feldman
91cec7666d
Fix styling inconsistency between Chrome and FF 2023-11-04 22:07:22 -04:00
Richard Feldman
3e051dad10
Improve web repl 2023-11-03 21:40:34 -04:00
Richard Feldman
3f94d85664
Drop Merriweather and Permanent Marker 2023-11-02 22:54:37 -04:00
Brian Carroll
c50925240d
Merge pull request #5921 from roc-lang/wasm-repl-crash
report roc_panic to the user in the web repl
2023-10-25 19:22:10 +01:00
Anton-4
ec1c22108f
Merge pull request #5926 from roc-lang/wip-website-updates
Updates to WIP website
2023-10-23 20:42:42 +02:00
Folkert
f1cdbb4279
fix JS bitwise math 2023-10-23 19:08:57 +02:00
Richard Feldman
fee7a6d6ae
Drop unnecessary autofocus on source input 2023-10-22 15:17:21 -04:00
Richard Feldman
3da9e2da35
Don't modify www/public/repl.js for WIP website 2023-10-22 10:02:18 -04:00
Richard Feldman
d2f5b272d8
Big bird 2023-10-21 18:34:43 -04:00
Richard Feldman
9e7ae2aa74
Incorporate bird logo into homepage 2023-10-21 14:05:30 -04:00
Richard Feldman
49274476fd
Improve homepage CSS a bunch 2023-10-21 11:01:57 -04:00
Richard Feldman
8232a06c86
Merge remote-tracking branch 'origin/main' into wip-website-updates 2023-10-21 08:59:48 -04:00
Folkert
eb61d352f5
changes after review 2023-10-20 18:04:07 +02:00
Folkert
793ab8ec16
report a roc_panic to the user in the web repl 2023-10-20 14:47:42 +02:00
Brian Carroll
7646eef387
Fix a confusing initial value in the web REPL JS 2023-10-01 21:17:44 +02:00
Richard Feldman
8eb1d78138
Apply web repl mobile styles to larger smartphones 2023-09-28 14:44:12 -04:00
Brian Carroll
1d95ecf021
Delete mock WASI, we're not using it 2023-09-28 09:30:31 +01:00
Brian Carroll
ed81414c5d
Reduce height of web REPL loading message, to match loaded state 2023-09-28 09:27:52 +01:00
Brian Carroll
53406942c7
Make web REPL JS a bit clearer 2023-09-28 09:11:39 +01:00
Richard Feldman
0974d5709d
Give web repl some mobile-friendly styling 2023-09-27 22:09:54 -04:00
Richard Feldman
e2a8c1955d
wip trying things 2023-09-25 09:17:52 -04:00
Anton-4
c310be2b11
no need to link to Bool anymore 2023-09-23 15:02:11 +02:00
Brian Carroll
2ab241dbd6
Remove styles from repl.css that duplicated/conflicted with site.css 2023-09-19 08:37:07 +01:00
Richard Feldman
3ea8cf1813
Fix a dark mode contrast issue 2023-09-18 16:25:37 -05:00
Richard Feldman
b8c09b45c5
Use white-space: pre-wrap over <br> 2023-09-18 16:19:09 -05:00
Richard Feldman
73bf7ac904
Don't move caret down a line on Enter in repl 2023-09-18 15:39:12 -05:00
Richard Feldman
13b87c4e21
Smooth out web repl textarea height growth 2023-09-18 15:26:10 -05:00
Richard Feldman
bf33286390
Don't run web repl input when textarea loses focus 2023-09-18 15:26:10 -05:00
Richard Feldman
ceff4d082e
Improve some cross-browser CSS inconsistencies 2023-09-18 15:26:10 -05:00
Richard Feldman
bd44fbac3b
Explicitly set repl to UTF-8 encoding 2023-09-18 15:26:09 -05:00
Richard Feldman
1f396871f9
Simplify repl tips 2023-09-18 15:26:09 -05:00
Richard Feldman
2bf6dd9b18
Add top bar to web repl 2023-09-18 15:26:09 -05:00
Richard Feldman
c892e09baa
Restyle web repl 2023-09-18 15:26:09 -05:00
Richard Feldman
d3ae8b719b
Fix some favicon stuff, autoformat www content 2023-09-18 15:26:08 -05:00
Brian Carroll
bc7670ee16
Wrap text in web REPL history panel 2023-09-13 12:15:44 +01:00
Brian Carroll
fc991baf6a
Fix a bug in displaying :help text at top of web REPL history
The previous implemenation was adding a fake input and output
to the history and then removing just the input from the DOM.
We also removed the entry from the `inputHistory` array, to
prevent it appearing in the panel when you hit the UP arrow
enough times.
However this introduces a mismatch between the number of items
in `inputHistory` array and the number of `.history-item` divs
in the DOM.
This caused each REPL output to appear *above* the user input
that caused it! 🙃

The fix is to just make all of this separate from history!
We just make a separate call into Rust to get the initial :help.

The original idea was to share code between the initial :help
and the normal REPL operation, but they turn out to be only
similar, not the same.
2023-09-13 08:08:03 +01:00
Brian Carroll
7c54cba17f
Remove unnecessary function wrapper 2023-09-13 08:07:40 +01:00
Brian Carroll
034482101f
Remove initial :help from web REPL history + fix edge cases 2023-09-10 11:26:29 +01:00
Brian Carroll
50980f4b35
Show :help text on loading the web REPL 2023-09-09 16:55:14 +01:00
Brian Carroll
7dfd4ada48
Support both Shift-Enter and Ctrl-Enter for multi-line input 2023-09-09 16:55:08 +01:00
Brian Carroll
03b3b34e3d
Reduce font size on the web REPL 2023-09-09 16:53:47 +01:00
Brian Carroll
ee2731b152
Remove warning on web REPL page 2023-09-09 16:19:03 +01:00
Nachiket Kanore
d8c43864f4 #5724: fix css to fit content on full page without scroll 2023-08-02 20:01:57 +05:30
Anton-4
419f5a4f6a
add warning icon
This helps grab the attention.

Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2023-06-25 19:39:52 +02:00
KekmaTime
69a67aca36 added-paragraph 2023-06-25 19:24:09 +05:30
Richard Feldman
1478cfc3ad
Don't use style attributes for web repl colors
This doesn't work because of our content-security policy!
2022-11-11 12:24:43 -05:00
Brian Carroll
5ef7cb2750
www: handle empty input in web REPL 2022-10-07 08:26:31 +01:00
Brian Carroll
76a8a60547
Web REPL: ensure we only try to append to DOM Elements, not text nodes 2022-10-06 08:27:50 +01:00
Brian Carroll
2b3e386345
www: Disable Web REPL input until the compiler .wasm has loaded 2022-09-12 23:00:22 +01:00
Jan Van Bruggen
3cad172c79
Simplify & generalize comment 2022-09-11 10:25:02 -06:00