path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Header/Header.js
Ozaroni/modestLifer
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present 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 withStyles from 'isom...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
dyzhu12/react-router
import React from 'react'; class Assignment extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignment: COURSES[params.courseId].assignments[params.assignmentId] //}); //} render () { //var { title, body } = this.props.assignment; var { courseId, assignmentId } ...
app/client/src/views/Cards.js
lealhugui/srv-engine
import React from 'react'; import { Link } from 'react-router-dom'; import './Cards.css'; export const TableCard = (props) => { console.log(props, 'props'); let listWrapperStyles = { marginTop: '5px' } let flds = null; if(typeof(props.table) !== 'undefined'){ flds = props.table.prop...
src/svg-icons/hardware/toys.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareToys = (props) => ( <SvgIcon {...props}> <path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2...
src/client/react/user/views/Contacts/ContactsEvent.js
bwyap/ptc-amazing-g-race
import React from 'react'; import ContactFromSetting from './ContactFromSetting'; class ContactsEvent extends React.Component { render() { return ( <div> <h5>Event contacts</h5> <table className='pt-table pt-striped' style={{marginBottom:'1rem',width:'100%'}}> <tbody> <tr> <td>Event Co...
src/mui/input/CheckboxGroupInput.js
azureReact/AzureReact
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import Checkbox from 'material-ui/Checkbox'; import muiThemeable from 'material-ui/styles/muiThemeable'; import compose from 'recompose/compose'; import FieldTitle from '../../util/FieldTitle'; import translate ...
components/Form/IconInput/IconInput.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import mergeObjectStrings from '../../../utils/mergeObjectStrings/mergeObjectStrings'; import Input from '../Input/Input'; import Icon from '../../Icon/Icon'; import css from './IconInput.css'; export default cl...
fields/types/location/LocationField.js
Tangcuyu/keystone
import _ from 'lodash'; import React from 'react'; import Field from '../Field'; import { Button, Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'LocationField', getIn...
src/components/Header/Header.js
tablackmore/viaplay-fullstack-es6
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; class Header extends Component { render() { return ( <div className="block page-header"> <div className="scaffold"> <div className="logo"> <a href="/" data-h...
src/components/GoogleMap.js
JoshuaCoquelle/redux-weather-app
import React, { Component } from 'react'; class GoogleMap extends Component { componentDidMount() { new google.maps.Map(this.refs.map, { zoom: 12, center: { lat: this.props.lat, lng: this.props.lon, } }); } render() { ...
docs/src/app/components/pages/components/Menu/ExampleSimple.js
frnk94/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/components/Tabs/demo/scrollTab/index.js
lebra/lebra-components
/* tslint:disable:no-console */ import React from 'react'; import { render } from 'react-dom'; import ReactDOM from 'react-dom'; import {Tabs, DefaultTabBar } from '../../index'; import './index.less'; const tabData = [ { title: 'title 1' }, { title: 'title 2' }, { title: 'title 3' }, { title: 'title 4' }, {...
src/react.js
xiaoking/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
src/svg-icons/av/pause-circle-outline.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2...
src/svg-icons/action/touch-app.js
kittyjumbalaya/material-components-web
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....
docs/components/Docs/Nav/index.js
enjoylife/storybook
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import './style.css'; const Nav = ({ sections, selectedSectionId, selectedItemId }) => <div id="nav"> {sections.map(section => <div key={section.id}> <h3>{section.heading}</h3> <ul> ...
app/components/Tabs/Timeline/index2.js
prudhvisays/season
import React from 'react'; import './timeline.css'; export default class Timeline extends React.Component { //eslint-disable-line render() { return ( <section className="timeline"> <ul> <li> <div> <time>12:30 PM</time> Started </div> ...
src/components/tooltip/StickyTooltip.js
edgemesh/emui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Radium from 'radium'; import BaseTooltip from './BaseTooltip'; import RenderInBody from '../render-in-body/RenderInBody'; @BaseTooltip @Radium export default class StickyTooltip extends Component { static options = { type: 'stickyT...
node_modules/semantic-ui-react/src/collections/Table/TableFooter.js
jessicaappelbaum/cljs-update
import React from 'react' import { META } from '../../lib' import TableHeader from './TableHeader' /** * A table can have a footer. */ function TableFooter(props) { return <TableHeader {...props} /> } TableFooter._meta = { name: 'TableFooter', type: META.TYPES.COLLECTION, parent: 'Table', } TableFooter.de...
src/routes/Recover/components/EmailForm/EmailForm.js
Ryana513/ccproject
import React from 'react' import PropTypes from 'prop-types' import { Field, reduxForm } from 'redux-form' import { TextField } from 'redux-form-material-ui' import RaisedButton from 'material-ui/RaisedButton' import { required, email } from 'utils/forms' import { RECOVER_EMAIL_FORM_NAME } from 'constants' import class...
src/docs/design/WritingStyle.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import DocsArticle from '../../components/DocsArticle'; export default class WritingStyle extends Component { render () { return ( <DocsArticle title="Writing Style"> <section> ...
React Native/Demos/address_book/Views/manager/deleteUser.js
AngryLi/note-iOS
/** * Created by Liyazhou on 16/8/28. */ import React from 'react'; import { View, Text, ScrollView, StyleSheet, TouchableOpacity, TextInput, AlertIOS, AsyncStorage, } from 'react-native'; import Util from './../util'; import Service from './../service'; export default class DeleteUser extends React.Component ...
app/javascript/mastodon/features/ui/components/focal_point_modal.js
gol-cha/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { changeUploadCompose, uploadThumbnail, onCha...
src/app/routes.js
benigeri/soapee-ui
import React from 'react'; import {Route, DefaultRoute} from 'react-router'; import Login from 'views/login'; import Signup from 'views/signup'; import Forgot from 'views/forgot'; import Account from 'views/account'; import Application from 'views/application'; import Calculator from 'views/calculator'; import Logout...
examples/index.js
alexmnv/react-navtree
import React from 'react' import PropTypes from 'prop-types' import Nav, {navHorizontal} from 'react-navtree' import renderExample from './utils/renderExample' import examples from './examples.json' class Index extends React.PureComponent { render () { function openExamplePage (id) { document.location = `....
src/App.js
ghaiklor/flood-it
import React from 'react'; import {StyleSheet, View, Animated} from 'react-native'; import Grid from './components/Grid'; import NewGameButton from './components/NewGame'; import Palette from './components/Palette'; import Stats from './components/Stats'; const styles = StyleSheet.create({ container: { flex: 1, ...
components/annales/AnnalesSearch.js
BDE-ESIEE/mobile
wimport React, { Component } from 'react'; import { Text, View, TouchableOpacity, TextInput, ListView, KeyboardAvoidingView, ActivityIndicator } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import Icon from 'react-native-vector-icons/Ionicons'; import styles from '../...
blueocean-material-icons/src/js/components/svg-icons/image/filter-6.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilter6 = (props) => ( <SvgIcon {...props}> <path d="M3 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.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-2c0-1.11-.9-2-2-2h-2V7h4V5h-4c-1.1...
stilr/button.js
martinandert/css-in-js
import React from 'react'; import StyleSheet from 'stilr'; const styles = StyleSheet.create({ container: { textAlign: 'center' }, button: { backgroundColor: '#ff0000', width: '320px', padding: '20px', borderRadius: '5px', border: 'none', outline: 'none', ':hover': { color: '...
src/WindowContainer.js
Everspace/FFBEAwakening
import React from 'react' import { ThemeProvider, injectGlobal } from 'styled-components' import { normalize } from 'polished' import { createStore, combineReducers } from 'redux' import { Provider, connect } from 'react-redux' import { addValueObjects } from 'lib/object' import * as Item from 'ffbe/item' ...
front2/src/views/about.js
mastak/prioritizator
import React from 'react'; import {Link} from 'react-router'; export default class AboutView extends React.Component { render () { return ( <article> <h1>Hello </h1> <p>It is web app for prioritization <Link to='/protected'>protected content.</...
src/components/header.js
dbertella/my-family
import { Link } from 'gatsby' import styled from 'styled-components' import PropTypes from 'prop-types' import React from 'react' import { media } from '../utils' const Placeholder = styled.div` padding-top: calc(2.25rem + 1.15rem * 2); ` const Nav = styled.div` position: fixed; top: 0; left: 0; right: 0; ...
src/svg-icons/content/content-copy.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentCopy = (props) => ( <SvgIcon {...props}> <path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/> </SvgIcon> );...
docs/src/PageHeader.js
lzcmaro/react-ratchet
import React from 'react'; const PageHeader = React.createClass({ render() { return ( <div className="docs-sub-header"> <header className="docs-masthead clearfix"> <div className="container"> <div className="column"> <h1 className="docs-titl...
server/node_modules/react-scripts/template/src/App.js
Atanasov86/Car-System
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
docs/app/components/editor/index.js
VACO-GitHub/vaco-components-library
import React from 'react'; import style from './style'; import CodeMirror from 'codemirror'; import 'codemirror/mode/javascript/javascript'; class Editor extends React.Component { static propTypes = { className: React.PropTypes.string, codeText: React.PropTypes.string, lineNumbers: React.PropTypes.bool, ...
app/javascript/flavours/glitch/features/following/index.js
Kirishima21/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from 'flavours/glitch/components/loading_indicator'; import { lookupAccount, fetchAccount, fe...
app/components/Loading/index.js
davidnum/chat
import React from 'react'; import styled from 'styled-components'; import CircularProgress from 'material-ui/CircularProgress'; const Wrapper = styled.div` height: 100%; display: flex; justify-content: center; align-items: center; `; const Loading = () => ( <Wrapper> <CircularProgress /> </Wrapper>...
front_end/src/config/adminMenu/forms/model.form.js
timramsier/asset-manager
/* eslint react/jsx-filename-extension: 0 */ import React from 'react'; // eslint-disable-line no-unused-vars import api from '../../../js/api'; import submit from '../submit/submit'; export default { header: { title: 'Model', description: 'Add or update a new model by filling out the following form', }, ...
src/svg-icons/action/help.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHelp = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83...
packages/wix-style-react/src/MessageBox/docs/AnnouncementExamples/PrimaryButtonNode.js
wix/wix-style-react
/* eslint-disable react/prop-types */ import React from 'react'; import ChevronDown from 'wix-ui-icons-common/ChevronDown'; import { MessageBoxMarketerialLayout, DropdownBase, Button, } from 'wix-style-react'; export default () => ( <MessageBoxMarketerialLayout title="Looking good! Your site is on Google"...
src/svg-icons/action/help.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHelp = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83...
app/jsx/blueprint_courses/components/CourseFilter.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - 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...
docs/src/BreadcrumbsPage.js
jsbranco/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import store from './store'; import Samples from './Samples'; import breadcrumbs from '../../examples/Breadcrumbs'; const component = 'Bread...
docs/src/app/components/pages/components/List/Page.js
verdan/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 listReadmeText from './README'; import listExampleSimpleCode from '!raw!....
2016-04-declarative-charts/components/IframeExample.js
rosko/slides
import React, { Component } from 'react'; import { findDOMNode } from 'react-dom'; import { Fit } from 'spectacle'; class IframeExample extends Component { constructor() { super(); this.state = { width: '100%', height: '100%' }; this.setSizes = (width, heigh...
packages/icons/src/md/image/WBSunny.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdWBSunny(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M13.51 10.59L9.93 7 7.1 9.83l3.59 3.59 2.82-2.83zM8 21.9H2v4h6v-4zM26 2h-4v5.9h4V2zm14.9 7.83L38.07 7l-3.59 3.59 2.83 2.83 3.59-3.59zm-6.41 27.38l3.5...
common/routes.js
j-klassen/react-redux-express-webpack-example
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import Main from './components/Main'; export default ( <Route path="/" component={App}> <IndexRoute component={Main} /> </Route> );
client/containers/App.js
horiaradu/twitter-challenge
import React from 'react'; import NavigationContainer from '../containers/NavigationContainer'; class App extends React.Component { render() { return <div className="container pt-70 pb-50"> <NavigationContainer /> {this.props.children} </div>; } } export default App;
cheesecakes/admin/admin/src/containers/App/index.js
strapi/strapi-examples
/** * * App.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot ...
client/index.js
AndrewGibson27/react-fetch-boilerplate
import React from 'react'; import { render } from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import config from './config'; import App from '../shared/components/App'; render( <BrowserRouter> <App /> </BrowserRouter>, document.getElementById('root') ); if (config.isDev) { module.hot.a...
src/containers/UserList/AnimeList.js
anitrack/anitrack-web
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Card, Media } from 'reactstrap'; import * as css from './css'; import { resetAnimeList, getAnimeStatus } from 'actions/anime'; import StatusBadge from 'components/StatusBadge'; import Spinner from 'components/Spinner'; class A...
app/main.js
nchathu2014/note-app-react
import React from 'react'; import ReactDOM from 'react-dom'; import Note from './components/Note'; var noteList=[{"id":100,"text":"Nuwan with ReactJS"}] ReactDOM.render( <Note noteList={noteList}/>, document.getElementById('container') );
app/components/AddCharacter.js
xiamu14/newdenfaces
import React from 'react'; import AddCharacterStore from '../stores/AddCharacterStore'; import AddCharacterActions from '../actions/AddCharacterActions'; class AddCharacter extends React.Component { constructor(props) { super(props); this.state = AddCharacterStore.getState(); this.onChange ...
src/common/components/App.js
CangPham/ProjectReact
import React from 'react'; export default ({children}) => { return ( <div id="container"> {children} </div> ); }
src/js/components/icons/base/PlatformCentos.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
styleguide/sections/Buttons.js
iest/loggins
import React, { Component } from 'react'; import ScreenReadable from 'components/ScreenReadable/ScreenReadable'; import BtnContainer from 'components/BtnContainer/BtnContainer'; import Section from '../components/Section'; import * as m from 'globals/modifiers.css'; import Icon from 'components/Icon/Icon'; import Btn ...
src/pages/index.js
MRmac1/blog
/** * 首页 */ import React from 'react' import Link from 'gatsby-link' const IndexPage = () => ( <div> <h1>Hi people</h1> <p>Welcome to your new Gatsby site.</p> <p>Now go build something great.</p> <Link to="/page-2/">Go to page 2</Link> </div> ) export default IndexPage
src/components/Main.js
Aikk/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; let imageDatas = require('json!../data/images.json'); imageDatas = (function genImageURL(imageDatasArr) { for (let i = 0, n = imageDatasArr.length; i < n; i++) { let singleImageData ...
src/App.js
sdshaoda/gallery-by-react
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import logo from './logo.svg'; import './App.css'; import ControllerUnit from './ControllerUnit'; import ImgFigure from './ImgFigure'; // 获取图片相关的数据 let imageDatas = require('../data/imageDatas.json'); // 将图片名信息转换成图片URL路径信息 imageDatas.map((i...
web/Quote/index.js
enteocode/react-revelations
/* * This file is part of the Enteocode/ReactRevelations package. * * (c) Székely Ádám <stereotribe@hotmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import React from 'react'; import './style.css'; /** * Quote (templ...
src/js/components/NewPrinter.js
justgook/PrintersWorkshopUI
import React from 'react'; import Layer from 'grommet/components/Layer'; import Header from 'grommet/components/Header'; import Footer from 'grommet/components/Footer'; import Button from 'grommet/components/Button'; import Form from 'grommet/components/Form'; import FormFields from 'grommet/components/FormFields'; imp...
app/containers/App/index.js
minhnhat09/scalable-react
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/js/components/GuestBanner.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../i18n/Translate'; import LoginActionCreators from '../actions/LoginActionCreators'; @translate('GuestBanner') export default class GuestBanner extends Component { static propTypes = { // Injected by @tran...
blueprints/view/files/__root__/views/__name__View/__name__View.js
parkgaram/solidware-mini-project
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/frontend/components/notfound.js
PiTeam/garage-pi
import React from 'react'; export const PageNotFound = () => ( <h1>{'Page not Found '}</h1> );
src/interface/report/FightSelectionPanelList.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Trans } from '@lingui/macro'; import getFightName from 'common/getFightName'; import getWipeCount from 'common/getWipeCount'; import { formatDuration } from 'common/format'; import makeAnalyzerUrl from 'int...
Libraries/Components/Keyboard/Keyboard.js
cpunion/react-native
/** * 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. * * @provides...
src/svg-icons/device/network-wifi.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkWifi = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0...
src/svg-icons/places/golf-course.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesGolfCourse = (props) => ( <SvgIcon {...props}> <circle cx="19.5" cy="19.5" r="1.5"/><path d="M17 5.92L9 2v18H7v-1.73c-1.79.35-3 .99-3 1.73 0 1.1 2.69 2 6 2s6-.9 6-2c0-.99-2.16-1.81-5-1.97V8.98l6-3.06z"/> ...
docs/client.js
chrishoage/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
src/ui/form/checkbox/checkbox.js
josmardias/react-redux-boilerplate
import React from 'react' import CheckboxM from 'material-ui/Checkbox' const iconStyle = { marginRight: 30, } const Checkbox = ({ label, checked = false, }) => ( <CheckboxM label={label} defaultChecked={checked} iconStyle={iconStyle} /> ) Checkbox.propTypes = { label: React.PropTypes.string.i...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/tabs/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; class App extends React.Component { componentDidMount() { this.refs.animation.on('change', (event) => { ...
src/components/TalentDropdown.js
dfilipidisz/overwolf-hots-talents
import React from 'react'; import { connect } from 'react-redux'; import cn from 'classnames'; import AppPopup from './AppPopup'; import { changeTalent } from '../actions/newBuild'; const rightAlgnedLvls = ['13', '16', '20']; class TalentDropdown extends React.Component { constructor() { super(); this.togg...
modules/components/Paginator/index.js
hmltnbrn/classroom-library
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ArrowForward from 'material-ui/svg-icons/navigation/arrow-forward'; import ArrowBack from 'material-ui/svg-icons/navigation/arrow-back'; class Paginator extends React.Component { render() { let pages = Math.ceil(this.props...
app/containers/Add.js
7kfpun/AudienceNetworkReactNative
import React, { Component } from 'react'; import { BackHandler, Image, Linking, ListView, StyleSheet, Text, TouchableOpacity, Platform, View, } from 'react-native'; import { bindActionCreators } from 'redux'; import { Button, FormInput } from 'react-native-elements'; import { connect } from 'react-re...
Realization/frontend/czechidm-core/src/components/basic/Modal/Modal.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; // import Dialog from '@material-ui/core/Dialog'; // import AbstractComponent from '../AbstractComponent/AbstractComponent'; import Loading from '../Loading/Loading'; import BasicModalHeader from './ModalHeader'; import BasicModalBod...
techCurriculum/ui/solutions/4.4/src/components/Card.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...
app/components/controllButton/index.js
MakersLab/farm-client
import React from 'react'; import style from './style.css'; const ControllButton = ({ onClick, disabled, children }) => ( <button className={`${style.controllButton} ${disabled ? style['controllButton--disabled'] : ''}`} onClick={() => { if (!disabled && typeof (onClick) === 'function') { onCli...
packages/wix-style-react/src/SidebarHeader/test/SidebarHeader.visual.js
wix/wix-style-react
import React from 'react'; import SidebarHeader from '../SidebarHeader'; import { SidebarContext } from '../../Sidebar/SidebarAPI'; import Box from '../../Box'; import LinearProgressBar from '../../LinearProgressBar'; import Avatar from '../../Avatar'; import { snap, visualize } from 'storybook-snapper'; const skins ...
src/routes/Home/components/HomeView.js
paranoidplastictree/coachclone2
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
src/assets/js/UserBox.js
lfsmoura/define
import React from 'react'; export default class UserBox extends React.Component { constructor(props) { super(props); } getUserImage(id) { if (id) { // square < normal < large return <img src={`http://graph.facebook.com/${id}/picture?type=square`} />; } else { return '-'; } } ...
pages/advanced/index.js
kentcdodds/glamorous-website
import React from 'react' import DocsPage from '../../components/docs-page' function Page({url}) { return ( <DocsPage url={url} sections={[ require('./content/refs.md'), require('./content/existing-css.md'), require('./content/theming.md'), require('./content/context.m...
src/containers/skill-tree/SkillDetailView.js
phodal/growth-ng
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Text, View, ScrollView } from 'react-native'; import { Card, List, ListItem } from 'react-native-elements'; import * as shortid from 'shortid'; import SKILL_TREE_DATA from './SKILL_TREE_DATA'; import AppFonts from '../../theme/fonts...
src/svg-icons/device/gps-off.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsOff = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5...
src/packages/@ncigdc/modern_components/Counts/exploreGene.relay.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { BaseQuery } from '@ncigdc/modern_components/Query'; import { graphql } from 'react-relay'; export default (Component: ReactClass<*>) => (props: Object) => { return ( <BaseQuery parentProps={{ path: 'explore.genes.hits.total', ...props }} variables={{ filte...
src/preview/components/StoryView/index.js
uk-ar/react-native-storybook
import React, { Component } from 'react'; import { View, Text } from 'react-native'; import style from './style'; export default class StoryView extends Component { constructor(props, ...args) { super(props, ...args); this.state = {storyFn: null, selection: {}}; this.props.events.on('story', this.selectS...
setup/src/universal/features/common_ui/app/Header/index.js
ch-apptitude/goomi
/** * * Header * */ import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import Theme from 'assets/theme'; import { UserPropTypes } from 'features/user/constants'; import HOCAuth from 'features/user/hoc/HOCAuth'; import ProfilePicture from 'features/user/components/P...
assets/js/react/answer.js
ChrisBr/duell-um-die-geld
import React, { Component } from 'react'; class Answer extends React.Component { constructor(props) { super(props); this.state = { value: "" }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event) { this.setState({value: e...
client/app/containers/HomePage/index.js
yanhao-li/menu-plus
/* * HomePage * * This is the first thing users see of our App, at the '/' 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 necessity for you then you can refactor it and remove * the l...
src/components/Stays.js
siddardha56/Spread-React-Dev-Test
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'; import Subheader from 'material-ui/Subheader'; class Stays extends React.Component { constructor(props) { su...
src/components/Pagination/Pagination-story-legacy.js
wfp/ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnobs, array, boolean, number, text, } from '@storybook/addon-knobs'; import Pagination from '../Pagination'; const props = () => ({ disabled: boolean('Disable backward/f...
pootle/static/js/editor/components/SuggestionValue.js
translate/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import diff from 'utils/diff';...
node_modules/react-bootstrap/es/Table.js
FoxMessenger/nyt-react
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 ...
src/ReactBoilerplate/Scripts/containers/ResetPassword/ResetPassword.js
pauldotknopf/react-dot-net
import React, { Component } from 'react'; import { ResetPasswordForm } from 'components'; import { connect } from 'react-redux'; class ResetPassword extends Component { render() { return ( <div> <h2>Reset password</h2> <h4>Reset your password.</h4> <hr /> <ResetPasswordForm ...
src/svg-icons/notification/ondemand-video.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let 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"/> </SvgIc...
imageviewapp/src/index.js
senacor/epic-image-aws-bonanza-robot
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
packages/web/src/components/MonthSelector.js
hwaterke/inab
import { getSelectedMonthMoment, selectMonth, selectNextMonth, selectPreviousMonth, } from '@inab/shared' import moment from 'moment' import PropTypes from 'prop-types' import React from 'react' import {connect} from 'react-redux' import {Button} from './presentational/atoms/Button' import {ButtonIcon} from './...
8.FinalMiniProject-Authentication/Client-Authentication/test/test_helper.js
Branimir123/Learning-React
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/components/Feedback/Message.js
ilxanlar/cathode
import React from 'react'; import styled, { css } from 'styled-components'; import Icon from '../Icon/Icon'; import { getScreenProp, hasScreenProp } from '../../helpers/utils'; import { message as propTypes } from '../../helpers/propTypes'; import mediaQuery from '../../config/mediaQuery'; const Description = styled.d...