mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 02:00:46 +00:00
don't leak storyteller.ai studio features
This commit is contained in:
1 parent
7eb003f515
commit
2b4879d1d5
3 files changed
+19
-6
No files matched your search
@@ -46,7 +46,8 @@ class ApiConfig {
|
||||
break;
|
||||
case "storyteller.ai":
|
||||
case "staging.storyteller.ai":
|
||||
apiHost = "api.storyteller.ai";
|
||||
//apiHost = "api.storyteller.ai";
|
||||
apiHost = "api.fakeyou.com";
|
||||
break;
|
||||
case "storyteller.stream":
|
||||
// Storyteller.stream is deprecated and will be decommissioned in the future.
|
||||
@@ -61,7 +62,8 @@ class ApiConfig {
|
||||
case "devproxy.storyteller.ai":
|
||||
case "devproxy.storyteller.ai:7000":
|
||||
case "devproxy.storyteller.ai:7001":
|
||||
apiHost = "api.storyteller.ai";
|
||||
//apiHost = "api.storyteller.ai";
|
||||
apiHost = "api.fakeyou.com";
|
||||
useSsl = true;
|
||||
break;
|
||||
case "dev.fakeyou.com":
|
||||
|
||||
@@ -15,13 +15,15 @@ export default function GetApiHost() {
|
||||
return hostConfig("api.fakeyou.com");
|
||||
case "storyteller.ai":
|
||||
case "staging.storyteller.ai":
|
||||
return hostConfig("api.storyteller.ai");
|
||||
//return hostConfig("api.storyteller.ai");
|
||||
return hostConfig("api.fakeyou.com");
|
||||
case "storyteller.stream": // Storyteller.stream is deprecated and will be decommissioned in the future.
|
||||
return hostConfig("api.storyteller.stream");
|
||||
case "devproxy.fakeyou.com":
|
||||
return hostConfig("api.fakeyou.com");
|
||||
case "devproxy.storyteller.ai":
|
||||
return hostConfig("api.storyteller.ai");
|
||||
//return hostConfig("api.storyteller.ai");
|
||||
return hostConfig("api.fakeyou.com");
|
||||
case "dev.fakeyou.com":
|
||||
return hostConfig("api.dev.fakeyou.com:12345",false); // false disables SSL
|
||||
default:
|
||||
|
||||
@@ -45,7 +45,16 @@ function LandingPage(props: Props) {
|
||||
|
||||
const isLoggedIn = props.sessionWrapper.isLoggedIn();
|
||||
|
||||
const canAccessStudio = props.sessionWrapper.canAccessStudio();
|
||||
// DO NOT LEAK THIS YET!!
|
||||
let protectedStudioOnboarding = <></>
|
||||
|
||||
if (props.sessionWrapper.canAccessStudio()) {
|
||||
protectedStudioOnboarding = (
|
||||
<>
|
||||
<OnboardingSelection />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -83,7 +92,7 @@ function LandingPage(props: Props) {
|
||||
{/* STORYTELLER,AI */}
|
||||
{!isLoggedIn ? (
|
||||
<>
|
||||
{!canAccessStudio && <OnboardingSelection />}
|
||||
{protectedStudioOnboarding}
|
||||
<VstSectionV2 />
|
||||
<TtsDemoSection
|
||||
sessionWrapper={props.sessionWrapper}
|
||||
|
||||
Reference in new issue
Block a user