mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-18 15:44:36 +00:00
Remove old rollout code (techDebt--)
This commit is contained in:
1 parent
227d1be00f
commit
7831adde2e
15 files changed
+66
-1481
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import "./AppNew.scss";
|
||||
|
||||
import React from "react";
|
||||
import { ApiConfig } from "@storyteller/components";
|
||||
import {
|
||||
@@ -30,7 +32,6 @@ import { TtsCategoryType } from "./AppWrapper";
|
||||
import { FAKEYOU_MERGED_TRANSLATIONS } from "./_i18n/FakeYouTranslations";
|
||||
import i18n from "i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
import { USE_REFRESH } from "./Refresh";
|
||||
import { VocoderUploadJob } from "@storyteller/components/src/jobs/VocoderUploadJobs";
|
||||
import { GetRetrievalJobStatus, GetRetrievalJobStatusIsOk } from "@storyteller/components/src/api/retrieval/GetRetrievalJobStatus";
|
||||
|
||||
@@ -172,28 +173,6 @@ class App extends React.Component<Props, State> {
|
||||
};
|
||||
}
|
||||
|
||||
componentWillMount() {
|
||||
// Handle redesign
|
||||
console.log('componentWillMount', 'useRefresh?', USE_REFRESH);
|
||||
|
||||
if (USE_REFRESH) {
|
||||
// Redesign-specific CSS
|
||||
// NB(echelon): Despite the branches here, scss is all combined together at compile time
|
||||
// in staging and production (not development). To handle those environments, styles are
|
||||
// additionally applied based on the root "fakeyou-refresh" class, which may have changed
|
||||
// some of the specificity rules of Bootstrap.
|
||||
require("./AppNew.scss");
|
||||
} else {
|
||||
// Old design CSS
|
||||
// NB(echelon): Despite the branches here, scss is all combined together at compile time
|
||||
// in staging and production (not development). To handle those environments, styles are
|
||||
// additionally applied based on the root "fakeyou-old" class, which may have changed some
|
||||
// of the specificity rules of Bulma.
|
||||
require("./AppOld.scss");
|
||||
require("./v2/view/_css/footer.scss");
|
||||
}
|
||||
}
|
||||
|
||||
async componentDidMount() {
|
||||
await this.querySession();
|
||||
await this.queryLanguage();
|
||||
@@ -624,16 +603,10 @@ class App extends React.Component<Props, State> {
|
||||
};
|
||||
|
||||
public render() {
|
||||
// Redesign features
|
||||
let mainClassNames = USE_REFRESH ? "bg-gradient" : "";
|
||||
if (USE_REFRESH) {
|
||||
|
||||
}
|
||||
|
||||
return (
|
||||
<BrowserRouter>
|
||||
|
||||
<div id="main" className={mainClassNames}>
|
||||
|
||||
<div id="main" className="bg-gradient">
|
||||
<div className="page-bg"></div>
|
||||
|
||||
<div className="animation-wrapper">
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export const USE_REFRESH = true;
|
||||
@@ -2,7 +2,6 @@ import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import * as serviceWorker from './serviceWorker';
|
||||
import AppTranslated from './AppTranslated';
|
||||
import { USE_REFRESH } from './Refresh';
|
||||
|
||||
const IS_IOS : boolean = /iPad|iPhone|iPod/.test(navigator.platform || "");
|
||||
|
||||
@@ -10,32 +9,25 @@ const enableSpectrograms = !IS_IOS;
|
||||
|
||||
const flashVocodesNotice = new URLSearchParams(window.location.search).has('vocodes');
|
||||
|
||||
const designSystemClass = USE_REFRESH ? 'fakeyou-refresh' : 'fakeyou-old';
|
||||
const designSystemClass = 'fakeyou-refresh';
|
||||
|
||||
document.getElementsByTagName('html')[0].classList.add(designSystemClass);
|
||||
|
||||
// We can't include Bootstrap CSS along with Bulma since some of the class names conflict.
|
||||
// TODO(echelon): Once ported, statically move CSS to "index.html".
|
||||
if (USE_REFRESH) {
|
||||
const bootstrapCss = document.createElement("link");
|
||||
bootstrapCss.setAttribute("rel", "stylesheet");
|
||||
bootstrapCss.setAttribute("crossorigin", "anonymous");
|
||||
bootstrapCss.setAttribute("integrity", "sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3");
|
||||
bootstrapCss.setAttribute("href", "https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css");
|
||||
document.getElementsByTagName("head")[0].appendChild(bootstrapCss);
|
||||
const bootstrapCss = document.createElement("link");
|
||||
bootstrapCss.setAttribute("rel", "stylesheet");
|
||||
bootstrapCss.setAttribute("crossorigin", "anonymous");
|
||||
bootstrapCss.setAttribute("integrity", "sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3");
|
||||
bootstrapCss.setAttribute("href", "https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css");
|
||||
document.getElementsByTagName("head")[0].appendChild(bootstrapCss);
|
||||
|
||||
const bootstrapJs = document.createElement("script");
|
||||
bootstrapJs.setAttribute("rel", "stylesheet");
|
||||
bootstrapJs.setAttribute("crossorigin", "anonymous");
|
||||
bootstrapJs.setAttribute("integrity", "sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p");
|
||||
bootstrapJs.setAttribute("src", "https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js");
|
||||
document.getElementsByTagName("body")[0].appendChild(bootstrapJs);
|
||||
} else {
|
||||
const bulmaCss = document.createElement("link");
|
||||
bulmaCss.setAttribute("rel", "stylesheet");
|
||||
bulmaCss.setAttribute("crossorigin", "anonymous");
|
||||
bulmaCss.setAttribute("href", "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css");
|
||||
document.getElementsByTagName("head")[0].prepend(bulmaCss);
|
||||
}
|
||||
const bootstrapJs = document.createElement("script");
|
||||
bootstrapJs.setAttribute("rel", "stylesheet");
|
||||
bootstrapJs.setAttribute("crossorigin", "anonymous");
|
||||
bootstrapJs.setAttribute("integrity", "sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p");
|
||||
bootstrapJs.setAttribute("src", "https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js");
|
||||
document.getElementsByTagName("body")[0].appendChild(bootstrapJs);
|
||||
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
|
||||
@@ -15,7 +15,6 @@ import {
|
||||
faTwitter,
|
||||
faFacebook,
|
||||
} from "@fortawesome/free-brands-svg-icons";
|
||||
import { USE_REFRESH } from "../../Refresh";
|
||||
|
||||
interface Props {
|
||||
sessionWrapper: SessionWrapper;
|
||||
@@ -34,92 +33,6 @@ function NewFooterNavFc(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div>
|
||||
<hr />
|
||||
<div className="content has-text-centered">
|
||||
<p>
|
||||
<Link to="/">{t("coreUi.footerNav.textToSpeech")}</Link>
|
||||
|
|
||||
<Link to="/video">{t("coreUi.footerNav.video")}</Link>
|
||||
|
|
||||
<Link to="/contribute">{t("coreUi.footerNav.upload")}</Link>
|
||||
|
|
||||
<Link to="/leaderboard">{t("coreUi.footerNav.leaderboard")}</Link>
|
||||
|
|
||||
<Link to={FrontendUrlConfig.patronsPage()}>
|
||||
{t("coreUi.footerNav.patrons")}
|
||||
</Link>
|
||||
|
|
||||
<Link to="/firehose">{t("coreUi.footerNav.feed")}</Link>
|
||||
|
|
||||
<a href={FrontendUrlConfig.developerDocs()}>
|
||||
{t("coreUi.footerNav.apiDocs")}
|
||||
</a>
|
||||
|
|
||||
<Link to="/about">{t("coreUi.footerNav.aboutUs")}</Link>
|
||||
|
|
||||
<Link to="/terms">{t("coreUi.footerNav.termsOfUse")}</Link>
|
||||
</p>
|
||||
|
||||
<div className="v2_social">
|
||||
<a
|
||||
href="https://discord.gg/H72KFXm"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<img
|
||||
src="/social-icons/016-discord.png"
|
||||
alt="Join us on Discord!"
|
||||
/>
|
||||
</a>
|
||||
<a
|
||||
href="https://twitch.tv/FakeYouLabs"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<img src="/social-icons/094-twitch.png" alt="Twitch" />
|
||||
</a>
|
||||
<a
|
||||
href="https://twitter.com/intent/follow?screen_name=FakeYouApp"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<img src="/social-icons/096-twitter.png" alt="Twitter" />
|
||||
</a>
|
||||
<a
|
||||
href="https://facebook.com/vocodes"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<img src="/social-icons/024-facebook.png" alt="Facething" />
|
||||
</a>
|
||||
<a
|
||||
href="https://www.patreon.com/FakeYou"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
<img src="/social-icons/061-patreon.png" alt="Patreon" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<Trans i18nKey="coreUi.footerNav.builtBy">
|
||||
Built by <Link to="/profile/echelon">@echelon</Link> in Atlanta.
|
||||
</Trans>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<GitSha />
|
||||
</p>
|
||||
|
||||
{moderationLink}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className="container">
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper";
|
||||
import { Link, useHistory } from "react-router-dom";
|
||||
import { MigrationTopNavSession } from "../../migration/MigrationTopNav_Session";
|
||||
import { FrontendUrlConfig } from "../../common/FrontendUrlConfig";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import {
|
||||
faGavel,
|
||||
faGrinBeamSweat,
|
||||
faMicrophone,
|
||||
faVolumeUp,
|
||||
faPlus,
|
||||
@@ -19,8 +16,6 @@ import {
|
||||
faSignOutAlt,
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
import { faPatreon } from "@fortawesome/free-brands-svg-icons";
|
||||
import { t } from "i18next";
|
||||
import { USE_REFRESH } from "../../Refresh";
|
||||
import { Logout } from "@storyteller/components/src/api/session/Logout";
|
||||
import { Gravatar } from "@storyteller/components/src/elements/Gravatar";
|
||||
import { GetPendingTtsJobCount, GetPendingTtsJobCountIsOk, GetPendingTtsJobCountSuccessResponse } from "@storyteller/components/src/api/tts/GetPendingTtsJobCount";
|
||||
@@ -64,202 +59,6 @@ function NewTopNavFc(props: Props) {
|
||||
return () => clearInterval(interval);
|
||||
}, [pendingTtsJobs]);
|
||||
|
||||
const [mobileHamburgerIsActive, setMobileHamburgerIsActive] =
|
||||
useState<boolean>(false);
|
||||
|
||||
const toggleHamburger = () => {
|
||||
setMobileHamburgerIsActive(!mobileHamburgerIsActive);
|
||||
};
|
||||
|
||||
const closeHamburger = () => {
|
||||
// TODO: This is an ergonomic hack.
|
||||
// The hamburger ideally should close whenever it is no longer active.
|
||||
setMobileHamburgerIsActive(false);
|
||||
};
|
||||
|
||||
const navbarClasses = mobileHamburgerIsActive
|
||||
? "navbar-menu is-active"
|
||||
: "navbar-menu";
|
||||
const navbarBurgerClasses = mobileHamburgerIsActive
|
||||
? "navbar-burger is-active"
|
||||
: "navbar-burger";
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<>
|
||||
<nav className="navbar is-transparent padding-bottom-1em">
|
||||
<div className="navbar-brand">
|
||||
<Link className="navbar-item" to="/">
|
||||
<img
|
||||
src="/fakeyou/fakeyou-nav-logo-mascot.webp"
|
||||
alt="FakeYou: Cartoon and Celebrity Text to Speech"
|
||||
/>
|
||||
</Link>
|
||||
<div
|
||||
className={navbarBurgerClasses}
|
||||
data-target="navbarExampleTransparentExample"
|
||||
onClick={() => toggleHamburger()}
|
||||
>
|
||||
<span></span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="navbarExampleTransparentExample" className={navbarClasses}>
|
||||
<div className="navbar-start">
|
||||
<Link
|
||||
to={FrontendUrlConfig.cloneRequestPage()}
|
||||
className="navbar-item "
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
Clone My Voice!
|
||||
</Link>
|
||||
|
||||
{/* DROPDOWN: CREATE */}
|
||||
|
||||
<div className="navbar-item has-dropdown is-hoverable">
|
||||
<Link
|
||||
to={FrontendUrlConfig.indexPage()}
|
||||
className="navbar-link"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
{t("coreUi.topNav.create")}
|
||||
</Link>
|
||||
|
||||
<div className="navbar-dropdown is-boxed">
|
||||
{/* NB: There's an "is-active" class that looks nice. */}
|
||||
|
||||
<Link
|
||||
to="/"
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
TTS
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
to="/video"
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
{t("coreUi.topNav.video")}
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* DROPDOWN: COMMUNITY */}
|
||||
|
||||
<div className="navbar-item has-dropdown is-hoverable">
|
||||
<Link
|
||||
to={myDataLink}
|
||||
className="navbar-link"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
{t("coreUi.topNav.community")}
|
||||
</Link>
|
||||
|
||||
<div className="navbar-dropdown is-boxed">
|
||||
{/* NB: There's an "is-active" class that looks nice. */}
|
||||
|
||||
<Link
|
||||
to="/contribute"
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
<FontAwesomeIcon icon={faUpload} />
|
||||
{t("coreUi.topNav.contributeUpload")}
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
to="/leaderboard"
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
<FontAwesomeIcon icon={faTrophy} />
|
||||
{t("coreUi.topNav.leaderboard")}
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
to={FrontendUrlConfig.patronsPage()}
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
<FontAwesomeIcon icon={faPatreon} />
|
||||
{t("coreUi.topNav.patrons")}
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
to="/firehose"
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
<FontAwesomeIcon icon={faList} />
|
||||
{t("coreUi.topNav.feed")}
|
||||
</Link>
|
||||
|
||||
<hr className="navbar-divider" />
|
||||
|
||||
<Link
|
||||
to={myDataLink}
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
<FontAwesomeIcon icon={faUser} />
|
||||
{t("coreUi.topNav.myData")}
|
||||
</Link>
|
||||
|
||||
<hr className="navbar-divider" />
|
||||
|
||||
<Link
|
||||
to={FrontendUrlConfig.aboutUsPage()}
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
<FontAwesomeIcon icon={faGrinBeamSweat} />
|
||||
{t("coreUi.topNav.aboutUs")}
|
||||
</Link>
|
||||
|
||||
<Link
|
||||
to={FrontendUrlConfig.termsPage()}
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
<FontAwesomeIcon icon={faGavel} />
|
||||
{t("coreUi.topNav.terms")}
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a
|
||||
href={FrontendUrlConfig.developerDocs()}
|
||||
className="navbar-item"
|
||||
onClick={() => closeHamburger()}
|
||||
>
|
||||
{t("coreUi.topNav.developers")}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div className="navbar-end">
|
||||
<div className="navbar-item">
|
||||
<div className="field is-grouped">
|
||||
<p className="control">
|
||||
<MigrationTopNavSession
|
||||
sessionWrapper={props.sessionWrapper}
|
||||
enableAlpha={true}
|
||||
querySessionAction={props.querySessionCallback}
|
||||
closeHamburgerAction={() => closeHamburger()}
|
||||
/>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
const logoutHandler = async () => {
|
||||
await Logout();
|
||||
props.querySessionCallback();
|
||||
|
||||
@@ -1,276 +1,11 @@
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { USE_REFRESH } from "../../../../Refresh";
|
||||
import { motion } from "framer-motion";
|
||||
import { container, item, image, panel } from "../../../../data/animation";
|
||||
|
||||
interface Props {}
|
||||
|
||||
function AboutPage(props: Props) {
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div className="content is-medium">
|
||||
<section className="hero is-small">
|
||||
<div className="hero-body">
|
||||
<div className="columns is-vcentered">
|
||||
<div className="column is-one-third">
|
||||
<div className="mascot">
|
||||
<img
|
||||
src="/mascot/kitsune_pose3_black_2000.webp"
|
||||
alt="FakeYou Kitsune Mascot!"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="column">
|
||||
<p className="title">A Glimpse of the Future</p>
|
||||
<p className="subtitle">
|
||||
We're building <strong>FakeYou</strong> as just one component
|
||||
of a broad set of production and creative tooling.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<h1 className="title is-4">About FakeYou</h1>
|
||||
|
||||
<p>
|
||||
Your brain was already capable of imagining things spoken in other
|
||||
people's voices. This is a demonstration of how far computers have
|
||||
caught up. One day computers will be able to bring all of the rich and
|
||||
vivid imagery of your hopes and dreams to life. There's never been a
|
||||
better time throughout all history to be a creative than now.
|
||||
</p>
|
||||
|
||||
<h1 className="title is-4"> Technology disclosure </h1>
|
||||
|
||||
<p>
|
||||
<em>
|
||||
We'll be happy to remove any of the voices featured here for any
|
||||
reason. See our <Link to="/terms">terms page</Link> for more info.
|
||||
</em>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
”Deep fakes” are kind of like Photoshop when it first came
|
||||
out. They're impressive, maybe a little bit scary, but they're about
|
||||
to become the new norm. People will become accustomed to the
|
||||
technology, and the results will be used mostly for creative good,
|
||||
unlocking previously costly and unattainable high production values
|
||||
for individual creators. It's our belief that the next Hollywood will
|
||||
be <em>you</em>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The technology to clone voices is already out in the open, and the
|
||||
voices here are built by a community of contributors. We're not the
|
||||
only website doing this, and plenty of people are producing these same
|
||||
results on their own at home, independent of our work. You can see
|
||||
thousands of examples on YouTube and social media.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Even if the United States chooses to ban this technology, institutions
|
||||
in China, Japan, Canada, and other countries all over the world are
|
||||
rapidly conducting and publishing research on this topic. People
|
||||
everywhere have access to this easy-to-use technology. State actors
|
||||
probably have even more sophisiticated versions available.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
As an interesting point, most if not all of the voices produced by
|
||||
this website are actually
|
||||
<em>Linda Johnson</em> with a little bit layered on top.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a
|
||||
href="https://github.com/NVIDIA/tacotron2"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
NVIDIA makes these tools publicly available for you to make your own
|
||||
voice models
|
||||
</a>
|
||||
. Check it out!
|
||||
</p>
|
||||
|
||||
<h1 className="title is-4">FakeYou was previously Vocodes</h1>
|
||||
|
||||
<p>
|
||||
FakeYou.com was previously known as <strong>https://vo.codes</strong>,
|
||||
but has been rebranded to better reflect its purpose and direction.
|
||||
(Not many people know what a <em>vocoder</em> is anyway, so it didn't
|
||||
make sense to keep the name.)
|
||||
</p>
|
||||
|
||||
<h1 className="title is-4">Thanks</h1>
|
||||
|
||||
<p>
|
||||
Thanks to the following individuals (in no particular order) for help
|
||||
with data gathering and annotation, Discord moderation, ML advice,
|
||||
etc.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Vegito1089, Shin, Ashurath, MakaveliGH, Blutarch Mann, Yahia, Tim
|
||||
Squid, Seuneramet, Matt, Seth, CookiePPP,
|
||||
<a
|
||||
href="https://twitter.com/r9y9/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
@r9y9
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The following papers, models, and resources were used:
|
||||
<a
|
||||
href="https://github.com/NVIDIA/tacotron2"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Tacotron2
|
||||
</a>{" "}
|
||||
(BSD-3 license),
|
||||
<a
|
||||
href="https://github.com/jaywalnut310/glow-tts"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
glow-tts
|
||||
</a>{" "}
|
||||
(MIT license), {/* MIT */}
|
||||
<a
|
||||
href="https://github.com/seungwonpark/melgan"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
MelGAN
|
||||
</a>{" "}
|
||||
(BSD-3 license), {/* BSD3 */}
|
||||
<a
|
||||
href="https://arxiv.org/pdf/2005.05106.pdf"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Multi-band MelGAN
|
||||
</a>{" "}
|
||||
(paper),
|
||||
<a
|
||||
href="https://arxiv.org/abs/2010.05646"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
HiFi-GAN
|
||||
</a>{" "}
|
||||
(paper),
|
||||
<a
|
||||
href="https://github.com/Rudrabha/Wav2Lip"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Wav2Lip
|
||||
</a>{" "}
|
||||
(MIT license), {/* Non-commercial */}
|
||||
<a
|
||||
href="http://www.speech.cs.cmu.edu/cgi-bin/cmudict"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
CMUDict
|
||||
</a>{" "}
|
||||
(BSD-2 license),
|
||||
<a
|
||||
href="https://keithito.com/LJ-Speech-Dataset/"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
LJSpeech
|
||||
</a>{" "}
|
||||
(public domain),
|
||||
<a
|
||||
href="https://datashare.is.ed.ac.uk/handle/10283/3443"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
VCTK
|
||||
</a>{" "}
|
||||
(CC BY 4.0).
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Videos are generated by the amazing Wav2Lip system{" "}
|
||||
<a
|
||||
href="https://doi.org/10.1145/3394171.3413532"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
(paper)
|
||||
</a>
|
||||
, by Prajwal{" "}
|
||||
<a
|
||||
href="https://twitter.com/prajwalkr14"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
(@prajwalkr14)
|
||||
</a>
|
||||
, K R and Mukhopadhyay, Rudrabha and Namboodiri, Vinay P. and Jawahar,
|
||||
C.V.
|
||||
</p>
|
||||
|
||||
<h1 className="title is-4">Contact</h1>
|
||||
|
||||
<p>
|
||||
Reach out to "echelon" on{" "}
|
||||
<a
|
||||
href="https://twitter.com/echelon"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Twitter
|
||||
</a>
|
||||
and Hacker News. Say hi.
|
||||
</p>
|
||||
|
||||
<p>The Storyteller Company (registered as Learning Machines, LLC)</p>
|
||||
|
||||
<h1 className="title is-4"> Built With </h1>
|
||||
|
||||
<div className="columns is-mobile is-gapless">
|
||||
<div className="column">
|
||||
<figure className="image is-square is-fullwidth vocodes-grid-marginless">
|
||||
<img
|
||||
src="/logos/pytorch.png"
|
||||
alt="models are written in pytorch"
|
||||
/>
|
||||
</figure>
|
||||
</div>
|
||||
<div className="column">
|
||||
<figure className="image is-square is-fullwidth vocodes-grid-marginless">
|
||||
<img
|
||||
src="/logos/rust.png"
|
||||
alt="core server components are written in Rust"
|
||||
/>
|
||||
</figure>
|
||||
</div>
|
||||
<div className="column">
|
||||
<figure className="image is-square is-fullwidth vocodes-grid-marginless">
|
||||
<img
|
||||
src="/logos/kubernetes.png"
|
||||
alt="the cluster scales with k8s"
|
||||
/>
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.div initial="hidden" animate="visible" variants={container}>
|
||||
<div className="container mb-4">
|
||||
|
||||
@@ -1,91 +1,10 @@
|
||||
import React from "react";
|
||||
import { USE_REFRESH } from "../../../../Refresh";
|
||||
import { motion } from "framer-motion";
|
||||
import { container, item, panel } from "../../../../data/animation";
|
||||
|
||||
interface Props {}
|
||||
|
||||
function TermsPage(props: Props) {
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div className="content is-medium">
|
||||
<section className="hero is-small">
|
||||
<div className="hero-body">
|
||||
<div className="columns is-vcentered">
|
||||
<div className="column is-one-third">
|
||||
<div className="mascot">
|
||||
<img
|
||||
src="/mascot/kitsune_pose1_black_2000.webp"
|
||||
alt="FakeYou Kitsune Mascot!"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="column">
|
||||
<p className="title">Terms and Conditions</p>
|
||||
<p className="subtitle">
|
||||
Please use this technology responsibly.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<h1 className="title is-4">Terms of Use</h1>
|
||||
|
||||
<p>
|
||||
We do not condone the use of FakeYou for any type of deception, slur,
|
||||
abuse, or mistreatment of any individual or group. Please report such
|
||||
abuses to our{" "}
|
||||
<a href="https://discord.gg/H72KFXm">community staff on Discord</a>.
|
||||
Bad actors will have their access revoked and materials deleted.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This is a research technololgy for fun. You may not use FakeYou
|
||||
deepfakes for commercial use.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Do not engage in unlawful activity or attempt to impersonate any
|
||||
person, company, or other entity. All published usages must be labled
|
||||
as "deep fake".
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<em>
|
||||
The audio we generate is watermarked, and we will soon release a
|
||||
tool to verify that it is deep fake generated and trace it back to
|
||||
its source.
|
||||
</em>
|
||||
</p>
|
||||
|
||||
<h1 className="title is-5">Takedown Requests</h1>
|
||||
|
||||
<p>
|
||||
The machine learning models and content at FakeYou are user-submitted,
|
||||
but we'll be happy to remove content for any reason for copyright
|
||||
holders, original speakers, voice actors, et al. Please send us an
|
||||
email to <code>copyright@storyteller.io</code> with details in order
|
||||
to request a takedown.
|
||||
</p>
|
||||
|
||||
<h1 className="title is-5">Voice Acting & Musician Jobs</h1>
|
||||
|
||||
<p>
|
||||
If you're a voice actor or musician, we're looking to hire talented
|
||||
performers to help us build commercial-friendly AI voices. (The
|
||||
user-submitted models on FakeYou are just a technology demonstration
|
||||
and may not be used commercially.) We want to empower small creators
|
||||
(game designers, musicians, and more) to voice, sing, and speak
|
||||
emotion into their work. Please reach out to{" "}
|
||||
<code>jobs@storyteller.io</code> if you'd like to work with us. We can
|
||||
pay a flat fee and/or royalty. Please get in touch to learn more!
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.div initial="hidden" animate="visible" variants={container}>
|
||||
<div className="container pt-5 pb-0 pb-lg-5 text-center text-lg-start">
|
||||
|
||||
@@ -5,7 +5,6 @@ import {
|
||||
faEnvelope,
|
||||
faMicrophone,
|
||||
faRedo,
|
||||
faUser,
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import React, { useCallback, useEffect, useState } from "react";
|
||||
@@ -24,7 +23,6 @@ import {
|
||||
} from "@storyteller/components/src/api/clone_requests/CheckVoiceCloneApplication";
|
||||
import { Link } from "react-router-dom";
|
||||
import { FrontendUrlConfig } from "../../../common/FrontendUrlConfig";
|
||||
import { USE_REFRESH } from "../../../Refresh";
|
||||
import { motion } from "framer-motion";
|
||||
import { container, item, image, panel } from "../../../data/animation";
|
||||
|
||||
@@ -242,73 +240,45 @@ function VoiceCloneRequestPage(props: Props) {
|
||||
return false;
|
||||
};
|
||||
|
||||
let header = <></>;
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
header = (
|
||||
<>
|
||||
<section className="hero is-small">
|
||||
<div className="hero-body">
|
||||
<div className="columns is-vcentered">
|
||||
<div className="column is-one-third">
|
||||
<div className="mascot">
|
||||
<img
|
||||
src="/mascot/kitsune_pose4_black_2000.webp"
|
||||
alt="FakeYou's mascot!"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="column">
|
||||
<p className="title is-1">Professionally Clone Your Voice</p>
|
||||
<p className="subtitle is-3">(or any voice) for just $70</p>
|
||||
</div>
|
||||
let header = (
|
||||
<>
|
||||
<div className="container mb-4">
|
||||
<div className="row gx-3 flex-lg-row-reverse align-items-center">
|
||||
<div className="col-lg-6">
|
||||
<div className="d-flex justify-content-center">
|
||||
<motion.img
|
||||
src="/mascot/kitsune_pose4.webp"
|
||||
className="img-fluid"
|
||||
width="516"
|
||||
height="472"
|
||||
alt="FakeYou Mascot"
|
||||
variants={image}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</>
|
||||
);
|
||||
} else {
|
||||
header = (
|
||||
<>
|
||||
<div className="container mb-4">
|
||||
<div className="row gx-3 flex-lg-row-reverse align-items-center">
|
||||
<div className="col-lg-6">
|
||||
<div className="d-flex justify-content-center">
|
||||
<motion.img
|
||||
src="/mascot/kitsune_pose4.webp"
|
||||
className="img-fluid"
|
||||
width="516"
|
||||
height="472"
|
||||
alt="FakeYou Mascot"
|
||||
variants={image}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-6 px-3 px-md-2 px-lg-5 px-xl-2">
|
||||
<div className="text-center text-lg-start">
|
||||
<motion.h1 className="display-5 fw-bold lh-1" variants={item}>
|
||||
Professionally Clone Your Voice
|
||||
</motion.h1>
|
||||
<motion.h3 className="mb-4" variants={item}>
|
||||
(or any voice) for just $70
|
||||
<div className="col-lg-6 px-3 px-md-2 px-lg-5 px-xl-2">
|
||||
<div className="text-center text-lg-start">
|
||||
<motion.h1 className="display-5 fw-bold lh-1" variants={item}>
|
||||
Professionally Clone Your Voice
|
||||
</motion.h1>
|
||||
<motion.h3 className="mb-4" variants={item}>
|
||||
(or any voice) for just $70
|
||||
</motion.h3>
|
||||
<div className="d-flex flex-column justify-content-center">
|
||||
<motion.h3 className="px-5 px-md-0" variants={item}>
|
||||
Want a Custom Voice You Can Use?
|
||||
</motion.h3>
|
||||
<div className="d-flex flex-column justify-content-center">
|
||||
<motion.h3 className="px-5 px-md-0" variants={item}>
|
||||
Want a Custom Voice You Can Use?
|
||||
</motion.h3>
|
||||
<motion.p className="lead" variants={item}>
|
||||
For Music, Videos, Twitch Rewards, API, Friends, Family…
|
||||
whatever you want!
|
||||
</motion.p>
|
||||
</div>
|
||||
<motion.p className="lead" variants={item}>
|
||||
For Music, Videos, Twitch Rewards, API, Friends, Family…
|
||||
whatever you want!
|
||||
</motion.p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
||||
if (formWasSubmitted) {
|
||||
return (
|
||||
@@ -366,361 +336,6 @@ function VoiceCloneRequestPage(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div>
|
||||
{header}
|
||||
|
||||
<section className="section">
|
||||
<div className="container">
|
||||
<h1 className="title is-2">Want a Custom Voice You Can Use?</h1>
|
||||
<h1 className="subtitle is-4">
|
||||
For Music, Videos, Twitch Rewards, API, Friends, Family…
|
||||
whatever you want!
|
||||
</h1>
|
||||
|
||||
{previouslySubmittedNote}
|
||||
|
||||
<p>
|
||||
We have an extremely talented staff that will personally handle
|
||||
your voice clone request. Please help us understand more about
|
||||
your voice and how you want to use it, and we'll be in touch
|
||||
shortly.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
|
||||
<h1 className="title is-3">First, how should we get in touch?</h1>
|
||||
|
||||
<div className="field">
|
||||
<label className="label">Email Address</label>
|
||||
<div className="control has-icons-left">
|
||||
<input
|
||||
className="input is-medium is-fullwidth"
|
||||
type="text"
|
||||
placeholder="Email Address"
|
||||
value={emailAddress}
|
||||
onChange={handleEmailAddressChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faEnvelope} />
|
||||
</span>
|
||||
</div>
|
||||
<p className="help is-success"></p>
|
||||
<p className="help is-danger"></p>
|
||||
</div>
|
||||
|
||||
<div className="field">
|
||||
<label className="label">
|
||||
Discord Username (Optional, but an alternate way to reach you.)
|
||||
<br />
|
||||
</label>
|
||||
<div className="control has-icons-left">
|
||||
<input
|
||||
className="input is-medium is-fullwidth"
|
||||
type="text"
|
||||
placeholder="Discord"
|
||||
value={discord}
|
||||
onChange={handleDiscordChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faDiscord} />
|
||||
</span>
|
||||
</div>
|
||||
<p className="help">
|
||||
Don't forget the <em>#0000</em> part of your username!
|
||||
</p>
|
||||
<p className="help is-danger"></p>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<h1 className="title is-3">Who's voice is this?</h1>
|
||||
|
||||
<p>
|
||||
If it's your voice, you'll be able to do anything you want with
|
||||
it. If it's another person's voice, you may have limits on how you
|
||||
can use it (eg. limits on commercialization.) That doesn't mean we
|
||||
can't help you. Even if you just want your favorite character so
|
||||
you can make Twitter memes, that's fine!
|
||||
</p>
|
||||
|
||||
<br />
|
||||
|
||||
<div className="checkbox-block">
|
||||
<div className="control">
|
||||
<label className="radio">
|
||||
<input
|
||||
type="radio"
|
||||
name="subject"
|
||||
value="mine"
|
||||
onChange={handleSubjectChange}
|
||||
/>
|
||||
My own voice
|
||||
</label>
|
||||
<br />
|
||||
<label className="radio">
|
||||
<input
|
||||
type="radio"
|
||||
name="subject"
|
||||
value="family"
|
||||
onChange={handleSubjectChange}
|
||||
/>
|
||||
A family member's voice
|
||||
</label>
|
||||
<br />
|
||||
<label className="radio">
|
||||
<input
|
||||
type="radio"
|
||||
name="subject"
|
||||
value="client"
|
||||
onChange={handleSubjectChange}
|
||||
/>
|
||||
A client's voice
|
||||
</label>
|
||||
<br />
|
||||
<label className="radio">
|
||||
<input
|
||||
type="radio"
|
||||
name="subject"
|
||||
value="3rd"
|
||||
onChange={handleSubjectChange}
|
||||
/>
|
||||
Another person's voice
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div className="field">
|
||||
<label className="label">
|
||||
If it isn't your voice, tell us about who it is!
|
||||
</label>
|
||||
<div className="control has-icons-left">
|
||||
<input
|
||||
className="input is-medium is-fullwidth"
|
||||
type="text"
|
||||
placeholder="Notes on the person"
|
||||
value={notesOnSubject}
|
||||
onChange={handleSubjectNotesChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faUser} />
|
||||
</span>
|
||||
</div>
|
||||
<p className="help is-success"></p>
|
||||
<p className="help is-danger"></p>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<h1 className="title is-3">How will you use it?</h1>
|
||||
|
||||
<p>Click as many as you plan to use!</p>
|
||||
|
||||
<br />
|
||||
|
||||
<div className="checkbox-block">
|
||||
<label className="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={isForMusic}
|
||||
onChange={handleIsForMusicChange}
|
||||
/>
|
||||
For Music (for creating new songs)
|
||||
</label>
|
||||
|
||||
<br />
|
||||
|
||||
<label className="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={isForGames}
|
||||
onChange={handleIsForGamesChange}
|
||||
/>
|
||||
For Games (because NPCs won't talk by themselves)
|
||||
</label>
|
||||
|
||||
<br />
|
||||
|
||||
<label className="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={isForTwitchTts}
|
||||
onChange={handleIsForTwitchTtsChange}
|
||||
/>
|
||||
For Twitch TTS (creating rewards for my stream, helping me
|
||||
engage and monetize)
|
||||
</label>
|
||||
|
||||
<br />
|
||||
|
||||
<label className="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={isForApiUse}
|
||||
onChange={handleIsForApiUseChange}
|
||||
/>
|
||||
For API use (unlimited use of the FakeYou.com API for
|
||||
anything you want to build)
|
||||
</label>
|
||||
|
||||
<br />
|
||||
|
||||
<label className="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={isForOther}
|
||||
onChange={handleIsForOtherChange}
|
||||
/>
|
||||
Other (Now we're curious!)
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div className="field">
|
||||
<label className="label">
|
||||
Let us know more about your use (optional)
|
||||
</label>
|
||||
<div className="control has-icons-left">
|
||||
<input
|
||||
className="input is-medium is-fullwidth"
|
||||
type="text"
|
||||
placeholder="Optional details"
|
||||
value={optionalNotesOnUse}
|
||||
onChange={handleOptionalNotesOnUseChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faEnvelope} />
|
||||
</span>
|
||||
</div>
|
||||
<p className="help is-success"></p>
|
||||
<p className="help is-danger"></p>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<h1 className="title is-3">Do you want it to be private?</h1>
|
||||
|
||||
<p>
|
||||
(We'll accept multiple answers here, because maybe you want to use
|
||||
it multiple ways.)
|
||||
</p>
|
||||
|
||||
<br />
|
||||
|
||||
<div className="checkbox-block">
|
||||
<label className="checkbox">
|
||||
<input type="checkbox" />
|
||||
This is for private use for just me
|
||||
</label>
|
||||
|
||||
<br />
|
||||
|
||||
<label className="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={isForPrivateUse}
|
||||
onChange={handleIsForPrivateUseChange}
|
||||
/>
|
||||
This is for private use amongst a group of people
|
||||
</label>
|
||||
|
||||
<br />
|
||||
|
||||
<label className="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={isForPublicUse}
|
||||
onChange={handleIsForPublicUseChange}
|
||||
/>
|
||||
This is for public use
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<h1 className="title is-3">How's your audio quality?</h1>
|
||||
|
||||
<p>
|
||||
It's okay if you don't have a quality source of audio, but the
|
||||
results are top notch only with a good recording setup.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
|
||||
<div className="checkbox-block">
|
||||
<label className="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={hasGoodMicrophone}
|
||||
onChange={handleHasGoodMicrophoneChange}
|
||||
/>
|
||||
I have a good microphone (and I know what a condenser
|
||||
microphone is)
|
||||
</label>
|
||||
|
||||
<br />
|
||||
|
||||
<label className="checkbox">
|
||||
<input
|
||||
type="checkbox"
|
||||
checked={hasCleanAudioRecordings}
|
||||
onChange={handleHasCleanAudioRecordingsChange}
|
||||
/>
|
||||
I have really good preexisting recordings.
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<h1 className="title is-3">Anything else?</h1>
|
||||
|
||||
<div className="field">
|
||||
<label className="label">Do you have any questions for us?</label>
|
||||
<div className="control">
|
||||
<textarea
|
||||
className="textarea"
|
||||
placeholder="Optional Questions"
|
||||
onChange={handleOptionalQuestionsChange}
|
||||
value={optionalQuestions}
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="field">
|
||||
<label className="label">
|
||||
Do you have any important notes or details?
|
||||
</label>
|
||||
<div className="control">
|
||||
<textarea
|
||||
className="textarea"
|
||||
placeholder="Optional Notes"
|
||||
onChange={handleOptionalExtraCommentsChange}
|
||||
value={optionalExtraComments}
|
||||
></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
{errorMessage}
|
||||
|
||||
<button
|
||||
className="button is-link is-large is-fullwidth"
|
||||
onClick={handleSubmit}
|
||||
>
|
||||
Clone my voice!
|
||||
<FontAwesomeIcon icon={faMicrophone} />
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.div initial="hidden" animate="visible" variants={container}>
|
||||
{header}
|
||||
|
||||
@@ -3,7 +3,6 @@ import { ApiConfig } from "@storyteller/components";
|
||||
import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper";
|
||||
import { Gravatar } from "@storyteller/components/src/elements/Gravatar";
|
||||
import { Link } from "react-router-dom";
|
||||
import { USE_REFRESH } from "../../../Refresh";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import {
|
||||
faPlay,
|
||||
@@ -295,36 +294,12 @@ function FirehoseEventListFc(props: Props) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
eventItems.push(<li key={event.event_token}>{inner}</li>);
|
||||
} else {
|
||||
eventItems.push(
|
||||
<li className="panel p-3 p-lg-3" key={event.event_token}>
|
||||
{inner}
|
||||
</li>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="title is-1"> Firehose event feed </h1>
|
||||
<h1 className="subtitle is-3">
|
||||
{" "}
|
||||
The latest <em>FakeYou</em> events refreshed every few seconds
|
||||
</h1>
|
||||
|
||||
<div className="content is-large">
|
||||
<p>
|
||||
As you can see, we're <em>really</em> popular. But we owe it to you,
|
||||
our users. Thank you!
|
||||
</p>
|
||||
<ul>{eventItems}</ul>
|
||||
</div>
|
||||
</div>
|
||||
eventItems.push(
|
||||
<li className="panel p-3 p-lg-3" key={event.event_token}>
|
||||
{inner}
|
||||
</li>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
return (
|
||||
<motion.div initial="hidden" animate="visible" variants={container}>
|
||||
|
||||
@@ -12,7 +12,6 @@ import {
|
||||
LeaderboardLookupError,
|
||||
} from "../../api/misc/GetLeaderboard";
|
||||
import { DiscordLink2 } from "@storyteller/components/src/elements/DiscordLink2";
|
||||
import { USE_REFRESH } from "../../../Refresh";
|
||||
import { motion } from "framer-motion";
|
||||
import { container, item, panel } from "../../../data/animation";
|
||||
|
||||
@@ -107,41 +106,6 @@ function LeaderboardFc(props: Props) {
|
||||
});
|
||||
}
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="title is-1"> Leaderboard </h1>
|
||||
<h1 className="subtitle is-3"> Our most frequent contributors! </h1>
|
||||
|
||||
<p>
|
||||
Want to be on the leaderboard?{" "}
|
||||
<DiscordLink2>Join our Discord</DiscordLink2> and learn more!
|
||||
</p>
|
||||
|
||||
<table className="table is-fullwidth">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td colSpan={2}>
|
||||
<h4 className="subtitle is-4"> TTS Models Uploaded </h4>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{ttsRows}
|
||||
|
||||
<tr>
|
||||
<td colSpan={2}>
|
||||
<br />
|
||||
<h4 className="subtitle is-4"> W2L Templates Uploaded </h4>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
{w2lRows}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.div initial="hidden" animate="visible" variants={container}>
|
||||
<div className="container py-5 px-md-4 px-lg-5 px-xl-3">
|
||||
|
||||
@@ -11,7 +11,6 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faUser, faKey } from "@fortawesome/free-solid-svg-icons";
|
||||
import { motion } from "framer-motion";
|
||||
import { container, panel } from "../../../data/animation";
|
||||
import { USE_REFRESH } from "../../../Refresh";
|
||||
|
||||
interface Props {
|
||||
sessionWrapper: SessionWrapper;
|
||||
@@ -72,69 +71,9 @@ function LoginPage(props: Props) {
|
||||
|
||||
let errorWarning = <span />;
|
||||
if (errorMessage) {
|
||||
if (!USE_REFRESH) {
|
||||
errorWarning = (
|
||||
<div className="notification is-danger is-light">
|
||||
<strong>Login Error:</strong> {errorMessage}
|
||||
</div>
|
||||
);
|
||||
} else {
|
||||
errorWarning = (
|
||||
<div className="alert alert-danger mb-4">
|
||||
<strong>Login Error:</strong> {errorMessage}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="title is-1"> Login </h1>
|
||||
|
||||
{errorWarning}
|
||||
|
||||
<form onSubmit={handleFormSubmit}>
|
||||
<div className="field">
|
||||
<label className="label">Username or Email</label>
|
||||
<div className="control has-icons-left has-icons-right">
|
||||
<input
|
||||
className="input"
|
||||
type="text"
|
||||
placeholder="Username or Email"
|
||||
value={usernameOrEmail}
|
||||
onChange={handleUsernameOrEmailChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faUser} />
|
||||
</span>
|
||||
</div>
|
||||
{/*<p className="help"></p>*/}
|
||||
</div>
|
||||
|
||||
<div className="field">
|
||||
<label className="label">Password</label>
|
||||
<div className="control has-icons-left has-icons-right">
|
||||
<input
|
||||
className="input"
|
||||
type="password"
|
||||
placeholder="Password"
|
||||
value={password}
|
||||
onChange={handlePasswordChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faKey} />
|
||||
</span>
|
||||
</div>
|
||||
{/*<p className="help"></p>*/}
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<button className="button is-link is-large is-fullwidth">
|
||||
Login
|
||||
</button>
|
||||
</form>
|
||||
errorWarning = (
|
||||
<div className="alert alert-danger mb-4">
|
||||
<strong>Login Error:</strong> {errorMessage}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,82 +1,17 @@
|
||||
import React from "react";
|
||||
import { BackLink } from "../_common/BackLink";
|
||||
import { FrontendUrlConfig } from "../../../common/FrontendUrlConfig";
|
||||
import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper";
|
||||
import { PATRONS } from "../../../data/Patrons";
|
||||
import { PatreonLink } from "@storyteller/components/src/elements/PatreonLink";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faPatreon } from "@fortawesome/free-brands-svg-icons";
|
||||
import { USE_REFRESH } from "../../../Refresh";
|
||||
import { motion } from "framer-motion";
|
||||
import { container, item, image, panel } from "../../../data/animation";
|
||||
|
||||
interface Props {
|
||||
sessionWrapper: SessionWrapper;
|
||||
}
|
||||
<script src="https://fonts.googleapis.com"></script>;
|
||||
|
||||
function PatronPage(props: Props) {
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<>
|
||||
<section className="hero is-small">
|
||||
<div className="hero-body">
|
||||
<div className="columns is-vcentered">
|
||||
<div className="column is-one-third">
|
||||
<div className="mascot">
|
||||
<img
|
||||
src="/mascot/kitsune_pose7_black_2000.webp"
|
||||
alt="FakeYou's mascot!"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="column">
|
||||
<p className="title">Thanks to our Patrons!</p>
|
||||
<p className="subtitle">Our Patrons help support our work.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div>
|
||||
<div className="content">
|
||||
<p>
|
||||
Our Patrons help pay offset (but not completely cover) our
|
||||
expensive server bills.
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
{PATRONS.map((patron) => {
|
||||
return (
|
||||
<li>
|
||||
{patron.username} — ${patron.donationTotal}
|
||||
</li>
|
||||
);
|
||||
})}
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
Patrons will get first looks at new features, get dedicated access
|
||||
to Patron-only Discord channels, can ask for specific voices from
|
||||
our in-house audio engineers, and more!
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Please consider{" "}
|
||||
<PatreonLink text="donating on Patreon" iconAfterText={true} />.
|
||||
</p>
|
||||
|
||||
<BackLink
|
||||
link={FrontendUrlConfig.indexPage()}
|
||||
text="Back to main"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.div initial="hidden" animate="visible" variants={container}>
|
||||
<div className="container py-5 pt-lg-0">
|
||||
|
||||
@@ -35,7 +35,6 @@ import {
|
||||
} from "../../../api/user/GetUserByUsername";
|
||||
import { format } from "date-fns";
|
||||
import { FrontendUrlConfig } from "../../../../common/FrontendUrlConfig";
|
||||
import { USE_REFRESH } from "../../../../Refresh";
|
||||
import { container, item, panel } from "../../../../data/animation";
|
||||
import Tippy from "@tippyjs/react";
|
||||
import "tippy.js/dist/tippy.css";
|
||||
@@ -260,50 +259,6 @@ function ProfileFc(props: Props) {
|
||||
badges = <ul>{badgeList}</ul>;
|
||||
}
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div className="content">
|
||||
<h1 className="title is-1">
|
||||
<Gravatar
|
||||
size={45}
|
||||
username={userData.display_name}
|
||||
email_hash={userEmailHash}
|
||||
/>
|
||||
{userData.display_name}
|
||||
</h1>
|
||||
|
||||
{editProfileButton}
|
||||
{banUserButton}
|
||||
|
||||
<div
|
||||
className="profile content is-medium"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: userData.profile_rendered_html || "",
|
||||
}}
|
||||
/>
|
||||
|
||||
<table className="table">
|
||||
<tbody>{profileRows}</tbody>
|
||||
</table>
|
||||
|
||||
<h3 className="title is-3"> Badges (images coming soon) </h3>
|
||||
{badges}
|
||||
|
||||
<h3 className="title is-3"> TTS Results </h3>
|
||||
<ProfileTtsInferenceResultsListFc username={userData.username} />
|
||||
|
||||
<h3 className="title is-3"> Lipsync Results </h3>
|
||||
<ProfileW2lInferenceResultsListFc username={userData.username} />
|
||||
|
||||
<h3 className="title is-3"> Uploaded TTS Models </h3>
|
||||
<ProfileTtsModelListFc username={userData.username} />
|
||||
|
||||
<h3 className="title is-3"> Uploaded Templates </h3>
|
||||
<ProfileW2lTemplateListFc username={userData.username} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.div initial="hidden" animate="visible" variants={container}>
|
||||
<div className="container pt-5 pb-4 px-lg-5 px-xl-3">
|
||||
|
||||
@@ -8,7 +8,6 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { faUser, faEnvelope, faKey } from "@fortawesome/free-solid-svg-icons";
|
||||
import { Link } from "react-router-dom";
|
||||
import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper";
|
||||
import { USE_REFRESH } from "../../../Refresh";
|
||||
import { motion } from "framer-motion";
|
||||
import { container, panel } from "../../../data/animation";
|
||||
|
||||
@@ -222,8 +221,8 @@ function SignupPage(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
let usernameInputClass = USE_REFRESH ? "form-control" : "input";
|
||||
let usernameHelpClass = USE_REFRESH ? "form-text red" : "help";
|
||||
let usernameInputClass = "form-control";
|
||||
let usernameHelpClass = "form-text red";
|
||||
switch (usernameValid) {
|
||||
case FieldTriState.EMPTY_FALSE:
|
||||
break;
|
||||
@@ -237,8 +236,8 @@ function SignupPage(props: Props) {
|
||||
break;
|
||||
}
|
||||
|
||||
let emailInputClass = USE_REFRESH ? "form-control" : "input";
|
||||
let emailHelpClass = USE_REFRESH ? "form-text red" : "help";
|
||||
let emailInputClass = "form-control";
|
||||
let emailHelpClass = "form-text red";
|
||||
switch (emailValid) {
|
||||
case FieldTriState.EMPTY_FALSE:
|
||||
break;
|
||||
@@ -252,8 +251,8 @@ function SignupPage(props: Props) {
|
||||
break;
|
||||
}
|
||||
|
||||
let passwordInputClass = USE_REFRESH ? "form-control" : "input";
|
||||
let passwordHelpClass = USE_REFRESH ? "form-text red" : "help";
|
||||
let passwordInputClass = "form-control";
|
||||
let passwordHelpClass = "form-text red";
|
||||
switch (passwordValid) {
|
||||
case FieldTriState.EMPTY_FALSE:
|
||||
break;
|
||||
@@ -267,8 +266,8 @@ function SignupPage(props: Props) {
|
||||
break;
|
||||
}
|
||||
|
||||
let passwordConfirmationInputClass = USE_REFRESH ? "form-control" : "input";
|
||||
let passwordConfirmationHelpClass = USE_REFRESH ? "form-text red" : "help";
|
||||
let passwordConfirmationInputClass = "form-control";
|
||||
let passwordConfirmationHelpClass = "form-text red";
|
||||
switch (passwordConfirmationValid) {
|
||||
case FieldTriState.EMPTY_FALSE:
|
||||
break;
|
||||
@@ -282,108 +281,6 @@ function SignupPage(props: Props) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div>
|
||||
<h1 className="title is-1"> Sign Up </h1>
|
||||
|
||||
<form onSubmit={handleFormSubmit}>
|
||||
<div className="field">
|
||||
<label className="label">Username</label>
|
||||
<div className="control has-icons-left has-icons-right">
|
||||
<input
|
||||
className={usernameInputClass}
|
||||
type="text"
|
||||
placeholder="Username"
|
||||
value={username}
|
||||
onChange={handleUsernameChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faUser} />
|
||||
</span>
|
||||
</div>
|
||||
<p className={usernameHelpClass}>{usernameInvalidReason}</p>
|
||||
</div>
|
||||
|
||||
<div className="field">
|
||||
<label className="label">Email</label>
|
||||
<div className="control has-icons-left has-icons-right">
|
||||
<input
|
||||
className={emailInputClass}
|
||||
type="email"
|
||||
placeholder="Email"
|
||||
value={email}
|
||||
onChange={handleEmailChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faEnvelope} />
|
||||
</span>
|
||||
</div>
|
||||
<p className={emailHelpClass}>{emailInvalidReason}</p>
|
||||
</div>
|
||||
|
||||
<div className="field">
|
||||
<label className="label">Password</label>
|
||||
<div className="control has-icons-left has-icons-right">
|
||||
<input
|
||||
className={passwordInputClass}
|
||||
type="password"
|
||||
placeholder="Password"
|
||||
value={password}
|
||||
onChange={handlePasswordChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faKey} />
|
||||
</span>
|
||||
</div>
|
||||
<p className={passwordHelpClass}>{passwordInvalidReason}</p>
|
||||
</div>
|
||||
|
||||
<div className="field">
|
||||
<label className="label">Password Confirmation</label>
|
||||
<div className="control has-icons-left has-icons-right">
|
||||
<input
|
||||
className={passwordConfirmationInputClass}
|
||||
type="password"
|
||||
placeholder="Password confirmation"
|
||||
value={passwordConfirmation}
|
||||
onChange={handlePasswordConfirmationChange}
|
||||
/>
|
||||
<span className="icon is-small is-left">
|
||||
<FontAwesomeIcon icon={faKey} />
|
||||
</span>
|
||||
</div>
|
||||
<p className={passwordConfirmationHelpClass}>
|
||||
{passwordConfirmationInvalidReason}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
<div className="notification is-warning">
|
||||
<strong>Remember your password!</strong> We don't have password
|
||||
reset currently, and it'll be a few more weeks before it's added
|
||||
(there are more important features to work on). If you lose your
|
||||
password, please let us know in Discord.
|
||||
</div>
|
||||
|
||||
<button className="button is-link is-large is-fullwidth">
|
||||
Sign up
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<br />
|
||||
|
||||
<Link
|
||||
to="/login"
|
||||
className="button is-info is-large is-fullwidth is-inverted"
|
||||
>
|
||||
Already have an account? Log in instead!
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.div initial="hidden" animate="visible" variants={container}>
|
||||
<motion.div
|
||||
|
||||
@@ -10,7 +10,6 @@ import {
|
||||
item,
|
||||
panel,
|
||||
} from "../../../../data/animation";
|
||||
import { USE_REFRESH } from "../../../../Refresh";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import {
|
||||
faChevronLeft,
|
||||
@@ -194,30 +193,6 @@ function W2lTemplateListFc(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
if (!USE_REFRESH) {
|
||||
return (
|
||||
<div>
|
||||
<br />
|
||||
<h1 className="title is-1"> Video lip sync templates </h1>
|
||||
|
||||
{extraDetails}
|
||||
|
||||
<br />
|
||||
|
||||
{allRowsOfTemplateElements.map((el) => el)}
|
||||
|
||||
<br />
|
||||
|
||||
<p>
|
||||
This feature is based on Wav2Lip by by Prajwal, K R and Mukhopadhyay,
|
||||
Rudrabha and Namboodiri, Vinay P. and Jawahar, C.V.
|
||||
</p>
|
||||
|
||||
<br />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<motion.div initial="hidden" animate="visible" variants={container}>
|
||||
<div className="container pt-5 pb-4 px-md-4 px-lg-5 px-xl-3">
|
||||
|
||||
Reference in new issue
Block a user