Skip to content
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

Mac-Windows branch consolidation #2761

Merged
merged 224 commits into from
Jul 3, 2020
Merged

Mac-Windows branch consolidation #2761

merged 224 commits into from
Jul 3, 2020

Conversation

avacreeth
Copy link
Member

No description provided.

}, 500);
}

setupMicPopover() {
Copy link

Choose a reason for hiding this comment

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

Function setupMicPopover has 58 lines of code (exceeds 32 allowed). Consider refactoring.

this.bindDynamicMenuItems();
}

private buildMenu(): electron.Menu {
Copy link

Choose a reason for hiding this comment

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

Function buildMenu has 152 lines of code (exceeds 32 allowed). Consider refactoring.

text-align: center;
-webkit-app-region: drag;
}
.updater-window__img {
Copy link

Choose a reason for hiding this comment

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

Expected empty line before rule (rule-empty-line-before)


// PRIVATE

bindListeners() {
Copy link

Choose a reason for hiding this comment

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

Function bindListeners has 35 lines of code (exceeds 32 allowed). Consider refactoring.

: (this.micMute.icon = this.micUnmutedIcon);
}

setupPerformance() {
Copy link

Choose a reason for hiding this comment

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

Function setupPerformance has 42 lines of code (exceeds 32 allowed). Consider refactoring.

this.bindDynamicMenuItems();
}

private buildMenu(): electron.Menu {
Copy link

Choose a reason for hiding this comment

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

Function buildMenu has a Cognitive Complexity of 55 (exceeds 10 allowed). Consider refactoring.

cp.execSync(`codesign -fs "Developer ID Application: Streamlabs LLC (UT675MBB9Q)" "${filePath}"`);
}

function signBinaries(directory) {
Copy link

Choose a reason for hiding this comment

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

Function signBinaries has a Cognitive Complexity of 15 (exceeds 10 allowed). Consider refactoring.

height: 100%;
padding: 32px;
background-color: #17242d;
color: #ffffff;
Copy link

Choose a reason for hiding this comment

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

Expected "#ffffff" to be "#fff" (color-hex-length)

}
}

setupGoLive() {
Copy link

Choose a reason for hiding this comment

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

Function setupGoLive has 35 lines of code (exceeds 32 allowed). Consider refactoring.

.updater-window__img {
width: 48px;
}
.UpdaterWindow-icon {
Copy link

Choose a reason for hiding this comment

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

Expected empty line before rule (rule-empty-line-before)

.UpdaterWindow-icon {
margin-right: 8px;
}
.UpdaterWindow-progressBarContainer {
Copy link

Choose a reason for hiding this comment

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

Expected empty line before rule (rule-empty-line-before)

border-radius: 4px;
overflow: hidden;
}
.UpdaterWindow-progressBar {
Copy link

Choose a reason for hiding this comment

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

Expected empty line before rule (rule-empty-line-before)

height: 8px;
background-color: #31c3a2;
}
.UpdaterWindow-progressPercent {
Copy link

Choose a reason for hiding this comment

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

Expected empty line before rule (rule-empty-line-before)

font-size: 14px;
margin: 16px 0 24px 0;
}
.UpdaterWindow-issues {
Copy link

Choose a reason for hiding this comment

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

Expected empty line before rule (rule-empty-line-before)

padding-top: 25px;
-webkit-app-region: no-drag;
}
.UpdaterWindow-link {
Copy link

Choose a reason for hiding this comment

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

Expected empty line before rule (rule-empty-line-before)

.UpdaterWindow-link {
color: #bbb;
cursor: pointer;
&:hover {
Copy link

Choose a reason for hiding this comment

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

Expected empty line before rule (rule-empty-line-before)

.titlebar-mac {
height: 22px;
flex: 0 0 22px;
.titlebar-title {
Copy link

Choose a reason for hiding this comment

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

Expected empty line before rule (rule-empty-line-before)

@@ -33,9 +35,9 @@
"ci:screentests": "node test/screentest/runner.js",
"ci:performance": "node test/performance/performance-test-runner.js",
"commit": "commit",
"postinstall": "scripts/facemask-plugin-move.bat",
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to figure out how to handle this one still

@avacreeth avacreeth closed this Jul 1, 2020
* Move SL native deps install in a separate script

* Fix electron-builder issues

* Fix removing not correct folder

* Reccursive rm

* Fix downloading issues

* Fix rm command

* Fix old game-overlay module name

* Optimize yarn install
@avacreeth avacreeth reopened this Jul 2, 2020
@codeclimate
Copy link

codeclimate bot commented Jul 2, 2020

Code Climate has analyzed commit f8c72a5 and detected 22 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 10
Duplication 2
Style 10

View more on Code Climate.

@avacreeth avacreeth merged commit 68ad75f into staging Jul 3, 2020
@avacreeth avacreeth deleted the mac-andy branch July 3, 2020 00:01
import cx from 'classnames';

@Component({})
export default class AppearanceSettings extends Vue {
Copy link
Contributor

Choose a reason for hiding this comment

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

should be export default class VirtualWebcamSettings extends TsxComponent

this.setTb();

this.navigationService.navigated.subscribe(() => this.setTb());
this.appService.loadingChanged.subscribe(() => this.setTb());
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not a big deal, but if we need to watch some single value from store sometimes it's easier to use store.watch rather than creating an exclusive event.

this.store.watch(() => this.appService.state.loading, () => this.setTb());

// youtube needs additional actions after the stream has been started
if (
(this.windowQuery.platforms && this.windowQuery.platforms.includes('youtube')) ||
this.isYoutube
) {
(getPlatformService('youtube') as YoutubeService).showStreamStatusWindow();
} else {
this.windowsService.closeChildWindow();
Copy link
Contributor

Choose a reason for hiding this comment

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

this.windowsService.actions.closeChildWindow() ?


let status = this.performanceService.streamQuality;

setInterval(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

we deiced to stop using setInterval

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

Successfully merging this pull request may close these issues.

6 participants