Refactor: Change texts
This commit is contained in:
parent
5300549b61
commit
463ee575e0
6 changed files with 12 additions and 13 deletions
|
|
@ -166,7 +166,7 @@ export default function CodeTabsComponent({
|
||||||
) : (
|
) : (
|
||||||
<IconComponent name="Clipboard" className="h-4 w-4" />
|
<IconComponent name="Clipboard" className="h-4 w-4" />
|
||||||
)}
|
)}
|
||||||
{isCopied ? "Copied!" : "Copy code"}
|
{isCopied ? "Copied!" : "Copy Code"}
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="flex items-center gap-1.5 rounded bg-none p-1 text-xs text-gray-500 dark:text-gray-300"
|
className="flex items-center gap-1.5 rounded bg-none p-1 text-xs text-gray-500 dark:text-gray-300"
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ export function CodeBlock({ language, value }: Props): JSX.Element {
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<button className="code-block-modal-button" onClick={copyToClipboard}>
|
<button className="code-block-modal-button" onClick={copyToClipboard}>
|
||||||
{isCopied ? <IconCheck size={18} /> : <IconClipboard size={18} />}
|
{isCopied ? <IconCheck size={18} /> : <IconClipboard size={18} />}
|
||||||
{isCopied ? "Copied!" : "Copy code"}
|
{isCopied ? "Copied!" : "Copy Code"}
|
||||||
</button>
|
</button>
|
||||||
<button className="code-block-modal-button" onClick={downloadAsFile}>
|
<button className="code-block-modal-button" onClick={downloadAsFile}>
|
||||||
<IconDownload size={18} />
|
<IconDownload size={18} />
|
||||||
|
|
|
||||||
|
|
@ -716,8 +716,8 @@ export const chatInputPlaceholder =
|
||||||
export const chatInputPlaceholderSend = "Send a message...";
|
export const chatInputPlaceholderSend = "Send a message...";
|
||||||
export const editCodeTitle = "Edit Code";
|
export const editCodeTitle = "Edit Code";
|
||||||
export const myCollectionDesc =
|
export const myCollectionDesc =
|
||||||
"Manage your personal projects. Download or upload your collection.";
|
"Manage your personal projects. Download and upload entire collections.";
|
||||||
export const storeDesc = "Search flows and components from the community.";
|
export const storeDesc = "Explore community-shared flows and components.";
|
||||||
export const storeTitle = "Langflow Store";
|
export const storeTitle = "Langflow Store";
|
||||||
export const noApi = "You don't have an API key. ";
|
export const noApi = "You don't have an API key. ";
|
||||||
export const insertApi = "Insert your Langflow API key.";
|
export const insertApi = "Insert your Langflow API key.";
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,9 @@ export default function DeleteConfirmationModal({
|
||||||
</DialogTitle>
|
</DialogTitle>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<span>
|
<span>
|
||||||
Are you sure you want to delete this {description ?? "component"}?
|
Confirm deletion of {description ?? "component"}?
|
||||||
<br></br>
|
<br></br>
|
||||||
This action cannot be undone.
|
Note: This action is irreversible.
|
||||||
</span>
|
</span>
|
||||||
<DialogFooter>
|
<DialogFooter>
|
||||||
<DialogClose>
|
<DialogClose>
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ export function CodeBlock({ language, value }: Props): JSX.Element {
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
<button className="code-block-modal-button" onClick={copyToClipboard}>
|
<button className="code-block-modal-button" onClick={copyToClipboard}>
|
||||||
{isCopied ? <IconCheck size={18} /> : <IconClipboard size={18} />}
|
{isCopied ? <IconCheck size={18} /> : <IconClipboard size={18} />}
|
||||||
{isCopied ? "Copied!" : "Copy code"}
|
{isCopied ? "Copied!" : "Copy Code"}
|
||||||
</button>
|
</button>
|
||||||
<button className="code-block-modal-button" onClick={downloadAsFile}>
|
<button className="code-block-modal-button" onClick={downloadAsFile}>
|
||||||
<IconDownload size={18} />
|
<IconDownload size={18} />
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ export default function ShareModal({
|
||||||
const setErrorData = useAlertStore((state) => state.setErrorData);
|
const setErrorData = useAlertStore((state) => state.setErrorData);
|
||||||
const [internalOpen, internalSetOpen] = useState(children ? false : true);
|
const [internalOpen, internalSetOpen] = useState(children ? false : true);
|
||||||
const [openConfirmationModal, setOpenConfirmationModal] = useState(false);
|
const [openConfirmationModal, setOpenConfirmationModal] = useState(false);
|
||||||
const nameComponent = is_component ? "component" : "flow";
|
const nameComponent = is_component ? "component" : "workflow";
|
||||||
|
|
||||||
const [tags, setTags] = useState<{ id: string; name: string }[]>([]);
|
const [tags, setTags] = useState<{ id: string; name: string }[]>([]);
|
||||||
const [loadingTags, setLoadingTags] = useState<boolean>(false);
|
const [loadingTags, setLoadingTags] = useState<boolean>(false);
|
||||||
|
|
@ -179,7 +179,7 @@ export default function ShareModal({
|
||||||
</span>
|
</span>
|
||||||
<br></br>
|
<br></br>
|
||||||
<span className=" text-xs text-destructive ">
|
<span className=" text-xs text-destructive ">
|
||||||
Warning: This action cannot be undone.
|
Note: This action is irreversible.
|
||||||
</span>
|
</span>
|
||||||
</ConfirmationModal.Content>
|
</ConfirmationModal.Content>
|
||||||
</ConfirmationModal>
|
</ConfirmationModal>
|
||||||
|
|
@ -204,7 +204,7 @@ export default function ShareModal({
|
||||||
{children ? children : <></>}
|
{children ? children : <></>}
|
||||||
</BaseModal.Trigger>
|
</BaseModal.Trigger>
|
||||||
<BaseModal.Header
|
<BaseModal.Header
|
||||||
description={`Share your ${nameComponent} to the Langflow Store.`}
|
description={`Publish ${is_component ? "your component" : "workflow"} to the Langflow Store.`}
|
||||||
>
|
>
|
||||||
<span className="pr-2">Share</span>
|
<span className="pr-2">Share</span>
|
||||||
<IconComponent
|
<IconComponent
|
||||||
|
|
@ -235,12 +235,11 @@ export default function ShareModal({
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<label htmlFor="public" className="export-modal-save-api text-sm ">
|
<label htmlFor="public" className="export-modal-save-api text-sm ">
|
||||||
Make {nameComponent} public
|
Set {nameComponent} status to public
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<span className=" text-xs text-destructive ">
|
<span className=" text-xs text-destructive ">
|
||||||
<b>Warning:</b> API keys in designated fields are removed when
|
<b>Attention:</b> API keys in specified fields are automatically removed upon sharing.
|
||||||
sharing.
|
|
||||||
</span>
|
</span>
|
||||||
</BaseModal.Content>
|
</BaseModal.Content>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue