path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/js/components/icons/base/VolumeLow.js | odedre/grommet-final | /**
* @description VolumeLow SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @... |
client/components/settings/emails/alert-form-modal.js | jankeromnes/kresus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { translate as $t, AlertTypes } from '../../../helpers';
import { actions } from '../../../store';
import AccountSelector from './account-select';
import AmountInput from '../../ui/amount-input';
import Modal... |
static/src/components/islands/IslandTree.js | andribja/airhornbot | // @flow
// jscs:disable maximumLineLength
import React from 'react';
import ResizableSVG from '../ResizableSVG';
export default React.createClass({
mixins: [ResizableSVG],
render(): React.Element {
let viewBox: string = this.getViewBox(259, 228);
let {paused} = this.props;
return (
<svg class... |
renderer/components/Icon/Receive.js | LN-Zap/zap-desktop | import React from 'react'
const SvgReceive = props => (
<svg height="1em" viewBox="0 0 50 50" width="1em" {...props}>
<defs>
<linearGradient id="receive_svg__a" x1="0%" y1="0%" y2="100%">
<stop offset="0%" stopColor="#FFBD59" />
<stop offset="100%" stopColor="#FD9800" />
</linearGradi... |
src/TimePicker/Clock.js | rscnt/material-ui | import React from 'react';
import TimeDisplay from './TimeDisplay';
import ClockHours from './ClockHours';
import ClockMinutes from './ClockMinutes';
class Clock extends React.Component {
static propTypes = {
format: React.PropTypes.oneOf(['ampm', '24hr']),
initialTime: React.PropTypes.object,
isActive: ... |
templates/rubix/rubix-bootstrap/src/L20n.js | jeffthemaximum/jeffline | import React from 'react';
import Dispatcher from './Dispatcher';
import isBrowser from './isBrowser';
var win = null;
if (!isBrowser()) {
win = {
L20n: {
getContext: function() {},
},
};
} else {
win = window;
if (!win.hasOwnProperty('L20n')) {
win.L20n = {
getContext: function() {},... |
src/App.js | AzSiAz/LN-Reader | import React, { Component } from 'react';
import {
AppRegistry,
View,
AsyncStorage,
} from 'react-native';
import Info from 'react-native-device-info'
import codePush from 'react-native-code-push'
import Navigator from './screens'
import IntroComponent from './components/IntroComponent'
class LNReader extends C... |
frontend/components/Navbar.js | ParroApp/parro | import PropTypes from 'prop-types';
import React from 'react';
import Title from '../components/Title';
import { Redirect } from 'react-router-dom'
class Navbar extends React.Component {
constructor(props) {
super(props);
this.end = this.end.bind(this);
}
end() {
console.log('yoyoyoyoyoyo');
// <... |
app/containers/App/index.js | xavierouicar/react-boilerplate | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/utils/Component.js | LnxPrgr3/Outlaw-CMS | import React from 'react';
import { OpenGraph } from './OpenGraph';
class Component extends React.Component {
static title() { return ''; };
static statusCode() { return 200; }
static loadData() {
return Promise.resolve(null);
}
withContext(callback) {
if(this.props.staticContext)
return callb... |
frontend/src/components/h5/Builder.js | sunlong/h5 | /**
* Created by sunlong on 2017/3/20.
*/
import React from 'react';
import moment from 'moment';
import Noty from 'noty';
import { connect } from 'react-redux';
import Panel from './panel/Panel';
import Header from './header/Header';
import store from '../../store';
import Template from './Template';
import PageCont... |
src/example/Example.js | lsanwick/react-copy-to-clipboard | import React from 'react';
import CopyToClipboard from '..';
const App = React.createClass({
getInitialState() {
return {value: '', copied: false};
},
render() {
return (
<div>
<input value={this.state.value}
size={10}
onChange={({target: {value}}) => this.setState({... |
src/App.js | zhangmingkai4315/PPT-repo | import React, { Component } from 'react';
import SlidesManager from './components/SlidesManager'
export default class App extends Component {
render() {
return (
<SlidesManager/>
);
}
} |
src/js/components/icons/base/AccessAd.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
frontend/src/components/editor/attachments/uploader.js | 1905410/Misago | // jshint ignore:start
import React from 'react';
import moment from 'moment';
import misago from 'misago';
import ajax from 'misago/services/ajax';
import snackbar from 'misago/services/snackbar';
export default class extends React.Component {
onChange = (event) => {
const file = event.target.files[0];
if (... |
app/jsx/grading/gradingStandardCollection.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/components/orderInput/orderInput.js | beehive-spg/beehive-frontend | import React from 'react'
import { connect } from 'react-redux'
import { graphql } from 'react-apollo'
import Script from 'react-load-script'
import Geosuggest from 'react-geosuggest'
import { BounceLoader } from 'halogenium'
import LaddaButton, { S, EXPAND_RIGHT } from 'react-ladda'
import addOrder from 'graphql/mutat... |
examples/websdk-samples/LayerReactNativeSample/src/containers/ConversationListContainer.js | layerhq/layer-js-sampleapps | import React, { Component } from 'react';
import {
View,
Modal,
StyleSheet
} from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { QueryBuilder } from 'layer-websdk/index-react-native';
import { connectQuery } from 'layer-react';
import * as MessengerAc... |
app/components/post_list/new_messages_divider.js | csduarte/mattermost-mobile | // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import React from 'react';
import {StyleSheet, View} from 'react-native';
import FormattedText from 'app/components/formatted_text';
const style = StyleSheet.create({
container: {
alignItems: '... |
www/src/components/Navbar.js | TaitoUnited/taito-cli | import React from 'react';
import styled from '@emotion/styled';
import { Link } from 'gatsby';
import { FaGithub } from 'react-icons/fa';
import { desktopOnly } from '../utils';
import theme from '../theme';
import Spacing from './Spacing';
import Search from './search';
const Navbar = () => {
const activeStyle = ... |
app/jsx/external_apps/components/TextAreaInput.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
node_modules/styled-components/src/models/StyleSheet.js | vinhtran19950804/procure_react | // @flow
import React from 'react'
import BrowserStyleSheet from './BrowserStyleSheet'
import ServerStyleSheet from './ServerStyleSheet'
export const SC_ATTR = 'data-styled-components'
export const LOCAL_ATTR = 'data-styled-components-is-local'
export const CONTEXT_KEY = '__styled-components-stylesheet__'
export inte... |
src/mobile/src/components/EmployeeCreate.js | douglascbarbosa/plankit | import React, { Component } from 'react';
import { Picker, Text } from 'react-native';
import { connect } from 'react-redux';
import { employeeUpdate, employeeCreate } from '../actions';
import {Card, CardSection, Input, Button } from './common';
class EmployeeCreat extends Component {
onButtonPress(){
const { nam... |
App.js | munyrasirio/mss-chat | import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import { View, StatusBar } from 'react-native';
import Contacts from './src/page/Contacts';
import Chat from './src/page/Chat';
import Config from './src/page/Config';
const ROUTES = StackNavigator({
contacts: {
screen: Co... |
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/form/components/__form__.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import CountUp from 'react-countup';
import { intlShape } from 'react-intl';
import classnames from 'classnames';
import { Error } from '../../../../../components/form-util';
import { isValidEmail } from '../../../../../utils/validation-help... |
client/src/components/billing/checkout-form.js | WebTalentTop/newsfere-mern | import React, { Component } from 'react';
import CheckoutFields from './checkout-fields';
import { connect } from 'react-redux';
import * as actions from '../../actions/billing';
/* TODO:
* - Pass more information down with redux state (i.e., billing address initial val)
*/
class CheckoutForm extends Component {
... |
src/components/project/project_slide.js | LeeLa-Jet/nick | import React, { Component } from 'react';
import classNames from 'classnames'
class ProjectSlide extends Component {
renderContent(){
let data = this.props.data;
let backgroundImage = `url(${data.bg})`;
if(data.id == 'main'){
return (
<div className={classNames(
"project_slide-wr... |
src/components/ManageUsers/ManageUsers.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { dispatch } from 'redux';
import Breadcrumbs from 'react-breadcrumbs';
import {
actionFetchUsers
} from '../../actions/UsersAction';
require('./ManageUsers.cs... |
src/components/label/index.js | KleeGroup/focus-components | // Dependencies
import PropTypes from 'prop-types';
import React from 'react';
import { translate } from 'focus-core/translation';
function Label({ name, text, isRequired }) {
const content = text || name;
return (
<label data-focus='label' htmlFor={name}>
{translate(content) + (isRequired... |
src/react/index.js | threepointone/redux-devtools | import React from 'react';
import createDevTools from '../createDevTools';
export const DevTools = createDevTools(React);
export { default as LogMonitor } from './LogMonitor';
export { default as DebugPanel } from './DebugPanel';
|
src/components/Home/Home.js | lucaslencinas/react-node-socketio-template | import React from 'react';
import PropTypes from 'prop-types';
import styles from './Home.css';
class Home extends React.Component {
constructor(props) {
super(props);
this.state = { name: '' };
this.handleEnter = this.handleEnter.bind(this);
this.handleNameChange = this.handleNameChange.bind(this);... |
app/jsx/shared/hooks/useLocalStorage.js | djbender/canvas-lms | /*
* Copyright (C) 2020 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
app/javascript/mastodon/components/domain.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
const messages = defineMessages({
unblockDomain: { id: 'account.unblock_domain', default... |
src/components/InputSection.js | Ibrasau/socketChatExample | import React, { Component } from 'react';
import { Row, Form, Input, Button } from 'antd';
import { compose, pure, withState, withHandlers } from 'recompose';
import PropTypes from 'prop-types';
import moment from 'moment';
const InputSection = ({
messageInput,
setMessageInput,
submitHandler,
username,
}) => (... |
src/svg-icons/image/hdr-strong.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrStrong = (props) => (
<SvgIcon {...props}>
<path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ... |
src/utils/CustomPropTypes.js | mengmenglv/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
ui/src/index.js | jliddev/pgBrowse | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
i... |
src/modules/Auth/RequireLoggedIn.js | hdngr/mantenuto | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { populateUser } from 'modules/user/redux';
export class RequireLoggedInComponent extends Component {
static propTypes = {
tryingAuth: PropType... |
src/components/LoadingCirclePop/LoadingCirclePop.js | k2data/k2-react-components | import React from 'react'
import logo from './logo.png'
const LoadingCirclePop = () => (
<div className='loading--ripple-container'>
<div className='img'>
<img src={logo} />
</div>
<svg width='182px' height='182px' xmlns='http://www.w3.org/2000/svg'
viewBox='0 0 100 100' preserveAspectRatio='... |
src/components/Accounts/ChargeFeeFine/ItemLookup.js | folio-org/ui-users | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import {
Button,
Row,
Col,
Modal,
MultiColumnList,
} from '@folio/stripes/components';
class ItemLookup extends React.Component {
static propTypes = {
open: PropTypes.bool,
items: PropTypes... |
src/svg-icons/device/graphic-eq.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGraphicEq = (props) => (
<SvgIcon {...props}>
<path d="M7 18h2V6H7v12zm4 4h2V2h-2v20zm-8-8h2v-4H3v4zm12 4h2V6h-2v12zm4-8v4h2v-4h-2z"/>
</SvgIcon>
);
DeviceGraphicEq = pure(DeviceGraphicEq);
DeviceGraphi... |
example4/js/components/7ListView.js | hbarve1/react-native-examples | import React, { Component } from 'react';
import { View, Text, ListView, Image } from 'react-native';
export default class ListViewExample extends Component {
// Initialize the hardcoded data
constructor(props) {
super(props);
const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
... |
src/components/footer.js | itzsaga/slack-list | import React from 'react'
const Footer = () => (
<footer className="footer">
<div className="container">
<div className="content has-text-centered">
<p>
<strong>Slack List</strong>
<br /> The source code is available as open source under the terms of
the{' '}
... |
src/interface/icons/Mastery.js | anom0ly/WoWAnalyzer | import React from 'react';
const icon = (props) => (
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
viewBox="16 16 32 32"
className="icon"
{...props}
>
<path d="M46.934,26.287c-1.107,0-2.004,0.885-2.004,1.976c0,0.31,0.079,0.599,0.208,0.861l-6.74,4.691 l-0.387-8.422c1.064-0.048,1.914-... |
web/components/pages/NewGame.fixture.js | skidding/flatris | // @flow
import React from 'react';
import { FlatrisReduxMock } from '../../mocks/ReduxMock';
import { SocketProviderMock } from '../../mocks/SocketProviderMock';
import NewGame from './NewGame';
// NOTE: An authenticated fixture for NewGame does not exist because it would
// automatically redirect to /join page
expo... |
teletobit/src/containers/routes/ErrorRoute.js | edenpark/teletobit | import React, { Component } from 'react';
import UhOh, {
LeftColumn,
CenterColumn,
RightColumn,
} from 'components/UhOh';
import { Header, Icon } from 'semantic-ui-react'
class ErrorRoute extends Component {
render() {
return(
<UhOh>
<LeftColumn/>
... |
packages/icons/src/md/image/PhotoLibrary.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdPhotoLibrary(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M44 32c0 2.21-1.79 4-4 4H16c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4h24c2.21 0 4 1.79 4 4v24zm-22-8l-6 8h24l-8-10-5.94 7.42L22 24zM4 12v28c0 2.21 ... |
src/parser/paladin/protection/modules/spells/azeritetraits/InspiringVanguard.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import TraitStatisticBox from 'interface/others/TraitStatisticBox';
import { calculateAzeriteEffects } from 'common/stats';
import { formatNumber, formatPercentage } from 'common/format';
import GrandCrusader fro... |
client/src/index.js | Jeff-Tian/jeey | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './semantic-ui/dist/semantic.min.css';
import './index.css';
import {Router, Route, browserHistory} from 'react-router';
import JeeyReader from './modules/jeey/jeey-reader.js';
ReactDOM.render((
<Router history={browserHis... |
src/components/ChatApp/ChatApp.react.js | isuruAb/chat.susi.ai | import MessageSection from './MessageSection/MessageSection.react';
import React, { Component } from 'react';
import './ChatApp.css';
import history from '../../history';
export default class ChatApp extends Component {
componentDidMount() {
document.title = 'SUSI.AI Chat - Open Source Artificial Intelligenc... |
src/components/about-page/AboutPage.js | CodeDraken/IdeaZone | import React from 'react';
import {Link} from 'react-router';
import ideaBulb from './../../../public/img/ideaBulb.jpg';
// static about / info page
const AboutPage = () => {
return (
<div className="container">
<Link to='/'>
<i className="fa fa-arrow-circle-left fa-3x" aria-hidden="true" t... |
dist/es/index.js | mberneti/react-datepicker2 | import momentJalaali from 'moment-jalaali';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TetherComponent from 'react-tether';
import classnames from 'classnames';
import onClickOutside from 'react-onclickoutside';
import range from 'lodash.range';
import Trigger from 'rc-trigger'... |
app/containers/UserContainer/index.js | vinhtran19950804/procure_react | /**
*
* UserContainer
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import injectSaga from 'utils/injectSaga';
import injectReducer from 'utils/injectReducer';
import ... |
frontend/src/AddMovie/AddNewMovie/AddNewMovieModalContentConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { addMovie, setAddMovieDefault } from 'Store/Actions/addMovieActions';
import createDimensionsSelector from 'Store/Selectors/createDimensionsSelector';
i... |
src/routes/dashboard/components/comments.js | yunqiangwu/kmadmin | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Tag } from 'antd'
import { color } from 'utils'
import styles from './comments.less'
const status = {
1: {
color: color.green,
text: 'APPROVED',
},
2: {
color: color.yellow,
text: 'PENDING',
},
3: {
color: color.... |
src/components/Signin/Signin.js | ihenvyr/react-app | import React from 'react';
import { Link } from 'react-router';
import styles from './Signin.scss';
class Signin extends React.Component {
static propTypes = {
// React.PropTypes.array
// React.PropTypes.bool
// React.PropTypes.func
// React.PropTypes.number
// React.PropTypes.object
// React... |
src/svg-icons/hardware/desktop-mac.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopMac = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/>
</SvgIcon>
);
HardwareDesktopM... |
app/containers/EffectsPage/index.js | Statfine/reactDemo | /**
* Created by easub on 2017/2/16.
*/
import React from 'react';
import { merge } from 'lodash';
import styled from 'styled-components';
const Content = styled.div`
padding-right: 15px;
padding-left: 15px;
margin: 0 auto;
padding-top: 94px;
width: 852px;
`;
const DrawContent = styled.div`
width: 852p... |
app/javascript/mastodon/features/account_timeline/index.js | mstdn-jp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines';
import ... |
src/js/index.js | ClubExpressions/poc-expression.club | import { AppContainer } from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import Main from './main';
const rootEl = document.getElementById('app');
ReactDOM.render(
<AppContainer>
<Main />
</AppContainer>,
rootEl
);
if (module.hot) {
module.hot.accept('./main', () => {
... |
src/components/form.js | frig-js/frig | import React from 'react'
import AbstractForm from './abstract_form.js'
/*
* A JSX-compatible React DOM Component.
* Form should be used as the top level component above any other frig
* components.
*/
export default class Form extends AbstractForm {
displayName = 'Form'
componentWillMount() {
if (!this.p... |
client/aframe/components/WarScene.js | shanemcgraw/PoopVR | import React from 'react';
class WarScene extends React.Component {
constructor(props) {
super(props);
}
render () {
return (
<a-scene>
<a-assets>
<a-asset-item id='fighterDae' src='/assets/fighterPlane/model.dae' />
<a-asset-item id='stall' src='/assets/Toilet_Stall.dae' />... |
src/shared/components/modal/modal.js | miaket/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import ReactModal from 'react-modal';
import Section from 'shared/components/section/section';
import styles from './modal.css';
const Modal = ({
isOpen, title, onRequestClose, children
}) => (
<ReactModal
isOpen={isOpen}
contentLabel={title}
... |
src/utils/ValidComponentChildren.js | aabenoja/react-bootstrap | import React from 'react';
/**
* Maps children that are typically specified as `props.children`,
* but only iterates over children that are "valid components".
*
* The mapFunction provided index will be normalised to the components mapped,
* so an invalid component would not increase the index.
*
* @param {?*} ... |
src/App.js | Minishlink/DailyScrum | // @flow
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import codePush from 'react-native-code-push';
import Scenes from './navigation/Scenes';
import createStore from './modules/store';
class App extends Component<void, State> {
state = {
store: null,
};
componentDidMou... |
js/app/categories/components.js | monetario/web |
'use strict';
import React from 'react';
import {Router, Route, Link, History} from 'react-router'
import Reflux from 'reflux';
import classNames from 'classnames';
import Moment from 'moment';
import Store from './store';
import Actions from './actions';
import CategoryIcon from '../../components/category_icon';
... |
client/src/components/helpers/SkeletonSprite.js | HKuz/FreeCodeCamp | import React from 'react';
import styles from './skeletonStyles';
function SkeletonSprite() {
return (
<div className='sprite-container'>
<style dangerouslySetInnerHTML={{ __html: styles }} />
<svg className='sprite-svg'>
<rect
className='sprite'
fill='#ccc'
hei... |
client/admin/viewLogs/ViewLogsRoute.js | Sing-Li/Rocket.Chat | import React from 'react';
import NotAuthorizedPage from '../../components/NotAuthorizedPage';
import { usePermission } from '../../contexts/AuthorizationContext';
import ViewLogs from './ViewLogs';
export default function ViewLogsRoute() {
const canViewLogs = usePermission('view-logs');
if (!canViewLogs) {
retu... |
packages/wix-style-react/test/utils/visual/utils.js | wix/wix-style-react | import allComponents from '../../../autodocs-registry/autodocs-registry.json';
import { storiesOf } from '@storybook/react';
import React from 'react';
import { Layout, Cell } from '../../../src/Layout';
import Tooltip from '../../../src/Tooltip';
function getTestValues(
{ type, required, defaultValue },
{ skipUnd... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | Jeremy-Meng/actor-platform | import React from 'react';
import classNames from 'classnames';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React.Component {
static propTypes = {
di... |
src/components/Lobby/Admin/index.js | socialgorithm/ultimate-ttt-web | import React from 'react';
import { withRouter } from 'react-router-dom';
import {
Icon,
Container,
Message,
Loader,
Button,
Segment,
Grid,
List,
Label,
Form,
Dropdown, Popup
} from 'semantic-ui-react';
import classNames from 'classnames';
import Tournament from '../Tournament'
class LobbyAdmin extends Rea... |
src/parser/shaman/restoration/modules/features/CastBehavior.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import { STATISTIC_ORDER } from 'interface/others/StatisticsListBox';
import StatisticGroup from 'in... |
android/source/view/home.js | cloudfavorites/favorites | import React, { Component } from 'react';
import {
View,
Dimensions,
RefreshControl,
DrawerLayoutAndroid
} from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import DrawerPanel from '../component/... |
frontend/src/admin/common/tables/SortedTable.js | rabblerouser/core | import React, { Component } from 'react';
import styled from 'styled-components';
import Table from './Table';
import sortColumn from './sortColumn';
const TableAside = styled.aside`
padding: 15px;
font-size: 14px;
background-color: ${props => props.theme.lightGrey};
font-style: italic;
`;
class Sor... |
src/index.js | elisherer/react-storybook-addon-info | import React from 'react';
import _Story from './components/Story';
import { H1, H2, H3, H4, H5, H6, Code, P, UL, A, LI } from './components/markdown';
export const Story = _Story;
const defaultOptions = {
inline: false,
header: true,
source: true,
propTables: [],
};
const defaultMtrcConf = {
h1: H1,
h2: ... |
src/cell/carto.js | HVF/franchise | import React from 'react'
import classNames from 'classnames'
import { updateCell } from './index'
import './carto.less'
String.prototype.replaceAll = function(search, replacement) {
var target = this
return target.replace(new RegExp(search, 'g'), replacement)
}
function addCSS(url) {
var link = documen... |
app/resources.js | gusreiber/jenkins-plugin-site | import { createSelector } from 'reselect';
import { createSearchAction, getSearchSelectors } from 'redux-search';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import { api, logger } from './commons';
import _ from 'lodash';
import React from 'react';
api.init({
latency: 100
});
export const... |
powerauth-webflow/src/main/js/components/operationTimeout.js | lime-company/lime-security-powerauth-webauth | /*
* Copyright 2019 Wultra s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
vertex_ui/src/components/Badge/Badge.js | zapcoop/vertex | import React from 'react';
import { PropTypes } from 'prop-types';
import classNames from 'classnames';
import _ from 'underscore';
import { Badge as ReactBootstrapBadge } from 'react-bootstrap';
/*
Extended Badge from ReactBootstrap. Adds outline option, color changing by
bsStyle and withIcon which adjusts th... |
js/ui/Root.js | rabaut/oneroom | import React, { Component } from 'react';
import Welcome from './welcome/welcome';
import Game from './game/game';
export default class Root extends Component {
render() {
if(true) { return (<Game {...this.props} />); }
return (<Welcome />);
}
}
|
src/core/display/App/Navigation/Horizontal/ChildrenLinks.js | JulienPradet/pigment-store | import React from 'react'
import {Link} from 'react-router'
const ChildrenLinks = ({children}) => (
<ul>
{children.map(({pattern, name}) => (
<li key={pattern}>
<Link to={pattern}>{name}</Link>
</li>
))}
</ul>
)
export default ChildrenLinks
|
src/index.js | physiii/home-gateway | import 'normalize.css';
import './views/styles/base.css';
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider as ReduxProvider} from 'react-redux';
import {ConnectedRouter} from 'connected-react-router';
import createHistory from 'history/createBrowserHistory';
import moment from 'moment';
imp... |
app/src/Frontend/modules/crm/containers/me/setting.js | ptphp/ptphp | /**
* Created by jf on 15/12/10.
*/
//"use strict";
import React from 'react';
var Sentry = require('react-sentry');
import {
Panel,
PanelBody,
Toast,
Cells,
Cell,
CellHeader,
CellBody,
CellFooter,
ActionSheet,
Ico
} from '../../../../index';
import Page from '../../compone... |
src/components/shared/modal/ModalComponent.js | refinedjs/refinedjs-blog | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ModalBodyComponent from './ModalBodyComponent';
import './ModalComponent.scss';
export default class ModalComponent extends Component {
constructor(props) {
super(props);
this.state = {
styles: {}
};
this.c... |
src/templates/blog-post.js | lucasflores/lucasflores.github.io | import React from 'react'
import { graphql } from 'gatsby'
import TimeAgo from 'react-timeago'
import { Flex, Box } from 'grid-styled'
import { media } from '../utils/style'
import styled, { createGlobalStyle } from 'styled-components'
import Breadcrumb from '../components/breadcrumb'
import Bar from '../components/ba... |
es/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js | cvdlab/react-planner | export { LineAttributesEditor as default };
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _object... |
src/Containers/TagListContainer.js | sashasushko/moira-front | // @flow
import React from 'react';
import type { ContextRouter } from 'react-router-dom';
import type { IMoiraApi } from '../Api/MoiraAPI';
import type { TagStat } from '../Domain/Tag';
import { withMoiraApi } from '../Api/MoiraApiInjection';
import Layout from '../Components/Layout/Layout';
type Props = ContextRoute... |
src/SparklinesReferenceLine.js | codevlabs/react-sparklines | import React from 'react';
import DataProcessor from './DataProcessor';
export default class SparklinesReferenceLine extends React.Component {
static propTypes = {
type: React.PropTypes.oneOf(['max', 'min', 'mean', 'avg', 'median']),
style: React.PropTypes.object
};
static defaultProps = ... |
frontend/src/containers/PlayerNav/index.js | webrecorder/webrecorder | import React from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import PlayerNavUI from 'components/player/PlayerNavUI';
const mapStateToProps = ({ app }) => {
return {
collectionLoaded: app.getIn(['collection', 'loaded']),
source: app.getIn(['appSettings', 'sou... |
src/components/EditProfile.js | partneran/partneran | import React, { Component } from 'react';
import Footer from './Footer/Footer'
import { Editor } from 'react-draft-wysiwyg';
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css';
import draftToHtml from 'draftjs-to-html';
import Loading from './Lib/Loading';
import { assign } from 'lodash'
// import { isLoggedIn }... |
ui/src/components/FocusGroup/FocusGroup.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import onClickOutside from 'react-onclickoutside';
class FocusGroup extends Component {
static propTypes = {
className: PropTypes.string,
onFocus: PropTypes.func,
onBlur: PropTypes.func,
hasFocus: PropTypes.bool,
childr... |
src/components/auth/UnauthenticatedRoute.js | mg4tv/mg4tv-web | import React from 'react'
import {Redirect, Route} from 'react-router'
import auth from '../../auth'
const UnauthenticatedRoute = ({component: Component, ...rest}) => (
<Route {...rest} render={(props) => (
(!auth.isAuthenticated) ?
<Component {...props} /> :
<Redirect
to={{
pathn... |
src/index.js | reactjs-andru1989/blog | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
// Switch searches the first Route component path match with current browser route
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise fr... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | quentinbernet/quentinbernet.github.io | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | abcang/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { changeComposeSensitivity } from 'mastodon/actions/compose';
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl';
const messages = defineMessages({
... |
js/App/Components/Device/Common/ZWaveIncludeExcludeUI.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
src/components/count-icon.js | josebigio/PodCast | import React from 'react';
const CountIcon = ({ style, count, color="#fafafa", radius="30px" }) => {
const styles = {
...style,
borderRadius: "50%",
width: radius,
height: radius,
lineHeight: radius,
backgroundColor: color ,
textAlign: "center",
fon... |
js/redux/learn-redux/node_modules/react-router/es6/RoutingContext.js | austinjalexander/sandbox | import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has... |
spec/components/chip.js | showings/react-toolbox | import React from 'react';
import Avatar from '../../components/avatar';
import Chip from '../../components/chip';
import style from '../style';
class ChipTest extends React.Component {
state = {
deleted: false,
};
handleDeleteClick = () => {
this.setState({
deleted: true,
});
};
render()... |
pkg/interface/chat/src/js/components/lib/group-item.js | ngzax/urbit | import React, { Component } from 'react';
import { ChannelItem } from './channel-item';
export class GroupItem extends Component {
render() {
const { props, state } = this;
let association = !!props.association ? props.association : {};
let title = association["app-path"] ? association["app-path"] : "Di... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.