path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | kaguillera/newspipeline | 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'));
|
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js | digitalorigin/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import './assets/style.css';
export default () => <p id="feature-css-inclusion">We love useless text.</p>;
|
src/components/ControlPanelLayout/ControlPanelLayout.js | shafdanny/zikr-project-dev | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import s from '.... |
fields/types/email/EmailColumn.js | everisARQ/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var EmailColumn = React.createClass({
displayName: 'EmailColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... |
client/app/partials/card/index.js | nebulae-io/coteries | import React, { Component } from 'react';
import styles from './style.scss';
import Flex from 'components/flex';
function mapStateToProps(state) {
return {};
}
function mapDispatchToProps(dispatch) {
return {
todoActions: bindActionCreators(todoActionCreators, dispatch),
counterActions: bindActionCreators... |
src/components/get-bounds.js | LaserWeb/LaserWeb4 | // Copyright 2016 Todd Fleming
//
// This program 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, either version 3 of the License, or
// (at your option) any later version.
//
// This program is dist... |
docs/src/pages/demos/tables/CustomizedTable.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Table, { TableBody, TableCell, TableHead, TableRow } from 'material-ui/Table';
import Paper from 'material-ui/Paper';
const CustomTableCell = withStyles(theme => ({
head: {
backgroundColor: them... |
js/auth/EditProfile.js | BarberHour/barber-hour | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
StatusBar,
TextInput,
Platform
} from 'react-native';
import { connect } from 'react-redux';
import t from 'tcomb-form-native';
const Form = t.form.Form;
import Button from '../common/Button';
import Toolbar from '../common/Toolbar... |
app/user/profile/AvailableSkillListItem.js | sagnikm95/internship-portal | import React from 'react';
import { Label, Icon } from 'semantic-ui-react';
import PropTypes from 'prop-types';
export default class AvailableSkillListItem extends React.Component {
constructor() {
super();
this.handleClick = (event, data) => {
console.log(data.children[1]);
this.props.addSkill(d... |
src/svg-icons/notification/sync-disabled.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncDisabled = (props) => (
<SvgIcon {...props}>
<path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20... |
app/components/AuthModal/index.js | GuiaLa/guiala-web-app | /**
*
* AuthModal
*
*/
import React, { Component } from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import {Tabs, Tab} from 'material-ui/Tabs'
import TextField from 'material-ui/TextField';
import * as Colors from 'material-ui/styles/colors';
import styles from... |
src/components/Alert.js | Kryten0807/cacofonix | // npm dependencies
//
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
/**
* The Alert component
* @param {String} style The style of the alert
* @param {Boolean} dismissible If true, then the alert is
* ... |
src/svg-icons/action/view-agenda.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewAgenda = (props) => (
<SvgIcon {...props}>
<path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.5... |
src/svg-icons/editor/pie-chart-outlined.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChartOutlined = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm1 2.07c3.61.45 6.48 3.33 6.93 6.93H13V4.07zM4 12c0-4.06 3.07-7.44 7-7.93v15.87c-... |
front_end/src/components/App/Navigation/BreadCrumbs.js | ncloudioj/splice | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class BreadCrumbs extends Component {
getName(data, isTile){
let name;
if(isTile){
if (data.title) {
name = data.title;
}
else {
name = '(No Title)';
}
}
else {
... |
app/App.js | amyrebecca/react-animation | import React from 'react';
import styles from './App.css';
import SVGContainer from './components/SVGContainer'
import Rectangle from './components/Rectangle'
import Circle from './components/Circle'
import Line from './components/Line'
import SVGImage from './components/SVGImage'
var myImage = require('./asuka.png')
... |
booklet.ios.js | cccstc/cccstc-app | /**
* @flow
*/
import React, { Component } from 'react';
import {
TabBarIOS,
NavigatorIOS,
StyleSheet,
} from "react-native";
import { BookletListView } from "./components/BookletListView";
const tabIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAABqlBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAA... |
packages/material-ui-icons/src/Inbox.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Inbox = props =>
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z" />
</Svg... |
src/components/Footer/Footer.js | Alastor4918/Heckmeck | import React, { Component } from 'react';
export class Footer extends Component {
render(){
const styles = require('./Footer.scss');
return (
<div className={styles.footer}>
Nice footer ! :)
</div>
)
}
} |
src/Affix.js | andrew-d/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import AffixMixin from './AffixMixin';
import domUtils from './utils/domUtils';
const Affix = React.createClass({
statics: {
domUtils
},
mixins: [AffixMixin],
render() {
let holderStyle = {top: this.state.affixPositionTop};
return (... |
src/components/Button.js | snsavage/timer-react | import React from 'react';
import PropTypes from 'prop-types';
import { Button as UIButton } from 'semantic-ui-react';
const Button = ({label, float, size, color, icon, onClick, ...args}) => {
function onButtonClick(ev) {
ev.preventDefault();
onClick({...args});
};
return (
<UIButton
classNam... |
src/index.js | tommydx/front2 | // SET UP THE APP ENTRY POINT BELOW
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import './assets/css/style.css';
import PortalPage from './components/PortalPage';
import SignUp from './components/SignUp';
import LogIn from './components/... |
Realization/frontend/czechidm-core/src/content/notification/template/TemplateTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import uuid from 'uuid';
//
import { SecurityManager } from '../../../redux';
import * as Basic from '../../../components/basic';
import * as Advanced from '../../../components/advanced';
import * as Utils from '../../... |
containers/next/index.js | amazingBastard/gatsby-utool.io | import React from 'react';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
import { prune, include as includes } from 'underscore.string';
import find from 'lodash/find';
import intersect from 'just-intersect';
import Summary from 'components/summary';
import { getTags } from 'utils';
... |
src/application/components/JsonDoc/JsonDoc.js | movio/apidoc-ui | // @flow
import React, { Component } from 'react';
import Documentation from 'application/components/JsonDoc/Documentation';
import ModelDescription from 'application/components/JsonDoc/ModelDescription';
import Element from 'application/components/JsonDoc/Element';
import * as utils from 'utils';
import type { Servi... |
src/components/Header/Header.js | tomzaoral/tomzaoral.github.io | import React, { Component } from 'react';
import { Link } from 'react-router';
import './Header.less';
import photo from './photo.jpg';
import Fa from '../_helpers/Fa/Fa';
export default class Header extends Component {
constructor(props) {
super(props)
window.addEventListener('scroll', this.onScroll, fa... |
ajax/libs/react-instantsearch/4.5.0/Connectors.js | seogi1004/cdnjs | /*! ReactInstantSearch 4.5.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) :
... |
imports/ui/components/JournalNameList/JournalNameList.js | jamiebones/Journal_Publication | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, FormGroup, ControlLabel, Button , Alert , Label } from 'react-bootstrap';
import { Capitalize , capAllFirstLetter } from '../../../modules/utilities';
import { Meteor } from 'meteor/meteor';
import { withTracker } from 'meteor/react-mete... |
src/client.js | jfairbank/example-react-contact-manager | import React from 'react';
import ReactDOM from 'react-dom';
import { Router } from 'react-router';
import createHistory from 'history/lib/createBrowserHistory';
import provision from './util/provision';
import routes from './routes';
const history = createHistory();
ReactDOM.render(
provision(
<Router history=... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js | mailtoharshit/Reactor | /**
* Copyright (c) 2015-present, 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.
*/
import Rea... |
src/components/icons/Menu.js | dtjv/dtjv.github.io | import React from 'react'
export const MenuIcon = ({ className, ...props }) => (
<svg
{...props}
className={`${className}`}
role="img"
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<title>Menu</title>
<path
strokeLinecap="round"... |
app/components/RowMain/index.js | ko-ok/bikes | import React from 'react';
import { Button, Jumbotron, Row, Col, Image } from 'react-bootstrap';
import Background from 'components/Page/bikingbackground_RS.jpg';
import Tree1 from 'components/Page/bikingbackground_T1.png';
import Tree2 from 'components/Page/bikingbackground_T2.png';
import Tree3 from 'components/Page/... |
src/svg-icons/image/leak-remove.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakRemove = (props) => (
<SvgIcon {...props}>
<path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24... |
src/shared/components/Products/DetailsPage.js | Grace951/ReactAU | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import connectDataFetchers from '../../lib/connectDataFetchers.jsx';
import { CommonDetails } from './Details/CommonDetails';
import { loadDetails } from '../../actions/detailsActions';
const DetailsPage = (pr... |
src/components/switches/Checkbox.js | edgemesh/emui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Radium from 'radium';
import BaseSwitch from './BaseSwitch';
import TouchRipple from '../ripple/TouchRipple';
import { Icon } from '../../';
import { colors } from '../../utils/colors';
@Radium
@BaseSwitch
export default class Check... |
node_modules/react-router-dom/node_modules/react-router/es/Route.js | NickingMeSpace/questionnaire | 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 _classCallCheck(instance, Constructor) { if (!(insta... |
src/components/DateTimePicker.js | nitrog7/nl-fluid | import React from 'react';
import Component from './Component';
import moment from 'moment';
import Icon from './Icon';
import ReactCSSTransitionReplace from 'react-css-transition-replace';
export default class DateTimePicker extends Component {
static get propTypes() {
return {
date: React.PropTypes.objec... |
ui/src/common/RangeField.js | cloudsonic/sonic-server | import React from 'react'
import PropTypes from 'prop-types'
export const formatRange = (record, source) => {
const nameCapitalized = source.charAt(0).toUpperCase() + source.slice(1)
const min = record[`min${nameCapitalized}`]
const max = record[`max${nameCapitalized}`]
let range = []
if (min) {
range.pu... |
playground/playground.js | gabrielbull/react-tether2 | import React, { Component } from 'react';
import Example1 from '../examples/example1';
import Example2 from '../examples/example2';
import Example3 from '../examples/example3';
import Example4 from '../examples/example4';
import DynamicallySizedSource from '../examples/dynamically-sized-source';
const style = {
zInd... |
src/svg-icons/device/data-usage.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDataUsage = (props) => (
<SvgIcon {...props}>
<path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53... |
src/components/AppRouter.js | atomic-coders/react-boilerplate | import React from 'react';
import {Router, Route, browserHistory} from 'react-router';
import {Provider} from 'react-redux';
import App from './App';
import TestPage from './TestPage';
export default class AppRouter extends React.Component {
constructor() {
super();
this.routes = (<Route path="/" c... |
admin/client/components/googleanalyticsreporting/GoogleAnalyticsReportor.js | Redmart/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import { Spinner } from 'elemental';
var GoogleAnalyticsReportor = React.createClass({
displayName: 'GoogleAnalyticsReportor',
componentDidMount () {
var that = this;
this.loadItems((zoneIds) => {
const contentId = thi... |
src/svg-icons/image/filter-vintage.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterVintage = (props) => (
<SvgIcon {...props}>
<path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9... |
src/components/enter-password/PasswordDialog.js | mailvelope/mailvelope | /**
* Copyright (C) 2019 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import PropTypes from 'prop-types';
import * as l10n from '../../lib/l10n';
import EventHandler from '../../lib/EventHandler';
import SecurityBG from '../util/SecurityBG';
import S... |
src/lib/teams/toggle-admin-account-link.js | getinsomnia/insomnia.rest | import React from 'react';
import PropTypes from 'prop-types';
import * as session from '../session';
import Link from '../../components/link';
class ToggleAdminAccountLink extends React.Component {
state = {
loading: false
};
async _handleClick(e) {
e.preventDefault();
const {teamId, accountId, on... |
components/WindowPointer.js | dawnlabs/carbon | import React from 'react'
export default ({ fromLeft, fromRight, color = '#fff' }) => (
<div>
<div className="window-pointer" />
<style jsx>
{`
.window-pointer {
width: 0px;
height: 0px;
border-style: solid;
border-width: 0 5px 6px 5px;
border-c... |
src/svg-icons/image/filter.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter = (props) => (
<SvgIcon {...props}>
<path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1... |
test/test_helper.js | JonnyPickard/blog-app-react | import React from 'react';
import jsdom from 'jsdom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import chaiEnzyme from 'chai-enzyme';
import chai from 'chai';
import { mount } from 'enzyme';
import { MemoryRouter as Router } from 'react-router-dom';
import reducers from '../src/reduc... |
src/components/Interactive/FilterBox/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import typy from 'typy'
import styles from './style.module.css'
const FilterBox = (props) => {
const hNum = typy(props.htag).isNumber ? props.htag : parseInt(props.htag.replace('h', ''), 10)
const headerTextEl = React.createElement((hNum > 0 && hNum <= ... |
examples/decorators/container/index.js | stackscz/re-app | import React from 'react';
import App from './App';
import Example from '../../Example';
const codeFiles = [
{
name: './App.js',
content: require('!!raw!./App.js'),
description: 'App component rendering Dashboard container',
},
{
name: './Dashboard.js',
content: require('!!raw!./Dashboard.js'),
descrip... |
src/index.js | adeira/connector-frontend | import {Provider} from 'react-redux';
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import injectTapEventPlugin from 'react-tap-event-plugin';
import router from './routes/index';
import {ReduxStore} from './services/ReduxStore';
injectTapEventPlugin(); // needed for onTouchTap (ht... |
client/StepGroup/StepGroup.js | GalkinDmitriy/evalotta | import React from 'react';
//import PropTypes from 'prop-types';
import './StepGroup.styl';
const COLORS = [];
function StepGroup(props) {
return (
<div className="step-group">
{ props.items.map( (item, index) => {
return (
<div key={ index} className="step-group__item">{ item }</div>
)}
)}
<... |
public/js/components/search/SearchItem.react.js | rajikaimal/Coupley | import React from 'react';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/lib/avatar';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Paper from 'material-ui/lib/paper';
import GridList from 'material-ui/lib/grid-list/grid-list';
import GridTile from 'material-ui/lib/... |
client/layouts/Home/DashboardLayout.js | briefguo/learn-js | import React from 'react'
import Styles from './DashboardLayout.css'
export default class DashboardLayout extends React.Component {
static propTypes = {
name: React.PropTypes.string,
children: React.PropTypes.array,
}
constructor(props) {
super(props)
}
render() {
return (
<div classN... |
lens-ui/app/components/QueryResultsComponent.js | sriksun/incubator-lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you m... |
app/react-icons/fa/gg.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaGg extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m14.3 18.1l7.4 7.5-7.4 7.4-13.1-13 13.1-13 3.2 3.2-1.8 1.9-1.4-1.4-9.3 9.3 9.3 9.... |
src/svg-icons/navigation/fullscreen.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFullscreen = (props) => (
<SvgIcon {...props}>
<path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/>
</SvgIcon>
);
NavigationFullscreen = pure(NavigationFullscre... |
src/App.js | Phizzard/Reactbase-cms | import React, { Component } from 'react';
import { BrowserRouter, Redirect , Route, Switch } from 'react-router-dom';
import * as firebase from 'firebase';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Navbar from './components/Navbar';
import Sidebar from './components/Sidebar';
import I... |
examples/universal/client/index.js | pombredanne/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
const rootElement = do... |
fields/types/date/DateColumn.js | brianjd/keystone | import React from 'react';
import moment from 'moment';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var DateColumn = React.createClass({
displayName: 'DateColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obj... |
examples/js/selection/default-select-table.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
app/index.js | jasonf7/gordon-restaurant | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { AppContainer } from 'react-hot-loader';
import configureStore from './store/configureStore';
import Root from './cont... |
src/components/Sections/Team.js | availabs/weather-enterprise | import React from 'react'
export const Team = () => {
var people = [
{
name: "Everett Joseph, PhD",
about: "Dr. Joseph is the Director of the The Center of Excellence in Weather Enterprise, as well as the Atmospheric Sciences Research Center at UAlbany, and is an internationally recognized leader in the field... |
client/guardbook.js | rkazakov/guardbook | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import routes from './routes';
import store from './store';
const router = (
<Provider store={store}>
<Router history={browserHistory} routes={routes} />
... |
node_modules/react-native/local-cli/generator/templates/index.android.js | aspanu/threeSeaShells | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class <%= name %> extends Component {
render() {
return (
<View style={styles.container}>
<T... |
src/components/Root.js | lwilli/WeatherCompare | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import routes from '../routes';
import { Router } from 'react-router';
export default class Root extends Component {
render() {
const { store, history } = this.props;
return (
<Provider... |
docs/src/examples/collections/Message/States/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
const MessageStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Hidden'
description='A... |
src/shared/forms/textInput.js | bschneier/credit-cards-front-end | import React from 'react';
import PropTypes from 'prop-types';
import Message from '../message';
import { FormGroup, Col, FormControl, ControlLabel } from 'react-bootstrap';
const TextInput = ({controlId, field, labelColProps, controlType = "text",
inputColProps, labelValue, onChange}) => {
retur... |
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js | hzy87email/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import CreateGroupActionCreators from 'actions/CreateGro... |
stories/Calendar.js | manishksmd/react-scheduler-smartdata | import { storiesOf, action } from '@kadira/storybook';
import moment from 'moment';
import React from 'react';
import HTML5Backend from 'react-dnd-html5-backend';
import { DragDropContext } from 'react-dnd';
import Calendar from '../src';
import momentLocalizer from '../src/localizers/moment.js'
import '../src/less/s... |
js/BaseComponents/Container.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
index.android.js | MariusGarbea/Bucurestiul-Tinerilor | import React from 'react';
import { AppRegistry, Share, TouchableOpacity, StyleSheet } from 'react-native';
import { TabNavigator, StackNavigator } from 'react-navigation';
import Icon from 'react-native-vector-icons/Entypo';
import { GoogleAnalyticsTracker, GoogleAnalyticsSettings } from 'react-native-google-analytics... |
src/index.js | uedup/imgsGalleryByReact | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App name="nav"/>, document.getElementById('app'));
|
src/components/Leaderboard/LeaderboardList.js | elstgav/step-up | import React from 'react'
import { LeaderboardListElement } from './LeaderboardListElement'
const LeaderboardList = ({ leaders }) =>
<table>
<tbody>
{leaders.map((leader, index) =>
<LeaderboardListElement key={index + 1} rank={index + 1} leader={leader} />)}
</tbody>
</table>
LeaderboardList... |
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/containers/NotFoundPage/index.js | strapi/strapi-examples | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor i... |
docs/src/app/components/pages/components/TimePicker/Page.js | manchesergit/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import timePickerReadmeText from './README';
import TimePickerExampleSimple from... |
app/routes.js | seentaoInternetOrganization/reactDemo | import React from 'react';
import {Route} from 'react-router';
import App from './components/App';
import Home from './components/Home';
import Oem from './components/Oem';
import DevQuanlity from './components/DevQuanlity';
import Mro from './components/Mro';
import Bank from './components/Bank';
import OrderResult fr... |
src/_examples/routes/simple/index.js | beestripes/react-highcharts-wrapper |
import React from 'react';
import {HighchartsProvider} from './../../../ReactHighchartsWrapper';
import BarChart from './barChart';
const Simple = ({title}) => {
return (
<HighchartsProvider>
<div>
<h2>{title}</h2>
<BarChart />
</div>
</HighchartsProvider>
)
};
export defaul... |
packages/react/src/components/organisms/AccordionWrapper/index.js | massgov/mayflower | /**
* AccordionWrapper module.
* @module @massds/mayflower-react/AccordionWrapper
* @requires module:@massds/mayflower-assets/scss/03-organisms/accordion-wrapper
*/
import React from 'react';
import PropTypes from 'prop-types';
const AccordionWrapper = (props) => {
const children = props.children;
return(
... |
docs/src/examples/modules/Popup/Variations/PopupExampleInverted.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button, Icon, Popup } from 'semantic-ui-react'
const PopupExampleInverted = () => (
<>
<Popup
trigger={<Button icon='add' />}
content='Hello. This is an inverted popup'
inverted
/>
<Popup
trigger={<Icon circular name='heart' />}
content='He... |
app/src/components/About.js | zhangchenyue/r-uniquers | import React, { Component } from 'react';
import TopNav from './TopNav'
class About extends Component {
constructor() {
super();
this.text = 'About page!';
}
render() {
return (
<div>
<TopNav/>
{this.text}
</div>
);
... |
react/features/room-lock/components/PasswordRequiredPrompt.native.js | parisjulien/arkadin-jitsimeet | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Dialog } from '../../base/dialog';
import { setPassword } from '../../base/conference';
/**
* Implements a React Component which prompts the user when a password is
* required to join a conference.
*/
class PasswordRequiredPr... |
frontend/src/Artist/Index/Banners/Options/ArtistIndexBannerOptionsModalContent.js | lidarr/Lidarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Button ... |
src/browser/app/Container.js | TheoMer/Gyms-Of-The-World | // @flow
import React from 'react';
import { Box } from '../../common/components';
type ContainerProps = {
children?: any,
};
const Container = ({ children }: ContainerProps) => (
<Box
margin="auto"
paddingHorizontal={1}
style={theme => ({
maxWidth: theme.container.maxWidths.big,
minHeight... |
src/components/admin/ToggleEvent.js | habibialkaff/event-attendance | import React from 'react';
import Toggle from 'material-ui/Toggle';
export const ToggleEvent = (props) => {
function toggleEvent() {
props.toggleEvent(props.eventKey);
}
return (
<Toggle toggled={props.toggled} onToggle={toggleEvent} />
);
};
ToggleEvent.propTypes = {
toggleEvent: React.PropTypes.f... |
components/Transition/StoryListItemTransition.js | cobbweb/golittle.red | /**
* This file is included by core/Transition.js
*/
import React from 'react';
import ReactDOM from 'react-dom';
import ReactTransitionGroup from 'react-addons-transition-group';
import once from 'lodash/function/once';
import StoryListItemTransitionChild from './StoryListItemTransitionChild';
import './StoryListI... |
src/app/component/about.js | AlesMenzel/webpack-2 | import React, { Component } from 'react';
import { connect } from 'react-redux'
import { Link } from 'react-router'
class About extends Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
return (
<div>
<h1>About view</h1>
<p>Just a sample. Read the project README :-) YUP... |
examples/preact/src/components/Placeholder/Placeholder.js | sapegin/react-styleguidist | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './Placeholder.css';
/**
* Image placeholders.
*/
export default class Placeholder extends Component {
static propTypes = {
type: PropTypes.oneOf([
'animal',
'bacon',
'beard',
'bear',
'cat',
'food',
'city',
... |
ui/src/app/components/topBar.js | ridakk/node-log-server | import React from 'react';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import Divider from 'material-ui/Divider';... |
app/containers/LanguageProvider/index.js | KraigWalker/frontendfriday | /*
*
* 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... |
docs/app/Examples/modules/Progress/States/Disabled.js | jamiehill/stardust | import React from 'react'
import { Progress } from 'stardust'
const ProgressDisabledExample = () => (
<Progress percent={60} disabled>
Disabled
</Progress>
)
export default ProgressDisabledExample
|
www/ui/home.js | ForbesLindesay/cabbie | import React from 'react';
import Logo from './logo';
import Header from './styling/header';
import Heading from './styling/heading';
import ChromedriverExample from './examples/chromedriver';
function Home() {
return (
<div>
<Header>
<Logo width="10vw" height="10vw" />
<Heading>Cabbie</Hea... |
src/svg-icons/action/turned-in-not.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTurnedInNot = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/>
</SvgIcon>
);
ActionTurnedInNot = pure(ActionTurnedInNo... |
client/src/client-only-routes/ShowCertification.js | otavioarc/freeCodeCamp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { Grid, Row, Col, Image } from '@freecodecamp/react-bootstrap';
import {
showCertSelector,
showCertFetch... |
src/scripts/components/colour/Sidebar.js | arkon/ColourNTP | import React from 'react';
import classNames from 'classnames';
import svgClose from '../../../assets/img/close.svg';
const Sidebar = ({ open, onClose, children }) => {
const sidebarClass = classNames('sidebar', {
'sidebar--open': open
});
return (
<div className={sidebarClass}>
{ open &&
... |
src/js/components/ui/QuestionMatch/QuestionMatch.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './QuestionMatch.scss';
import RoundedImage from "../RoundedImage/RoundedImage";
import ProposalIcon from "../ProposalIcon/ProposalIcon";
export default class QuestionMatch extends Component {
static propTypes = {
... |
src/routes/investor/Investor.js | medevelopment/updatemeadmin |
import React from 'react';
import axios from 'axios';
import PropTypes from 'prop-types';
import s from './Investor.css';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import InvestorDetails from './InvestorDetails';
import InvestorTabs from '../../components/InvestorTabs/InvestorTabs';
import Draws... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Shared/Redirecting.js | Minoli/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... |
react/exercises/part_02/src/App.js | jsperts/workshop_unterlagen | import React from 'react';
import './App.css';
import Header from './Header';
import NavBar from './NavBar';
import ContactForm from './ContactForm';
import ContactsList from './ContactsList';
function App({ contacts }) {
return (
<div className="container">
<Header />
<main>
<NavBar />
... |
js/components/TodoTextInput.js | orionwei/mygit | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.