mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-12 18:58:54 +08:00
79e5c432b3
* Isolate evaluation in separate node for each session * Start new remote upon first evaluation and handle nodedown * Add UI for managing evaluation node, improve naming and structure * Show runtime initialization errors and some fixes * Improve standalone node initialization * Correctly handle multiple sessions connecting to the same node * Fix session tests concerning evaluation * Documentation and some refactoring * Various improvements * Configure schedulers to get to sleep immediately after evaluation * Move EvaluatorSpervisor into the Remote namespace * Fix evaluators cleanup * Add tests * Improve flash messages * Introduce remote genserver taking care of cleanup * Redefine the Runtime protocol to serve as an interface for evaluation * Cleanup operations * Use reference for communication with a standalone node * Use shortnames for distribution by default * Update node configuration and make sure epmd is running * Rename Remote to ErlDist
27 lines
996 B
Text
27 lines
996 B
Text
<main role="main" class="flex-grow flex flex-col h-screen">
|
|
<div class="fixed right-5 bottom-5 z-50 flex flex-col space-y-3">
|
|
<%= if live_flash(@flash, :info) do %>
|
|
<div class="flex items-center space-x-2 rounded-md px-4 py-2 bg-blue-100 text-blue-400 hover:opacity-75 cursor-pointer" role="alert"
|
|
phx-click="lv:clear-flash"
|
|
phx-value-key="info">
|
|
<%= Icons.svg(:information_circle, class: "h-6 w-6") %>
|
|
<span>
|
|
<%= live_flash(@flash, :info) %>
|
|
</span>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= if live_flash(@flash, :error) do %>
|
|
<div class="flex items-center space-x-2 rounded-md px-4 py-2 bg-red-100 text-red-400 hover:opacity-75 cursor-pointer" role="alert"
|
|
phx-click="lv:clear-flash"
|
|
phx-value-key="error">
|
|
<%= Icons.svg(:exclamation_circle, class: "h-6 w-6") %>
|
|
<span>
|
|
<%= live_flash(@flash, :error) %>
|
|
</span>
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
|
|
<%= @inner_content %>
|
|
</main>
|