add export flow on API modal and fix .env bug (#1896)

* feat(codeTabsComponent): add ExportModal component to enable exporting flow data in CodeTabsComponent

* refactor(service.py): update VariableService to handle environment variables with
whitespace by stripping the value before creating the variable

* chore: Update package versions to 1.0.0a33 and 0.0.44 for 'langflow' and 'langflow-base' respectively

* make lock
This commit is contained in:
anovazzi1 2024-05-14 19:23:36 -03:00 • committed by GitHub
commit 14ff98213d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 138 additions and 114 deletions

View file

@ -43,6 +43,7 @@ import KeypairListComponent from "../keypairListComponent";
import ShadTooltip from "../shadTooltipComponent";
import { Label } from "../ui/label";
import { Switch } from "../ui/switch";
import ExportModal from "../../modals/exportModal";
export default function CodeTabsComponent({
flow,
@ -167,6 +168,12 @@ export default function CodeTabsComponent({
Tweaks
</Label>
</div>
<ExportModal>
<div className="flex cursor-pointer items-center gap-1.5 rounded bg-none p-1 text-xs text-gray-500 dark:text-gray-300">
<IconComponent name="FileDown" className="h-4 w-4" />
Export Flow
</div>
</ExportModal>
{Number(activeTab) < 4 && (
<>