path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
example/App.js | kis/react-native-air-progress-bar | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import ProgressBar from 'react-native-air-progress-bar';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>... |
src/container/NewTopic/index.js | ztplz/CNode-react-native | /**
* React Native App
* https://github.com/ztplz/CNode-react-native
* email: mysticzt@gmail.com
*/
// import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import {
View,
Text,
TextInput,
Alert,
TouchableWithoutFeedback,
ActivityIndicator,
KeyboardAvoidingVie... |
src/routes/searchTable/SearchModal.js | zhangjingge/sse-antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Modal, Button } from 'antd';
import ConditionList from './ConditionList';
class MoreChecks extends React.Component {
state = {
visible: false,
checkedListTexts: []
}
showModal = () => {
this.setState({
visible: true,
});... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZoneTarget.js | matthieugayon/keystone | /**
* THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT
* THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON
* - @mxstbr
*/
import React from 'react';
import { DropTarget } from 'react-dnd';
import { setCurrentPage } from '../../actions';
let timeoutID = false;
// drop target
var ItemsTableDragDro... |
src/CollapsibleMixin.js | PeterDaveHello/react-bootstrap | import React from 'react';
import TransitionEvents from './utils/TransitionEvents';
import deprecationWarning from './utils/deprecationWarning';
let warned = false;
const CollapsibleMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState(){
l... |
examples/huge-apps/components/App.js | kurayama/react-router | /*globals COURSES:true */
import React from 'react'
import Dashboard from './Dashboard'
import GlobalNav from './GlobalNav'
class App extends React.Component {
render() {
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={COURSES... |
app/javascript/mastodon/components/icon.js | yukimochi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Icon extends React.PureComponent {
static propTypes = {
id: PropTypes.string.isRequired,
className: PropTypes.string,
fixedWidth: PropTypes.bool,
};
render () {
const { id, c... |
src/components/svg/icon/Person-Boxed.js | ryanabragg/VanguardLARP | import React from 'react';
import PropTypes from 'prop-types';
const PersonBoxed = (props) => {
const color = props.color == 'inherit' ? undefined : props.color;
const aria = props.title ? 'svg-person-boxed-title' : '' +
props.title && props.description ? ' ' : '' +
props.description ? 'svg-person-boxed-de... |
src/svg-icons/notification/confirmation-number.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationConfirmationNumber = (props) => (
<SvgIcon {...props}>
<path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2... |
views/main.js | littlecodeshop/black-screen | import React from 'react';
import _ from 'lodash';
import Rx from 'rx';
import {TerminalLayout} from './compiled/src/views/TerminalLayout.js';
var keys = {
goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38,
goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ... |
renderer/components/preferences/categories/index.js | wulkano/kap | import React from 'react';
import PropTypes from 'prop-types';
import {ipcRenderer as ipc} from 'electron-better-ipc';
import {connect, PreferencesContainer} from '../../../containers';
import General from './general';
import Plugins from './plugins';
const CATEGORIES = [
{
name: 'general',
Component: Gene... |
docs/src/pages/components/bottom-navigation/LabelBottomNavigation.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import BottomNavigation from '@material-ui/core/BottomNavigation';
import BottomNavigationAction from '@material-ui/core/BottomNavigationAction';
import FolderIcon from '@material-ui/icons/Folder';
import RestoreIcon from '@material-ui/ic... |
src/common/ReplOutput.js | boneskull/Mancy | import _ from 'lodash';
import ReplConstants from '../constants/ReplConstants';
import ReplCommon from './ReplCommon';
import util from 'util';
import ReplEntryOutputError from '../components/ReplEntryOutputError';
import {EOL} from 'os';
import React from 'react';
import ReplDOM from '../common/ReplDOM';
import ReplCo... |
fixtures/fiber-debugger/src/Fibers.js | wmydz1/react | import React from 'react';
import {Motion, spring} from 'react-motion';
import dagre from 'dagre';
// import prettyFormat from 'pretty-format';
// import reactElement from 'pretty-format/plugins/ReactElement';
function getFiberColor(fibers, id) {
if (fibers.currentIDs.indexOf(id) > -1) {
return 'lightgreen';
}... |
app/components/AddUser/TeamSelect/index.js | prudhvisays/newsb | import React from 'react';
import Select, { Option } from 'rc-select';
import 'rc-select/assets/index.css';
function onSelect() {
console.log(arguments);
}
function onDeselect() {
console.log(arguments);
}
export default class UserSelect extends React.Component { //eslint-disable-line
constructor(props) {
s... |
packages/@vega/article-state-tool/src/components/ArticleFeatures.js | VegaPublish/vega-studio | // @flow
import React from 'react'
import {has} from 'lodash'
import {map, switchMap} from 'rxjs/operators'
import FeatureStateProvider from '@vega/components/FeatureStateProvider'
import {materializePaths} from 'part:@vega/datastores/document-preview'
import withPropsStream from '@vega/utils/withPropsStream'
import Wi... |
frontend/src/Album/Details/AlbumDetailsMedium.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Icon from 'Components/Icon';
import Label from 'Components/Label';
import IconButton from 'Components/Link/IconButton';
import Link from 'Components/Link/Link';
import Table from 'Components/Table/Table';
import TableBody from 'Compone... |
src/client/auth/requireauth.js | cazacugmihai/este | import Component from '../components/component.react';
import React from 'react';
import User from '../users/user';
export default function requireAuth(BaseComponent) {
return class RequireAuth extends Component {
static willTransitionTo(transition) {
if (User.isLoggedIn) return;
transition.redirec... |
packages/material-ui-icons/src/PhotoFilter.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PhotoFilter = props =>
<SvgIcon {...props}>
<path d="M19.02 10v9H5V5h9V3H5.02c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zM17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7l2.06.94zm-3.75.75L... |
plugins/react/frontend/components/common/SavingLabel/index.js | pure-ui/styleguide | /**
* Saving
*
* Shows a label indicating something is being saved
*/
import React from 'react';
import styles from './styles.css';
const SavingLabel = () => (<div className={styles.label}>Saving...</div>);
export default SavingLabel;
|
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Experiment/Lesson/Lesson.js | Zephyrrus/ubb | import React, { Component } from 'react';
import {
Animated,
Image,
ImageBackground,
Platform,
ScrollView,
StyleSheet,
Text,
View,
} from 'react-native';
import {
TabBar,
TabViewAnimated,
TabViewPagerPan,
TabViewPagerScroll,
} from 'react-native-tab-view';
import PropTypes from 'prop-types';
... |
src/index.js | lincolnphu/zzdi | import React from 'react';
import ReactDOM from 'react-dom';
import Zdd from './Zdd';
ReactDOM.render(<Zdd />, document.getElementById('root'));
|
node_modules/react-bootstrap/es/HelpBlock.js | ivanhristov92/bookingCalendar | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
docs/src/js/prettify.js | pandoraui/react-ui | 'use strict'
import React from 'react'
import ReactDOM from 'react-dom'
export default function prettify (Component) {
class Prettify extends React.Component {
static displayName = 'Prettify'
static propTypes = {
children: React.PropTypes.array
}
componentDidMount () {
window.prettyPri... |
src/js/components/chatInterface/interfaceFooter.js | ShiningZeng/EasyChat | import React, { Component } from 'react';
import {socket, NAME, PHOTO} from '../../main';
export class InterfaceFooter extends Component {
constructor(props) {
super(props);
}
componentDidMount() {
this.showFile();
this.hideEmoji();
this.initEmoji();
//初始化表情点击事件
const emoji = this.refs.emoji;
this.... |
src/components/create-element.js | mozilla/copyright | import React from 'react';
import { IntlProvider } from 'react-intl';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducer from '../reducers';
var createElement = React.createClass({
propTypes: {
locale: React.PropTypes.string.isRequired,
messages: React.PropTypes.objec... |
.storybook/preview.js | dsmjs/components | import React from 'react';
import {addDecorator} from '@storybook/react';
import {fontFamily, fontSize} from '../src/styles';
global.__PATH_PREFIX__ = ''; // eslint-disable-line no-underscore-dangle
global.__BASE_PATH__ = ''; // es... |
stories/index.js | sunilj0lly/gitrospective | import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import GitReposList from '../src/components/GitReposList'
// import '../src/index.css';
// import 'bootstrap/dist/css/bootstrap.css'
const authButtonClicked = action('authenticate with Github button clicked');
const reposLinkClicked = ac... |
app/containers/LanguageProvider/index.js | giko/mcb-react-task | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
examples/async-data/app.js | zoeabryant/react-autocomplete | import React from 'react'
import Autocomplete from '../../lib/index'
import { getStates, matchStateToTerm, sortStates, styles, fakeRequest } from '../utils'
let App = React.createClass({
getInitialState () {
return {
unitedStates: getStates(),
loading: false
}
},
render () {
return (
... |
src/components/PersonInfo.js | mleonard87/chapp-client | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
export default React.createClass({
render: function() {
return (
<div className="person-info">
<h3>{this.props.name}</h3>
</div>
);
}
});
|
ui/src/components/enquiries/composeModal.js | jollopre/mps | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Modal } from 'react-bootstrap';
import { Typeahead } from 'react-bootstrap-typeahead';
import 'react-bootstrap-typeahead/css/Typeahead.css';
export class ComposeModal extends Component {
constructor(props) {
super(props);
... |
src/Label.js | IveWong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Label = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'label',
bsStyle: 'default'
};
},
render() {
let classes = this.getBsClassSe... |
dashboard-ui/app/components/payment/planDetails.js | CloudBoost/cloudboost | import React from 'react';
import PropTypes from 'prop-types';
import planList from './plans';
import Popover from 'material-ui/Popover';
import ReactTooltip from 'react-tooltip';
import ReactDOM from 'react-dom';
class PlanDetails extends React.Component {
static propTypes = {
selectPlan: PropTypes.any,
sel... |
spec/javascripts/jsx/collaborations/DeleteConfirmationSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
server/dashboard/js/components/BenchResults.react.js | MrAlone/mzbench | import React from 'react';
import BenchGraphs from './BenchGraphs.react';
class BenchResults extends React.Component {
render() {
if (!this.props.bench.results) return null;
var metricValues = Object.keys(this.props.bench.results).map((key) => {
let data = this.props.bench.results[k... |
app/javascript/mastodon/features/ui/components/column_header.js | yukimochi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
components/issues/show/CommentList.js | CarbonStack/carbonstack | import React from 'react'
import {
monospacedFontFamily,
grayColor
} from '../../../lib/styles/variables'
import CommentForm from './CommentForm'
import CommentItem from './CommentItem'
import socket from '../../../lib/socket'
class CommentList extends React.PureComponent {
componentDidMount () {
const { iss... |
packages/mcs-lite-landing-web/src/components/SVG/SVGCode.js | MCS-Lite/mcs-lite | /**
* svgtoreact
*
* @author Michael Hsu
*/
import React from 'react';
export default function SVGCode(props) {
return (
<svg width={152} height={102} viewBox="0 0 152 102" {...props}>
<g>
<rect
id="Rectangle-25"
fill="#fff"
x={1}
y={1}
width={... |
app/main.js | zchen9/DonutTab | import React from 'react';
import ReactDOM from 'react-dom';
import Tab from './components/Tab/Tab.js';
require('./assets/styles/main.scss');
(function main() {
$.material.init();
ReactDOM.render(<Tab />, document.getElementById('donutTab'));
})();
|
src/common/PageIntro/PageIntro.js | Syncano/syncano-dashboard | import React from 'react';
import { colors as Colors } from 'material-ui/styles';
import CloseButton from '../CloseButton/';
const PageIntro = ({ headline, text, actions, onRequestClose, show = 'true' }) => {
const styles = {
main: {
marginBottom: 24,
padding: 32,
background: 'rgba(243, 243, 24... |
client/components/Flass/Lecture/Analysis/AnalysisLoadingHOC.js | Nexters/flass | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import AnalysisLoadingComponent from './AnalysisLoading/AnalysisLoadingComponent';
const {
number, shape, arrayOf, string
} = PropTypes;
export const AnalysisLoadingHOC = WrappedComponent => {
class WithLoading extends Component {
... |
example/index.js | pavkout/reactUI | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app.jsx';
ReactDOM.render(<App />, document.getElementById('app'));
|
manga-reader-web/modules/ui/list_tags.js | gillessed/manga-reader | import React from 'react'
import TagCell from './tag_cell'
import catalogueController from '../controllers/catalogue_controller'
import serverConstants from '../model/server_constants'
import messages from './messages'
export default class AddManga extends React.Component {
constructor() {
super()
this.stat... |
src/components/php/original/PhpOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './PhpOriginal.svg'
/** PhpOriginal */
function PhpOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'PhpOriginal' + ' ' + className}
... |
webapp-src/src/Hutch/ModalCoinExport.js | babelouest/hutch | import React, { Component } from 'react';
import i18next from 'i18next';
import ManageExportData from './ManageExportData';
class ModalCoinExport extends Component {
constructor(props) {
super(props);
this.state = {
config: props.config,
cb: props.cb,
safe: props.safe,
coin: props.... |
assets/js/components/separator.js | CandN/eliscore | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
const Separator = ({ text, categories, category_id }) => (
<div className="col-xs-2">
<div className="match__separator">
{text}
</div>
<div className="match__category">
{category_id ? categor... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-tabs/es/TabBarMixin.js | bhathiya/test | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import classnames from 'classnames';
import warning from 'warning';
var tabBarExtraContentStyle = {
float: 'right'
};
export default {
getDefaultProps: function getD... |
docs/includes/Faq.js | harjeethans/materialistic | import React from 'react';
class Faq extends React.Component {
render() {
return (
<div>
FAQ
</div>
);
}
}
export default Faq;
|
src/components/about/About.js | andgiu/lin.bert | import React, { Component } from 'react';
import * as Config from '../actions/Config';
class About extends Component {
render(){
let about = Config.getAbout();
return (
<div id="about">
<img id="header" src={Config.getImageFromCache("about").src} />
<div id="content">
<h1><s... |
src/app/screens/Anonymous/screens/Contact/index.js | docgecko/react-alt-firebase-starter | /*! React Alt Firebase Starter */
import React from 'react';
import { Route } from 'react-router';
import Contact from './components/Contact';
export default (
<Route name='contact' path='/contact' handler={Contact}/>
);
|
test/helpers/shallowRenderHelper.js | drudv/react-redux-chat | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
client/app/components/graphs/ExploreGraph/index.js | bryanph/Geist |
import _ from 'lodash'
import React from 'react'
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import ReactDOM from 'react-dom'
import classNames from 'classnames'
import { drag as d3Drag } from 'd3-drag'
import { select as d3Select } from 'd3-selection'
import { event as currentE... |
ajax/libs/react-instantsearch/4.3.0/Connectors.js | wout/cdnjs | /*! ReactInstantSearch 4.3.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
packages/mineral-ui-icons/src/IconPhotoLibrary.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 IconPhotoLibrary(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
pathfinder/architecturestack/src/common/Link.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Link extends Component {
constructor(props) {
super(props);
this._handleClick = this._handleClick.bind(this);
}
_handleClick(e) {
e.preventDefault();
lx.openLink(this.props.link, this.props.target);
}
render() {
if (!... |
test/test_helper.js | kors-mk5/react-starter | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/Table.js | xuorig/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() {
... |
frontend/src/index.js | OwenRay/Remote-MediaServer | /* global document,navigator,window */
import React from 'react';
import ReactDOM from 'react-dom';
import history from './helpers/history';
import { Router, Switch } from 'react-router-dom';
// these two lines overwrite the serialization of redux-jsonapi
// eslint-disable-next-line
import serializer from "./helpers/st... |
docs/src/app/components/pages/components/Menu/ExampleSimple.js | mtsandeep/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
const style = {
display: 'inline-block',
margin: '16px 32px 16px 0',
};
const MenuExampleSimple = () => (
<div>
<Paper style={style}>
<Menu>
<Menu... |
src/vendor/recharts/demo/component/Rectangle.js | donal-crotty/fuzzy-telegram | import React, { Component } from 'react';
import { Surface, Rectangle } from 'recharts';
class RectangleDemo extends Component {
state = {
x: 50,
y: 50,
width: 80,
height: 100,
};
changeSize() {
this.setState({
x: Math.random() * 50,
y: Math.random() * 50,
width: Math.rando... |
src/routes/private/Private.js | sk-iv/iva-app | import React from 'react';
import PropTypes from 'prop-types'
import List, { ListItem, ListItemIcon, ListItemText } from '../../components/List'
// import { Switch, Route } from 'react-router-dom';
import {Key, SignIn, SignOut, Dividers, EllipsisHorizontal, Bars, UserCircle, Gear, Comment, Plus} from '../../components/... |
UI/Buttons/ButtonAddListItem.js | Datasilk/Dedicate | import React from 'react';
import {View, StyleSheet, Alert} from 'react-native';
import AppStyles from 'dedicate/AppStyles';
import Text from 'text/Text';
import Textbox from 'fields/Textbox';
import Button from 'buttons/Button';
import ButtonPlus from 'buttons/ButtonPlus';
export default class ButtonAddListItem exten... |
node_modules/react-bootstrap/es/NavbarHeader.js | mohammed52/something.pk | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
CreateBookingForm.js | CaptainSadaf/codeignitor | import React, { Component } from 'react';
import { Card, Row, Col, Modal, Radio, Select, Menu, Dropdown, message, TimePicker, DatePicker, Icon, Form, Input, Button, Checkbox } from 'antd';
import BookingTransfer from './CreateBookingFormComponents/BookingTransfer.js'
import moment from 'moment';
import SearchAddres... |
techCurriculum/ui/starter_code/cards-app/src/App.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 in writ... |
webpack/move_to_foreman/components/common/table/formatters/cellFormatter.js | cfouant/katello | import React from 'react';
import { Table as PfTable } from 'patternfly-react';
export default value => <PfTable.Cell>{value}</PfTable.Cell>;
|
stories/Drawer.js | Talend/react-talend-components | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { Layout, Drawer } from '../src/index';
const content = (
<div>
<h1>Welcome to the content for testing scroll</h1>
<ul>
<li>one</li>
<li>one</li>
<li>one</li>
<li>one</li>
<li>one</li>
<li>one</li>
<li>o... |
src/components/common/forms/LoggentForm.js | seyade/loggent | import React, { Component } from 'react';
import createFragment from 'react-addons-create-fragment';
import TextInput from './TextInput';
import TextAreaInput from './TextAreaInput';
import Button from './Button';
import './Forms.scss';
/**
* FAKE DATA
*
Head of front end development
Miu Furinji
Vivid Resou... |
fields/types/number/NumberFilter.js | naustudio/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
Form,
FormField,
FormInput,
FormSelect,
Grid,
} from '../../../admin/client/App/elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ ... |
docs/src/app/components/pages/components/GridList/ExampleComplex.js | owencm/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
src/index.js | ricardojrgpimentel/emojieshelter | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
ReactDOM.render(<App />, document.getElementById('root'))
|
src/main.js | saitodisse/md-list | import 'babel-polyfill';
import React from 'react';
import {render} from 'react-dom';
import {Container} from 'cerebral-view-react';
import controller from './controller';
import Main from './components/Main';
require('!style!css!highlight.js/styles/github.css');
require('!style!css!highlight.js/styles/default.css');
... |
docs/app/Examples/collections/Table/Variations/TableExampleBasic.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleBasic = () => {
return (
<Table basic>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Table.... |
app/components/ShowProfile/index.js | theClubhouse-Augusta/JobWeasel-FrontEnd | /**
*
* ShowProfile
*
*/
import React from 'react';
import './style.css';
import './styleM.css';
export default class ShowProfile extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
user: {},
skills: [],
links: []
}
}
componentWillMount() {
this.g... |
src/components/hidden-comment.js | marcusdarmstrong/cloth-io | import React from 'react';
import CommentFrame from './comment-frame';
import CommentIndent from './comment-indent';
export default class HiddenComment extends React.Component {
static propTypes = {
comment: React.PropTypes.shape({
id: React.PropTypes.number.isRequired,
user: React.PropTypes.shape({
... |
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js | littlefoot32/react-router | import React from 'react';
class Announcements extends React.Component {
render () {
return (
<div>
<h3>Announcements</h3>
{this.props.children || <p>Choose an announcement from the sidebar.</p>}
</div>
);
}
}
export default Announcements;
|
app/javascript/mastodon/features/explore/statuses.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusList from 'mastodon/components/status_list';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { fetchTrendingStatuses, expandTrendingStatuse... |
src/Winner.js | PixelPlayoffs/playoff_app | import React, { Component } from 'react';
class Winner extends Component {
render(){
return (<div className="winner">Winner is {this.props.winner}</div>);
}
}
export default Winner; |
src/svg-icons/image/panorama-vertical.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaVertical = (props) => (
<SvgIcon {...props}>
<path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02... |
src/Karika/CoreBundle/Resources/js/components/App.js | Qeti/Karika | "use strict";
import React from 'react';
import Header from './Header.js';
import {} from 'bootstrap/dist/css/bootstrap.css';
import {} from '../../css/app.css';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import darkBaseTheme from 'mate... |
src/App.js | kishorevalluri/react-experiments | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
js/components/blankPage/index.js | gectorat/react-native-app |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Text, Button, Icon } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import { popRoute } from '../../actions/route';
import styles from './styles';
class BlankPage exten... |
src/routes/register/index.js | cmosguy/react-redux-auth0 | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Register from './Registe... |
src/docs/examples/ProgressBar/Example70Percent.js | StudentOfJS/ps-react-rod | import React from 'react';
import ProgressBar from 'ps-react-rod/ProgressBar';
/** 70% Progress */
export default function Example70Percent() {
return <ProgressBar percent={70} width={150} />;
} |
src/components/Login.js | cedjud/nst-prototype | import React, { Component } from 'react';
import {
Segment,
Button,
Header,
Divider,
Form,
Icon
} from 'semantic-ui-react';
import fire from '../fire.js';
import { Redirect, Link } from 'react-router-dom';
import './Login.css';
class Login extends Component {
constructor(props){
super(props);
thi... |
client/src/components/Signup.js | JetRunner/epictodo | import React, { Component } from 'react';
import jQuery from 'jquery';
import { hashHistory } from 'react-router';
class Signup extends Component {
constructor(props) {
super(props);
this.state = {
hint: ''
};
}
render() {
return (
<div className="sign-up">
<table>
<... |
src/client/AppWrapper.js | EdgeJay/web-starterkit | import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { AppContainer } from 'react-hot-loader';
import { AsyncComponentProvider } from 'react-async-component';
import asyncBootstrapper from 'react-asy... |
client/router.js | wilywallabies/wilyVideo | import React from 'react';
import {render} from 'react-dom';
import Main from './components/App';
render(<Main />, document.getElementById('root'));
//will hold router
|
src/svg-icons/av/volume-up.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeUp = (props) => (
<SvgIcon {...props}>
<path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91... |
src/pages/404.js | aravindballa/website2017 | import React from 'react';
import Layout from '../components/Layout';
class NotFoundPage extends React.Component {
render() {
return (
<Layout location={this.props.location}>
<h1>Not Found</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
);
}
}
... |
example/index.ios.js | callstack-io/react-native-material-palette | /**
* 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 TestPalette extends Component {
render() {
return (
<View style={styles.contain... |
examples/_drag-around-naive/index.js | prometheusresearch/react-dnd | 'use strict';
import React from 'react';
import LinkedStateMixin from 'react/lib/LinkedStateMixin';
import Container from './Container';
import { Link } from 'react-router';
const DragAroundNaive = React.createClass({
mixins: [LinkedStateMixin],
getInitialState() {
return {
hideSourceOnDrag: false
... |
src/svg-icons/av/repeat.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeat = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/>
</SvgIcon>
);
AvRepeat = pure(AvRepeat);
AvRepeat.displayName = 'AvRepeat';
AvRepeat.mu... |
react-redux-todo/src/components/Footer.js | okutani-t/javascript-code | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<footer>
<span>SHOW:</span>
<FilterLink filter='SHOW_ALL'>ALL</FilterLink>
<FilterLink filter='SHOW_ACTIVE'>ACTIVE</FilterLink>
<FilterLink filter='SHOW_COMPLETED'>COMPLETED</FilterLink>
</footer>
)
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | magharn/learning-angular2 | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/svg-icons/image/filter-drama.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterDrama = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 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-4... |
src/Add.js | robreczarek/clouds-stepone-app | import React, { Component } from 'react';
import { withRouter } from 'react-router';
import Formsy from 'formsy-react';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
i... |
example/src/scripts/pages/UIKit/Navigation/index.js | vyorkin-personal/erlyeditor | import React from 'react';
import { Link } from 'react-router';
import css from 'react-css-modules';
import styles from './styles';
export const Navigation = () => (
<ul styleName='navigation'>
<li><Link to='/ui-kit/badges'>{`badges`}</Link></li>
<li><Link to='/ui-kit/buttons'>{`buttons`}</Link></li>
<l... |
src/routes.js | Bartekus/r3 | import React from 'react';
import { Route, IndexRedirect } from 'react-router';
import { requireAuthentication as restrict } from './containers/AuthenticatedComponent';
import AppContainer from './containers/AppContainer';
import HeroPageLayout from './containers/HeroPageLayout';
import AdminPageLayout from './contain... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.