path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/components/BigButton/index.js | omeryagmurlu/algoriv | import React from 'react';
import PropTypes from 'prop-types';
import FlatButton from 'material-ui/FlatButton';
import { getEvents, themedStyle } from 'app/utils';
import style from './style.scss';
import { margin } from './variables.json';
const css = themedStyle(style);
const BigButton = props => (
<div
classNam... |
src/svg-icons/av/remove-from-queue.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRemoveFromQueue = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2H8v-2h8z"/>
</SvgIcon>
);... |
src/components/TrendHeader/TrendHeader.js | Zoomdata/nhtsa-dashboard | import React from 'react';
const TrendHeader = () => {
return (
<div className="trend-header">
By <b>Model Year</b>
</div>
);
};
export default TrendHeader;
|
05、componentapi/src/main.js | mqy1023/react-with-es6 | import React from 'react';
import ReactDOM from 'react-dom';
//1、for setState()
//import App from './jsx/SetStateApp.jsx';
//ReactDOM.render(<App />, document.getElementById('app'))
//2、for ForceUpdate
//import App from './jsx/PropsApp.jsx';
//import App from './jsx/ForceUpdateApp.jsx';
//ReactDOM.render(<App />, doc... |
src/svg-icons/image/exposure-neg-2.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureNeg2 = (props) => (
<SvgIcon {...props}>
<path d="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81... |
src/demos/components/DemoPage.js | moarwick/react-mt-svg-lines | import React from 'react';
// import { hot } from 'react-hot-loader';
import { version } from '../../../package.json';
import MtSvgLines from '../../index';
// import MtSvgLines from '../../../lib/' // NOTE: uncomment to test built lib
import SvgCheckmark from './SvgCheckmark';
import SvgSignature from './SvgSignatur... |
src/server.js | vivekhnz/today-in-destiny | import dotenv from 'dotenv';
if (process.env.NODE_ENV !== 'production') {
dotenv.config();
}
if (!process.env.BUNGIE_API_KEY) {
console.error("The 'BUNGIE_API_KEY' environment variable has not been set.");
process.exit(1);
}
import Express from 'express';
import React from 'react';
import ReactDOM from 're... |
src/svg-icons/hardware/tablet-android.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletAndroid = (props) => (
<SvgIcon {...props}>
<path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/>
</SvgIcon... |
modules/IndexRoute.js | zipongo/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './PropTypes'
const { func } = React.PropTypes
/**
* An <IndexRoute> is used to specify its parent's <Route indexRoute> in
... |
src/main/jsx/client/BuildPageActions.js | groupon/DotCi | import ReactDOM from 'react-dom';
import React from 'react';
import {build as fetchBuild, buildLog as fetchBuildLog,cancelBuild as cancelBuildApi} from './../api/Api.jsx';
import BuildPage from './../pages/BuildPage.jsx';
import Drawer from './../Drawer.jsx';
import page from 'page';
import {Build as AutoRefreshCompone... |
src/components/event_page/chat/chat_component.js | decaster3/hikester_redux | import React, { Component } from 'react';
import moment from 'moment';
import Message from './message';
import { Nav, NavItem } from 'react-bootstrap';
import axios from 'axios';
// import * as firebase from 'firebase';
// require("firebase/firestore");
const firebase = require("firebase")
require("firebase/firestore"... |
fields/types/geopoint/GeoPointField.js | Adam14Four/keystone | import Field from '../Field';
import React from 'react';
import { FormRow, FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'GeopointField',
statics: {
type: 'Geopoint',
},
focusTargetRef: 'lat',
handleLat (event) {
const { value = [], path, onChange } = this.props;
c... |
packages/slate-html-serializer/benchmark/html-serializer/deserialize.js | ashutoshrishi/slate | /** @jsx h */
/* eslint-disable react/jsx-key */
import Html from '../..'
import React from 'react'
import { JSDOM } from 'jsdom' // eslint-disable-line import/no-extraneous-dependencies
const html = new Html({
parseHtml: JSDOM.fragment,
rules: [
{
serialize(obj, children) {
switch (obj.object) ... |
src/components/App/setViewport.js | skw/test-react-backbone | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
import React, { Component } from 'react';
import { canUseDOM } from 'react... |
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupColored.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleGroupColored = () => (
<Button.Group color='blue'>
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</Button.Group>
)
export default ButtonExampleGroupColored
|
node_modules/react-router-dom/es/Link.js | raheelhassan1214/tanveerhospital | 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/svg-icons/action/account-box.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBox = (props) => (
<SvgIcon {...props}>
<path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3... |
components/Footer/index.js | joaojusto/jose-gomes-landing-page | import React from 'react';
import './index.scss';
import TwitterLogo from './twitter.svg';
import FacebookLogo from './facebook.svg';
import MusicTalent from './musictalent.png';
const Footer = ({ translate }) => (
<section className="Footer" id="Contactar">
<div className="Footer-column">
<h2 className="... |
src/entypo/Battery.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Battery';
let EntypoBattery = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M15.408,10c0-2.766,1.277-4.32,2.277-4.32c0.363,0,1.315,0,1.315,0C18.332,4.621,17.779,4,15.342,4H5.3... |
src/components/common/svg-icons/editor/strikethrough-s.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorStrikethroughS = (props) => (
<SvgIcon {...props}>
<path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ... |
test/fixtures/spread/actual.js | layershifter/babel-plugin-transform-react-handled-props | import PropTypes from 'prop-types';
import React from 'react';
const someProps = {
active: PropTypes.boolean
};
function Example() {
return <div />;
}
Example.propTypes = {
...someProps,
children: PropTypes.node,
className: PropTypes.string
};
export default Example;
|
stories/components/noRef.js | wcastand/okami | import React from 'react'
import {Div} from 'glamorous'
import DailyCalendar from '../../src/components/daily'
import Navigation from '../../src/components/navigation'
import HoursLabels from '../../src/components/hoursLabels'
import {
Container,
HourLabel,
CalendarContainer,
Cell,
DayLabel,
Event,
Date... |
src/components/ReplOutputInteger.js | princejwesley/Mancy | import React from 'react';
import _ from 'lodash';
const mode = {
'bin' : 2,
'oct' : 8,
'dec' : 10,
'hex' : 16
};
export default class ReplOutputInteger extends React.Component {
constructor(props) {
super(props);
this.state = {
mode: 'dec',
type: 'signed',
collapse: 'true'
};
... |
client/pages/todoReact/todoListView.js | bishopZ/DavinciJS-project | var $ = require('jquery');
import React from 'react';
import ReactDOM from 'react-dom';
import Backbone from 'backbone';
import todoModel from 'pages/todoReact/todoModel';
import TodoItemView from 'pages/todoReact/todoView';
import dispatcher from 'pages/todoReact/todoDispatcher';
// Controller View
var TodoListView ... |
src/components/Feedback/Feedback.js | shawnrmoss/react-material-ui-starter | /**
* 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, { Component } from 'react';
import s from '.... |
docs/src/pages/system/basics/Variant.js | lgollut/material-ui | import React from 'react';
import styled, { ThemeProvider } from 'styled-components';
import NoSsr from '@material-ui/core/NoSsr';
import { style, typography } from '@material-ui/system';
const variant = style({
prop: 'variant',
cssProperty: false,
themeKey: 'typography',
});
// ⚠ Text is already defined in the... |
ballot-maker/src/Choice.js | OnVelocity/ov-ballot | /**
* Created by onvelocity on 4/8/17.
*/
import React from 'react'
import PropTypes from 'prop-types'
import './Choice.css'
const choice = ({text, removeChoice}) => {
return (
<li className="Choice">
<span>{text}</span>
<button onClick={() => removeChoice()}>✕</button>
</li>
);
};
choice.default... |
src/routes/privacy/index.js | machix/mm-inventory | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 Layout from '../../co... |
src/PuppetStage.js | mikekellyio/svg_playground | import React, { Component } from 'react';
import GrassBlade from './GrassBlade'
export default class PuppetStage extends Component {
render() {
var a = 1,b = 2,c = 3;
return (
<svg {...this.props}>
<GrassBlade a={a} b={b} c={c}/>
</svg>
);
}
}
|
src/svg-icons/content/inbox.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/>
<... |
03-todoapp/src/index.js | HerX121/ReactJsExamples | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/dashboard/routes/index.js | bulletcms/bullet-tracer | import React from 'react';
import {Router, Route, IndexRoute, Redirect, hashHistory} from 'react-router';
import {DashApp, Home, Pages, Config, User} from 'dashboard/containers';
import {Dne} from 'containers';
const routes = <Router history={hashHistory}>
<Route path="/" component={DashApp}>
<IndexRoute compo... |
src/svg-icons/image/image.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageImage = (props) => (
<SvgIcon {...props}>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImageImage = p... |
app/components/bill/CompactBill.js | btg5679/portalReact | import React from 'react';
import {Link} from 'react-router';
export default class CompactBill extends React.Component {
render() {
const data = this.props.data;
const amount = `$${data.amount}`;
const link = this.calculateLink(data);
return (
<div className="bill compa... |
client/src/index.js | clembou/github-requests | // Polyfill needed by ie 11
import 'string.prototype.startswith';
// ie 10
import 'location-origin';
import 'font-awesome/css/font-awesome.css';
import 'react-bootstrap-table/dist/react-bootstrap-table-all.min.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from '... |
src/svg-icons/av/loop.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLoop = (props) => (
<SvgIcon {...props}>
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.... |
src/Table/index.js | reactivers/react-material-design | /**
* Created by muratguney on 03/04/2017.
*/
import React from 'react';
import classnames from 'classnames'
import '../index.scss'
class Table extends React.Component{
render(){
return(
<table className="rmd-table" style={{width:"100%"}}>
{this.props.children}
</... |
packages/material-ui-icons/src/LibraryBooks.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z" /></g>
, 'LibraryBooks');
|
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/State.js | AgentME/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
props: Props;
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
props: Props;
state: State = {... |
components/Animate/Roll.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { spring, TransitionMotion } from 'react-motion';
const DEFAULT_SPRINT_CONFIG = { stiffness: 250, damping: 25 };
export default class Roll extends Component {
static propTypes = {
children: PropTypes.any,
width: PropTypes.s... |
src/routes/login/index.js | rowinf/robertirwin.me-v2 | /**
* 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 Login from './Login';
c... |
app/javascript/mastodon/features/compose/index.js | sylph-sin-tyaku/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
stories/TimeGraph.js | jrfferreira/react-cubedb | import React from 'react' // eslint-disable-line no-unused-vars
import * as d3 from 'd3'
import { TimeGraph } from '../src'
import { action } from '@storybook/addon-actions'
const mock = require('./_mock.json')
const display = d3.timeFormat('%a %Y-%m-%d %H:00')
const formatter = d3.timeFormat('%Y-%m-%d %H')
export ... |
client/modules/SharedComponents/VIP.js | tranphong001/BIGVN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styles from '../../main.css';
import grid from '../../grid.css';
import { getServerTime } from '../App/AppReducer';
import numeral from 'numeral';
import cuid from 'cuid';
class Home extends Comp... |
app/components/settings/Avatar.js | Atamas1llya/Flerse | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button } from 'react-bootstrap';
import { updateProfile, changeAvatar, getProfile } from '../../actions/user/profile';
class Avatar extends Component {
constructor() {
super();
this.state = {};
}
loadImage() {
... |
src/svg-icons/maps/directions-walk.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsWalk = (props) => (
<SvgIcon {...props}>
<path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-... |
pages/index/components/layout.js | hschlichter/react-redux-pages-demo | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Snip from './snip';
export default class Layout extends Component {
render() {
return (
<div>
<header className="c-box c-box--dark">
<a className="c-box--dark" href="/"><strong>React Redux Pages Demo</strong></a>
... |
app/javascript/mastodon/features/ui/components/block_modal.js | tootsuite/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../../../selectors';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
impo... |
app/jsx/conditional_release_stats/components/student-ranges-view.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... |
site/src/components/BannerRow.js | appbaseio/reactivesearch | import React from 'react';
import { BannerRow, H2, Button } from '@appbaseio/designkit';
import PropTypes from 'prop-types';
import { css } from 'react-emotion';
import { SecondaryLink } from '../styles';
const style = css`
p {
color: #ffffff;
font-weight: 300;
}
`;
const button = {
fontSize: '14px',
lineHeigh... |
docs/src/pages/component-demos/buttons/ButtonBases.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import ButtonBase from 'material-ui/ButtonBase';
import Typography from 'material-ui/Typography';
import breakfastImage from 'docs/src/assets/images/grid-list/breakfast.jpg';
import burgersImag... |
src/viewfinder.js | postmates/viewfinder | import React from 'react';
import ReactDOM from 'react-dom';
import DropZone from './views/drop-zone.js';
import EventTravel from './lib/event-travel.js';
import ImageHandler from './lib/image-handler.js';
import velocity from 'velocity-animate';
class Viewfinder extends React.Component {
static defaultProps = {
... |
demo-react/src/App.js | devonhackley/reacttt | import React, { Component } from 'react';
import './assets/css/base.min.css';
//components
import Header from './components/header/header';
import Home from './components/pages/home/homepage';
class App extends Component {
render() {
return (
<div className="App">
<Header />
<Home />
... |
scripts/MainView.js | sonicsmith/InformedNutrition | // This file is required by the index.html file and will
// be executed in the renderer process for that window.
// All of the Node.js APIs are available in this process.
import React from 'react';
import ReactDOM from 'react-dom';
import MainView from '../views/MainView.jsx';
window.onload = () => {
ReactDOM.rend... |
docs/app/Examples/elements/Header/Content/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const HeaderContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Image'
description='A... |
src/components/DataTable/stories/with-boolean-column.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Checkbox from '../../Checkbox';
import DataTable, {
Table,
TableBody,
TableCell,
TableContainer,
... |
node_modules/node_modules/react-solr-connector/demo/app.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import React from 'react';
import ReactDOM from 'react-dom';
import SolrConnector from '../src/react-solr-connector';
import SolrConnectorDemo from './demo.js';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
searchParams: null
}
}
doSearch(searchParams) ... |
example/examples/ZIndexMarkers.js | azt3k/react-native-maps | import React from 'react';
import {
Dimensions,
StyleSheet,
Text,
View,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.733858;
const LONGITUDE = -122.446549;
const MARKERS_LATITUDE_DE... |
tests/lib/rules/vars-on-top.js | dominicbarnes/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
* @copyright 2014 Danny Fritz. All rights reserved.
* @copyright 2014 Gyandeep Singh. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requiremen... |
app/components/LinkForm/index.js | rahsheen/scalable-react-app | /**
*
* LinkForm
*
*/
import React from 'react';
import styles from './styles.css';
import TextInput from '../TextInput';
class LinkForm extends React.Component { // eslint-disable-line react/prefer-stateless-function
state = {};
render() {
return (
<div className={styles.overlay}>
<div classN... |
src/components/Menu/Menu.js | sk-iv/iva-app | import React from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import getScrollbarSize from 'dom-helpers/util/scrollbarSize';
import Popover from '../Popover';
import MenuList from './MenuList';
if(process.env.WEBPACK) require('./menu.css');
const RTL_ORIGIN = {
vertical: 'to... |
src/index.js | LizBossley/nha | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import { Router, browserHistory } from 'react-router';
import reducers from './reducers';
import routes from './routes';
... |
docs/src/app/components/pages/components/Dialog/ExampleAlert.js | mmrtnz/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation.
*/
export default class DialogExampleAler... |
src/LibroView.js | tillkahlbrock/libro-web | import React from 'react';
import ReactDom from 'react-dom';
import { Provider } from 'react-redux';
import * as Redux from 'redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import reducer from './reducer';
import Layout from './components/Layout';
import { initApp } from './actions';
... |
packages/mineral-ui-icons/src/IconPowerInput.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconPowerInput(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
docs-ui/components/autoComplete.stories.js | ifduyue/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
// import {action} from '@storybook/addon-actions';
import AutoComplete from 'app/components/autoComplete';
const items = [
{
name: 'Apple',
},
{
name: 'Pineapple',
},
{
name: '... |
app/javascript/mastodon/features/directory/index.js | abcang/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from 'mastodon/components/column';
import ColumnHeader from 'mastodon/components/column... |
src/Parser/Druid/Balance/Modules/Items/Tier21_2set.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
import getDamageBonus from 'Parser/Mage/Shared/Modules/GetDamageBonus';... |
admin/client/App/App.js | Pop-Code/keystone | /**
* The App component is the component that is rendered around all views, and
* contains common things like navigation, footer, etc.
*/
import React from 'react';
import { Container } from './elemental';
import { Link } from 'react-router';
import { css } from 'glamor';
import MobileNavigation from './components... |
packages/ui-toolkit/src/status-loader/index.js | geek/joyent-portal | import React from 'react';
import styled from 'styled-components';
import is, { isNot } from 'styled-is';
import remcalc from 'remcalc';
import Widget from './widget';
import P from '../text/p';
import Baseline from '../baseline';
const Container = styled.div`
display: flex;
flex-direction: column;
flex-wrap: n... |
src/components/SettingsContainer.js | joellanciaux/Griddle | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from '../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import { classNamesForComponentSelector, stylesForComponentSelector } from... |
admin/client/App/screens/List/components/Filtering/ListFiltersAdd.js | andrewlinfoot/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import Transition
from 'react-addons-css-transition-group';
import classnames from 'classnames';
import ListFiltersAddForm from './ListFiltersAddForm';
import Popout from '../../../../shared/Popout';
import PopoutList from '../../../../shared/Popout/P... |
src/components/header.js | sPyOpenSource/personal-website | import React, { Component } from 'react';
class Header extends Component {
constructor() {
super();
this.toggle = this.toggle.bind(this);
this.reset = this.reset.bind(this);
this.state = {
classes: "navbar-collapse collapse"
};
}
reset() {
this.setState({classes: "navbar-collapse co... |
src/components/MainPage/Footer.js | coolshare/ReactReduxPattern | import React from 'react'
import { Link } from 'react-router';
/**
*
*/
export default class Footer extends React.Component{
/**
* render
* @return {ReactElement} markup
*/
render(){
return (
<div id="footer" style={{margin:'20px'}}>
<a href="http://markqian.com" target="_blank">See more on Ma... |
src/assets/images/icons.js | barrierandco/barrierandco | import React from 'react'
const Icons = () =>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg">
<defs>
<path d="M17.016,12.984 L14.016,12.984 L14.016,9 L9.985,9 L9.985,12.984 L6.985,12.984 L12.001,18 L17.016,12.984 Z M19.359,10.031 C21.937,10.219 24,12.37... |
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js | chieryw/actor-platform | import React from 'react';
import AvatarItem from 'components/common/AvatarItem.react';
class ContactItem extends React.Component {
static propTypes = {
contact: React.PropTypes.object,
onToggle: React.PropTypes.func
}
constructor(props) {
super(props);
this.onToggle = this.onToggle.bind(this)... |
src/containers/Chattee.js | morgangiraud/react-chat | import React from 'react';
import { connect } from 'react-redux';
import App from '../components/App.js';
import { checkSession, logout } from '../actions';
const mapStateToProps = (state) => {
return {
appLoading: state.chattee.appLoading,
user: state.chattee.user
}
}
const mapDispatchToProps = (dispatc... |
Ch06/06_02/finish/bulletin-board/src/Board.js | MuhammadHafidzMisrudin/reactjs-basics | import React from 'react'
import './App.css'
import Note from './Note'
var Board = React.createClass({
propTypes: {
count: function(props, propName) {
if(typeof props[propName] !== "number") {
return new Error("the count must be a number")
... |
docs/app/Examples/collections/Table/Types/TableExamplePagination.js | clemensw/stardust | import React from 'react'
import { Icon, Label, Menu, Table } from 'semantic-ui-react'
const TableExamplePagination = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Header</Table.HeaderCell>
<Table.HeaderCell>Header</Table.HeaderCell>
<Tab... |
src/components/time/Time.js | StillLearnin/time-clock-ui | import React, { Component } from 'react';
import css from './Time.css';
class Time extends Component {
render() {
return (
<div className={css.punchRow}>
<div className={css.punchIn}>
{this.props.punch.in}
</div>
<div className={css.punchOut}>
... |
node_modules/semantic-ui-react/dist/es/modules/Dimmer/DimmerDimmable.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly } from '../../lib';
/**
* A dimmable sub-component for Dimmer.
*/
function DimmerDimmable(pr... |
src/widgets/TextEditor.js | sussol/mobile | /* eslint-disable react/jsx-wrap-multilines */
/* eslint-disable react/forbid-prop-types */
import React from 'react';
import PropTypes from 'prop-types';
import { Text, TextInput } from 'react-native';
import { BACKGROUND_COLOR, APP_FONT_FAMILY, DARKER_GREY } from '../globalStyles';
import { FlexRow } from './FlexRo... |
examples/decorators/form/index.js | stackscz/re-app | import React from 'react';
import WildForm from './ExampleForm';
import Example from 're-app-examples/Example';
const codeFiles = [
{
name: 'ExampleForm.js',
content: require('!!raw!./ExampleForm.js'),
description: 'ExampleForm',
},
{
name: './PaperOrientationInput.js',
content: require('!!raw!./PaperOri... |
src/svg-icons/action/view-day.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewDay = (props) => (
<SvgIcon {...props}>
<path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"/>
</SvgIcon>
);
ActionViewDay = pure(A... |
src/svg-icons/toggle/radio-button-unchecked.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleRadioButtonUnchecked = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/>
</SvgIco... |
index.ios.js | corragon/six | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class Six extends Component {
render() {
return (
<View style={styles.container}>
... |
src/components/train/MessageDataset.js | mBeierl/Better-Twitch-Chat | import React from 'react';
import ReactPaginate from 'react-paginate';
import { List, ListItem } from 'material-ui/List';
import Checkbox from 'material-ui/Checkbox';
import IconButton from 'material-ui/IconButton';
class MessageDataset extends React.Component {
constructor(props) {
super(props);
this.state... |
internal/FloatingMenu.js | hellobrian/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import window from 'window-or-global';
class FloatingMenu extends React.Component {
static propTypes = {
children: PropTypes.any,
menuPosition: PropTypes.object.isRequired,
menuDirection: PropTypes.oneOf(['le... |
rn-kitchen-sink/components/Home.js | 77ircloud/yymobile2 | import React from 'react';
import {
StyleSheet,
View,
Text,
Image,
Platform,
TouchableOpacity,
Alert,
Linking,
ActivityIndicator,
StatusBar,
} from 'react-native';
import { List } from 'antd-mobile';
import codePush from 'react-native-code-push';
import AppInfo from './appInfo.js';
const codePushOp... |
src/components/Panel/stories.js | envisioning/tdb-storybook | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { Panel, PanelHeader, PanelBody, PanelTitle } from './';
import { Technologies } from '../../resources/icons'
const options = {
inline: false,
source: false,
header: true
}
storiesOf('Panel', module)
.addWithInfo('Panel',... |
src/icons/PhoneMissedIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PhoneMissedIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M13 11l11 11L38 8l-2-2-12 12-9-9h7V6H10v12h3v-7zm34.41 22.34C41.32 27.55 33.07 24 24 24S6.68 27.55.59 ... |
src/components/progress/Line.js | quark-ui/quark-ui | /**
* Line Component
* @author ryan.bian
*/
import React from 'react';
import classnames from 'classnames';
import { defaultProps, propTypes } from './propDefine';
import Icon from '../icon';
import styles from './Progress.css';
const Line = ({ percent, status, size, showInfo }) => {
const lineProps = {
class... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/DropdownToggle.js | JamieMason/npm-cache-benchmark | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
react/src/containers/ModalSelect/ModalSingleSelect/index.js | sinfin/folio | import React from 'react'
import SingleSelect from 'containers/SingleSelect'
import { EVENT_NAME } from './constants'
import ModalSelect from '../'
class ModalSingleSelect extends ModalSelect {
selector () {
return `.f-c-add-file[data-file-type="${this.props.fileType}"]`
}
fileModalSelector () {
retur... |
templates/rubix/rails/rails-example/src/routes/AllTodos.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import { Link } from 'react-router';
import Todo from '../components/Todo';
import TodoForm from '../components/TodoForm';
import client from '@sketchpixy/rubix/lib/utils/HttpClient';
import {
Row,
Col,
Grid,
Panel,
PanelBody,
PanelContainer,
} from '@sketchpixy/rubix';
expor... |
js/jqwidgets/demos/react/app/scheduler/appointmentsexacttimerendering/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount() {
this.refs.myScheduler.ensureAppointmentVisible('id1');
}
render() {
let appointments = new Array... |
app/components/List/index.js | shaggyshelar/CLA | 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/main/js/page/Privacy.js | MannanM/corporate-game-share | import React, { Component } from 'react';
import { Jumbotron, Button } from 'react-bootstrap';
class Privacy extends Component{
render() {
return (
<>
<p>
This Privacy Policy describes Game-Share’s practices regarding the collection, use and disclosure of the information we collect from and about you when you us... |
src/web/forms/fields/__mocks__/CheckGroup.js | asha-nepal/AshaFusionCross | /**
* Copyright 2017 Yuichiro Tsuchiya
*
* 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 agr... |
docs/src/sections/TransitionSection.js | Sipree/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function TransitionSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.