mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-24 06:48:07 +08:00
Change copy about the relationship of a notebook and secrets (#2575)
This commit is contained in:
parent
27c72f564f
commit
f7728c6859
4 changed files with 11 additions and 14 deletions
|
@ -89,9 +89,8 @@ defmodule LivebookWeb.Hub.Edit.PersonalComponent do
|
|||
</h2>
|
||||
|
||||
<p class="text-gray-700">
|
||||
Secrets are a safe way to share credentials and tokens with notebooks.
|
||||
They are often used by Smart cells and can be read as
|
||||
environment variables using the <code>LB_</code> prefix.
|
||||
Secrets are a safe way to allow notebooks to access
|
||||
credentials and tokens.
|
||||
</p>
|
||||
|
||||
<.live_component
|
||||
|
|
|
@ -162,10 +162,8 @@ defmodule LivebookWeb.Hub.Edit.TeamComponent do
|
|||
</h2>
|
||||
|
||||
<p class="text-gray-700">
|
||||
Secrets are a safe way to share credentials and tokens with notebooks
|
||||
across your whole team.
|
||||
They are often used by Smart cells and can be read as
|
||||
environment variables using the <code>LB_</code> prefix.
|
||||
Secrets are a safe way to allow notebooks to access
|
||||
credentials and tokens.
|
||||
</p>
|
||||
|
||||
<.live_component
|
||||
|
|
|
@ -187,7 +187,7 @@ defmodule LivebookWeb.SessionLive.SecretsComponent do
|
|||
<div class="mx-auto">
|
||||
<div class="rounded-lg bg-blue-600 py-1 px-4 shadow-sm">
|
||||
<div class="flex flex-wrap items-center justify-between">
|
||||
<div class="flex w-0 flex-1 items-center">
|
||||
<div class="flex w-0 flex-1 items-center pr-1">
|
||||
<.remix_icon
|
||||
icon="error-warning-fill"
|
||||
class="align-middle text-2xl flex text-gray-100 rounded-lg py-2"
|
||||
|
@ -195,7 +195,7 @@ defmodule LivebookWeb.SessionLive.SecretsComponent do
|
|||
<span class="ml-2 text-sm font-normal text-gray-100">
|
||||
There is a secret named
|
||||
<span class="font-semibold text-white"><%= @secret.name %></span>
|
||||
in <%= hub_label(@hub) %>. Allow this session to access it?
|
||||
in the <%= hub_label(@hub) %> workspace. Allow this notebook to access it?
|
||||
</span>
|
||||
</div>
|
||||
<.button
|
||||
|
|
|
@ -47,7 +47,7 @@ defmodule LivebookWeb.SessionLive.SecretsListComponent do
|
|||
<%= if @hub_secrets == [] do %>
|
||||
No secrets stored in this hub so far
|
||||
<% else %>
|
||||
Toggle to share with this session
|
||||
Toggle to allow access to a secret
|
||||
<% end %>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -195,10 +195,10 @@ defmodule LivebookWeb.SessionLive.SecretsListComponent do
|
|||
class="tooltip bottom-left"
|
||||
data-tooltip={
|
||||
~S'''
|
||||
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 LB_ prefix.
|
||||
Secrets are a safe way to allow notebooks
|
||||
to access credentials and tokens.
|
||||
Your notebook can read them as environment
|
||||
variables using the LB_ prefix.
|
||||
'''
|
||||
}
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue