path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/svg-icons/image/wb-sunny.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbSunny = (props) => (
<SvgIcon {...props}>
<path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7... |
src/components/tile.js | CuriosityEngineer/TicTacReact | import React from 'react';
import ReactDOM from 'react-dom';
const tileStyle = {
float: 'left',
verticalAlign: 'top',
width: 125,
height: 125,
border: '3px solid transparent',
};
const buttonStyle = {
background: 'transparent',
border: 'none !important',
fontSize: 20,
width: 120,
height: 120,
};
... |
src/containers/Home/HomeContainer.js | FCCColumbus/F3C_Website | import React from 'react';
import HeroContainer from '../Hero/HeroContainer';
import AdminsContainer from '../Admins/AdminsContainer';
import CtaContainer from '../Cta/CtaContainer';
import ResourcesContainer from '../Resources/ResourcesContainer';
import Contributors from '../../components/Contributors';
import styles... |
js/jqwidgets/demos/react/app/combobox/dropdownhorizontalalignment/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxComboBox from '../../../jqwidgets-react/react_jqxcombobox.js';
import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js';
class App extends React.Component {
componentDidMount() {
this.refs.rightAlign.on('checked', ... |
src/components/Main.js | calvinxu2010/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom'
// get data of the images
var imageDatas = require('../data/imageDatas.json');
//let yeomanImage = require('../images/yeoman.png');
//get URL info from image files path by autoexec function... |
internals/templates/app.js | bsr203/react-boilerplate | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
// TODO constrain eslint import/no-unresolved rule to this block
// Load the manifest.json file and the .htaccess file
import 'file?name=[name].[ext]!./manifest.json'; // eslint-disable-lin... |
src/svg-icons/action/schedule.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSchedule = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H... |
src/svg-icons/hardware/headset-mic.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadsetMic = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/>
... |
app/components/BodyTooltip/BodyTooltip.js | medialab/hyphe-browser | import './BodyTooltip.styl'
import React from 'react'
import ReactDOM from 'react-dom'
import ReactTooltip from 'react-tooltip'
// Create root level element for react-tooltips
const domNode = document.createElement('div')
document.body.appendChild(domNode)
// Wrapper component to portal react-tooltips
const BodyPort... |
stories/Resources.js | TeaBough/react-big-calendar | import React from 'react'
import { storiesOf } from '@storybook/react'
import { DragableCalendar } from './helpers'
import resources from './helpers/resourceEvents'
storiesOf('Resources', module).add('demo', () => (
<DragableCalendar events={resources.events} resources={resources.list} />
))
|
src/svg-icons/notification/network-locked.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNetworkLocked = (props) => (
<SvgIcon {...props}>
<path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 1... |
packages/node_modules/@ciscospark/react-component-incoming-call/src/index.js | Altocloud/alto-react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Avatar from '@ciscospark/react-component-avatar';
import ButtonControls from '@ciscospark/react-component-button-controls';
import {ICON_TYPE_VIDEO_OUTLINE, ICON_TYPE_EXIT} from '@ciscospark/react-component-icon'... |
packages/web/examples/ReactiveComponentWithAggregation/src/index.js | appbaseio/reactivesearch | /* eslint react/prop-types: 0 */
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {
ReactiveBase,
ReactiveComponent,
ReactiveList,
SelectedFilters,
} from '@appbaseio/reactivesearch';
import './index.css';
class Main extends Component {
render() {
return (
<ReactiveBase
... |
app/pages/home-common/featured-project.spec.js | jelliotartz/Panoptes-Front-End | import { shallow } from 'enzyme';
import React from 'react';
import assert from 'assert';
import FeaturedProject from './featured-project';
describe('FeaturedProject', () => {
it('should render without crashing', () => {
shallow(<FeaturedProject />);
});
it('should have a section as container', () => {
... |
client/components/singleentry/DetailPage.js | MusicConnectionMachine/VisualizationG6 | import React from 'react'
import DetailTable from './DetailTable'
import MCMSearch from '../../services/MCMSearch'
import Spinner from 'react-spinkit'
import '../../../style/details.scss'
import WidgetComponent from '../WidgetComponent'
export default class DetailPage extends React.Component {
constructor ... |
views/decoration_toggle.js | rakesh-mohanta/black-screen | import React from 'react';
export default React.createClass({
getInitialState() {
return {enabled: this.props.invocation.state.decorate};
},
handleClick(event) {
stopBubblingUp(event);
var newState = !this.state.enabled;
this.setState({enabled: newState});
this.prop... |
src/Sandbox/MLmodels/Chatbot/Message.js | MLsandbox/MLsandbox | import React, { Component } from 'react';
const Message = ({message}) => {
if (message.message) {
return (
<li className={`${message.from}-message`}><div className="sender-bubble">{message.message}</div></li>
);
} else {
return null;
}
};
export default Message; |
fields/types/text/TextFilter.js | cermati/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
SegmentedControl,
} from '../../../admin/client/App/elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ la... |
src/components/Header_def/Header.js | IgorKilipenko/KTS_React | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isomorp... |
src/svg-icons/device/signal-wifi-3-bar-lock.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi3BarLock = (props) => (
<SvgIcon {...props}>
<path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-... |
packages/wix-style-react/src/MobilePreviewWidget/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
columns,
divider,
code,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../test/storySettings';
import MobilePreviewWidget from '..';
import Box from '../.... |
src/icons/Filter7Icon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class Filter7Icon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 10H2v32c0 2.21 1.79 4 4 4h32v-4H6V10zm36-8H14c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 ... |
src/svg-icons/places/business-center.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBusinessCenter = (props) => (
<SvgIcon {...props}>
<path d="M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1... |
src/components/CollectiveCategoryPicker.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import colors from '../constants/colors';
import withIntl from '../lib/withIntl';
import { defineMessages } from 'react-intl';
class CollectiveCategoryPicker extends React.Component {
static propTypes = {
categories: PropTypes.arrayOf(PropTypes.strin... |
demo/sections/MultipleSection.js | affinipay/react-bootstrap-autosuggest | import shallowEqual from 'fbjs/lib/shallowEqual'
import React from 'react'
import {
Alert,
Button,
Checkbox,
ControlLabel,
FormControl,
FormGroup
} from 'react-bootstrap'
import Autosuggest, { ItemAdapter } from 'react-bootstrap-autosuggest'
import Anchor from './Anchor'
import Playground from './Playground... |
src/parser/monk/windwalker/modules/resources/EnergyCapTracker.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Icon from 'common/Icon';
import SPELLS from 'common/SPELLS';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { formatDuration, formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import RegenResourceCapTracker... |
src/config/routes.js | mikeyamadeo/node-api-server | import React from 'react'
import { Route } from 'react-router'
import App from '../App'
import Home from '../App/views/Home'
import TrainerDetails from '../App/views/TrainerDetails'
var routes = (
<Route component={App} >
<Route path='/' component={Home} />
<Route path='/trainers/:id' component={TrainerDetai... |
packages/components/src/RatioBar/RatioBar.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import { Trans } from 'react-i18next';
import { RatioBarComposition } from './RatioBarComposition.component';
import { EmptyLine, FilledLine, ErrorLine } from './RatioBarLines.component';
import { getTheme } from '../theme';
import ratioBarTheme from './Rat... |
app/components/UseConditions/index.js | juanda99/arasaac-frontend | /**
*
* UseConditions
*
*/
import React from 'react'
import { FormattedMessage } from 'react-intl'
import View from 'components/View'
import messages from './messages'
// const license = <a href='https://creativecommons.org/licenses/by-nc-sa/3.0/' target='_blank'><FormattedMessage {...messages.license} /></a>
const o... |
src/layouts/layout-3-5.js | nuruddeensalihu/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className + ' vertical'} onClick={onClick}>
{components[0]}
{components[1]}
{components[2]}
</div>
);
|
app/javascript/mastodon/containers/timeline_container.js | corzntin/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import PublicTim... |
src/mui/layout/MenuItemLink.js | marmelab/admin-on-rest | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MenuItem from 'material-ui/MenuItem';
import { withRouter } from 'react-router';
export class MenuItemLinkComponent extends Component {
static propTypes = {
history: PropTypes.object.isRequired,
onClick: PropTypes... |
examples/src/components/Contributors.js | pedroseac/react-select | import React from 'react';
import Select from 'react-select';
const CONTRIBUTORS = require('../data/contributors');
const MAX_CONTRIBUTORS = 6;
const ASYNC_DELAY = 500;
const Contributors = React.createClass({
displayName: 'Contributors',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
ret... |
src/svg-icons/action/today.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToday = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/>
</SvgIcon>
);
Ac... |
test/test_helper.js | arp82/ReactReduxBoardGames | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/svg-icons/content/font-download.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFontDownload = (props) => (
<SvgIcon {...props}>
<path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13... |
src/svg-icons/image/looks-3.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks3 = (props) => (
<SvgIcon {...props}>
<path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v... |
src/Pages/Coffee.js | LaurentEtienne/Kfe | import React, { Component } from 'react';
import CoffeeStore from "../Stores/Coffee";
import RichTextElement from '../Components/RichTextElement';
let getState = (props) => {
return {
coffee: CoffeeStore.getCoffee(props.params.coffeeSlug)
};
};
class Coffee extends Component {
constructor(props) {
supe... |
src/routes/index.js | danieljwest/ExamGenerator | import React from 'react'
import { Route, IndexRoute } from 'react-router'
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardless... |
App/MemberEdit.js | adnanhemani/RideApp | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Navigator,
ScrollView,
ListView,
Alert,
} from 'react-native';
import {
Platform,
TouchableHighlight,
TouchableNativeFeedback,
} from "react-native";
import NavigationBar from 'react-native-navbar';
var REQUEST_URL = 'https:/... |
src/components/GKM/ItemsPage.js | oded-soffrin/gkm_viewer | import React from 'react';
import _ from 'lodash'
import Item from './Item'
import Category from './Category'
import Input from '../Common/Input'
//TODO: Categories refactor
const ItemsPage = ({ items, addItem, categories, addCategory, updateItem, deleteItem, resetDb }) => {
let itemsJsx = _.map(items, (i) => (<Item... |
react/src/objects/centered-column/SprkCenteredColumn.stories.js | sparkdesignsystem/spark-design-system | import React from 'react';
import SprkCenteredColumn from './SprkCenteredColumn';
import { markdownDocumentationLinkBuilder } from '../../../../storybook-utilities/markdownDocumentationLinkBuilder';
export default {
title: 'Components/Centered Column',
component: SprkCenteredColumn,
decorators: [
story => <d... |
src/components/ResultWiki.js | MutakamwoyoCloud/MCloud | import React, { Component } from 'react';
var Row = require('react-foundation').Row;
require('react-foundation');
export default class ResultWiki extends Component {
constructor(props){
super(props);
if (Array.isArray(props.location.state.data))
this.datos = props.location.state.data[0].data;
else... |
webpack/scenes/Subscriptions/SubscriptionsPage.js | tstrachota/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { LinkContainer } from 'react-router-bootstrap';
import { Grid, Row, Col, Form, FormGroup } from 'react-bootstrap';
import { Button } from 'patternfly-react';
import TooltipButton from 'react-bootstrap-tooltip-button';
import { renderT... |
index.ios.js | fridl8/cold-bacon-client | import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import { StackNavigator } from 'react-navigation';
import GameStart from './containers/GameStart';
import LaunchScreen from './containers/LaunchScreen';
import GameplayScreen from './containers/GameplayScreen';
import ResultsScreen fr... |
docs/src/examples/collections/Form/Usage/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message, Icon } from 'semantic-ui-react'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
const FormFormUsageExamples = () => (
<ExampleSection title='Usage'>
<Message ... |
src/svg-icons/action/timeline.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTimeline = (props) => (
<SvgIcon {...props}>
<path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07... |
frontend/app/components/table.js | LINKIWI/linkr | import React from 'react';
/**
* Component describing a table with a header and row entries.
*/
export default class Table extends React.Component {
static propTypes = {
headerClassName: React.PropTypes.string,
// Expected to be of shape ['col 0 name', 'col 1 name', ...]
header: React.PropTypes.arrayOf... |
tests/TextField/TextField.js | appbaseio/reactivebase | import React from 'react';
import { ReactiveBase, TextField, ReactiveList } from '../../app/app.js';
import {config} from './config';
import { mount } from 'enzyme';
function testComponent(cb) {
const onData = function(res, err) {
cb(res, err);
}
const component = mount(
<ReactiveBase
app={config.ReactiveBa... |
internals/templates/containers/App/index.js | Dmitry-N-Medvedev/motor-collection | /**
*
* 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... |
packages/generator-fluxible/app/templates/components/Html.js | pablolmiranda/fluxible | import React from 'react';
import ApplicationStore from '../stores/ApplicationStore';
class Html extends React.Component {
render() {
return (
<html>
<head>
<meta charSet="utf-8" />
<title>{this.props.context.getStore(ApplicationStore).getPageTitle()}... |
app/containers/ProgressBarPage/index.js | liuyanghejerry/react-westworld | /*
*
* LargeProgressBar
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import styled from 'styled-components';
import {
selectLargeTitle,
selectLargeMin,
selectLargeMax,
selectLargeCurrent,
selectSmallTitle,
selectSmallMin,
... |
packages/@lyra/default-layout/src/components/DefaultLayoutContainer.js | VegaPublish/vega-studio | import React from 'react'
import LoginWrapper from 'part:@lyra/base/login-wrapper?'
import {RouterProvider} from 'part:@lyra/base/router'
import AppLoadingScreen from 'part:@lyra/base/app-loading-screen'
import * as urlStateStore from '../datastores/urlState'
import getOrderedTools from '../util/getOrderedTools'
import... |
docs/src/app/components/pages/components/Stepper/CustomIcon.js | tan-jerene/material-ui | import React from 'react';
import {
Step,
Stepper,
StepLabel,
} from 'material-ui/Stepper';
import WarningIcon from 'material-ui/svg-icons/alert/warning';
import {red500} from 'material-ui/styles/colors';
/**
* Custom icons can be used to create different visual states.
*/
class CustomIcon extends React.Compon... |
src/TextAreaLarge/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
import WrapperStyles from '../Wrapper/styles.css';
import TypographyStyles from '../Typography/styles.css';
import Typography from '../Typography';
import TextArea from '../TextArea';
... |
App/Components/Editor/index.js | BelinChung/react-native-hiapp | import React from 'react'
import PropTypes from 'prop-types'
import Icon from '../Icon'
import {
View,
TextInput,
StyleSheet,
TouchableOpacity
} from 'react-native'
export default class Editor extends React.Component {
render() {
const { enableTools, text, placeholder, onChangeText, ...props } = this.pr... |
src/.templates/js/test.js | Astrocoders/astroman | const { stripIndent } = require('common-tags')
const chalk = require('chalk')
const fs = require('fs')
module.exports.args = { name: 'Component name' }
module.exports.where = (name) => {
if (!fs.existsSync('components')){
fs.mkdirSync('components')
return `components/${name}.test.js`
} else {
return `... |
src/molecules/formfields/ToggleField/index.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import omit from 'lodash/omit';
import Button from 'atoms/Button';
import Layout, { Col } from 'atoms/Layout';
import ErrorMessage from 'atoms/ErrorMessage';
import { renderTooltip } from 'utils/fieldUtils';
import st... |
packages/material-ui-icons/src/ImportContacts.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ImportContacts = props =>
<SvgIcon {...props}>
<path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 2... |
app/js/todo/list.js | pengux/react-rocket-boilerplate | import React from 'react';
import Reflux from 'reflux';
import TodoStore from './store';
import TodoActions from './actions';
export default React.createClass({
mixins: [Reflux.ListenerMixin],
getInitialState() {
return {
todos: []
};
},
componentWillMount() {
this.listenTo(TodoStore, this.onTodoChange... |
client/admin/users/UsersPage.js | iiet/iiet-chat | import { Button, ButtonGroup, Icon } from '@rocket.chat/fuselage';
import React from 'react';
import Page from '../../components/basic/Page';
import VerticalBar from '../../components/basic/VerticalBar';
import { useTranslation } from '../../contexts/TranslationContext';
import { useRouteParameter, useRoute } from '..... |
test/ListGroupItemSpec.js | HPate-Riptide/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import ListGroupItem from '../src/ListGroupItem';
describe('<ListGroupItem>', () => {
it('Should output a "span" with the class "list-group-item"', () => {
let instance = ReactTestUtils.renderInto... |
src/client.js | ValentinAlexandrovGeorgiev/deal | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './stores'
import createHistory from 'history/createBrowserHistory'
import { Route } from 'react-router'
import... |
examples/js/column-filter/demo.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import TextFilter from './text-filter';
import TextFilterWithDefaultValue from './text-filter-with-default-value';
import TextFilterWithCondition from './text-filter-with-eq-condition';
import ProgrammaticallyTextFilter from './text-filter-programmatically';
import Reg... |
client/js/components/CartPreview.js | ongmin/shopshop | import React from 'react'
export default (props) => {
const { cart } = props
return (
<a href={Routes.spree_cart_path()}>
<span className="glyphicon glyphicon-shopping-cart" />
{I18n.t('spree.cart')}: {I18n.toCurrency(cart.total)}
</a>
)
}
|
examples/basic.js | dundalek/react-blessed-contrib | import React, { Component } from 'react';
import blessed from 'blessed';
import { render } from 'react-blessed';
import { Bar } from '../src/index';
// Rendering a simple centered box with a bar chart
class App extends Component {
render() {
return (
<box top="center"
left="center"
wi... |
lib/ui/src/modules/ui/components/left_panel/header.js | nfl/react-storybook | import PropTypes from 'prop-types';
import React from 'react';
import { baseFonts } from '../theme';
const wrapperStyle = {
background: '#F7F7F7',
marginBottom: 10,
};
const headingStyle = {
...baseFonts,
textTransform: 'uppercase',
letterSpacing: '1.5px',
fontSize: '12px',
fontWeight: 'bolder',
color... |
packages/material-ui-icons/src/SimCard.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0-6h-2v-2h2v2zm4 2h-2v-4h2v4z" /></g>
, 'SimCard'... |
examples/pages/debounce.js | jasonslyvia/react-lazyload | import React, { Component } from 'react';
import LazyLoad from '../../src/';
import Widget from '../components/Widget';
import Operation from '../components/Operation';
import { uniqueId } from '../utils';
export default class Debounce extends Component {
constructor() {
super();
const id = uniqueId();
... |
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2018-01-21/src/main/js-surface-react-native.js | js-works/js-surface | import adaptComponentClass from './adaption/adaptComponentClass';
import adaptReactifiedDefineComponent from './adaption/adaptReactifiedDefineComponent';
import Config from './config/Config';
import ElementInspector from './helper/ElementInspector';
import React from 'react';
import ReactNative from 'react-native';
c... |
src/components/RestoreCardsPage/RestoreCardsPage.js | iamakulov/Colr | import React from 'react';
import { connect } from 'react-redux';
import { switchToNextPage } from '../../reducers/page.js';
import { addGuess, switchToBlock } from '../../reducers/restore.js';
import BlockGallery from '../BlockGallery/BlockGallery.js';
import Message from '../Message/Message.js';
import Card from '../... |
app/javascript/mastodon/features/ui/components/bundle_column_error.js | imas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import Column from './column';
import ColumnHeader from './column_header';
import ColumnBackButtonSlim from '../../../components/column_back_button_slim';
import IconButton from '../../../components/... |
test/react/visual/tests/Util/Card.js | JulienPradet/pigment-store | import React from 'react'
import PigmentStore from 'pigment-store'
import Card from '../../../../../src/core/display/App/util/View/Card/index'
const cardContent = {
title: 'Card Title',
subTitle: 'Short summary of the card',
children: 'Actual description of the card. The content can be very versatile and as long... |
src/demos/kepler.gl/1-basic-keplergl/src/app-root.js | uber-common/vis-academy | // Copyright (c) 2018 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
antd-dva/game-ui-editor/src/components/GlobalFooter/index.js | JianmingXia/StudyTest | import React from 'react';
import classNames from 'classnames';
import styles from './index.less';
export default ({ className, links, copyright }) => {
const clsString = classNames(styles.globalFooter, className);
return (
<div className={clsString}>
{
links && (
<div className={styles... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | VikingDen/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { Styles, TextField, FlatButton } from 'material-ui';
import AddContactStore from 'stores/AddContactStore';
import AddContactActionCreators from 'actions... |
test/regressions/site/src/tests/ListSubheader/PrimaryListSubheader.js | und3fined/material-ui | // @flow weak
import React from 'react';
import { ListSubheader } from 'material-ui/List';
export default function PrimaryListSubheader() {
return (
<ListSubheader primary>Title</ListSubheader>
);
}
|
src/svg-icons/image/filter-b-and-w.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterBAndW = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16l-7-8v8H5l7-8V5h7v14z"/>
</SvgIcon>
);
ImageFilterBAndW = pure(Im... |
src/component/Skills/GridContainer.js | dentemple/developer-portfolio | import React from 'react'
import PropTypes from 'prop-types'
import SkillList from './SkillList'
const GridHeader = ({ header }) => {
return (
<h4>{header}</h4>
)
}
const GridContainer = ({ header, list }) => {
const style = {
display: 'block'
}
return (
<div style={style}>
<GridHeader hea... |
app/components/common/action-card/index.js | Vizzuality/forest-watcher | import React from 'react';
import PropTypes from 'prop-types';
import { View, Text, TouchableHighlight, Image } from 'react-native';
import Theme from 'config/theme';
import styles from './styles';
const ActionCard = ({ label, width, height, action, icon }) => (
<TouchableHighlight activeOpacity={action ? 0.5 : 1} u... |
src/components/projects/show/Section.js | tehfailsafe/portfolio | import React from 'react';
const Section = React.createClass({
render(){
return(
<div className="section" style={{backgroundColor: this.props.bg}}>
{ this.props.title &&
<div className="copy">
<h4>{this.props.title}</h4>
</div>
}
{this.props.... |
src/media/js/addon/components/version.js | mozilla/marketplace-submission | import classnames from 'classnames';
import moment from 'moment';
import React from 'react';
import {ReverseLink} from 'react-router-reverse';
import {Note, NoteSubmit} from './comm';
import ReviewActions from './reviewActions';
import * as constants from '../constants';
import ConfirmButton from '../../site/component... |
_pages/cities/src/app/cmp/SectionHeading.js | verekia/verekia.github.io | // @flow
import React from 'react'
const SectionHeading = ({
title,
emoji,
subtitle,
}: {
title: string,
emoji: string,
subtitle?: string,
}) => (
<div
style={{ padding: 0, background: 'white', zIndex: 5, top: 25 }}
className=" sticky sticky-top"
>
<div
style={{
background: '... |
src/components/Dropdown/Dropdown.js | sars/appetini-front | import React from 'react';
import _Dropdown from 'react-toolbox/lib/dropdown';
import classNames from 'classnames';
import events from 'react-toolbox/lib/utils/events';
import Input from 'components/Input/Input';
import dropdownStyles from './styles.scss';
import toolboxStyles from 'react-toolbox/lib/dropdown/style.scs... |
src/PhotoLayoutEditor/Container/Cropper/Block.js | RedgooseDev/react-photo-layout-editor | import React from 'react';
import ReactDom from 'react-dom';
import $ from 'jquery/dist/jquery.slim';
import classNames from 'classnames';
import { util } from '../../lib';
const controlEvent = {
start: (util.isTouchDevice()) ? 'touchstart' : 'mousedown',
move: (util.isTouchDevice()) ? 'touchmove' : 'mousemove',
e... |
react/src/components/alerts/SprkAlert.stories.js | sparkdesignsystem/spark-design-system | import React from 'react';
import SprkAlert from './SprkAlert';
import { markdownDocumentationLinkBuilder } from '../../../../storybook-utilities/markdownDocumentationLinkBuilder';
export default {
title: 'Components/Alert',
decorators: [
story => <div className="sprk-o-Box">{story()}</div>
],
component: S... |
app/components/List/index.js | jwarning/react-ci-test | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
src/renderer/components/MapFilter/ReportView/PDFViewer.js | digidem/ecuador-map-editor | // @flow
import React from 'react'
import { makeStyles } from '@material-ui/core/styles'
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack'
import Paper from '@material-ui/core/Paper'
import { defineMessages, useIntl } from 'react-intl'
import clsx from 'clsx'
import Loading from '../../Loading'
import ... |
pages/journalDetail.js | k97/node-slasher-app | import React from 'react';
import axios from 'axios';
import mediumZoom from 'medium-zoom';
import Layout from '../components/Layout/index';
import JournalPost from '../components/Journal/Post';
import JournalForm from "../components/Journal/JournalForm";
import DisplayAlert from "../components/Home/DisplayAlert";
imp... |
src/parser/deathknight/frost/CONFIG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Khazak } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a... |
fields/types/select/SelectColumn.js | udp/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var SelectColumn = React.createClass({
displayName: 'SelectColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.ob... |
actor-apps/app-web/src/app/components/SidebarSection.react.js | damoguyan8844/actor-platform | import React from 'react';
import HeaderSection from 'components/sidebar/HeaderSection.react';
import RecentSection from 'components/sidebar/RecentSection.react';
class SidebarSection extends React.Component {
static propTypes = {
selectedPeer: React.PropTypes.object
};
constructor(props) {
super(props... |
components/time_picker/ClockMinutes.js | rubenmoya/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { range } from '../utils/utils';
import Hand from './ClockHand';
import Face from './ClockFace';
const minutes = range(0, 60, 5);
const step = 360 / 60;
class Minutes extends Component {
static propTypes = {
center: PropTypes.s... |
stories/Card.stories.js | ProteinsWebTeam/interpro7-client | import React from 'react';
import { foundationPartial } from '../src/styles/foundation';
import interpro from 'styles/interpro-new.css';
import ebiGlobalStyles from 'ebi-framework/css/ebi-global.css';
import pageStyle from 'pages/style.css';
const f = foundationPartial(interpro, ebiGlobalStyles, pageStyle);
export de... |
DemoApp/lib/login-fb/index.js | andyfen/react-native-UIKit | import React from 'react';
import {
StyleSheet,
TouchableOpacity,
Image,
} from 'react-native';
import { gutter } from '../variables';
const LoginFb = ({ onPress }) => (
<TouchableOpacity onPress={onPress} style={styles.outer}>
<Image source={require('./assets/fb-login-button.png')}/>
</TouchableOpacity... |
src/client/components/user-profile/user-profile.js | nemecec/base | 'use strict';
import './user-profile.less';
import React from 'react';
import Bootstrap from 'react-bootstrap';
import UserActions from '../../flux/actions/user-actions';
import UserStore from '../../flux/stores/user-store';
import ActionTypes from '../../flux/constants/action-types';
export default React.createClass... |
src/svg-icons/action/settings-backup-restore.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBackupRestore = (props) => (
<SvgIcon {...props}>
<path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.... |
app/javascript/mastodon/components/domain.js | theoria24/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... |
react-full/index.js | bfocht/react-meetup-20161214 | import React from 'react';
import { render } from 'react-dom';
import Index from './src/components/index';
render(<Index items={[1,2,3]} />, document.getElementById('js-main'));
|
src/eventDiagram/Publishers.js | camjackson/rr-docs-spike | import React from 'react';
import { services } from '../data';
const publishersOf = eventType => (
Object.keys(services).reduce((publishers, serviceName) => (
services[serviceName].publishes.includes(eventType) ? publishers.concat(serviceName) : publishers
), [])
);
const Publishers = ({ eventType }) => (
<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.