path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/components/notice/loading.js | AiZhanglove/my_insurance | import React from 'react'
import ReactDom from 'react-dom';
import './notice.less'
let loadingExist = false;
let loadingContainer=null;
const Loading=(props)=>{
return (
<div className="animate"></div>
);
}
Loading.show=function (transparent=true) {
try{
MiFiJsInternal.startLoading(!transpar... |
NavigationReactNative/sample/twitter/__tests__/App-test.js | grahammendick/navigation | /**
* @format
*/
import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
renderer.create(<App />);
});
|
frontend/test/components/dashboard/free-resource/FreeResource.spec.js | leapfrogtechnology/vyaguta-resource | import React from 'react';
import expect from 'expect';
import {shallow, mount} from 'enzyme';
import jsdom from 'jsdom';
//components
import FreeResource from '../../../../src/js/components/dashboard/free-resource/FreeResource';
import FreeResourceItem from '../../../../src/js/components/dashboard/free-resource/FreeR... |
src/components/AuthenticatedComponent.js | joshgeller/react-redux-jwt-auth-example | import React from 'react';
import {connect} from 'react-redux';
import {pushState} from 'redux-router';
export function requireAuthentication(Component) {
class AuthenticatedComponent extends React.Component {
componentWillMount () {
this.checkAuth(this.props.isAuthenticated);
}
... |
app/javascript/mastodon/components/status.js | glitch-soc/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
bai/src/components/TeamMembers/index.js | blackinai/blackinai.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import { Container, Divider, Avatar, Link} from '@material-ui/core/';
import Typography from '../Typography';
import { FontAwesomeIcon } from '@fortawesome/rea... |
client/src/auth/SignUp.spec.js | flyrightsister/boxcharter | /*
* Copyright (c) 2018 Bonnie Schulkin. All Rights Reserved.
*
* This file is part of BoxCharter.
*
* BoxCharter 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, ... |
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/Base/Loading/Loading.js | Minoli/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
client/page/redirects/columns/source.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import { isEnabled } from 'component/table/utils';
import SourceName from './source-name';
import Target from './target';
import SourceFlags from './source-flags';
import Sourc... |
client/src/pages/user.js | HKuz/FreeCodeCamp | import React from 'react';
import { Router } from '@reach/router';
import RedirectHome from '../components/RedirectHome';
import ShowUser from '../client-only-routes/ShowUser';
function User() {
return (
<Router>
<ShowUser path='/user/:username/report-user' />
<RedirectHome default={true} />
</R... |
node_modules/semantic-ui-react/dist/es/views/Feed/FeedEvent.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { createShorthand, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
import FeedContent from './FeedContent';
import FeedLabel from './Feed... |
fixtures/ssr/src/index.js | apaatsio/react | import React from 'react';
import {hydrate} from 'react-dom';
import App from './components/App';
hydrate(<App assets={window.assetManifest} />, document);
|
src/www/js/index.js | nickolusroy/react_dnd | import React from 'react';
import ReactDOM from 'react-dom';
import * as utilities from "./utilities.js";
import raceData from '../json/races.json';
import { CharacterSheet } from './character-sheet.js';
import { DropDown } from './form-fields/drop-down.js';
import { TextInput } from './form-fields/text-input.js';
impo... |
app/pages/admin/AuthShow/index.js | czy0729/react-alumni | /**
* 认证需填写字段
* 170307 判断来源add_alumni
* @Date: 2017-02-20 15:58:37
* @Last Modified by: Administrator
* @Last Modified time: 2017-03-19 06:39:20
*/
'use strict';
import React from 'react';
import { form, observer } from 'decorators';
import { $auth } from 'stores';
import { Button } from 'antd-mobile';
import ... |
src/table/SKTable.js | ShaneKing/sk-antd | import {Table} from 'antd';
import PropTypes from 'prop-types';
import React from 'react';
import {SK} from 'sk-js';
import AntdComp from '../AntdComp';
import {SIZE} from '../AntdConst';
Table.defaultProps = SK.extends(true, {}, {
bordered: false,
defaultExpandAllRows: false,
expandRowByClick: false,
indentSi... |
src/svg-icons/content/next-week.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentNextWeek = (props) => (
<SvgIcon {...props}>
<path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2... |
pages/pro.js | dracula/dracula.github.io | import React from 'react';
import Head from 'next/head';
import Topbar from '../components/pro/Topbar';
import Header from '../components/pro/Header';
import Description from '../components/pro/Description';
import Preview from '../components/pro/Preview';
import Why from '../components/pro/Why';
import Palette from '... |
node_modules/react-navigation/lib-rn/views/Drawer/DrawerNavigatorItems.js | RahulDesai92/PHR | import React from 'react';
import { View, Text, Platform, StyleSheet } from 'react-native';
import TouchableItem from '../TouchableItem';
var babelPluginFlowReactPropTypes_proptype_Style = require('../../TypeDefinition').babelPluginFlowReactPropTypes_proptype_Style || require('prop-types').any;
var babelPluginFlowRe... |
src/components/search-cancer-type.js | sfordjasiri/TT | import React from 'react';
//import {reduxForm, Form, FormGroup, Field} from 'redux-form';
//import {connect} from 'react-redux';
class SearchCancerType extends React.Component {
onSubmit() {
console.log("Enter SearchCancerType.onSubmit(). this: ", this);
}
render() {
console.log("SearchCancerType.rend... |
fields/types/azurefile/AzureFileColumn.js | kwangkim/keystone | import React from 'react';
var AzureFileColumn = React.createClass({
renderValue () {
var value = this.props.data.fields[this.props.col.path];
if (!value) return;
return <a href={value.url} target='_blank'>{value.url}</a>;
},
render () {
return (
<td className="ItemList__col">
<div className="ItemLis... |
app/components/specificComponents/SocialBanner/SocialIcon.js | romainquellec/cuistot | import React from 'react';
const { PropTypes } = React;
const SocialIcon = (props) => (
<svg width="32" height="32" viewBox={props.viewBox}>
<path d={props.icon} />
</svg>
);
SocialIcon.propTypes = {
icon: PropTypes.string.isRequired,
};
export default SocialIcon;
|
demo/virtualized.js | conorhastings/react-syntax-highlighter | import React from 'react';
import { render } from 'react-dom';
import SyntaxHighlighter from '../src/index';
import virtualizedRenderer from 'react-syntax-highlighter-virtualized-renderer';
import ExamplesLinks from './examples-links';
import hljsStyles from './styles/hljs';
const availableStyles = hljsStyles;
class ... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | lstNull/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
app/javascript/mastodon/features/ui/components/onboarding_modal.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Permalink from '../../../components/per... |
app/components/browser/Connections.js | careykevin/reddy | // @flow
import React, { Component } from 'react';
import type { RedisConnection } from '../../utils/Types';
export default class Connections extends Component {
props: {
connections: Array<RedisConnection>,
selectedConnection: ?RedisConnection,
handleConnectionSelect: (RedisConnection) => void
};
... |
src/client/components/general/FeedbackButton/FeedbackButton.component.js | DBCDK/content-first | import React from 'react';
import Button from '../../base/Button/Button';
import Icon from '../../base/Icon/Icon';
import './FeedbackButton.css';
function FeedbackButton() {
return (
<div className="feedback-container">
<Button
className="Button__feedback"
type="secondary"
size="me... |
project/src/scenes/Blog/TagList/index.js | strues/boldr | // @flow
import React from 'react';
import { graphql } from 'react-apollo';
import universal from 'react-universal-component';
import ARTICLES_FOR_TAG from '../gql/articlesForTag.graphql';
import type { ArticlesType, MatchParams } from '../../../types/boldr';
const UniversalTagList = universal(import('./TagList'));
t... |
cerberus-dashboard/src/components/EditSDBoxForm/EditSDBoxForm.js | Nike-Inc/cerberus | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
docs/app/Examples/modules/Dropdown/Variations/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DropdownVariationsExamples = () => (
<Exa... |
src/ui/sidebar/component-selection/ButtonGroup.js | circuitsim/circuit-simulator | import React from 'react';
import R from 'ramda';
function styles({ STYLES }) {
return {
group: {
margin: '10px 0px'
},
buttons: {
display: 'flex',
justifyContent: 'flex-start',
flexWrap: 'wrap',
alignItems: 'baseline'
},
title: R.merge(STYLES.title, {paddingLeft: '5... |
src/components/book/BookPage.js | jjoyce24/book-store | import React from 'react';
class Book extends React.Component{
constructor(props){
// Pass props back to parent
super(props);
}
// Submit book handler
submitBook(input){
alert('Submitted')
}
render(){
// Title input tracker
let titleInput;
// return JSX
return(
<div>
... |
app/js/components/map/BoundAllMarkersBtn.js | jayeeeeee/trip-planner | import React from 'react';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import SelectAll from 'material-ui/svg-icons/content/select-all';
const BoundAllMarkersBtn = ({ onClick }) => (
<FloatingActionButton onTouchTap={onClick}>
<SelectAll />
</FloatingActionButton>
)
export default Bou... |
packages/node_modules/@ciscospark/react-component-badge/src/index.js | bzang/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
/**
* Badge is supplemental, non-clickable component used to help bring attention to an item or object.
* @param {object} props
* @returns {object}
* @constructor
*/
const Badge =... |
client/app/components/stack.js | dat2/hanabi-clone-web | import React from 'react'
import Card from './card'
function makeStyle({ colour, index }) {
return ({
// colouring
backgroundColor: colour,
color: 'black',
opacity: 0.8,
// positioning
zIndex: index,
position: 'absolute',
top: (index * 20) + 'px',
left: 0,
right: 0
})
}
cl... |
components/card/Card.js | jasonleibowitz/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import classnames from 'classnames';
import { CARD } from '../identifiers.js';
const Card = ({children, className, raised, theme, ...other}) => {
const classes = classnames(theme.card, {
[theme.raised]: raised... |
src/App.js | ororidotcom/react-todo | import React, { Component } from 'react';
import './App.css';
import Title from './components/Title'
import Todos from './components/Todos'
import Footers from './components/Footer'
class App extends Component {
render() {
return (
<div className="App">
<Title />
<Todos />
<Footers ... |
lib/js/Spacer.js | travelbird/react-native-navigation | import React from 'react';
import PropTypes from 'prop-types';
import {
DeviceEventEmitter,
View,
LayoutAnimation,
} from 'react-native';
class Spacer extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
height: context.nativeNavigationInitialBarHeight || ... |
src/prisonBreak/Map.js | link1900/linkin-games | // @flow
import React from 'react';
import { Layer, Rect, Stage, Group, Line } from 'react-konva';
import './commandLine.css';
export type CellBorder = {
show: boolean,
color: string
};
export type Cell = {
x: number,
y: number,
size: number,
show: boolean,
borderTop: CellBorder,
borde... |
src/message.js | Rakshay/InfiniteScroller | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import Swipeable from 'react-swipeable';
import classnames from 'classnames';
import PropTypes from 'prop-types';
/**
* This react component renders the message to the user
* @class
*/
class Message extends React.Component {
... |
app/javascript/mastodon/features/standalone/public_timeline/index.js | honpya/taketodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import {
refreshPublicTimeline,
expandPublicTimeline,
} from '../../../actions/timelines';
import Column from '../../../components/column... |
app/HomeAutomation/__tests__/App.js | tomatrocho/auto-door | import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<App />
);
});
|
src/client/AppConnector.js | terebentina/mongo-manager | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchDatabasesIfNeeded, hideMessage } from './actions';
import App from './App';
function AppConnector(props) {
return <App {...props} />;
}
function mapStateToProps(state) {
return {
modalTo... |
frontend/react/components/BlockGrid.js | Dishant15/TechIntrest | import React from 'react';
import $ from 'jquery';
import _ from 'lodash';
import Block from './Block';
export default class BlockGrid extends React.Component {
constructor() {
super();
this.setDefaults();
this.setContainerWidth = this.setContainerWidth.bind(this);
this.handleWindowResize = this.handleWind... |
src/website/app/demos/Grid/Grid/propsComment.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
export default (
<div>
<p>
In addition to the props above, Grid also accepts all props for{' '}
<a href="/components/box">Box</a>.
</p>
<p>
<em>Undocumented properties will be applied to the root element.</em>
</p>
</div>
);
|
ki1st-xtqb/src/main/webapp/front/app/components/Footer.js | chosenki/chosenki-2016 | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
展示:
{" "}
<FilterLink filter="SHOW_ALL">
全部
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
活跃的
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">
... |
lib/component/treeView.js | UniQLab/TreeView | import _ from 'lodash';
import React from 'react';
import BaseView from './baseView';
class TreeView extends BaseView {
constructor(props) {
super(props);
}
_onBind() {
this._onDraw = this._onDraw.bind(this);
this._onViewChanged = this._onViewChanged.bind(this);
}
_onSetup() {
return {
store: this.pr... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | Ajunboys/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { Styles, TextField, FlatButton } from 'material-ui';
import AddContactStore from 'stores/AddContactStore';
import AddContactActionCreators from 'actions... |
tests/react/useRef_hook.js | facebook/flow | // @flow
import React from 'react';
class Foo extends React.Component<{}, void> {}
class Bar extends React.Component<{}, void> {}
{
const stringValue: {current: string} = React.useRef("abc"); // Ok
const numberValue: {current: number} = React.useRef(123); // Ok
const booleanValue: {current: boolean} = React.us... |
src/svg-icons/device/access-time.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessTime = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-1... |
app/containers/App.js | desktop-assistant/desktop-assistant | // @flow
import React, { Component } from 'react';
import type { Children } from 'react';
import AutoUpdate from '../components/AutoUpdate';
import styles from './App.css';
export default class App extends Component {
props: {
children: Children
};
render() {
return (
<div className={styles.app}>... |
src/components/organisms/delete-button.js | raulfdm/cv | import React from 'react';
import { faTrash } from '@fortawesome/free-solid-svg-icons';
import ButtonIcon from 'molecules/button-icon';
const DeleteButton = props => {
return <ButtonIcon icon={faTrash} type="button" variant="danger" {...props} />;
};
export default DeleteButton;
|
src/components/Crawler/Jobs/index.js | saitodisse/scrap-cerebral-2 | import React, { Component } from 'react';
import { connect } from 'cerebral/react';
import jobs_list from '../../../computed/jobs_list';
import JobItem from './JobItem/index';
import BigLoading from '../../BigLoading/index';
import { Table, Segment, Button } from 'semantic-ui-react';
require('./index.css');
export def... |
packages/docs/components/Examples/video/SimpleVideoEditor/index.js | nikgraf/draft-js-plugin-editor | import React, { Component } from 'react';
import { EditorState, convertFromRaw } from 'draft-js';
import Editor from '@draft-js-plugins/editor';
import createVideoPlugin from '@draft-js-plugins/video';
import editorStyles from './editorStyles.module.css';
const videoPlugin = createVideoPlugin();
const { types } = vide... |
app/javascript/flavours/glitch/features/community_timeline/components/column_settings.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingText from 'flavours/glitch/components/setting_text';
import SettingToggle from 'flavours/glitch/features/not... |
components/Knapsack.js | juhojo/WLO | import React, { Component } from 'react';
import { KnapsackTools } from './Tools/Tools.js';
import { KnapsackResultList } from './ResultList/ResultList.js';
import data from '../js/data.js';
import { knapsack, manda, valueToWeight } from '../js/algorithms.js';
export default class Knapsack extends Component {
const... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js | liamhu/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(id = 0) {
return [
{ id: id + 1, name... |
node_modules/@material-ui/core/es/BottomNavigation/BottomNavigation.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import warning from 'warning';
import withStyles from '../styles/withStyles';
ex... |
src/views/SecretView.js | AndrewTHuang/fear-the-repo | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import counterActions from 'actions/counter';
// import { RaisedButton } from 'material-ui/lib';
const mapStateToProps = (state) => ({
counter: state.counter,
routerState: state.router
});
const mapDispatc... |
src/Manager.js | LabPulse/walmart-labs | import React, { Component } from 'react';
import Calendar from './CalendarManager.js';
import List from './ListManager.js';
class Manager extends Component {
render() {
const subs = [
{
start: '2017-08-10',
title: 'Tide',
frequency: 5
... |
spec/components/github_icon.js | soyjavi/react-toolbox | import React from 'react';
const GithubIcon = () => (
<svg viewBox="0 0 284 277">
<g><path d="M141.888675,0.0234927555 C63.5359948,0.0234927555 0,63.5477395 0,141.912168 C0,204.6023 40.6554239,257.788232 97.0321356,276.549924 C104.12328,277.86336 106.726656,273.471926 106.726656,269.724287 C106.726656,266.340838... |
components/animals/ustricnikVelky.child.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/ustricnikVelky/01.... |
node_modules/eslint-config-airbnb/test/test-react-order.js | chuntielin/yeoman_react_fullstack | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import baseConfig from '../base';
import reactRules from '../rules/react';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: {indent: 0},
});
function... |
components/input/demo/index.js | TDFE/td-ui | /**
* @Author: GinaLu <ljq>
* @Date: 2017-05-16 14:49:49
* @Last modified by: ljq
* @Last modified time: 2017-05-16 18:33:09
*/
/* eslint-disable */
import React from 'react';
import ReactDOM from 'react-dom';
const MOUNT_NODE = document.getElementById('app');
let render = () => {
/* eslint-disable no-un... |
step7-flux/node_modules/react-router/modules/Redirect.js | jintoppy/react-training | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should
... |
test/TabsSpec.js | jakubsikora/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Col from '../src/Col';
import Grid from '../src/Grid';
import Nav from '../src/Nav';
import NavItem from '../src/NavItem';
import Row from '../src/Row';
import Tab from '../src/Tab';
import Tabs from '../src/Tabs';
import ValidCo... |
src/Value.js | cmpis/react-select | import React from 'react';
import classNames from 'classnames';
const Value = React.createClass({
displayName: 'Value',
propTypes: {
children: React.PropTypes.node,
disabled: React.PropTypes.bool, // disabled prop passed to ReactSelect
id: React.PropTypes.string, // Unique id ... |
src/components/student_test.js | conniechu929/eSparkStudentData | import _ from 'lodash';
import React, { Component } from 'react';
import { csv } from 'd3-request';
import * as d3 from "d3";
import { csvParseRows } from 'd3-dsv';
import { CSVLink, CSVDownload } from 'react-csv';
class Node {
constructor(val, priority) {
this.value = val;
this.priority = priority;
... |
client/App.js | Danielbook/liftinglog | /**
* Root Component
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { browserHistory, Router } from 'react-router';
// Import Routes
import routes from './routes';
// Base stylesheet
require('./main.css');
export default function App(props) {
retur... |
docs/client/routes.js | draft-js-plugins/draft-js-plugins-v1 | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/wrappers/App';
import Page from './components/wrappers/Page';
import NotFound from './components/pages/NotFound';
import Home from './components/pages/Home';
import Hashtag from './components/pages/Hashtag';
impo... |
src/containers/SignupContainer.js | ello/webapp | import React from 'react'
import { MainView } from '../components/views/MainView'
import RegistrationRequestForm from '../components/forms/RegistrationRequestForm'
export default props =>
(<MainView className="Authentication">
<div className="AuthenticationFormDialog">
<RegistrationRequestForm {...props} /... |
src/components/Old.js | ltoddy/ltoddy.github.io | import React from 'react'
import ReactTooltip from 'react-tooltip'
import old from '../../assets/old.png'
import css from './Old.css'
class Old extends React.Component {
constructor() {
super()
}
shouldComponentUpdate() {
return false
}
render() {
return (
<div>
<div className={... |
packages/material-ui-icons/src/Storage.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z" /></g>
, 'Storage');
|
src/components/charts/charts/table/index.js | noahehall/udacity-corporate-dashboard | import React from 'react';
import Thead from './thead.js';
import Tbody from './tbody.js';
export const Table = ({ className, data, id, filterable, sortable }) => {
let thisClassName = className
? className
: '';
if (sortable) thisClassName += ' sortable';
return (
<table className={thisClassName} i... |
step7-flux/app/js/components/Main.js | jintoppy/react-training | import React from 'react';
import {Link} from 'react-router';
import UserCounter from './UserCounter';
class Main extends React.Component {
constructor(props) {
super(props);
this.state = {
name: "guest"
};
}
render() {
return (
<div className="ma... |
src/ctl/ui/src/components/RollupRulesTable.js | m3db/m3db | // Copyright (c) 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, merge... |
techCurriculum/ui/solutions/4.5/src/App.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
src/components/common/icons/X.js | goodjoblife/GoodJobShare | import React from 'react';
/* eslint-disable */
const X = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<path d="M145.29003,2.7097656 C143.570709,0.975547058 141.229771,1.49332653e-16 138.787634,0 C136.345497,-1.50064675e-16 134.004559,0.975547058 132.285237,2.7097656 L74,60.990601... |
js/App/Components/TabViews/SubViews/ButtonLoadingIndicator.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
packages/wix-style-react/src/StyledNestableList/StyledNestableList.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { classes as theme } from './NestableListTheme.st.css';
import { classes, st } from './StyledNestableList.st.css';
import NestableList from '../NestableList';
import TableListItem from '../TableListItem';
import Box from '../Box';
import { Arrow } ... |
modules/Route.js | yongxu/react-router | import React from 'react';
import warning from 'warning';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './PropTypes';
var { string, bool, func, object } = React.PropTypes;
/**
* A <Route> is used to declare which components are r... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | liuzwei/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ActorClient from 'utils/ActorClien... |
UI/Buttons/ButtonPlus.js | Datasilk/Dedicate | import React from 'react';
import { View, TouchableOpacity} from 'react-native';
import {Path} from 'react-native-svg';
import SvgIcon from 'ui/SvgIcon';
import AppStyles from 'dedicate/AppStyles';
export default class ButtonPlus extends React.Component {
constructor(props){
super(props);
}
render... |
src/renderer/components/dialogs/Error.js | digidem/ecuador-map-editor | import React from 'react'
import TextareaAutosize from '@material-ui/core/TextareaAutosize'
import Dialog from '@material-ui/core/Dialog'
import DialogContent from '@material-ui/core/DialogContent'
import DialogActions from '@material-ui/core/DialogActions'
import DialogTitle from '@material-ui/core/DialogTitle'
import... |
src/Parser/Paladin/Holy/Modules/Items/Tier21_2set.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Analyzer from 'Parser/Core/Analyzer';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
import Combatants from 'Parser/Core/Modules/Comb... |
frontend/index.js | tahosalodge/camping-guide | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import createHistory from 'history/createBrowserHistory';
import styled from 'styled-components';
import configureStore from './redux/configureStore';
import rou... |
src/js/components/icons/base/Waypoint.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
app/containers/UGTourPage/newsfeedlist.js | perry-ugroop/ugroop-react-dup2 | /**
* Created by yunzhou on 26/11/2016.
*/
import React from 'react';
import { connect } from 'react-redux';
// import messages from './messages';
import NewsFeedAccountImg from './NewsFeedAccountImg';
import NewsFeedHead from './NewsFeedHead';
export function NewsFeedList(props) {
const tourId = props.tourId;
... |
src/client/components/AdminPanel/Venues/Edit/index.js | mweslander/veery | // Imports
import React, { Component } from 'react';
import PropTypes from 'prop-types';
// Components
import VenueForm from '../../../Base/VenueForm';
import Button from '../../../Base/Button';
// CSS
import './index.scss';
// Services
import adminVenuesService from '../../../../services/admin/venues';
// Utils
im... |
src/components/BaseMapList/BaseMapList.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
const BaseMapList = ({baseMaps, onChangeActiveBaseMap}) => {
function handleChangeActiveBaseMap(baseMap) {
return onChangeActiveBaseMap(baseMap)
}
return (
<ul className="basemap-list">
{
// Checks if baseMaps already exists in state
... |
client/App.js | jeojoe/emplist | /**
* Root Component
*/
import React from 'react';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import IntlWrapper from './modules/Intl/IntlWrapper';
// Import Routes
import routes from './routes';
// Base stylesheet
import './App.css';
browserHistory.listen(locati... |
example/client.js | UntilNow/meridian | import React from 'react';
import { Provider } from 'react-redux';
import { render } from 'react-dom';
import App from './components/app';
import configureStore from './store';
const store = configureStore();
const context = (
<Provider store={store}>
<App />
</Provider>
);
render(context, document.getElement... |
packages/material-ui-icons/src/ImportantDevices.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ImportantDevices = props =>
<SvgIcon {...props}>
<path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1.89 2... |
tests/js/containers/Home.spec.js | 24HeuresINSA/pass-checker | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint import/no-named-default: 0 */
import React from 'react';
import { expect } from 'chai';
import { mount, shallow } from 'enzyme';
import configureStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import { defa... |
src/scenes/Layout/components/Representation/components/Month/components/DayRows/MonthDayCell/MonthDayCell.js | czonios/schedule-maker-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Grid, } from 'semantic-ui-react';
import { Link } from 'react-router-dom'
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { displayEventModal } from '../../../../../../../../.././data/actions... |
app/components/Project.js | GongDexing/work-board | /*jshint esversion:6*/
import '../less/NewProject.less';
import React, { Component } from 'react';
import { Modal, Button, Form, Input, DatePicker, Col, Transfer } from 'antd';
import AlertMsg from './AlertMsg';
import { ProjectNameRule, DateRule, TextareaRule } from '../validate/rules';
import { updateProject } from '... |
packages/icons/src/md/image/RemoveRedEye.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdRemoveRedEye(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 9c10.01 0 18.54 6.22 22 15-3.46 8.78-12 15-22 15S5.46 32.78 2 24C5.46 15.22 14 9 24 9zm0 25c5.52 0 10-4.48 10-10s-4.48-10-10-10-10 4.48-10 1... |
src/PageHeader.js | nickuraltsev/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
src/pages/uncategorized/Floodfill/Floodfill.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Floodfill extends React.Component {
render() {
return (
<div>
Floodfill
</div>
)
}
}
export default Floodfill |
node_modules/react-bootstrap/es/MediaHeading.js | Crisa221/Lista-Giocatori | 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 ... |
packages/wix-style-react/src/ColorPicker/ColorPickerConverterHex.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import Input from '../Input';
import { st, classes } from './ColorPickerConverter.st.css';
import ColorPickerConverterViewer from './ColorPickerConverterViewer';
import { safeColor, getHexOrEmpty } from './utils';
export default class ColorPickerConverter... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.