path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/containers/skill-tree/SkillTree.js | phodal/growth-ng | /* eslint-disable global-require */
/* global __DEV__, require */
import React, { Component } from 'react';
import { WebView, StyleSheet, Platform } from 'react-native';
import { Actions } from 'react-native-router-flux';
import AppSizes from '../../theme/sizes';
import AppStyles from '../../theme/styles';
import SKILL... |
src/index.js | kgosse/productapp | require('./styles/main.scss');
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/svg-icons/action/assignment-return.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 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-2zm-7 0c.55 0 1 .45... |
src/components/Match/Scoreboards/index.js | fooey/gw2w2w-cra | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import _ from 'lodash';
import classnames from 'classnames';
import numeral from 'numeral';
// import Card from 'src/components/Layout/Card';
import { getWorldBySlug, getWorld, getWorldLink } from 'src/lib/world';
// import { getTeamCo... |
client/views/admin/apps/CloudLoginModal.js | VoiSmart/Rocket.Chat | import { Button, ButtonGroup, Icon, Modal } from '@rocket.chat/fuselage';
import React from 'react';
import { useSetModal } from '../../../contexts/ModalContext';
import { useRoute } from '../../../contexts/RouterContext';
import { useTranslation } from '../../../contexts/TranslationContext';
const CloudLoginModal = ... |
examples/todomvc/containers/Root.js | jlongster/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return ... |
src/components/bet/BetFormModal.js | itjope/tipskampen | import React from 'react'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
const BetFormModal = (props) => {
const actions = [
<FlatButton
label='Cancel'
secondary={true}
onTouchTap={props.onCancel}
/>,
<FlatButton
label='Save'
primary=... |
src/components/Signin.js | ihenvyr/react-parse | import React from 'react';
import Form from './Form';
import Input from './Input';
import Button from './Button';
import Parse from 'parse';
import { withRouter } from 'react-router';
const Signin = ({ router }) => {
const handleSubmit = (event) => {
event.preventDefault();
const { username, password } = ev... |
app/components/Navbar/NavDropdownDivider/index.js | josueorozco/parlay | import React from 'react';
import classNames from 'classnames';
/*
|--------------------------------------------------------------------------
| NavDropdownDivider
|--------------------------------------------------------------------------
|
| Stateless component
|
*/
const NavDropdownDivider = () => (
<div
... |
client/app/containers/FeaturePage/index.js | jjt/ffsssshh | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import { connect } from 'react-redux';
import { routeActions } from 'react-router-redux';
import Button from 'Button';
import H1 from 'H1';
import A from 'A';
import styles from './styles.css';
class FeaturePage extends React.Component {
... |
src/svg-icons/notification/live-tv.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationLiveTv = (props) => (
<SvgIcon {...props}>
<path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8... |
components/Layout.js | Hardyng/weatherforecast-nextjs-redux-ssr | import React from 'react';
import cx from 'classnames';
import styled from 'styled-components';
// background-image: url('http://www.sciencemag.org/sites/default/files/styles/article_main_medium/public/images/ss-bird_honeycreeper.jpg?itok=eEm6TBrb');
import Header from './Header';
const Container = styled.div`
... |
src/stretchView.js | guoyuan94/react-native-stretchview | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
View,
Animated,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
export default class StretchView extends Component {
constructor(props, context) {
super(props... |
app/components/Main.js | luongthomas/React-Portfolio | import React from 'react';
import ReactCSSTtransitionGroup from 'react-addons-css-transition-group';
// we can do this syntax because of webpack loaders
import '../main.css';
// Key from react router. CloneElement lets us attach a key to the "would-be component"
// , aka new props
// React keeps track of keys (order... |
client/src/components/Task/TaskStepBaseClass.js | DemocracyGuardians/DGTeam |
import React from 'react';
import PropTypes from 'prop-types'
class TaskStepBaseClass extends React.Component {
render() {
return (<span></span>)
}
}
TaskStepBaseClass.propTypes = {
store: PropTypes.object.isRequired,
content: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,
onStep... |
__tests__/LaunchScreen.js | fridl8/cold-bacon-client | import 'react-native';
import React from 'react';
import LaunchScreen from '../containers/LaunchScreen';
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(<LaunchScreen />).toJSON();
expect(tree).toMatchSnapshot();
});
|
powerpiapp/elements/common/Header.js | Knapsacks/power-pi-v2 | // import library
import React from 'react';
import { Text, View } from 'react-native';
// create a component
const Header = (props) => {
const { textStyle, viewStyle } = styles;
return (
<View style={viewStyle}>
<Text style={textStyle}>{props.headerText}</Text>
</View>
);
}... |
src/components/Datepicker/Date.js | wiki1024/sam-bs | import React from 'react'
import classnames from 'classnames'
const Date = (props) => {
let {id, date, month, selectDate, selected} = props
let classes = classnames('date', {
'current': date.month() === month,
'future': date.month() > month,
'past': date.month() < month,
'selected': (date.... |
src/List/List.js | abouthiroppy/scuba | // @flow
import type { CommonProps } from '../CommonTypes';
import React from 'react';
import classnames from 'classnames';
import excludeProps from '../utils/excludeProps';
import styles from './style';
type Props= {
type: 'none' | 'circle' | 'square' | 'decimal';
};
const List = (props: CommonProps & Props) =>... |
src/CheckboxGroup/test/CheckboxGroupSpec.js | suitejs/suite | import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import { getDOMNode } from '@test/testUtils';
import CheckboxGroup from '../CheckboxGroup';
import Checkbox from '../../Checkbox';
import { globalKey } from '../../utils/prefix';
describe('CheckboxGroup', () => {
it('Should render a check... |
src/Card/__tests__/CardTitle-test.js | react-mdl/react-mdl | /* eslint-env mocha */
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
import { shallow } from 'enzyme';
import React from 'react';
import { CardTitle } from '../';
chai.use(chaiEnzyme());
describe('CardTitle', () => {
it('should render a div with the title css class', () => {
c... |
src/encoded/static/components/form.js | T2DREAM/t2dream-portal | /* eslint-disable jsx-a11y/label-has-for */
import React from 'react';
import PropTypes from 'prop-types';
import jsonschema from 'jsonschema';
import _ from 'underscore';
import offset from '../libs/offset';
import { FetchedData, Param } from './fetched';
import { parseAndLogError, listingTitles } from './globals';
i... |
app/components/Settings.js | alfg/somafm | import React, { Component } from 'react';
import Nav from './common/Nav';
import SideNav from './common/SideNav';
import styles from './Settings.module.css';
export default class Settings extends Component {
static propTypes = {
};
constructor(props) {
super(props);
this.state = {
};
}
render(... |
basics/lib/root-component.js | zpratt/react-tdd-guide | import React from 'react';
import {PropTypes} from 'prop-types';
function Root(props) {
const {
users
} = props;
return (
<ul>
{users.map((user, index) => <li key={index}>{user.name}</li>)}
</ul>
);
}
Root.displayName = 'Root';
Root.propTypes = {
users: PropTyp... |
app/containers/LocaleToggle/index.js | andyzeli/Bil | /*
*
* LanguageToggle
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../... |
client/components/ChooseUserName.js | GO345724/pair-programming | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {Form, FormGroup, FormControl, Button, ControlLabel} from 'react-bootstrap';
class ChooseUserName extends Component {
constructor(props) {
super(props);
this.state = {
userName: ''
}
this.updateState = this.upd... |
components/animalNeighbourScene.js | marxsk/zobro | import React from 'react';
import {
View,
Text,
ListView,
TouchableHighlight, Alert, Image,
} from 'react-native';
import * as scenes from '../scenes';
import styles from '../styles/styles';
import animals from '../animals';
var navigator;
class Cell extends React.Component {
constructor(props) {
super... |
src/svg-icons/navigation/more-vert.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreVert = (props) => (
<SvgIcon {...props}>
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"... |
src/views/ArticleMain.js | fightingm/blog | import React from 'react';
import Markdown from 'react-markdown';
import ArticleData from './ArticleData';
import $ from 'jquery';
import hljs from 'highlight.js';
require ('../css/ArticleMain.css');
require ('highlight.js/styles/solarized-light.css');
export default class ArticleMain extends React.Component{
constr... |
src/js/components/App.js | designcreative/react-redux-template | import React, { Component } from 'react';
import ItemList from '../containers/item-list';
import ItemDetail from '../containers/item-detail';
require('../../scss/main.scss');
class App extends Component {
render() {
return (
<div>
<h2>Item List</h2>
<ItemList />
<hr/>
<h2>It... |
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js | hai-cea/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import Toggle from 'material-ui/Toggle';
const optionsStyle = {
maxWidth: 255,
marginRight: 'auto',
};
/**
* This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`.
*/
export default class DatePi... |
app/components/IntroBlock/index.js | daicas/react-boilerplate-examp | import React from 'react';
import { FormattedMessage } from 'react-intl';
import Img from 'components/Img';
import styled from 'styled-components';
import {
IntroBlockWapper,
IntroBlockContent,
Title,
IntroBlockDes,
LinkViewMore,
IntroSlider,
IntroSliderItem
} from './style';
class IntroBlock extends React.... |
src/components/WebView.js | Root-App/react-native-mock-render | import EdgeInsetsPropType from '../propTypes/EdgeInsetsPropType';
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import View from './View';
import ScrollView from './ScrollView';
import WebViewManager from '../NativeModules/WebViewManager';
const RCT_W... |
src/internal/ClearFix.js | hwo411/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import BeforeAfterWrapper from './BeforeAfterWrapper';
const styles = {
before: {
content: "' '",
display: 'table',
},
after: {
content: "' '",
clear: 'both',
display: 'table',
},
};
const ClearFix = ({style, children, ...other... |
src/client/components/Utils/ScrollToTopOnMount.js | busyorg/busy | import React from 'react';
import { withRouter } from 'react-router';
class ScrollToTopOnMount extends React.Component {
componentDidMount() {
if (window && window.location.hash === '') {
window.scrollTo(0, 0);
}
}
render() {
return null;
}
}
export default withRouter(ScrollToTopOnMount);
|
src/svg-icons/file/file-download.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFileDownload = (props) => (
<SvgIcon {...props}>
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/>
</SvgIcon>
);
FileFileDownload = pure(FileFileDownload);
FileFileDownload.displayName = 'FileFileDown... |
src/svg-icons/av/video-call.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoCall = (props) => (
<SvgIcon {...props}>
<path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"/>
</SvgIcon>
)... |
src/native/app/components/Text.js | robinpokorny/este | import React from 'react';
import theme from '../themes/initial';
import { StyleSheet, Text } from 'react-native';
// https://github.com/facebook/react-native/issues/7877
const round = value => Math.round(value);
const styles = StyleSheet.create({
text: { // eslint-disable-line react-native/no-unused-styles
col... |
components/checkbox/__tests__/Checkbox.spec.js | react-material-design/react-material-design | import React from 'react';
import { mount } from 'enzyme';
import Checkbox from '../index';
jest.mock('uuid', () => ({
v4: jest.fn(() => '2e732f05-f466-4fba-acb5-2f3be58daf75'),
}));
describe('<Checkbox />', () => {
it('should be able to render', () => {
const checkbox = mount(<Checkbox />);
ex... |
helloWorld/HelloWorld.spec.js | sagasu/reactPlayground | import {expect} from 'chai'
import React from 'react'
import {createRenderer} from 'react-addons-test-utils'
import HelloWorld from './HelloWorld'
describe('HelloWorld component', () => {
it('should render correctly', () => {
const renderer = createRenderer()
// this is a cool usage of HelloWorld... |
src/svg-icons/maps/flight.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsFlight = (props) => (
<SvgIcon {...props}>
<path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>... |
packages/wix-style-react/src/FunnelChart/FunnelBar/FunnelBar.js | wix/wix-style-react | import React from 'react';
import { st, classes } from './FunnelBar.st.css';
export const FunnelBar = ({ height, dataHook }) => {
return (
<div className={st(classes.root)} data-hook={dataHook}>
<div style={{ height: `${height}%` }} className={classes.filledBar} />
</div>
);
};
|
frontend/app_v2/src/common/icons/Copy.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
function Copy({ styling }) {
return (
<svg className={styling} xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<title>Copy</title>
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2... |
lms/static/js/student_account/components/spec/PasswordResetConfirmation_spec.js | kmoocdev2/edx-platform | /* globals setFixtures */
import ReactDOM from 'react-dom';
import React from 'react';
import sinon from 'sinon'; // eslint-disable-line import/no-extraneous-dependencies
import { PasswordResetConfirmation } from '../PasswordResetConfirmation';
describe('PasswordResetConfirmation', () => {
beforeEach(() => {
se... |
src/server.js | cbellino/roster | /**
* 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 'babel-polyfill';
import path from 'path';
import e... |
src/Components/BadgeComponent.js | Xeroeta/nkcgo-webapp | import React, { Component } from 'react';
import {
ShareButtons,
ShareCounts,
generateShareIcon,
} from 'react-share';
const {
FacebookShareButton,
GooglePlusShareButton,
LinkedinShareButton,
TwitterShareButton,
PinterestShareButton,
VKShareButton,
OKShareButton,
TelegramShareButton,
WhatsappS... |
app/components/App/SideBar/index.js | basask/react-router-material-ui-seed | import React from 'react';
import { Drawer, MenuItem, AppBar, IconButton } from 'material-ui';
import { Link } from 'react-router';
import NavigationClose from 'material-ui/svg-icons/navigation/close';
import constants from '../constants';
class SideBar extends React.Component {
constructor(props){
super(props)... |
src/svg-icons/image/filter-tilt-shift.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterTiltShift = (props) => (
<SvgIcon {...props}>
<path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62... |
boilerplates/project/pcNative/app/components/Main/Main.js | FuluUE/vd-generator | import React from 'react';
import styles from './less/main.less';
class Main extends React.Component {
render() {
return (
<div className={styles.main}>
aa
</div>
);
}
}
export default Main;
|
src/components/Dot.js | wu0792/gallery-by-react | import React from 'react'
class Dot extends React.Component{
constructor(props){
super(props);
this.state = {};
this.state.reverse = props.reverse || false;
this.state.active = props.active || false;
}
render(){
return (<li className={'nav_dot' + (this.state.active?' active':'')} onClick={t... |
node_modules/react-bootstrap/es/Tab.js | superKaigon/TheCave | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import PropTypes from 'pr... |
src/containers/Router.js | scenario-generator/frontend | import React, { Component } from 'react';
import { StyleRoot } from 'radium';
import { Router } from 'react-router';
import ReactGA from 'react-ga';
// Constants
import Strings from '../constants/strings';
// Components
import routes from '../routes';
import Head from '../components/He... |
src/dumb/editor/custom_field/preview_templates/AssetSelectionPreviewTemplate.js | jeckhummer/wf-constructor | import React from 'react';
import {Form} from "semantic-ui-react";
export const AssetSelectionPreviewTemplate = ({label}) => {
const options = [
{text: 'asset 1', value: 'asset 1'},
{text: 'asset 2', value: 'asset 2'},
{text: 'asset 3', value: 'asset 3'},
{text: '...', value: '...'}... |
test/integration/basic/pages/stateless.js | nikvm/next.js | import React from 'react'
export default () => <h1>My component!</h1>
|
information/blendle-frontend-react-source/app/modules/premiumSignup/components/ResetPassword/index.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import ResetPasswordView from 'components/login/ResetPassword';
import CSS from './styles.scss';
const ResetPassword = (props) => {
const { route, onClickLogin } = props;
return (
<div className={CSS.resetPassword}>
<ResetPasswordView showBa... |
amp-stories/src/component/view/LinkComponentsStoryView/pages/StoryPage3.js | ampproject/samples | import React from 'react';
import styled, {keyframes} from 'styled-components';
import {TextHighlightBanner, Button as SharedButton} from '../shared';
import {BannerWrapper} from '/component/base/TextHighlight';
import AmpStoryPage from '/component/amp/AmpStoryPage';
import AmpImage from '/component/amp/AmpImage';
co... |
src/Home.js | camposa03/FormDemo | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class Home extends Component {
render() {
return (
<div>
<h2><Link to="/form">Apply</Link></h2>
</div>
);
}
}
export default Home; |
app/app.js | commanderking/alliancechemistry | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/FlexBox.js | RafalFilipek/just-box | // @flow
import React from 'react';
import omit from 'lodash/omit';
import Box, { type BoxProps } from './Box';
import isReactNative from './isReactNative';
type FlexProps = {
f1?: boolean,
f2?: boolean,
f3?: boolean,
f4?: boolean,
row?: boolean,
column?: boolean,
wrap?: boolean,
alignStart?: boolean... |
linksa/CalendarInfo.js | liuhui219/linksa | import React from 'react';
import {
View,
StyleSheet,
Navigator,
TouchableOpacity,
TouchableHighlight,
Text,
ToastAndroid,
ActivityIndicator,
TextInput,
ScrollView,
Dimensions,
BackAndroid,
Image
} from 'react-native';
import Communications from 'react-native-communications';
import Icon from 'react... |
example/src/index.js | topcatcreatives/react-date-scroll | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('date-scroll-app')
);
|
client/src/components/Main.js | nickbreaton/spare-page | import React from 'react'
import styled from 'styled-components'
const MainStyles = styled.main`
display: flex;
flex: 1 0 auto;
flex-direction: column;
min-height: 100vh;
flex-basis: 100%;
align-items: flex-start;
margin: auto;
max-width: calc(${props => props.theme.breakpoint} - 4em);
width: 100%;
... |
js/components/Header.js | SKrishnan602/funnas1.0 | import React from 'react';
import Relay from 'react-relay';
var ReactBootstrap = require('react-bootstrap');
class Header extends React.Component {
onReload() {
this.props.relay.forceFetch();
}
componentWillMount() {
document.body.style.backgroundColor = "#e9ebee";
}
compo... |
src/parser/warrior/arms/modules/core/Execute/Rend.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import ExecuteRange from './ExecuteRange';
class RendAna... |
website/modules/components/Guide.js | asaf/react-router | import React from 'react'
import PropTypes from 'prop-types'
import { Redirect, Route } from 'react-router-dom'
import { Block } from 'jsxstyle'
import ScrollToDoc from './ScrollToDoc'
import MarkdownViewer from './MarkdownViewer'
// almost identical to `API`, but I'm lazy rn
const Guide = ({ match, data }) => {
con... |
src/svg-icons/communication/invert-colors-off.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationInvertColorsOff = (props) => (
<SvgIcon {...props}>
<path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5... |
src/components/GuestModal/GuestModal.js | joyvuu-dave/comeals-ui-react | // rendered by MealView
import React from 'react'
import Modal from 'react-modal'
type Props = {
data: {
open: boolean,
host: string,
resident_id: number,
multiplier: number,
vegetarian: boolean
},
actions: {
close: Function,
toggleVeg: Function,
toggleMultiplier: Function,
ad... |
src/client/react/components/presentational/Result.js | nloomans/rooster.hetmml.nl | /**
* Copyright (C) 2018 Noah Loomans
*
* This file is part of rooster.hetmml.nl.
*
* rooster.hetmml.nl is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... |
test/deprecate-Link-location-props-test.js | rackt/rackt-codemod | import React from 'react';
const ACTIVE = { color: 'red' };
class App extends React.Component {
render() {
return (
<div>
<h1>APP!</h1>
<ul>
<li><Link to="/" activeStyle={ACTIVE}>/</Link></li>
<li><IndexLink to="/" activeStyle={ACTIVE}>/ IndexLink</IndexLink></li>
... |
src/server.js | HasanSa/hackathon | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
examples/js/selection/multi-select-table.js | dana2208/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;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
wrappers/md.js | ahonn/gatsby-blog | /* eslint-disable */
import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
import Article from '../src/layouts/Article'
import Page from '../src/layouts/Page'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
ren... |
src/containers/SalesChance/Information/Information.js | UncleYee/crm-ui | import React from 'react';
import ChanceInfo from './ChanceInfo';
export default class Information extends React.Component {
static propTypes = {
dataInfo: React.PropTypes.object,
editFlag: React.PropTypes.string,
updateChanceData: React.PropTypes.func,
updateLogInfo: React.PropTypes.func,
};
co... |
react/react-svg/src/index.js | yuanzhaokang/myAwesomeSimpleDemo | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/features/movie-detail-tv/index.js | rldona/react-native-tab-view-seed | import React, { Component } from 'react';
import {
Text,
Image,
View,
TouchableOpacity,
ScrollView,
StyleSheet,
Dimensions,
Share,
InteractionManager
} from 'react-native';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as historialActions from '../../redux/a... |
src/Containers/NotificationsContainer.js | sashasushko/moira-front | // @flow
import React from 'react';
import type { ContextRouter } from 'react-router-dom';
import type { IMoiraApi } from '../Api/MoiraAPI';
import type { Notification } from '../Domain/Notification';
import { withMoiraApi } from '../Api/MoiraApiInjection';
import Layout from '../Components/Layout/Layout';
type Props ... |
src/components/ui/FeatureList.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { defineMessages, intlShape } from 'react-intl';
import { FeatureItem } from './FeatureItem';
import { PLANS } from '../../config';
const messages = defineMessages({
availableRecipes: {
id: 'pricing.features.recipes',
defau... |
src/interface/icons/Intellect.js | fyruna/WoWAnalyzer | import React from 'react';
const icon = props => (
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 17 32 32" className="icon" {...props}>
<path d="M28.832,44.802h6.559v-1.101h-6.559V44.802z M29.91,47.004h4.402v-1.101H29.91V47.004z M32.156,18.379c-0.012,0-0.031,0-0.045,0c-0.014,0-0.033,0-0.045,0... |
storybook/container.js | Byndyusoft/ui.molecules | import React from 'react';
export default story => <div style={{ padding: 16 }}>{ story() }</div>;
|
src/components/Icons.js | stefcot/react-design-easier | import React from 'react';
import * as ActionTypes from './../actions/ActionTypes';
const Icons = {};
/**
*
* @type {React.Component}
*/
Icons[ActionTypes.SELECT] = class extends React.Component {
render() {
let iconId = `${this.props.name}_Icon`;
let fillId = `${this.props.name}_FILL`;
... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
website/pages/404.js | rofrischmann/fela | import React from 'react'
import { Box } from 'kilvin'
import Head from 'next/head'
import { useFela } from 'react-fela'
import Layout from '../components/Layout'
import Button from '../components/Button'
export default function Page() {
const { theme } = useFela()
return (
<>
<Layout>
<Box spa... |
examples/3-complex/src/index/home/App.js | chikara-chan/react-power | import React from 'react'
import styles from './App.scss'
function App() {
return (
<div>
<h1 className={styles.title}>Home</h1>
</div>
)
}
export default App
|
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js | JeeLiu/actor-platform | import React from 'react';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import CreateGroupStore from 'stores/CreateGroupStore';
import CreateGroupForm from './create-group/Form.react';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
const appEl... |
src/components/CountyMap/CountyMap.js | Swizec/h1b-software-salaries |
import React, { Component } from 'react';
import * as d3 from 'd3';
import * as topojson from 'topojson';
import _ from 'lodash';
import County from './County';
class CountyMap extends Component {
// Setup default D3 objects
// projection - defines our geo projection, how the map looks
// geoPath - cal... |
src/svg-icons/action/settings-applications.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsApplications = (props) => (
<SvgIcon {...props}>
<path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c... |
examples/demos/dndOutsideSource.js | TeaBough/react-big-calendar | import React from 'react'
import events from '../events'
import { Calendar, Views } from 'react-big-calendar'
import withDragAndDrop from 'react-big-calendar/lib/addons/dragAndDrop'
import Layout from 'react-tackle-box/Layout'
import Card from '../Card'
import 'react-big-calendar/lib/addons/dragAndDrop/styles.scss'
c... |
client/extensions/woocommerce/app/dashboard/setup/notices.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { get } from 'lodash';
import { localize } from 'i18n-calypso';
/**
* Internal dependencies
*/
import { getCurrentUser, isCurrentUserEmailVerif... |
submissions/pasieronen/client.js | gterzian/flux-challenge | import React from 'react';
import Dispatcher from './Dispatcher';
import * as JediConstants from './JediConstants';
import JediApp from './JediApp';
import * as JediStore from './JediStore';
window.onload = () =>
Dispatcher.dispatch(JediConstants.START, {
firstJediId: 3616,
firstJediUrl: "http://localhost:... |
src/client/time.js | dvorakjan/noderunner-gui | import React from 'react';
export default class Time extends React.Component {
constructor(props) {
super(props);
this.state = this.update();
setInterval(() => self.update(), 1000);
}
update() {
var state = {delta: this.props.started > 0 ? Math.round((Date.now()/1000 - this.props.started)) : 0... |
app/javascript/mastodon/features/notifications/components/clear_column_button.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return ... |
src/routes/blog/BlogContent.js | yvanwangl/UniversalBlog | import React from 'react';
import PropTypes from 'prop-types';
import ReadEditor from '../../components/ReadEditor/ReadEditor';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './index.css';
class BlogContent extends React.Component {
constructor(props) {
super(props);
}
render() {... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js | disparu86/react-native | 'use strict';
import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
} from 'react-native';
import ListItem from '../../components/ListItem';
import WelcomeText from './WelcomeText';
export default class WelcomeScreen extends Component {
static navigationOptions = {
title: 'Welc... |
src/components/Tabs/Tabs-story.js | jzhang300/carbon-components-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Tabs from '../Tabs';
import Tab from '../Tab';
const props = {
tabs: {
className: 'some-class',
triggerHref: '#anotherAnchor',
},
tab: {
className: 'another-class',
o... |
test/JumbotronSpec.js | zanjs/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Jumbotron from '../src/Jumbotron';
describe('Jumbotron', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
<strong>Content</strong>... |
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js | darioajr/actor-platform | import React from 'react';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import CreateGroupStore from 'stores/CreateGroupStore';
import CreateGroupForm from './create-group/Form.react';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
const appEl... |
client/src/components/employer/whyHireGrads.js | Siyanda-Mzam/hire-grad | import React from 'react';
const WhyHireGrads = () => {
return (
<div className="section">
<div className="container">
<div className="columns">
<div className="column is-7 is-half content">
<h1>Access a curated list of graduates</h1>
<br />
<h4><strong>Only the best</strong></h4... |
src/pages/chocris.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Chocris' />
)
|
app/components/DataRangeForm.js | seungha-kim/grade-sms | // @flow
import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import type { Map as IMap } from 'immutable';
import { Card, CardTitle, CardText, CardActions } from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import { basename } from 'path';
import s fro... |
react-router-tutorial/lessons/07-more-nesting/index.js | zerotung/practices-and-notes | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, hashHistory } from 'react-router'
import App from './modules/App'
import About from './modules/About'
import Repos from './modules/Repos'
import Repo from './modules/Repo'
render((
<Router history={hashHistory}>
<Route path="/" ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.