Skip to content

Port Main Window to React #4853

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 65 commits into
base: master
Choose a base branch
from
Open

Port Main Window to React #4853

wants to merge 65 commits into from

Conversation

gettinToasty
Copy link
Contributor

No description provided.

Copy link

bundlemon bot commented Jan 30, 2024

BundleMon

Files updated (2)
Status Path Size Limits
vendors~renderer.(hash).js
4.67MB (-3.96KB -0.08%) -
renderer.(hash).js
7.07MB (-11.25KB -0.16%) -
Unchanged files (2)
Status Path Size Limits
updater.js
115.29KB -
guest-api.js
40.19KB -

Total files change -15.21KB -0.12%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

@gettinToasty gettinToasty marked this pull request as ready for review April 3, 2025 23:39
@gettinToasty
Copy link
Contributor Author

/AzurePipelines run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -358,7 +361,7 @@ class GLVolmetersController {
this.gl.clearColor(bg.r / 255, bg.g / 255, bg.b / 255, 1);
this.gl.clear(this.gl.COLOR_BUFFER_BIT);

if (this.canvasWidth < 0 || this.canvasHeight < 0) return;
if (this.canvasWidth < 0 || this.canvasHeight < 0 || !this.sourcesOrder) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: add braces, control flow can be easy to miss

@@ -85,14 +89,19 @@ export default function PlatformAppStore(p: { params: { appId?: string; type?: s
return (
<>
<BrowserView
className={styles.browserView}
className={cx(styles.browserView, p.className)}
style={{
height: `calc(100% - ${
Copy link
Contributor

Choose a reason for hiding this comment

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

could we extract this interpolation to a var? seems like we're evaluating a lot

)}
</div>
{(!ctrl.platform ||
(isPlatform(['youtube', 'facebook', 'twitter', 'tiktok', 'kick']) && !isStreaming)) && (
Copy link
Contributor

Choose a reason for hiding this comment

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

not really a comment, but a note to self, lots of isPlatform evaluations over here, most of the time with the same arguments, that should probably be extracted in the future. It will make it easier to support newer platforms as well instead of having to track all these instances

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

Successfully merging this pull request may close these issues.

2 participants