index int64 0 0 | repo_id stringlengths 16 181 | file_path stringlengths 28 270 | content stringlengths 1 11.6M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/main.js | const appStartTime = Date.now();
let lastEventTime = 0;
////////////////////////////////////////////////////////////////////////////////
// Set Up Environment Variables
////////////////////////////////////////////////////////////////////////////////
const pjson = require('./package.json');
if (pjson.env === 'productio... | 6,800 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/package.json | {
"name": "slobs-client",
"productName": "Streamlabs Desktop",
"description": "Streamlabs streaming software",
"author": "General Workings, Inc.",
"license": "GPL-3.0",
"version": "1.15.1",
"main": "main.js",
"scripts": {
"compile": "yarn clear && yarn compile:updater && yarn webpack-cli --progress ... | 6,801 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/renovate.json | {
"extends": [
"config:base"
],
"prConcurrentLimit": 3,
"labels": ["renovate"]
}
| 6,802 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/screentest-azure-pipelines.yml | #trigger:
#- staging
#- master
#
#variables:
# CI: true
#
#jobs:
# - job: Screenshots
#
# pool:
# name: 'Default'
#
# workspace:
# clean: resources
#
# steps:
#
# - powershell: echo "IP for RDP connections:" $(Invoke-RestMethod ipinfo.io/ip)
# displayName: 'Get RDP address'
#
# - p... | 6,803 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/test-main.js | // Electron main process for TESTS ONLY
// This should never be used outside of tests.
if (process.env.NODE_ENV !== 'test') {
throw new Error('Cannot run test-main.js outside of tests!');
}
const path = require('path');
const electron = require('electron');
// Inject fake context menu
(() => {
let currentMenu;
... | 6,804 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/tsconfig.json | {
"compileOnSave": false,
"compilerOptions": {
"target": "es2015",
"lib": [
"dom",
"es7",
"es2017"
],
"module": "esnext",
"moduleResolution": "node",
"isolatedModules": false,
"experimentalDecorators": true,
"noImplicitAny": true,
"noImplicitThis": true,
"re... | 6,805 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/webpack.base.config.js | const path = require('path');
const webpack = require('webpack');
const cp = require('child_process');
const { WebpackManifestPlugin } = require('webpack-manifest-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const VueLoaderPlugin = require('vue-loader/lib/plugin');
const fs = require('fs');... | 6,806 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/webpack.dev-app.config.js | const { mergeWithCustomize, customizeObject } = require('webpack-merge');
const devConfig = require('./webpack.dev.config.js');
module.exports = mergeWithCustomize({
customizeObject: customizeObject({
entry: 'replace',
}),
})(devConfig, {
entry: { renderer: './app/app.ts' },
});
| 6,807 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/webpack.dev.config.js | const webpack = require('webpack');
const { merge } = require('webpack-merge');
const baseConfig = require('./webpack.base.config.js');
const path = require('path');
const plugins = [];
// Use the source map plugin so we can override source map location
// The bundle updater serves the maps in development.
plugins.pu... | 6,808 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/webpack.prod.config.js | const { merge } = require('webpack-merge');
const baseConfig = require('./webpack.base.config.js');
const TerserPlugin = require('terser-webpack-plugin');
const crypto = require('crypto');
const path = require('path');
const fs = require('fs');
const OUTPUT_DIR = path.join(__dirname, 'bundles');
// Used by bundle upd... | 6,809 |
0 | petrpan-code/stream-labs | petrpan-code/stream-labs/desktop/yarn.lock | # This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!
__metadata:
version: 5
cacheKey: 8
"7zip-bin-linux@npm:~1.3.1":
version: 1.3.1
resolution: "7zip-bin-linux@npm:1.3.1"
conditions: os=linux
languageName: node
linkType: hard
"7z... | 6,810 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/.vscode/launch.json | {
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch",
"protocol": "inspector",
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd",
"osx": {
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/el... | 6,811 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/.vscode/settings.json | {
"typescript.tsdk": "./node_modules/typescript/lib",
"i18n-ally.localesPaths": ["app/i18n"],
"i18n-ally.keystyle": "nested"
}
| 6,812 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/.vscode/tasks.json | {
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "compile",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"label": "npm: compile",
"detail": "yarn clear && yarn compile:updater && yarn webpack-cli --progress --config .... | 6,813 |
0 | petrpan-code/stream-labs/desktop/.yarn/plugins | petrpan-code/stream-labs/desktop/.yarn/plugins/@yarnpkg/plugin-licenses.cjs | /* eslint-disable */
//prettier-ignore
module.exports = {
name: "@yarnpkg/plugin-licenses",
factory: function (require) {
var plugin=(()=>{var se=Object.create,U=Object.defineProperty;var re=Object.getOwnPropertyDescriptor;var ae=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,ce=Object.getPrototypeOf,z=Objec... | 6,814 |
0 | petrpan-code/stream-labs/desktop/.yarn | petrpan-code/stream-labs/desktop/.yarn/releases/yarn-3.1.1.cjs | #!/usr/bin/env node
/* eslint-disable */
//prettier-ignore
(()=>{var Mfe=Object.create,Vf=Object.defineProperty,Ofe=Object.defineProperties,Kfe=Object.getOwnPropertyDescriptor,Ufe=Object.getOwnPropertyDescriptors,Hfe=Object.getOwnPropertyNames,hE=Object.getOwnPropertySymbols,Gfe=Object.getPrototypeOf,eb=Object.prototyp... | 6,815 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/app/app-services.ts | /**
* All services must be registered in this file
*/
// OFFLINE SERVICES
export { AppService } from 'services/app';
export { InternalApiService } from 'services/api/internal-api';
export { ExternalApiService } from 'services/api/external-api';
export { ExternalApiLimitsService } from 'services/api/external-api-limi... | 6,816 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/app/app.g.less | @import "./styles/foundation";
@import "../node_modules/overlayscrollbars/css/OverlayScrollbars.css";
@import "../node_modules/vue-multiselect/dist/vue-multiselect.min.css";
@import "./styles/index";
@import "./styles/checkboxes";
@import "./styles/tables";
@import "./styles/buttons";
@import "./styles/classes";
@impor... | 6,817 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/app/app.ts | /*global SLOBS_BUNDLE_ID*/
/*global SLD_SENTRY_BACKEND_SERVER_URL, SLD_SENTRY_FRONTEND_DSN, SLD_SENTRY_BACKEND_SERVER_PREVIEW_URL*/
import { I18nService, $t } from 'services/i18n';
// eslint-disable-next-line
window['eval'] = global.eval = () => {
throw new Error('window.eval() is disabled for security');
};
impor... | 6,818 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/app/index.d.ts | /// <reference path="../vendor/toasted.d.ts" />
/// <reference path="../vendor/urijs.d.ts" />
// all global interfaces here
declare const SLOBS_BUNDLE_ID: string;
declare const SLD_SENTRY_BACKEND_SERVER_URL: string;
declare const SLD_SENTRY_FRONTEND_DSN: string;
declare const SLD_SENTRY_BACKEND_SERVER_PREVIEW_URL: st... | 6,819 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/app/jsx.d.ts | import Vue, { VNode } from 'vue';
declare global {
namespace JSX {
interface Element extends VNode {}
interface ElementClass extends Vue {}
interface ElementAttributesProperty {
vueTsxProps: {};
}
interface IntrinsicElements {
[elem: string]: any;
}
}
}
| 6,820 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/app/services-manager.ts | import { Service } from 'services/core/service';
import Utils from 'services/utils';
import { ObserveList, StatefulService } from 'services/core';
import * as appServices from './app-services';
import { InternalApiClient } from 'services/api/internal-api-client';
/**
* This service is initializing in all application... | 6,821 |
0 | petrpan-code/stream-labs/desktop | petrpan-code/stream-labs/desktop/app/themes.g.less | @import './styles/colors';
// Variables for use
:root {
--white: #fff;
--black: #000;
// Day Theme Colors
--primary: @teal-light;
--teal: @teal-light;
--teal-semi: fade(@teal-light, 8%);
--teal-hover: lighten(@teal-light, 4%);
--accent: @purple-light;
--blue: @blue-light;
--warning: @red-light;
... | 6,822 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/components-react/hooks.ts | import React, { useState, useEffect, useCallback, useRef, useMemo } from 'react';
import debounce from 'lodash/debounce';
import { StatefulService } from '../services/core';
import { Services } from './service-provider';
import Util from 'services/utils';
/**
* Creates a reactive state for a React component based on ... | 6,823 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/components-react/index.ts | import NameFolder from './windows/NameFolder';
import NameScene from './windows/NameScene';
import GoLiveWindow from './windows/go-live/GoLiveWindow';
import EditStreamWindow from './windows/go-live/EditStreamWindow';
import IconLibraryProperties from './windows/IconLibraryProperties';
import ScreenCaptureProperties fr... | 6,824 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/components-react/modals.tsx | import { Services } from './service-provider';
import { Modal } from 'antd';
import Utils from '../services/utils';
import { ModalFuncProps } from 'antd/lib/modal';
import { $t } from '../services/i18n';
import { TextInput } from './shared/inputs/TextInput';
import Form, { useForm } from './shared/inputs/Form';
import ... | 6,825 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/components-react/service-provider.ts | import { getResource } from '../services/core';
import { AppServices } from '../app-services';
// maps a dictionary of classes to a dictionary of types
type TInstances<T extends { [key: string]: new (...args: any) => any }> = {
[P in keyof T]: InstanceType<T[P]>;
};
/**
* Provides access to a singleton services
*... | 6,826 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/components-react/tsconfig.json | {
"extends": "../../tsconfig.json",
"compilerOptions": {
"strictNullChecks": true,
"jsx": "react",
"types": [
"react"
]
},
"include": ["./**/*", "../index.d.ts"],
"exclude": []
}
| 6,827 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/BaseElement.m.less | @import "../../../styles/index.less";
.container {
.radius();
height: 100%;
position: relative;
background: var(--section);
}
.empty {
.center();
opacity: 0.5;
}
| 6,828 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/Browser.tsx | import React, { useRef } from 'react';
import BrowserView from 'components-react/shared/BrowserView';
import { ELayoutElement } from 'services/layout';
import { Services } from 'components-react/service-provider';
import useBaseElement from './hooks';
export default function Display() {
const { LayoutService, UserSe... | 6,829 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/Display.tsx | import React, { useRef } from 'react';
import StudioEditor from 'components-react/root/StudioEditor';
import useBaseElement from './hooks';
export default function Display() {
const containerRef = useRef<HTMLDivElement>(null);
const { renderElement } = useBaseElement(<StudioEditor />, { x: 0, y: 0 }, containerRef... | 6,830 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/DualOutputSourceSelector.tsx | import React, { useMemo } from 'react';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
import { useModule } from 'slap';
import { SourceSelectorModule } from './SourceSelector';
interface IDualOutputSourceSelector {
nodeId: string;
sceneId?: string;
... | 6,831 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/LegacyEvents.tsx | import electron from 'electron';
import * as remote from '@electron/remote';
import React, { useRef } from 'react';
import { $t } from 'services/i18n';
import useBaseElement from './hooks';
import { Services } from 'components-react/service-provider';
import BrowserView from 'components-react/shared/BrowserView';
impor... | 6,832 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/Minifeed.tsx | import React, { useRef } from 'react';
import RecentEvents from './RecentEvents';
import useBaseElement from './hooks';
export default function MiniFeed() {
const containerRef = useRef<HTMLDivElement>(null);
const { renderElement } = useBaseElement(
<RecentEvents isOverlay={false} />,
{ x: 330, y: 90 },
... | 6,833 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/Mixer.tsx | import React, { useRef, useMemo } from 'react';
import useBaseElement from './hooks';
import { Tooltip } from 'antd';
import { useVuex } from 'components-react/hooks';
import Scrollable from 'components-react/shared/Scrollable';
import GLVolmeters from './mixer/GLVolmeters';
import MixerItem from './mixer/MixerItem';
i... | 6,834 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/RecentEvents.m.less | @import "../../../styles/index.less";
.container {
padding: 0 8px;
height: 100%;
flex-shrink: 0;
position: relative;
display: flex;
flex-direction: column;
}
.container:global(.perf-mode) {
height: 500px;
}
.top-bar {
display: flex;
justify-content: flex-end;
align-items: center;
padding-bottom... | 6,835 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/RecentEvents.tsx | import React, { useEffect, useState } from 'react';
import { useVuex } from 'components-react/hooks';
import cx from 'classnames';
import moment from 'moment';
import { $t } from 'services/i18n';
import { IRecentEvent } from 'services/recent-events';
import styles from './RecentEvents.m.less';
import Scrollable from 'c... | 6,836 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/RecordingPreview.tsx | import React, { useRef } from 'react';
import Display from 'components-react/shared/Display';
import Util from 'services/utils';
import { ERenderingMode } from '../../../../obs-api';
import styles from './BaseElement.m.less';
import { $t } from 'services/i18n';
import { Services } from 'components-react/service-provide... | 6,837 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/SceneSelector.m.less | @import '../../../styles/index';
.top-container {
display: flex;
margin-bottom: 8px;
align-items: center;
justify-content: flex-end;
> div:last-child {
top: 44px !important;
height: calc(100% - 44px);
}
:global(.ant-dropdown) {
top: 0 !important;
height: 100%;
}
:global(.active) {
... | 6,838 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/SceneSelector.tsx | import React, { useState, useRef, useMemo } from 'react';
import cx from 'classnames';
import { Dropdown, Tooltip as AntdTooltip, Tree, message } from 'antd';
import Tooltip from 'components-react/shared/Tooltip';
import { DownOutlined } from '@ant-design/icons';
import * as remote from '@electron/remote';
import { Men... | 6,839 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/SourceSelector.tsx | import React, { useEffect, useRef, useState } from 'react';
import { Tooltip, Tree } from 'antd';
import { DataNode } from 'rc-tree/lib/interface';
import { TreeProps } from 'rc-tree/lib/Tree';
import cx from 'classnames';
import { inject, injectState, injectWatch, mutation, useModule } from 'slap';
import { SourcesSer... | 6,840 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/StreamPreview.tsx | import React, { useRef } from 'react';
import Display from 'components-react/shared/Display';
import Util from 'services/utils';
import { ERenderingMode } from '../../../../obs-api';
import styles from './BaseElement.m.less';
import { $t } from 'services/i18n';
import { Services } from 'components-react/service-provide... | 6,841 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/hooks.tsx | import React, { useEffect, useState } from 'react';
import { $t } from 'services/i18n';
import styles from './BaseElement.m.less';
import Scrollable from 'components-react/shared/Scrollable';
import { useModule, injectState, mutation } from 'slap';
class BaseElementModule {
state = injectState({
sizeWatcherInter... | 6,842 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor/elements | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/mixer/CanvasVolmeter.tsx | import React, { useEffect, useRef, useState } from 'react';
import { Services } from 'components-react/service-provider';
import { Volmeter2d } from 'services/audio/volmeter-2d';
export default function MixerVolmeter(p: { audioSourceId: string; volmetersEnabled: boolean }) {
const canvas = useRef<HTMLCanvasElement>(... | 6,843 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor/elements | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/mixer/GLVolmeters.tsx | import React, { useEffect, useRef } from 'react';
import { IVolmeter } from 'services/audio';
import { Subscription } from 'rxjs';
import electron from 'electron';
import difference from 'lodash/difference';
import { compileShader, createProgram } from 'util/webgl/utils';
import vShaderSrc from 'util/webgl/shaders/volm... | 6,844 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor/elements | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/mixer/MixerItem.m.less | @import "../../../../styles/index";
.mixer-item {
position: relative;
.padding-h-sides(2);
.padding-v-sides();
.source-name {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.db-value {
width: 60px;
text-align: right;
}
.slider {
flex: 1;
}
... | 6,845 |
0 | petrpan-code/stream-labs/desktop/app/components-react/editor/elements | petrpan-code/stream-labs/desktop/app/components-react/editor/elements/mixer/MixerItem.tsx | import React from 'react';
import cx from 'classnames';
import { SliderInput } from 'components-react/shared/inputs';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
import { EditMenu } from 'util/menus/EditMenu';
import MixerVolmeter from './CanvasVolmete... | 6,846 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/BlankSlate.tsx | import React, { useEffect, useRef, useState } from 'react';
import { CheckCircleOutlined, InfoCircleOutlined } from '@ant-design/icons';
import HotkeyBinding, { getBindingString } from 'components-react/shared/HotkeyBinding';
import { IHotkey } from 'services/hotkeys';
import { Services } from 'components-react/service... | 6,847 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/ClipPreview.tsx | import { IClip } from 'services/highlighter';
import { SCRUB_HEIGHT, SCRUB_WIDTH, SCRUB_FRAMES } from 'services/highlighter/constants';
import React, { useMemo, useState } from 'react';
import path from 'path';
import { Services } from 'components-react/service-provider';
import { BoolButtonInput } from 'components-rea... | 6,848 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/ClipTrimmer.m.less | .clip-resize-handle {
position: absolute;
right: 0;
top: -3px;
height: 106px;
width: 10px;
border-top: 3px solid #555;
border-right: 3px solid #555;
border-bottom: 3px solid #555;
border-radius: 0 5px 5px 0;
cursor: col-resize;
transition: transform 250ms;
&.clip-resize-handle-right {
right... | 6,849 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/ClipTrimmer.tsx | import React, { useEffect, useRef, useState, RefObject } from 'react';
import { IClip } from 'services/highlighter';
import { SCRUB_FRAMES, SCRUB_HEIGHT, SCRUB_WIDTH } from 'services/highlighter/constants';
import { Services } from 'components-react/service-provider';
import times from 'lodash/times';
import styles fro... | 6,850 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/ExportModal.m.less | .crossclip-container {
height: 300px;
display: flex;
flex-direction: column;
align-items: center;
}
.upload-button {
margin: 32px;
width: 100px;
height: 50px;
border-radius: 16px;
font-size: 18px;
}
.sign-up-title {
text-align: center;
font-size: 32px;
font-weight: 300;
}
.log-in {
text... | 6,851 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/ExportModal.tsx | import React, { useState, useEffect } from 'react';
import { EExportStep, TFPS, TResolution, TPreset } from 'services/highlighter';
import { Services } from 'components-react/service-provider';
import { FileInput, TextInput, ListInput } from 'components-react/shared/inputs';
import Form from 'components-react/shared/in... | 6,852 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/PreviewModal.tsx | import { useVuex } from 'components-react/hooks';
import React, { useEffect, useRef } from 'react';
import { Services } from 'components-react/service-provider';
import { Progress, Alert } from 'antd';
import { $t } from 'services/i18n';
export default function PreviewModal(p: { close: () => void }) {
const { Highli... | 6,853 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/StorageUpload.tsx | import React, { useEffect } from 'react';
import * as remote from '@electron/remote';
import cx from 'classnames';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
import { $t } from 'services/i18n';
import Translate from 'components-react/shared/Translate'... | 6,854 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/TransitionSelector.tsx | import { useVuex } from 'components-react/hooks';
import { Services } from 'components-react/service-provider';
import InputWrapper from 'components-react/shared/inputs/InputWrapper';
import SvgContainer from 'components-react/shared/SvgContainer';
import React from 'react';
import { TTransitionType, IAvailableTransiti... | 6,855 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/UploadProgress.tsx | import React from 'react';
import { Progress } from 'antd';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
import { $t } from 'services/i18n';
// Source: https://stackoverflow.com/questions/10420352/converting-file-size-in-bytes-to-human-readable-string/... | 6,856 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/VideoPreview.tsx | import React from 'react';
import * as remote from '@electron/remote';
import path from 'path';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
import { $t } from 'services/i18n';
export default function VideoPreview() {
const { HighlighterService } = S... | 6,857 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/highlighter/YoutubeUpload.tsx | import React, { useState, useEffect } from 'react';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
import { TextInput, TextAreaInput } from 'components-react/shared/inputs';
import Form from 'components-react/shared/inputs/Form';
import { Button, Progress... | 6,858 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/hooks/useSubscription.tsx | import { Observable } from 'rxjs';
import { useEffect } from 'react';
/**
* Subscribe to an RxJs observable
*/
export function useSubscription<T>(observable: Observable<T>, cb: (value: T) => unknown) {
useEffect(() => {
const subscription = observable.subscribe(cb);
return () => subscription.unsubscribe();... | 6,859 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/hooks/useTree.tsx | import { EventDataNode, DataNode } from 'antd/lib/tree';
export interface IOnDropInfo {
node: EventDataNode;
dragNode: DataNode;
dropPosition: number;
dropToGap: boolean;
}
export function useTree(onlyLeaves?: boolean) {
function treeSort(info: IOnDropInfo, state: DataNode[]) {
const dropKey = info.node... | 6,860 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/hooks/zustand.tsx | import { StoreApi, useStore } from 'zustand';
import { createStore } from 'zustand/vanilla';
import { immer } from 'zustand/middleware/immer';
import React, { Context, useContext, useMemo } from 'react';
/**
* Initializes a Zustand store with the provided initial state, utilizing immer middleware.
*
*/
export funct... | 6,861 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/obs/ObsForm.tsx | import React from 'react';
import { ISettingsSubCategory } from '../../services/settings';
import {
IObsInput,
IObsListInput,
TObsFormData,
TObsValue,
IObsPathInputValue,
IObsSliderInputValue,
IObsTextInputValue,
IObsNumberInputValue,
} from '../../components/obs/inputs/ObsInput';
import Form, { useForm... | 6,862 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/AlertboxLibrary.tsx | import React, { useEffect, useState } from 'react';
import urlLib from 'url';
import * as remote from '@electron/remote';
import { Service } from 'services';
import { ENotificationType } from 'services/notifications';
import { $t } from 'services/i18n';
import BrowserView from 'components-react/shared/BrowserView';
imp... | 6,863 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/BrowseOverlays.tsx | import React, { useState, useEffect } from 'react';
import urlLib from 'url';
import { Service } from 'services';
import { ENotificationType } from 'services/notifications';
import { $t } from 'services/i18n';
import BrowserView from 'components-react/shared/BrowserView';
import { GuestApiHandler } from 'util/guest-api... | 6,864 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/Highlighter.m.less | @import "../../styles/index";
.clip-loader {
width: 400px;
font-size: 16px;
margin: auto;
}
.clips-view-root {
position: relative;
:global(.ant-modal-wrap), :global(.ant-modal-mask) {
position: absolute;
}
:global(.os-content-glue) {
width: 100% !important;
height: 100% !important;
}
}
... | 6,865 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/Highlighter.tsx | import { useVuex } from 'components-react/hooks';
import React, { useEffect, useState } from 'react';
import { Services } from 'components-react/service-provider';
import styles from './Highlighter.m.less';
import { IClip } from 'services/highlighter';
import ClipPreview from 'components-react/highlighter/ClipPreview';... | 6,866 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/Loader.tsx | import React, { useEffect, useState } from 'react';
import SvgContainer from 'components-react/shared/SvgContainer';
import { $t } from 'services/i18n';
const loadingStrings = () => [
// TODO: Add string to translation system and initialize i18n service earlier
// Basic Feature Usage
'You can edit the sounds of ... | 6,867 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/PatchNotes.m.less | @import '../../styles/index';
.patch-notes-chest,
.patch-notes-chest-deco {
width: 100%;
}
.patch-notes-chest-deco {
position: absolute;
}
.patch-notes-chest {
animation: floatingChest ease-in-out 1.5s infinite alternate;
}
.patch-notes-container--opened {
opacity: 0;
display: none;
&.patch-notes-conta... | 6,868 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/PatchNotes.tsx | import { $t } from '../../services/i18n';
import React from 'react';
import { Services } from '../service-provider';
import cx from 'classnames';
import styles from './PatchNotes.m.less';
export default function PatchNotes() {
const { PatchNotesService, NavigationService } = Services;
const notes = PatchNotesServ... | 6,869 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/PlatformAppMainPage.tsx | import React from 'react';
import { EAppPageSlot } from 'services/platform-apps';
import { $t } from 'services/i18n';
import { Services } from 'components-react/service-provider';
import PlatformAppPageView from 'components-react/shared/PlatformAppPageView';
import { useVuex } from 'components-react/hooks';
export def... | 6,870 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/PlatformAppStore.tsx | import React from 'react';
import Utils from 'services/utils';
import BrowserView from 'components-react/shared/BrowserView';
import { GuestApiHandler } from 'util/guest-api-handler';
import * as remote from '@electron/remote';
import { Services } from 'components-react/service-provider';
export default function Platfo... | 6,871 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/PlatformMerge.tsx | import React, { useState } from 'react';
import { EAuthProcessState } from 'services/user';
import { $t } from 'services/i18n';
import { getPlatformService, TPlatform } from '../../services/platforms';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
inter... | 6,872 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/RecordingHistory.m.less | @import "../../styles/index.less";
.container {
display: flex;
flex-direction: column;
padding: 24px;
width: 100%;
}
.recordings-container {
height: 100%;
}
.recording {
display: flex;
align-items: center;
padding: 16px;
border-radius: 4px;
:global(.fa-youtube):hover {
cursor: pointer;
}
... | 6,873 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/RecordingHistory.tsx | import React, { useEffect, useMemo } from 'react';
import cx from 'classnames';
import * as remote from '@electron/remote';
import { Tooltip, Menu, Button, message, Dropdown } from 'antd';
import { $t } from 'services/i18n';
import { ModalLayout } from 'components-react/shared/ModalLayout';
import {
RecordingModeServ... | 6,874 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/ThemeAudit.m.less | .theme-audit-root {
:global(.os-content-glue) {
width: 100% !important;
height: 100% !important;
}
}
| 6,875 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/pages/ThemeAudit.tsx | import { Services } from 'components-react/service-provider';
import React, { useEffect, useState } from 'react';
import execa from 'execa';
import { FFPROBE_EXE } from 'services/highlighter/constants';
import { pmap } from 'util/pmap';
import { ExclamationCircleOutlined } from '@ant-design/icons';
import Scrollable fr... | 6,876 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/grow/Cards.tsx | import * as remote from '@electron/remote';
import React from 'react';
import cx from 'classnames';
import { Progress, Button } from 'antd';
import PlatformLogo from '../../shared/PlatformLogo';
import styles from './Grow.m.less';
import { Services } from '../../service-provider';
import { ICommunityReach, IGoal, IUniv... | 6,877 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/grow/Grow.m.less | .goal-tab-container {
height: 100%;
width: 100%;
flex-grow: 1;
display: flex;
position: relative;
:global(.ant-modal-wrap),
:global(.ant-modal-mask) {
position: absolute;
}
:global(.os-content-glue) {
width: 100% !important;
height: 100% !important;
}
}
.goal-tab-content {
padding: ... | 6,878 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/grow/Grow.tsx | import * as remote from '@electron/remote';
import React, { useEffect, useState, useRef } from 'react';
import shuffle from 'lodash/shuffle';
import { Button, Modal } from 'antd';
import Form, { useForm } from '../../shared/inputs/Form';
import { $t } from '../../../services/i18n';
import styles from './Grow.m.less';
i... | 6,879 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/layout-editor/AddTabModal.tsx | import React, { useState } from 'react';
import { ModalLayout } from 'components-react/shared/ModalLayout';
import { Services } from 'components-react/service-provider';
import { $t } from 'services/i18n';
import { TextInput, CardInput } from 'components-react/shared/inputs';
import { useLayoutEditor } from './hooks';
... | 6,880 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/layout-editor/LayoutEditor.m.less | @import "../../../styles/index.less";
.top-bar {
position: relative;
height: 64px;
width: 100%;
padding: 8px;
display: flex;
align-items: center;
background-color: var(--section);
button {
margin-left: auto;
margin-right: 16px;
}
.arrow {
transform: scaleX(-1);
height: 12px;
w... | 6,881 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/layout-editor/LayoutEditor.tsx | import React, { useEffect, useState } from 'react';
import cx from 'classnames';
import styles from './LayoutEditor.m.less';
import { ELayoutElement, LayoutSlot } from 'services/layout';
import { $t } from 'services/i18n';
import { Services } from 'components-react/service-provider';
import { TextInput } from 'componen... | 6,882 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/layout-editor/SideBar.tsx | import React from 'react';
import styles from './LayoutEditor.m.less';
import { ELayoutElement, ELayout } from 'services/layout';
import { $t } from 'services/i18n';
import Scrollable from 'components-react/shared/Scrollable';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'compon... | 6,883 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/layout-editor/TopBar.tsx | import React from 'react';
import cx from 'classnames';
import { Tooltip } from 'antd';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
import { ListInput } from 'components-react/shared/inputs';
import { ELayoutElement } from 'services/layout';
import { $... | 6,884 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/layout-editor/hooks.ts | import cloneDeep from 'lodash/cloneDeep';
import { Services } from 'components-react/service-provider';
import { ELayoutElement, ELayout, LayoutSlot } from 'services/layout';
import { injectState, mutation, useModule } from 'slap';
class LayoutEditorModule {
state = injectState({
currentLayout: this.layoutServic... | 6,885 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/ChooseYourAdventure.m.less | @import "../../../styles/index";
@import '../../../styles/badges';
.title {
position: absolute;
top: 25%;
left: 40px;
font-size: 48px;
}
.option-container {
display: flex;
justify-content: space-between;
width: 600px;
position: absolute;
top: 40%;
left: 40px;
}
.footer {
position: absolute;
b... | 6,886 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/Common.m.less | .title-container {
width: 100%;
text-align: center;
font-size: 32px;
h1 {
display: inline-block;
font-size: 32px;
}
margin-bottom: 40px;
}
.option-card {
position: relative;
background: var(--teal);
padding: 16px;
overflow: hidden;
height: 80px;
border-radius: 40px;
display: flex;
... | 6,887 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/Connect.m.less | @import "../../../styles/index";
.container {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
margin-top: 10%;
h1 {
margin-bottom: 8px;
}
:global(.list-input),
:global(.section) { width: 400px; }
}
.select-another {
.margin-v-... | 6,888 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/Connect.tsx | import React from 'react';
import styles from './Connect.m.less';
import commonStyles from './Common.m.less';
import { $t } from 'services/i18n';
import { Services } from 'components-react/service-provider';
import { injectState, useModule, mutation } from 'slap';
import { ExtraPlatformConnect } from './ExtraPlatformCo... | 6,889 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/ExtraPlatformConnect.tsx | import { useModule } from 'slap';
import PlatformLogo from 'components-react/shared/PlatformLogo';
import React, { useState } from 'react';
import { $t } from 'services/i18n';
import { LoginModule } from './Connect';
import styles from './Connect.m.less';
import * as remote from '@electron/remote';
import { TextInput }... | 6,890 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/FreshOrImport.tsx | import { Tooltip } from 'antd';
import { useModule } from 'slap';
import KevinSvg from 'components-react/shared/KevinSvg';
import React from 'react';
import { $t } from 'services/i18n';
import { $i } from 'services/utils';
import styles from './ChooseYourAdventure.m.less';
import commonStyles from './Common.m.less';
im... | 6,891 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/HardwareSetup.m.less | @import "../../../styles/index";
.content-container {
width: 40%;
margin: auto;
height: calc(100% - 84px);
display: flex;
}
.display {
height: 250px;
margin-right: 20px;
}
.placeholder {
.radius();
position: relative;
height: 200px;
background-color: var(--section);
margin-bottom: 16px;
spa... | 6,892 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/HardwareSetup.tsx | import React, { useEffect, useRef } from 'react';
import { $t } from 'services/i18n';
import commonStyles from './Common.m.less';
import styles from './HardwareSetup.m.less';
import { Services } from 'components-react/service-provider';
import Display from 'components-react/shared/Display';
import { ERenderingMode } fr... | 6,893 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/MacPermissions.tsx | import { useModule } from 'slap';
import { Services } from 'components-react/service-provider';
import React, { useEffect, useState } from 'react';
import { $t } from 'services/i18n';
import commonStyles from './Common.m.less';
import { OnboardingModule } from './Onboarding';
export function MacPermissions() {
const... | 6,894 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/ObsImport.m.less | @import "../../../styles/index";
@import '../../../styles/badges';
.container {
display: flex;
justify-content: space-between;
padding: 40px;
width: 100%;
}
.card {
.radius(2);
background: var(--section);
width: 48%;
padding: 24px;
display: flex;
justify-content: space-between;
align-items: cen... | 6,895 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/ObsImport.tsx | import { injectState, useModule, mutation } from 'slap';
import { alertAsync } from 'components-react/modals';
import { Services } from 'components-react/service-provider';
import AutoProgressBar from 'components-react/shared/AutoProgressBar';
import { ListInput } from 'components-react/shared/inputs';
import Form from... | 6,896 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/ObsSvg.tsx | import React from 'react';
export default () => (
<svg
xmlns="http://www.w3.org/2000/svg"
width="142"
height="142"
viewBox="0 0 142 142"
fill="none"
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M142 71C142 110.212 110.212 142 71 142C31.7878 142 0 110.212 0 71C0 31.7878... | 6,897 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/Onboarding.m.less | .onboarding-container {
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.top-bar-container {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 24px;
margin-top: 24px;
margin-bottom: 60px;
}
.top-bar-segment {
display: flex;
margin: 4... | 6,898 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/Onboarding.tsx | import React, { useEffect } from 'react';
import styles from './Onboarding.m.less';
import commonStyles from './Common.m.less';
import { Services } from 'components-react/service-provider';
import { injectState, useModule, mutation } from 'slap';
import cx from 'classnames';
import { $t } from 'services/i18n';
import *... | 6,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.