Commit graph

965 commits

Author SHA1 Message Date
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
jonatanklosko 44659dfb19 Update assets 2022-02-10 10:27:15 +00:00
Jonatan Kłosko 53aea7af6e Leave JS output channel only if it exists 2022-02-10 11:25:37 +01:00
Jonatan Kłosko 7f19afe7af
Fastlane JS channel events (#993)
* Fastlane JS channel events

* Abstract fastlaning to separate concerns
2022-02-09 23:15:03 +01:00
Jonatan Kłosko 19b777eb4e
Handle runtime event broadcast in a separate worker process (#992)
* Handle runtime event broadcast in a separate worker process

* Improve wording
2022-02-09 19:47:26 +01:00
jonatanklosko ea54214359 Update assets 2022-02-08 19:13:39 +00:00
Jonatan Kłosko 565f65d0fc
JS output fixes (#991)
* Explicitly leave the JS channel before disconnecting the socket

* Reposition iframe when the sidebar is toggled and on window resize
2022-02-08 20:12:03 +01:00
Adam Lancaster c972b195c5
Increase timeout for connecting via Mix standalone (#846)
* Increase timeout for connecting via Mix standalone

I have hit this timeout when connecting via mix to a fairly large
application. Increasing this fixes it for my use case.

* Update lib/livebook/runtime/standalone_init.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-02-08 15:22:38 +01:00
jonatanklosko fa3132133e Update assets 2022-02-08 13:47:46 +00:00
Jonatan Kłosko e5e13d86c2
Serve iframes from another local port when running on http (#989)
* Serve iframes from another local port when running on http

* Use relative hostname in local iframe URL

* Simplify server start check

* Use random iframe port when Livebook runs on a random port

* Rename space/ to iframe/

* LivebookWeb.IframePlug -> LivebookWeb.IframeEndpoint
2022-02-08 14:45:58 +01:00
jonatanklosko 93592c1f89 Update assets 2022-02-07 20:04:58 +00:00
Jonatan Kłosko ccc64876a8
Add support for widget binary payloads (#982)
* Add support for widget binary payloads

* Migrate LV auth to a separate hook

* Properly set user buffer when encoding
2022-02-07 21:03:25 +01:00
Sam 494ab40ac8
add function to open notebook urls (#986)
* add function to open notebook urls

* Update lib/livebook/utils.ex

Co-authored-by: José Valim <jose.valim@gmail.com>

* Update lib/livebook/utils.ex

Co-authored-by: José Valim <jose.valim@gmail.com>

* open notebook with notebook_open_url/2

* Update server.ex

* format Livebook.Utils

* Update lib/livebook_cli/server.ex

Co-authored-by: José Valim <jose.valim@gmail.com>

* correct function doc

Co-authored-by: José Valim <jose.valim@gmail.com>
2022-02-07 13:39:23 +01:00
Wojtek Mach 5e82147db0
standalone.exs: Cache Elixir download (#988) 2022-02-07 12:33:38 +01:00
Wojtek Mach 2c34f62c11
standalone.exs: Ensure OTP version (#987) 2022-02-07 12:33:28 +01:00
gpopides 19f4f17e74
check if section has valid parent when importing notebook (#984)
* check if section has valid parent + tests

* formatting

* apply review feedback

* fix the forgotten test

* apply feedback

* apply feedback

* produce a warning if the section points to itself + tests

* Apply suggestions from code review

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-02-06 12:51:09 +01:00
jonatanklosko 9c871960f3 Update assets 2022-02-05 21:43:39 +00:00
Jonatan Kłosko 9fab78d2a6
Load iframe using the same protocol as the app (#985) 2022-02-05 22:41:58 +01:00
José Valim 270573d2e6
Use lowercase header name 2022-02-04 21:44:56 +01:00
cristineguadelupe 8943ad3a48 Update assets 2022-02-04 16:07:20 +00:00
Cristine Guadelupe 904a21a761
Accessibility improvements - home page (#979)
* Accessibility improvements on home page

* Unique ids for file info path buttons

* Improves navigation for screen readers in the session list

* Landmarks navigation for screen readers

* Headings navigation for screen readers

* Group navigation - running sessions list

* Fix typo

* Minor adjustments based on review suggestions
2022-02-04 13:05:38 -03:00
Benjamin Philip 1a0b9e0f7d
Allow downloading source from sessions list (#980)
* Support downloading source on a per session basis

* Update session_list_component.ex

* Add test

* Update lib/livebook_web/live/home_live/session_list_component.ex

* Update test/livebook_web/live/home_live_test.exs

Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-02-04 11:36:09 +01:00
jonatanklosko a308a63994 Update assets 2022-02-03 23:39:46 +00:00
Jonatan Kłosko 2e17ad48d6 Correctly handle boolean attributes with data-keep-attribute 2022-02-04 00:37:46 +01:00
José Valim 37cb549d02 Use guards for checking live action 2022-02-04 00:01:45 +01:00