mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-11 07:24:30 +08:00
Explain secrets on the hub page, closes #1827
This commit is contained in:
parent
6d91320441
commit
9fa8fcef1b
2 changed files with 8 additions and 2 deletions
|
@ -23,7 +23,7 @@ defmodule LivebookWeb.Hub.Edit.PersonalComponent do
|
|||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<div id={"#{@id}-component"} class="space-y-8">
|
||||
<div id={"#{@id}-component"} class="space-y-8 pb-8">
|
||||
<div class="space-y-4">
|
||||
<LayoutHelpers.title text={"#{@hub.hub_emoji} #{@hub.hub_name}"} />
|
||||
|
||||
|
@ -69,6 +69,12 @@ defmodule LivebookWeb.Hub.Edit.PersonalComponent do
|
|||
Secrets
|
||||
</h2>
|
||||
|
||||
<p class="text-gray-700">
|
||||
Secrets are a safe way to share credentials and tokens with notebooks.
|
||||
They are often shared with Smart cells and can be read as
|
||||
environment variables using the <code>LB_</code> prefix.
|
||||
</p>
|
||||
|
||||
<.secrets_list
|
||||
id="hub-secrets-list"
|
||||
new_secret_path={~p"/hub/#{@hub.id}/secrets/new"}
|
||||
|
|
|
@ -192,7 +192,7 @@ defmodule LivebookWeb.SessionLive.SecretsListComponent do
|
|||
~S'''
|
||||
Secrets are a safe way to share credentials
|
||||
and tokens with notebooks. They are often
|
||||
accessed by Smart cells and can be read as
|
||||
shared with Smart cells and can be read as
|
||||
environment variables using the LB_ prefix.
|
||||
'''
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue