path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Page/Page.js | zsu13579/pinterest-apollo | /**
* 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 PropTypes from 'prop-... |
app/containers/LanguageProvider/index.js | johnsiu2016/FYP | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/main/webapp/static/js/club/view/blog/content.js | weijiafen/antBlog | import React from 'react';
import { Row , Col , Breadcrumb , Icon , Pagination } from 'antd';
import blogService from '../../service/blogService';
import moment from 'moment';
import '../../../../style/markdown.less'
var content=React.createClass({
getInitialState:function(){
return {
typeName:"",
list:null,
... |
src/svg-icons/social/cake.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialCake = (props) => (
<SvgIcon {...props}>
<path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l... |
example/set_password.js | Spikef/react-native-gesture-password | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import PasswordGesture from 'react-native-gesture-password';
var Password1 = '';
class AppDemo extends Component {
constructor(props) {
super(props);
this.state = {
... |
docs/src/components/navbar.js | evanlucas/node-tap | import React from 'react';
import {Flex} from 'rebass';
import styled from 'styled-components';
import {theme, breakpoints} from '../theme';
import hamburgerIcon from '../images/hamburger.svg';
import MobileNavbar from './mobileNavbar';
import NavLinks from './NavLinks';
import {Link as GatsbyLink} from 'gatsby';
cons... |
src/pages/app/delete-account.js | getinsomnia/website | import React from 'react';
import PropTypes from 'prop-types';
import * as session from '../../lib/session';
import App from '../../lib/app-wrapper';
class DeleteAccount extends React.Component {
state = {
loading: false,
password: '',
newEmail: '',
loginError: '',
error: '',
};
_handleUpdat... |
src/app/components/layout/Controlbar.js | ucokfm/admin-lte-react | import React from 'react';
import ControlbarWrapper from '../../../lib/controlbar/ControlbarWrapper';
import TabHeader from '../../../lib/controlbar/TabHeader';
import TabIcon from '../../../lib/controlbar/TabIcon';
import TabContent from '../../../lib/controlbar/TabContent';
import TabPane from '../../../lib/controlb... |
client/android/app/src/pages/feeds.js | blusclips/zonaster | import React, { Component } from 'react';
import { AppRegistry,StyleSheet,Text, View,AsyncStorage} from 'react-native';
import { StackNavigator } from 'react-navigation';
import { Container, Header, Left, Body, Right, Button, Icon, Title, Content } from 'native-base';
export default class introScreen extends Component... |
P/bucket/src/pages/BookList.js | imuntil/React | import React from 'react'
import { message, Table, Button, Popconfirm } from 'antd'
import { connect } from 'react-redux'
import { fetchBooks, deleteBook } from '../reducers/book'
class BookList extends React.Component {
constructor (props) {
super(props)
}
componentWillMount () {
this.props.fetchBooks()... |
src/components/Feedback/Feedback.js | ihnat/tream | /**
* 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 withStyle... |
src/native/app/Header.js | VigneshRavichandran02/3io | /* @flow */
import type { State } from '../../common/types';
import Icon from 'react-native-vector-icons/Ionicons';
import React from 'react';
import theme from './themes/initial';
import { Button, Text } from './components';
import { Platform, StyleSheet, View } from 'react-native';
import { appShowMenu } from '../../... |
examples/form/src/index.js | jas-chen/typed-redux | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, bindActionCreators } from 'typed-redux'
import Form from './components/Form'
import form from './reducers'
import { ChangeName, ChangeRemember } from './actions'
const store = createStore(form)
const rootEl = document.getElementById('root... |
components/NavBarIcons.js | cleaskitchen/cleaskitchen.github.io | import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
const Instagram = (props) => (
<a href ="https://www.instagram.com/cleaz_kitchen/">
<SvgIcon {...props}>
<path d="M16 2.881c4.275 0 4.781 0.019 6.462 0.094 1.563 0.069 2.406 0.331 2.969 0.55 0.744 0.288 1.281 0.638 1.837 1.1... |
src/components/app.js | xingjianpan/react-redux-news-reader | import React, { Component } from 'react';
// relative import
import Header from './Header';
export default class App extends Component {
render() {
return (
<div>
<Header />
{this.props.children}
</div>
);
}
}
|
client/components/dashboard/article-list.js | CommonActionForum/liqen-face | import React from 'react'
import Article from './article'
import liqen from 'liqen'
import fakeLiqen from '../../../server/local-liqen'
import cookies from 'cookies-js'
const token = cookies.get('access_token')
const options = {
apiURI: process.env.LIQEN_API_URI
}
let core = liqen(token, options)
if (process.env.N... |
src/utils/create-test-component.js | Phobos2350/freezer-base | import React from 'react';
import { findRenderedComponentWithType, renderIntoDocument } from 'react-dom/test-utils';
export function createTestComponent(TestComponent, props) {
return findRenderedComponentWithType(
renderIntoDocument(<TestComponent {...props}/>),
TestComponent
);
}
|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js | johnslay/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() {
return Promise.resolve([
{ id: 1,... |
src/svg-icons/toggle/check-box-outline-blank.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleCheckBoxOutlineBlank = (props) => (
<SvgIcon {...props}>
<path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ToggleCheckBoxOutlineBlank =... |
examples/counter/index.js | voidException/redux | import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
src/components/slide11-store.js | lucky3mvp/react-demo | import React from 'react'
export default React.createClass({
render () {
return (
<div className="m-code-dis with-border">
<ul>
<li>store 是将 action 和 reducer 联系起来的对象</li>
<li>通过 createStore( reducer, initialState ) 生成一个 store
<img src="../img/s11-store-create.jpg" height="50" width="200" />... |
src/InputWithOptions/InputWithOptions.driver.js | nirhart/wix-style-react | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import inputDriverFactory from '../Input/Input.driver';
import dropdownLayoutDriverFactory from '../DropdownLayout/DropdownLayout.driver';
import ReactDOM from 'react-dom';
const inputWithOptionsDriverFactory = ({element, wrapper, compone... |
pootle/static/js/browser/components/TopContributorsTable.js | iafan/zing | /*
* 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 Avatar from 'components... |
js/components/footer/index.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Left, Body, Right, List, ListItem } from 'native-base';
import { Actions } from 'react-native-router-flux';
... |
packages/material-ui-icons/src/AssistantPhoto.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AssistantPhoto = props =>
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z" />
</SvgIcon>;
AssistantPhoto = pure(AssistantPhoto);
AssistantPhoto.muiName = 'SvgIcon';
export default A... |
src/components/settings/Preferences.js | dkadrios/zendrum-stompblock-client | import React from 'react'
import PropTypes from 'prop-types'
import TS from '../HOC/ToggleSwitch'
import { settingsShape } from '../../reducers/settings'
const Preferences = ({ setMuteEnabled, setThruEnabled, settings: { muteEnabledAtStart, thruEnabledAtStart } }) => (
<div>
<h2>Startup Preferences</h2>
<sec... |
assets/javascripts/kitten/karl/pages/kissbankers-modal/index.js | KissKissBankBank/kitten | import React from 'react'
import { Header } from './components/header'
import { ContributionDetails } from './components/details'
import { Contributor } from './components/contributor'
import { ContributionGroup } from './components/group'
const KissbankersModal = () => (
<>
<Header orderId="1498800" orderDate={... |
src/renderer/ui/pages/SettingsPage.js | MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL- | import React, { Component } from 'react';
import { Tabs, Tab } from 'material-ui/Tabs';
import AudioTab from '../components/settings/tabs/AudioTab';
import GeneralTab from '../components/settings/tabs/GeneralTab';
import HotkeyTab from '../components/settings/tabs/HotkeyTab';
import LastFMTab from '../components/setti... |
react-ui/src/index.js | EdwinJow/truthindata | import React from 'react';
import Layout from './shared/Layout';
import Testing from './components/Testing'
import Admin from './components/Admin'
import RealEstateTracker from './components/RealEstateTracker'
import RealEstateGraph from './components/RealEstateGraph'
import {render} from 'react-dom'
import ReactGA fro... |
blueocean-material-icons/src/js/components/svg-icons/communication/ring-volume.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationRingVolume = (props) => (
<SvgIcon {...props}>
<path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-.11.7-.28.79-.74 1.69-1.36 2... |
src/validateComponent.js | jfairbank/react-revalidate | import React from 'react';
import assign from 'object-assign';
import getDisplayName from 'react-display-name';
export default function validateComponent(validate) {
return (Component) => {
class ValidatedComponent extends React.Component {
constructor(props) {
super(props);
this.validatePr... |
src/components/PagePreview.js | baker-natalie/lets-react | 'use strict';
import React from 'react';
import { Link } from 'react-router';
export default class PagePreview extends React.Component {
render() {
return (
<Link to={`/page/${this.props.id}`}>
<div className="page-preview">
<img src={`img/${this.props.img}`}/>
<h2 className="n... |
src/utils/loading-animation.js | gitpoint/git-point | import { Animated } from 'react-native';
import React from 'react';
export const loadingAnimation = state => {
const duration = 500;
const iterations = 10;
let opacity1 = 0.3;
let opacity2 = 0.7;
const animatedTimings = [];
for (let i = 0; i < iterations; i += 1) {
animatedTimings.push(
Animated... |
client/index.dev.js | Ripley6811/TAIMAU-CHARTS | import 'babel-polyfill';
import React from 'react';
import routes from '../shared/routes';
import DevTools from '../shared/container/DevTools/DevTools';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { configureStore } from '../s... |
src/components/svg/RadarComponent.js | RxKotlin/techradar-reactjs | 'use strict';
import React from 'react';
import Triangle from './TriangleComponent';
import Circle from './CircleComponent';
require('styles/svg/Radar.scss');
var UUID = require('uuid-js');
class RadarComponent extends React.Component {
constructor(props) {
super();
this.radius = props.radius;
this.did... |
gatsby-strapi-tutorial/cms/plugins/upload/admin/src/components/List/index.js | strapi/strapi-examples | /**
*
* List
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import cn from 'classnames';
import Li from '../Li';
import ListHeader from '../ListHeader';
import styles from './styles.scss';
const EmptyLi = () => (
<li className={styles.emptyLi... |
src/components/core/AuthenticatedComponent.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports.
*/
import React from 'react';
// Flux.
import AccountStore from '../../stores/Account/AccountStore';
import IntlStore from '../../stores/Application/IntlStore';
// Required components
import Spinner from '../common/indicators/Spinner';
/**
* Returns a function that wraps the component passed to it ... |
src/App.js | huguobo/React-ToDo | import React, { Component } from 'react';
class VideoDemo extends Component{
componentDidMount(){
const inputDom = document.getElementById('searchInput');
inputDom.oninput=this.debounceX(this.saySomething,2000)
}
debounce(func, wait, immediate) {
var timeout,
result;
return function () {
... |
src/routes/admin/index.js | rameshrr/dicomviewer | /**
* 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... |
actor-apps/app-web/src/app/components/common/Stateful.react.js | Dreezydraig/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import { AsyncActionStates } from 'constants/ActorAppConstants';
export class Root extends React.Component {
static propTypes = {
className: React.PropTypes.string,
currentState: React.PropTypes.num... |
src/client/entry.js | trippian/trippian | import log from './log'
import React from 'react'
import ReactDOM from 'react-dom'
import Router from 'react-router'
import routes from './config/routes'
import store from './redux/store'
import {
Provider
}
from 'react-redux'
import {
IntlProvider
}
from 'react-intl'
import {
initApp
}
from '../shared/utils/cli... |
blueocean-material-icons/src/js/components/svg-icons/image/colorize.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageColorize = (props) => (
<SvgIcon {...props}>
<path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42zM6.92 19... |
src/index.js | jxnblk/axs | import React from 'react'
import PropTypes from 'prop-types'
import stylis from 'stylis'
import tags from 'html-tags'
let _id = 0
let cache = {}
const uuid = () => 'x' + (_id++).toString(36)
const createCSS = css => {
const className = cache[css] || uuid()
const rules = stylis('.' + className, css)
const cached... |
src/components/Node.js | elisherer/react-storybook-addon-info | import React from 'react';
import Props from './Props'
const stylesheet = {
containerStyle: {},
tagStyle: {
color: '#777',
}
}
export default class Node extends React.Component {
constructor(props){
super(props);
}
render(){
const {node, depth} = this.props;
let {tagStyle, containerStyle... |
tmpl/react-redux/src/app.js | zdying/hiipack | /**
* @file
* @author zdying
*/
import React from 'react';
import ReactDom, {render} from 'react-dom';
import { Router, Route, Link, hashHistory } from 'react-router';
import {Provider} from 'react-redux';
import Home from './pages/Home';
import Detail from './pages/Detail';
import store from './store';
render(... |
packages/slate/src/models/schema.js | 6174/slate |
import React from 'react'
import find from 'lodash/find'
import isPlainObject from 'is-plain-object'
import logger from 'slate-dev-logger'
import typeOf from 'type-of'
import { Record } from './base'
import MODEL_TYPES from '../constants/model-types'
import Range from '../models/range'
import isReactComponent from '.... |
packages/react/src/components/dataviz/DataTable/index.js | massgov/mayflower | /**
* DataTable module.
* @module @massds/mayflower-react/DataTable
* @requires module:@massds/mayflower-assets/scss/05-dataviz/datatable
* @requires external:react-table/react-table.css
*/
import React from 'react';
import ReactTable from 'react-table';
const DataTable = (props) => <ReactTable {...props} />;
ex... |
client/components/notFound.js | Satyam/HowToDoATodoApp | import React from 'react';
import { FormattedMessage } from 'react-intl';
const NotFound = props => (
<div>
<h1><FormattedMessage
id="notFound.notFound"
defaultMessage="Not found"
description="Heading for page not found error"
/></h1>
<p><FormattedMessage
id="notFound.path"
... |
src/svg-icons/hardware/keyboard-capslock.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardCapslock = (props) => (
<SvgIcon {...props}>
<path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"/>
</SvgIcon>
);
HardwareKeyboardCapslock = pure(HardwareKeyboardCaps... |
src/svg-icons/notification/airline-seat-flat.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.1... |
wisewit_front_end/node_modules/react-router/modules/Router.js | emineKoc/WiseWit | import createHashHistory from 'history/lib/createHashHistory'
import useQueries from 'history/lib/useQueries'
import React from 'react'
import createTransitionManager from './createTransitionManager'
import { routes } from './PropTypes'
import RouterContext from './RouterContext'
import { createRoutes } from './RouteU... |
react/src/components/table/__mocks__/Pagination.js | VREMSoftwareDevelopment/bwmon | /*
* Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com>
*
* 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: //w... |
node_modules/react-navigation/src/views/Transitioner.js | joan17cast/Enigma | /* @flow */
import React from 'react';
import { Animated, StyleSheet, View } from 'react-native';
import invariant from 'fbjs/lib/invariant';
import NavigationScenesReducer from './ScenesReducer';
import TransitionConfigs from './TransitionConfigs';
import type {
NavigationLayout,
NavigationScene,
Navigation... |
src/svg-icons/device/bluetooth.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46... |
libs/component/index.js | e1emeb0t/element-react | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
export default class Component extends React.Component {
classNames(...args) {
return classnames(args);
}
className(...args) {
return this.classNames.apply(this, args.concat([this.props.className]));
}
... |
app/javascript/mastodon/features/ui/components/column_subheading.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const ColumnSubheading = ({ text }) => {
return (
<div className='column-subheading'>
{text}
</div>
);
};
ColumnSubheading.propTypes = {
text: PropTypes.string.isRequired,
};
export default ColumnSubheading;
|
src/routes/Projects/components/ProjectDescription.js | mjchamoures/personalPortfolio | /* ProjectDescription Component, does....
*
* author : michael chamoures
* created date : 3/27/17
* last updated date : 3/28/17
*/
import React from 'react';
import { Panel, Col, Form, FormGroup, FormControl, ControlLabel, Button } from 'react-bootstrap';
class ProjectDescription extends React.Component {
... |
js/jqwidgets/demos/react/app/dropdownlist/customrendering/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
class App extends React.Component {
render() {
let data = new Array();
let firstNames = ['Nancy', 'Andrew', 'Janet', 'Margaret', 'Steven', 'Michael', 'Rober... |
src/client/components/base/Belt/ListsBelt.container.js | DBCDK/content-first | import React from 'react';
import {connect} from 'react-redux';
import {get} from 'lodash';
import withIsVisible from '../../hoc/Scroll/withIsVisible.hoc';
import {withListAggregation} from '../../hoc/Aggregation';
import ListCard from '../../list/card/ListCard.component';
import {UPDATE_MOUNT} from '../../../redux/mou... |
src/components/search_bar.js | GuroKung/react-redux-starter | 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... |
webpack/components/extensions/HostDetails/Tabs/ContentTab/SecondaryTabsRoutes.js | snagoor/katello | import React from 'react';
import { Route, Switch, Redirect } from 'react-router-dom';
import { PackagesTab } from '../PackagesTab/PackagesTab.js';
import { ErrataTab } from '../ErrataTab/ErrataTab.js';
import { ModuleStreamsTab } from '../ModuleStreamsTab/ModuleStreamsTab';
import { route } from './helpers';
const Se... |
src/Parser/Druid/Restoration/Modules/Features/Innervate.js | enragednuke/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import { formatNumber } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Combatants from 'Parser/Core/Modules/Combatants';
import Wrapper from 'common/Wrapper';
... |
src/parser/shaman/elemental/modules/core/FlameShock.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import S... |
client/modules/List/components/ListItem.js | jeojoe/emplist | import React from 'react';
import { Link } from 'react-router';
import s from './ListItem.css';
import c from 'classnames';
// import moment from 'moment';
const List = ({ list: { _id, title, company_image, company_name, allow_remote, salary, has_intern, has_equity, skills, request_type }, admin }) => (
<div classN... |
src/containers/goodsBrandList/Container.js | lixiaoyang1992/react-native-starter-kit | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
View,
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import * as action from './action';
import List from './List';
export class Container extends React.Component {
c... |
src/js/components/icons/base/DocumentPowerpoint.js | codeswan/grommet | import React from 'react';
import DocumentPpt from './DocumentPpt';
export default (props) => {
console.warn(
'DocumentPowerpoint has been renamed to DocumentPpt.' +
' Plese update your import statement.'
);
return <DocumentPpt {...props} />;
};
|
src/modules/search/components/SearchTermButton/SearchTermButton.js | CtrHellenicStudies/Commentary | import React from 'react';
import { withRouter } from 'react-router';
import PropTypes from 'prop-types';
import FontIcon from 'material-ui/FontIcon';
// lib
import toggleSearchTerm from '../../lib/toggleSearchTerm';
const SearchTermButton = ({ label, searchTermKey, value, active, history }) => (
<li>
<button
... |
packages/mineral-ui-icons/src/IconMovieCreation.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 IconMovieCreation(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
web/src/index.js | ecoruh/wombat | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
node_modules/@material-ui/core/es/Collapse/Collapse.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import clsx from 'clsx';
import PropTypes from 'prop-types';
import { Transition } from 'react-transition-group';
import withStyles from '../... |
src/server/middleware/reactApplication/index.js | brettsnaidero/bsd |
import React from 'react';
import { renderToString } from 'react-dom/server';
import { StaticRouter } from 'react-router';
import { CodeSplitProvider, createRenderContext } from 'code-split-component';
import Helmet from 'react-helmet';
import generateHTML from './generateHTML';
import App from '../../../shared/compon... |
src/components/HeaderBar/HistoryButton.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import { useTranslator } from '@u-wave/react-translate';
import Tooltip from '@mui/material/Tooltip';
import IconButton from '@mui/material/IconButton';
import HistoryIcon from '@mui/icons-material/History';
function HistoryButton({ onClick }) {
const { ... |
public/js/components/products/ProductCreate.js | novirael/administration-poc | import React from 'react';
import { connect } from 'react-redux';
import { Grid, PageHeader, Form } from 'react-bootstrap';
import BaseLayout from '../BaseLayout';
import ProductForm from './ProductForm';
import { createProduct } from '../../actions/productActions';
@connect((store) => ({
productForm: store.fo... |
frontend/src/Settings/ImportLists/ImportLists/AddImportListModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import AddImportListModalContentConnector from './AddImportListModalContentConnector';
function AddImportListModal({ isOpen, onModalClose, ...otherProps }) {
return (
<Modal
isOpen={isOpen}
onMo... |
app/javascript/mastodon/components/animated_number.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedNumber } from 'react-intl';
import TransitionMotion from 'react-motion/lib/TransitionMotion';
import spring from 'react-motion/lib/spring';
import { reduceMotion } from 'mastodon/initial_state';
const obfuscatedCount = count => {
if (co... |
examples/confirming-navigation/app.js | tylermcginnis/react-router | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link, withRouter } from 'react-router'
import withExampleBasename from '../withExampleBasename'
const App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/dashboard" ac... |
react/src/containers/Tags/index.js | sinfin/folio | import React from 'react'
import { connect } from 'react-redux'
import { without } from 'lodash'
import {
makeFiltersSelector,
setFilter
} from 'ducks/filters'
import Tag from './styled/Tag'
class Tags extends React.Component {
onTagClick (tag) {
let tags
if (this.props.filters.tags.indexOf(tag) === -... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/WSDL/Steps/WSDLValidationStep.js | thusithak/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... |
src/js/components/icons/base/Technology.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... |
src/pages/access/australian-norms/AustralianNorms.js | RHoKAustralia/madapt-react-frontend | import React, { Component } from 'react';
import 'react-responsive-tabs/styles.css'
class AustralianNorms extends Component {
componentDidMount() {
window.analytics.page();
}
render() {
return (
<div className="wrapper">
<h1>AustralianNorms</h1>
<p>Family doctors in Australia are also c... |
app/boards/motec-d153/components/modes/position-lap.js | fermio/motorsport-display | import React from 'react';
const PositionLap = React.createClass({
propTypes: {
dash: React.PropTypes.object.isRequired,
fuel: React.PropTypes.object.isRequired,
game: React.PropTypes.object.isRequired
},
shouldComponentUpdate: function(nextProps, nextState) {
return true;
... |
client/providers/ServerProvider.js | iiet/iiet-chat | import React from 'react';
import { Meteor } from 'meteor/meteor';
import { Info as info } from '../../app/utils';
import { ServerContext } from '../contexts/ServerContext';
import { APIClient } from '../../app/utils/client';
const absoluteUrl = (path) => Meteor.absoluteUrl(path);
const callMethod = (methodName, ...... |
react-fundamentals-es6/lessons/07-child-properties/App.js | 3mundi/React-Bible | // https://jsbin.com/cumopab/edit?js,output
import React from 'react';
class App extends React.Component {
render(){
return <Button>I <Heart/> React</Button>
}
}
class Button extends React.Component {
render(){
return <button>{this.props.children}</button>
}
}
const Heart = () => <span className="gly... |
packages/react-scripts/template/src/App.js | CodingZeal/create-react-app | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welco... |
src/components/Name.js | pcardune/pyret-ide | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {changeProgramName} from '../redux/actionCreators';
import Input from './Input';
import * as selectors from '../redux/selectors';
export class Name extends React.Component {
render() {
if (!this.props... |
lib/components/term-group.js | reslaurentii/hyper | import React from 'react';
import {connect} from 'react-redux';
import Component from '../component';
import {decorate, getTermProps, getTermGroupProps} from '../utils/plugins';
import {resizeTermGroup} from '../actions/term-groups';
import Term_ from './term';
import SplitPane_ from './split-pane';
const Term = decor... |
packages/components/src/AboutDialog/AboutDialog.component.js | Talend/ui | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { withTranslation } from 'react-i18next';
import Dialog from '../Dialog';
import Icon from '../Icon';
import Skeleton from '../Skeleton';
import I18N_DOMAIN_COMPONENTS from '../constants';
import getDefaultT from ... |
tests/baselines/reference/checkJsxUnionSFXContextualTypeInferredCorrectly.js | kpreisser/TypeScript | //// [checkJsxUnionSFXContextualTypeInferredCorrectly.tsx]
/// <reference path="/.lib/react16.d.ts" />
import React from 'react';
interface PS {
multi: false
value: string | undefined
onChange: (selection: string | undefined) => void
}
interface PM {
multi: true
value: string[]
onChange: (se... |
frontend/src/Movie/Details/MovieDetailsPageConnector.js | geogolem/Radarr | import { push } from 'connected-react-router';
import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import NotFound from ... |
app/components/uikit/buttongroup/index.js | mukeshsoni/frolic | import React from 'react'
import styles from './buttongroup.css'
function renderChildren(props) {
return React.Children.map(props.children, (child, index) => {
if(index === 0) {
return React.cloneElement(child, {
className: styles['first-not-last-button'] + ' ' + styles['first-... |
packages/material-ui-icons/legacy/NetworkCellOutlined.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M17 7L2 22h15V7z" /></React.Fragment>
, 'NetworkCellOutlined');
|
src/widgets/RepoItem/Header.js | mydearxym/mastani | import React from 'react'
import { ICON_CMD } from '@/config'
import { cutRest, numberWithCommas } from '@/utils/helper'
import Tooltip from '@/widgets/Tooltip'
import { Space } from '@/widgets/Common'
import TagsList from '@/widgets/TagsList'
import {
Wrapper,
LangDot,
PopoverInfo,
Title,
Owner,
RepoNam... |
src/js/index.js | thiagohmoreira/ReactiveCanvas | // Makes sure all Babel ES6 wizardry is available
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import store from './store';
import App from './container/app-container';
render(
<Provider store={store}>
<App />
</P... |
src/components/sales_chart_x_axis.js | hojberg/mastering-react | import React from 'react';
import moment from 'moment';
import { range } from 'underscore';
function getXTicks(num) {
const today = moment();
const earliest = today.clone().subtract(num, 'months');
return range(num).map((n) => {
return earliest.clone().add(n, 'months').format("MMM");
});
}
class SalesChar... |
react-navigation-playground/js/SimpleStack.js | agrcrobles/react-native-web-workspace | /**
* @flow
*/
import React from 'react';
import { Button, ScrollView } from 'react-native';
import { StackNavigator } from 'react-navigation';
import SampleText from './SampleText';
const MyNavScreen = ({ navigation, banner }) => (
<ScrollView>
<SampleText>{banner}</SampleText>
<Button
onPress={() ... |
js/BaseComponents/TwoStepFooter.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/reactor-kitchensink/src/examples/Charts/Line/WithRenderer/WithRenderer.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import createData from './createData';
export default class WithRenderer extends Component {
constructor() {
super();
... |
client/src/app/components/PromiseStateContainer.js | rajington/heartseekers | import React from 'react';
import { PromiseState } from 'react-refetch';
import { isEmpty } from 'lodash';
import Loading from './Loading';
import Error from './Error';
function PromiseStateContainer({ ps, onPending, onNoResults, onRejection, onFulfillment }) {
if (ps.pending) {
return onPending(ps.meta);
} el... |
src/components/UI/SortingSelect/SortingSelect.js | wanchopen/vida | import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './SortingSelect.css';
import {grey400, cyan500} from 'material-ui/styles/colors';
import Popover from 'material-ui/Popover';
import IconButton from 'material-ui/IconButton';
import ContentSort from ... |
js/components/QuestionTypes/ScaleQuestion.js | ecohealthalliance/GoodQuestion | import React from 'react';
import {
Text,
View,
Slider,
Animated,
Platform,
} from 'react-native';
import Styles from '../../styles/Styles';
import ViewText from '../ViewText';
const ScaleQuestion = React.createClass({
propTypes: {
id: React.PropTypes.string.isRequired,
text: React.PropTypes.string... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.