mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
firehose
This commit is contained in:
1 parent
68aef4a518
commit
9a014ebeae
2 files changed
+68
-43
No files matched your search
@@ -275,29 +275,35 @@ styles with important tags:
|
||||
color: rgba($white, 0.6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul.patrons-list {
|
||||
columns: 1;
|
||||
list-style: none;
|
||||
}
|
||||
ul.patrons-list {
|
||||
columns: 1;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.form-check-input:checked {
|
||||
background-color: $primary;
|
||||
border-color: $primary;
|
||||
}
|
||||
.form-check-input:checked {
|
||||
background-color: $primary;
|
||||
border-color: $primary;
|
||||
}
|
||||
|
||||
.form-check-input:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
.form-check-input:focus {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.panel-border {
|
||||
box-sizing: border-box;
|
||||
box-shadow: inset 0px 0px 0px 4px lighten($primary, 5%);
|
||||
}
|
||||
.panel-border {
|
||||
box-sizing: border-box;
|
||||
box-shadow: inset 0px 0px 0px 4px lighten($primary, 5%);
|
||||
}
|
||||
|
||||
ul.pricing-list {
|
||||
list-style: none;
|
||||
ul.pricing-list {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.firehose-ul {
|
||||
list-style-type: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
|
||||
@@ -3,8 +3,11 @@ 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 { distance, duration } from "../../../data/animation";
|
||||
import { USE_REFRESH } from "../../../Refresh";
|
||||
|
||||
const Fade = require("react-reveal/Fade");
|
||||
|
||||
interface FirehoseEventListResponsePayload {
|
||||
success: boolean;
|
||||
events: Array<FirehoseEvent>;
|
||||
@@ -27,7 +30,9 @@ interface Props {
|
||||
}
|
||||
|
||||
function FirehoseEventListFc(props: Props) {
|
||||
const [firehoseEvents, setFirehoseEvents] = useState<Array<FirehoseEvent>>([]);
|
||||
const [firehoseEvents, setFirehoseEvents] = useState<Array<FirehoseEvent>>(
|
||||
[]
|
||||
);
|
||||
|
||||
const fetchEvents = () => {
|
||||
const api = new ApiConfig();
|
||||
@@ -103,7 +108,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
signed up for FakeYou!
|
||||
signed up for FakeYou!
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -113,7 +118,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
got a badge!
|
||||
got a badge!
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -123,7 +128,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
started TTS model upload
|
||||
started TTS model upload
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -133,7 +138,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
completed TTS model upload
|
||||
completed TTS model upload
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -143,7 +148,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
started TTS
|
||||
started TTS
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -153,7 +158,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
completed TTS
|
||||
completed TTS
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -163,7 +168,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
started uploading a lipsync template.
|
||||
started uploading a lipsync template.
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -173,7 +178,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
finished uploading a lipsync template.
|
||||
finished uploading a lipsync template.
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -183,7 +188,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
started a W2L lipsync video
|
||||
started a W2L lipsync video
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -193,7 +198,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
completed a W2L lipsync video
|
||||
completed a W2L lipsync video
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -203,7 +208,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
mentioned us on twitter!
|
||||
mentioned us on twitter!
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -213,7 +218,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
retweeted us!
|
||||
retweeted us!
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -223,7 +228,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
joined discord!
|
||||
joined discord!
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -233,7 +238,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
sent a discord message
|
||||
sent a discord message
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -243,7 +248,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
subscribed to us on twitch!
|
||||
subscribed to us on twitch!
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -253,7 +258,7 @@ function FirehoseEventListFc(props: Props) {
|
||||
{gravatar}
|
||||
|
||||
{userLink}
|
||||
followed us on twitch!
|
||||
followed us on twitch!
|
||||
</span>
|
||||
);
|
||||
break;
|
||||
@@ -261,20 +266,32 @@ function FirehoseEventListFc(props: Props) {
|
||||
return;
|
||||
}
|
||||
|
||||
eventItems.push(<li key={event.event_token}>{inner}</li>);
|
||||
if (!USE_REFRESH) {
|
||||
eventItems.push(<li key={event.event_token}>{inner}</li>);
|
||||
} else {
|
||||
eventItems.push(
|
||||
<li className="mb-3" key={event.event_token}>
|
||||
<div className="panel p-3 p-lg-3">{inner}</div>
|
||||
</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>
|
||||
<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>
|
||||
<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>
|
||||
);
|
||||
@@ -295,8 +312,10 @@ function FirehoseEventListFc(props: Props) {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="container-panel pb-5 d-flex flex-column gap-3">
|
||||
<ul>{eventItems}</ul>
|
||||
<div className="container-panel pb-5">
|
||||
<Fade bottom cascade>
|
||||
<ul className="firehose-ul">{eventItems}</ul>
|
||||
</Fade>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user