path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
packages/zensroom/lib/components/static/About.js | SachaG/Zensroom | /*
About page.
*/
import React from 'react';
import { Components, registerComponent } from 'meteor/vulcan:core';
const About = () =>
<div>
About
</div>
registerComponent('About', About);
export default About; |
node_modules/react-router/es/Router.js | raptor1989/MobileHeader | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
app/containers/EnergiesPage/Input.js | mhoffman/CatAppBrowser |
/*
*
* EnergiesPageInput
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styled from 'styled-components';
import ReactGA from 'react-ga';
import Button from 'material-ui/Button';
import { LinearProgress, CircularProgress } from 'material-ui/Progr... |
src/containers/AreaViewer.js | rodrigo-puente/poke-nostalgia | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { AreaViewer } from '../components/AreaViewer';
import ControlsContainer from './Controls';
import { setScreenFocus } from '../actions/Controls';
import { fetchPokedex } from '../actions/Pokedex';
import styles from '../styles/Pokem... |
client/modules/Wizard/Steps/StepNumber1.js | zivkaziv/MazorTech | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import MedicalDiagnosticItem from '../componenets/MedicalDiagnosticItem/MedicalDiagnosticItem';
import SearchInput, {createFilter} from 'react-search-input'
// Material
import FlatButton... |
src/components/app.js | samlawrencejones/react-starter | import React from 'react'
import Paper from 'material-ui/lib/paper'
import AppBar from 'material-ui/lib/app-bar'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
import Footer from '../components/Footer'
export default class App extends React.Component {
render... |
blueocean-material-icons/src/js/components/svg-icons/action/explore.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionExplore = (props) => (
<SvgIcon {...props}>
<path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l... |
index.android.js | jefflanzi/rn-app-template | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class appTemplate extends Component {
render() {
return (
<View style={styles.contain... |
assets/jqwidgets/demos/react/app/formattedinput/exponentialnotation/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.getDecimal.on('click',... |
src/svg-icons/image/blur-circular.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurCircular = (props) => (
<SvgIcon {...props}>
<path d="M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5... |
src/components/PastEvents.js | Outfitio/breakfast-series-landing | import React, { Component } from 'react';
import Link from 'gatsby-link';
export default class PastEvents extends Component {
render() {
const { events, currentPath } = this.props;
const sortedEvents = events.map(event => event.node.id).sort();
return(
<div>
{sortedEvents.map(id => (
... |
src/Form.js | jsummer/react-ui | 'use strict'
import React from 'react'
import classnames from 'classnames'
import { forEach } from './utils/objects'
import FormControl from './FormControl'
import FormSubmit from './FormSubmit'
import { requireCss } from './themes'
requireCss('form')
export default class Form extends React.Component {
static disp... |
src/components/Divider.js | henrytao-me/react-native-mdcore | import React from 'react'
import { View } from 'react-native'
import PropTypes from './PropTypes'
import PureComponent from './PureComponent'
import StyleSheet from './StyleSheet'
export default class Divider extends PureComponent {
static contextTypes = {
theme: PropTypes.any
}
static propTypes = {
l... |
app/src/components/content/Problems/ProblemDetail/problemdes/index.js | ouxu/NEUQ-OJ | /**
* Created by out_xu on 17/1/8.
*/
import React from 'react'
import { Card, Collapse } from 'antd'
import './index.less'
import Markdown from 'components/plugins/Markdown'
const Panel = Collapse.Panel
const createMarkup = html => ({__html: html})
const return2Br = (str) => {
str = str || ''
return str.replace... |
src/Well.js | nickuraltsev/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
app/javascript/mastodon/features/account/components/account_note.js | imas/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Textarea from 'react-textarea-autosize';
impor... |
pkg/interface/dbug/src/index.js | urbit/urbit | import React from 'react';
import ReactDOM from 'react-dom';
import { Root } from '/components/root';
import { api } from '/api';
import { store } from '/store';
import { subscription } from "/subscription";
api.setAuthTokens({
ship: window.ship
});
window.urb = new window.channel();
subscription.start();
ReactDOM... |
src/svg-icons/action/note-add.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionNoteAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/>
</SvgIcon>
);... |
imports/ui/components/AuthenticatedNavigation/Menu.js | haraneesh/mydev | // import React, { Component } from 'react';
import React, { useState, useEffect } from 'react';
import { Button, Row } from 'react-bootstrap';
import PropTypes from 'prop-types';
/* export default class Menu extends Component {
constructor(props) {
super(props);
this.state = {
visible: false,
};
... |
WasteAppMini/js/components/recipe/cheese.js | airien/workbits | import React, { Component } from 'react';
import { Image,View, ListView,BackAndroid } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, DeckSwiper } from ... |
src/components/EditGearForm.js | tommydx/front2 | import React, { Component } from 'react';
import axios from 'axios';
import { browserHistory } from 'react-router';
class EditGearForm extends Component {
constructor(props) {
super(props);
this.state = {
name: "",
item_category: "",
item: "",
manufacturer: "",
year: "",
... |
src/index.js | dkryaklin/aviasales_test | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './css/index.css';
import './css/media.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/Portal.js | cesarandreu/react-overlays | import React from 'react';
import mountable from 'react-prop-types/lib/mountable';
import ownerDocument from './utils/ownerDocument';
import getContainer from './utils/getContainer';
/**
* The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
* You can think of i... |
app/components/ShowJob/index.js | dijahmac/JobWeasel-FrontEnd | /**
*
* ShowJob
*
*/
import React from 'react';
import './style.css';
import './styleM.css';
export default class ShowJob extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
job: {},
links: []
}
}
componentWillMount() {
this.getJob(this.props.jobId);
... |
app/config/routes.js | khaiphan/react-server-boilerplate | import React from 'react';
import { Router, Route, IndexRoute } from 'react-router';
import App from '../components/App';
import Main from '../components/Main';
import Home from '../components/Home';
import User from '../components/User';
export default(
<Router>
<Route component={Main}>
<Route... |
packages/react/src/components/organisms/TabContainer/context.js | massgov/mayflower | import React from 'react';
// Used by @Organisms/TabContainer and Tab to share data.
const TabContext = React.createContext({
activeTab: null,
activeContent: null,
setActiveTab: () => {}
});
export default TabContext;
|
pages/designs/signinform/components/form.js | DarcyChan/darcychan.com | import React from 'react';
import { Motion, spring } from 'react-motion';
export default class Form extends React.Component {
render() {
const {
formRef,
activeRef,
info,
isActive,
isSubmitted,
motion,
reverse,
... |
src/components/common/svg-icons/editor/format-align-center.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignCenter = (props) => (
<SvgIcon {...props}>
<path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignCenter = pure(EditorFormatAli... |
docs/src/pages/elements/NavigationPage.js | gocreating/react-tocas | import React from 'react';
import DemoPageLayout from '../../utils/DemoPageLayout';
import CardList from '../../utils/CardList';
let NavigationPage = () => (
<DemoPageLayout
title="Elements"
description="Uncategorized elements"
>
<CardList
title="Elements"
cards={[{
to: '/elements/b... |
src/components/TodoApp/Header.js | Capgemini/react-scaffold | import React, { Component } from 'react';
import TodoActions from '../../actions/TodoActions';
import TodoTextInput from './TodoTextInput';
export default class Header extends Component {
/**
* Event handler called within TodoTextInput.
* Defining this here allows TodoTextInput to be used in multiple places
... |
src/svg-icons/maps/local-shipping.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalShipping = (props) => (
<SvgIcon {...props}>
<path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/Resources/Resources.js | abimarank/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/svg-icons/device/battery-charging-60.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging60 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1... |
indico/web/client/js/jquery/widgets/jinja/duration_widget.js | ThiefMaster/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import React from 'react';
import ReactDOM from 'react-dom';
import {WTFDurationField} from 'indico/... |
lib/ui/src/components/preview/preview.stories.js | storybooks/react-storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { types } from '@storybook/addons';
import { Preview } from './preview';
export const previewProps = {
id: 'string',
api: {
on: () => {},
emit: () => {},
off: () => {},
},
storyId: 'string',
path: 'string',
viewMod... |
assets/jqwidgets/demos/react/app/complexinput/validation/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxComplexInput from '../../../jqwidgets-react/react_jqxcomplexinput.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.myButton.on('click', () =>... |
src/TabBar.js | LHoin/react-native-router-redux-plus | import React, { Component } from 'react';
import Tabs from 'react-native-tabs';
import { Image, StyleSheet, Text, View } from 'react-native';
const onSelect = props => el => {
props.actions.changeTab({
from: props.activeTab,
name: el.props.name,
navigator: props.navigator,
});
return {
selection... |
src/components/Alert.js | Grilados/site | import React, { Component } from 'react';
import './css/Alert.css';
export class Alert extends Component {
render() {
return(
<div className="alert">
<div className="text-center title"> {this.props.title} </div>
<div className="text-center body"> {this.props.body... |
src/components/Router/TabIcon/index.js | topguru/React-Equiaction | import React from 'react';
import {Text, View, Image} from 'react-native';
import { Scene, Router, Actions, TabBar } from 'react-native-router-flux';
import { images } from '../../../theme';
import styles from './style';
const HomeTabIcon = (props) => (
<View style={styles.tabIconView}>
<Image source={props.selecte... |
example/TestLibQuickblox/IndicatorDialog.js | ttdat89/react-native-video-quickblox | /**
* Created by Dat Tran on 1/25/17.
*/
import React from 'react'
import {View, Text, StyleSheet, Modal, TouchableOpacity} from 'react-native'
import Spinner from 'react-native-spinkit'
import PropTypes from 'prop-types'
export default class IndicatorDialog extends React.Component {
static propTypes = {
messa... |
src/svg-icons/action/pregnant-woman.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPregnantWoman = (props) => (
<SvgIcon {...props}>
<path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z"/>
</SvgIcon>
);
... |
app/components/Keys/Add.js | soosgit/vessel | // @flow
import React, { Component } from 'react';
import { Redirect } from 'react-router';
import { Button, Divider, Grid, Header, Segment } from 'semantic-ui-react';
import KeysGenerate from './Generate';
import KeysImport from './Import';
import KeysLogin from './Login';
import KeysCreate from './Create';
export d... |
node_modules/react-router/es6/IndexLink.js | igMartin/Redux-Tinder | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from './Link';
/**
*... |
packages/core/__deprecated__/Grid/index.js | romelperez/arwes | import React from 'react';
import withStyles from '../tools/withStyles';
import Grid from './Grid';
import styles from './styles';
const GridWithStyles = withStyles(styles)(Grid);
export const Row = props => <GridWithStyles row {...props} />;
export const Col = props => <GridWithStyles col {...props} />;
export defa... |
src/svg-icons/av/mic-none.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicNone = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ... |
examples/flux-utils-todomvc/js/app.js | kiopl/flux | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'use s... |
tests/components/HelpTabs.spec.js | trussworks/DoDidDone | import React from 'react';
import { HelpTabs } from 'components/HelpTabs';
import { shallow } from 'enzyme';
describe('(Component) HelpTabs', () => {
let _wrapper;
beforeEach(() => _wrapper = shallow(<HelpTabs/>));
it('Renders a help tab container', () => {
const tabsContainer = _wrapper.find('Tabs');
... |
src/Slider/index.js | szchenghuang/react-mdui | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import ClassNames from 'classnames';
import mdui from '../index';
class Slider extends React.Component {
componentDidMount() {
mdui.updateSliders( this.root );
}
render() {
const {
className,
step,
min,
... |
src/Stepper/StepButton.spec.js | rscnt/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import sinon from 'sinon';
import StepButton from './StepButton';
import getMuiTheme from '../styles/getMuiTheme';
describe('<StepButton />', () => {
const muiTheme = getMuiTheme();
const themedShallow = ... |
packages/material-ui-icons/src/ExitToApp.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" /></g>
, 'ExitToApp');
|
app/src/components/achievements/AchievementsOverview.js | kort/kort-native | import React, { Component } from 'react';
import {
View,
ListView,
RefreshControl
} from 'react-native';
import { connect } from 'react-redux';
import _ from 'lodash';
import I18n from 'react-native-i18n';
import AchievementItem from './AchievementItem';
import { downloadAchievements, clearErrorMsg } from '... |
__tests__/components/Image-test.js | linde12/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Image from '../../src/js/components/Image';
describe('Image', () => {
it('has correct default options', () => {
const component = renderer.create(
<Image src=... |
client/src/index.js | ASU-CodeDevils/DemonHacks2017 | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/index.js | Gertrido/test-task-hypermethod | import React from 'react'
import {render} from 'react-dom'
import {Provider} from 'react-redux'
import configureStore from './store/configureStore'
import App from './containers/App'
const store = configureStore()
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root'... |
test/js/AR/arNodeTest.js | viromedia/viro |
/**
* Copyright (c) 2017-present, Viro Media, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import R... |
src/index.js | JonKruger/openspaces-react | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './app/store/configureStore';
require('./favicon.ico'); // Tell web... |
src/layouts/index.js | adrienlozano/stephaniewebsite | import React from 'react';
import Header from '~/components/header';
import Footer from '~/components/footer';
import { setDisplayName, compose, defaultProps } from 'recompose';
import { injectGlobal } from 'styled-components'
import Head from 'react-helmet';
import { ThemeProvider } from 'styled-components';
import ... |
definitions/npm/@kadira/storybook_v1.x.x/test_storybook_v1.x.x.js | mkscrg/flow-typed | // @flow
import React from 'react';
import { action, storiesOf } from '@kadira/storybook';
storiesOf('div', module)
.add('empty', () => (
<div onClick={action('click')} />
))
// $ExpectError
.aad('empty', () => (
<div />
));
|
src/containers/camper.js | chrischavarro/CamperLeaderboard | import React from 'react';
export default (props) => {
return (
<tr>
<td>{props.index+1}</td>
<td>
<img src={props.data.img} className="camperAvatar" />
<a href={props.data.camperURL}>{props.data.username}</a>
</td>
<td>{props.data.recent}</td>
<td>{props.data.alltim... |
src/esm/components/graphics/icons-next/people-icon-next/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var PeopleIconNext = function PeopleIconNext(_ref) {
var col... |
stories/Slider/index.js | nirhart/wix-style-react | import React from 'react';
import {storiesOf} from '@kadira/storybook';
import Markdown from '../utils/Components/Markdown';
import CodeExample from '../utils/Components/CodeExample';
import Readme from '../../src/Slider/README.md';
import ExampleStandard from './ExampleStandard';
import ExampleStandardRaw from '!raw!... |
src/components/fragment/Header/index.js | luanhaipeng/coolpeng-react | import React from 'react'
import './index.less'
import {Link} from 'react-router'
export default class Header extends React.Component {
constructor(props) {
super(props)
}
renderRightLogin(){
const {user} = this.props;
var userInfo = user.user;
if(userInfo && user.isLogge... |
src/library/Icon/__tests__/Icon.theme.spec.js | mineral-ui/mineral-ui | /**
* @jest-environment node
*/
/* @flow */
import React from 'react';
import testThemeOverrides from '../../../../utils/testThemeOverrides';
import Icon from '../Icon';
describe('Icon', () => {
describe('theme overrides', () => {
testThemeOverrides(<Icon />, ['Icon_fill', 'Icon_size_medium']);
testThemeOv... |
example/screens/TrumpSortScreen.js | GantMan/useless-things | import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import { TrumpSort } from 'useless-things'
const LENGTH = 15
const randomArray = () => [...new Array(LENGTH)]
.map(() => Math.round(Math.random() * 99))
export default class App extends React.Component {
render () {
const currentA... |
es/Input/InputAdornment.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
packages/callout/src/js/react.js | govau/uikit | /*! [replace-name] v[replace-version] */
/***************************************************************************************************************************************************************
*
* Callout function
*
* Use callout to notify and alert users of important snippets of information.
*
*********... |
src/svg-icons/content/markunread.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMarkunread = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
ContentMarkunread ... |
components/TodoForm.js | bobbyangelov/3things | import React from 'react';
import ReactDOM from 'react-dom';
class TodoForm extends React.Component {
constructor() {
super();
this.state = {
text: ''
};
}
handleSubmit(e) {
e.preventDefault();
this.props.addItem(this.refs.todoField.value);
this.setState({text: ''});
this.refs.... |
src/app/routes.js | mischlecht/HackWeekend2017-react-app | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './app.jsx';
import HomeController from '../home/home.controller.jsx';
import ImagesController from '../images/images.controller.jsx';
import NotFoundPage from '../shared/components/not-found-page.jsx';
export default (
<Ro... |
test/Utils-spec.js | toddw/enzyme | import { describeWithDOM } from './_helpers.js';
import React from 'react';
import { expect } from 'chai';
import { mount } from '../src/';
import {
coercePropValue,
getNode,
nodeEqual,
isSimpleSelector,
propFromEvent,
SELECTOR,
selectorType,
mapNativeEventNames,
} from '../src/Utils';
describe('Utils'... |
tests/react_modules/es6class-proptypes-module.js | samwgoldman/flow | /* @flow */
import React from 'react';
import type {Node} from 'react';
class Hello extends React.Component<{name: string}> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): Node {
return <div>{this.props.name}</div>;
}
}
module.exports = Hello;
|
src/svg-icons/editor/insert-link.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3... |
examples/gatsby/src/pages/index.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import Button from 'material-ui/Button';
import Dialog, {
DialogTitle,
DialogContent,
DialogContentText,
DialogActions,
} from 'material-ui/Dialog';
import Typography from 'material-ui/Typography';
import { withStyles } from 'material-ui/styles';
im... |
lib/components/Voter.js | pguth/puddin | import React from 'react'
export default class Voter extends React.Component {
onUpvote(e) {
this.props.onVote(1)
}
onDownvote(e) {
this.props.onVote(-1)
}
render() {
return <div className="voter">
{this.props.vote > 0 ? <div className="up-vote" /> : null}
{this.props.vote === 0 ? ... |
src/svg-icons/social/plus-one.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPlusOne = (props) => (
<SvgIcon {...props}>
<path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/>
</SvgIcon>
);
SocialPlusOne = pure(SocialPlusOne);
SocialPlusOne.displayName = 'Social... |
tests/lib/rules/indent.js | eslint/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------... |
src/docs/Docs.js | thomashoggard/ps-react-tom | import React from 'react';
import Navigation from './Navigation';
import ComponentPage from './ComponentPage';
import componentData from '../../config/componentData';
export default class Docs extends React.Component {
constructor(props) {
super(props);
this.state = {
route: window.location.hash.substr... |
Examples/src/components/InputExamples.js | sitb-software/ReactNativeComponents | import React from 'react';
import { View } from 'react-native';
import AbstractComponent from './AbstractComponent';
import Input from 'react-native-components/form/Input';
import Button from 'react-native-components/bootstrap/Button';
let dataSource = [
{
placeholder: 'Default Input',
},
{
placeholder:... |
src/components/sourcetree/original/SourcetreeOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './SourcetreeOriginal.svg'
/** SourcetreeOriginal */
function SourcetreeOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'SourcetreeOri... |
src/index.js | ambershen/ambershen.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './components/App';
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('root'),
);
|
src/SplitButton.js | JimiHFord/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
src/components/widgets/RichTextEditorToolbox.js | rsamec/react-designer | import React from 'react';
import _ from 'lodash';
const TooltipStyle = {
position: 'absolute',
padding: '0 5px'
};
const TooltipInnerStyle = {
padding: '3px 8px',
color: '#fff',
textAlign: 'center',
borderRadius: 3,
backgroundColor: '#000',
opacity: .75
};
const TooltipArrowStyle = {
position: 'absolute',
w... |
src/main.js | denn1s/nanoreno | import 'babel-polyfill'
import 'whatwg-fetch'
import React from 'react'
import ReactDOM from 'react-dom'
import FastClick from 'fastclick'
import { Provider } from 'react-redux'
import store from './store'
import history from './history'
import Scene from './Scene'
import Start from './Start'
import Credits from './... |
src/components/board/Table.js | josephquested/plainscreen | import React from 'react'
import Row from './Row'
import Cell from './Cell'
export default React.createClass({
generateTable: function () {
let rows = new Array(Number(this.props.height)).fill()
rows = rows.map((row, index) => {
return <Row gameState={this.props.gameState}
id={index} width={this... |
geonode/monitoring/frontend/monitoring/src/components/organisms/ws-analytics/index.js | francbartoli/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program 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
# ... |
packages/type/examples/styled-components/src/App.js | carbon-design-system/carbon-components | import { display04 } from '@carbon/type';
import React, { Component } from 'react';
import styled from 'styled-components';
import logo from './logo.svg';
import './App.css';
const Title = styled.h1(display04);
class App extends Component {
render() {
return (
<div className="App">
<header classNa... |
docs/src/app/pages/components/PanelGroup/ExamplePanelGroupMultiStep.js | GetAmbassador/react-ions | import React from 'react'
import {PanelGroup, Panel, PanelHeader, PanelContent} from 'react-ions/lib/components/PanelGroup'
import Badge from 'react-ions/lib/components/Badge'
import style from './style.scss'
const content = {
lorum1: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vehicula finibus p... |
node_modules/@material-ui/styles/esm/styled/styled.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import clsx from 'clsx';
import warning from 'warning';
import PropTypes from 'prop-types';
import { chainPropTypes, getDisplayName } from '@material-u... |
responsive-visualizations-with-react/presentation.js | okonet/slides | import React, { Component } from 'react';
import Deck from "components/Deck.react";
import Slide from "components/Slide.react";
import Code from "components/Code.react";
import DocumentTitle from "react-document-title";
import demo1 from 'babel!./examples/demo1';
import demo1Code from 'raw!./examples/demo1';
import d... |
src/svg-icons/action/all-out.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAllOut = (props) => (
<SvgIcon {...props}>
<path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1... |
examples/full-example/isomorphic/variations/feature_B/components/_test_/toolbar_test.js | stephanwlee/mendel | /* Copyright 2015, Yahoo Inc.
Copyrights licensed under the MIT License.
See the accompanying LICENSE file for terms. */
import React from 'react'; // eslint-disable-line no-unused-vars
import { findDOMNode } from 'react-dom'; // eslint-disable-line no-unused-vars
import {
renderIntoDocument,
scryRendere... |
src/views/HomeView.js | mjosh954/mtg-toolbox | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
// import Paper from 'material-ui/lib/paper';
import FlatButton from 'material-ui/lib/flat-button';
import CardTitle from 'material-ui/lib/card/card-title';
import GitHubForkRibbon from 'react-github-fork-ribbon';
imp... |
src/components/Root/index.js | Apozhidaev/ergonode.com | import React, { Component } from 'react';
import moment from 'moment';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { search, showMore } from 'store/app/book/root/actions';
import { navigate } from 'store/services/history/actions';
import Layout from '../Layout';
import StatePa... |
src/Table.js | sheep902/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
front/src/components/App/Video/index.js | MichaelKostin/mars-rover | import React, { Component } from 'react';
import WebSocketSignalingChannel from '../../../rwsClient/WebSocketSignalingChannel';
import './style.css';
export default class Video extends Component {
constructor(props) {
super(props);
this.video = null;
this.connect = null;
this.disconnect = null;
t... |
docs/src/examples/elements/Loader/Variations/LoaderExampleInlineCentered.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Loader } from 'semantic-ui-react'
const LoaderExampleInlineCentered = () => <Loader active inline='centered' />
export default LoaderExampleInlineCentered
|
ui/src/components/SmallSpinner/index.js | LearningLocker/learninglocker | import React from 'react';
import styled from 'styled-components';
import { rotation } from 'ui/utils/styled/animations';
const SmallSpinner = styled.div`
height: 1.5em;
width: 1.5em;
margin: auto;
animation: ${rotation} .6s infinite linear;
border-left: 4px solid rgba(245, 170, 53, 0.15);
border-right: 4... |
client/src/MagicModeMarker.js | jghibiki/Doc | import React from 'react';
import AllInclusiveIcon from '@material-ui/icons/AllInclusive';
import Chip from '@material-ui/core/Chip';
import Avatar from '@material-ui/core/Avatar';
import MagicModeMarkerDialog from './MagicModeMarkerDialog.js'
const MagicModeMarker = (props) => {
const [dialogOpen, setDialogOpen... |
app/containers/LinkFormContainer/index.js | GeertHuls/react-async-saga-example | /*
*
* LinkFormContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectLinkFormContainer from './selectors';
import LinkForm from '../../components/LinkForm';
import { addLink, addLinkCancelled } from './actions';
export class LinkFormContainer extends React.Component { // es... |
app/scripts/routes.js | shawnrmoss/rsk | import React from 'react';
import { Router, Route } from 'react-router';
import createHistory from 'history/lib/createHashHistory'
import App from './pages/app.jsx';
import Home from './pages/home.jsx';
import Info from './pages/info.jsx';
import NotFound from './pages/notFound.jsx';
import Login from './pages/Login/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.