mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-24 23:09:23 +08:00
Before this commit, LivebookWeb had runtime dependencies into the project, causing large compilation cycles. Using the following command in Elixir v1.17.3+ $ mix xref graph --format stats --label compile-connected Would reveal: Top 10 files with most incoming dependencies: * lib/livebook_web.ex (97) * lib/livebook/config.ex (3) * proto/lib/livebook_proto/deployment_group.pb.ex (2) After this patch: Top 10 files with most incoming dependencies: * lib/livebook/config.ex (3) * proto/lib/livebook_proto/deployment_group.pb.ex (2) * lib/livebook_web/plugs/memory_provider.ex (2)
31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<meta name="csrf-token" content={get_csrf_token()} />
|
|
<link rel="icon" type="image/svg+xml" href={~p"/favicon.svg"} />
|
|
<link rel="alternate icon" type="image/png" href={~p"/favicon.png"} />
|
|
<.live_title>
|
|
<%= assigns[:page_title] || "Livebook" %>
|
|
</.live_title>
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/app.css"} />
|
|
<script>
|
|
window.LIVEBOOK_BASE_URL_PATH = "<%= LivebookWeb.VerifiedRoutes.base_url_path() %>";
|
|
window.LIVEBOOK_PUBLIC_BASE_URL_PATH = "<%= LivebookWeb.VerifiedRoutes.public_base_url_path() %>"
|
|
</script>
|
|
<LivebookWeb.LayoutComponents.dev_script />
|
|
<%!-- This prevents the script to be loaded twice in Chrome --%>
|
|
<link rel="modulepreload" href={~p"/assets/app.js"} />
|
|
<script phx-track-static type="module" src={~p"/assets/app.js"}>
|
|
</script>
|
|
</head>
|
|
<body
|
|
class="bg-white"
|
|
data-feature-flags={Livebook.Config.enabled_feature_flags() |> Enum.join(",")}
|
|
data-within-iframe={Livebook.Config.within_iframe?()}
|
|
>
|
|
<%= @inner_content %>
|
|
</body>
|
|
</html>
|