path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
app/javascript/mastodon/features/followers/index.js | Toootim/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import {
fetchAccount,
fetchFollowers,
expandFollowers,
} from '../../actions/account... |
src/components/ConnectionIndicator/index.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import Card from '@material-ui/core/Card/Card';
import CardHeader from '@material-ui/core/CardHeader';
import OfflineIcon from './OfflineIcon';
const enhance = translate();
const ConnectionIndicator = ({ isConnec... |
assets/javascripts/kitten/components/form/field/components/error.js | KissKissBankBank/kitten | import React from 'react'
import { Text } from '../../../typography/text'
export const FieldError = ({ children, ...others }) => {
return (
<div className="k-u-margin-top-single">
<Text
tag="p"
color="error"
size="micro"
weight="regular"
lineHeight="normal"
s... |
src/server.js | Arunvirat/Logi-heroes | 'use strict';
import path from 'path';
import { Server } from 'http';
import Express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import routes from './routes';
import NotFoundPage from './components/NotFoundPage';
/... |
src/web/components/InfoMessage.js | faalsh/Lama | import React from 'react';
import { StyleSheet, css } from 'aphrodite'
import '../assets/info.png'
class InfoMessage extends React.Component {
handleDismiss(){
this.props.actions.dismissError()
}
render() {
const styles = StyleSheet.create({
panel: {
position: 'fixed',
backg... |
app/components/FSBrowser/index.js | jakubrohleder/aurelius | /**
*
* FSBrowser
*
*/
import React from 'react';
import ImageWrapper from './ImageWrapper';
import styles from './styles.css';
import empty from './empty.svg';
export default function FSBrowser(props) {
const { fs, onEdit, onRemove } = props;
const handleChange = (oldName) => (newName) => {
onEdit(oldName,... |
examples/async/index.js | Zack-Tillotson/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/notifications/components/clear_column_button.js | res-ac/mstdn.res.ac | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn column-he... |
classic/src/scenes/wbui/TopLevelErrorBoundary.js | wavebox/waveboxapp | import React from 'react'
import { SUPPORT_URL } from 'shared/constants'
import pkg from 'package.json'
import WBRPCRenderer from 'shared/WBRPCRenderer'
// Stick to inline styles here to reduce dependencies for this
const styles = {
root: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',... |
src/page/table-demo.js | knledg/react-webpack-skeleton | import React from 'react';
import { Page, Panel, Table, TableHead, TableBody, TableRow, Button, EditableText, Pagination, Breadcrumbs } from 'react-blur-admin';
import { Link } from 'react-router';
import {Row, Col} from 'react-flex-proto';
export class TableDemo extends React.Component {
constructor(props) {
... |
node_modules/react-router/es/Router.js | iEnder/React-Blog | 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 _objectWithoutProperties(obj, keys) { var target = {... |
src/views/icons/UnMuteButtonIcon.js | physiii/open-automation | import React from 'react';
import IconBase from './IconBase.js';
import './StopButtonIcon.css';
export const UnMuteButtonIcon = () => (
<IconBase viewBox="0 0 20 20">
<path d="M9.344,2.593c-0.253-0.104-0.547-0.045-0.743,0.15L4.486,6.887H1.313c-0.377,0-0.681,0.305-0.681,0.681v4.916c0,0.377,0.304,0.681,0.681,0.681h3.... |
packages/cf-component-dropdown/example/basic/component.js | manatarms/cf-ui | import React from 'react';
import {
Dropdown,
DropdownLink,
DropdownSeparator
} from 'cf-component-dropdown';
import {
Button as ButtonUnstyled,
ButtonTheme,
ButtonGroup as ButtonGroupUnstyled,
ButtonGroupTheme
} from 'cf-component-button';
import { applyTheme } from 'cf-style-container';
const Button = ... |
node_modules/enzyme/src/ShallowWrapper.js | paul-brabet/tinkerlist | import React from 'react';
import flatten from 'lodash/flatten';
import unique from 'lodash/uniq';
import compact from 'lodash/compact';
import cheerio from 'cheerio';
import ComplexSelector from './ComplexSelector';
import {
nodeEqual,
nodeMatches,
containsChildrenSubArray,
propFromEvent,
withSetStateAllowe... |
tests/components/mapComponentTest.js | mordrax/cotwmtor | import React from 'react';
import ReactDom from 'react-dom';
import {shallow} from 'enzyme';
import Map, {CalculatePathRotation} from '/client/main/mapComponent.js';
import * as cotw from '/core/cotwContent.js';
import * as map from '/core/maps.js';
describe("<Map>", () => {
let component;
let props = {};
it('s... |
app/javascript/mastodon/features/notifications/components/clear_column_button.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn column-he... |
examples/master-detail/app.js | BerkeleyTrue/react-router | import React from 'react'
import { render, findDOMNode } from 'react-dom'
import { createHistory, useBasename } from 'history'
import { Router, History, Route, IndexRoute, Link } from 'react-router'
import ContactStore from './ContactStore'
require('./app.css')
const history = useBasename(createHistory)({
basename:... |
src/components/app.js | endreujhelyi/React-Router-Redux-Form | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
src/scripts/components/menu/Menu.component.story.js | ModuloM/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2016 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: 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
* (at ... |
node_modules/redbox-react/examples/react-transform-catch-errors/index.js | devinfountain/portfolio | import React from 'react'
import App from './components/App'
const root = document.getElementById('root')
React.render(<App />, root)
|
app/src/components/Graph/Graph.js | civa86/web-synth | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import cytoscape from 'cytoscape';
import { ActionHandler } from '../../components/ActionHandler';
//Graph Service
import GraphService from './GraphService'
const graph = GraphService(cytoscape, window);
class Graph extends Component {
... |
tests/components/sankey-tests.js | Apercu/react-vis | import test from 'tape';
import React from 'react';
import {mount} from 'enzyme';
import Sankey from 'sankey';
import BasicSankey from '../../showcase/sankey/basic';
import VoronoiSankey from '../../showcase/sankey/voronoi';
import EnergySankey from '../../showcase/sankey/energy-sankey';
const SANKEY_PROPS = {
node... |
es/components/Video/VideoMouseMoveCapture.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
var disableCursor = {
cursor: 'none'
};
var enableCursor = {};
var MouseMoveCapture = function MouseMoveCapture(_ref) {
var active = _ref.active,
onMouseMove = _ref.onMouseMove;
return _jsx... |
components/ImageList/ImageItem/index.js | samuelngs/px |
import React, { Component } from 'react';
import { View, StyleSheet } from 'react-native';
import ImageInfo from './ImageInfo';
import ImageDisplay from './ImageDisplay';
import ImageActionBar from './ImageActionBar';
export default class ImageItem extends Component {
static defaultProps = {
host: '',
rou... |
web/src/index.js | rferromoreno/NYTSearch | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
examples/api/api_custom.js | DigitalGlobe/jetset | import React from 'react';
import { apiDecorator } from '../../src';
const doAsyncStuff = data => new Promise( resolve =>
setTimeout(() =>
resolve( data.map( item => ({ ...item, foo: 'bar' }) ) )
)
);
export const users = apiDecorator({
url: 'https://jsonplaceholder.typicode.com',
users: {
routes: {... |
src/react/LogMonitorButton.js | wescravens/redux-devtools | import React from 'react';
import brighten from '../utils/brighten';
const styles = {
base: {
cursor: 'pointer',
fontWeight: 'bold',
borderRadius: 3,
padding: 4,
marginLeft: 3,
marginRight: 3,
marginTop: 5,
marginBottom: 5,
flexGrow: 1,
display: 'inline-block',
fontSize: '... |
spec/javascripts/jsx/theme_editor/ThemeEditorModalSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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/widgets/WeatherWidget.js | Timvdv/flexible-dashboard | /**
*
* !! This is actually a 'app' because it's independent from the settings..
* TODO: Implement a system that seperates these two types
*
*/
var Promise = require('es6-promise').Promise;
import React, { Component } from 'react';
/**
* The weather widget gets the temperature from Buienradar.nl in XML format
... |
packages/react/src/components/atoms/text/PublishState/PublishState.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import PublishStateDocs from './PublishState.md';
import PublishState from './index';
export const PublishStateExample = (args) => <PublishState {...args} />;
PublishStateExample.storyName = 'Default';
PublishStateExample.args = {
text:... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
tests/lib/rules/indent-legacy.js | scriptdaemon/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------... |
src/svg-icons/image/assistant-photo.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistantPhoto = (props) => (
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/>
</SvgIcon>
);
ImageAssistantPhoto = pure(ImageAssistantPhoto);
ImageAssistantPhoto.displayName = 'Image... |
app/components/DownloadedGames/DownloadedGames.js | cdiezmoran/playgrounds-desktop | // @flow
import React, { Component } from 'react';
import type { UserGame } from '../../utils/globalTypes';
import UserGameList from './UserGameList';
class DownloadedGames extends Component {
props: {
games: UserGame[]
}
render() {
const { games } = this.props;
return (
<div className="con... |
stories/components/form/formInput/index.js | miaket/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import FormInput from 'shared/components/form/formInput/formInput';
storiesOf('shared/components/form/formInput', module)
.add('Default input', () => (
<FormInput
label="Input"
... |
blueocean-material-icons/src/js/components/svg-icons/device/usb.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceUsb = (props) => (
<SvgIcon {...props}>
<path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.05c-.71.37-1.2 1.1-1.2 1.95 0 1.2... |
Docker/KlusterKiteMonitoring/klusterkite-web/src/containers/ActorsTreePage/ActorsTreePage.js | KlusterKite/KlusterKite | import React from 'react'
import Relay from 'react-relay'
import delay from 'lodash/delay'
import ActorsTreeButtons from '../../components/ActorsTree/ActorsTreeButtons';
import ActorsTreeFlat from '../../components/ActorsTree/ActorsTreeFlat';
import InitiateScanMutation from './mutations/InitiateScanMutation'
class ... |
lib/client/app/scripts/index.js | cofoundervp/Kaptain | import React from 'react';
import ReactDOM from 'react-dom';
import {App} from './containers';
ReactDOM.render(<App />, document.getElementById('main'));
|
app/pages/organization/organization-project-cards.spec.js | amyrebecca/Panoptes-Front-End | /* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-boolean-value': ['error', 'always'] */
/* global describe, it, beforeEach */
import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import Translate from 'react-translate-component';
import OrganizationProjectCards from '.... |
Console/app/node_modules/antd/es/tooltip/index.js | RisenEsports/RisenEsports.github.io | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-run... |
docs/app/Examples/elements/List/Variations/ListExampleVeryRelaxed.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Image, List } from 'semantic-ui-react'
const ListExampleVeryRelaxed = () => (
<List relaxed='very'>
<List.Item>
<Image avatar src='http://semantic-ui.com/images/avatar/small/daniel.jpg' />
<List.Content>
<List.Header as='a'>Daniel Louise</List.Header>
... |
src/DataTable.js | jpdelatorre/react-dtable | import React from 'react';
class DataTable extends React.Component {
constructor(props) {
super(props);
this.columns = [];
this.filters = {};
this.sortOrder = {};
this.state = {
data: props.data,
displayData: props.data,
};
this.filterColumn = this.filterColumn.bind(this);
... |
src/utils.js | edwellbrook/react-typewriter | import React from 'react';
// Enclosing scope for local state variables.
export var styleComponentSubstring = (() => {
let _start;
let _end;
let _styles;
let _index;
// Will deep clone the component tree, wrapping any text within
// the start/end with a styled span.
function alterComponent(component) {... |
app/pages/about/team-page.spec.js | zooniverse/Panoptes-Front-End | /* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-filename-extension': [1, { "extensions": [".js", ".jsx"] }] */
import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import TeamPage from './team-page';
describe('TeamPage', function () {
it('renders without crashing',... |
src/components/planviewer/index.js | jamjar919/bork | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import GraphProvider from '../../containers/graphprovider';
import Graph from '../../components/graph';
import NameList from '../../components/namelist';
import SolutionList fr... |
src/components/features_slide3.js | joakimremler/horse-project | import React, { Component } from 'react';
import SwipeableViews from 'react-swipeable-views';
export default class FeaturesSlide3 extends Component {
render() {
return (
<div className="features-main container">
<img className="features-overlay" src="./data/slider_right.png" alt="Time tracker... |
src/index.js | rajington/vesper-trello | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
mealbotui/src/js/components/Home.js | qjflores/mealbot | import React, { Component } from 'react';
import {About} from './About';
import {ProdctFeatures} from './ProdctFeatures';
import {PoweredBy} from './PoweredBy';
import './../../css/Home.css'
export class Home extends Component {
render() {
return (
<div className="Home-component">
<About />
<ProdctFeatur... |
src/screens/App/screens/Zen/components/index.js | enesTufekci/react-clear-starter-kit | /* @flow */
import React, { Component } from 'react';
import PropType from 'prop-types';
class Zen extends Component {
componentDidMount() {
if (this.props.zen === '') {
this.props.fetchZen();
}
}
render() {
return (
<div className="zen-container">
<div className="zen"> {this.pro... |
src/routes/react-routes.js | Capgemini/mesos-ui | /*jshint esnext: true */
import React from 'react';
import { Route, DefaultRoute, NotFoundRoute } from 'react-router';
import NotFound from '../pages/NotFound';
import Dashboard from '../pages/Dashboard';
import Nodes from '../pages/Nodes';
import Tasks from '../pages/Tasks';
import Frameworks from '../pages/Framework... |
js/components/listSwipe/index.js | HomelandGvarim/FE-Phone | import React, { Component } from 'react';
import { Container, Header, Title, Content, Button, Icon, Text, Left, Right, Body, List, ListItem } from 'native-base';
import styles from './styles';
const datas = [
{
route: 'BasicListSwipe',
text: 'Single SwipeRow',
},
{
route: 'MultiListSwipe',
text: 'Multiple... |
demos/toggles/demos/radioOn.js | isogon/styled-mdl-website | import React from 'react'
import { Radio } from 'styled-mdl'
const demo = () => (
<Radio name="options" value="1" label="First" defaultChecked />
)
const caption = 'Radio On'
const code = '<Radio name="options" value="1" label="First" defaultChecked />'
export default { demo, caption, code }
|
fields/components/columns/CloudinaryImageSummary.js | tony2cssc/keystone | import React from 'react';
const IMAGE_SIZE = 18;
const linkStyle = {
marginRight: 8,
};
const boxStyle = {
borderRadius: 3,
display: 'inline-block',
height: IMAGE_SIZE,
overflow: 'hidden',
verticalAlign: 'middle',
width: IMAGE_SIZE,
};
const imageStyle = {
display: 'block',
height: IMAGE_SIZE,
left: '50%',... |
Realization/frontend/czechidm-core/src/components/advanced/RichTextArea/RichTextArea.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Joi from 'joi';
import { Editor } from 'react-draft-wysiwyg';
import { EditorState, ContentState, convertFromHTML, DefaultDraftBlockRenderMap, getSafeBodyFromHTML } from 'draft-js';
import { stateToHTML } from 'dr... |
src/components/common/ColorWrap.js | Scratch-it/react-color | 'use strict' /* @flow */
import React from 'react'
import merge from 'merge'
import isPlainObject from 'lodash.isplainobject'
import debounce from 'lodash.debounce'
import color from '../../helpers/color'
import shallowCompare from 'react-addons-shallow-compare'
export const ColorWrap = (Picker) => {
class ColorPic... |
src/components/programs/inshelter/PrimaryTabs/Tutoring.js | KidsFirstProject/KidsFirstProject.github.io | import React from 'react';
const Tutoring = () => {
return (
<React.Fragment>
<h3>Tutoring</h3>
<p>
With an emphasis on education and support in academic achievement, our
one on one tutoring will bring in volunteers of all ages, whether it is
a math teacher or high school chem... |
fields/types/location/LocationFilter.js | xyzteam2016/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return {
inverted: INVERTED_O... |
src/routes/BlogRoute/components/BlogItemsPage.js | easingthemes/easingthemes.github.io | import React from 'react';
import Blog from '../../../components/Blog';
export const BlogItemsPage = React.createClass({
componentWillMount () {
const category = 'Blog';
if (!this.props.children) {
this.props.fetchBlogItems(category);
}
},
render () {
const posts = this.props.posts || {};
if (this.pr... |
examples/todomvc/index.js | dminkovsky/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
src/components/WeatherIcon/WeatherIcon.js | maximgatilin/weathernow | import React from 'react';
import PropTypes from 'prop-types';
import SunIcon from './../icons/SunIcon';
import SunCloudsIcon from './../icons/SunCloudsIcon';
import MoonIcon from './../icons/MoonIcon';
import MoonCloudsIcon from './../icons/MoonCloudsIcon';
import CloudsIcon from './../icons/CloudsIcon';
import RainI... |
packages/icons/src/md/image/Camera.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdCamera(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52... |
src/components/add-tag-modal/form/index.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
app/client/routes.js | Kharatsa/SampleTransportTracking | import React from 'react';
import Route from 'react-router/lib/Route';
import IndexRoute from 'react-router/lib/IndexRoute';
import {
App, Dashboard, Changes, Sample, Admin, MissingRoute,
TATPage, LabTestsPage
} from './pages';
import {DEFAULT_AFTER_DATE, DEFAULT_BEFORE_DATE} from '../common/sttworkflow';
import {U... |
client/src/App.js | wapjude/document-management-system | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
wail-ui/components/collections/selectCollection/search/index.js | N0taN3rd/wail | import React from 'react'
import PropTypes from 'prop-types'
import { BehaviorSubject } from 'rxjs'
import IconButton from 'material-ui/IconButton'
import SearchI from 'material-ui/svg-icons/action/search'
import Card from 'material-ui/Card/Card'
import SearchInput from '../../../utilComponents/searchInput'
import Orde... |
index.js | Crisa221/Lista-Giocatori | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import rootReducer from './reducer/reducer.js'
const store = createStore( rootReducer );
render(
<Provider store={store}>
<table />
<form />
</Provider>,
... |
src/svg-icons/image/timer-10.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer10 = (props) => (
<SvgIcon {...props}>
<path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-... |
webpack/components/extensions/HostDetails/Tabs/ContentTab/EmptyPage.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import PFEmptyPage from 'foremanReact/components/common/EmptyState/EmptyStatePattern';
const EmptyPage = ({ header }) => (
<div className="host-details-tab-item">
<PFEmptyPage
icon="enterprise"
header={header}
description="This is a... |
src/components/list/list-input.spec.js | xamfoo/react-redux-testing-demo | import ListInput from './list-input';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import React from 'react';
import sinon from 'sinon';
describe('<ListInput/>', () => {
let wrapper;
const spies = {
onSubmit: sinon.spy(),
};
beforeEach(() => {
const props = { onSubmit: spies.onSu... |
src/containers/Asians/TabControls/AdjudicatorTest/ViewAdjudicatorTest/3_TestScores/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import _ from 'lodash'
import Instance from './Instance'
export default connect(mapStateToProps)(({
adjudicatorTestScores,
adjudicators,
institutionsById
}) => {
let sortedAdjudicators = _.cloneDeep(adjudicators)
sortedAdjudicators.sort((a, b)... |
docs/src/app/components/pages/components/Divider/ExampleList.js | nathanmarks/material-ui | import React from 'react';
import Divider from 'material-ui/Divider';
import {List, ListItem} from 'material-ui/List';
import MobileTearSheet from '../../../MobileTearSheet';
const DividerExampleList = () => (
<MobileTearSheet height={250}>
<List>
<ListItem insetChildren={true} primaryText="Janet Perkins B... |
src/app/core/atoms/icon/icons/eye-crossed.js | blowsys/reservo | import React from 'react'; const EyeCrossed = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><g transform="translate(2.000000, 3.000000)"><path d="M8.03900788,9.10312774 C8.01342247,8.97489743 8,8.84208412 8,8.70590496 C8,7.60133546 8.88772964,6.70590496 10,6.70590496 C10.135967,6.70590496 10.268765,6.71935618 10... |
src/svg-icons/hardware/router.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareRouter = (props) => (
<SvgIcon {...props}>
<path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6... |
src/utils/domUtils.js | blue68/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
src/Alert.js | gianpaj/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
stories/index.js | TeamWertarbyte/material-ui-password-field | import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import TextField from 'material-ui/TextField'
import PasswordField from '../src/PasswordField'
function themed (children) {
return (
<div style={{ fontFamily: 'Roboto, sans-serif' }}>
{c... |
js/jqwidgets/jqwidgets-react/react_jqxdocking.js | luissancheza/sice | /*
jQWidgets v5.3.2 (2017-Sep)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxDocking extends React.Component {
componentDidMount() {
let options = this.manageAt... |
src/docs/examples/HelloWorld/ExampleHelloWorld.js | StudentOfJS/ps-react-rod | import React from 'react';
import HelloWorld from 'ps-react-rod/HelloWorld';
/** Custom message */
export default function ExampleHelloWorld() {
return <HelloWorld message="Rod, enjoy your training" />;
} |
src/components/list_item.js | quebez/react_todolist | import React, { Component } from 'react';
class ListItem extends Component {
itemTicked(ticked) {
return ticked ? 'ticked' : 'unticked';
}
tickUntickGlyphicon(ticked) {
return ticked ? 'glyphicon-repeat' : 'glyphicon-ok';
}
render() {
const item = this.props.item;
... |
core/src/plugins/access.ajxp_conf/res/js/AdminComponents/board/GroupAdminDashboard.js | huzergackl/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio 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, either version 3 of the License, o... |
ext/tilt-react.js | jphastings/tilt-react | import React from 'react';
import ReactDOM from 'react-dom';
class TiltReactClass {
constructor() {
this.components = {};
}
bind() {
this.reactContainers().forEach(container => {
const componentName = container.dataset.reactClass;
const propsContainer = container.nextElementSibling;
co... |
app/User/SignUpMobileVerify.js | csujedihy/react-native-textgo | 'use strict';
import React, { Component } from 'react';
import TextField from 'react-native-md-textinput';
import Button from 'apsl-react-native-button';
import Users from '../Model/users';
import MyNavigationBar from '../Components/MyNavigationBar';
import phoneFormat from "phoneformat-react-native";
import Main from... |
src/svg-icons/social/whatshot.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialWhatshot = (props) => (
<SvgIcon {...props}>
<path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.... |
src/screen/WaveGenerator/components/SineWaveParameters.js | wavicles/fossasia-pslab-apps | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {
Select,
Typography,
Divider,
FormControlLabel,
MenuItem,
Switch,
OutlinedInput,
FormControl,
InputLabel,
} from '@material-ui/core';
import CustomSliderInput from '../../../components/CustomSliderInput';
import { with... |
app/components/main-panel.js | eladg/gariany.com | import React from 'react';
import Sidebar from './sidebar'
import PostsList from './posts-list'
class MainPanel extends React.Component {
constructor(props) {
super(props);
var posts = props.data.posts;
var config = props.data.config;
// lookup categories/tags of db
var categoryHash = {};
... |
src/pages/page/EditorPage/index.js | anztrax/simple-image-server-frontend | import React from 'react';
import SimpleTextEditor from '../../../components/common/TextEditor/SimpleTextEditor';
import SimpleAutoComplete from '../../../components/common/AutoComplete/SimpleAutoComplete';
export default class EditorPage extends React.Component{
constructor(props){
super(props);
this.state ... |
webapp-src/src/Admin/HTTPParams.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import messageDispatcher from '../lib/MessageDispatcher';
class HTTPParams extends Component {
constructor(props) {
super(props);
this.state = {
config: props.config,
mod: props.mod,
role: props.role,
check: pr... |
src/svg-icons/av/mic.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMic = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-... |
examples/src/TrackLinks/TrackLinks.js | approots/react-autosuggest | import React, { Component } from 'react';
export default class TrackLinks extends Component {
componentDidMount() {
if (typeof analytics !== 'object') {
return;
}
const links = this.refs.children.querySelectorAll('a');
const linksCount = links.length;
for (let i = 0; i < linksCount; i++) ... |
client/views/room/contextualBar/Info/ChannelToTeamModal/StepOne.js | VoiSmart/Rocket.Chat | import { Box, Margins } from '@rocket.chat/fuselage';
import React from 'react';
import GenericModal from '../../../../../components/GenericModal';
import { useTranslation } from '../../../../../contexts/TranslationContext';
import TeamAutocomplete from '../../../../teams/contextualBar/TeamAutocomplete';
const StepOn... |
actor-apps/app-web/src/app/components/dialog/messages/State.react.js | liruqi/actor-platform-v0.9 | import React from 'react';
import { MessageContentTypes } from '../../../constants/ActorAppConstants';
class State extends React.Component {
static propTypes = {
message: React.PropTypes.object.isRequired
};
render() {
const { message } = this.props;
if (message.content.content === MessageContentTy... |
test/ModalSpec.js | mmartche/boilerplate-shop | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Modal from '../src/Modal';
import {getOne, render, shouldWarn} from './helpers';
describe('Modal', () => {
let mountPoint;
beforeEach(() => {
mountPoint = document.createElement('div');... |
app/javascript/mastodon/features/ui/components/mute_modal.js | unarist/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
import { muteAccount }... |
vendor/htmlburger/carbon-fields/assets/js/fields/components/association/list.js | FolsomCreative/storynav | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* The internal dependencies.
*/
import AssociationListItem from 'fields/components/association/list-item';
/**
* Render a list of item that can be associated.
*
* @param {Object} props
* @param {Str... |
src/svg-icons/communication/location-on.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12... |
docs/src/app/components/pages/components/Table/Page.js | spiermar/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import tableReadmeText from './README';
import TableExampleSimple from './Exampl... |
src/svg-icons/social/notifications-none.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotificationsNone = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l... |
src/svg-icons/av/branding-watermark.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
src/Tabs/Tabs.spec.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import { assert } from 'chai';
import { spy, stub, useFakeTimers } from 'sinon';
import scroll from 'scroll';
import { createShallow, createMount, getClasses } from '../test-utils';
import consoleErrorMock from '../../test/utils/consoleErrorMock';
import Tabs from './Tabs';
import T... |
src/routes/home/index.js | dreambo8563/RSK | /**
* 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 Home from './Home';
/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.