path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
public/js/main.js | pf12345/article-save | //初始化
import React from 'react';
import ReactDOM from 'react-dom';
import {Router, Route, hashHistory} from 'react-router';
import LoginBox from './components/login';
import RegisterBox from './components/reigster';
import List from './components/list';
import ajaxQuery from './util/ajaxQuery';
import ListActions from ... |
app/components/NavButton/index.js | MameeV/UPA | /**
*
* NavButton
*
*/
import React from 'react';
import Burger from 'material-ui/svg-icons/Navigation/menu';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import {Link} from "react-router";
import FlatButton from 'material-ui/Fla... |
src/browser/home/HomePage.js | TheoMer/este | // @flow
import * as themes from '../themes';
import React from 'react';
import {
Box,
Button,
Heading,
Image,
PageHeader,
Paragraph,
SwitchTheme,
Text,
ToggleBaseline,
} from '../../common/components';
import { Link, Title } from '../components';
const HomePage = () => (
<Box>
<Title message="... |
src/about/index.js | gadflying/profileSite | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
classic/src/scenes/wbfa/generated/FARCheck.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faCheck } from '@fortawesome/pro-regular-svg-icons/faCheck'
export default class FARCheck extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faCheck} />)
}
}
|
src/components/Posts/PostListing.js | hrasoa/react-pwa | import React from 'react';
import PropTypes from 'prop-types';
import PostListingItem from './PostListingItem';
const PostListing = ({ latestPosts: { items } }) => (
<ul className="c-post-listing">
{items.map(post => (
<li key={post.id}>
<PostListingItem {...post} />
</li>)
)}
</ul>
);
... |
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js | vanloswang/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class UserProfileContactInfo extends React.Component {
static propTypes = {
phones: React.PropTypes.arr... |
lavalab/html/node_modules/react-bootstrap/es/Label.js | LavaLabUSC/usclavalab.org | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
node_modules/react-icons/io/social-twitter.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoSocialTwitter = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m38.4 8.6c-1 1.6-2.3 2.8-3.8 3.9v0.9c0 10-7.6 21.6-21.5 21.6-4.3 0-8.2-1.2-11.6-3.4 0.6 0 1.2 0.1 1.8 0.1 3.5 0 6.8-1.2 9.4-3.3-3.3 0-6.1-2.2-7.1-5.2 0.5 0.1 1 ... |
www/templates/template-doc-layout.js | benkroeger/keystone | import React from 'react';
require('../css/prism-coy.css');
require('../css/styles.css');
require('typeface-roboto');
import Page from './template-doc-page';
import Navbar from '../components/Navbar';
export default class DocumentLayout extends React.Component {
constructor (props) {
super(props);
this.getNavIt... |
examples/js/selection/demo.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import SingleSelectTable from './single-select-table';
import MultiSelectTable from './multi-select-table';
import ClickToSelectTable from './click-to-select-table';
import DefaultSelectTable from './default-select-table';
import SelectBgColorTable from './select-bgcol... |
docs/app/Examples/elements/Segment/Types/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SegmentTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Segment'
description='A ... |
app/containers/AddTodoScene.js | live106/todo-for-react-native | import React, { Component } from 'react';
import {
View,
ScrollView,
Button,
} from 'react-native';
import { connect } from 'react-redux';
import { themable } from '../themes';
import { addTodo } from '../actions';
import AddTodo from '../components/AddTodo';
class NewTodo extends Component {
constructor(props... |
src/layouts/CoreLayout/CoreLayout.js | bharley/manga-reader | import React from 'react';
import { Grid } from 'react-bootstrap';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Bootstrap from 'bootstrap/dist/css/bootstrap.css'; // eslint-disable-line no-unused-vars
import '../../styles/core.scss... |
src/Parser/Druid/Guardian/Modules/Features/GuardianOfElune.js | enragednuke/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import Comb... |
frontend/src/components/icons/Falafel.js | webrecorder/webrecorder | import React from 'react';
function Falafel() {
return (
<svg width="12" height="12" enableBackground="new 0 0 32 32" version="1.1" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
<path d="M13,16c0,1.654,1.346,3,3,3s3-1.346,3-3s-1.346-3-3-3S13,14.346,13,16z" />
<path d="M13,26c0,1.654,1.346,... |
app/react-icons/fa/strikethrough.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaStrikethrough extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m39.3 20q0.3 0 0.5 0.2t0.2 0.5v1.4q0 0.4-0.2 0.6t-0.5 0.2h-38.6q-0.3 0... |
test/render-to-string/components/nested-relations.js | Brogency/baobab-react-resolver | import React from 'react';
import { SchemaBranchMixin, BranchMixin } from 'baobab-react-mixins';
import { ResolveMixin } from '../../../src';
import { getUser, getProfile, getSettings } from '../../services';
const Profile = React.createClass({
displayName: 'Profile',
mixins: [SchemaBranchMixin, ResolveMixin]... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/FormControlStatic.js | JamieMason/npm-cache-benchmark | 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/client.js | Grusteam/spark-in-me |
import React from 'react';
import ReactDOM from 'react-dom';
import FastClick from 'fastclick';
import UniversalRouter from 'universal-router';
import queryString from 'query-string';
import { createPath } from 'history/PathUtils';
import history from './core/history';
import App from './components/App';
import { upd... |
src/icons/SocialSnapchat.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialSnapchat extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M495.998,360.389l-0.189-14.501l-14.398-1.278c-15.413-1.396-43.8-7.219-54.301-16.9
c-16.281-15.011-35.688-36... |
modules/admin/client/components/UserLink.component.js | Trustroots/trustroots | // External dependencies
import React from 'react';
import PropTypes from 'prop-types';
export default function UserLink({ user }) {
if (!user || !user._id) {
return <em>Unknown</em>;
}
const { _id, displayName, username } = user;
return (
<a href={`/admin/user?id=${_id}`} title="Show user report card... |
components/partials/StudentQuestionModal.js | freyconner24/Quizzly | "use strict";
import React from 'react'
export default class StudentQuestionModal extends React.Component {
constructor(props) {
super(props);
var question = props.question;
question.answers = [];
this.state = {
isFreeResponse: false,
question: question,
};
}
componentWillMount... |
src/App.js | zurfyx/travis-build | import React, { Component } from 'react';
import logo from './travis_logo.png';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to Travis</h2>
... |
src/svg-icons/action/highlight-off.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHighlightOff = (props) => (
<SvgIcon {...props}>
<path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 1... |
src/parser/warrior/arms/CHANGELOG.js | fyruna/WoWAnalyzer | import React from 'react';
import { Aelexe, Zerotorescue, Sharrq, Matardarix, Korebian } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
export default [
{
date: new Date('2019-02-03'),
changes: <>Added a suggestion to not use <SpellLink id={SPELLS.SWEEPING_... |
js/setup.js | hz47/expensesApp |
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import App from './App';
import configureStore from './configureStore';
function setup():React.Component {
class Root extends Component {
constructor() {
super();
this.state = {
isLoading: false,
store... |
node_modules/react-router/es6/IndexRedirect.js | ZSMingNB/react-news | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
src/components/inventory.js | AdinoyiSadiq/back-office-tool | import React from 'react';
import Item from './item';
class Inventory extends React.Component {
render() {
return (
<section className="col-lg-9 col-md-12 col-sm-12 inventory">
<header>INVENTORY</header>
<div className="row">
<ul className="nav nav-tabs" role="tablist">
<li role="presentatio... |
src/containers/Header/HeaderView.js | amaurymartiny/react-redux-auth0-kit | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import * as AuthService from '../../utils/AuthService';
import './Header.css';
class HeaderView extends Component {
static propTypes = {
history: PropTypes.shape({
push: PropTypes.func.is... |
src/components/chart.js | blueeyess/redux-intermediate | import React from 'react';
import _ from 'lodash';
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';
function average(data) {
return _.round(_.sum(data)/data.length);
}
const Chart = (props) => {
return (
<div>
<Sparklines height={120} width={180} data={props.data}>... |
packages/core/stories/components/BrandBanner/BrandBanner.stories.js | massgov/mayflower | import React from 'react';
import BrandBanner from '@massds/mayflower-react/dist/BrandBanner';
import logo from '@massds/mayflower-assets/static/images/logo/stateseal.png';
import logoWhite from '@massds/mayflower-assets/static/images/logo/stateseal-white.png';
import { headerBasic } from '../Header/Header.stories';
i... |
app/actions/fieldActions.js | JasonEtco/flintcms | import React from 'react'
import { push } from 'react-router-redux'
import graphFetcher from '../utils/graphFetcher'
import { newToast, errorToasts } from './uiActions'
export const REQUEST_FIELDS = 'REQUEST_FIELDS'
export const RECEIVE_FIELDS = 'RECEIVE_FIELDS'
export const NEW_FIELD = 'NEW_FIELD'
export const DELETE... |
client/lib/convert-to-print/convert-items/illustrativeImageToReact.js | OpenWebslides/OpenWebslides | import React from 'react';
import { imgOptions } from 'constants/printViewOptions';
export default function imageObjectToReact(img, viewType, amountOfImages, level) {
const amountClassNames = {
1: 'image-single',
2: 'image-double',
3: 'image-triple',
4: 'image-quadruple' };
switch (viewType) {
... |
examples/js/column-filter/text-filter-with-default-value.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
frontend/case/DisputeForm.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {Panel} from 'react-bootstrap';
import {RichText, Msg} from '../containers';
import {EmailField, TextField, CaptchaForm, TextAreaField, SelectOption, SelectField} from '../containers/form';
import formstatus from ... |
docs/app/Examples/elements/Input/Variations/InputExampleRightCornerLabeled.js | ben174/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleLeftCornerLabeled = () => (
<Input
label={{ icon: 'asterisk' }}
labelPosition='right corner'
placeholder='Search...'
/>
)
export default InputExampleLeftCornerLabeled
|
src/Button/Button.js | react-fabric/react-fabric | import React from 'react'
import cx from 'classnames'
import onlyWhen from '../propTypes/onlyWhen'
import Icon from '../Icon'
import { glyphType } from '../propTypes'
import fabricComponent from '../fabricComponent'
import invokeWhenNotDisabled from '../util/invokeWhenNotDisabled.js'
import style from './Button.scss'... |
components/Footer.js | RomainInnocent/tpdevops | /**
* Created by Adrien on 28/06/2017.
*/
import React from 'react'
import Divider from 'material-ui/Divider';
const style = {
margin: 32,
textAlign: 'center'
};
const Footer = () => (
<div style={style}>
<Divider inset={true}/>
<p>Footer made by someone with love </p>
</div>
);
exp... |
docs/app/Examples/modules/Dropdown/Variations/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DropdownVariationsExamples = () => (
<Exa... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | ALProjects/ALProjects.github.io | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
actor-apps/app-web/src/app/components/ActivitySection.react.js | Dreezydraig/actor-platform | import React from 'react';
import classNames from 'classnames';
import { ActivityTypes } from 'constants/ActorAppConstants';
import ActivityStore from 'stores/ActivityStore';
import UserProfile from 'components/activity/UserProfile.react';
import GroupProfile from 'components/activity/GroupProfile.react';
const getS... |
examples/real-world/index.js | dherault/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
Libraries/Modal/Modal.js | alin23/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... |
server/server.js | ChuckPierce/wedding-website | import Express from 'express';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
import logger from 'morgan';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.config.dev';
import webpackDevMiddleware from 'webpack-dev-middleware';
impor... |
component/templates/component.js | larsonjj/generator-neopolitan | 'use strict';
import React from 'react';
class <%= _.classify(name.toLowerCase()) %> extends React.Component {
render() {
return (
<div>
<p ref="p"><%= name.toLowerCase() %> component</p>
</div>
);
}
}
export default <%= _.classify(name.toLowerCase()) %>;
|
examples/glamorous/src/index.js | calvinrbnspiess/react-static | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
// Your top level component
import App from './App'
// Export your top level component (for static rendering)
export default App
// Render your app
if (typeof document !== 'undefined') {
const render = Comp =... |
node_modules/_rc-util@4.1.0@rc-util/es/Children/mapSelf.js | ligangwolai/blog | import React from 'react';
function mirror(o) {
return o;
}
export default function mapSelf(children) {
// return ReactFragment
return React.Children.map(children, mirror);
} |
src/svg-icons/image/brightness-6.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness6 = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"/>... |
src/svg-icons/places/ac-unit.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAcUnit = (props) => (
<SvgIcon {...props}>
<path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.2... |
src/js/components/Tags/Index.js | appdev-academy/appdev.academy-react | import React from 'react'
import { Link } from 'react-router'
import { inject, observer } from 'mobx-react'
import TableBody from './TableBody'
import ConfirmationDialog from '../ConfirmationDialog'
@inject('tagsStore')
@observer
export default class Index extends React.Component {
constructor(props) {
super... |
client/containers/Root.prod.js | YaFeiWyf/React-Blog | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import App from './App';
export default class Root extends Component {
render() {
const { store } = this.props;
return (
<Provider store={store}>
<App />
</Provider>
);
}
}
|
src/components/Charts/Line/index.js | ascrutae/sky-walking-ui | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
app/modules/components/game/game.js | alexmdodge/gridgrind | /* eslint import/no-unresolved: [2, { ignore: ['pixi|p2$'] }] */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
*
*
* [][][] [][][] [][][] [][][] [][][] [][][] [][][] [] [] [][][]
* [] [] [] [] [] [] [] [] [] [] [][] [] [] []
* [] [][] [][... |
dashboard/app/components/SDBDescriptionField/SDBDescriptionField.js | tlisonbee/cerberus-management-service | import React from 'react'
import { Component } from 'react'
import PropTypes from 'prop-types'
import * as cms from '../../constants/cms'
/**
* Component for an Add Button (a button with a plus and a message)
*/
export default class SDBDescriptionField extends Component {
static propTypes = {
description... |
components/timer.js | raquelxmoss/markdown-writer | import React from 'react'
import { connect } from 'react-redux'
import { updateTimer } from '../actions/timer_actions'
const Timer = React.createClass({
componentDidMount() {
this.timer = window.setInterval(this.tick, 60000)
window.onblur = () => this.clearTimer()
window.onfocus = () => this.restartTim... |
app/index.js | verseatile/redux-almost | /**
* THE MAIN OF MAIN
*/
import React from 'react'
import { render } from 'react-dom'
import App from './components/App'
import './styles/main.css'
import msg_app from './reducers/reducer_index'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
console.log('its webpack bruh')
//this funct... |
src/scenes/firstSwiper.js | Seeingu/borrow-book | /*
首次进入时加载的Swiper
*/
import React, { Component } from 'react';
import {
Text,
View,
Image,
StatusBar,
TouchableOpacity,
} from 'react-native';
import Swiper from 'react-native-swiper';
import ViewPage from '../components/view';
import { width } from '../utils/DimensionUtil';
const styles = {
wrapper: {... |
src/svg-icons/device/signal-wifi-2-bar-lock.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi2BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
src/svg-icons/image/looks-5.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks5 = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/>
</SvgI... |
src/package/plugins/slate-list-plugin/ListNode.js | abobwhite/slate-editor | import React from 'react'
const ListNode = ({ children }) => (
<b>
{children}
</b>
)
export default ListNode
|
app/javascript/mastodon/features/account_gallery/components/media_item.js | lynlynlynx/mastodon | import Blurhash from 'mastodon/components/blurhash';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
import { autoPlayGif, displayMedia, useBlurhash } from 'mastodon/initial_state';
import { isIOS } from 'mastodon/is_mobile';
import PropTypes from 'prop-types';
import React from 'react... |
src/svg-icons/communication/phonelink-setup.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkSetup = (props) => (
<SvgIcon {...props}>
<path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1... |
packages/arwes/src/Line/sandbox.js | romelperez/prhone-ui | import React from 'react';
import Line from './index';
export default () => (
<div style={{ padding: '20px' }}>
<Line animate />
<Line animate layer="success" />
<Line animate layer="alert" />
</div>
);
|
modules/RoutingContext.js | aastey/react-router | import React from 'react'
import invariant from 'invariant'
import getRouteParams from './getRouteParams'
const { array, func, object } = React.PropTypes
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the history object and the current location in context.
*/
const RoutingC... |
src/parser/priest/holy/modules/talents/30/Perseverance.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import ItemHealingDone from 'interface/others/ItemHealingDone';
import { formatPercentage, formatThousands } from ... |
client/kriegspiel.js | carpeliam/kriegspieljs | import React from 'react';
import Board from './board';
import SeatList from './seat-list';
import Room from './room';
import UserNamePrompter from './username-prompter';
import PawnPromotionPrompter from './pawn-promotion-prompter';
export default function Kriegspiel() {
return (
<div style={{display: 'flex'}}>... |
src/components/layout/DefaultLayout.js | landrysoules/mmdb_front_react | import React from 'react';
import TopBar from '../top_bar/TopBar';
import ContentPanel from './ContentPanel';
import BottomPanel from './BottomPanel';
import SearchBarContainer from '../search/SearchBarContainer';
const DefaultLayout = () => (
<div className="container-fluid">
<TopBar />
<SearchBarContainer />
... |
src/svg-icons/editor/format-underlined.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatUnderlined = (props) => (
<SvgIcon {...props}>
<path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/>
</SvgIcon>
);
EditorF... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | Kasperr93/VHS | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
examples/Basic/index.android.js | ahanriat/react-native-blur | /**
* Basic [Android] Example for react-native-blur
* https://github.com/react-native-community/react-native-blur
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
Image,
findNodeHandle,
StyleSheet,
Text,
View,
Dimensions,
Switch,
InteractionManager,
} from 'react-nat... |
src/search/search-bar/scope.js | KleeGroup/focus-components | import { translate } from 'focus-core/translation';
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import builder from 'focus-core/component/builder';
import find from 'lodash/collection/find';
import uniqueId from 'lodash/utility/uniqueId';
import 'material-design-l... |
src/chat/members/MemberDetailView.js | elarasu/roverz-chat | import React, { Component } from 'react';
import {
View,
ScrollView,
Text,
Dimensions,
StyleSheet,
} from 'react-native';
import PropTypes from 'prop-types';
import { CachedImage } from 'react-native-img-cache';
import UserAvatar from 'react-native-user-avatar';
import t from '../../i18n/';
import AppUtil f... |
mobile-site/containers/SignupDoneContainer.js | goominc/goommerce-react | // Copyright (C) 2016 Goom Inc. All rights reserved.
import React from 'react';
import { connect } from 'react-redux';
import SignupDone from 'components/user/SignupDone';
const SignupDoneContiner = React.createClass({
render() {
return (
<SignupDone {...this.props} />
);
},
});
export default con... |
node_modules/react-native/Libraries/Components/MapView/MapView.js | hpdmitriy/Bjj4All | /**
* 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/cra-react15/src/index.js | storybooks/storybook | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import global from 'global';
import App from './App';
const { document } = global;
ReactDOM.render(<App />, document.getElementById('root'));
|
webapp/docs/routes/home/index.js | oorococo/smcoco_com | // @flow
import React from 'react'
export default () => ( <
div >
<
h2 > sdf-- - < /h2> <
/div>
)
|
componentes/Menus.js | yomi-network/app | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
ScrollView,
TouchableHighlight,
TouchableOpacity,
Button,
Alert,
TextInput,
Switch
} from 'react-native';
import {StackNavigator} from 'react-navigation';
import DB from './DB'
var DBEvents = require('react-native-db... |
node_modules/react-router/es/IndexLink.js | meetdheeraj/NewsAggregator | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from './Link';
/**
*... |
client/js/components/ProductsList/index.js | mysteryihs/guan_shu_v2 | import React from 'react'
import UniversalLink from 'components/UniversalLink'
import Product from 'components/Product'
export default (props) => {
const { products, currency } = props
return (
<div>
{products.map((product) => <Product key={product.id} product={product} currency={currency} />)}
</div... |
src/ModalFooter.js | blue68/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalFooter extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalFooter.... |
docs/src/app/components/pages/components/CircularProgress/Page.js | andrejunges/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 circleProgressReadmeText from './README';
import circleProgressCode from ... |
src/containers/DevTools/DevTools.js | bingomanatee/react-redux-universal-hot-example-mdl | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor />
</Dock... |
src/routes/TestTask/TestTaskComponent.js | raviprajna/AttributesValues | import React from 'react'
import './TestTaskComponent.scss'
import { Row, Col } from 'react-bootstrap'
import { colorConstant } from './TestTaskUtil.js'
const AttributeItem = ({attribute, toggleSelection}) => {
return (
<div className={ attribute.isSelected ? "selected" : "" }
onClick={() => toggleSelec... |
src/components/Header.js | ptrslr/silent-party | import React from 'react';
const Header = () => {
return (
<header className="header" role="banner">
<div className="container">
<h1 className="header-logo logo">
<a className="logo-link link-reset" href="index.html">SilentParty</a>
</h1>
</div>
</header>
)
}
export default Header;
|
public/scripts/components/applicant-card.js | asarode/flux-grok | 'use strict'
import React from 'react'
import cx from 'classname'
class ApplicantCard extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
render() {
let {
className,
firstName,
lastName,
bio,
status,
createdAt
} = this.props
ret... |
app/javascript/mastodon/containers/status_container.js | MitarashiDango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Status from '../components/status';
import { makeGetStatus, makeGetPictureInPicture } from '../selectors';
import {
replyCompose,
mentionCompose,
directCompose,
} from '../actions/compose';
import {
reblog,
favourite,
bookmark,
unreb... |
src/frontend/components/custom-checkbox.js | PiTeam/garage-pi | import React from 'react';
import Checkbox from 'material-ui/lib/checkbox';
import { getGenericPropType } from 'proptypes';
const CustomCheckbox = ({ onCheckFn, item, ...rest }) => {
const _onCheck = (e, value) => onCheckFn(item.get('id'), value);
return <Checkbox onCheck={_onCheck} {...rest} />;
};
CustomCheckb... |
js/App/Components/Device/AddDevice/Include433.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
src/js/components/Table.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import SpinningIcon from './icons/Spinning';
import InfiniteScroll from '../utils/InfiniteScroll';
import Selection from '../utils/Sele... |
analysis/warlockdemonology/src/modules/talents/BilescourgeBombers.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import { formatThousands } from 'common/format';
import STATISTIC_CATEGORY from 'parser/ui/STATISTIC_CATEGORY';
import Statistic from 'parser/ui/Sta... |
app/react-icons/fa/registered.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaRegistered extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m23.3 15.7q0-2-1.4-2.7-0.7-0.4-2.6-0.4h-2.7v6.3h3.6q1.5 0 2.3-0.9t0.8-2.3... |
src/components/Main.js | bobo2016/react-gallery-demo | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
//Get image related data
let imageDatas = require('../data/imageDatas.json');
/*let yeomanImage = require('../images/yeoman.png');*/
// Get image Url from imageDatas.json filename
//Use ... |
app/javascript/mastodon/features/introduction/index.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { closeOnboarding } from '../../actions/onboarding';
import screenHell... |
src/svg-icons/notification/airline-seat-legroom-normal.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomNormal = (props) => (
<SvgIcon {...props}>
<path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1.... |
demo08/src/components/Articles/NeedComment.js | lxlneo/reactdemo | import React, { Component } from 'react';
import { Form, Icon, Input, Button, Checkbox } from 'antd';
import { Link } from 'dva/router';
import styles from './NeedComment.css';
import getSize from '../../utils/getSize';
const FormItem = Form.Item;
class NeedComment extends Component {
handleSubmit = (e) => {
e.p... |
src/stories/Diagrams.js | Artsdatabanken/ecomap | import React from 'react'
import { storiesOf } from '@storybook/react'
import LineDiagram from '../viewer/diagram/LineDiagram'
import BarDiagram from '../viewer/diagram/BarDiagram'
const data = [
{ name: 'Page A', uv: 4000, pv: 2400, amt: 2400 },
{ name: 'Page B', uv: 3000, pv: 1398, amt: 2210 },
{ name: 'Page C... |
src/Crosswords/UI/DefinitionsList.js | minkiele/crosswords | import React from 'react';
export default class DefinitionsList extends React.Component {
renderDefinitionsList () {
let list = [];
for(let i = 0; i < this.props.definitions.length; i += 1) {
list.push(
<li>{this.props.definitions[i]}. <input type="text" /></li>
);
}
return list;... |
src/CheckboxGroupBase.js | prometheusresearch/react-ui | /**
* @copyright 2016-present, Prometheus Research, LLC
* @flow
*/
import invariant from 'invariant';
import React from 'react';
import {noop} from './Utils';
import * as I18N from './I18N';
import * as Focus from './Focus';
import CheckboxBase from './CheckboxBase';
type Value = Array<string>;
type Option = {
... |
src/containers/leaderboard.js | TedtheDev/Tic-Tac-Toe | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import Helpers from '../helpers/helpers';
import Paper from 'material-ui/Paper';
const paperStyle = {
display:"flex",
flexDirection:"column",
justifyContent:"center",
alignItems: "cente... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.