path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/js/app.js | dockpit/dockpit | import React from 'react'
import Router from 'react-router'
import { Route, DefaultRoute } from 'react-router'
import App from './views/App.jsx'
import Daily from './views/Daily.jsx'
var routes = (
<Route handler={App}>
<DefaultRoute handler={Daily}/>
</Route>
);
Router.run(routes, Router.HashLocation, (Root... |
test/components/Board/BoardColumn.spec.js | guidiego/webpack-todolist | import React from 'react';
import sd from 'skin-deep';
import BoardColumn from 'components/Board/BoardColumn';
import BoardColumnTitle from 'components/Board/BoardColumnTitle';
import CardList from 'components/Card/CardList';
import BoardAddCardContainer from 'containers/BoardAddCardContainer';
import equalJSX from '... |
admin/client/App/components/Navigation/Mobile/index.js | cermati/keystone | /**
* The mobile navigation, displayed on screens < 768px
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import MobileSectionItem from './SectionItem';
const ESCAPE_KEY_CODE = 27;
const MobileNavigation = React.createClass({
displayName: 'MobileNavigation',
propTypes: ... |
snippets/camunda-tasklist-examples/camunda-react-app/src/components/forms/invoice/newTask.js | camunda/camunda-consulting | import React from 'react'
import { Field, reduxForm } from 'redux-form'
const SimpleForm = props => {
const { handleSubmit, pristine, reset, submitting } = props
return (
<form onSubmit={handleSubmit}>
<div>
<label>First Name</label>
<div>
<Field
name="firstName"
... |
docs/app/Examples/elements/Button/Variations/ButtonExampleColored.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleColored = () => (
<div>
<Button color='red'>Red</Button>
<Button color='orange'>Orange</Button>
<Button color='yellow'>Yellow</Button>
<Button color='olive'>Olive</Button>
<Button color='green'>Green</Button>
... |
src/components/Spinner.js | robertkirsz/magic-cards-manager | import React from 'react'
import styled from 'styled-components'
import { AbsoluteFullSize } from 'styled'
import { spinAnimation } from 'styled/animations'
const SpinnerContainer = styled.div`
position: relative;
width: 100px;
height: 100px;
margin: 100px auto;
animation: ${spinAnimation(0)} 2s linear infin... |
src/Zdd.js | lincolnphu/zzdi | import React, { Component } from 'react';
import Info from './Info';
require("./style.scss");
require('es6-promise').polyfill();
require('fetch-ie8');
export default class Zdd extends Component {
constructor(props){
super(props);
this.state = {
name:'lincolnphu',
url:'https://ws.audioscrobbler.com/2... |
server/server.js | sethkaufee/TherapyApp | import Express from 'express';
import compression from 'compression';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
import bcrypt from 'bcryptjs';
import IntlWrapper from '../client/modules/Intl/IntlWrapper';
// Webpack Requirements
import webpack from 'webpack';
impo... |
app/react-icons/fa/compass.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaCompass extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m17.3 24.3l5.7-2.9-5.7-2.8v5.7z m8.6-13.2v12.1l-11.5 5.7v-12.1z m6.4 8.9q0-3... |
src/app/core/atoms/icon/icons/plus.js | blowsys/reservo | import React from 'react'; const Plus = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="13 11 13 6 11 6 11 11 6 11 6 13 11 13 11 18 13 18 13 13 18 13 18 11 13 11"/></g></g></svg>; export default Plus;
|
stories/Grid.js | abouthiroppy/scuba | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Container, { Grid, Cell } from '../src';
const styles = {
container: {
width : '80%',
margin : 30,
padding: 30,
border : '1px solid #333'
},
cell: {
background: '#777'
}
};
storiesOf('Grid', module).add('list... |
app/test/setup.js | nhtera/react-starter | import React from 'react'; // eslint-disable-line no-unused-vars
import chai, { expect } from 'chai';
import sinonChai from 'sinon-chai';
import sinon from 'sinon';
import chaiAsPromised from 'chai-as-promised';
import chaiEnzyme from 'chai-enzyme';
import { jsdom } from 'jsdom';
chai.use(sinonChai);
chai.use(chaiAsPr... |
docs/src/app/components/pages/components/Badge/Page.js | spiermar/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 badgeReadmeText from './README';
import BadgeExampleSimple from './Exampl... |
index.android.js | ChenLi0830/RN-Auth | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import App from './src/App';
AppRegistry.registerComponent('RN_Auth', () => App);
|
client/src/components/ElementEditor/tests/ElementList-test.js | dnadesign/silverstripe-elemental | /* eslint-disable import/no-extraneous-dependencies */
/* global jest, describe, it, expect */
import React from 'react';
import { Component as ElementList } from '../ElementList';
import Enzyme, { shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
d... |
blueocean-material-icons/src/js/components/svg-icons/communication/import-export.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationImportExport = (props) => (
<SvgIcon {...props}>
<path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/>
</SvgIcon>
);
CommunicationImportExport.displayName = 'CommunicationImportExport';
CommunicationI... |
springboot/GReact/src/main/resources/static/app/routes/forms/jcrop/components/FieldInput.js | ezsimple/java | import React from 'react'
import {connect} from 'react-redux'
import {cropFieldChange} from '../actions/crop'
import Field from './Field'
const mapStateToProps = (state, ownProps)=> {
return {
field: ownProps.field,
value: state.crop[ownProps.field]
}
};
const mapDispatchToProps = (dispatch, ... |
src/scripts/components/avatar/Avatar.component.story.js | kodokojo/kodokojo-ui-commons | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: 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
* (at ... |
fields/types/textarea/TextareaFilter.js | geminiyellow/keystone | import _ from 'underscore';
import classNames from 'classnames';
import React from 'react';
import { FormField, FormInput, FormSelect } from 'elemental';
const CONTROL_OPTIONS = [
{ label: 'Matches', value: 'matches' },
{ label: 'Contains', value: 'contains' },
{ label: 'Begins with', value: 'beginsWith' },
{ lab... |
src/svg-icons/notification/network-check.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNetworkCheck = (props) => (
<SvgIcon {...props}>
<path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28... |
node_modules/@material-ui/styles/es/StylesProvider/StylesProvider.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import warning from 'warning';
import { exactProp } from '@material-ui/utils';
import createGenerateClass... |
packages/strapi-admin/files/public/app/components/LeftMenuLinkContainer/index.js | lucusteen/strap | /**
*
* LeftMenuLinkContainer
*
*/
import React from 'react';
import LeftMenuLink from 'components/LeftMenuLink';
import styles from './styles.scss';
class LeftMenuLinkContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
// List of links
let links = this.... |
src/routes/admin/Admin.js | binyuace/vote | /**
* 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 PropTypes from 'prop-... |
src/common-ui/components/IndexDropdownNewRow.js | WorldBrain/WebMemex | import React from 'react'
import PropTypes from 'prop-types'
import IndexDropdownRow from './IndexDropdownRow'
const IndexDropdownNewRow = ({ value, isNew = true, ...props }) => (
<IndexDropdownRow {...props} value={<span>{value}</span>} isNew />
)
IndexDropdownNewRow.propTypes = {
value: PropTypes.string.is... |
src/app/development/trc/PermitTypeCards.js | cityofasheville/simplicity2 | import React from 'react';
import PermitTypeCard from './PermitTypeCard';
import { trcProjectTypes } from './textContent';
const PermitTypeCards = () => {
let cardWidth = '40%';
if (window.innerWidth < 500) {
cardWidth = '90%';
}
return (
<div
style={{
display: 'flex',
flexDirecti... |
src/App.js | kade042/flux-bank-account-app | import React, { Component } from 'react';
import { render } from 'react-dom';
import { Container } from 'flux/utils';
import BankRewardsStore from './BankRewardsStore';
import BankBalanceStore from './BankBalanceStore';
import BankActions from './BankActions';
class App extends Component {
constructor() {
super(... |
src/components/ProductForm.js | ihenvyr/react-parse | import React from 'react';
import Grid from 'grid-styled';
import Input from './Input';
import Textarea from './Textarea';
import Select from './Select';
import Label from './Label';
import Button from './Button';
const ProductForm = ({ brands, children, create, update, cancel, router }) => {
const onSubmit = (event... |
packages/lore-react-forms-material-ui/src/fields/string.js | lore/lore-forms | import React from 'react';
import _ from 'lodash';
import { Field } from 'lore-react-forms';
import { TextField } from 'material-ui';
export default function(form, props, name) {
return (
<Field name={name}>
{(field) => {
return (
<TextField
name={field.name}
value... |
src/router.js | HuangXingBin/goldenEast | import React from 'react';
import { Router, Route, browserHistory, IndexRedirect, IndexRoute, hashHistory, Redirect } from 'react-router';
//首页,数据总览
import HomeContainer from './components/containers/home-container';
//用户列表
import UserListContainer from './components/containers/user-list-container';
import UserDetailCo... |
src/main/Main.js | corbig/AfterWorkManager | import React, { Component } from 'react';
//import logo from './logo.svg';
//import './App.css';
import AppToolbar from '../header/AppToolbar'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import AutoComplete from 'material-ui/AutoComplete';
import injectTapEventPlugin from 'react-tap-event-plugin';
import D... |
src/browser/auth/Social.js | robinpokorny/este | // @flow
import type { State } from '../../common/types';
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { signIn } from '../../common/auth/actions';
import {
Box,
Button,
} from ... |
src/svg-icons/device/screen-lock-portrait.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockPortrait = (props) => (
<SvgIcon {...props}>
<path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1.... |
src/svg-icons/notification/power.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPower = (props) => (
<SvgIcon {...props}>
<path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"/>
</SvgIcon>
);
NotificationPower = pu... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | daychen/niceday | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/Parser/Hunter/Survival/CONFIG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Putro } from 'CONTRIBUTORS';
import SPECS from 'common/SPECS';
import Wrapper from 'common/Wrapper';
import Warning from 'common/Alert/Warning';
import CombatLogParser from './CombatLogParser';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contrib... |
test/NavbarSpec.js | Lucifier129/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Nav from '../src/Nav';
import Navbar from '../src/Navbar';
import { getOne, shouldWarn } from './helpers';
import utils from '../src/utils/bootstrapUtils';
describe('Navbar', () => {
it('Shou... |
src/GridList/GridTile.spec.js | frnk94/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import GridTile from './GridTile';
import getMuiTheme from '../styles/getMuiTheme';
describe('<GridTile />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {co... |
src/parser/shaman/elemental/modules/talents/EarthenRage.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
class EarthenRage exten... |
src/svg-icons/action/settings-input-hdmi.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputHdmi = (props) => (
<SvgIcon {...props}>
<path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/>
</SvgIcon>
);
ActionSettingsInputHd... |
client/tests/components/createGroupModal.spec.js | 3m3kalionel/PostIt |
import React from 'react';
import { mount } from 'enzyme';
import 'materialize-css/dist/js/materialize';
import { CreateGroupModal } from '../../components/dashboard/CreateGroupModal';
const props = {
createGroup: jest.fn(() => Promise.resolve()),
error: {},
};
const enzymeWrapper = mount(<CreateGroupModal {...p... |
src/__tests__/components/Footer/Footer.js | RMCoder198/chat.susi.ai | import React from 'react';
import Footer from '../../../components/Footer/Footer.react';
import { shallow } from 'enzyme';
describe('<Footer />', () => {
it('renders Footer without crashing', () => {
shallow(<Footer />);
});
});
|
example/webpack-2/client/components/App.js | iansinnott/react-static-webpack-plugin | import React from 'react';
import { Link, IndexLink } from 'react-router';
import classnames from 'classnames/bind';
// Using CSS Modules so we assign the styles to a variable
import s from './App.styl';
const cx = classnames.bind(s);
import logo from './react-logo.png';
// Favicon link is in the template, this just ... |
test/Conditional.spec.js | akurihara/react-business-rules-ui | import expect from 'expect';
import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import Conditional from '../src/Conditional';
describe('Conditional', () => {
it('should render', () => {
const props = {
conditions: [],
index: 0,
onUpdate: () => undefined,
... |
examples/todomvc/test/components/Header.spec.js | doerme/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Header from '../../components/Header'
import TodoTextInput from '../../components/TodoTextInput'
function setup() {
const props = {
addTodo: expect.createSpy()
}
const renderer = TestUtils.createRend... |
app/app/components/UrlGenerator/CampaignsSelect.js | lycha/masters-thesis | import React from 'react';
class CampaignsSelect extends React.Component {
constructor(props) {
super(props);
this.displayName = 'CampaignsSelect';
}
handleChange(e) {
this.props.setCampaign(e.target.value);
}
render() {
return (
<select required ref="utm_ca... |
project/react-ant-multi-pages/src/pages/index/containers/AssetMgmt/Add/index.js | FFF-team/generator-earth | import React from 'react'
import moment from 'moment'
import { DatePicker, Button, Form, Input, Col } from 'antd'
import BaseContainer from 'ROOT_SOURCE/base/BaseContainer'
import request from 'ROOT_SOURCE/utils/request'
import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter'
import Rules from 'ROOT_SOURCE/utils... |
node_modules/react-bootstrap/es/HelpBlock.js | chenjic215/search-doctor | 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/svg-icons/device/bluetooth-searching.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothSearching = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9... |
app/javascript/mastodon/features/ui/components/media_modal.js | pixiv/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 '../../video';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import classNames from 'classn... |
src/svg-icons/communication/comment.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
Co... |
node_modules/react-native/Libraries/Image/Image.ios.js | Helena-High/school-app | /**
* 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... |
1-live-timeline-post/js/components/SubLayout.js | melvinodsa/my-react-experiments | import React from 'react';
class SubLayout extends React.Component {
render() {
var classNames = "";
if(this.props.extraclass instanceof Array) {
this.props.extraclass.forEach(function(item) {
classNames += " " + item;
});
}
return (
<div className={'sub-layout' + classNames... |
src/parser/deathknight/blood/modules/spells/azeritetraits/EternalRuneWeapon.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import Analyzer from 'parser/core/Analyzer';
import TraitStatisticBox, { STATISTIC_ORDER } from 'int... |
src/client/scenes/Guild/ChannelList/index.js | kettui/webcord-web-app | import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import CSSTransitionGroup from 'react-addons-css-transition-group'
import { Button, Item, Segment, Sidebar } from 'semantic-ui-react';
import Channels from './Channels';
import VoiceChannelInfo from './VoiceChannelInfo';
import { ... |
src/mui/input/NullableBooleanInput.spec.js | RestUI/rest-ui | import assert from 'assert';
import { shallow } from 'enzyme';
import React from 'react';
import { NullableBooleanInput } from './NullableBooleanInput';
describe('<NullableBooleanInput />', () => {
const defaultProps = {
input: {},
meta: {},
translate: x => x,
};
it('should give t... |
src/mui/field/NumberField.spec.js | epwqice/admin-on-rest-old-man | import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import { NumberField } from './NumberField';
describe('<NumberField />', () => {
it('should return null when the record is not set', () => assert.equal(
shallow(<NumberField source="foo" />).html(),
null,
... |
assets/jqwidgets/jqwidgets-react/react_jqxinput.js | juannelisalde/holter | /*
jQWidgets v4.5.4 (2017-June)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export default class JqxInput extends React.Component {
componentDidMount() {
let options = this.manageAttributes();
this.createCo... |
src/widget/Text.js | dudongge/DDGMeiTuan | /**
* Copyright (c) 2017-present, dudongge
* All rights reserved.
*
* https://github.com/dudongge/DDGMeiTuan
* copyright by dudodongge
*/
import React from 'react';
import ReactNative, { StyleSheet, Dimensions, Text ,ReactElement} from 'react-native';
import color from './color'
export function HeadingBig({sty... |
packages/ui-toolkit/src/styleguide/sectionHeading.js | geek/joyent-portal | import React from 'react';
import styled from 'styled-components';
import cx from 'classnames';
import Styled from 'react-styleguidist/lib/rsg-components/Styled';
import remcalc from 'remcalc';
const styles = ({ color, fontFamily, fontSize }) => ({
heading: {
margin: remcalc(24),
marginLeft: 0,
color: co... |
src/routes/admin/Components/CKEditor/index.js | luanlv/comhoavang | /* global CKEDITOR */
import React from 'react';
import {Modal, Form, Input, Icon, Tooltip, Button, Switch, DatePicker, Select, Row, Col, Card, Tabs, Affix, message} from 'antd';
import ReactResizeDetector from 'react-resize-detector';
import VisibilitySensor from 'react-visibility-sensor'
import ImageSelect from '../I... |
src/svg-icons/action/flight-land.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
web/react/app.js | tribou/near-earth-asteroids | import React from 'react';
import ReactDOM from 'react-dom';
import Index from './components/Index.jsx';
import '../styles/app.scss';
// Render the React Index into DOM at #app
ReactDOM.render(
React.createElement(Index),
document.getElementById('app')
);
|
hbw/app/javascript/packs/hbw/components/shared/element/icon.js | latera/homs | import React from 'react';
const HydraIcon = () => (
<svg className="hbw-icon-svg" version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px"
width="241.667px" height="235.5px" viewBox="0 0 241.667 235.5" enableBackground="new 0 0 241.667 235.5">
<path className="hbw-icon-svg-path" fillRule="evenodd" c... |
src/layouts/CoreLayout.js | mastermind1981/react-redux-starter-kit | import React from 'react';
import 'styles/core.scss';
export default class CoreLayout extends React.Component {
static propTypes = {
children : React.PropTypes.element
}
constructor () {
super();
}
render () {
return (
<div className='page-container'>
<div className='view-containe... |
docs/src/app/components/pages/components/TextField/ExampleError.js | pancho111203/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleError = () => (
<div>
<TextField
hintText="Hint Text"
errorText="This field is required"
/><br />
<TextField
hintText="Hint Text"
errorText="The error text can be as long as you want, i... |
src/components/books/edit-page/BookInformation.js | great-design-and-systems/cataloguing-app | import { ImageUpload, SearchSelector, TextInput } from '../../common/';
import {
LABEL_AUTHOR,
LABEL_BOOK_COVER,
LABEL_EDITION,
LABEL_ISBN_10,
LABEL_ISBN_13,
LABEL_NUMBER_OF_PAGES,
LABEL_PUBLISHED_DATE,
LABEL_PUBLISHER,
LABEL_SERIES_TITLE,
LABEL_SUB_TITLE,
LABEL_TITLE,
MESSAGE_AUTHOR_REQUIRED,
... |
docs/app/src/pages/guides/Etc.js | tercenya/compendium | import React from 'react';
import { CodeExample, CondLang, NavMain, PageHeader, PageFooter, A } from '../../components';
const Overview = (props) => {
return (
<div>
<NavMain activePage="guides" />
<PageHeader
title="The remainder"
subTitle="A survey of the other APIs"
/>
... |
app/components/Currency.js | schwuk/fx_u_like | import React from 'react';
import CurrencyAmount from '../containers/CurrencyAmount';
import CurrencyChooser from '../containers/CurrencyChooser';
export default class Currency extends React.Component {
render() {
const direction = this.props.direction;
const id = "currency_" + direction;
return (
... |
src/components/common/svg-icons/device/signal-cellular-null.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularNull = (props) => (
<SvgIcon {...props}>
<path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellularNull = pure(DeviceSignalCellularNull);
DeviceSignalCellularN... |
src/pages/blog.js | prodigygod0209/prodigygod0209.github.io | import React from 'react';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import styled , { injectGlobal, keyframes } from 'styled-components';
// import '../css/index.css'; // add some style if you want!
import Header from '../components/header.js'
import PostCard from '../components/post-card.js'
... |
examples/gh-pages/components/Intro.js | broucz/react-inline-grid | import React, { Component } from 'react';
import { Row, Cell } from 'react-inline-grid';
import { COLOR } from '../constants';
import Box from './Box';
const { gray, primary } = COLOR;
class Intro extends Component {
render() {
return (
<div>
<Row>
<Cell is="3 tablet-4 phone-4"><Box colo... |
app/components/TouchableItem/index.android.js | JSSolutions/Perfi | import T from 'prop-types';
import React from 'react';
import {
TouchableNativeFeedback,
TouchableOpacity,
Platform,
View,
} from 'react-native';
const noop = () => {};
const Button = ({
onPress = noop,
onLongPress = noop,
onLayout = noop,
children,
rippleColor,
style,
backgroundType,
borderle... |
app/jsx/blueprint_courses/components/CourseFilter.js | djbender/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... |
app/components/presentation/PasswordChangeForm.js | PHPiotr/phpiotr4 | import React from 'react';
import Button from 'material-ui/Button';
import {FormControl} from 'material-ui/Form';
import Input, {InputLabel, InputAdornment} from 'material-ui/Input';
import IconButton from 'material-ui/IconButton';
import Visibility from 'material-ui-icons/Visibility';
import VisibilityOff from 'materi... |
src/svg-icons/av/branding-watermark.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (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 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
src/js/components/video/ProgressBar.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Box from '../Box';
import CSSClassnames from '../../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.VIDEO;
export defa... |
src/react/JSONTree/JSONArrow.js | jackielii/redux-devtools | import React from 'react';
const styles = {
base: {
display: 'inline-block',
marginLeft: 0,
marginTop: 8,
marginRight: 5,
'float': 'left',
transition: '150ms',
WebkitTransition: '150ms',
MozTransition: '150ms',
borderLeft: '5px solid transparent',
borderRight: '5px solid trans... |
app/scripts/components/itemList.js | kroupaTomass/Rondo-kuchyne | import React from 'react';
class ItemList extends React.Component {
constructor(){
super();
}
render() {
var items = this.props.items.map(item => <li key={ item }>{ item }</li>),
loading = this.props.loading ? <div className="loading-label">Loading...</div> : '';
return (
<div>
... |
app/addons/activetasks/components/tableheader.js | michellephung/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/js/jobs/components/map/DetailPanel.js | tpucci/jobads-webapp | import React from 'react';
import AppBar from 'material-ui/AppBar';
import NavigationClose from 'material-ui/svg-icons/hardware/keyboard-arrow-left';
import IconButton from 'material-ui/IconButton';
import Snackbar from 'material-ui/Snackbar';
import LinearProgress from 'material-ui/LinearProgress';
import LocationIcon... |
app/components/Seat/ButtonOpenSeat.js | VonIobro/ab-web | /**
* Created by jzobro 20170518
*/
import React from 'react';
import PropTypes from 'prop-types';
import {
ButtonIcon,
ButtonStyle,
ButtonText,
SeatWrapper,
} from './styles';
const styles = {
width: '66px',
height: '44px',
opacity: 0.5,
marginTop: '20px',
};
const ButtonOpenSeat = ({ coords }) => (
... |
app/javascript/flavours/glitch/features/composer/upload_form/progress/index.js | vahnj/mastodon | // Package imports.
import PropTypes from 'prop-types';
import React from 'react';
import {
defineMessages,
FormattedMessage,
} from 'react-intl';
import spring from 'react-motion/lib/spring';
// Components.
import Icon from 'flavours/glitch/components/icon';
// Utils.
import Motion from 'flavours/glitch/util/... |
react/src/components/dashboard/tools/toolsOfflineSigScan.js | pbca26/EasyDEX-GUI | import React from 'react';
import translate from '../../../translate/translate';
import addCoinOptionsAC from '../../addcoin/addcoinOptionsAC';
import Select from 'react-select';
import {
triggerToaster,
apiToolsBalance,
apiToolsBuildUnsigned,
apiToolsPushTx,
apiToolsSeedToWif,
apiToolsWifToKP,
apiElectru... |
src/todoAppRedux/components/TodoAppReduxIsolated.js | yosuzuk/react-playground | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducers from '../reducers';
import TodoAppRedux from './TodoAppRedux';
class TodoAppReduxIsolated extends Component {
constructor(props) {
super(props);
this.store = createStore(
... |
server/sonar-web/src/main/js/apps/projects/main.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
app/javascript/mastodon/features/ui/components/mute_modal.js | foozmeat/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
import { muteAccount }... |
Server/app/assets/javascripts/components/PageTitleComponent.js | codemeow5/InstFlow | import React from 'react';
export default React.createClass({
render: function(){
return (
<div className="page-title">
<h1>{this.props.title}</h1>
</div>
);
}
}); |
src/Fade.js | lzcmaro/react-ratchet | import React from 'react';
import classNames from 'classnames';
import Transition from './Transition';
import deprecated from 'react-prop-types/lib/deprecated';
class Fade extends React.Component {
render() {
let timeout = this.props.timeout || this.props.duration;
return (
<Transition
{...thi... |
react-flux-mui/js/material-ui/src/svg-icons/av/art-track.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
app/screens/containers/buyer/order.js | yiyinsong/react-native-example-jdh | /**
* component list
*/
import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
FlatList,
TouchableOpacity,
TouchableHighlight,
Image,
InteractionManager,
DeviceEventEmitter,
Modal
} from 'react-native';
import styles from '../../../css/styles';
import Orde... |
src/components/AddFriendInput.js | brtx/friendlist | import React, { Component } from 'react';
export default class AddFriendInput extends Component {
constructor(props) {
super(props);
}
onClick(e) {
e.preventDefault();
let name = this.refs.name.value;
this.props.addFriend(name);
}
render () {
return (
<div>
New Frie... |
src/server/routes.js | elyseko/iso-react-demo | import React from 'react';
import ReactDOM from 'react-dom/server';
import { RoutingContext, match } from 'react-router'
import routes from '../shared/routes';
import createLocation from '$history'
import routeUtils from '../shared/routeUtils'
let createElement = (Component, props) => {
props.data = props.params.da... |
src/components/mynew/Table.js | ArcanisCz/reduxPokus | import React from 'react';
import { List } from "immutable";
const Table = ({cols=List(), rows=List(), selected=null, onSelect}) => {
return (
<table>
<thead>
<tr>
{cols.map((col) =>
<th style={{width: col.get("width")}} key={col.get("name")}>{col... |
src/App.js | johnrenko/Portfolio | 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">
<h1>Perfection is achieved, not when there is nothing more to add, but when there is nothing le... |
docs/app/Examples/modules/Search/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import Types from './Types'
import Variations from './Variations'
const SearchExamples = () => (
<div>
<Types />
<Variations />
</div>
)
export default SearchExamples
|
ajax/libs/react-instantsearch/4.5.1/Connectors.js | joeyparrish/cdnjs | /*! ReactInstantSearch 4.5.1 | © 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) :
... |
src/index.spec.js | Zenika/hoc-react-switcher | import React from 'react'
import { mount } from 'enzyme'
import switcher, { errorMessage } from './index.jsx'
/* eslint-env mocha */
const FirstComponent = () => <div />
const SecondComponent = () => <div />
const ThirdComponent = () => <div />
const DefaultComponent = () => <div />
const getWrapped = (config, props... |
src/components/projects/project/index.js | Adutchguy/portfolio | import './_project.scss';
import React, { Component } from 'react';
class Project extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<div className='project'>
<header className='project-header'>
<a target='_blank' href={th... |
src/components/node.js | juttle/juttle-flowgraph-viz | import React, { Component } from 'react';
class Node extends Component {
render() {
let style = {
position: 'absolute',
left: this.props.position.x - this.props.width/2,
top: this.props.position.y - this.props.height/2
};
return (
<div style={... |
packages/cf-style-provider/test/index.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { StyleProvider } from '../src/index';
import felaSnapshot from '../src/felaSnapshot';
import { createComponent } from '../../cf-style-container/src/index';
import { Button } from '../../cf-component-button/src/index';
import renderer from 'react-tes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.