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 | petrpan-code/stream-labs/desktop/app/services/settings-v2/video.ts | import { debounce } from 'lodash-decorators';
import { Inject } from 'services/core/injector';
import { mutation, StatefulService } from '../core/stateful-service';
import { IVideoInfo, EScaleType, EFPSType, IVideo, VideoFactory, Video } from '../../../obs-api';
import { DualOutputService } from 'services/dual-output';... | 9,100 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/settings/index.ts | export * from './settings';
export * from './output';
| 9,101 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/settings/settings.ts | import cloneDeep from 'lodash/cloneDeep';
import { StatefulService, mutation, ViewHandler } from 'services/core/stateful-service';
import {
inputValuesToObsValues,
obsValuesToInputValues,
TObsFormData,
IObsListInput,
IObsInput,
TObsValue,
} from 'components/obs/inputs/ObsInput';
import * as obs from '../../... | 9,102 |
0 | petrpan-code/stream-labs/desktop/app/services/settings | petrpan-code/stream-labs/desktop/app/services/settings/output/index.ts | export * from './output-settings';
| 9,103 |
0 | petrpan-code/stream-labs/desktop/app/services/settings | petrpan-code/stream-labs/desktop/app/services/settings/output/output-settings.ts | import { Service } from 'services/core/service';
import { ISettingsSubCategory, SettingsService } from 'services/settings';
import { VideoSettingsService } from 'services/settings-v2/video';
import { HighlighterService } from 'services/highlighter';
import { Inject } from 'services/core/injector';
import { Dictionary }... | 9,104 |
0 | petrpan-code/stream-labs/desktop/app/services/settings | petrpan-code/stream-labs/desktop/app/services/settings/streaming/index.ts | export * from './stream-settings';
| 9,105 |
0 | petrpan-code/stream-labs/desktop/app/services/settings | petrpan-code/stream-labs/desktop/app/services/settings/streaming/stream-settings.ts | import { ISettingsSubCategory, SettingsService } from 'services/settings';
import { Inject } from 'services/core/injector';
import { InitAfter, mutation, PersistentStatefulService, ViewHandler } from '../../core';
import { UserService } from 'services/user';
import { TPlatform, getPlatformService } from 'services/platf... | 9,106 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/side-nav/index.ts | export * from './menu';
export * from './menu-data';
| 9,107 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/side-nav/menu-data.ts | import { TAppPage } from 'services/navigation';
import { $t } from 'services/i18n';
/**
* Update Menu Items
* 1. EMenuItemKey: Add/update/remove enum in EMenuItemKey.
* 2. Add string title to menuTitles.
* 3. Add an entry to SideNavMenuItems. Use the subMenuItems property to add submenu items from SideBarSubMenuIt... | 9,108 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/side-nav/menu.ts | import { ViewHandler, InitAfter, PersistentStatefulService, Inject } from 'services/core';
import { mutation } from 'services/core/stateful-service';
import {
UserService,
AppService,
DismissablesService,
LayoutService,
PlatformAppsService,
} from 'app-services';
import { ILoadedApp } from 'services/platform-... | 9,109 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/sources/index.ts | export * from './sources';
export * from './source';
export * from './sources-api';
export * from './sources-data';
| 9,110 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/sources/source.ts | import {
ISourceApi,
TSourceType,
ISource,
SourcesService,
TPropertiesManager,
ISourceComparison,
PROPERTIES_MANAGER_TYPES,
} from './index';
import { mutation, ServiceHelper, Inject, ExecuteInWorkerProcess } from 'services';
import { ScenesService } from 'services/scenes';
import { TObsFormData } from 'c... | 9,111 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/sources/sources-api.ts | import { IPropertyManager } from './properties-managers/properties-manager';
import { IObsListOption, TObsFormData } from 'components/obs/inputs/ObsInput';
import { WidgetType } from 'services/widgets';
import { Observable } from 'rxjs';
import { IAudioSource } from 'services/audio';
import { EDeinterlaceFieldOrder, ED... | 9,112 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/sources/sources-data.ts | import { ISourceDisplayData } from './index';
import { $t } from 'services/i18n';
const imageSupport = ['png', 'jpg', 'jpeg', 'gif', 'tga', 'bmp'];
const mediaSupport = [
'mp4',
'ts',
'mov',
'flv',
'mkv',
'avi',
'mp3',
'ogg',
'aac',
'wav',
'gif',
'webm',
];
const colorSupport = ['Hex', 'RGBA', ... | 9,113 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/sources/sources.ts | import * as fs from 'fs';
import Vue from 'vue';
import { Subject } from 'rxjs';
import cloneDeep from 'lodash/cloneDeep';
import { IObsListOption, TObsValue, IObsListInput } from 'components/obs/inputs/ObsInput';
import { mutation, StatefulService, ViewHandler } from 'services/core/stateful-service';
import * as obs f... | 9,114 |
0 | petrpan-code/stream-labs/desktop/app/services/sources | petrpan-code/stream-labs/desktop/app/services/sources/properties-managers/default-manager.ts | import { PropertiesManager } from './properties-manager';
import { Inject } from 'services/core/injector';
import { MediaBackupService } from 'services/media-backup';
import * as fi from 'node-fontinfo';
import { FontLibraryService } from 'services/font-library';
import { EFontStyle } from 'obs-studio-node';
import fs ... | 9,115 |
0 | petrpan-code/stream-labs/desktop/app/services/sources | petrpan-code/stream-labs/desktop/app/services/sources/properties-managers/icon-library-manager.ts | import { DefaultManager, IDefaultManagerSettings } from './default-manager';
interface IIconLibraryManagerSettings extends IDefaultManagerSettings {
folder: string;
activeIcon: string;
}
export class IconLibraryManager extends DefaultManager {
settings: IIconLibraryManagerSettings;
applySettings(settings: Dic... | 9,116 |
0 | petrpan-code/stream-labs/desktop/app/services/sources | petrpan-code/stream-labs/desktop/app/services/sources/properties-managers/platform-app-manager.ts | import { Subscription } from 'rxjs';
import { PropertiesManager } from './properties-manager';
import { Inject } from 'services/core/injector';
import * as obs from '../../../../obs-api';
import { PlatformAppsService } from 'services/platform-apps';
import { TransitionsService } from 'services/transitions';
export int... | 9,117 |
0 | petrpan-code/stream-labs/desktop/app/services/sources | petrpan-code/stream-labs/desktop/app/services/sources/properties-managers/properties-manager.ts | import * as input from 'components/obs/inputs/ObsInput';
import * as obs from '../../../../obs-api';
import compact from 'lodash/compact';
import { Inject } from 'services/core';
import { SourcesService } from 'services/sources';
/**
* This is the interface that the rest of the app uses
* to interact with property m... | 9,118 |
0 | petrpan-code/stream-labs/desktop/app/services/sources | petrpan-code/stream-labs/desktop/app/services/sources/properties-managers/replay-manager.ts | import { PropertiesManager } from './properties-manager';
import { Inject } from 'services/core/injector';
import { StreamingService } from 'services/streaming';
export class ReplayManager extends PropertiesManager {
@Inject() streamingService: StreamingService;
get denylist() {
return ['is_local_file', 'loca... | 9,119 |
0 | petrpan-code/stream-labs/desktop/app/services/sources | petrpan-code/stream-labs/desktop/app/services/sources/properties-managers/streamlabels-manager.ts | import { DefaultManager, IDefaultManagerSettings } from './default-manager';
import { Inject } from 'services/core/injector';
import { StreamlabelsService } from 'services/streamlabels';
import { UserService } from 'services/user';
import { byOS, OS } from 'util/operating-systems';
import { Subscription } from 'rxjs';
... | 9,120 |
0 | petrpan-code/stream-labs/desktop/app/services/sources | petrpan-code/stream-labs/desktop/app/services/sources/properties-managers/widget-manager.ts | import { PropertiesManager } from './properties-manager';
import { Inject } from 'services/core/injector';
import { WidgetsService, WidgetType } from 'services/widgets';
export interface IWidgetManagerSettings {
widgetType: WidgetType;
}
/**
* This properties manager is designed to wrap a browser
* source and all... | 9,121 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/streaming/index.ts | export * from './streaming';
export * from './streaming-api';
export * from './streaming-view';
| 9,122 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/streaming/stream-error.ts | import { ServiceHelper } from 'services/core';
import { getPlatformService, TPlatform } from '../platforms';
import { $t } from 'services/i18n';
import { Services } from '../../components-react/service-provider';
import { platform } from 'os';
export const errorTypes = {
PLATFORM_REQUEST_FAILED: {
get message() ... | 9,123 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/streaming/streaming-api.ts | import { Observable } from 'rxjs';
import { IEncoderProfile } from '../video-encoding-optimizations';
import { ITwitchStartStreamOptions } from '../platforms/twitch';
import { IYoutubeStartStreamOptions } from '../platforms/youtube';
import { IFacebookStartStreamOptions } from '../platforms/facebook';
import { IStreamE... | 9,124 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/streaming/streaming-view.ts | import { ViewHandler } from '../core';
import {
IGoLiveSettings,
IStreamSettings,
EStreamingState,
ERecordingState,
EReplayBufferState,
} from './streaming-api';
import { StreamSettingsService, ICustomStreamDestination } from '../settings/streaming';
import { UserService } from '../user';
import { RestreamSer... | 9,125 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/streaming/streaming.ts | import Vue from 'vue';
import { mutation, StatefulService } from 'services/core/stateful-service';
import { EOutputCode, Global, NodeObs } from '../../../obs-api';
import { Inject } from 'services/core/injector';
import moment from 'moment';
import padStart from 'lodash/padStart';
import { IOutputSettings, OutputSettin... | 9,126 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/streamlabels/index.ts | import { mutation, StatefulService } from 'services/core/stateful-service';
import { UserService } from 'services/user';
import { Inject } from 'services/core/injector';
import { HostsService } from 'services/hosts';
import { authorizedHeaders, handleResponse, jfetch } from 'util/requests';
import { TSocketEvent, Webso... | 9,127 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/troubleshooter/index.ts | export * from './troubleshooter';
export * from './troubleshooter-api';
| 9,128 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/troubleshooter/troubleshooter-api.ts | import { TObsFormData } from 'components/obs/inputs/ObsInput';
export interface ITroubleshooterSettings {
skippedEnabled: boolean;
skippedThreshold: number;
laggedEnabled: boolean;
laggedThreshold: number;
droppedEnabled: boolean;
droppedThreshold: number;
}
export type TIssueCode = 'FRAMES_LAGGED' | 'FRA... | 9,129 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/troubleshooter/troubleshooter.ts | import { mutation } from '../core/stateful-service';
import { PersistentStatefulService } from 'services/core/persistent-stateful-service';
import { IObsInput, IObsNumberInputValue, TObsFormData } from 'components/obs/inputs/ObsInput';
import {
ITroubleshooterServiceApi,
ITroubleshooterSettings,
TIssueCode,
} fro... | 9,130 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/user/auth-module.ts | import { TPlatform, EPlatformCallResult, getPlatformService } from 'services/platforms';
import { IUserAuth } from '.';
import uuid from 'uuid/v4';
import electron from 'electron';
import defer from 'lodash/defer';
import URI from 'urijs';
import http from 'http';
import Utils from 'services/utils';
import * as remote ... | 9,131 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/user/index.ts | import Vue from 'vue';
import { PersistentStatefulService } from 'services/core/persistent-stateful-service';
import { handleResponse, authorizedHeaders, jfetch } from 'util/requests';
import { mutation } from 'services/core/stateful-service';
import { Service, Inject, ViewHandler } from 'services/core';
import electro... | 9,132 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/video-encoding-optimizations/definitions.ts | import { EEncoderFamily } from 'services/settings';
export interface IEncoderProfile {
game: string;
encoder: EEncoderFamily;
bitrateMin: number;
bitrateMax: number;
presetIn: string;
presetOut: string;
resolutionIn: string;
resolutionOut: string;
options: string;
description?: string;
}
| 9,133 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/video-encoding-optimizations/index.ts | export * from './video-encoding-optimizations';
export * from './definitions';
| 9,134 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/video-encoding-optimizations/video-encoding-optimizations.ts | import {
SettingsService,
OutputSettingsService,
IStreamingEncoderSettings,
EEncoderFamily,
} from 'services/settings';
import { UserService } from 'services/user';
import { StreamingService, EStreamingState } from 'services/streaming';
import { Inject, mutation, PersistentStatefulService } from 'services/core'... | 9,135 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/widgets/alerts-config.ts | import { $t } from '../i18n';
import { TPlatform } from '../platforms';
export type TAlertType =
| 'donation'
| 'trSubscription'
| 'trFollow'
| 'trRaid'
| 'twSubscription'
| 'twFollow'
| 'twCheer'
| 'fbFollow'
| 'fbSupport'
| 'fbStars'
| 'fbLike'
| 'fbShare'
| 'fbSupportGift'
| 'twHost'
| ... | 9,136 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/widgets/index.ts | export * from './widgets-api';
export * from './widgets';
export * from './widgets-data';
export * from './widget-source';
export * from './settings/widget-settings';
| 9,137 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/widgets/widget-source.ts | import { ServiceHelper, Inject, mutation } from 'services';
import { Source, SourcesService } from 'services/sources';
import { WidgetsService } from './widgets';
import { IWidgetSource, WidgetType, IWidgetData } from './index';
import { WidgetSettingsService } from 'services/widgets';
import Utils from '../utils';
@S... | 9,138 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/widgets/widgets-api.ts | import { TPlatform } from '../platforms';
import { AnchorPoint } from 'util/ScalableRectangle';
import { WidgetType } from './widgets-data';
import { ISourceApi } from 'services/sources';
import { IAlertBoxVariation } from './settings/alert-box/alert-box-api';
export interface ISerializableWidget {
name: string;
t... | 9,139 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/widgets/widgets-config.ts | import { AnchorPoint } from '../../util/ScalableRectangle';
import { TAlertType } from './alerts-config';
import { WidgetType } from './widgets-data';
export type TWidgetType =
| WidgetType.AlertBox
| WidgetType.ViewerCount
| WidgetType.GameWidget
| WidgetType.EmoteWall
| WidgetType.DonationTicker
| Widget... | 9,140 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/widgets/widgets-data.ts | import { IWidgetTester, IWidget } from './widgets-api';
import { AnchorPoint } from 'util/ScalableRectangle';
import { $t } from 'services/i18n';
export interface IWidgetDisplayData {
name: string;
description: string;
platforms?: Set<string>;
demoVideo: boolean;
demoFilename: string;
supportList: string[]... | 9,141 |
0 | petrpan-code/stream-labs/desktop/app/services | petrpan-code/stream-labs/desktop/app/services/widgets/widgets.ts | import { Inject } from 'services/core/injector';
import { UserService } from '../user';
import { ScenesService, SceneItem, Scene } from '../scenes';
import { SourcesService } from '../sources';
import { HostsService } from '../hosts';
import { ScalableRectangle } from 'util/ScalableRectangle';
import namingHelpers from... | 9,142 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/base-goal.ts | import { IWidgetApiSettings, IWidgetData, WidgetSettingsService } from 'services/widgets';
import { InheritMutations } from 'services/core/stateful-service';
import { handleResponse } from 'util/requests';
interface IBaseGoalData extends IWidgetData {
goal: Dictionary<any>;
}
interface IGoalWidgetApiSettings extend... | 9,143 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/bit-goal.ts | import { GenericGoalService } from './generic-goal';
import { WidgetDefinitions, WidgetType } from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
@InheritMutations()
export class BitGoalService extends GenericGoalService ... | 9,144 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/charity-goal.ts | import { GenericGoalService } from './generic-goal';
import { WidgetDefinitions, WidgetType } from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
@InheritMutations()
export class CharityGoalService extends GenericGoalServ... | 9,145 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/chat-highlight-script.js | // Sends relevant data to the SLOBS ChatHighlightService
function sendPinRequest(messageData) {
console.log('SLOBS - Sending Pin Request', messageData);
streamlabsOBS.pinMessage(messageData); // eslint-disable-line no-undef
}
// Sends relevant data to the SLOBS ChatHighlightService
function sendUnpinRequest() {
... | 9,146 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/chat-highlight.ts | import uuid from 'uuid/v4';
import { Subject } from 'rxjs';
import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
impor... | 9,147 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/credits.ts | import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
import { authorizedHeaders } from 'util/requests';
import { formM... | 9,148 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/donation-goal.ts | import { GenericGoalService } from './generic-goal';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { WidgetDefinitions, WidgetType } from 'services/widgets';
import { InheritMutations } from 'services/core/stateful-service';
@InheritMutations()
export class DonationGoalService extends GenericGoalSer... | 9,149 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/donation-ticker.ts | import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
export interface IDonationTickerSettings extends IWidgetSettings... | 9,150 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/emote-wall.ts | import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
import { formMetadata, metadata } from 'components/shared/inputs'... | 9,151 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/event-list.ts | import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { metadata } from 'components/widgets/inputs/index';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
impor... | 9,152 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/follower-goal.ts | import { GenericGoalService } from './generic-goal';
import { WidgetDefinitions, WidgetType } from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
@InheritMutations()
export class FollowerGoalService extends GenericGoalSer... | 9,153 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/generic-goal.ts | import { IWidgetData } from 'services/widgets';
import { formMetadata, metadata } from 'components/shared/inputs/index';
import { $t } from 'services/i18n';
import { BaseGoalService } from './base-goal';
import { InheritMutations } from 'services/core/stateful-service';
export interface IGoalData extends IWidgetData {... | 9,154 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/media-share.ts | import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WIDGET_INITIAL_STATE,
} from '../index';
import { WidgetType } from 'services/widgets';
import { InheritMutations } from 'services/core/stateful-service';
import { $t } from 'services/i18n';
import { metadata } from 'components/w... | 9,155 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/poll.ts | import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
import { formMetadata, metadata } from 'components/shared/inputs'... | 9,156 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/spin-wheel.ts | import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
import { $t } from 'services/i18n';
import { formMetadata, IListO... | 9,157 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/sponsor-banner.ts | import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
export interface ISponsorBannerSettings extends IWidgetSettings ... | 9,158 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/stars-goal.ts | import { GenericGoalService } from './generic-goal';
import { WidgetDefinitions, WidgetType } from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
@InheritMutations()
export class StarsGoalService extends GenericGoalServic... | 9,159 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/stream-boss.ts | import { WIDGET_INITIAL_STATE } from './widget-settings';
import { IWidgetData, IWidgetSettings, WidgetDefinitions, WidgetType } from 'services/widgets';
import { $t } from 'services/i18n';
import { metadata } from 'components/widgets/inputs/index';
import { InheritMutations } from 'services/core/stateful-service';
imp... | 9,160 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/sub-goal.ts | import { GenericGoalService } from './generic-goal';
import { WidgetDefinitions, WidgetType } from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
@InheritMutations()
export class SubGoalService extends GenericGoalService ... | 9,161 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/subscriber-goal.ts | import { GenericGoalService } from './generic-goal';
import { WidgetDefinitions, WidgetType } from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
@InheritMutations()
export class SubscriberGoalService extends GenericGoalS... | 9,162 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/superchat-goal.ts | import { GenericGoalService } from './generic-goal';
import { WidgetDefinitions, WidgetType } from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
@InheritMutations()
export class SuperchatGoalService extends GenericGoalSe... | 9,163 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/supporter-goal.ts | import { GenericGoalService } from './generic-goal';
import { WidgetDefinitions, WidgetType } from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
@InheritMutations()
export class SupporterGoalService extends GenericGoalSe... | 9,164 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/tip-jar.ts | import {
IWidgetData,
IWidgetSettings,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { WIDGET_INITIAL_STATE } from './widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
interface ITipDarTierData {
clear_image: string;
image_src: ... | 9,165 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets | petrpan-code/stream-labs/desktop/app/services/widgets/settings/widget-settings.ts | import cloneDeep from 'lodash/cloneDeep';
import { HostsService } from 'services/hosts';
import { Inject } from '../../core/injector';
import { UserService, LoginLifecycle } from 'services/user';
import { handleResponse, authorizedHeaders } from '../../../util/requests';
import {
IWidgetApiSettings,
IWidgetData,
... | 9,166 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets/settings | petrpan-code/stream-labs/desktop/app/services/widgets/settings/alert-box/alert-box-api.ts | import { IWidgetSettings } from '../../widgets-api';
// GENERAL SETTINGS
interface IAlertBoxGeneralSettings extends IWidgetSettings {
alert_delay: number;
auto_host_enabled: boolean;
background_color: string;
layout: string;
prime_sub_enabled: boolean;
moderation_delay: number;
unlimited_media_moderation... | 9,167 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets/settings | petrpan-code/stream-labs/desktop/app/services/widgets/settings/alert-box/alert-box-data.ts | import uuid from 'uuid/v4';
import { IAlertBoxVariation } from './alert-box-api';
import { $t } from 'services/i18n';
import { metadata } from 'components/widgets/inputs';
export const API_NAME_MAP = {
bit: 'bits',
donation: 'donations',
donordrivedonation: 'donordrive',
pledge: 'patreon',
eldonation: 'extra... | 9,168 |
0 | petrpan-code/stream-labs/desktop/app/services/widgets/settings | petrpan-code/stream-labs/desktop/app/services/widgets/settings/alert-box/index.ts | import uuid from 'uuid/v4';
import {
IWidgetData,
WidgetDefinitions,
WidgetSettingsService,
WidgetType,
} from 'services/widgets';
import { WIDGET_INITIAL_STATE } from '../widget-settings';
import { InheritMutations } from 'services/core/stateful-service';
import {
IAlertBoxApiSettings,
IAlertBoxSetting,
... | 9,169 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/store/index.ts | import Vue from 'vue';
import Vuex, { Store } from 'vuex';
import each from 'lodash/each';
import electron from 'electron';
import { getModule, StatefulService } from '../services/core/stateful-service';
import { ServicesManager } from '../services-manager';
import { IMutation } from 'services/api/jsonrpc';
import Util... | 9,170 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/_variables.less | @0: 0;
// Margins, paddings
@spacing: 8px;
// Border radius
@radius: 4px;
// Font weights
@normal: 400;
@medium: 500;
@bold: 700;
// Text aligns
@left: left;
@right: right;
@center: center;
// Text transforms
@capitalize: capitalize;
@uppercase: uppercase;
// Timings
@transition-time: 200ms;
| 9,171 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/animations.less |
/*SLIDE DOWN*/
.slidedown-enter {
opacity: 0;
animation-duration: .5s;
animation-fill-mode: both;
animation-timing-function: cubic-bezier(0.55, 0, 0.55, 0.2);
animation-play-state: paused;
}
.slidedown-appear {
opacity: 0;
animation-duration: .5s;
animation-fill-mode: both;
animation-timing-functio... | 9,172 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/badges.less | .badge {
.radius();
font-size: 12px;
margin: 0 0 0 8px;
padding: 0 4px;
vertical-align: text-bottom;
border: 1px solid transparent;
line-height: 16px;
font-weight: 500;
display: inline-block;
}
.badge--new {
background: var(--new-badge);
color: var(--new-badge-text);
}
| 9,173 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/buttons.less | button {
cursor: pointer;
}
.button {
.radius();
.weight(@medium);
.padding-h-sides();
.padding-v-sides(@0);
border: 1px solid transparent;
margin: 0;
font-family: 'Roboto', sans-serif;
min-height: 32px;
line-height: 30px;
cursor: pointer;
background-color: var(--button);
&:focus,
&:visit... | 9,174 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/checkboxes.less | .checkbox {
position: relative;
display: inline-block;
width: 100%;
backface-visibility: hidden;
outline: 0;
vertical-align: baseline;
font-style: normal;
min-height: 16px;
line-height: 16px;
min-width: 16px;
.margin-bottom();
label {
.weight(@normal);
margin: 0;
line-height: 16px;... | 9,175 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/classes.less | .flex {
display: flex;
}
.flex--center {
align-items: center;
justify-content: center;
}
.flex--wrap {
flex-wrap: wrap;
}
.flex--space-between {
justify-content: space-between;
}
.flex--justify-start {
justify-content: flex-start;
}
.flex--justify-end {
justify-content: flex-end;
}
.flex--align-star... | 9,176 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/colors.less | // LESS Color Varaibles -- DO NOT REFERENCE DIRECTLY
// Brand colors-- postfix indicates with which type of UI the color should be used with
@teal-dark: #80F5D2;
@teal-light: #128079;
@red-dark: #F85640;
@red-light: #B14334;
@yellow-dark: #E3973E;
@yellow-light: #A96311;
@blue-dark: #36ADE0;
@blue-light: #2B5BD7;
@pin... | 9,177 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/custom-icons.less | @font-face {
font-family: 'icomoon';
src: url('../../media/fonts/icomoon.woff') format('woff');
font-weight: normal;
font-style: normal;
}
[class^='icon-'],
[class*=' icon-'] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'icomoon' !important;
speak: neve... | 9,178 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/foundation.less | // TODO: fully remove Foundation after migration to Antd
// most of styles from Foundation framework are already deleted
// keep only the grid system here
.row {
max-width: 75rem;
margin-left: auto;
margin-right: auto
}
.row:after,
.row:before {
content: ' ';
display: table
}
.row:after {
clear: both
}
... | 9,179 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/index.less | @import "./_variables";
@import "./mixins";
| 9,180 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/inputs.less | @import 'mixins';
.input-container {
.margin-bottom(2);
position: relative;
display: flex;
align-items: flex-start;
&.input-container--no-label {
width: 100%;
.input-label {
display: none;
}
.input-wrapper {
width: 100%;
}
}
&.input-container--no-margin {
margin-b... | 9,181 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/loader.less | @import "./mixins.less";
.s-loader__bg {
position: relative;
box-sizing: border-box;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: var(--background);
z-index: 999;
display: flex;
justify-content: space-between;
align-items: center;
&.s-loader--fixed {
position: fixed;
}
}
.s-lo... | 9,182 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/mixins.less | // Positioning
.absolute(
@top: auto,
@right: auto,
@bottom: auto,
@left: auto
) {
display: block;
position: absolute;
top: @top;
right: @right;
bottom: @bottom;
left: @left;
}
.center() {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.flex() {
display: flex;
}
.f... | 9,183 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/sl-vue-tree.less | .vue-tree-container {
flex-grow: 1;
height: 100%;
border-color: var(--section);
background: var(--section);
.radius(1);
overflow: hidden;
}
.sl-vue-tree-toggle {
.margin-right();
width: 16px !important;
display: inline-block;
i {
font-size: 7px;
text-align: center;
}
}
.sl-vue-tree.sl-... | 9,184 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/tables.less | table {
color: var(--paragraph);
thead {
background: transparent;
border: 1px solid transparent;
}
tbody {
border: none;
background-color: transparent;
tr {
&:nth-child(odd) {
background-color: var(--solid-input);
border: 0;
}
&:nth-child(even) {
... | 9,185 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/styles/tooltips.less | // TOOLTIPS
.tooltip-trigger {
color: var(--icon);
margin: 0 10px;
opacity: 0.6;
}
.tooltip {
display: block !important;
z-index: 10000;
background: transparent;
border: 0;
padding: 0;
&::before {
border: 0;
}
}
.tooltip .tooltip-inner {
.border();
.shadow();
.radius();
background: ... | 9,186 |
0 | petrpan-code/stream-labs/desktop/app/styles | petrpan-code/stream-labs/desktop/app/styles/antd/antd.less | // THEME INDEPENDENT STYLES
html {
height: 100%;
}
body {
font-family: 'Roboto', sans-serif;
font-size: 14px;
overflow: hidden;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
background-color: var(--background);
}
#mainWrapper .react {
// justify all inputs of form to the right in the modal fo... | 9,187 |
0 | petrpan-code/stream-labs/desktop/app/styles | petrpan-code/stream-labs/desktop/app/styles/antd/day-theme.lazy.less | @import '~antd/dist/antd.less';
@import '../colors';
@import './antd.less';
// ANTD COLOR MAPPING
@primary-color: @teal-light; // var(--teal)
@info-color: @yellow-light; // var(--info)
@success-color: @teal-light; // var(--teal)
@processing-color: @teal-light; // var(--teal)
@error-color: @red-light; // var(--warning)... | 9,188 |
0 | petrpan-code/stream-labs/desktop/app/styles | petrpan-code/stream-labs/desktop/app/styles/antd/index.ts | import antdNightTheme from './night-theme.lazy.less';
import antdDayTheme from './day-theme.lazy.less';
import antdPrimeDark from './prime-dark.lazy.less';
import antdPrimeLight from './prime-light.lazy.less';
export default {
['night-theme']: antdNightTheme,
['day-theme']: antdDayTheme,
['prime-dark']: antdPrim... | 9,189 |
0 | petrpan-code/stream-labs/desktop/app/styles | petrpan-code/stream-labs/desktop/app/styles/antd/night-theme.lazy.less | @import '~antd/dist/antd.dark.less';
@import '../colors';
@import './antd.less';
// ANTD COLOR MAPPING
@primary-color: @teal-dark; // var(--teal)
@info-color: @yellow-dark; // var(--info)
@success-color: @teal-dark; // var(--teal)
@processing-color: @teal-dark; // var(--teal)
@error-color: @red-dark; // var(--warning)... | 9,190 |
0 | petrpan-code/stream-labs/desktop/app/styles | petrpan-code/stream-labs/desktop/app/styles/antd/prime-dark.lazy.less | @import '~antd/dist/antd.dark.less';
@import '../colors';
@import './antd.less';
// ANTD COLOR MAPPING
@primary-color: @prime-dark; // var(--teal)
@info-color: @prime-dark; // var(--info)
@success-color: @prime-dark; // var(--teal)
@processing-color: @prime-dark; // var(--teal)
@error-color: @red-dark; // var(--warni... | 9,191 |
0 | petrpan-code/stream-labs/desktop/app/styles | petrpan-code/stream-labs/desktop/app/styles/antd/prime-light.lazy.less | @import '~antd/dist/antd.less';
@import '../colors';
@import './antd.less';
// ANTD COLOR MAPPING
@primary-color: @prime-light; // var(--teal)
@info-color: @prime-light; // var(--info)
@success-color: @prime-light; // var(--teal)
@processing-color: @prime-light; // var(--teal)
@error-color: @red-light; // var(--warnin... | 9,192 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/util/DragHandler.ts | import { SettingsService } from 'services/settings';
import { Inject } from 'services/core/injector';
import { SceneItem } from 'services/scenes';
import { VideoService } from 'services/video';
import { WindowsService } from 'services/windows';
import { DualOutputService } from 'services/dual-output';
import { Scalable... | 9,193 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/util/FrameRate.js | // Utility functions for working with frame rate values
export default {
rationalToFrameInterval(rational) {
return rational.denominator / rational.numerator;
},
rationalToFramesPerSecond(rational) {
return rational.numerator / rational.denominator;
},
// Operates on rational values. Determines if ... | 9,194 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/util/NamingHelpers.ts | // Helper functions for naming things
export default {
// Used for suggesting a name based on a starting name
// and a function that determines if it is already taken.
suggestName(name: string, isTaken: (name: string) => any): string {
if (isTaken(name)) {
const match = name.match(/.*\(([0-9]+)\)$/);
... | 9,195 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/util/ScalableRectangle.ts | import get from 'lodash/get';
import set from 'lodash/set';
import invert from 'lodash/invert';
import { Rect } from './rect';
import { v2, Vec2 } from './vec2';
// This class is used for simplifying math that deals
// with rectangles that can be scaled, including
// negative scales.
export enum AnchorPoint {
North... | 9,196 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/util/get-shared-resource.ts | import Utils from 'services/utils';
import path from 'path';
import * as remote from '@electron/remote';
/**
* Returns a fully qualified path to an asset in the shared-resources
* folder. This path can be used by both the frontend and backend and
* works in development and in production.
*/
export function getShar... | 9,197 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/util/guest-api-handler.ts | import electron from 'electron';
import { Subscription, Observable } from 'rxjs';
import uuid from 'uuid/v4';
import * as remote from '@electron/remote';
/**
* Shared message interchange format
*/
export interface IGuestApiRequest {
id: string;
webContentsId: number;
methodPath: string[];
args: any[];
}
/**... | 9,198 |
0 | petrpan-code/stream-labs/desktop/app | petrpan-code/stream-labs/desktop/app/util/lazy-module.ts | export function lazyModule(module: any) {
return function (target: Object, key: string) {
const objectKey = `_${key}`;
Object.defineProperty(target, key, {
get: () => {
if (!target[objectKey]) target[objectKey] = new module();
return target[objectKey];
},
});
};
}
| 9,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.