Commit graph

1139 commits

Author SHA1 Message Date
Jonatan Kłosko 8bb8160605 Skip padding when encoding the confirmation modal id 2022-03-03 02:13:47 +01:00
Wojtek Mach d297eee919
Download makensis.exe and magick.exe on demand (#1037) 2022-03-02 21:28:06 +01:00
Cristine Guadelupe 88747c1790
Typo: report smart cell definitions function name (#1038) 2022-03-02 16:40:16 -03:00
jonatanklosko 47cf07b796 Update assets 2022-03-02 12:11:17 +00:00
Jonatan Kłosko 24e59598fb
Update dependencies (#1036)
* Bump Elixir deps

* Bump JavaScript dependencies
2022-03-02 13:09:41 +01:00
jonatanklosko c100a17ba7 Update assets 2022-03-02 11:49:36 +00:00
Jonatan Kłosko e27ff5a960
Rename Elixir cell to Code cell (#1035) 2022-03-02 12:48:02 +01:00
Jonatan Kłosko aaeac6bb95
Add an action converting smart cell to elixir cell (#1030)
* Add an action converting smart cell to elixir cell

* Simplify tests setup

* Add confirmation

* Update lib/livebook_web/live/session_live/cell_component.ex

Co-authored-by: José Valim <jose.valim@dashbit.co>

Co-authored-by: José Valim <jose.valim@dashbit.co>
2022-03-02 12:13:44 +01:00
Wojtek Mach 29f0f54bbd
Desktop app packaging for Windows (#1032) 2022-03-02 12:06:30 +01:00
Wojtek Mach 59e4713008 Expand path before opening it (another attempt)
See: 864624ad2c
2022-03-02 11:53:02 +01:00
Wojtek Mach 864624ad2c Expand path before opening it
Say we have this path on Windows: `C:/Users/wojtek/foo.livemd`. Opening
it: (ignore it's not escaped)

    http://localhost:4000/open?path=C:/Users/wojtek/foo.livemd

would have failed with:

    ** (ArgumentError) expected an expanded absolute path, got: "C:/Users/wojtek/foo.livemd"

and that's because absolute paths (in other words, Path expanded) start
with `c:/`, not `C:/`.
2022-03-02 11:37:07 +01:00
Jonatan Kłosko 1dc7c43b70
Simplify user modals (#1034)
* Simplify user modals

* Naming
2022-03-02 00:43:06 +01:00
jonatanklosko 2e1f6774f4 Update assets 2022-03-01 23:28:18 +00:00
Jonatan Kłosko d191b7eb9d
Set up confirmation modals (#1033)
* Set up confirmation modals

* Add temporary fix for the global hook remount
2022-03-02 00:26:40 +01:00
Jonatan Kłosko f58f9609d2
Fix race conditions in tests (#1031)
* Fix race conditions in tests

* Format

* Increase session import redirect timeout

* Increase intellisense timeout
2022-02-28 22:27:39 +01:00
jonatanklosko f11b9d50c9 Update assets 2022-02-28 12:55:04 +00:00
Jonatan Kłosko 9d7fe44253
Introduce smart cells (#1029)
* Introduce smart cells

* Apply review comments
2022-02-28 13:53:33 +01:00
José Valim 136d5039c4 Add rebar and hex update steps to README 2022-02-26 09:40:21 +01:00
José Valim 3622d0ee4b
Provide better stacktraces on recent Elixir+OTP versions (#1028) 2022-02-24 19:19:22 +01:00
Jonatan Kłosko f5c99737dd
Simplify the forwarding IO device (#1024) 2022-02-23 20:47:24 +01:00
Jonatan Kłosko 4f61639fba Use System.os_time/0 for ordering file systems 2022-02-22 23:09:54 +01:00
Jakub Perżyło 4fcdeb6bcf
Changed filesystems config manipulation to use ids (#1017)
* Changed filesystems mainpulation to use ids

* Adjusted to review

* Added filesystem ordering

* Apply suggestions from code review

* Format

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-02-22 22:42:54 +01:00
jonatanklosko c5f02347c8 Update assets 2022-02-22 11:04:27 +00:00
Jonatan Kłosko f699575b45
Cache mermaid graph rendering (#1023)
* Cache mermaid graph rendering

* Bump mermaid

* Update naming
2022-02-22 12:02:53 +01:00
Jonatan Kłosko ca0128d028
Remove leftovers in case assets extraction fails (#1020) 2022-02-22 01:01:04 +01:00
jonatanklosko 3f872816ee Update assets 2022-02-21 19:41:06 +00:00
Jonatan Kłosko 0386a032a1
Reinitialize hooks on reconnection (#1018)
* Reinitialize cells on reconnection

* Send initial session data without additional roundtrip
2022-02-21 20:39:29 +01:00
José Valim 3bc219e5d8
Bring path verification and add normalization (#1016)
* Bring path verification and add normalization

* Normalize user home

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-02-21 13:18:17 +01:00
José Valim e71f5b8fa6 Add .gitattributes to keep newlines on checksumed files 2022-02-21 09:02:16 +01:00
José Valim b2d717faee mix format 2022-02-21 09:00:32 +01:00
José Valim 7050180242 Resolve paths instead of raising 2022-02-21 08:08:24 +01:00
Jonatan Kłosko 797befe28f Fix undesired scrollbar on the homepage 2022-02-19 01:30:08 +01:00
Kevin 4fac98e069
Fix double slashes in URL for new (#1013)
* Fix double slashes in URL for `new`

* Fix formatting

* Rename to append_path/2 to set_path/2
2022-02-18 20:57:03 +01:00
Jonatan Kłosko fb9c4fbef8
Don't open browser after starting the server unless explicitly asked (#1011) 2022-02-18 17:27:36 +01:00
Cristine Guadelupe d775908a48
Adds role button to cell link button (#1010) 2022-02-17 23:39:38 -03:00
Cristine Guadelupe b32b363ed1
Improves cell accessibility (#1009)
* Reads the output after a cell has been evaluated

* Creates SR landmarks when errors happen

* fixes formatting

* Reads a clearer message when a runtime restart is required

* Update lib/livebook_web/live/session_live/cell_component.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-02-17 19:37:14 -03:00
cristineguadelupe 8055858381 Update assets 2022-02-16 18:52:09 +00:00
Cristine Guadelupe 72da7da3b5
Live region for home page (#1007)
* Live region on home

* Live region: bulk actions

* Live region: ordered by info

* Makes the live region helper global
2022-02-16 15:50:32 -03:00
José Valim 71319246c4
Write to file out-of-band (#1006)
* Write to file out-of-band

It won't block the immediate write but it may block
a subsequent write. A sync function was added for
testing purposes.

* Update lib/livebook/storage/ets.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-02-15 21:17:43 +01:00
José Valim a5a1a54f19
Log and use more clearer name for table (#1005) 2022-02-15 20:29:58 +01:00
Jakub Perżyło 48f72a003a
ETS config file persistence (#1002)
* Added Ets config storage file persistence

* Adjusted to review

* Adjusted to review

* Removed redundant code

* Update lib/livebook/storage/ets.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-02-15 19:28:14 +01:00
Wojtek Mach d11090b4f9
Create release cookie in env scripts (#1004) 2022-02-15 12:44:59 +01:00
José Valim 2c271e2efb
Create home and data_path directories if missing (#1003)
* Create home and data_path directories if missing

* Update lib/livebook/config.ex

* Configure project-local data path for dev and test env

* Expand dev/test paths in compile config

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-02-14 22:19:06 +01:00
jonatanklosko 8836d6908c Update assets 2022-02-14 20:24:44 +00:00
Jonatan Kłosko 5cb0c68c41
Delay appearing input focus (#1001) 2022-02-14 21:22:58 +01:00
cristineguadelupe 353e1f7889 Update assets 2022-02-11 12:50:35 +00:00
Cristine Guadelupe 2f9dd73a7b
New bin modal (#997)
* New empty bin modal

* New bin modal

* Smaller buttons

* Conditional rendering improvements
2022-02-11 09:49:00 -03:00
Jonatan Kłosko fb0c96fa99
Speed up tests (#996)
* Close sessions created during tests

* Change live_patch to live_redirect where applicable
2022-02-10 15:36:59 +01:00
Jonatan Kłosko ca27bb157f
Refactoring (#994)
* Group all runtime messages under a common prefix

* Move output specification ot the Runtime protocol

* Update doc comments

* Livebook.Evaluator -> Livebook.Runtime.Evaluator

* Livebook.ContentLoader -> Livebook.Notebook.ContentLoader

* Livebook.UniqueTask -> Livebook.Utils.UniqueTask

* Add import/export delegates to Livebook.LiveMarkdown
2022-02-10 12:15:41 +01:00
Wojtek Mach 1d03f59d2e
Switch importing to opening files in the desktop app (#995) 2022-02-10 11:54:42 +01:00