-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(website): home page, user page and player
- New home page design - New user page design - Player - Chat - Adds `display_color` to user - will be randomly generated when registering - `activeStreamsByUserId` GQL endpoint to fetch all active streams by user id (this may become obsolete with the new data structure soon)
- Loading branch information
1 parent
dcfb9ef
commit ba74188
Showing
81 changed files
with
9,136 additions
and
1,991 deletions.
There are no files selected for viewing
98 changes: 98 additions & 0 deletions
98
.sqlx/query-67431caaa751c3afbf29dda800688eb39d3180ba119a1d79fd9850a6cec5213f.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ pub mod chat_message; | |
pub mod date; | ||
pub mod global_roles; | ||
pub mod session; | ||
pub mod stream; | ||
pub mod user; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
use async_graphql::SimpleObject; | ||
use uuid::Uuid; | ||
|
||
use crate::database::stream; | ||
|
||
use super::date::DateRFC3339; | ||
|
||
#[derive(SimpleObject, Clone)] | ||
pub struct Stream { | ||
pub id: Uuid, | ||
pub channel_id: Uuid, | ||
pub title: String, | ||
pub description: String, | ||
pub recorded: bool, | ||
pub transcoded: bool, | ||
pub deleted: bool, | ||
pub ready_state: i64, | ||
pub created_at: DateRFC3339, | ||
pub ended_at: DateRFC3339, | ||
} | ||
|
||
impl From<stream::Model> for Stream { | ||
fn from(value: stream::Model) -> Self { | ||
Self { | ||
id: value.id, | ||
channel_id: value.channel_id, | ||
title: value.title, | ||
description: value.description, | ||
recorded: value.recorded, | ||
transcoded: value.transcoded, | ||
deleted: value.deleted, | ||
ready_state: value.ready_state.into(), | ||
created_at: value.created_at.into(), | ||
ended_at: value.ended_at.into(), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Users, Channels, Streams and Orgs @ Scuffle | ||
|
||
This is different from Twitch. For Twitch a user is essentially the same as a channel. | ||
|
||
## User | ||
|
||
A user is what you create when you register at Scuffle. | ||
A user has a username, display name, chat color and profile picture. (and probably some other stuff too) | ||
The display name can differ from the username only in capitalization. | ||
Your display name is what shows up in chat. | ||
A user doesn't have an url. | ||
A user can either have zero or one channel. | ||
By default a user doesn't have a channel. | ||
|
||
## Channel | ||
|
||
A user can create one channel that is associated to their user account. | ||
A channel has a display name. | ||
The url of a channel is the username of the user it belongs to. | ||
You can change how your channel home page looks. | ||
|
||
## Stream | ||
|
||
A channel can have multiple streams. | ||
A stream is something a channel can go live on. | ||
Streams are persistent. | ||
Streams have a name. | ||
|
||
Each stream has a separate | ||
|
||
- chat | ||
- offline banner | ||
- stream key | ||
|
||
## Recording | ||
|
||
A recording is a video of a past stream. (VOD) | ||
|
||
## Org | ||
|
||
An org is a special user/channel which other channels can join. | ||
It can enforce guidelines on its members. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { init, Player } from "../js/main"; | ||
import init, { Player } from "../pkg/player"; | ||
|
||
await init(); | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.