path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/components/Toggle/index.js
gihrig/react-boilerplate
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
src/js/Codedojo/Not.js
pankiv/news
/** * Created by Vasul on 03.10.2017. */ import React from 'react'; const Not = () => { return ( <h1>Not fount</h1> ) }; export default Not;
src/esm/components/graphics/icons/ellipsis-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var EllipsisIcon = function EllipsisIcon(_ref) { var color =...
test/PagerSpec.js
snadn/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Pager from '../src/Pager'; import PageItem from '../src/PageItem'; describe('Pager', function () { it('Should output a unordered list as root element with class "pager"', function () { let instance = ReactTestUtils.renderInt...
pkg/interface/chat/src/js/components/lib/backlog-element.js
ngzax/urbit
import React, { Component } from 'react'; import classnames from 'classnames'; export class BacklogElement extends Component { render() { let props = this.props; return ( <div className="center mw6"> <div className="db pa3 ma3 ba b--gray4 bg-gray5 b--gray2-d bg-gray1-d white-d flex items-ce...
src/pages/vida-bela.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Vida Bela' /> )
src/components/TextInputBEM/TextInputBEM.js
coryhouse/ps-react
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold...
client/vehicle-finder-spa/src/containers/user-management/single-user.js
Del7a/vehicle-finder
import React, { Component } from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {setCurrentUser, formChanged} from '../../actions/user'; import {updateSingleUser} from '../../actions/user-management'; import Form from '../../components/profile/info'; class SingleUser ex...
app/routes/method/CreateRoute.js
ryrudnev/dss-wm
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as Method } from '../../entities/Method'; import { Collection as MethodTypes } from '../../entities/MethodType'; import { PageHeader, Row, Col, Panel } from 'react-bootstrap'; import MethodForm from '...
docs/src/NotFoundPage.js
egauci/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage="" /> <PageHeader title="404" subT...
app/containers/LoginPage/index.js
gitlab-classroom/classroom-web
/* * * LoginPage * */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import styled from 'styled-components'; import selectLoginPage from './selectors'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import Paper from...
docs/src/app/components/pages/components/Card/ExampleControlled.js
ArcanisCz/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import Toggle from 'material-ui/Toggle'; export default class CardExampleControlled extends React.Component { constructor(props) { super(pro...
fields/types/titleposition/TitlePositionField.js
nickhsine/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; import cx from 'classnames'; /** * TODO: * - Custom path support */ const CENTER = 'center'; const BOTTOM = 'bottom'; const BOTTOMLEFT = 'bottom-left'; const imageSrc = { [CENTE...
src/components/Page/BlankState/BlankState.specs.js
auth0-extensions/auth0-extension-ui
import React from 'react'; import { mount } from 'enzyme'; import { expect } from 'chai'; import BlankState from './'; const { describe, it } = global; describe('BlankState', () => { const field = { title: 'The title', iconImage: ( <div className="no-content-image"> no image </div> ...
V2-Node/esquenta.v2/UI/src/views/Base/Collapses/Collapses.js
leandrocristovao/esquenta
import React, { Component } from 'react'; import { Badge, Button, Card, CardBody, CardFooter, CardHeader, Col, Collapse, Fade, Row } from 'reactstrap'; class Collapses extends Component { constructor(props) { super(props); this.onEntering = this.onEntering.bind(this); this.onEntered = this.onEntered.bin...
fixtures/nesting/src/modern/App.js
cpojer/react
import React from 'react'; import {useState, Suspense} from 'react'; import {BrowserRouter, Switch, Route} from 'react-router-dom'; import HomePage from './HomePage'; import AboutPage from './AboutPage'; import ThemeContext from './shared/ThemeContext'; export default function App() { const [theme, setTheme] = useS...
app/timer/timer.page.js
kosich/pomodoro-pi
// @flow import React, { Component } from 'react'; import Timer from './timer.component.js'; export default class TimerPage extends Component { render() { return ( <Timer /> ); } }
src/svg-icons/av/video-label.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoLabel = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V5h18v11z"/> </SvgIcon> ); AvVideoLabel = pure(AvVideoLabel); AvVid...
stories/components/label/index.js
NestorSegura/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import Label from 'shared/components/label/label'; storiesOf('shared/components/label', module) .add('Default', () => ( <div style={{ marginTop: '12px', display: 'flex', flexDirection: 'row', justifyCo...
src/components/Tos/ImportView/__tests__/importView.spec.js
City-of-Helsinki/helerm-ui
import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; import Enzyme, { mount } from 'enzyme'; import React from 'react'; import { ImportView } from '../ImportView'; Enzyme.configure({ adapter: new Adapter() }); describe('(Component) ImportView', () => { let _wrapper; beforeEach(() => { _wrapper = mount( ...
www/js/components/Sidebar.js
grant/CSE-The-Game
import React, { Component } from 'react'; const sidebarItems = [ { id: 'item1', name: 'Item 1', subitems: [{ id: 'subitem1', name: 'Subitem 1', }, { id: 'subitem2', name: 'Sub 2', subitems: [{ id: 'subsubitem1', name: 'sub sub item 1', }], }], ...
App/Client/Component/person.js
qianyuchang/React-Chat
import React from 'react' import { mockData } from './mockData' const ArrowIcon=React.createClass({ render:function(){ return( <i className="arrow fa fa-angle-right"></i> ); } }); const QrcodeIcon=React.createClass({ render:function(){ return( <i className="qrcode fa fa-qrcode"></i> ); } }); const...
src/collections/Form/FormSelect.js
aabustamante/Semantic-UI-React
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Select from '../../addons/Select' import FormField from './FormField' /** * Sugar for <Form.Field control={Select} />. * @see Form * @see Select */ function FormSelect(props) { const { ...
video-player/src/components/SearchBar.js
HeroSizy/Modern-react-with-redux
import React from 'react' import { Component } from 'react' class SearchBar extends Component { constructor(props){ super(props); //only can manipulate state using '=' //in constructor this.state = { term: '' }; //to not lose context, use bind this.onInputChange = ...
packages/material-ui-icons/src/InsertLink.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-...
sample-app/EmployeeDirectory/index.ios.js
TGPSKI/cavy
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import { Provider } from 'react-redux'; import { reduxForm } from 'redux-form'; import { Tester, TestHookStore } from 'cavy'; import EmployeeDirectoryApp from 'App/EmployeeDirectoryApp'; import GLOBAL from 'Helpers/globals.js'; if ...
fields/types/azurefile/AzureFileColumn.js
asifiqbal84/keystone
import React from 'react'; var AzureFileColumn = React.createClass({ renderValue () { var value = this.props.data.fields[this.props.col.path]; if (!value) return; return <a href={value.url} target='_blank'>{value.url}</a>; }, render () { return ( <td className="ItemList__col"> <div className="ItemLis...
src/js/ui/components/welcome/signUpForm.js
heartnotes/heartnotes
import $ from 'jquery'; import _ from 'lodash'; import React from 'react'; import Button from '../button'; import ExternalLink from '../externalLink'; import ProgressButton from '../progressButton'; import EmailInput from '../emailInput'; import NewPasswordInput from '../newPasswordInput'; import UserShouldRememberPas...
src/index.js
shibe97/react-awesome-modal
import React, { Component } from 'react'; import style from './style.js'; export default class Modal extends Component { constructor(props) { super(props); let effect = props.effect || 'fadeInDown'; this.setSize(effect); this.state = { visible : props.visible, ...
chrome/extension/inject.js
CKPalk/PA-POC-Video-Contoller
import React from 'react' import ReactDOM from 'react-dom' import VideoRoot from '../../app/containers/VideoRoot' import { getUid } from '../../app/utils/helpers' import { getState, onStateChange } from '../../app/utils/localStorage' /** * Whether this youtube video is currently an advertisement. * @param {Objec...
web/app/containers/RepoListItem/index.js
agapic/TwitchChatStreaming
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import IssueIcon from './IssueIcon'; import IssueLink from './IssueLink'; import L...
tp-4/euge/src/pages/posts/Listado.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import PropTypes from 'prop-types'; import { Layout, Table, Button } from 'antd'; const { Content } = Layout; const columns = [{ title: 'title', dataIndex: 'title', width: '30%', }, { title: 'body', dataIndex: 'body', width: '20%', }]; class Listado extends React.Component { ...
src/js/components/gallery/ImportAlbumPopup.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { FACEBOOK_PHOTOS_SCOPE, GOOGLE_PHOTOS_SCOPE } from '../../constants/Constants'; import translate from '../../i18n/Translate'; @translate('ImportAlbumPopup') export default class ImportAlbumPopup extends Component { static propTy...
12_ReactJS Fundamentals/01_contacter/src/index.js
akkirilov/SoftUniProject
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
app/javascript/mastodon/features/ui/components/media_modal.js
imas/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import classNames from 'classnames'; import { defineMessages, injectIntl } from 'react-intl'; i...
modules/gob-web/modules/course-table/year.js
hawkrives/gobbldygook
// @flow import React from 'react' import {connect} from 'react-redux' import {FlatButton} from '../../components/button' import Semester from './semester' import {findFirstAvailableSemester} from '../../helpers/find-first-available-semester' import {expandYear, semesterName} from '@gob/school-st-olaf-college' import ...
blueocean-material-icons/src/js/components/svg-icons/content/create.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentCreate = (props) => ( <SvgIcon {...props}> <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/> </SvgIcon> ); ContentCreate.d...
example/App/VariableHeight.js
nkbt/react-collapse
import React from 'react'; import {Collapse} from '../../src'; export class VariableHeight extends React.PureComponent { constructor(props) { super(props); this.state = {isOpened: false, height: 100}; } render() { const {isOpened, height} = this.state; return ( <div {...this.props}> ...
stories/examples/CardImageCaps.js
reactstrap/reactstrap
import React from 'react'; import { Card, CardBody, Button, CardTitle, CardText, CardImg } from 'reactstrap'; const Example = (props) => { return ( <div> <Card> <CardImg top width="100%" src="https://picsum.photos/318/180" alt="Card image cap" /> <CardBody> <CardTitle tag="h5">Car...
src/esm/components/structure/cards/summary-card/components/title-tag.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["text", "icon", "className"]; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Tag } from '...
src/compontent/summary.js
PangPangPangPangPang/react-blog
/** * Created by wangyefeng on 03/03/2017. */ import React from 'react' import { hashHistory } from 'react-router' import './summary.css' const Summary = (props) => { const clickDetail = () => { hashHistory.push(`list/${props.id}`) } const renderTag = () => { const arr = [] for (let i = 0; i < prop...
src/parser/paladin/holy/modules/azeritetraits/RadiantIncandescence.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import { formatNumber, formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS/index'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import ItemHealingDone from 'int...
src/svg-icons/communication/stop-screen-share.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
src/components/Account/Courses/CourseList/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import CourseCard from './CourseCard' import styles from './style.module.css' const CourseList = (props) => { if (!props.courses || !props.courses.length) { return null } return ( <div className={styles.courseSection}> <h3 className={sty...
docs/app/Examples/views/Comment/Variations/CommentExampleMinimal.js
koenvg/Semantic-UI-React
import React from 'react' import { Button, Comment, Form, Header } from 'semantic-ui-react' const CommentExampleMinimal = () => ( <Comment.Group minimal> <Header as='h3' dividing>Comments</Header> <Comment> <Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> <Comm...
client/admin/server.js
kirinami/portfolio
// Import dependencies import React from 'react'; import { renderToString } from 'react-dom/server'; import { StaticRouter, Route } from 'react-router-dom'; import { Provider } from 'mobx-react'; // Export markup /* eslint-disable global-require */ module.exports = (initialStates, url) => { // define initial state...
src/svg-icons/image/collections.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollections = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/> ...
examples/self_mounting_components/mount.js
abdelouahabb/python-react
import React from 'react'; // During the build process webpack aliases this import to the desired component import Component from '__react_mount_component__'; // During the build process webpack will replace these variable with // the names passed from the python process const props = __react_mount_props_variable__; ...
react-flux-mui/js/material-ui/src/svg-icons/maps/streetview.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsStreetview = (props) => ( <SvgIcon {...props}> <path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d...
src/components/PhotoList.js
edwinwright/react-project
import React from 'react'; import PhotoThumb from './PhotoThumb'; const PhotoList = ({ photos }) => ( <div> <h1>PhotoList</h1> <ul> {photos.map(photo => ( <li key={photo.id}> <PhotoThumb photo={photo} /> </li> ))} </ul> </div> ); // TODO: Add propTypes // TODO: Do...
modules/__tests__/History-test.js
cojennin/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import History from '../History' import Router from '../Router' import Route from '../Route' import createHistory from 'history/lib/createMemoryHistory' describe('History Mixin', function () { let node beforeEach(function () { node = ...
app/components/Files.js
christianalfoni/TeachKidsCode
import React from 'react'; import {Mixin} from 'cerebral-react-immutable-store'; import MTRC from 'markdown-to-react-components'; import { Row, Col, ListGroup, ListGroupItem, Button } from 'react-bootstrap'; var Files = React.createClass({ mixins: [Mixin], getStatePaths() { return { files: ['fi...
generators/js-framework/modules/react/components/Account/Reset.js
sahat/boilerplate
import React from 'react'; import { connect } from 'react-redux' import { resetPassword } from '../../actions/auth'; import Messages from '../Messages'; class Reset extends React.Component { constructor(props) { super(props); this.state = { password: '', confirm: '' }; } handleChange(event) { this.s...
src/components/SignIn/index.js
Apozhidaev/ergonode
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { signIn } from 'store/app/actions'; import { Link } from 'react-router-dom'; import 'github-fork-ribbon-css/gh-fork-ribbon.css'; import './styles.css'; import ProgressBar from '../ProgressBar'; class SignIn extends Component { ...
src/modules/todo/components/TodoList.js
scubism/react_todo_web
import React from 'react'; import { provideHooks } from 'redial'; import { connect } from 'react-redux'; import { Link } from 'react-router' import autobind from 'autobind-decorator' import Loader from 'react-loaders' import { listTodos, createTodo, updateTodo, deleteTodo, moveTodo } from '../actions'; import { TodoInl...
src/RootComponent.js
jerryshew/react-uikits
import React, { Component } from 'react'; import { HashRouter as Router, Route, NavLink, Switch } from 'react-router-dom'; import { version } from '../package.json'; import { BasicPage, ButtonPage, CalendarPage, CarouselPage, CheckBoxPage, CheckBoxGroupPage, ConfirmBoxPage, CardPage, CommentPage, CrumbPage, ...
cloudapp/src/app/WaterChart.js
jbrichau/PoolBuddy
import React from 'react'; import { Badge } from 'reactstrap'; import { LineChart, XAxis, YAxis, Legend, Tooltip, CartesianGrid, Line, ReferenceLine } from 'recharts'; class CustomizedAxisTick extends React.Component { render() { const { x, y, stroke, payload } = this.props; return ( <g transform={`tr...
src/client/assets/javascripts/features/mapper/components/Mapper/Mapper.js
tlodge/uibuilder
import React, { Component } from 'react'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { actionCreators as mapperActions, viewConstants, selector } from '../..'; import { actionCreators as shapeActions } fro...
examples/sections/src/ThemeContext.js
styleguidist/react-styleguidist
import React from 'react'; /** * Context that stores selected application theme: 'light' | 'dark' */ export default React.createContext('light');
examples/with-webpack-bundle-size-analyzer/pages/index.js
BlancheXu/test
import React from 'react' import Link from 'next/link' export default class Index extends React.Component { static getInitialProps ({ req }) { if (req) { // Runs only in the server const faker = require('faker') const name = faker.name.findName() return { name } } // Runs only in...
src/assets/js/react/components/Template/TemplateUploader.js
blueliquiddesigns/gravity-forms-pdf-extended
import PropTypes from 'prop-types' import React from 'react' import { connect } from 'react-redux' import { addTemplate, updateTemplateParam, postTemplateUploadProcessing, clearTemplateUploadProcessing } from '../../actions/templates' import classNames from 'classnames' import Dropzone from 'react-dropzone' imp...
client/test/components/app.spec.js
nicksenger/marvelous
/* eslint-env mocha */ import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import { App } from '../../src/js/components/app'; describe('<App />', () => { it('renders the component', (done) => { const wrapper = shallow(<App />); expect(wrappe...
src/main/js/my-app/src/index.js
myapos/ClientManagerSpringBoot
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; import App from './containers/App'; import './index.css'; import * as utils from './utils'; const init = async () => { const placeholder = document.getElementById(...
front/app/js/rh-components/rh-Spinner.js
nudoru/learning-map
import React from 'react'; const Spinner = ({type}) => { let cls = ['spinner']; if(type) { cls.push(type); } return (<div className={cls.join(' ')}></div>) }; export default Spinner;
src/lexer.js
MrCheater/text-resize-and-word-wrap-provider
import React from 'react'; let index = 0; export function lexer(jsxText, props, results, init) { if(init) { index = 0; } if(!Array.isArray(jsxText)) { jsxText = [jsxText]; } const countChildren = jsxText.length; for(let childIndex = 0; childIndex < countChildren; childIndex++) ...
src/components/table_headers.js
mdkalish/json_selector
import React from 'react'; var SocialMediumHeaderRow = React.createClass({ render: function() { return ( <tr style={{backgroundColor: '#fa6900'}}> <th colSpan="4"> {this.props.type} </th> </tr> ); } }); var ColumnHeadersRow = React.createClass({ getInitialState: fun...
src/SudokuBoard.js
itsjustdanger/sudoku-solver
import React from 'react'; import PropTypes from 'prop-types'; import Square from './Square.js'; /* Display component for the sudoku board */ export default class SudokuBoard extends React.Component { render() { const board = this.props.board; const squares = []; for (const box in board) { if (box...
analysis/paladinholy/src/modules/spells/DevotionAuraDamageReduction.js
yajinni/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import fetchWcl from 'common/fetchWclApi'; import { SpellIcon } from 'interface'; import { formatThousands, formatNumber } from 'common/format'; import LazyLoadStatisticBox, { STATISTIC_ORDER } from 'parser/ui/LazyLo...
src/routes/hardware/index.js
bigearth/www.clone.earth
import React from 'react'; import Layout from '../../components/Layout'; import Hardware from './Hardware'; const title = 'Hardware'; export default { path: '/hardware', action() { return { title, component: <Layout><Hardware title={title} /></Layout>, }; }, };
app/cards/blog-card.js
gon250/personal-web
import React from 'react'; export default React.createClass({ render: function (){ let postDate = this.props.blogDate.toString().substring(0,10); return ( <div className="mdl-grid mdl-cell mdl-cell--12-col mdl-cell--4-col-tablet mdl-card mdl-shadow--4dp"> <div className="mdl-card__title"> ...
src/svg-icons/navigation/chevron-right.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronRight = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); NavigationChevronRight = pure(NavigationChevronRight); NavigationChevronRigh...
apps/marketplace/components/Opportunity/EvaluationCriteria.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import AUheading from '@gov.au/headings/lib/js/react.js' import styles from './EvaluationCriteria.scss' const EvaluationCriteria = props => ( <div className={styles.container}> <div className="row"> <div role="columnheader" id="he...
backend/dynamic-web-apps/voting-app/client/src/components/Signup.js
mkermani144/freecodecamp-projects
import React, { Component } from 'react'; import { Redirect } from 'react-router'; import Paper from 'material-ui/Paper'; import { Step, Stepper, StepLabel, StepContent } from 'material-ui/Stepper'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton fro...
src/components/manage/ManageForm.js
oraclesorg/ico-wizard
import React from 'react' import { Link } from 'react-router-dom' import { FormSpy } from 'react-final-form' import { FieldArray } from 'react-final-form-arrays' import { ManageTierBlock } from './ManageTierBlock' import classNames from 'classnames' export const ManageForm = ({ handleSubmit, invalid, pristine, ...
src/Spring.js
wilfreddenton/react-motion
import React from 'react'; import components from './components'; module.exports = components(React);
src/Label/Label.driver.js
skyiea/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; const labelDriverFactory = ({element, wrapper, component}) => { return { exists: () => !!element, getTagName: () => element.tagName.toLowerCase(), getLabelText: () => element.textContent, getClassList: () => element.className, getAttr: ...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-13/complete/friend-detail/FriendFlipper.js
Brandon-J-Campbell/codemash
import React from 'react'; import styles from './FriendFlipper.css'; export default class FriendFlipper extends React.Component { state = { flipped: false, }; handleFlipped = () => { this.setState(prevProps => { return { flipped: !prevProps.flipped, }; }); }; render() { ...
node_modules/react-bootstrap/es/Tab.js
rblin081/drafting-client
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import PropTypes from 'pr...
src/index.js
attilad/console-room
import React from 'react'; import {render} from 'react-dom'; import HomePage from './containers/HomePage'; render( <HomePage helloWorld="Hello, Universe!" />, document.getElementById('app') );
blueocean-material-icons/src/js/components/svg-icons/hardware/keyboard-hide.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareKeyboardHide = (props) => ( <SvgIcon {...props}> <path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H5V9h2v2zm0-3H5V6h2v2zm9 7H8v-2h8v...
admin/src/components/ListHeader.js
lastjune/keystone
import classNames from 'classnames'; import React from 'react'; import utils from '../utils.js'; import { Button, Container, Dropdown, FormInput, InputGroup, Pagination } from 'elemental'; import CreateForm from './CreateForm'; import ListColumnsForm from './ListColumnsForm'; import ListDownloadForm from './ListDownlo...
cerberus-dashboard/src/components/SecureDataVersionsBrowser/SecureDataVersionsBrowser.js
Nike-Inc/cerberus
/* * Copyright (c) 2020 Nike, inc. * * 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 ...
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
boneyao/actor-platform
import React from 'react'; import mixpanel from 'utils/Mixpanel'; import MyProfileActions from 'actions/MyProfileActions'; import LoginActionCreators from 'actions/LoginActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; import MyProfileModal from 'components/modals/MyProfile.react'; import ...
src/ModalBody.js
andrew-d/react-bootstrap
import React from 'react'; import classnames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classnames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.propTypes = { /** ...
wrappers/json.js
lukevance/personal_site
import React from 'react' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <h1>{data.title}</h1> <p>Raw view of json file</p> <pre dangerouslySetI...
lib/ui/components/BottomBar/SearchInput.js
500tech/mimic
import React from 'react'; import styled from 'styled-components'; import Icon from 'ui/components/common/Icon'; import ActionIcon from 'ui/components/common/ActionIcon'; import IconDropdown from 'ui/components/common/IconDropdown'; import { Div } from 'ui/components/common/base'; import InputControl from 'ui/component...
sample/components/text-area.js
LINKIWI/react-elemental
import React from 'react'; import { Label, Spacing, Text, TextArea } from 'react-elemental'; const SampleTextArea = () => ( <div> <Spacing size="huge" bottom> <Text size="gamma" color="primary" uppercase> Text areas </Text> <Text> Allow the user to enter an arbitrary-length text...
src/svg-icons/maps/beenhere.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsBeenhere = (props) => ( <SvgIcon {...props}> <path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59...
src/routes/courses/index.js
fkn/ndo
import React from 'react'; import Layout from '../../components/Layout'; import Courses from './Courses'; import { fetchCourses } from '../../actions/courses'; const title = 'Courses'; async function action({ store }) { const { user } = store.getState(); if (user) { await store.dispatch(fetchCourses(user.id))...
src/svg-icons/communication/stay-primary-landscape.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
WasteApp/js/components/picker/index.js
airien/workbits
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Platform } from 'react-native'; import { Container, Header, Title, Content, Button, Icon, Picker, Text } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; const Item = Picker....
src/svg-icons/av/album.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAlbum = (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 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-...
src/svg-icons/places/hot-tub.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesHotTub = (props) => ( <SvgIcon {...props}> <circle cx="7" cy="6" r="2"/><path d="M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12...
app/screens/settings/theme/theme_tile.js
mattermost/mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React from 'react'; import { Dimensions, TouchableOpacity, View, } from 'react-native'; import CompassIcon from '@components/compass_icon'; import {cha...
src/components/Portfolio/Portfolio.js
karim88/karim88.github.io
import React, { Component } from 'react'; import './Portfolio.css'; class Portfolio extends Component { constructor (props) { super(props); this.portfolio = props.portfolio.map((project) => { return <div key={project.id} className="col-md-3 col-lg-4"> <div className="card...
src/app.js
beaudavenport/regex-cafe
import React from 'react'; import ReactDOM from 'react-dom'; import lessons from './lessons'; import Lesson from './Lesson'; import Navbar from './Navbar'; import Introduction from './Introduction'; import Faq from './Faq'; class App extends React.Component { render() { let lessonsOutput = this.props.lessons.map...
src/svg-icons/device/battery-charging-60.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1...
src/components/button/button.js
thinktopography/reframe
import React from 'react' import PropTypes from 'prop-types' class Button extends React.Component { static contextTypes = { confirm: PropTypes.object, drawer: PropTypes.object, flash: PropTypes.object, modal: PropTypes.object, router: PropTypes.object } static propTypes = { basic: PropT...
src/app/components/forms/inputs/UiSlider.js
backpackcoder/world-in-flames
import React from 'react' import 'script-loader!bootstrap-slider/dist/bootstrap-slider.min.js' export default class UiSlider extends React.Component { componentDidMount() { $(this.refs.slider).bootstrapSlider(); } render() { return <input type="text" ref="slider" {...this.props} /> } }
src/modules/components/WaveShapeSelector/index.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import Select from '../Select'; import { waveShapes } from '../../../utils/audio'; const WaveShapeSelector = ({ value, change }) => { const options = waveShapes.map(s => ({ id: s, name: s })); return ( <div> <Select labelKey="name" ...