path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/statement/StatementMobile.js | nuruddeensalihu/binary-next-gen | import React from 'react';
import MobilePage from '../containers/MobilePage';
import StatementContainer from './StatementContainer';
export default (props) => (
<MobilePage>
<StatementContainer compact {...props} />
</MobilePage>
);
|
imports/ui/components/tags/ClientTagList.js | ctagroup/home-app | import _ from 'lodash';
import moment from 'moment';
import React, { Component } from 'react';
import Select from 'react-select';
import DatePicker from 'react-datepicker';
// import ClientTagItem from './ClientTagItem';
import DataTable from '/imports/ui/components/dataTable/DataTable';
import { blazeData, removeClien... |
src/features/welcome/index.js | rldona/react-native-tab-view-seed | import React, { Component } from 'react';
import {
View,
Text,
Image,
StyleSheet,
TouchableOpacity,
Dimensions
} from 'react-native';
import * as moviesService from '../../services/movies-service';
import * as colors from '../../common/colors';
const { width, height } = Dimensions.get('window');
export ... |
src/media/js/app.js | ziir/marketplace-content-tools | require('babel/polyfill');
import React from 'react';
import {Provider} from 'react-redux';
import {Redirect, Route, Router} from 'react-router';
import {history} from 'react-router/lib/BrowserHistory';
import {applyMiddleware, combineReducers, compose, createStore} from 'redux';
import loggerMiddleware from 'redux-log... |
src/parser/shared/modules/items/bfa/raids/uldir/InoculatingExtract.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interface/statistics/components/BoringItemValueText';
import ItemLink from 'common/ItemLink';
import { formatPercentage } from... |
others/ant/antd-demo/src/Home.js | fengnovo/diary | import React, { Component } from 'react';
import { Tabs } from 'antd';
import List from './List.js';
const TabPane = Tabs.TabPane;
/*
* 1 => 头条
* 2 => 娱乐
* 3 => 军事
* 4 => 汽车
* 5 => 财经
* 6 => 笑话
* 7 => 体育
* 8 => 科技
*/
cl... |
src/Cards.js | leeppolis/bookmarks | import React, { Component } from 'react';
import "./Cards.css";
import Card from './Card.js';
class Cards extends Component {
render() {
return (
<section className="grid">
<ul className={"items " + this.props.viewMode}>
{
this.props.items.map(
function(item) {
... |
example/src/screens/types/DummyScreen.js | coteries/react-native-navigation | import _ from 'lodash';
import React, { Component } from 'react';
import {
View,
ScrollView,
Dimensions,
Text,
StyleSheet,
Button,
PixelRatio
} from 'react-native';
import {NavigationToolBarIOS} from 'react-native-navigation';
const {width} = Dimensions.get('window');
class DummyScreen extends Componen... |
packages/material-ui-icons/src/Map.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Map = props =>
<SvgIcon {...props}>
<path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 19... |
node_modules/redux-devtools-log-monitor/src/LogMonitor.js | jotamaggi/react-calendar-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import shouldPureComponentUpdate from 'react-pure-render/function';
import * as themes from 'redux-devtools-themes';
import { ActionCreators } from 'redux-devtools';
import { updateScrollTop, startConsecutiveToggle } from './actions';
import ... |
Dockerfiles/node/nodeapp/src/Modules/Customer.js | 4lexBaum/projekt-5s-dhbw | import React from 'react';
import { ChartContainer } from '../Components/ChartContainer.js';
import { Header } from '../Components/Header.js';
export class Customer extends React.Component {
constructor(props) {
super(props);
}
componentDidMount(){
}
componentWi... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | akre96/GeneDiagrams | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
docs/src/pages/demos/badges/SimpleBadge.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Badge from 'material-ui/Badge';
import MailIcon from 'material-ui-icons/Mail';
import FolderIcon from 'material-ui-icons/Folder';
const styles = theme => ({
badge: {
margin: `0 ${... |
examples/Modal.js | azendoo/react-overlays | import React from 'react';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-overlays/Modal';
let rand = ()=> (Math.floor(Math.random() * 20) - 10);
const modalStyle = {
position: 'fixed',
zIndex: 1040,
top: 0, bottom: 0, left: 0, right: 0
};
const backdropStyle = {
...modalStyle,
z... |
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/pressure/components/settings-base.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
// Global module dependencies
import { SettingsPageLayout } from '../../../../../components/layout';
// Current module dependencies
import { SettingsMenu } from '../../../../../mobilizations/widgets/__plugins__/pressure/components';
const SettingsBase = ... |
src/server/frontend/render.js | dfogas/my-mindmap | import * as state from '../../client/state';
import DocumentTitle from 'react-document-title';
import Html from './html.react';
import Promise from 'bluebird';
import React from 'react';
import Router from 'react-router';
import config from '../config';
import immutable from 'immutable';
import initialState from '../in... |
public/app/components/ui-project-tab/toolbar.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import * as mui from 'material-ui';
import base from '../base/index';
import icons from '../icons';
const styles = {
icon: {
margin: 16,
},
button: {
height: '56px',
width: '56px',
overflow: 'inherit'
}
};
const Toolbar = ({ vpanelProjectNames, onNewIm... |
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/hidden/index.js | wpexpertsio/WP-Secure-Maintainance | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { setStatic } from 'recompose';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import { enhance } from 'fields/components/text';
import { TYPE_HIDDEN } from 'fields/constants'... |
src/lib/plugins/cpu.js | Hyperline/hyperline | import React from 'react'
import Component from 'hyper/component'
import { currentLoad as cpuLoad } from 'systeminformation'
import leftPad from 'left-pad'
import SvgIcon from '../utils/svg-icon'
class PluginIcon extends Component {
render() {
return (
<SvgIcon>
<g fill="none" fillRule="evenodd">
... |
2-alpha/src/index.js | saturninoharris/primer-design | import React from 'react';
import ReactDOM from 'react-dom';
import 'csshake'
import './styles/index.css';
import registerServiceWorker from './registerServiceWorker';
// Redux
import { Provider } from 'react-redux'
import { fetchAllExercises } from './actions'
import configureStore from './configureStore'
// Styling... |
app/javascript/mastodon/features/notifications/components/notifications_permission_banner.js | imas/mastodon | import React from 'react';
import Icon from 'mastodon/components/icon';
import Button from 'mastodon/components/button';
import IconButton from 'mastodon/components/icon_button';
import { requestBrowserPermission } from 'mastodon/actions/notifications';
import { changeSetting } from 'mastodon/actions/settings';
import ... |
src/js/pages/Projects.js | diajelovic/react-test | import React from 'react';
export default class Projects extends React.Component {
constructor(){
super();
this.state = {
title: "Projects"
}
}
render() {
const { params } = this.props;
const { query } = this.props.location;
return (
<div>
<h1>{this.state.title} ({params.project})</h1>
... |
components/Search.js | wrariza/candado | import React from 'react';
import styled from 'styled-components';
const DefaultStyles = `
outline: 0;
borde: none;
border-radius: 4px;
`;
const Form = styled.form`
display: flex;
font-weight: bold;
font-family: 'arial'
top: 200px;
position: relative;
@media (max-width: 1024px) {
... |
src/Popup.js | taskworld/react-overlay-popup | import React from 'react'
import ReactDOM from 'react-dom'
import invar from 'invariant'
import Overlay from './Overlay'
var _strategies = { }
function calculate (vp, lp, lc, kp, kc, Δv) {
return vp + kp * lp - kc * lc + Δv
}
function calculateWithFallback (vp, lp, lc, kp, kc, vm, Δv) {
var primary = kp !== kc
... |
client2/src/Video/components/search_bar.js | zhangbenny/Board | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props){
super(props);
this.state = { term: ''}
}
render() {
return (
<div className="search-bar">
<input
value={this.state.term}
onChange={event => this.onInputChange(event.target.value)} />
</div>
)
}
o... |
src/js/components/pages/items/Item.js | athill/wimf | import classnames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { Col, Panel, Row } from 'react-bootstrap';
//// components
import { Icon } from '../../common/common';
//// utils
import { getDisplayFormat } from '../../../util/DateUtils';
export const ItemHeader = ({editCli... |
examples/js/sort/multi-sort-table.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
let price = 2100;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
if (id % 5... |
frontend/app_v2/src/common/icons/PlayCircle.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary PlayCircle
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function PlayCircle({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" className={styling}>
<path d="M256 ... |
boilerplates/app/src/routes/rbac/Roles.js | hexagonframework/antd-admin-cli | import React from 'react'
import PropTypes from 'prop-types'
import { routerRedux } from 'dva/router'
import { connect } from 'dva'
import RoleList from '../../components/Role/RoleList'
import RoleSearch from '../../components/Role/RoleSearch'
import RolePanel from '../../components/Role/RolePanel'
import RoleModal fr... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/library-books.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvLibraryBooks = (props) => (
<SvgIcon {...props}>
<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"/>
</SvgIcon>
);
AvLibrary... |
src/components/attributes/d3-parsed/AttrListItem.js | jjeffreyma/ID3-React | import React, { Component } from 'react';
//
// As soon as we have the attribute object parsed the code commented out below is
// the over layout and styling.
class AttrListItem extends Component {
constructor(props) {
super(props);
this.state = {
checkbox: false
};
this.handleCheckbox = this.... |
react-flux-mui/js/material-ui/src/svg-icons/image/navigate-before.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNavigateBefore = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
ImageNavigateBefore = pure(ImageNavigateBefore);
ImageNavigateBefore.displayName... |
Libraries/Components/MapView/MapView.js | shrutic/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/pages/Components/Buttons/Colors.js | JSLancerTeam/crystal-dashboard | import React from 'react';
const Colors = () => (
<div>
<div className="header">
<h4 className="title">Colors</h4>
</div>
<div className="content buttons-with-margin">
<button className="btn btn-default btn-fill btn-wd">Default</button>
<button className="btn btn-primary btn-fill btn-wd... |
src/component/profileScreen/TransactionItem.js | BristolPound/cyclos-mobile-3-TownPound | import React from 'react'
import { View, TouchableHighlight, Animated, Text, Image } from 'react-native'
import DefaultText from '../DefaultText'
import Price from '../Price'
import {format} from '../../util/date'
import styles from './ProfileStyle'
import Images from '@Assets/images'
import Colors from '@Colors/colors... |
tests/lib/rules/vars-on-top.js | platinumazure/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const rule = require("..... |
src/svg-icons/communication/contact-phone.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationContactPhone = (props) => (
<SvgIcon {...props}>
<path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-... |
src/svg-icons/action/settings-ethernet.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsEthernet = (props) => (
<SvgIcon {...props}>
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/settings-input-hdmi.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsInputHdmi = (props) => (
<SvgIcon {...props}>
<path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/>
</SvgIcon>
);
ActionSettingsInputHdmi.displayName = 'ActionSettingsI... |
tests/react_web_tests/test_data/react_code/WebButton/src/components/Desktop/component.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import styled from 'styled-components'
import SharpButton from '../SharpButton'
const Desktop = (props) => (
<DesktopStyledComponent>
<SharpButton
onClick={this.onClick}
></SharpBu... |
docs/src/app/pages/components/Dropdown/Page.js | GetAmbassador/react-ions | import React from 'react'
import PropsList from 'private/modules/PropsList'
import docs from '!!docgen!react-ions/lib/components/Dropdown/Dropdown'
import CodeExample from 'private/modules/CodeExample'
import ExampleDropdownButton from './ExampleDropdownButton'
import exampleDropdownButtonCode from '!raw!./ExampleDropd... |
client/trello/src/app/routes/home/routes/boardView/components/CardItems/CardItems.js | Madmous/madClones | import React, { Component } from 'react';
import { CreateCardItem, CardItem } from '../index';
import './CardItems.css';
export default class CardItems extends Component {
constructor(props) {
super(props);
this.state = {
placeholderIndex: undefined
};
}
renderCardItems() {
const { cardI... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | chengjunjian/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
examples/todomvc/index.js | coderstudy/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
pootle/static/js/auth/components/SocialSignInForm.js | phlax/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
app/src/components/MainTabs/index.js | oh-my-github/yo-omg-basic | import React from 'react'
import Tabs from 'material-ui/lib/tabs/tabs'
import Tab from 'material-ui/lib/tabs/tab'
import FlatButton from 'material-ui/lib/flat-button'
import FontIcon from 'material-ui/lib/font-icon'
import { MainColors, TabColors, } from '../../theme'
import EmptyTabs from './EmptyTabs'
import MainTab... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js | stockspiking/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
js/views/user/CreateUserView.js | n8e/memoirs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay';
import { Grid, Row, Col, FormGroup, FormControl, Button, Panel, Alert, ControlLabel } from 'react-bootstrap';
import SignUpMutation from '../../mutations/SignUpMutation';
const camelToTitleCase = text => tex... |
src/svg-icons/av/play-circle-outline.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlayCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 ... |
lib-module-node7-dev/RedBoxWrapper.js | turacojs/fody | var _jsxFileName = 'RedBoxWrapper.jsx',
_this = this;
import React from 'react';
import RedBox from 'redbox-react';
import t from 'flow-runtime';
const PropsType = t.type('PropsType', t.object(t.property('error', t.any())));
export default (function redBoxWrapper(_arg) {
let { error } = PropsType.assert(_arg)... |
src/client/index.js | kiki-le-singe/react-redux-universal-boilerplate | import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import createHistory from 'history/createBrowserHistory'
import { Provider } from 'react-redux'
import { AppContainer } from 'react-hot-loader'
import { ConnectedRouter } from 'react-router-redux'
import AppLayout from 'common/layouts/... |
src/js/components/modal/modal_button.js | rafaelfbs/realizejs | import React, { Component } from 'react';
import PropTypes from '../../prop_types';
import { autobind, mixin } from '../../utils/decorators';
import { Button } from '../../components';
import { CssClassMixin } from '../../mixins';
import ModalActions from '../../actions/modal_actions';
@mixin(CssClassMixin)
export d... |
packages/ringcentral-widgets/components/DropdownSelect/index.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './styles.scss';
import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss';
class DropdownSelect extends Component {
constructor(props) {
super(props);
this.state... |
src/components/itemsManager/transfer/WeaponContent.js | MrRandol/littleLight | /******************
REACT IMPORTS
******************/
import React from 'react';
import { View, Text, Image, TouchableOpacity } from 'react-native';
/*****************
CUSTOM IMPORTS
******************/
import T from 'i18n-react';
var styles = require('../../../styles/itemsManager/transfer/WeaponContent');
impor... |
node_modules/rc-tabs/es/SwipeableTabBarMixin.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
import classnames from 'classnames';
import Hammer from 'rc-hammerjs';
import ReactDOM from 'react-dom';
import { isVertical, getStyle, setPxStyle } from './utils';
expor... |
ReactJS/07.Async-Redux/chiper-spa/src/components/elements/auth.js | Martotko/JS-Web | import React, { Component } from 'react';
import { connect } from 'react-redux'
import Login from './login'
import Register from './register'
import actions from './../../store/actions/action'
class Auth extends Component {
constructor(props) {
super(props)
this.state = {
login: true
... |
react/features/overlay/components/web/SlowGUMOverlay.js | gpolitis/jitsi-meet | // @flow
import Spinner from '@atlaskit/spinner';
import React from 'react';
import { translate } from '../../../base/i18n';
import AbstractSlowGUMOverlay from './AbstractSlowGUMOverlay';
import OverlayFrame from './OverlayFrame';
/**
* Implements a React {@link Component} for slow gUM overlay. Shown when
* a slow... |
src/containers/Dialogs.js | vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome | import React from 'react';
import PropTypes from 'prop-types';
import ons from 'onsenui';
import {
Page,
List,
ListItem,
ListHeader,
Dialog,
Button
} from 'react-onsenui';
import Popovers from '../components/Popovers';
class Dialogs extends React.Component {
constructor(props) {
s... |
src/MicroGarden.Settings.UI/app/settings/components/settings/fields/TextField.js | chaliy/microgarden-settings | import React from 'react';
export default ({ field, defaultValue, onChange }) => {
var localOnChange = e => {
onChange({
name: field.name,
value: e.target.value
});
}
return (
<div key={field.name} className="form-group">
<label htmlFor={field.name}>{field.displayName}</... |
src/core/display/App/Component/List.js | JulienPradet/pigment-store | import React from 'react'
import ComponentPreview from './Preview'
export default ({category, pathname}) => <div>
{category.components
.map((component) => <ComponentPreview
key={component.name}
pathname={pathname}
component={component}
/>)}
</div>
|
examples/babel-plugin-react-hot/index.js | bloodyowl/redbox-react | import React from 'react'
import App from './components/App'
const root = document.getElementById('root')
React.render(<App />, root)
|
website/sections/StaticSiteGenerator.js | sahat/boilerplate | import React from 'react';
import cx from 'classnames';
const STATIC_SITE_SVG = (
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 26 26">
<path d="M 25.15625 0.1875 C 23.885328 0.2454375 20.96425 0.5555 18.0625 2 C 16.8205 2.62 15.58275 3.4505 14.46875 4.5625 C 12.648519 6.3827313 10.... |
app/assets/flow/controllers/open-source.js | aewing/portfolio | 'use strict';
import React from 'react'
import { Link } from 'react-router'
import { Card, CardTitle, Row, Col } from 'react-materialize'
export default class OpenSourceController extends React.Component {
constructor(props) {
super(props);
this.state = {
entries: [
{
image: "/img/de... |
src/routes/admin/index.js | DaveyEdwards/myiworlds | /**
* 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 { graphql } from 'rel... |
src/user/containers/welcome_screen.js | foundersandcoders/sail-back | import React from 'react'
import { connect } from 'react-redux'
import { identity, merge, propOr } from 'ramda'
import { toggle_gift_aid, toggle_delivery_method } from '../../shared/redux/modules/member.js'
class WelcomeScreen extends React.Component {
constructor (props) {
super(props)
this.state = {
... |
packages/rex-intl-example/src/browser.js | linear-bits/linear-bits | import React from 'react'
import {render} from 'react-dom'
import Cookies from 'js-cookie'
import {Provider} from 'react-redux'
import App from './app.js'
import createStore from './store.js'
import Intl from './intlProvider.js'
const preloadedState = window.PRELOADED_STATE
const store = createStore(Cookies, preloaded... |
src/helpers/universalRouter.js | CarlosMela/react-redux-universal-hot-example | import React from 'react';
import Router from 'react-router';
import createRoutes from '../routes';
import {Provider} from 'react-redux';
const getFetchData = (component = {}) => {
return component.WrappedComponent ?
getFetchData(component.WrappedComponent) :
component.fetchData;
};
export function createTr... |
src/client/components/FlickrAsync/Flickr.js | EdgeJay/web-starterkit | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { bindActions, mapStateToProps } from '../../stores';
import * as actions from '../../actions/main';
import PageHeader from '../PageHeader';
const Row = styled.div`
fle... |
node_modules/react-bootstrap/es/MediaBody.js | caughtclean/but-thats-wrong-blog | 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 ... |
MadWare.Hathor.FrontEnd/src/js/components/App.js | zvizdo/MadWare.Hathor | import React from 'react'
import { connect } from 'react-redux'
class App extends React.Component {
render() {
return (
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h1 id="container">Hathor</h1>
</d... |
pages/table.js | ieugen/reactjs-universal-demo | "use strict";
import React from 'react'
import Layout from './layout'
class ComunityList extends React.Component {
renderRows(data) {
return data.map((row, index) => {
return (
<tr key={index}>
<td>{index + 1}</td>
<td className="show-for... |
packages/react/src/components/ListBox/ListBox.js | carbon-design-system/carbon-components | /**
* 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 cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { settings } from 'carbon-components';
imp... |
src/components/dialogs/DialogRenderables.js | ello/webapp | /* eslint-disable react/no-danger */
import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import ImageAsset from '../../components/assets/ImageAsset'
import { DismissButton } from '../../components/buttons/Buttons'
import { dialogStyle as baseDialogStyle } from './Dialog'
imp... |
src/App.js | yqy980210/verse-ink | import React from 'react';
import {ContentState, convertFromRaw, convertToRaw, Editor, EditorState, Entity, SelectionState} from 'draft-js';
import {BlockRender, renderSelectionChange, renderSelectionChange1} from "./Render";
import {InlineDecorator} from './inline/decorator';
import InlineStyleMap from './inline/style... |
src/App.js | mschaeffner/react-getting-started | import React, { Component } from 'react';
import Heading from './Heading';
import UserItem from './UserItem';
import Searchbar from './Searchbar';
class App extends Component {
constructor(props) {
super(props);
this.state = {
users: null,
keyword: ''
};
}
componentDidMount() {
fetc... |
node_modules/react-bootstrap/es/HelpBlock.js | ASIX-ALS/asix-final-project-frontend | 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 ... |
imports/startup/client/index.js | hwillson/shopify-hosted-payments | /* global document */
import { render } from 'react-dom';
import renderRoutes from './routes';
render(renderRoutes(), document.getElementById('app'));
/*
import React from 'react';
import { render } from 'react-dom';
import { Meteor } from 'meteor/meteor';
import PaymentContainer from '../../ui/containers/PaymentC... |
tpl-plugin/components/Plugin.js | synthesis-js/react-synthesis | // Comment.js
import React from 'react';
class Comment extends React.Component {
constructor(props) {
super(props);
this.state = {
postId: this.props.postData._id,
comments: [],
input: ''
}
this.getCommentsFromDB = this.getCommentsFromDB.bind(this);
}
componentDidMount() {
// i... |
showcase/plot/stacked-vertical-bar-chart.js | Apercu/react-vis | // Copyright (c) 2016 - 2017 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... |
src/svg-icons/places/all-inclusive.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAllInclusive = (props) => (
<SvgIcon {...props}>
<path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.7... |
example/src/Screens/Docs/shared/Browser/index.js | maisano/react-router-transition | import React, { Component } from 'react';
import { MemoryRouter as Router } from 'react-router-dom';
import BrowserWrapper from './Wrapper';
import BrowserTopBar from './TopBar';
import BrowserViewport from './Viewport';
const Browser = ({ children, defaultPathname }) => (
<Router initialEntries={[defaultPathname]}... |
example/src/scroll.js | manufont/react-swipeable-bottom-sheet | import React from 'react';
import ReactDOM from 'react-dom';
import SwipeableBottomSheet from 'react-swipeable-bottom-sheet';
class App extends React.Component {
render () {
const styles={
title:{
backgroundColor: '#00bcd4',
padding: '16px 0',
boxSizing: 'border-box',
color: 'white',
minHeig... |
src/svg-icons/maps/local-phone.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-... |
examples/huge-apps/components/Dashboard.js | tkirda/react-router | import React from 'react'
import { Link } from 'react-router'
class Dashboard extends React.Component {
render() {
const { courses } = this.props
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
you... |
docs/src/app/components/pages/components/Slider/ExampleDisabled.js | pradel/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
const SliderExampleDisabled = () => (
<div>
<Slider disabled={true} />
<Slider disabled={true} value={0.5} />
<Slider disabled={true} value={1} />
</div>
);
export default SliderExampleDisabled;
|
react-ui/src/shared/Layout.js | EdwinJow/truthindata | import React, { Component } from 'react';
import '../css/main.css';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import { Link } from 'react-router'
import injectTapEventPlugin... |
website/src/components/explorables/season1/scorigami/index.js | jwngr/notreda.me | import _ from 'lodash';
import React from 'react';
import {Helmet} from 'react-helmet';
import ScorigamiChart from './ScorigamiChart';
import NewsletterSignupForm from '../../../common/NewsletterSignupForm';
import {
P,
Stat,
Image,
Title,
Byline,
Caption,
Heading,
Divider,
Wrapper,
Subtitle,
St... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-tabs/es/SwipeableInkTabBar.js | bhathiya/test | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
import createReactClass from 'create-react-class';
import classnames from 'classnames';
import InkTabBarMixin from './InkTabBarMixin';
import SwipeableTabBarMixin from './... |
src/svg-icons/content/remove.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemove = (props) => (
<SvgIcon {...props}>
<path d="M19 13H5v-2h14v2z"/>
</SvgIcon>
);
ContentRemove = pure(ContentRemove);
ContentRemove.displayName = 'ContentRemove';
ContentRemove.muiName = 'SvgIcon... |
fields/types/datetime/DatetimeField.js | suryagh/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'DatetimeField',
focusTargetRef: 'dateInput',
// d... |
src/page/search/search-header/mixin/index.js | KleeGroup/focus-components | import React from 'react';
import actionBuilder from 'focus-core/search/action-builder';
import { advancedSearchStore } from 'focus-core/search/built-in-store';
import { component as SearchBar } from '../../../..//search/search-bar';
import referenceBehaviour from '../../../..//common/form/mixin/reference-behaviour';... |
app/ReadingGank.js | AndryYu/ReadingGank | import React from 'react';
import { Provider } from 'react-redux';
import configureStore from './store/configure-store';
import Index from './containers/app';
import rootSaga from './sagas/index'
const store = configureStore();
// run root saga
store.runSaga(rootSaga);
const App = () =>(
<Provider store={store}>... |
web/src/js/components/General/Scrollable.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import { Scrollbars } from 'react-custom-scrollbars'
class Scrollable extends React.Component {
render() {
// Must either set a height or set autoHeight=true.
// https://github.com/malte-wessel/react-custom-scrollbars
return (
<Scrollbars... |
src/svg-icons/places/kitchen.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesKitchen = (props) => (
<SvgIcon {...props}>
<path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/>
... |
docs/src/app/components/pages/components/LinearProgress/ExampleDeterminate.js | rscnt/material-ui | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
export default class LinearProgressExampleDeterminate extends React.Component {
constructor(props) {
super(props);
this.state = {
completed: 0,
};
}
componentDidMount() {
this.timer = setTimeout(() => thi... |
docs/app/Examples/collections/Grid/Types/GridExampleDividedPhrase.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleDividedPhrase = () => (
<Grid columns='three' divided>
<Grid.Row>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/media-paragraph.png' />
</Grid.Column>
<Grid.Column>
<Im... |
src/components/form/PasswordField.js | RelativeMedia/rm-frontend | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
const PasswordField = ({ disabled, inputLg, input, label, placeholder, type, meta: {valid, touched, error} }) => {
const classes = classNames('form-group', {
'has-error': (touched && !valid),
'has-success': (touc... |
spec/coffeescripts/jsx/shared/modal-buttonsSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
docs/app/Examples/collections/Grid/Content/GridExampleRows.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleRows = () => (
<Grid columns={3}>
<Grid.Row>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic-ui... |
node_modules/react-router/es/RouteUtils.js | Rabbit884/reactapp | 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; };
import React from 'react';
function isValidChild(object) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.