Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

Feat/3speak video upload #1353

Merged
merged 56 commits into from
Aug 3, 2023
Merged

Feat/3speak video upload #1353

merged 56 commits into from
Aug 3, 2023

Conversation

Adesojisouljay
Copy link
Collaborator

No description provided.

@Adesojisouljay Adesojisouljay linked an issue Jul 24, 2023 that may be closed by this pull request
@@ -256,11 +261,11 @@ export class EditorToolbar extends Component<Props> {
};

bold = () => {
this.insertText("**", "**");
this.insertText("*", "*");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this is modified? @Adesojisouljay

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I don't know how i=I broke this. fixed

};

italic = () => {
this.insertText("*", "*");
this.insertText("", "");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also this

@@ -555,6 +562,20 @@ export class EditorToolbar extends Component<Props> {
</div>
</Tooltip>
)}

{!this.props.comment && (
<Tooltip content="Upload Video">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tooltip message should be translated


if (years > 0) {
if (years === 1) {
return `${years} year ago`;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is helper or function with this, why this is being handled manually? Check dateToRelative or parse-date.ts file.

if (data) {
setVideoId(data._id);
setIsNsfwC(data.isNsfwContent);
success("Video succesfully uploaded");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be translated

export const VideoUpload = (props: Props) => {
const { activeUser, global, insertText, setVideoEncoderBeneficiary, toggleNsfwC } = props;

const tusEndPoint = "https://uploads.3speak.tv/files/";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Adesojisouljay Would it be possible to move these endpoint and upload functions inside api/threespeak.ts file instead? Also please check that all helpers related to vide upload to be in that file, not in components. Otherwise we will struggle later to find which endpoint is down or needs updating.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I'll check that also.
Thanks

Copy link
Member

@feruzm feruzm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, lets test 🚀

@feruzm feruzm merged commit 7d17eb1 into development Aug 3, 2023
@Adesojisouljay
Copy link
Collaborator Author

Adesojisouljay commented Aug 3, 2023 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Video uploading and publishing on Ecency with 3Speak
2 participants