path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
example/src/components/WidgetRenderer.js | rsamec/react-designer-core | import React from 'react';
import _ from 'lodash';
export default (properties) => {
let {node,widget,selected, current, currentChanged} = properties;
if (widget === undefined) return React.DOM.span(null, 'Component ' + node.elementName + ' is not register among widgets.');
var props = node.props || {};
... |
node_modules/react-native-vector-icons/RNIMigration.js | odapplications/WebView-with-Lower-Tab-Menu | import React from 'react';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import Foundation from 'react-native-vector-icons/Foundation';
import Ionicons from 'react-native-vector-icons/Ionicons';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import Zocial from 'react-native-vect... |
src/steps.js | wallat/little-test | import React from 'react'
import PropTypes from 'prop-types'
import { Header, Button, Form, Icon } from 'semantic-ui-react'
// Class for handle countdown style steps
class SecCountDownComponent extends React.Component {
static propTypes = {
secs: PropTypes.number.isRequired,
onFinished: PropTypes.func
}
constr... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | webwlsong/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstant... |
examples/js/custom/delete-button/default-custom-delete-button.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn, DeleteButton } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for... |
src/svg-icons/file/cloud-download.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDownload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-... |
src/svg-icons/places/child-care.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesChildCare = (props) => (
<SvgIcon {...props}>
<circle cx="14.5" cy="10.5" r="1.25"/><circle cx="9.5" cy="10.5" r="1.25"/><path d="M22.94 12.66c.04-.21.06-.43.06-.66s-.02-.45-.06-.66c-.25-1.51-1.36-2.74-2.... |
client/components/App.js | caiquecaleiro/react-graphql-auth | import React from 'react';
import Header from './Header';
const App = ({ children }) => {
return (
<div className="container">
<Header />
{children}
</div>
);
};
export default App; |
src/utils/children.js | vanHeemstraSystems/components | import React from 'react';
import createFragment from 'react-addons-create-fragment';
export default {
create(fragments) {
let newFragments = {};
let validChildrenCount = 0;
let firstKey;
//Only create non-empty key fragments
for (let key in fragments) {
const currentChild = fragments[key... |
assets/jqwidgets/demos/react/app/treegrid/virtualmodewithajax/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js';
class App extends React.Component {
render() {
let source =
{
dataType: 'json',
dataFields: [
{ name: 'Emplo... |
src/fe/components/UserAdd.js | searsaw/react-router-demo | import React from 'react';
import { post } from 'axios';
import UserForm from './UserForm';
import { Helmet } from 'react-helmet';
import Page from './Page';
class UserAdd extends React.Component {
constructor(props) {
super(props);
this.handleSubmit = this.handleSubmit.bind(this);
this.handleCancel = t... |
fields/types/markdown/MarkdownColumn.js | naustudio/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
src/assets/js/react/components/Template/TemplateSingleComponents.js | GravityPDF/gravity-forms-pdf-extended | import PropTypes from 'prop-types'
import React from 'react'
/**
* Contains stateless React components for our Single Template
*
* @package Gravity PDF
* @copyright Copyright (c) 2021, Blue Liquid Designs
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 4.1
*/
/... |
src/routes.js | gregmalcolm/elite-engineers | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import Home from './pages/Home';
import CraftingComponents from './pages/CraftingComponents';
import Calculator from './pages/Calculator';
import TheDweller from './pages/TheDweller';
import NotFound from ... |
examples/browserify-gulp-example/src/app/Main.js | rscnt/material-ui | /**
* In this file, we create a React component
* which incorporates components providedby material-ui.
*/
import React from 'react';
import RaisedButton from 'material-ui/lib/raised-button';
import Dialog from 'material-ui/lib/dialog';
import {deepOrange500} from 'material-ui/lib/styles/colors';
import FlatButton ... |
techCurriculum/ui/solutions/3.2/src/components/Message.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
src/svg-icons/hardware/smartphone.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSmartphone = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);
HardwareSmartphone = p... |
examples/src/app.js | DanielMontesDeOca/react-autosuggest | require('./app.less');
import React, { Component } from 'react';
import Badges from './Badges/Badges';
import Examples from './Examples';
import Footer from './Footer/Footer';
import ForkMeOnGitHub from './ForkMeOnGitHub/ForkMeOnGitHub';
class App extends Component {
render() {
return (
<div>
<h1>... |
src/components/Highlight.js | cpsubrian/redis-explorer | import React from 'react'
import autobind from 'autobind-decorator'
import hljs from 'highlight.js'
@autobind
class Highlight extends React.Component {
static propTypes = {
className: React.PropTypes.string,
innerHTML: React.PropTypes.bool,
children: React.PropTypes.node
}
static defaultProps = {
... |
app/components/Icons/FemaleCheckedIcon.js | Tetraib/player.rauks.org | import React from 'react'
import SvgIcon from 'material-ui/SvgIcon'
export const FemaleCheckedIcon = (props) => (
<SvgIcon {...props}>
<path d='M12,15.078c-3.667,0-6.65-2.933-6.65-6.539C5.35,4.934,8.333,2,12,2c3.667,0,6.65,2.934,6.65,6.539 C18.65,12.145,15.667,15.078,12,15.078z M12,3.727c-2.714,0-4.923,2.159-4.9... |
app/components/events-search-bar.js | mario2904/ICOM5016-Project | import React, { Component } from 'react';
import {Input, Select, Grid, Form, Segment} from 'semantic-ui-react';
export default class EventsSearchBar extends Component {
render () {
return (
<Grid padded style={{padding: 40}}>
<Input action={{ icon: 'search'}} placeholder='Search by name...' />... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | flgiordano/netcash | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/views/rooms/RoomDetailRow.js | aperezdc/matrix-react-sdk | /*
Copyright 2017 New Vector Ltd.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software... |
src/docs/examples/TextInput/ExampleError.js | miker169/ps-react-miker169 | import React from 'react';
import TextInput from 'ps-react/TextInput';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
name="firstname"
label="First Name"
onChange={() => ... |
plugins/react/frontend/components/common/RefreshButton/index.js | carteb/carte-blanche | /* eslint-disable max-len */
/**
* RefreshButton
*
* Shows a button with a refresh
*/
import React from 'react';
import styles from './styles.css';
import Button from '../Button';
const RefreshButton = (props) => (
<Button {...props} className={props.className}>
<svg
className={styles.svg}
heigh... |
app/components/unfile.js | shrihari/moviemonkey |
import React from 'react'
import ReactDOM from 'react-dom'
import MovieMonkey from '../core/moviemonkey.js'
const remote = require('electron').remote;
const app = remote.app;
const path = require('path');
const shell = require('electron').shell;
export default class UnFile extends React.Component {
constructor(p... |
app/components/RecipeCard.js | hippothesis/Recipezy | /*
* Copyright 2017-present, Hippothesis, 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.
*
* @flow
*/
'use strict';
import React, { Component } from 'react';
import { Image, TouchableHighLight } fr... |
react/js/StatelessWidget.js | quiaro/js-playground | import React from 'react';
// Stateless function component
const Widget = (props) => {
return (
<div>
<strong>{props.txt}</strong>
<input type='text' onChange={props.update}/>
</div>
)
}
export default Widget
|
src/components/app.js | hamholla/concentration | import React, { Component } from 'react';
import CardGrid from '../containers/card_grid';
import PlayerList from '../containers/player_list';
export default class App extends Component {
render() {
return (
<div>
<div className="page-header">
<h1>Concentration<small> (2 players)</small></... |
stories/Focus/SimpleFocusEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import {
convertFromRaw,
EditorState,
} from 'draft-js';
import Editor, { composeDecorators } from 'draft-js-plugins-editor';
import createFocusPlugin from 'draft-js-focus-plugin';
import createColorBlockPlugin from './colorBlockPlugin';
import editorStyles from './editorSt... |
client/src/entwine/TinyMCE_ssembed.js | open-sausages/silverstripe-asset-admin | /* global tinymce, window */
import jQuery from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import { loadComponent } from 'lib/Injector';
import ShortcodeSerialiser from 'lib/ShortcodeSerialiser';
import InsertEmbedModal from 'components/InsertEmbedModal/InsertEmbedModal';
import i18n from 'i... |
src/screens/App/screens/Listing/components/Posts/Post/index.js | yanglinz/reddio | import React from 'react';
import classNames from 'classnames';
import { playCommand } from 'state/reddit/actions';
import { isYoutube } from 'services/iframe-api/youtube';
import { isSoundcloud } from 'services/iframe-api/soundcloud';
import './index.scss';
function Post(props) {
const { post, posts, dispatch } = p... |
blueocean-material-icons/src/js/components/svg-icons/notification/ondemand-video.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationOndemandVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/>
</SvgIcon>
);
NotificationOndemandVideo.... |
src/pages/client/Products.js | gramulos/EpsilonGroups | import React, { Component } from 'react';
import { Router, Route, Link } from 'react-router';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import RaisedButton from 'material-ui/lib/raised-button';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHead... |
app/components/Settings/SensorBlock.js | TheCbac/MICA-Desktop | // @flow
/* **********************************************************
* File: components/Settings/SensorBlock.js
*
* Brief: React component displaying and interacting with
* the sensors of a device. Refactor of SensorComponent
*
* Authors: Craig Cheney
*
* 2017.09.26 CC - Rename component SensorBlock
* 2017.09.12 CC... |
src/svg-icons/image/brightness-4.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness4 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13... |
client/page/support/index.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
/**
* Internal dependencies
*/
import Help from './help';
import HttpTester from './http-tester';
import Status from './status';
const Support = () => {
return (
<>
<Status />
<HttpTester />
<Help />
</>
);
};
export default Support;
|
src/containers/shop/ItemBrowser.js | visa-innovation-sf/ldn-retail-demo | import React, { Component } from 'react';
import {
View,
Image,
Modal,
Alert,
ListView,
FlatList,
ScrollView,
StyleSheet,
Platform,
Dimensions,
Animated,
Easing,
TouchableOpacity,
TouchableHighlight,
} from 'react-native';
import { Actions } from 'react-native-rou... |
lib/atom/marker.js | atom/github | import React from 'react';
import PropTypes from 'prop-types';
import {CompositeDisposable, Disposable} from 'event-kit';
import {autobind, extractProps} from '../helpers';
import {RefHolderPropType, RangePropType} from '../prop-types';
import RefHolder from '../models/ref-holder';
import {TextEditorContext} from './a... |
src/Option.js | VanCoding/react-select | import React from 'react';
import classNames from 'classnames';
const Option = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string, // className (based on mouse position)
instancePrefix: React.PropTypes.string.isRequired, // unique prefix for the ids (... |
src/svg-icons/action/touch-app.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTouchApp = (props) => (
<SvgIcon {...props}>
<path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.... |
app/components/Chrome.js | alexindigo/ndash | import React, { Component } from 'react';
import {
BackAndroid,
KeyboardAvoidingView,
Platform,
StatusBar,
View
} from 'react-native';
import Drawer from 'react-native-drawer';
import StatusBarSizeIOS from 'react-native-status-bar-size';
import Message from './Message';
import Navbar from './Navbar';
impor... |
src/components/__tests__/PaginationTest.js | ttrentham/Griddle | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import Pagination from '../Pagination';
test('renders', (t) => {
const wrapper = shallow(<Pagination />);
t.true(wrapper.matchesElement(<div />));
});
test('renders with style', (t) => {
const style = { backgroundColor: "#EDE... |
source/patterns/react-utils/portal/docs/portal.example.js | apparena/patterns | import React from 'react';
import {Button, Portal} from 'apparena-patterns-react';
export default function PortalExample() {
return (
<Portal
attachToNode={document.getElementById('root')}
>
<div style={{position: 'fixed', top: 0, right: 0, zIndex: 200}}>
<Bu... |
app/components/ThumbGrid.js | fakob/electron-test-v003 | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import { SortableContainer, SortableElement } from 'react-sortable-hoc';
import Thumb from './Thumb';
import ThumbGridHeader from './ThumbGridHeader';
import styles from './ThumbGrid.css';
const SortableThumb = SortableElement(Thumb);
const Thumb... |
webapp/src/widgets/PasswordInput.js | cpollet/itinerants | import React from 'react';
import styles from './PasswordInput.css';
class PasswordInput extends React.Component {
render() {
return (
<input className={styles.component}
type="password"
placeholder={this.props.placeholder}
onChange={this... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | blackle/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
src/TxRegionsInput.js | tiffon/txregions | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MarkedRanges from './MarkedRanges';
import { markEmail, markUrls } from './markers';
import { combineValidators } from './presets';
import { foldWhitespace, KEY_CODES } from './strings';
import { filteredMap, makeSelectionRange, positi... |
stories/enter-leave-animations.stories.js | joshwcomeau/react-flip-move | import React from 'react';
import { storiesOf } from '@storybook/react';
import FlipMoveWrapper from './helpers/FlipMoveWrapper';
import FlipMoveListItem from './helpers/FlipMoveListItem';
['div', FlipMoveListItem].forEach(type => {
const typeLabel = type === 'div' ? 'native' : 'composite';
storiesOf(`Enter/Leav... |
src/slides/six/arrow-functions.js | brudil/slides-es6andbeyond | import React from 'react';
import Radium from 'radium';
import Snippet from '../../Snippet';
import {bindShowHelper} from '../../utils';
const styles = {
inlinePre: {
display: 'inline'
},
slide: {
textAlign: 'center'
}
};
const sourceSteps = [
`
name => \`Hey, \${name}!\`; // implicit return
`,
`
() ... |
src/svg-icons/action/thumb-up.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbUp = (props) => (
<SvgIcon {...props}>
<path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-... |
web/app/pages/signup.js | bitemyapp/serials | // @flow
import React from 'react'
import {FormSection} from '../comp'
import {Users} from '../model/user'
import {makeUpdate} from '../data/update'
import {LogoPage} from './login'
import {Signup, signup, invitesFind, Invite, emptyInvite} from '../model/invite'
import {EmailLink} from '../books/support'
import {Alert... |
src/js/components/ScrollToTop.js | slavapavlutin/pavlutin-node | import React from 'react';
import { withRouter } from 'react-router-dom';
class ScrollToTop extends React.Component {
componentDidUpdate(prevProps) {
// const { hash } = this.props.location;
// if (hash.length > 0) {
// document.getElementById(hash).scrollIntoView();
// return;
// }
if (t... |
src/client/pages/tocheckitem.react.js | sljuka/portfulio | import Component from '../components/component.react';
import React from 'react';
import {FormattedHTMLMessage} from 'react-intl';
class ToCheckItem extends Component {
static propTypes = {
item: React.PropTypes.object.isRequired
};
render() {
return (
<li>
<FormattedHTMLMessage message={... |
docs/src/app/components/pages/components/Dialog/ExampleAlert.js | ichiohta/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation.
*/
export default class DialogExampleAler... |
stories/Breadcrumb.stories.js | algolia/react-instantsearch | import React from 'react';
import { storiesOf } from '@storybook/react';
import { object, text } from '@storybook/addon-knobs';
import {
Breadcrumb,
HierarchicalMenu,
Panel,
connectHierarchicalMenu,
} from 'react-instantsearch-dom';
import { WrapWithHits } from './util';
const stories = storiesOf('Breadcrumb',... |
node_modules/react-router/modules/TransitionHook.js | yomolify/cs-webserver | import React from 'react';
import warning from 'warning';
var { object } = React.PropTypes;
var TransitionHook = {
contextTypes: {
router: object.isRequired
},
componentDidMount() {
warning(
typeof this.routerWillLeave === 'function',
'Components that mixin TransitionHook should have a rou... |
stories/GridWithCardLayout/ExampleGridStandard.js | skyiea/wix-style-react | import React from 'react';
import {Container, Row, Col, Card} from '../../src/Grid';
import styles from './ExampleGrid.scss';
import TextField from '../../src/TextField';
import Input from '../../src/Input';
import Label from '../../src/Label';
function renderStandardInput() {
return (
<TextField>
<Label
... |
src/svg-icons/social/location-city.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialLocationCity = (props) => (
<SvgIcon {...props}>
<path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h... |
src/stories/index.js | marceux/react-mcw | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, boolean } from '@storybook/addon-knobs';
import PermanentDrawer from '../Drawer/PermanentDrawer';
import TemporaryDrawer from '../Drawer/TemporaryDrawer';
storiesOf('Permanen... |
examples/body-overflow.js | yiminghe/dom-align | import React from 'react';
import domAlign from 'dom-align';
import ReactDOM from 'react-dom';
import createReactClass from 'create-react-class';
const Test = createReactClass({
align() {
const ret = domAlign(this.refs.source, this.refs.target, {
points: ['tl', 'bl'],
overflow: {
adjustY: 1,
... |
demo/src/components/ContainerExample/index.js | jbetancur/react-flexybox | import React from 'react';
import { Container, Row, Col } from 'react-flexybox';
import Markdown from '../Markdown';
import code from './code.md';
import codeFluid from './codeFluid.md';
const ContainerExample = props => (
<div>
<Container>
<h2>Container</h2>
<p>
Container is an optional Wrap... |
app/testutils.js | websash/q-and-a-react-redux-app | import React from 'react'
import {render} from 'react-dom'
import {Router, Route, browserHistory} from 'react-router'
import {renderToString} from 'react-dom/server'
function wrap(Component, props) {
return class ComponentWrapper extends React.Component {
render() {
return <Component {...props} />
}
... |
web/src/js/components/Widget/Widgets/Bookmarks/AddBookmarkForm.js | gladly-team/tab | /* eslint no-useless-escape: 0 */
import React from 'react'
import PropTypes from 'prop-types'
import EditWidgetChip from 'js/components/Widget/EditWidgetChip'
import TextField from 'material-ui/TextField'
import appTheme, { widgetEditButtonHover } from 'js/theme/default'
class AddBookmarkForm extends React.Componen... |
docs/containers/GettingStarted.js | 5rabbits/portrait | /* eslint-disable global-require, import/no-webpack-loader-syntax, react/no-danger */
import React from 'react'
import { Container } from 'shared'
import markdown from '../helpers/markdown'
const GettingStarted = () =>
<Container>
<div
dangerouslySetInnerHTML={{
__html: markdown.render(require('ra... |
app/javascript/mastodon/features/ui/components/column_subheading.js | tootsuite/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/svg-icons/device/brightness-medium.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6... |
example/client/src/graphiql.js | samsarahq/thunder | import React from 'react';
import GraphiQL from 'graphiql';
import { connection, mutate } from 'thunder-react';
import '../node_modules/graphiql/graphiql.css';
function graphQLFetcher({query, variables}) {
if (query.startsWith("mutation")) {
return mutate({
query,
variables,
});
}
return {
... |
src/dataTable/Head.js | iporaitech/react-to-mdl | import React from 'react';
const Head = (props) => {
const { children } = props;
return (
<thead>
<tr>
{children}
</tr>
</thead>
)
}
export { Head }
|
src/FadeMixin.js | Azerothian/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
// TODO: listen for onTransitionEnd to remove el
function getElementsAndSelf (root, classes){
let els = root.querySelectorAll('.' + classes.join('.'));
els = [].map.call(els, function(e){ return e; });
for(let i = 0; i < classes.length; i++){
... |
modules/Repo.js | proto2017/react-router | import React from 'react'
export default React.createClass({
render() {
const {username, repoName} = this.props.params;
return (
<div>
<h2>{username}/{repoName}/{Math.random()}</h2>
</div>
)
}
})
|
docs/app/Examples/collections/Message/Types/MessageExampleIcon.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Message, Icon } from 'semantic-ui-react'
const MessageExampleIcon = () => (
<Message icon>
<Icon name='circle notched' loading />
<Message.Content>
<Message.Header>Just one second</Message.Header>
We are fetching that content for you.
</Message.Content>
</... |
components/GrainWeightOzField.js | sgillespie/beer-recipe-adapter | import { Input } from 'react-bootstrap';
import React from 'react';
export default React.createClass({
getValue: function () {
return this.refs.weightOz.getValue();
},
render: function () {
return (
<Input type="text"
ref="weightOz"
placeholder="Ounces"
... |
src/components/layout/navigation/index.js | MoosemanStudios/app.moosecraft.us | import React from 'react';
import { connect } from 'react-redux';
import { NavLink } from 'react-router-dom';
import SiteLogo from 'src/components/component/siteLogo';
import { STATIC } from 'config/project';
import styles from './style.scss';
@connect(state => ({ menu: state.menu }))
class NavigationBar extends Rea... |
app/routes.js | mersocarlin/react-webpack-template | import React from 'react';
import { Route } from 'react-router';
import App from './containers/app';
import About from './containers/about';
import Home from './containers/home';
import NoMatch from './containers/no-match';
export default (
<Route component={App}>
<Route path="/" component={Home} />
<Rou... |
src/components/chrome/ChromeFields.js | Scratch-it/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import color from '../../helpers/color'
import shallowCompare from 'react-addons-shallow-compare'
import { EditableInput } from '../common'
export class ChromeFields extends ReactCSS.Component {
shouldComponentUpdate = shallowCompar... |
js/jqwidgets/demos/react/app/chart/columnsrange/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let sampleData = [{ a: 0.35, b: 14.5, c: 0.35, d: 0.1 }, { a: 1, b: 2.5, c: 1, d: 0.2 }, { a: 10, b: 0.5, c: 10, d: 50 }, { a: 100,... |
examples/js/remote/remote-search.js | powerhome/react-bootstrap-table | import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
export default class RemoteSearch extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<BootstrapTable data={ this.props.data }
remote={ true }
... |
classic/src/scenes/wbfa/generated/FABApple.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faApple } from '@fortawesome/free-brands-svg-icons/faApple'
export default class FABApple extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faApple} />)
}
}
|
app/Entry.js | anthonychung14/mobile-1 | import React from 'react';
import { Router, Scene } from 'react-native-router-flux';
import IngestContainer from './containers/IngestContainer.js';
import SessionContainer from './containers/SessionContainer.js';
import SignUpView from './components/signup/SignUpView.js';
import NavBar from './components/NavBar.js';
... |
geonode/contrib/monitoring/frontend/src/components/cels/frequent-layers/index.js | simod/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styles from './styles';
import actions from './actions';
const mapStateToProps = (state) => ({
interval: state.interval.interval,
layers: state.frequentLayers.response,
timestamp: state.interval.timestam... |
src/svg-icons/image/wb-incandescent.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbIncandescent = (props) => (
<SvgIcon {...props}>
<path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.... |
lib/views/timeline-items/commit-comment-view.js | atom/github | import React from 'react';
import {graphql, createFragmentContainer} from 'react-relay';
import PropTypes from 'prop-types';
import Octicon from '../../atom/octicon';
import Timeago from '../timeago';
import GithubDotcomMarkdown from '../github-dotcom-markdown';
import {GHOST_USER} from '../../helpers';
export class ... |
internals/templates/app.js | dvm4078/dvm-blog | /**
* 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... |
examples/05 Customize/Drop Effects/Container.js | wagonhq/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import SourceBox from './SourceBox';
import TargetBox from './TargetBox';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
render() {
... |
js/Chord.js | nico1000/chord-trainer | import React from 'react';
import drawChords from './drawChords';
export default class Chord extends React.Component {
constructor(props) {
super(props);
}
render() {
var chordImage = (
<div
className='chord__image'
ref={ this.drawChord }
data-chord-name=''
data-pos... |
packages/mineral-ui-icons/src/IconClass.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 IconClass(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
src/components/Loading.js | JoJoChilly/joexp-react | import React from 'react';
import { Dimmer, Loader, Segment } from 'semantic-ui-react';
const loading = () => (
<div>
<Segment>
<Dimmer active inverted>
<Loader inverted>Loading</Loader>
</Dimmer>
</Segment>
</div>
);
export default loading;
|
packages/material-ui-icons/src/SignalCellular0BarRounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path fillOpacity=".3" d="M4.41 22H20c1.1 0 2-.9 2-2V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71z" />
, 'SignalCellular0BarRounded');
|
Tutorial/js/project/2.MeiTuan/Component/Home/XMGShopCenterDetail.js | onezens/react-native-repo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Platform,
TouchableOpacity,
Image,
WebView
} from 'react-native';
var Shop = React.createClass({
getIniti... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | kagucho/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
export default class MediaItem extends ImmutablePureComponent {
static propTypes = {
media: Immutable... |
src/components/users/UserFollowing.js | mg4tv/mg4tv-web | import PropTypes from 'prop-types'
import React from 'react'
import {compose, getContext} from 'recompose'
const enhanceSubs = compose(
getContext({
baseUrl: PropTypes.string.isRequired
}),
)
const UserFollowing = ({baseUrl}) => (
<div>
</div>
)
export default enhanceSubs(UserFollowing)
|
src/components/App.js | anitailieva/fullstack-javascript | import React from 'react';
import Header from './Header';
import ContestList from './ContestList';
import Contest from './Contest';
import * as api from '../api';
const pushState = (obj, url) =>
window.history.pushState(obj, '', url);
const onPopState = handler => {
window.onpopstate = handler;
};
class App ... |
src/components/docs/flex-video.js | nordsoftware/react-foundation-docs | import React from 'react';
import Playground from 'component-playground';
import {
Grid,
Cell,
FlexVideo,
} from 'react-foundation';
export const FlexVideoDocs = () => (
<section className="flex-video-docs">
<Grid>
<Cell large={12}>
<h2>Flex Video</h2>
<Playground codeText={require('r... |
packages/web/examples/ssr/pages/reactivelist.js | appbaseio/reactivesearch | /* eslint-disable */
import React, { Component } from 'react';
import { ReactiveBase, SingleList, SelectedFilters, ReactiveList } from '@appbaseio/reactivesearch';
import initReactivesearch from '@appbaseio/reactivesearch/lib/server';
import Layout from '../components/Layout';
import BookCard from '../components/Book... |
app/desktop/Loaders/index.js | christianalfoni/webpack-bin | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import styles from './styles.css';
import BabelConfig from './BabelConfig';
import CssConfig from './CssConfig';
import TypescriptConfig from './TypescriptConfig';
import CoffeescriptConfig from './CoffeescriptConfig';
import RawConf... |
docs/app/Views/Usage.js | mohammed88/Semantic-UI-React | import React from 'react'
import pkg from 'package.json'
import {
Container,
Header,
Segment,
} from 'src'
import Logo from '../Components/Logo/Logo'
import { semanticUIDocsURL, semanticUIRepoURL, semanticUICSSRepoURL } from 'docs/app/utils'
const suiCSSVersion = pkg.devDependencies['semantic-ui-css'].replace(/[... |
examples/real-world/index.js | alantrrs/redux | import 'babel-core/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from './store/configureStore';
import App from './containers/App';
import UserPage from './co... |
src/components/Dashboard.js | jojoee/whitt | import React from 'react';
const Dashboard = () => {
return (
<div>
<h2>Dashboard</h2>
</div>
);
};
export default Dashboard;
|
react-router-tutorial/index.js | Zyst/learning-react | import React from 'react'
import { render } from 'react-dom'
import App from './modules/App'
import { Router, Route, browserHistory, IndexRoute } from 'react-router'
import About from './modules/About';
import Repos from './modules/Repos';
import Repo from './modules/Repo';
import Home from './modules/Home';
render((
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.