mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 16:38:14 +00:00
frontend settings api key pane
This commit is contained in:
1 parent
3b6b6feaa8
commit
580fc3c39e
3 files changed
+15
-2
No files matched your search
-2
@@ -2,7 +2,6 @@ import { SoraAccountBlock } from "./SoraAccountBlock";
|
||||
import { ArtcraftAccountBlock } from "./ArtcraftAccountBlock";
|
||||
import { MidjourneyAccountBlock } from "./MidjourneyAccountBlock";
|
||||
import { GrokAccountBlock } from "./GrokAccountBlock";
|
||||
import { ProviderCredentialsGroupBlock } from "./ProviderCredentialsGroupBlock";
|
||||
import { WorldLabsAccountBlock } from "./WorldLabsAccountBlock";
|
||||
|
||||
interface AccountSettingsPaneProps {
|
||||
@@ -43,7 +42,6 @@ export const AccountSettingsPane = ({
|
||||
<ArtcraftAccountBlock
|
||||
globalAccountLogoutCallback={globalAccountLogoutCallback}
|
||||
/>
|
||||
<ProviderCredentialsGroupBlock />
|
||||
<GrokAccountBlock />
|
||||
<MidjourneyAccountBlock />
|
||||
<SoraAccountBlock />
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
import { ProviderCredentialsGroupBlock } from "./AccountSettings/ProviderCredentialsGroupBlock";
|
||||
|
||||
export const ApiSettingsPane = () => {
|
||||
return (
|
||||
<div className="space-y-4 text-base-fg">
|
||||
<ProviderCredentialsGroupBlock />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
@@ -4,6 +4,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import {
|
||||
faUser,
|
||||
faCog,
|
||||
faKey,
|
||||
faVolumeHigh,
|
||||
faCircleInfo,
|
||||
faCreditCard,
|
||||
@@ -19,6 +20,7 @@ import { ProviderPrioritySettingsPane } from "./panes/ProviderPrioritySettingsPa
|
||||
import { ExperimentalSettingsPane } from "./panes/ExperimentalSettingsPane";
|
||||
import { gtagEvent } from "@storyteller/google-analytics";
|
||||
import { BillingSettingsPane } from "./panes/BillingSettingsPane";
|
||||
import { ApiSettingsPane } from "./panes/ApiSettingsPane";
|
||||
import { AppearanceSettingsPane } from "./panes/AppearanceSettingsPane";
|
||||
import { Button } from "@storyteller/ui-button";
|
||||
import { useExperimentalStore } from "./experimental-store";
|
||||
@@ -36,6 +38,7 @@ type SettingsSection =
|
||||
| "general"
|
||||
| "appearance"
|
||||
| "accounts"
|
||||
| "api_keys"
|
||||
| "alerts"
|
||||
| "about"
|
||||
| "provider_priority"
|
||||
@@ -74,6 +77,7 @@ export const SettingsModal = ({
|
||||
{ id: "general" as const, label: "General", icon: faCog },
|
||||
|
||||
{ id: "accounts" as const, label: "Accounts", icon: faUser },
|
||||
{ id: "api_keys" as const, label: "API Keys", icon: faKey },
|
||||
{ id: "billing" as const, label: "Plan & Credits", icon: faCreditCard },
|
||||
|
||||
/* {
|
||||
@@ -105,6 +109,8 @@ export const SettingsModal = ({
|
||||
globalAccountLogoutCallback={globalAccountLogoutCallback}
|
||||
/>
|
||||
);
|
||||
case "api_keys":
|
||||
return <ApiSettingsPane />;
|
||||
case "about":
|
||||
return <AboutSettingsPane />;
|
||||
case "provider_priority":
|
||||
|
||||
Reference in new issue
Block a user