path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
frontend/src/Components/Form/RootFolderSelectInputSelectedValue.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import formatBytes from 'Utilities/Number/formatBytes';
import EnhancedSelectInputSelectedValue from './EnhancedSelectInputSelectedValue';
import styles from './RootFolderSelectInputSelectedValue.css';
function RootFolderSelectInputSelectedValue(props) {
... |
test/components_test/form-inputs/time.js | aichbauer/redux-valid-form | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import Time from '../../../src/components/form-inputs/time';
test('Time | default props', (t) => {
const timeWrapper = shallow(<Time />);
t.deepEqual(timeWrapper.props(), {
type: 'time',
'data-form-id': '',
className... |
fields/components/CollapsedFieldLabel.js | ONode/keystone | import React from 'react';
import { Button } from '../../admin/client/App/elemental';
// NOTE marginBottom of 1px stops things jumping around
// TODO find out why this is necessary
function CollapsedFieldLabel ({ style, ...props }) {
const __style__ = {
marginBottom: 1,
paddingLeft: 0,
paddingRight: 0,
...st... |
css2/app.js | kgraves/learnyoureact-lessons | import React from 'react';
import ReactDOM from 'react-dom';
import TodoBox from './views/index.jsx';
let data = JSON.parse(document.getElementById('initial-data').getAttribute('data-json'));
ReactDOM.render(<TodoBox data={data} />, document.getElementById("app"));
|
lib/optionList.js | zeeskhan1990/react-native-option-select | const Overlay = require('./overlay');
const Items = require('./items');
import React, { Component } from 'react';
import {
Dimensions,
StyleSheet,
View,
NativeModules,
findNodeHandle
} from 'react-native';
const window = Dimensions.get('window');
class OptionList extends Component {
constructor(props) {
... |
examples/Basic/Menu.js | Kureev/react-native-side-menu | import React from 'react';
import PropTypes from 'prop-types';
import {
Dimensions,
StyleSheet,
ScrollView,
View,
Image,
Text,
} from 'react-native';
const window = Dimensions.get('window');
const uri = 'https://pickaface.net/gallery/avatar/Opi51c74d0125fd4.png';
const styles = StyleSheet.create({
menu:... |
src/js/components/Nav/stories/CustomThemed/CustomAnchor.js | HewlettPackard/grommet | import React from 'react';
import { Anchor, Box, Grommet, Main, Nav } from 'grommet';
import { grommet } from 'grommet/themes';
import { deepMerge } from 'grommet/utils';
const navItems = [
{ label: 'HTML', href: '#' },
{ label: 'JS', href: '#' },
{ label: 'CSS', href: '#' },
{ label: 'REACT', href: '#' },
];... |
src/svg-icons/image/tonality.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTonality = (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 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.... |
src/main.js | antoinegrant/react-flux-01 | import React from 'react';
import store from './stores/store';
import App from './components/App';
React.render(React.createElement(App, null), window.document.getElementById('app')); |
src/app/core/atoms/icon/icons/edit.js | blowsys/reservo | import React from 'react'; const Edit = (props) => <svg {...props} x="0px" y="0px" viewBox="0 0 14.173 14.173"><path d="M9.185,0.86L0.907,9.141l-0.046,4.172l4.172-0.046l8.279-8.281L9.185,0.86z M11.182,4.987l-1.128,1.128 L8.06,4.117l1.126-1.126L11.182,4.987z M4.402,11.768l-0.844,0.009l-1.161-1.161l0.009-0.844l4.588-4.59... |
packages/material-ui-icons/src/MovieCreation.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z" /></g>
, 'MovieCreation');
|
docs/app/Examples/elements/Button/Types/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ButtonTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Button'
description='A st... |
src/svg-icons/action/perm-scan-wifi.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermScanWifi = (props) => (
<SvgIcon {...props}>
<path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/>
</SvgIcon>
);
ActionPermScanWifi = pure(A... |
public/components/tehtPage/tabsComponents/pohjapiirrokset/subcontent/SubitemContent.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { connect } from 'react-redux';
import GMap from '../../reusables/googleMaps/GMap';
import GStreetView from '../../reusables/googleMaps/GStreetView';
import SubitemImage from '../../reusables/templates/SubitemImage';
const SubitemContent = (props) => {
if(props.maptype === 'roadma... |
src/svg-icons/maps/train.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTrain = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
src/components/common/cards/MediaCard.js | landrysoules/mmdb_front_react | import React from 'react';
import Img from 'react-image';
import { IMAGE_PROFILE_PATH } from '../../../constants/paths';
import ClipLoader from 'react-spinners';
import './MediaCard.css';
import moment from 'moment';
import CircularProgressbar from 'react-circular-progressbar';
import 'react-circular-progressbar/dist/s... |
ui/mobile/src/screens/HomeScreen.js | ivosh/jcm2018 | import React from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View
} from 'react-native';
import { WebBrowser } from 'expo';
import { MonoText } from '../components/StyledText';
export default class HomeScreen extends React.Component {
static navigationOptions = ... |
src/components/TopMenu.js | jmporchet/bravakin-client | import React from 'react';
import { Link } from 'react-router-dom'
class TopMenu extends React.Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
isOpen: false
};
}
toggle() {
this.setState({
isOpen: !this.state.isOpen
});
}
... |
demo/views/tables/cssbg/cssbg.js | ShirlyKong/components_demo | import React, { Component } from 'react';
import './cssbg.css';
export default class CssBg extends Component {
render() {
return (
<div>
<div className="vp20 txt">
<ul>说明:
<li>本页主要采用css background-image:linear-gradient()属性实现的各种背景图案, 以及切角效果。</li>
... |
src/components/DataTable/DataTable.js | yunqiangwu/kmadmin | import React from 'react'
import PropTypes from 'prop-types'
import { Table } from 'antd'
import { request } from 'utils'
import lodash from 'lodash'
import './DataTable.less'
class DataTable extends React.Component {
constructor (props) {
super(props)
const { dataSource, pagination = {
showSizeChanger... |
examples/js/utils.js | neelvadgama-hailo/react-bootstrap-table | import React from 'react';
function renderLinks(examplePath) {
const gitHubBase = 'https://github.com/AllenFang/react-bootstrap-table/tree/master/examples/js';
return (
<h5>Source in
<a href={ `${gitHubBase}/${examplePath}` } target='_blank'> /examples/js/{ examplePath }</a>
</h5>
);
}
export defa... |
webgui/src/routes/index.js | ZetaTwo/RESTenAvSverige | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from '../screens/app';
import Start from '../screens/start';
const url = "http://localhost:5000";
export const API = {
yrkesgrupper: url + "/yrkesgrupper",
search: url + "/search",
geografi: url + "/geografi",
};
export def... |
Libraries/Image/Image.ios.js | xiayz/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... |
examples/disable-esc/components/App.js | chentsulin/react-redux-sweetalert | import React, { Component } from 'react';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import createLogger from 'redux-logger';
import { Provider } from 'react-redux';
import { reducer } from 'react-redux-sweetalert'; // eslint-disable-line
import 'sweetalert/d... |
src/pages/paper/paperInfo/index.js | sunway-official/acm-admin | import React from 'react';
import { Col, Row } from 'react-flexbox-grid';
const S3_GET_PREFIX = process.env.REACT_APP_S3_GET_PREFIX;
const PaperInfo = props => {
return (
<section className="paper-section">
<Row className="paper-card" around="xs">
<Col xs={12} sm={12} md={12} lg={12} className="pa... |
feedly-search/node_modules/eslint-config-airbnb/test/test-react-order.js | uraway/Learnings | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import baseConfig from '../base';
import reactRules from '../rules/react';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: {indent: 0},
});
function... |
react/features/room-lock/components/RoomLockPrompt.native.js | parisjulien/arkadin-jitsimeet | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Dialog } from '../../base/dialog';
import { endRoomLockRequest } from '../actions';
/**
* Implements a React Component which prompts the user for a password to lock a
* conference/room.
*/
class RoomLockPrompt extends Compon... |
docs/src/app/components/pages/components/Divider/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 dividerReadmeText from './README';
import DividerExampleForm from './Exam... |
src/components/common/svg-icons/image/camera-roll.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraRoll = (props) => (
<SvgIcon {...props}>
<path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h... |
example/examples/DisplayLatLng.js | carleryd/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView, { MAP_TYPES } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122... |
docs/src/sections/MenuItemSection.js | dozoisch/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function MenuItemSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<... |
src/components/Dashboard/index.js | leonid/react-template | import React from 'react';
import './b-dashboard.scss';
const Dashboard = React.createClass({
getInitialState: function () {
return {
analytics: [],
staff: [],
clients: []
};
},
propTypes: {
visible: React.PropTypes.bool
},
contextTypes... |
src/Portal.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import CustomPropTypes from './utils/CustomPropTypes';
import domUtils from './utils/domUtils';
let Portal = React.createClass({
displayName: 'Portal',
propTypes: {
/**
* The DOM Node that the Component will render it's children into
*/
container: CustomPropTypes.moun... |
test/containers/CounterPage.spec.js | hardchor/timesheets | import { expect } from 'chai';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import { Provider } from 'react-redux';
import CounterPage from '../../app/renderer/containers/CounterPage';
impo... |
src/repository/screens/pull-diff.screen.js | Antoine38660/git-point | /* eslint-disable react/no-array-index-key */
import React, { Component } from 'react';
import { View, ScrollView, Text, FlatList, StyleSheet } from 'react-native';
import { Card } from 'react-native-elements';
import Parse from 'parse-diff';
import { ViewContainer, DiffBlocks, CodeLine } from 'components';
import { t... |
examples/src/components/CustomRender.js | Paveltarno/react-select | import React from 'react';
import Select from 'react-select';
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
return {};
},
setValue (value) {
this.setState({ value });
console.log('Support level sel... |
client/projectDataRetriever.js | RSG-Group/website | // Import React.
import React from 'react'
// Get Material-UI, Link from Next.js and our project cards..
import {
Typography as Text, Grid, Card, CardContent, CardMedia, CardActions, Button
} from '@material-ui/core'
import Link from 'next/link'
import data from './projects'
// Create a React Component.
export defa... |
src/icons/Settings.js | kriasoft/react-static-boilerplate | /**
* React Starter Kit for Firebase
* https://github.com/kriasoft/react-firebase-starter
* Copyright (c) 2015-present Kriasoft | MIT License
*/
import React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
const Settings = React.forwardRef(function Settings(props, ref) {
const { size = 24, ...oth... |
modules/frontend/src/js/components/widgets/MapsListPaginator.js | fleximaps/fleximaps | import Paginator from './Paginator';
import React from 'react';
import { Link } from 'react-router';
export default class MapsListPaginator extends React.Component{
render(){
return <Paginator
page={this.props.page}
totalCount={this.props.totalCount}
createNumberCb={fun... |
src/parser/shaman/shared/maelstromchart/MaelstromDetails.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Panel from 'interface/statistics/Panel';
import Analyzer from 'parser/core/Analyzer';
import ResourceBreakdown from 'parser/shared/modules/resourcetracker/ResourceBreakdown';
import { formatPercentage } fro... |
src/Board.js | HJBowers/drunk-grenadier-120-Set-Game | import React, { Component } from 'react';
import _ from 'lodash'
import Card from './Card'
import Deck from './Deck'
import compareSet from './compare'
import './App.css';
export default class Board extends Component {
constructor(props) {
super(props)
this.state= {
deck: {},
grid: [],
car... |
docs/app/components/preview/index.js | rubenmoya/react-toolbox | /* eslint-disable no-eval*/
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { transform } from 'babel-standalone';
import * as ReactToolbox from 'react-toolbox';
import style from './style.css';
const ERROR_TIMEOUT = 500;
const Preview = React.createClass({
pr... |
app/javascript/mastodon/components/status.js | masto-donte-com-br/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
src/components/Section/Section.js | sjchmiela/inspirowani.pl | import React from 'react';
import classnames from 'classnames';
import './Section.scss';
export default ({ zIndex, children, className, backLayerClassName, wrapperClassName, id }) => (
<div className={classnames('Section', wrapperClassName)} style={{ zIndex: zIndex }} id={id}>
{backLayerClassName && <div classN... |
src/components/TerminalListItem.js | williamcabrera4/chrome-app-websocket-tester | import React from 'react';
import PropTypes from 'prop-types';
import Row from './Row';
import Column from './Column';
const TerminalListItem = ({ messageItem }) => {
const messageStyle = `selectable-text ${messageItem.type}`;
const dateString = new Date(messageItem.date).toTimeString();
return (
<Row classN... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/border-top.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorBorderTop = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h2v-2h-2v2zM3 3v2h18V3H3zm16 14h2v... |
assets/js/browser.js | basarevych/webfm | import './polyfills';
import utf8 from 'utf8';
import { byteDecode } from 'base64util';
import socketIOClient from 'socket.io-client';
import sailsIOClient from 'sails.io.js/sails.io';
import './lib/i18n';
import Breakpoints from 'breakpoints-js';
import React from 'react';
import { hydrate } from 'react-dom';
import c... |
paraviewweb/src/React/CollapsibleControls/PlotlyChartControl/PieChart.js | CordyChen/VisMechan | import React from 'react';
import style from 'PVWStyle/ReactWidgets/PlotlySelectionWidgets.mcss';
const PlotlyPieChartWidget = (props) => {
function handleChange(event) {
const rootContainer = event.target.parentNode.parentNode.parentNode;
const newLabelArray = rootContainer.querySelector('.jsLabels').value;... |
src/pages/muse.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Muse' />
)
|
app/containers/App.js | joshuef/peruse | // @flow
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './app.css';
import nessieStyles from 'nessie-ui/dist/styles.css';
import { SpriteMap } from 'nessie-ui';
export default class App extends Component
{
static propTypes = {
children : PropTypes.element.... |
examples/forms-bootstrap/src/components/dialogs-update-wizard/Hook.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
export default createReactClass({
displayName: 'Hook',
propTypes: {
model: PropTypes.object.isRequired
},
render: function() {
const { model } = this.props;
return (
<div style... |
src/svg-icons/file/cloud-download.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDownload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-... |
src/forms/CheckAgeForm/CheckAgeForm.js | davecarlson/reacty | import React from 'react'
import { reduxForm } from 'redux-form'
import classes from './CheckAgeForm.scss'
export const fields = ['dobDay', 'dobMonth', 'dobYear', 'rememberDob']
const validate = (values) => {
const errors = {}
if (!values.dobDay || values.dobDay.length > 2 || values.dobDay > 31 || isNaN(Number(va... |
public/js/components/activityfeed/activityContainer.react.js | MadushikaPerera/Coupley | import React from 'react';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import RaisedButton from 'material-ui/lib/raised-button';
import ActivityfeedAction from '../../actions/ActivityFeed/ActivityfeedAction';
import StatusStore from '../../stores/StatusStore';
... |
src/svg-icons/editor/border-top.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderTop = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h... |
shared/components/Admin/Employee/Employee.js | KCPSoftware/KCPS-React-Starterkit | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import ActionBar from '../../SubComponents/ActionBar';
import { getAllEmployees, deleteEmployee } from '../../../actions/employeeAction';
@connect(store => ({
isLoggedIn: store.user.isLoggedIn,
isLoa... |
imports/ui/components/commentary/CommentaryPanel/CommentaryPanel.js | pletcher/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import { createContainer } from 'meteor/react-meteor-data';
import FlatButton from 'material-ui/FlatButton';
import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import Commentary f... |
command-reference-files/initial/spec/client/setup.js | argosity/hippo | // Code included here will be ran to setup your specs.
// it's a usefull spot to setup globals or custom matchers
import matchers from 'hippo/testing/matchers';
import { shallow, mount } from 'enzyme';
import { fetch } from 'hippo/testing/mocks/fetch';
import React from 'react';
import 'hippo/testing';
global.expect.e... |
test/LabelTest.js | scherler/jenkins-plugin-site | import React from 'react';
import {createRenderer} from 'react-addons-test-utils';
import expect from 'expect';
import LabelWidgetItem from '../app/components/Widget/LabelWidgetItem';
const click = () => hasClicked = true;
let hasClicked = false;
const testElement = (<LabelWidgetItem
item={{
key: 'testLabel',
... |
packages/docs/src/pages/components.js | Availity/availity-uikit | import React from 'react';
import ReactHtmlParser from 'react-html-parser';
import groupBy from 'lodash.groupby';
import map from 'lodash.map';
import slugify from 'slugify';
import { graphql } from 'gatsby';
import PropTypes from 'prop-types';
import 'holderjs';
import PrismCode from 'react-prism';
import Layout from ... |
src/routes/index.js | ashelkov/hexa | import React from 'react'
import { Route, IndexRoute } from 'react-router'
// views, layouts
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
import GameView from 'views/GameView/GameView'
export default (store) => (
<Route path='/'component={CoreLayout}>
<IndexRoute component={GameView} />
</Route>
)
|
app/containers/ProfileFormContainer/components/ProfileForm.js | Proxiweb/react-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { reduxForm, Field } from 'redux-form';
import Paper from 'material-ui/Paper';
import { TextField } from 'redux-form-material-ui';
import styles from './styles.css';
import RaisedButton from 'material-ui/RaisedButton';
// import send ... |
src/decorators/withViewport.js | jhines2k7/react-starter-typescript | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
src/router/index.js | friasdesign/hotel-app--front-end | import React from 'react'
// VENDOR DEPENDENCIES _________________________________________________________
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import {Provider} from 'react-redux'
// COMPONENTS __________________________________________________________________
import AppContainer ... |
examples/website/src/parsers/js/acorn.js | w-y/ecma262-jison | import React from 'react';
import defaultParserInterface from './utils/defaultESTreeParserInterface';
import pkg from 'acorn/package.json';
const ID = 'acorn';
export default {
...defaultParserInterface,
id: ID,
displayName: ID,
version: `${pkg.version}`,
homepage: pkg.homepage,
locationProps: new Set(['... |
reprise-client/src/App.js | yurivital/reprise | import React, { Component } from 'react';
import './App.css';
import 'jquery'
import 'bootstrap';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'bootstrap/dist/js/bootstrap.min.js';
import 'font-awesome/css/font-awesome.min.css';
import 'font-awesome/fonts/fontawesome-webfont.eot';
import 'font-awesome/fonts/fo... |
src/modules/remindersList/RemindersListRenderer.js | kuzzmi/rmndrz | import React from 'react';
import FlipMove from 'react-flip-move';
import './RemindersList.scss';
import { RemindersListItem } from '../remindersListItem';
export default props =>
<div className="RemindersListComponent">
<FlipMove
staggerDurationBy={ 10 }
duration={ 120 }
... |
src/components/typography/P.js | typical000/paveldavydov | import React from 'react'
import PropTypes from 'prop-types'
import cn from 'classnames'
import injectSheet from '../../utils/jss'
const styles = {
paragraph: {
margin: [0, 0, 30, 0],
'&:last-child': {
margin: 0,
},
},
}
const P = ({classes, className, children}) => (
<p className={cn(classes.... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | stonegithubs/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ActivityHeader extends React.Component {
static propTypes = {
close: React.PropTypes.func,
title: React.PropTypes.stri... |
src/DropdownMenu.js | brynjagr/react-bootstrap | import React from 'react';
import keycode from 'keycode';
import classNames from 'classnames';
import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper';
import ValidComponentChildren from './utils/ValidComponentChildren';
import createChainedFunction from './utils/createChainedFunction';
class DropdownMenu e... |
test/integration/image-component/default/pages/index.js | zeit/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Home Page</p>
<Image id="basic-image" src="/test.jpg" width="400" height="400"></Image>
<p id="stubtext">This is the index page</p>
</div>
)
}
export default Page
|
src/index.js | kzerga/apollo-design-docs | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/widgets/PortWidget.js | woodenconsulting/react-js-diagrams | import React from 'react';
export class PortWidget extends React.Component {
constructor(props) {
super(props);
this.state = {
selected: false
};
}
render() {
const { name, node } = this.props;
return (
<div
className={`port${(this.state.selected ? ' selected' : '')}`}
... |
__tests__/index.android.js | Ch3D/ReactNativePlayground | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/modules/notification/components/Notifications.js | prescottprue/portfolio | import React from 'react'
import PropTypes from 'prop-types'
import { size } from 'lodash'
import { connect } from 'react-redux'
import { pure, compose, renderNothing, branch } from 'recompose'
import Snackbar from 'material-ui/Snackbar'
import CloseIcon from 'material-ui/svg-icons/navigation/close'
import * as actions... |
src/containers/ProductBestSeller/ProductBestSeller.js | kingpowerclick/kpc-web-backend | import React, { Component } from 'react';
import classNames from 'classnames';
import { FilterPage,
Breadcrumb } from 'components';
import { DropdownButton, MenuItem, Modal } from 'react-bootstrap';
export default class ProductBestSeller extends Component {
state = {
displayCompleteModal: false,
displayLinePro... |
src/scripts/index.js | ziflex/react-app-starter | import React from 'react';
import { render } from 'react-dom';
import {
browserHistory
} from 'react-router';
import get from 'lodash/get';
import AppComponent from './ui/components/app';
import App from './ui/application';
const container = document.createElement('div');
container.style.width = '100%';
container.... |
app/components/Profile.js | devacto/notetaker | import React from 'react';
import Repos from './Github/Repos';
import UserProfile from './Github/UserProfile';
import Notes from './Notes/Notes';
import getGithubInfo from '../utils/helpers';
import Rebase from 're-base';
const base = Rebase.createClass('https://radiant-heat-7824.firebaseio.com');
class Profile exten... |
__tests__/index.ios.js | marcw/spir | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/svg-icons/action/view-week.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewWeek = (props) => (
<SvgIcon {...props}>
<path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4... |
src/js/components/ImageUploadAndPreview.js | ludonow/ludo-beta-react | import React, { Component } from 'react';
import styled from 'styled-components';
import DropZone from 'react-dropzone';
import LightBox from 'react-image-lightbox';
import cameraIconSrc from '../../images/camera-icon.png';
import { withMaybe } from '../components/higher-order-components/index';
import axios from '../... |
ui/src/js/ranking/RankingItemLarge.js | Dica-Developer/weplantaforest | import Accounting from 'accounting';
import counterpart from 'counterpart';
import he from 'he';
import React, { Component } from 'react';
import { Link } from 'react-router';
export default class RankingItem extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div classNa... |
src/svg-icons/device/access-time.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessTime = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-1... |
app/components/views/todo-list.js | joawan/todo-ui-react | import React from 'react';
import style from 'todomvc-app-css/index.css';
import TodoItemContainer from '../containers/todo-item-container';
function TodoList(props) {
return (
<div className={style.main}>
<ul className={style.todoList}>
{props.todos.map(todo =>
(
<TodoItemContainer... |
src/common/routes.js | adamarthurryan/personal-database | import {Route, IndexRout, Redirect } from 'react-router'
import React from 'react';
import Main from './components/Main'
var routes = [
<Route path="/**" component={Main}/>,
/*
<Route path="/tag/*" component={TagFilter}/>
*/
]
export default routes
// <Route path="**" component={Entrie... |
client/modules/App/__tests__/Components/Header.spec.js | leranf/hotwireCarRentalSearch | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import { Header } from '../../components/Header/Header';
import { intl } from '../../../../util/react-intl-test-helper';
const intlProp = { ...intl, enabledLang... |
app/components/icon.js | garth/material-components | import React from 'react';
export default ({ name, style = {} }) => (
<i
style={Object.assign(
{
lineHeight: 'inherit'
},
style
)}
className={`icon-${name}`}
/>
);
|
src/components/pages/demoPage/EchoView.js | guangqiang-liu/OneM |
import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-flux";
export default class extends React.Component {
render(){
return (
<View style={[styles.container, this.props.sceneStyle]}>... |
addons/storyshots/storyshots-core/stories/required_with_context/Async.stories.js | kadirahq/react-storybook | import React from 'react';
export const EXPECTED_VALUE = 'THIS IS SO DONE';
export const TIMEOUT = 5;
class AsyncTestComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
value: '',
};
}
componentDidMount() {
setTimeout(() => {
this.setState({
... |
src/containers/RealProductList/RealProductList.js | unam3/oshop | import React from 'react';
import { Ring } from '../../components/Ring/Ring';
import { Filters } from '../../components/Filters/Filters';
import { ProductTable } from '../../components/ProductTable/ProductTable';
export default class ProductList extends React.Component {
constructor(props) {
super(props);
}
... |
src/views/Playlist/components/Header.js | Gouthamve/BINS-FRONT | import React from 'react'
import { Jumbotron, Button, Image, Grid, Row, Col } from 'react-bootstrap'
import alart from 'img/coverart1.jpg'
const Header = ({onPlayNow}) => {
return <Jumbotron>
<Grid fluid>
<Row>
<Col xs={2}>
<Image src={alart} responsive />
</Col>
<Col xs=... |
src/components/Separator.js | alphasp/pxview | import React from 'react';
import { StyleSheet, View } from 'react-native';
const styles = StyleSheet.create({
separatorContainer: {
paddingHorizontal: 10,
},
separator: {
height: StyleSheet.hairlineWidth,
backgroundColor: '#8E8E8E',
},
});
const Separator = ({ noPadding }) => (
<View style={!no... |
src/svg-icons/av/library-music.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLibraryMusic = (props) => (
<SvgIcon {...props}>
<path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57... |
app/containers/HomePage/index.js | samousavih/torang | /*
* 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... |
client/client.js | ErosZZH/gallery | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import createRoutes from 'routes';
import configureStore from 'stores/... |
test/recipe-test.js | JelenaBarinova/CookingBlogReact | import { expect } from 'chai';
import React from 'react';
import RecipeListItem from '../src/components/recipe-list-item.jsx';
import createComponent from './utils/create-component.js';
describe('Testing recipeItem component', function() {
let recipeItem;
const expectedRecipeID = 28,
expectedTitle = 'La... |
src/App.js | karatechops/grommet-docs | import React from 'react';
import { IntlProvider, addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import routes from './routes';
import { Router, useRouterHistory } from 'react-router';
import { createHistory } from 'history';
addLocaleData(en);
import { getCurrentLocale, getLocaleData ... |
demos/1_quickstart/Demo.js | woltapp/react-geoinput | import React, { Component } from 'react';
import { createGeoInput, DefaultGeoInput } from 'react-geoinput';
import styles from './Demo.css';
const DemoInput = createGeoInput(DefaultGeoInput);
class DemoView extends Component {
state = {
address: '',
geoDestination: '',
}
onAddressChange = value => thi... |
spec/index.js | rubenmoya/react-toolbox | import React from 'react';
import ReactDOM from 'react-dom';
import Root from './root';
ReactDOM.render(<Root />, document.getElementById('spec'));
|
client/app/scripts/components/app.js | alban/scope | import debug from 'debug';
import React from 'react';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { debounce } from 'lodash';
import { ThemeProvider } from 'styled-components';
import theme from 'weaveworks-ui-components/lib/theme';
import Logo from './logo';
import Footer from ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.