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/desktop/app/services/api
petrpan-code/stream-labs/desktop/app/services/api/jsonrpc/jsonrpc.ts
import { Service } from 'services/core/service'; import { E_JSON_RPC_ERROR, IJsonRpcResponse, IJsonRpcRequest, IJsonRpcEvent, IJsonrpcServiceApi, } from './jsonrpc-api'; import uuid from 'uuid/v4'; export class JsonrpcService extends Service implements IJsonrpcServiceApi { static createError( requestOr...
8,900
0
petrpan-code/stream-labs/desktop/app/services/api
petrpan-code/stream-labs/desktop/app/services/api/tcp-server/index.ts
export * from './tcp-server'; export * from './tcp-server-api';
8,901
0
petrpan-code/stream-labs/desktop/app/services/api
petrpan-code/stream-labs/desktop/app/services/api/tcp-server/tcp-server-api.ts
import { ISettingsSubCategory } from '../../settings/index'; export interface ITcpServersSettings { token: string; namedPipe: { enabled: boolean; pipeName: string; }; websockets: { enabled: boolean; port: number; allowRemote: boolean; }; } export interface ITcpServerServiceApi { getApi...
8,902
0
petrpan-code/stream-labs/desktop/app/services/api
petrpan-code/stream-labs/desktop/app/services/api/tcp-server/tcp-server.ts
import os from 'os'; import crypto from 'crypto'; import { PersistentStatefulService, Inject, mutation } from 'services/core'; import { IObsInput } from 'components/obs/inputs/ObsInput'; import { ISettingsSubCategory } from 'services/settings/index'; import { JsonrpcService, E_JSON_RPC_ERROR, IJsonRpcEvent, IJs...
8,903
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/app/app-decorators.ts
import { getResource } from 'services/core/injector'; import { AppService, IRunInLoadingModeOptions } from './app'; import { createDecorator } from 'vue-class-component'; import cloneDeep from 'lodash/cloneDeep'; import Vue from 'vue'; /** * Method decorator * Set application to the loading mode while running the as...
8,904
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/app/app.ts
import uuid from 'uuid/v4'; import { mutation, StatefulService } from 'services/core/stateful-service'; import { OnboardingService } from 'services/onboarding'; import { HotkeysService } from 'services/hotkeys'; import { UserService } from 'services/user'; import { ShortcutsService } from 'services/shortcuts'; import {...
8,905
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/app/index.ts
export * from './app';
8,906
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/audio/audio-api.ts
import * as obs from '../../../obs-api'; import { Subscription, Observable } from 'rxjs'; import { TObsFormData } from 'components/obs/inputs/ObsInput'; import { ISource } from '../sources'; import { IDevice } from 'services/hardware'; export interface IAudioSourcesState { audioSources: Dictionary<IAudioSource>; } ...
8,907
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/audio/audio.ts
import Vue from 'vue'; import omit from 'lodash/omit'; import { Observable, Subject, Subscription } from 'rxjs'; import { mutation, StatefulService, ServiceHelper, InitAfter, Inject } from 'services'; import { SourcesService, ISource, Source } from 'services/sources'; import { ScenesService } from 'services/scenes'; im...
8,908
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/audio/index.ts
export * from './audio'; export * from './audio-api';
8,909
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/audio/volmeter-2d.ts
import { Subscription } from 'rxjs'; import { AudioSource, AudioService, IVolmeter } from 'services/audio'; import { Inject } from 'services/core/injector'; import { CustomizationService } from 'services/customization'; import electron from 'electron'; import { WindowsService } from 'services/windows'; // Configuratio...
8,910
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/auto-config/index.ts
import { Subject } from 'rxjs'; import debounce from 'lodash/debounce'; import { Service } from '../core/service'; import * as obs from '../../../obs-api'; import { Inject } from 'services'; import { StreamSettingsService } from 'services/settings/streaming'; import { getPlatformService } from 'services/platforms'; imp...
8,911
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/core/index.ts
export * from './service'; export * from './stateful-service'; export * from './persistent-stateful-service'; export * from './injector'; export * from './service-initialization-observer'; export * from './service-helper';
8,912
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/core/injector.ts
import { ServicesManager } from 'services-manager'; /** * inject a service as a getter * if serviceName is missed it will try to use a property name to find the service * * @example * * class MyClass() { * @Inject() appService: AppService; * } * * @example * * class MyClass() { * @Inject('AppService')...
8,913
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/core/persistent-stateful-service.ts
import merge from 'lodash/merge'; import cloneDeep from 'lodash/cloneDeep'; import { StatefulService } from './stateful-service'; import Utils from '../utils'; // Extends StatefulService with code that will persist the // state across executions of the application. interface IMigration { oldKey: string; newKey: s...
8,914
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/core/service-helper.ts
/** * Classes with ServiceHelper decorator saves constructor's * arguments to send them with each called mutation. * We need to save constructor arguments to create the same * class instance in another window. * * Each ServiceHelper should have isDestroyed() method * that allows to detect calls from deleted help...
8,915
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/core/service-initialization-observer.ts
import { Service } from './service'; /** * Eagerly initialize the service after specified service initialization */ // tslint:disable-next-line:function-name export function InitAfter(observableServiceName: string) { return function (target: typeof Service) { const observeList = ObserveList.instance; obser...
8,916
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/core/service.ts
/** * simple singleton service implementation * @see original code http://stackoverflow.com/a/26227662 */ import { Subject } from 'rxjs'; const singleton = Symbol('singleton'); const singletonEnforcer = Symbol('singletonEnforcer'); const instances: Service[] = []; const proxies: Service[] = []; /** * Makes all fu...
8,917
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/core/stateful-service.ts
import Vue from 'vue'; import { Store, Module } from 'vuex'; import { Service } from './service'; import Utils from 'services/utils'; interface IMutationOptions { unsafe?: boolean; sync?: boolean; } export function mutation(options: IMutationOptions = {}) { return function (target: any, methodName: string, desc...
8,918
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/dual-output/dual-output-data.ts
import { $t } from 'services/i18n'; import { TPlatform, EPlatform } from 'services/platforms'; import { TDisplayType } from 'services/settings-v2'; export enum EOutputDisplayType { Horizontal = 'horizontal', Vertical = 'vertical', } export interface IDualOutputPlatformSetting { platform: TPlatform; display: EO...
8,919
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/dual-output/dual-output.ts
import { PersistentStatefulService, InitAfter, Inject, ViewHandler, mutation } from 'services/core'; import { TDualOutputPlatformSettings, DualOutputPlatformSettings, IDualOutputDestinationSetting, } from './dual-output-data'; import { verticalDisplayData } from '../settings-v2/default-settings-data'; import { Sc...
8,920
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/dual-output/index.ts
export * from './dual-output'; export * from './dual-output-data';
8,921
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/editor-commands/editor-commands.ts
import { mutation, StatefulService } from 'services/core/stateful-service'; import { Command } from './commands/command'; import * as commands from './commands'; import { CombinableCommand } from './commands/combinable-command'; import { shortcut } from 'services/shortcuts'; import { SelectionService } from 'services/s...
8,922
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/editor-commands/index.ts
export * from './editor-commands';
8,923
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/add-files.ts
import { Command } from './command'; import { $t } from 'services/i18n'; import { CreateNewItemCommand } from './create-new-item'; import { Inject } from '../../core'; import { ScenesService, TSceneNode } from '../../scenes'; import { CreateFolderCommand } from './create-folder'; import { RemoveNodesCommand } from './r...
8,924
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/add-filter.ts
import { Command } from './command'; import { SourceFiltersService, TSourceFilterType } from 'services/source-filters'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class AddFilterCommand extends Command { @Inject() private sourceFiltersService: SourceFiltersService; ...
8,925
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/center-items.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; export enum ECenteringType { Screen = 'screen', Horizontal = 'horizontal', Vertical = 'vertical', } export class CenterItemsCommand extends ModifyTransformCommand { ...
8,926
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/combinable-command.ts
import { Command } from './command'; export abstract class CombinableCommand extends Command { /** * Should return true if nextCommand should be combined with this command * @param nextCommand The next command that might be combined */ abstract shouldCombine(nextCommand: CombinableCommand): boolean; /*...
8,927
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/command.ts
export abstract class Command { abstract description: string; abstract execute(): any; abstract rollback(): any; }
8,928
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/copy-nodes.ts
import { Command } from './command'; import { Selection } from 'services/selection'; import { Inject } from 'services/core'; import { ScenesService, TSceneNode } from 'services/scenes'; import compact from 'lodash/compact'; import { $t } from 'services/i18n'; import { DualOutputService } from 'services/dual-output'; im...
8,929
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/create-connection.ts
import { Command } from './command'; import { Inject } from 'services/core'; import { TransitionsService } from 'services/transitions'; import { $t } from 'services/i18n'; export class CreateConnectionCommand extends Command { @Inject() transitionsService: TransitionsService; description = $t('Create a new connec...
8,930
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/create-existing-item.ts
import { Command } from './command'; import { SourcesService } from 'services/sources'; import { ScenesService } from 'services/scenes'; import { DualOutputService } from 'services/dual-output'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; import { SceneCollectionsService } from ...
8,931
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/create-folder.ts
import { Command } from './command'; import { Selection } from 'services/selection'; import { Inject } from 'services/core/injector'; import { ScenesService, TSceneNode } from 'services/scenes'; import { ReorderNodesCommand, EPlaceType } from './reorder-nodes'; import { $t } from 'services/i18n'; import { DualOutputSer...
8,932
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/create-new-item.ts
import { Command } from './command'; import { TSourceType } from 'services/sources'; import { ScenesService, ISceneNodeAddOptions } from 'services/scenes'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; import { DualOutputService } from 'services/dual-output'; import { SceneCollect...
8,933
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/create-scene.ts
import { Command } from './command'; import { ScenesService } from 'services/scenes'; import { Inject } from 'services/core/injector'; import { RemoveNodesCommand } from './remove-nodes'; import { CopyNodesCommand } from './copy-nodes'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n';...
8,934
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/create-transition.ts
import { Command } from './command'; import { TransitionsService, ETransitionType } from 'services/transitions'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class CreateTransitionCommand extends Command { @Inject() private transitionsService: TransitionsService; des...
8,935
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/crop-items.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; import { TDisplayType } from 'services/settings-v2'; export class CropItemsCommand extends ModifyTransformCommand { /** * Crops a set of items * @param selection The ...
8,936
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/edit-connection.ts
import { Command } from './command'; import { Inject } from 'services/core'; import { TransitionsService, ITransitionConnection } from 'services/transitions'; import cloneDeep from 'lodash/cloneDeep'; import { $t } from 'services/i18n'; export class EditConnectionCommand extends Command { @Inject() private transitio...
8,937
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/edit-filter-properties.ts
import { CombinableCommand } from './combinable-command'; import { TObsFormData } from 'components/obs/inputs/ObsInput'; import { SourceFiltersService } from 'services/source-filters'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class EditFilterPropertiesCommand extends ...
8,938
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/edit-source-properties.ts
import { CombinableCommand } from './combinable-command'; import { TObsFormData } from 'components/obs/inputs/ObsInput'; import { SourcesService } from 'services/sources'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class EditSourcePropertiesCommand extends CombinableCom...
8,939
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/edit-source-settings.ts
import { CombinableCommand } from './combinable-command'; import { SourcesService } from 'services/sources'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; /** * This command is extremely similar to EditSourceProperties * except that it operates with raw settings values instead ...
8,940
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/edit-transition.ts
import { Command } from './command'; import { ETransitionType, TransitionsService } from 'services/transitions'; import { TObsFormData } from 'components/obs/inputs/ObsInput'; import { Inject } from 'services/core'; import cloneDeep from 'lodash/cloneDeep'; import { $t } from 'services/i18n'; /** * Any or all of thes...
8,941
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/fit-to-screen.ts
import { ModifyTransformCommand } from './modify-transform'; import { $t } from 'services/i18n'; export class FitToScreenCommand extends ModifyTransformCommand { get description() { return $t('Fit %{sourceName}', { sourceName: this.selection.getNodes()[0].name }); } modifyTransform() { this.selection.fi...
8,942
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/flip-items.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; export enum EFlipAxis { Horizontal = 'horizontal', Vertical = 'vertical', } export class FlipItemsCommand extends ModifyTransformCommand { constructor(selection: Selec...
8,943
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/hide-items.ts
import { Command } from './command'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; export class HideItemsCommand extends Command { private initialValues: Dictionary<boolean> = {}; description: string; constructor(private selection: Selection, private hidden: boolean) { ...
8,944
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/hide-mixer-source.ts
import { Command } from './command'; import { Inject } from 'services/core'; import { AudioService } from 'services/audio'; import { $t } from 'services/i18n'; export class HideMixerSourceCommand extends Command { @Inject() private audioService: AudioService; description: string; constructor(private sourceId: ...
8,945
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/index.ts
// This is a full list of commands that can be executed from // the editor and can be rolled back. // Scenes export { CreateSceneCommand } from './create-scene'; export { RenameSceneCommand } from './rename-scene'; export { RemoveSceneCommand } from './remove-scene'; export { UngroupSceneCommand } from './ungroup-scen...
8,946
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/modify-transform.ts
import { CombinableCommand } from './combinable-command'; import { ITransform } from 'services/scenes'; import { Selection } from 'services/selection'; import isEqual from 'lodash/isEqual'; import cloneDeep from 'lodash/cloneDeep'; import { TObsFormData } from 'components/obs/inputs/ObsInput'; import { EditSourceProper...
8,947
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/move-items.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; import { TDisplayType } from 'services/settings-v2'; export class MoveItemsCommand extends ModifyTransformCommand { constructor( selection: Selection, private delta...
8,948
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/mute-source.ts
import { Command } from './command'; import { AudioService } from 'services/audio'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class MuteSourceCommand extends Command { @Inject() private audioService: AudioService; private oldValue: boolean; description: string; ...
8,949
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/nudge-items.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; export enum ENudgeDirection { Up = 'up', Down = 'down', Right = 'right', Left = 'left', } export class NudgeItemsCommand extends ModifyTransformCommand { construct...
8,950
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/paste-filters.ts
import { Command } from './command'; import { AddFilterCommand } from './add-filter'; import { TSourceFilterType } from 'services/source-filters'; import { $t } from 'services/i18n'; export interface IFilterData { name: string; type: TSourceFilterType; settings: Dictionary<any>; } export class PasteFiltersComma...
8,951
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/remove-connection.ts
import { Command } from './command'; import { Inject } from 'services/core'; import { TransitionsService } from 'services/transitions'; import { $t } from 'services/i18n'; export class RemoveConnectionCommand extends Command { @Inject() private transitionsService: TransitionsService; description = $t('Remove a co...
8,952
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/remove-filter.ts
import { Command } from './command'; import { SourceFiltersService, ISourceFilter } from 'services/source-filters'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class RemoveFilterCommand extends Command { @Inject() private sourceFiltersService: SourceFiltersService; ...
8,953
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/remove-folder.ts
import { Command } from './command'; import { Inject } from 'services/core/injector'; import { ScenesService } from 'services/scenes'; import { $t } from 'services/i18n'; export class RemoveFolderCommand extends Command { @Inject() private scenesService: ScenesService; private name: string; private childrenIds:...
8,954
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/remove-item.ts
import { Command } from './command'; import { ScenesService } from 'services/scenes'; import { Inject } from 'services/core/injector'; import { SourcesNode } from 'services/scene-collections/nodes/sources'; import { Source } from 'services/sources'; import { ReorderNodesCommand, EPlaceType } from './reorder-nodes'; imp...
8,955
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/remove-nodes.ts
import { Command } from './command'; import { Selection } from 'services/selection'; import { RemoveFolderCommand } from './remove-folder'; import { RemoveItemCommand } from './remove-item'; import { DualOutputService } from 'services/dual-output'; import { SceneCollectionsService } from 'services/scene-collections'; i...
8,956
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/remove-scene.ts
import { Command } from './command'; import { ScenesService } from 'services/scenes'; import { Inject } from 'services/core/injector'; import { RemoveNodesCommand } from './remove-nodes'; import { $t } from 'services/i18n'; import { RemoveItemCommand } from './remove-item'; import { DualOutputService } from 'services/d...
8,957
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/remove-source.ts
import { Command } from './command'; import { Inject } from 'services/core/injector'; import { ISourceAddOptions, SourcesService, TSourceType } from 'services/sources'; import { $t } from '../../i18n'; /** * Removes the source * Works for global sources only (with channel > 0) */ export class RemoveSourceCommand ex...
8,958
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/remove-transition.ts
import { Command } from './command'; import { ETransitionType, TransitionsService } from 'services/transitions'; import { Inject } from 'services/core'; import { $t } from 'services/i18n'; export class RemoveTransitionCommand extends Command { @Inject() private transitionsService: TransitionsService; private type...
8,959
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/rename-folder.ts
import { Command } from './command'; import { ScenesService } from 'services/scenes'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class RenameFolderCommand extends Command { @Inject() scenesService: ScenesService; private oldName: string; constructor(private scen...
8,960
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/rename-scene.ts
import { Command } from './command'; import { ScenesService } from 'services/scenes'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class RenameSceneCommand extends Command { @Inject() scenesService: ScenesService; private oldName: string; constructor(private scene...
8,961
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/rename-source.ts
import { Command } from './command'; import { SourcesService } from 'services/sources'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class RenameSourceCommand extends Command { @Inject() sourcesService: SourcesService; private oldName: string; constructor(private ...
8,962
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/reorder-filters.ts
import { Command } from './command'; import { Inject } from 'services/core'; import { SourceFiltersService } from 'services/source-filters'; import { $t } from 'services/i18n'; export class ReorderFiltersCommand extends Command { @Inject() private sourceFiltersService: SourceFiltersService; description: string; ...
8,963
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/reorder-nodes.ts
import { Command } from './command'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; export enum EPlaceType { After = 'after', Before = 'before', Inside = 'inside', } export class ReorderNodesCommand extends Command { initialNodeOrder: string[]; initialParentMap: Dictiona...
8,964
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/reset-transform.ts
import { ModifyTransformCommand } from './modify-transform'; import { $t } from 'services/i18n'; export class ResetTransformCommand extends ModifyTransformCommand { get description() { return $t('Reset %{sourceName}', { sourceName: this.selection.getNodes()[0].name }); } modifyTransform() { this.selecti...
8,965
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/resize-items.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; import { TDisplayType } from 'services/settings-v2'; export class ResizeItemsCommand extends ModifyTransformCommand { constructor( selection: Selection, private del...
8,966
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/rotate-items.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; export class RotateItemsCommand extends ModifyTransformCommand { constructor(selection: Selection, private degrees: number) { super(selection); } get description()...
8,967
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/set-audio-settings.ts
import { CombinableCommand } from './combinable-command'; import obs from '../../../../obs-api'; import { Inject } from 'services/core'; import { AudioService } from 'services/audio'; import { $t } from 'services/i18n'; export interface IChangableAudioSettings { forceMono?: boolean; syncOffset?: number; monitori...
8,968
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/set-blending-method.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; import { EBlendingMethod } from 'services/scenes'; import { Command } from './command'; export class SetBlendingMethodCommand extends Command { private initialValues: Dicti...
8,969
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/set-blending-mode.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; import { EBlendingMode } from 'services/scenes'; import { Command } from './command'; export class SetBlendingModeCommand extends Command { private initialValues: Dictionar...
8,970
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/set-default-transition.ts
import { Command } from './command'; import { Inject } from 'services/core'; import { TransitionsService } from 'services/transitions'; import { $t } from 'services/i18n'; export class SetDefaultTransitionCommand extends Command { @Inject() private transitionsService: TransitionsService; description = $t('Change ...
8,971
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/set-deflection.ts
import { CombinableCommand } from './combinable-command'; import { AudioService } from 'services/audio'; import { Inject } from 'services/core/injector'; import { $t } from 'services/i18n'; export class SetDeflectionCommand extends CombinableCommand { @Inject() private audioService: AudioService; private initialV...
8,972
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/set-deinterlacing-field-order.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; import { EDeinterlaceFieldOrder } from 'services/sources'; import { Command } from './command'; export class SetDeinterlacingFieldOrderCommand extends Command { private ini...
8,973
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/set-deinterlacing-mode.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; import { EDeinterlaceMode } from 'services/sources'; import { Command } from './command'; export class SetDeinterlacingModeCommand extends Command { private initialValues: ...
8,974
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/set-item-scale-filter.ts
import { ModifyTransformCommand } from './modify-transform'; import { Selection } from 'services/selection'; import { $t } from 'services/i18n'; import { EScaleType } from 'services/scenes'; import { Command } from './command'; export class SetScaleFilterCommand extends Command { private initialValues: Dictionary<ES...
8,975
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/stretch-to-screen.ts
import { ModifyTransformCommand } from './modify-transform'; import { $t } from 'services/i18n'; export class StretchToScreenCommand extends ModifyTransformCommand { get description() { return $t('Stretch %{sourceName}', { sourceName: this.selection.getNodes()[0].name }); } modifyTransform() { this.sele...
8,976
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/toggle-filter.ts
import { Command } from './command'; import { Inject } from 'services/core'; import { SourceFiltersService } from 'services/source-filters'; import { $t } from 'services/i18n'; export class ToggleFilterCommand extends Command { @Inject() private sourceFiltersService: SourceFiltersService; description: string; ...
8,977
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/ungroup-scene.ts
import { Command } from './command'; import { Inject } from 'services/core'; import { ScenesService } from 'services/scenes'; import { CopyNodesCommand } from './copy-nodes'; import { RemoveItemCommand } from './remove-item'; import { RemoveSceneCommand } from './remove-scene'; import { $t } from 'services/i18n'; /** ...
8,978
0
petrpan-code/stream-labs/desktop/app/services/editor-commands
petrpan-code/stream-labs/desktop/app/services/editor-commands/commands/unhide-mixer-sources.ts
import { Command } from './command'; import { Inject } from 'services/core'; import { AudioService } from 'services/audio'; import { $t } from 'services/i18n'; export class UnhideMixerSourcesCommand extends Command { @Inject() private audioService: AudioService; description = $t('Unhide mixer items'); private ...
8,979
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/game-overlay/index.ts
import electron, { ipcRenderer } from 'electron'; import { Subscription } from 'rxjs'; import { Inject, InitAfter } from 'services/core'; import { UserService } from 'services/user'; import { CustomizationService } from 'services/customization'; import { enableBTTVEmotesScript } from 'services/chat'; import { WindowsSe...
8,980
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/grow/grow-data.ts
export const GROWTH_TIPS = () => [ { title: 'Set Up Tips', icon: 'icon-balance', link: encodeURIComponent('settings/donation-settings'), cta: 'Set Up Tips', description: "Go to Donation Settings and enter your personal information to get started. If you're a new streamer, we recommend starti...
8,981
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/grow/grow.ts
import Vue from 'vue'; import uuid from 'uuid/v4'; import { StatefulService, mutation, ViewHandler, Inject } from 'services/core'; import { HostsService } from 'services/hosts'; import { UserService } from 'services/user'; import { jfetch, authorizedHeaders } from 'util/requests'; import { GOAL_OPTIONS, GROWTH_TIPS } f...
8,982
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/guest-cam/consumer.ts
import { IConsumerCreatedEvent, IRemoteProducer, TConnectParams } from '.'; import { Guest } from './guest'; import { MediasoupEntity } from './mediasoup-entity'; export class Consumer extends MediasoupEntity { transportCreated = false; transportConnected = false; guests: Guest[] = []; findGuestByStreamId(str...
8,983
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/guest-cam/guest-track.ts
import { Subscription } from 'rxjs'; import { IConsumerTrackEvent } from '.'; import { MediasoupEntity } from './mediasoup-entity'; type TTrackKind = 'audio' | 'video'; interface IGuestTrackConstructorOptions { kind: TTrackKind; trackId: string; socketId: string; streamId: string; transportId: string; sou...
8,984
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/guest-cam/guest.ts
import { Subscription } from 'rxjs'; import { IConsumerCreatedEvent, IRemoteProducer } from '.'; import { GuestTrack } from './guest-track'; import { MediasoupEntity } from './mediasoup-entity'; interface IGuestConstructorOptions { remoteProducer: IRemoteProducer; } export class Guest extends MediasoupEntity { we...
8,985
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/guest-cam/index.ts
import { authorizedHeaders, jfetch } from 'util/requests'; import { importSocketIOClient } from 'util/slow-imports'; import { InitAfter, Inject, mutation, StatefulService, Service, ViewHandler } from 'services/core'; import { UserService } from 'services/user'; import uuid from 'uuid/v4'; import { SourcesService } from...
8,986
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/guest-cam/mediasoup-entity.ts
import { Inject } from 'services/core'; import { ScenesService } from 'services/scenes'; import { SourcesService } from 'services/sources'; import { GuestCamService, IObsReturnTypes } from '.'; /** * Base class representing something that needs a connection * to the mediasoup plugin and service */ export abstract c...
8,987
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/guest-cam/producer.ts
import { MediasoupEntity } from './mediasoup-entity'; import uuid from 'uuid/v4'; import { Inject } from 'services/core'; import { SourceFiltersService, SourcesService, UserService } from 'app-services'; import { GuestCamService, TConnectParams } from '.'; import { EFilterDisplayType, TSourceFilterType } from 'services...
8,988
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/hardware/default-hardware.ts
import { PersistentStatefulService } from 'services/core/persistent-stateful-service'; import { EDeviceType, HardwareService } from './hardware'; import { Inject } from 'services/core/injector'; import { AudioService, E_AUDIO_CHANNELS } from 'services/audio'; import { SourcesService, ISourceAddOptions } from 'services/...
8,989
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/hardware/hardware.ts
import { mutation, StatefulService } from '../core/stateful-service'; import * as obs from '../../../obs-api'; import uuid from 'uuid/v4'; import { byOS, OS } from 'util/operating-systems'; import { Inject } from 'services/core'; import { UsageStatisticsService } from 'services/usage-statistics'; export enum EDeviceTy...
8,990
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/hardware/index.ts
export * from './hardware'; export * from './default-hardware';
8,991
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/highlighter/audio-crossfader.ts
import execa from 'execa'; import fs from 'fs'; import { FFMPEG_EXE } from './constants'; import { Clip } from './clip'; import { AudioMixError } from './errors'; export class AudioCrossfader { constructor( public readonly outputPath: string, public readonly clips: Clip[], public readonly transitionDurat...
8,992
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/highlighter/audio-mixer.ts
import execa from 'execa'; import fs from 'fs'; import { FFMPEG_EXE } from './constants'; import { AudioMixError } from './errors'; interface IAudioInput { path: string; volume: number; loop: boolean; } export class AudioMixer { constructor(public readonly outputPath: string, public readonly inputs: IAudioInp...
8,993
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/highlighter/audio-source.ts
import path from 'path'; import fs from 'fs'; import execa from 'execa'; import { FFMPEG_EXE } from './constants'; import { AudioReadError } from './errors'; /** * Extracts an audio file from a video file */ export class AudioSource { readonly outPath: string; constructor( public readonly sourcePath: string...
8,994
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/highlighter/clip.ts
import execa from 'execa'; import { FrameSource } from './frame-source'; import { AudioSource } from './audio-source'; import { FFPROBE_EXE } from './constants'; import fs from 'fs'; import { IExportOptions } from '.'; export class Clip { frameSource: FrameSource; audioSource: AudioSource; duration: number; ...
8,995
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/highlighter/compositor-2d.ts
import { IExportOptions } from '.'; /** * Performs 2d compositing on a frame. * Is slow and not currently used. */ export class Compositor2D { private canvas = document.createElement('canvas'); private ctx = this.canvas.getContext('2d')!; constructor(public readonly options: IExportOptions) { this.canvas...
8,996
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/highlighter/constants.ts
import path from 'path'; import Utils from 'services/utils'; import { getOS, OS } from 'util/operating-systems'; import * as remote from '@electron/remote'; export const FFMPEG_DIR = Utils.isDevMode() ? path.resolve('node_modules', 'obs-studio-node') : path.resolve(process.resourcesPath, 'app.asar.unpacked', 'node...
8,997
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/highlighter/create-transition.ts
// This code is taken from https://github.com/gre/gl-transition-libs/blob/master/packages/gl-transition/src/index.js // The original code is MIT licensed. // Modifications were made to support rendering upside down. // Modifications were also made to move off stack-gl/gl-shader. // It was also ported from flow to Types...
8,998
0
petrpan-code/stream-labs/desktop/app/services
petrpan-code/stream-labs/desktop/app/services/highlighter/errors.ts
import { $t } from 'services/i18n'; export abstract class HighlighterError extends Error { abstract get userMessage(): string; } export class FrameWriteError extends HighlighterError { get userMessage() { return $t('An error occurred while writing the video file'); } } export class FrameReadError extends H...
8,999