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/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/Optimize.tsx | import { useModule } from 'slap';
import { Services } from 'components-react/service-provider';
import AutoProgressBar from 'components-react/shared/AutoProgressBar';
import React, { useState } from 'react';
import { IConfigProgress } from 'services/auto-config';
import { $t } from 'services/i18n';
import commonStyles ... | 6,900 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/PrimaryPlatformSelect.tsx | import React, { useEffect, useState } from 'react';
import { TPlatform } from 'services/platforms';
import { useModule } from 'slap';
import { LoginModule } from './Connect';
import styles from './Connect.m.less';
import cx from 'classnames';
import PlatformLogo from 'components-react/shared/PlatformLogo';
import commo... | 6,901 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/Prime.tsx | import { useModule } from 'slap';
import React from 'react';
import { $t } from 'services/i18n';
import commonStyles from './Common.m.less';
import { OnboardingModule } from './Onboarding';
import { Services } from 'components-react/service-provider';
import { useWatchVuex } from 'components-react/hooks';
import { Ultr... | 6,902 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/StreamingOrRecording.m.less | @import "../../../styles/index";
@import '../../../styles/badges';
.title-container {
position: absolute;
top: 15%;
left: 40px;
width: 650px;
text-align: center;
}
.title {
font-size: 48px;
}
.subtitle {
font-size: 14px;
color: var(--paragraph);
}
.option-container {
display: flex;
justify-conte... | 6,903 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/StreamingOrRecording.tsx | import { Button } from 'antd';
import React, { useState } from 'react';
import { $t } from 'services/i18n';
import { $i } from 'services/utils';
import styles from './StreamingOrRecording.m.less';
import { OnboardingModule } from './Onboarding';
import cx from 'classnames';
import { confirmAsync } from 'components-reac... | 6,904 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/ThemeSelector.m.less | @import "../../../styles/index";
.container {
display: grid;
gap: 24px 24px;
grid-template-columns: auto auto auto;
grid-template-rows: auto auto;
grid-auto-flow: row;
margin: 40px;
width: calc(100% - 80px);
overflow: hidden;
img, video {
object-fit: cover;
width: 100%;
max-height: 100%;... | 6,905 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/ThemeSelector.tsx | import { Services } from 'components-react/service-provider';
import React, { useState } from 'react';
import { $t } from 'services/i18n';
import { IThemeMetadata } from 'services/onboarding';
import commonStyles from './Common.m.less';
import styles from './ThemeSelector.m.less';
import cx from 'classnames';
import { ... | 6,906 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/onboarding/steps.ts | export * from './MacPermissions';
export * from './Connect';
export * from './PrimaryPlatformSelect';
export * from './FreshOrImport';
export * from './ObsImport';
export * from './HardwareSetup';
export * from './ThemeSelector';
export * from './Optimize';
export * from './Prime';
export * from './StreamingOrRecording... | 6,907 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/stream-scheduler/StreamScheduler.m.less | @import "../../../styles/index.less";
// the Foundation library interferes with some calendar styles
// so we need to add some css fixes here
.stream-scheduler-page {
// fixes for Scrollable
:global(.os-content-glue) {
width: 100% !important;
height: 100% !important;
}
width: 100%;
padding: 8px;
... | 6,908 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/stream-scheduler/StreamScheduler.tsx | import React, { MouseEvent, useEffect, useMemo } from 'react';
import moment, { Moment } from 'moment';
import css from './StreamScheduler.m.less';
import cx from 'classnames';
import { Button, Calendar, Modal, Row, Col, Spin } from 'antd';
import { YoutubeEditStreamInfo } from '../../windows/go-live/platforms/YoutubeE... | 6,909 |
0 | petrpan-code/stream-labs/desktop/app/components-react/pages | petrpan-code/stream-labs/desktop/app/components-react/pages/stream-scheduler/useStreamScheduler.tsx | import cloneDeep from 'lodash/cloneDeep';
import { Services } from '../../service-provider';
import {
FacebookService,
IFacebookLiveVideo,
IFacebookLiveVideoExtended,
IFacebookStartStreamOptions,
IFacebookUpdateVideoOptions,
TDestinationType,
} from '../../../services/platforms/facebook';
import { FormInsta... | 6,910 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/Banner.m.less | .banner-container {
height: 48px;
width: 100%;
background: var(--section);
display: flex;
justify-content: flex-start;
align-items: center;
padding: 16px;
span, strong {
margin-left: 16px;
}
.close {
text-decoration: underline;
margin-left: auto;
margin-right: 16px;
&:hover {
... | 6,911 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/Banner.tsx | import React from 'react';
import * as remote from '@electron/remote';
import { useVuex } from 'components-react/hooks';
import { Services } from 'components-react/service-provider';
import { TAppPage } from 'services/navigation';
import { $t } from 'services/i18n';
import styles from './Banner.m.less';
export default... | 6,912 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/Chat.m.less | @import '../../styles/index';
.chat {
.flex--grow();
overflow: hidden; // webview content can affect external UI without this rule
object {
width: 100%;
}
}
| 6,913 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/Chat.tsx | import * as remote from '@electron/remote';
import React, { useEffect, useRef } from 'react';
import { Services } from '../service-provider';
import styles from './Chat.m.less';
import { OS, getOS } from '../../util/operating-systems';
import { onUnload } from 'util/unload';
export default function Chat(props: { restr... | 6,914 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/NotificationsArea.m.less | @import '../../styles/index';
.notifications-area {
overflow: hidden;
min-width: 50px;
display: flex;
align-items: center;
justify-content: flex-start;
}
.notifications__container {
position: relative;
height: 30px;
:global(.ant-message) {
position: relative;
height: 30px;
top: 0;
}
}
... | 6,915 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/NotificationsArea.tsx | import React, { useState, useEffect, useRef } from 'react';
import { useModule } from 'slap';
import { Badge, message, Tooltip } from 'antd';
import moment from 'moment';
import cx from 'classnames';
import cloneDeep from 'lodash/cloneDeep';
import { Services } from '../service-provider';
import { ENotificationType, IN... | 6,916 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/ReactRoot.tsx | import React from 'react';
import { createApp, Dict, inject, ReactModules, Store, TAppContext } from 'slap';
import { getResource, StatefulService } from '../../services';
import { AppServices } from '../../app-services';
/**
* This module adds reactivity support from Vuex
* It ensures that React components will be ... | 6,917 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/StartStreamingButton.tsx | import React, { useEffect, useState } from 'react';
import cx from 'classnames';
import { EStreamingState } from 'services/streaming';
import { EGlobalSyncStatus } from 'services/media-backup';
import { $t } from 'services/i18n';
import { useVuex } from '../hooks';
import { Services } from '../service-provider';
import... | 6,918 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/StudioEditor.m.less | @import '../../styles/index';
.main-container {
height: 100%;
}
.studio-editor-display-container {
position: relative;
flex-grow: 1;
background-color: var(--section);
.display {
position: absolute;
width: 100%;
height: 100%;
}
}
.studio-mode-container {
flex-grow: 1;
display: flex;
fle... | 6,919 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/StudioEditor.tsx | import { useVuex } from 'components-react/hooks';
import React, { useEffect, useMemo, useRef, useState } from 'react';
import styles from './StudioEditor.m.less';
import { Services } from 'components-react/service-provider';
import cx from 'classnames';
import Display from 'components-react/shared/Display';
import { $t... | 6,920 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/StudioFooter.m.less | @import '../../styles/index';
.footer {
.padding-h-sides(2);
.padding-v-sides();
display: flex;
justify-content: space-between;
flex-direction: row;
align-items: center;
position: relative;
background-color: var(--section);
max-width: none;
overflow-x: auto;
overflow-y: hidden;
flex-grow: 1;
... | 6,921 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/StudioFooter.tsx | import React, { useState, useEffect } from 'react';
import cx from 'classnames';
import { EStreamQuality } from '../../services/performance';
import { EStreamingState, EReplayBufferState, ERecordingState } from '../../services/streaming';
import { Services } from '../service-provider';
import { $t } from '../../service... | 6,922 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/root/TestWidgets.tsx | import React, { useState, useMemo } from 'react';
import Animation from 'rc-animate';
import { Services } from '../service-provider';
import { $t } from '../../services/i18n';
export default function TestWidgets(p: { testers?: string[] }) {
const { WidgetsService } = Services;
const [slideOpen, setSlideOpen] = us... | 6,923 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/AddDestinationButton.m.less | @import '../../styles/index.less';
.add-destination-group {
gap: 15px;
margin: 15px;
padding-bottom: 15px;
:global(.ant-space-item) {
width: 100%;
}
:global(.ant-space) {
width: 100%;
}
button.add-destination-btn {
width: 100%;
flex-direction: row;
justify-content: center;
al... | 6,924 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/AddDestinationButton.tsx | import React, { CSSProperties } from 'react';
import { $t } from 'services/i18n';
import { Services } from 'components-react/service-provider';
import { useGoLiveSettings } from 'components-react/windows/go-live/useGoLiveSettings';
import { Button } from 'antd';
import { ButtonGroup } from 'components-react/shared/Butt... | 6,925 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/AutoProgressBar.tsx | import { Progress } from 'antd';
import React, { useEffect, useState } from 'react';
/**
* A progress bar that automatically increments itself in the
* absence of progress updates.
* @param p.percent current percent of the progress bar
* @param p.timeTarget the time it takes to reach 100% in ms
*/
export default ... | 6,926 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/BrowserView.tsx | import React, { useState, useRef, useEffect, useMemo } from 'react';
import * as remote from '@electron/remote';
import path from 'path';
import cloneDeep from 'lodash/cloneDeep';
import { I18nService } from 'services/i18n';
import Utils from 'services/utils';
import Spinner from 'components-react/shared/Spinner';
impo... | 6,927 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/ButtonGroup.tsx | import { Space } from 'antd';
import React, { HTMLAttributes } from 'react';
interface IButtonGroupProps {
align?: 'center' | 'end' | 'start' | 'baseline' | undefined;
direction?: 'horizontal' | 'vertical' | undefined;
size?: 'small' | 'middle' | 'large' | number | undefined;
split?: React.ReactNode;
wrap?: ... | 6,928 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/ButtonHighlighted.m.less | @import '../../styles/mixins';
button.highlighted {
font-weight: 800;
color: var(--prime-button);
margin: 5px 16px 5px 5px;
padding: 10px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
border-radius: 6px;
background: linear-gradient(0deg, #ffffff, #ffffff) paddin... | 6,929 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/ButtonHighlighted.tsx | import React, { CSSProperties, SVGProps } from 'react';
import { Button, ButtonProps } from 'antd';
import cx from 'classnames';
import styles from './ButtonHighlighted.m.less';
interface IButtonHighlighted extends ButtonProps {
icon?: SVGProps<SVGElement> | HTMLDivElement;
className?: string;
disabled?: boolean... | 6,930 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/Display.tsx | import React, { useEffect, useRef } from 'react';
import { useVuex } from '../hooks';
import { Services } from '../service-provider';
import { Display as OBSDisplay } from '../../services/video';
import { TDisplayType } from 'services/settings-v2/video';
import uuid from 'uuid/v4';
interface DisplayProps {
id?: strin... | 6,931 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/DisplaySelector.tsx | import React, { CSSProperties, useMemo } from 'react';
import { $t } from 'services/i18n';
import { useVuex } from 'components-react/hooks';
import { Services } from 'components-react/service-provider';
import { RadioInput } from './inputs';
import { displayLabels } from 'services/dual-output';
import { TDisplayType } ... | 6,932 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/HelpTip.m.less | @import '../../styles/index';
.help-tip {
.radius();
position: absolute;
background: var(--teal);
color: var(--action-button-text);
width: 260px;
padding: 10px;
font-size: 14px;
z-index: 9999;
}
.help-tip__arrow {
width: 0;
height: 0;
border-style: solid;
border-width: 8px 8px 8px 0;
border... | 6,933 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/HelpTip.tsx | import React, { CSSProperties } from 'react';
import cx from 'classnames';
import { EDismissable } from 'services/dismissables';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
import styles from './HelpTip.m.less';
interface IHelpTipProps {
title: stri... | 6,934 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/HotkeyBinding.tsx | import React, { useEffect, useRef, useState } from 'react';
import { IBinding, IHotkey } from 'services/hotkeys';
import { TextInput } from 'components-react/shared/inputs';
import { byOS, OS } from 'util/operating-systems';
import Form from './inputs/Form';
import { Input } from 'antd';
import { Services } from 'compo... | 6,935 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/InfoBadge.m.less | @import '../../styles/index.less';
.info-badge {
.radius();
.padding();
background-color: var(--info-badge);
color: var(--info-badge-text);
font-size: 10px;
&.margin {
margin: 15px;
}
}
| 6,936 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/InfoBadge.tsx | import React, { CSSProperties } from 'react';
import styles from './InfoBadge.m.less';
import { $t } from 'services/i18n';
import cx from 'classnames';
interface IInfoBadge {
content: string | React.ReactElement;
className?: string;
style?: CSSProperties;
hasMargin?: boolean;
}
export default function InfoBad... | 6,937 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/KevinSvg.tsx | import React from 'react';
export default (p: { className?: string; style?: any }) => (
<svg
className={p.className}
style={p.style}
width="144"
height="128"
viewBox="0 0 144 128"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
fillRule="evenodd"
clipRule="evenodd... | 6,938 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/MenuItem.m.less | @import '../../styles/index';
@import '../../styles/mixins';
.menuitem-wrapper {
:global(span.ant-menu-title-content) {
overflow: visible;
text-overflow: unset;
white-space: normal;
}
:global(div.ant-menu-submenu-title) {
height: unset;
line-height: unset;
min-height: 30px;
}
.root-... | 6,939 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/MenuItem.tsx | import React, { CSSProperties } from 'react';
import { Menu, MenuItemProps } from 'antd';
import styles from './MenuItem.m.less';
import cx from 'classnames';
interface IMenuProps extends MenuItemProps {
title?: string;
className?: string;
style?: CSSProperties;
type?: 'item' | 'submenu' | 'app';
}
export def... | 6,940 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/Message.tsx | import React, { HTMLAttributes } from 'react';
import ExclamationCircleOutlined from '@ant-design/icons';
// TODO: add more types
type MessageType = 'warning' | 'info';
export default function Message(p: { type: MessageType } & HTMLAttributes<unknown>) {
const type = p.type;
const classProp = `ant-message-custom-... | 6,941 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/ModalLayout.tsx | import React, { ReactNode, CSSProperties } from 'react';
import { useVuex } from '../hooks';
import { Services } from '../service-provider';
import { getOS, OS } from '../../util/operating-systems';
import cx from 'classnames';
import { $t } from '../../services/i18n';
import css from './ModalLayout.m.less';
import { B... | 6,942 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/NewBadge.m.less | @import '../../styles/index';
@import '../../styles/mixins';
@import '../../styles/badges';
.new-badge {
background: var(--new-badge-text);
color: var(--titlebar);
font-size: 9px;
position: relative;
padding: 0 2px;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
z... | 6,943 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/NewBadge.tsx | import React, { CSSProperties } from 'react';
import styles from './NewBadge.m.less';
import { EDismissable } from 'services/dismissables';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
import cx from 'classnames';
import { $t } from 'services/i18n';
in... | 6,944 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/PerformanceMetrics.m.less | @import '../../styles/index';
.performance-metrics {
background: var(--section);
height: calc(100% - 30px);
}
.performance-metric-wrapper {
.padding-right();
color: var(--paragraph);
white-space: nowrap;
display: flex;
align-items: center;
&::before {
.padding-right();
content: '|';
opa... | 6,945 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/PerformanceMetrics.tsx | import React from 'react';
import { Tooltip } from 'antd';
import cx from 'classnames';
import { useVuex } from '../hooks';
import { Services } from '../service-provider';
import cloneDeep from 'lodash/cloneDeep';
import styles from './PerformanceMetrics.m.less';
import { $t } from '../../services/i18n';
type TPerform... | 6,946 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/PlatformAppPageView.m.less | .delist-container {
display: flex;
justify-content: center;
align-items: center;
background: var(--warning-bg);
color: var(--warning);
margin: 8px;
padding: 8px;
border-radius: 8px;
i {
margin-right: 8px;
}
&:hover {
cursor: pointer;
}
} | 6,947 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/PlatformAppPageView.tsx | import React, { useRef, useEffect } from 'react';
import * as remote from '@electron/remote';
import { EAppPageSlot } from 'services/platform-apps';
import Utils from 'services/utils';
import { useVuex } from 'components-react/hooks';
import { Services } from 'components-react/service-provider';
import { $t } from 'ser... | 6,948 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/PlatformLogo.m.less | @import '../../styles/index';
.twitch { color: var(--twitch); }
.youtube { color: var(--youtube); }
.facebook { color: var(--facebook); }
.tiktok { color: var(--tiktok); }
.streamlabs { color: var(--teal); }
.dlive {
background-image: url('../../../media/images/platforms/dlive-logo.png');
display: inline-block;
... | 6,949 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/PlatformLogo.tsx | import React, { HTMLAttributes } from 'react';
import { TPlatform } from '../../services/platforms';
import cx from 'classnames';
import css from './PlatformLogo.m.less';
import { Services } from 'components-react/service-provider';
import { useVuex } from 'components-react/hooks';
const sizeMap = {
small: 14,
med... | 6,950 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/Scrollable.tsx | import React, { HTMLAttributes, useState, CSSProperties } from 'react';
import { OverlayScrollbarsComponent } from 'overlayscrollbars-react';
import { OverflowBehavior } from 'overlayscrollbars';
interface IScrollableProps {
className?: string;
isResizable?: boolean;
horizontal?: boolean;
/**
* Has perform... | 6,951 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/Spinner.m.less | @import '../../styles/index';
.container {
background-color: var(--background);
display: flex;
justify-content: center;
position: absolute;
width: 100%;
height: 100%;
text-align: center;
z-index: 1;
.spinner {
opacity: 0;
visibility: hidden;
display: inline-block;
}
&.hasVisibleSpin... | 6,952 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/Spinner.tsx | import React, { HTMLAttributes, useEffect, useRef, useState } from 'react';
import Animation from 'rc-animate';
import css from './Spinner.m.less';
import cx from 'classnames';
const spinnerSvg =
'<div class="s-spinner"><div size="small" class="s-bars"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlin... | 6,953 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/SubMenu.m.less | @import '../../styles/index';
@import '../../styles/mixins';
.submenu-wrapper {
:global(li.ant-menu-item) {
padding-left: 40px !important;
}
:global(span.ant-menu-title-content) {
overflow: visible;
text-overflow: unset;
white-space: normal;
}
:global(div.ant-menu-submenu-title) {
heigh... | 6,954 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/SubMenu.tsx | import React, { CSSProperties } from 'react';
import { Menu, MenuItemProps, SubMenuProps } from 'antd';
import styles from './SubMenu.m.less';
import cx from 'classnames';
interface ISubMenuProps extends SubMenuProps, MenuItemProps {
title?: string;
className?: string;
style?: CSSProperties;
}
export default fu... | 6,955 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/SvgContainer.tsx | import React from 'react';
const SVG_ATTRS_REGEX = /(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/gm;
export default function SvgContainer(p: {
src: string;
className?: string;
style?: React.CSSProperties;
}) {
function svgAttrs() {
const svgMatch = p.src.match(/<svg\w?([^<]+)/);
const svgTag = ... | 6,956 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/Tabs.tsx | import React, { CSSProperties } from 'react';
import { Tabs as AntdTabs } from 'antd';
import { $t } from 'services/i18n';
interface TabData {
label: string | JSX.Element;
key: string;
}
interface ITabs {
data?: TabData[];
onChange?: (param?: any) => void;
style?: CSSProperties;
tabStyle?: CSSProperties;
... | 6,957 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/TitleBar.m.less | @import '../../styles/index';
.titlebar {
display: flex;
flex-direction: row;
align-items: center;
height: 30px;
flex: 0 0 30px;
background: var(--titlebar);
}
.titlebar-mac {
height: 22px;
flex: 0 0 22px;
.titlebar-title {
text-align: center;
font-size: 13px;
}
}
.titlebar-error {
back... | 6,958 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/TitleBar.tsx | import React, { useEffect, useMemo, useState } from 'react';
import cx from 'classnames';
import { useVuex } from '../hooks';
import { Services } from '../service-provider';
import { byOS, OS } from '../../util/operating-systems';
import { $t } from '../../services/i18n';
import { ipcRenderer } from 'electron';
import ... | 6,959 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/ToolTip.m.less | .tooltip-wrapper {
:global(div.ant-tooltip-content div.ant-tooltip-arrow) {
position: absolute;
width: 12px;
height: 12px;
z-index: 1;
:global(.ant-tooltip-arrow-content) {
position: relative;
width: 12px;
height: 12px;
z-index: 1;
}
}
&:global(.ant-tooltip-placem... | 6,960 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/Tooltip.tsx | import React, { CSSProperties, PropsWithChildren, HTMLAttributes } from 'react';
import { Tooltip as AntdTooltip } from 'antd';
import styles from './Tooltip.m.less';
import cx from 'classnames';
type TTipPosition =
| 'topLeft'
| 'top'
| 'topRight'
| 'leftTop'
| 'left'
| 'leftBottom'
| 'bottomLeft'
| '... | 6,961 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/Translate.tsx | import { camelize } from 'humps';
import React, { useEffect, useState, ReactElement, createElement } from 'react';
import keyBy from 'lodash/keyBy';
/**
* Convert xml message from i18n dictionary into a React component
*
* @example Usage with a Vue template
* <pre>
*
* <Translate message="To continue please <m... | 6,962 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/UltraComparison.m.less | .prime-title {
color: var(--prime);
background: var(--prime-semi);
border-radius: 4px;
padding: 4px;
line-height: 32px;
font-weight: 700;
}
.headers-container {
border-top: 1px solid var(--border);
width: 250px;
margin-top: 232px;
margin-right: 20px;
&.condensed {
margin-right: 0;
margin... | 6,963 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/UltraComparison.tsx | import React from 'react';
import { $t } from 'services/i18n';
import styles from './UltraComparison.m.less';
import cx from 'classnames';
import { Services } from 'components-react/service-provider';
import UltraIcon from 'components-react/shared/UltraIcon';
import { Tooltip } from 'antd';
interface ITableHeader {
... | 6,964 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/UltraIcon.tsx | import React, { CSSProperties } from 'react';
import { Services } from '../service-provider';
import { useVuex } from 'components-react/hooks';
import cx from 'classnames';
type TUltraIcon = 'badge' | 'day' | 'night' | 'simple';
interface IUltraIcon {
type?: TUltraIcon | string;
className?: string;
style?: CSSP... | 6,965 |
0 | petrpan-code/stream-labs/desktop/app/components-react | petrpan-code/stream-labs/desktop/app/components-react/shared/VueComponent.tsx | import React, { Component } from 'react';
import uuid from 'uuid';
import { I18nService } from '../../services/i18n';
import { StatefulService } from '../../services/core/stateful-service';
import Vue from 'vue';
import isEqual from 'lodash/isEqual';
interface IProps {
componentClass: any;
componentProps: any;
}
... | 6,966 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/AudioUrlInput.tsx | import { InputComponent, TSlobsInputProps, useInput } from './inputs';
import InputWrapper from './InputWrapper';
import css from './mediaUrlInput.m.less';
import React from 'react';
import { MediaInputButtons } from './MediaUrlInput';
export const AudioUrlInput = InputComponent((p: TSlobsInputProps<{}, string>) => {
... | 6,967 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/AutocompleteInput.tsx | import React, { useState } from 'react';
import { AutoComplete } from 'antd';
import { InputComponent } from './inputs';
import InputWrapper from './InputWrapper';
import { TListInputProps } from './ListInput';
export const AutocompleteInput = InputComponent(<T extends any>(p: TListInputProps<T>) => {
const [dropdow... | 6,968 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/BoolButtonInput.tsx | import React from 'react';
import cx from 'classnames';
import { InputComponent, TSlobsInputProps, useInput } from './inputs';
import styles from 'components/shared/inputs/BoolButtonInput.m.less';
import { Tooltip } from 'antd';
import { TooltipPlacement } from 'antd/lib/tooltip';
interface IBoolButtonInputCustomProps... | 6,969 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/CardInput.tsx | import { Col, Row } from 'antd';
import React from 'react';
import { InputComponent, TSlobsInputProps, useInput } from './inputs';
import { IListOption } from './ListInput';
import InputWrapper from './InputWrapper';
export type TCardInputProps<TValue> = TSlobsInputProps<
{ options: IListOption<TValue>[]; itemWidth?... | 6,970 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/CheckboxGroup.tsx | import React from 'react';
import { InputComponent, TSlobsInputProps } from './inputs';
import InputWrapper from './InputWrapper';
import { ICheckboxGroupMetadata } from './metadata';
import { CheckboxInput } from './CheckboxInput';
type TCheckboxGroupProps = TSlobsInputProps<ICheckboxGroupMetadata, boolean>;
export ... | 6,971 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/CheckboxInput.tsx | import { Checkbox, Tooltip } from 'antd';
import React from 'react';
import { InputComponent, TSlobsInputProps, useInput } from './inputs';
import { CheckboxProps } from 'antd/lib/checkbox';
import { QuestionCircleOutlined } from '@ant-design/icons';
export type TCheckboxInputProps = TSlobsInputProps<{}, boolean, Chec... | 6,972 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/CodeInput.tsx | import React, { useEffect, useRef } from 'react';
import { Input } from 'antd';
import { InputComponent, TSlobsInputProps, useInput, useTextInput } from './inputs';
import InputWrapper from './InputWrapper';
import CodeMirror, { EditorFromTextArea } from 'codemirror';
import { Services } from '../../service-provider';
... | 6,973 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/ColorInput.tsx | import React, { ChangeEvent, RefObject, useEffect, useRef, useState } from 'react';
import { TSlobsInputProps, useInput } from './inputs';
import { Button, Input, Popover } from 'antd';
import InputWrapper from './InputWrapper';
import omit from 'lodash/omit';
import { getOS, OS } from '../../../util/operating-systems'... | 6,974 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/DateInput.tsx | import React from 'react';
import { DatePicker, DatePickerProps } from 'antd';
import { InputComponent, TSlobsInputProps, useInput, ValuesOf } from './inputs';
import InputWrapper from './InputWrapper';
const ANT_DATEPICKER_FEATURES = [] as const;
export type TTextAreaInputProps = TSlobsInputProps<
{},
Date,
Da... | 6,975 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/FileInput.tsx | import React from 'react';
import * as remote from '@electron/remote';
import { Input, Button } from 'antd';
import { InputProps } from 'antd/lib/input';
import { InputComponent, useInput, TSlobsInputProps } from './inputs';
import InputWrapper from './InputWrapper';
import { $t } from '../../../services/i18n';
type T... | 6,976 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/FontFamilyInput.tsx | import React from 'react';
import { ListInput } from './ListInput';
import { TSlobsInputProps } from './inputs';
import { $t } from '../../../services/i18n';
const fonts = [
'ABeeZee',
'Abel',
'Abril Fatface',
'Aclonica',
'Acme',
'Actor',
'Adamina',
'Advent Pro',
'Aguafina Script',
'Akronim',
'Al... | 6,977 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/FontSizeInput.tsx | import React from 'react';
import { TSlobsInputProps } from './inputs';
import { SliderInput } from './SliderInput';
export function FontSizeInput(p: TSlobsInputProps<{}, number>) {
return <SliderInput {...p} min={8} max={80} />;
}
| 6,978 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/FontWeightInput.tsx | import React from 'react';
import { TSlobsInputProps } from './inputs';
import { SliderInput } from './SliderInput';
export function FontWeightInput(p: TSlobsInputProps<{}, number>) {
return <SliderInput {...p} min={300} max={900} step={100} />;
}
| 6,979 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/Form.tsx | import React, { useContext, useEffect, useState } from 'react';
import { Form as AntForm } from 'antd';
import { FormInstance, FormProps, FormItemProps } from 'antd/lib/form';
import { TInputLayout } from './inputs';
type TFormContext = {
antForm: FormInstance;
layout?: TInputLayout;
} & Pick<FormItemProps, 'label... | 6,980 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/FormFactory.tsx | import React, { useMemo } from 'react';
import { FormProps } from 'antd/lib/form';
import debounce from 'lodash/debounce';
import cloneDeep from 'lodash/cloneDeep';
import * as inputs from './inputList';
import { TInputType, TSlobsInputProps } from './inputs';
import Form, { useForm } from './Form';
import { TInputMeta... | 6,981 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/ImageInput.tsx | import { Upload, UploadProps, Modal } from 'antd';
import { RcFile, UploadFile } from 'antd/lib/upload/interface';
import React, { useEffect, useRef, useState } from 'react';
import { InputComponent, TSlobsInputProps, useInput } from './inputs';
import InputWrapper from './InputWrapper';
import { assertIsDefined } from... | 6,982 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/InputWrapper.tsx | import { Form } from 'antd';
import React, { useContext } from 'react';
import { FormItemProps } from 'antd/lib/form/FormItem';
import omit from 'lodash/omit';
import { FormContext } from './Form';
import { InputComponent, layoutPresets, TInputLayout } from './inputs';
type TInputWrapperProps = FormItemProps & {
now... | 6,983 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/ListInput.tsx | import { Select, Row, Col } from 'antd';
import React, { ReactNode, useRef } from 'react';
import { InputComponent, TSlobsInputProps, useInput, ValuesOf } from './inputs';
import InputWrapper from './InputWrapper';
import { RefSelectProps, SelectProps } from 'antd/lib/select';
import { useDebounce } from '../../hooks';... | 6,984 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/MediaUrlInput.tsx | import React from 'react';
import { InputComponent, TSlobsInputProps, useInput } from './inputs';
import InputWrapper from './InputWrapper';
import { Services } from '../../service-provider';
import { LinkOutlined, CloseOutlined, CloudDownloadOutlined } from '@ant-design/icons';
import { Button, Col, Row, Tooltip } fro... | 6,985 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/NumberInput.tsx | import { InputNumber } from 'antd';
import React from 'react';
import { TSlobsInputProps, useTextInput, ValuesOf } from './inputs';
import InputWrapper from './InputWrapper';
import { InputNumberProps } from 'antd/lib/input-number';
// select which features from the antd lib we are going to use
const ANT_NUMBER_FEATUR... | 6,986 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/RadioInput.tsx | import React from 'react';
import { InputComponent, TSlobsInputProps } from './inputs';
import InputWrapper from './InputWrapper';
import { Radio, Space } from 'antd';
type TRadioInputProps = TSlobsInputProps<
{
label?: string;
nolabel?: boolean;
nomargin?: boolean;
options: { value: string; label: s... | 6,987 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/SliderInput.tsx | import React from 'react';
import { InputComponent, TSlobsInputProps, useInput, ValuesOf } from './inputs';
import { Slider, InputNumber, Row, Col } from 'antd';
import { SliderSingleProps } from 'antd/lib/slider';
import InputWrapper from './InputWrapper';
import omit from 'lodash/omit';
// select which features from... | 6,988 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/SwitchInput.m.less | @import '../../../styles/index';
.horizontal-item {
margin: 0 !important;
}
.horizontal {
margin: 0 10px 0 0 !important;
}
| 6,989 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/SwitchInput.tsx | import { Form, Switch } from 'antd';
import React from 'react';
import { InputComponent, TSlobsInputProps, useInput, ValuesOf } from './inputs';
import InputWrapper from './InputWrapper';
import { SwitchProps } from 'antd/lib/switch';
import styles from './SwitchInput.m.less';
import cx from 'classnames';
// select wh... | 6,990 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/TagsInput.tsx | import { Select, Tag } from 'antd';
import React, { useMemo, ReactElement } from 'react';
import { InputComponent, SingleType, TSlobsInputProps, useInput, ValuesOf } from './inputs';
import InputWrapper from './InputWrapper';
import { SelectProps } from 'antd/lib/select';
import { ICustomListProps, IListOption, renderO... | 6,991 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/TextAreaInput.tsx | import React from 'react';
import { Input } from 'antd';
import { InputComponent, TSlobsInputProps, useTextInput, ValuesOf } from './inputs';
import InputWrapper from './InputWrapper';
import { TextAreaProps } from 'antd/lib/input';
const ANT_TEXTAREA_FEATURES = ['showCount', 'autoSize', 'maxLength', 'rows'] as const;... | 6,992 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/TextInput.tsx | import { Input } from 'antd';
import React from 'react';
import { InputComponent, TSlobsInputProps, useTextInput, ValuesOf } from './inputs';
import InputWrapper from './InputWrapper';
import { InputProps } from 'antd/lib/input';
// select which features from the antd lib we are going to use
const ANT_INPUT_FEATURES =... | 6,993 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/TimeInput.tsx | import { TimePicker, TimePickerProps } from 'antd';
import React, { useEffect, useRef } from 'react';
import { InputComponent, TSlobsInputProps, useInput } from './inputs';
import InputWrapper from './InputWrapper';
import moment, { Moment } from 'moment';
import { findDOMNode } from 'react-dom';
export type TTimeInpu... | 6,994 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/index.ts | export * from './inputs';
export * from './inputList';
| 6,995 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/inputList.ts | export { CodeInput } from './CodeInput';
export { TextInput } from './TextInput';
export { TextAreaInput } from './TextAreaInput';
export { NumberInput } from './NumberInput';
export { SwitchInput } from './SwitchInput';
export { CheckboxInput } from './CheckboxInput';
export { ListInput } from './ListInput';
export { ... | 6,996 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/inputs.ts | /**
* Shared code for inputs
*/
import React, { useEffect, useContext, ChangeEvent, FocusEvent, useCallback, useRef } from 'react';
import { FormContext } from './Form';
import { useDebounce } from '../../hooks';
import { useOnCreate, useForceUpdate, createFormBinding } from 'slap';
import uuid from 'uuid';
import { ... | 6,997 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/mediaUrlInput.m.less | @import '../../../styles/index';
.media-input-wrapper() {
width: 100%;
max-width: 300px;
background-color: var(--section);
.radius();
}
.media-input {
.media-input-wrapper();
position: relative;
overflow: hidden;
height: 120px;
.media-buttons {
opacity: 0;
background-color: rgba(0, 0, 0, 0.5... | 6,998 |
0 | petrpan-code/stream-labs/desktop/app/components-react/shared | petrpan-code/stream-labs/desktop/app/components-react/shared/inputs/metadata.ts | import { Rule } from 'antd/lib/form';
import { TInputValue } from './FormFactory';
/**
* Metadata generator for inputs
* Provides some presets and helps with typechecking
*/
export const metadata = {
any: (options: IAnyMetadata) => options,
text: (options: ITextMetadata) => ({ ...options, type: 'text' }),
tex... | 6,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.