path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
app/javascript/mastodon/features/direct_timeline/index.js | salvadorpla/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... |
src/header/Header.js | tsengkasing/LottoStar | /**
* Created by Think on 2017/5/17.
*/
import React from 'react';
import { Link } from 'react-router-dom';
import Paper from 'material-ui/Paper';
// import AutoComplete from 'material-ui/AutoComplete';
import Sign from './sign/Sign';
import Auth from '../Auth';
import './Header.css';
import logo from './lottostar... |
src/parser/priest/holy/modules/talents/60/ShiningForce.js | sMteX/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import React from 'react';
// Example Log: /report/NcKyHD94nrj31tG2/10-Mythic+Zek'voz+-+Kill+(9:35)/3-旧时印月
class ShiningForce extends Analyzer {
... |
src/scenes/Booking/index.js | galsen0/hair-dv-front | /**
* Created by diop on 06/05/2017.
*/
import React from 'react';
import { Grid } from 'semantic-ui-react';
import ReservationCard from './components/ReservationCard/index';
import StepsReservation from './components/StepsReservation';
import CSSModules from 'react-css-modules';
import styles from './styles.scss';
... |
src/components/Icon/Banana.js | tehkaiyu/bananas | import React from 'react';
function Banana() {
return (
<svg
version="1.1"
className="icon-banana"
x="0px"
y="0px"
viewBox="0 0 208.6 334.7"
xmlSpace="preserve"
>
<g>
<path
fill="#DCAB2C"
d="M24.8,174.7c2.8,31.3,9.4,61.6,25.1,89.2c11.5,20,... |
test/FormGroupSpec.js | RichardLitt/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import FormGroup from '../src/FormGroup';
import {shouldWarn} from './helpers';
describe('FormGroup', function() {
it('renders children', function() {
let instance = ReactTestUtils.renderIntoDocument(
<FormGroup>
<spa... |
src/components/TextInputCSSModules/TextInputCSSModules.js | patchygreen/ps-react-patchygreen | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
import styles from './textInput.css';
/** Text input with integrated label to enforce consistency in layout, error display, label placement */
function TextInputCSSModules({htmlId, name, label, type = 'text', required = false,... |
Paths/React/05.Building Scalable React Apps/9-react-boilerplate-building-scalable-apps-m9-exercise-files/Before/app/app.js | phiratio/Pluralsight-materials | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
ui/src/pages/PeopleManagePage/IfiEditor/index.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import { compose, setPropTypes, defaultProps } from 'recompose';
import IfiAccountEditor from './IfiAccountEditor';
import IfiMboxEditor from './IfiMboxEditor';
import IfiMboxShaEditor from './IfiMboxShaEditor';
import IfiOpenIdEditor from './IfiOpenIdEdito... |
Magistrate/client/components/roles/roleSelector.js | Pondidum/Magistrate | import React from 'react'
import SelectorDialog from '../SelectorDialog'
var RoleSelector = React.createClass({
open() {
this.refs.dialog.open();
},
render() {
return (
<SelectorDialog
name="Roles"
collectionUrl="/api/roles/all"
ref="dialog"
{...this.props}
/... |
packages/@lyra/form-builder/src/FormBuilder.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import {FormBuilderInput} from './FormBuilderInput'
import FormBuilderContext from './FormBuilderContext'
// Todo: consider deprecating this in favor of <FormBuilderContext ...><FormBuilderInput .../></FormBuilderContext>
export default class FormBuilder ext... |
app/javascript/mastodon/components/load_pending.js | primenumber/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadPending extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
count: PropTypes.number,
}
render() {
const { count } = this.props;
return ... |
Tests/Components/FullButtonTest.js | tk1cntt/KanjiMaster | import test from 'ava'
import React from 'react'
import FullButton from '../../App/Components/FullButton'
import { shallow } from 'enzyme'
test('component exists', t => {
const wrapper = shallow(<FullButton onPress={() => {}} text='hi' />)
t.is(wrapper.length, 1) // exists
})
test('component structure', t => {
... |
resources/assets/js/components/lista-tipos/containers/ListaTipos.js | Uminks/Restaurant-Manager | import React, { Component } from 'react';
import RenderTipos from '../components/RenderTipos';
import ListaPlatos from '../../lista-platos/containers/ListaPlatos';
function ListaTipos(props) {
return (
<div id="inicio" className="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<ul>
{
p... |
blueocean-material-icons/src/js/components/svg-icons/image/tonality.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const 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.93H13v-.93zM13 7h5.24c.25.31.48.6... |
src/components/listButton/index.js | jiriKuba/Calculatic | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, View, StyleSheet } from 'react-native';
class ListButton extends Component {
render() {
const { buttonTitle, onListButtonPress } = this.props;
return (
<View style={styles.listButton}>
<Button title={... |
src/components/episode_detail.js | renedaniel/Viewer | import React from 'react';
import {Row, Col, MediaBox} from 'react-materialize';
import Loading from './loading';
const EpisodeDetail = ({episode}) => {
if (!episode) {
return <Loading error={false} />;
}
const titulo = episode.title_episode;
const descripcion = episode.description_large;
const imgUrl =... |
app/containers/App.js | renjithgr/bootbar | import React, { Component } from 'react';
import { connect } from 'react-redux';
import downloadFile from '../actions/download';
export class App extends Component {
componentDidMount() {
console.log(this.props);
// this.props.loadInitialData();
}
downloadFile() {
this.props.downloadFile();
}
... |
pkg/ui/src/components/Header.js | matt-deboer/kuill | import React from 'react'
import AppBar from 'material-ui/AppBar'
import { Toolbar, ToolbarGroup, ToolbarSeparator } from 'material-ui/Toolbar'
import { grey200, grey300, grey800, blueA200 } from 'material-ui/styles/colors'
import { typography } from 'material-ui/styles'
import { Link } from 'react-router-dom'
import {... |
src/app/core/atoms/icon/icons/graph.js | blowsys/reservo | import React from 'react'; const Graph = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="8.42072818 16 19 16 19 18 5 18 5 7 7 7 7 14.5923011 11.9914126 9.60088846 13.9794087 11.5888846 18.2754001 7.29289322 19.6896137 8.70710678 13.9794087 14.4173117 11.9914126 12.4293156"/></g></g></svg>; export ... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter-9.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFilter9 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM15 5h-2c-1.1 0-2 .89-2 2v2c0 1.11.9 2 2 2h2v2h-4v2h4c1.1 0... |
react/src/containers/AncestryApp/SerializedAncestry/index.js | sinfin/folio | import React from 'react'
function SerializedItem ({ item, index }) {
const prefix = `ancestry[${index + 1}]`
const name = (field) => `${prefix}[${field}]`
return (
<div>
<input type='hidden' name={name('id')} value={item.id} />
<input type='hidden' name={name('position')} value={index + 1} />
... |
src/components/ImageSlider/index.js | jiangxy/react-antd-admin | import React from 'react';
import './index.less';
/**
* 图片走马灯, 基本是抄的这个: https://github.com/xiaolin/react-image-gallery
* 写样式真是太痛苦了...臣妾真的做不到啊...
*/
class ImageSlider extends React.PureComponent {
state = {
previousIndex: 0,
currentIndex: 0,
};
componentWillMount() {
this.navButton = (
<spa... |
node_modules/react-router/es6/RouterContext.js | SlateRobotics/slate-website | 'use strict';
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 invariant from 'invariant';
import Reac... |
src/svg-icons/device/screen-lock-landscape.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockLandscape = (props) => (
<SvgIcon {...props}>
<path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c... |
assets/javascript/components/app/header.js | colinjeanne/learning-site | import Constants from '../../constants/constants';
import React from 'react';
import TabbedNavigation from './tabbedNavigation';
import UserButton from './userButton';
const header = props => {
const navigationElement = (
<TabbedNavigation
id="mainNavigation"
onSelect={props.onTabSe... |
admin/client/App/screens/Item/index.js | snowkeeper/keystone | /**
* Item View
*
* This is the item view, it is rendered when users visit a page of a specific
* item. This mainly renders the form to edit the item content in.
*/
import React from 'react';
import { Container, Spinner } from 'elemental';
import { connect } from 'react-redux';
import { Link } from 'react-router'... |
web/src/js/__tests__/components/ContentView/ContentViewSpec.js | vhaupert/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import TestUtils from 'react-dom/test-utils'
import { Provider } from 'react-redux'
import { ViewServer, ViewImage, PureViewServer, Edit } from '../../../components/ContentView/ContentViews'
import { TFlow, TStore } from '../../ducks/tutils'
import mo... |
src/backward/Widgets/CardSwiper.js | chaitanya0bhagvan/NativeBase | /* @flow */
import React from 'react';
import clamp from 'clamp';
import { Animated, PanResponder } from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import { View } from './View';
const SWIPE_THRESHOLD = 120;
export default class CardSwiper extends NativeBaseComponent {
constru... |
assets/jqwidgets/demos/react/app/grid/defaultfunctionality/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'xml',
datafields: [
{ name: 'ProductName', ... |
src/svg-icons/action/alarm-on.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmOn = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0... |
src/shared/components/Products/ProductsTblPage.js | Grace951/ReactAU | import React from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import update from 'immutability-helper';
import {productEditColDetail} from '../../Data/General';
import { ImageLoader } from '../Shared/ImageLoader';
import { SortableTbl } from '../Shared/SortableTbl';
import ... |
modules/gui/src/app/home/body/process/recipe/indexChange/indexChangeImageLayer.js | openforis/sepal | import {MapAreaLayout} from 'app/home/map/mapAreaLayout'
import {VisualizationSelector} from 'app/home/map/imageLayerSource/visualizationSelector'
import {compose} from 'compose'
import {getAvailableBands} from './bands'
import {getPreSetVisualizations} from './visualizations'
import {msg} from 'translate'
import PropT... |
src/FlatButton/FlatButton.spec.js | igorbt/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import FlatButton from './FlatButton';
import getMuiTheme from '../styles/getMuiTheme';
import ActionAndroid from '../svg-icons/action/android';
describe('<FlatButton />', () => {
const muiTheme = getMuiTh... |
client/src/js/routes/routes.js | ziyadparekh/relay-services | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from 'components/App';
import FuelSavingsPage from 'containers/FuelSavingsPage';
import AuthContainer from 'containers/AuthContainer';
// import AboutPage from './components/AboutPage.js';
// import NotFoundPage from './components/... |
web/src/js/__tests__/components/Modal/OptionSpec.js | ddworken/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import { Options, ChoicesOption } from '../../../components/Modal/Option'
describe('BooleanOption Component', () => {
let BooleanOption = Options['bool'],
onChangeFn = jest.fn(),
booleanOption = renderer.create(
<Boole... |
app/javascript/mastodon/features/followers/index.js | alarky/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import {
fetchAccount,
fetchFollowers,
expandFollowers,
} from '../../actions/account... |
third_party/blink/perf_tests/speedometer/resources/todomvc/architecture-examples/react-redux/src/components/TodoItem.spec.js | scheib/chromium | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import TodoItem from './TodoItem'
import TodoTextInput from './TodoTextInput'
const setup = ( editing = false ) => {
const props = {
todo: {
id: 0,
text: 'Use Redux',
completed: false
},
editTodo: jest.fn(),
d... |
app/javascript/mastodon/features/blocks/index.js | RobertRence/Mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll';
import Column from '../ui/components... |
src/routes/error/ErrorPage.js | LeraSavchenko/Maysternia | /**
* 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-... |
js/react-base-64/src/components/Base64Form.js | mhfa/bacon | import React, { Component } from 'react';
import base64 from 'base-64';
class Base64Form extends Component {
constructor(){
super();
this.state = {
processedVal: "",
formVal: "",
};
}
render() {
const test = 'test';
const placeholder = `this a ${test}`;
return (
<d... |
docs/src/scenes/Home/index.js | directlyio/redink | import React from 'react';
import { Gist } from 'components';
import styles from './styles.scss';
const Home = () => (
<div className={styles.wrapper}>
<h1 className="heading">
RethinkDB model layer that makes complex business-logic easy
</h1>
<p className="paragraph">
Redink provides some si... |
src/svg-icons/editor/insert-emoticon.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertEmoticon = (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... |
public/client/routes/overview/containers/overview.js | Concorda/concorda-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
export const Overview = React.createClass({
render () {
return (
<div className="page container-fluid">
<div className="row middle-xs page-heading">
<h2 className="col-xs-12 col-sm-6">Overview</h2>
</div>
... |
examples/sidebar/app.js | etiennetremel/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{category.name}</h1>
{this.props.children || (
... |
src/components/Comment.js | afonsobarros/reactnd-project-readable | import React, { Component } from 'react';
import { connect } from 'react-redux'
import themeDefault from '../theme-default';
import { Button, TextField } from 'material-ui';
import { updateNewComment, resetNewComment, showSnackbar } from '../actions/appState'
import { addComment } from '../actions/comments'
import * ... |
src/svg-icons/av/videocam.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideocam = (props) => (
<SvgIcon {...props}>
<path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/>
</SvgIcon>
);
AvVideocam = pure(AvVideocam);
Av... |
node_modules/react-router/es/Redirect.js | Snatch-M/fesCalendar | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.st... |
app/pages/index.js | kswOok/rankList | /**
* Created by kswook on 01/03/2017.
*/
import React from 'react';
import {render} from 'react-dom';
import '../app.css'
import Index from '../component/Index.js'
render(<Index/>, document.getElementById('content')); |
src/svg-icons/communication/screen-share.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationScreenShare = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56... |
src/index.js | AlexanderAA/conceptnet | import 'babel-polyfill'
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { applyMiddleware, createStore } from 'redux';
import { createLogger } from 'redux-logger'
import thunkMiddleware from 'redux-thunk';
import rootReducer from './reducers';
import App from ... |
src/components/ChatApp/MessageComposer.react.js | DeveloperAlfa/chat.susi.ai | import * as Actions from '../../actions/';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Send from 'material-ui/svg-icons/content/send';
import Mic from 'material-ui/svg-icons/av/mic';
import UserPreferencesStore from '../../stores/UserPreferencesStore';
import MessageStore from '... |
assets/javascripts/kitten/components/structure/cards/team-card/components/image.js | KissKissBankBank/kitten | import React from 'react'
import classNames from 'classnames'
import PropTypes from 'prop-types'
import COLORS from '../../../../../constants/colors-config'
import styled from 'styled-components'
const imageHeight = 378
const imageWidth = 252
const StyledTeamCardImage = styled(({ styled, backgroundSource, ...props })... |
src/views/Home/HomeView.js | dfala/high-club | import React from 'react'
import { connect } from 'react-redux'
import { actions as counterActions } from '../../redux/modules/counter'
import styles from './HomeView.scss'
import TopNav from '../../components/Top-Nav/Top-Nav'
// We define mapStateToProps where we'd normally use
// the @connect decorator so the data r... |
src/svg-icons/action/favorite.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFavorite = (props) => (
<SvgIcon {...props}>
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6... |
examples/universal/server/server.js | edge/redux | /* eslint-disable no-console, no-use-before-define */
import path from 'path'
import Express from 'express'
import qs from 'qs'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
import webpackConfig from '../webpack.config... |
src/containers/ServiceBookingRangePage.js | onlinebooking/booking-frontend | import React from 'react';
import ErrorAlert from '../components/ErrorAlert';
import InvalidBookPeriod from '../components/InvalidBookPeriod';
import { connect } from 'react-redux';
import Spinner from '../components/Spinner';
import BookingSteps from '../components/BookingSteps';
import BookingRange from '../component... |
src/Base.js | zscaiosi/front-petdevice | import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom';
import Login from './components/acesso/LoginComponent';
import CadastroWraper from './components/acesso/CadastroComponent';
import { connect } from 'react-redux';
import { Redirect } from 'react-router-dom';
import Home from './... |
js/components/AppNavigator/SceneContainer.js | c-h-/universal-native-boilerplate | import React from 'react';
import PropTypes from 'prop-types';
import {
View,
StyleSheet,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flexGrow: 1,
},
});
const SceneContainer = (props) => {
const {
children,
} = props;
return (
<View style={styles.container}>
... |
packages/rmw-shell/src/pages/Roles/index.js | TarikHuber/react-most-wanted | import AccountBoxIcon from '@mui/icons-material/AccountBox'
import Avatar from '@mui/material/Avatar'
import Divider from '@mui/material/Divider'
import ListItem from '@mui/material/ListItem'
import ListItemAvatar from '@mui/material/ListItemAvatar'
import ListItemText from '@mui/material/ListItemText'
import React fro... |
src/Home.js | marzolfb/rn-art-d3-examples | /*
Copyright 2016 Capital One Services, LLC
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... |
src/components/Pager.js | jade-press/jadepress-react-spa | import React from 'react'
import { Link } from 'react-router'
import { createUrl, host, publicRoute, maxLink, pageSize } from '../common/constants'
import RPager from 'react-pagenav'
export default class Pager extends React.Component {
constructor (props) {
super(props)
}
unitRender() {
return (unit, index... |
src/components/common/picgrid.js | liuyuanquan/kankan | import React from 'react';
import polyfill from 'babel-polyfill';
class PicGrid extends React.Component {
constructor(props) {
super();
this.props = props;
this.state = {
rowNum: this.props.content.rowNum,
columnNumPerRow: this.props.content.columnNumPerRow,
currentRow: 0,
rowWidth: null
}
}
com... |
app/view/recommend_detail.js | togayther/react-stock | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import * as RecommendAction from '../action/recommend';
import Container from '../component/container';
import {
Article
} from 'react-weui';
class RecommendDetailApp... |
ui/js/pages/user/User.js | ericsoderberg/pbc-web | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import Show from '../../components/Show';
import Section from '../../components/Section';
import Text from '../../components/Text';
import Image from '../../components/Image';
... |
public/js/src/component/icons/Download.js | Lucifier129/isomorphism-react-file-system | import React from 'react'
import Icon from './Icon'
export default class Download extends React.Component {
render() {
return <Icon {...this.props} type="icon-file-download" name="Download" />
}
} |
src/shared/HeroPicker/HeroTile.js | kashisau/enroute | /**
* HeroTile.js
*/
import React from 'react';
import './HeroTile.scss';
import classnames from 'classnames';
class HeroTile extends React.Component {
constructor(props) {
super(props);
this.state = {
active: false
};
this.changeArticle = this.changeArticle.bind(thi... |
src/containers/App.js | spencerkordecki/initiative-tracker | import React, { Component } from 'react';
import InputRow from '../components/InputRow';
import Table from '../components/Table';
import '../styles/index.scss';
const initialState = {
characters: []
};
class App extends Component {
constructor(props) {
super(props);
this.state = initialState;
}
/**
... |
docs/app/Examples/collections/Table/Variations/TableExampleFixedLine.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleFixedLine = () => {
return (
<Table celled fixed singleLine>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.He... |
app/containers/Admin/Messages/index.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
import MessagesStats from './components/MessagesStats';
import MessageTypeSelector from './components/MessageTypeSelector';
export class Messages extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div>
<MessagesStats ... |
src/modules/texts/layouts/ReadingLayout/ReadingLayout.js | cltk/cltk_frontend | import React from 'react';
import classnames from 'classnames';
import { withRouter } from 'react-router';
import ReadingHeaderContainer from '../../containers/ReadingHeaderContainer';
import Footer from '../../../../components/navigation/Footer';
import CommentaryPanelContainer from '../../../commentary/containers/Co... |
cheesecakes/plugins/content-type-builder/admin/src/components/PluginLeftMenuLink/index.js | strapi/strapi-examples | /**
*
* PluginLeftMenuLink
* - Required props:
* - {object} Link
*
* - Optionnal props:
* - {function} renderCustomLink : overrides the behavior of the link
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import styles from './styles.scss';
c... |
opentech/static_src/src/app/src/components/FullScreenLoadingPanel/index.js | OpenTechFund/WebApp | import React from 'react'
import LoadingPanel from '@components/LoadingPanel'
import './styles.scss';
const FullScreenLoadingPanel = () => (
<div className="full-screen-loading-panel">
<LoadingPanel />
</div>
);
export default FullScreenLoadingPanel;
|
src/parser/warrior/fury/modules/azerite/RecklessFlurry.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import { formatNumber, formatPercentage, formatThousands } from 'common/format';
import TraitStatisticBox from 'interface/others/TraitStatisticBox';
import SPELLS from 'common/SPELLS';
import { SELECTED_PLAY... |
src/components/Link.js | leoasis/state-router | import React from 'react';
export default class Link extends React.Component {
static contextTypes = {
store: React.PropTypes.object,
renderUrl: React.PropTypes.func,
};
render() {
return <a href={this.calculateUrl()} onClick={this.handleClick.bind(this)}>
{this.props.children}
</a>;
}
... |
src/articles/2017-01-31-UnlistedLogs/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Zerotorescue } from 'CONTRIBUTORS';
import RegularArticle from 'interface/news/RegularArticle';
export const title = "A note about unlisted logs";
export default (
<RegularArticle
title={title}
publishedAt="2017-01-31"
publishedBy={Zerotorescue}
>
Because Warcr... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | taimur97/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
constructor(pro... |
src/components/comments/VoteButton.js | streamr-app/streamr-web | import React from 'react'
import cx from 'classnames'
export default ({
isSignedIn,
numVotes,
userHasVoted,
onUpvote,
onUnvote
}) => {
return (
<div
className={cx('vote-button', { active: userHasVoted, disabled: !isSignedIn })}
onClick={() => (isSignedIn && userHasVoted) ? onUnvote() : onUp... |
test/components/Counter.spec.js | MitchLillie/brewhome | /* eslint no-unused-expressions: 0 */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import Counter from '../../app/components/Coun... |
src/svg-icons/hardware/phone-iphone.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneIphone = (props) => (
<SvgIcon {...props}>
<path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1... |
examples/tex/js/app.js | davidchang/draft-js | /**
* Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCL... |
src/containers/gameScreen/index.js | jiriKuba/Calculatic | import React, { Component } from 'react';
import GameScreen from '../../components/screens/gameScreen/';
export default class GameScreenContainer extends Component {
render() {
const { onMainScreen, onGameResultScreen } = this.props;
return (
<GameScreen onMainScreen = {onMainScreen}
... |
src/js/components/Prompt.js | opsdroid/opsdroid-desktop | 'use strict';
//////
// Imports
import React from 'react';
import ReactDOM from 'react-dom';
export default class Prompt extends React.Component {
constructor(props) {
super(props);
this.state = {
input: '',
showTooltip: false,
}
this.checkForEnter = this.checkForEnter.bind(this);
... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | x303597316/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
src/routes.js | johnnyvf24/hellochess-v2 | import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './containers/app';
import Login from './components/auth/login';
import Live from './containers/live';
import Profile from './containers/user/profile';
import RequireAuth from './components/auth/require_auth';
import Leaderboard... |
src/components/Nav.js | EmilNordling/poesk | import React from 'react'
import styled from 'styled-components'
import { NavLink as Link } from 'react-router-dom'
import { colors } from '../constants'
const Nav = styled.nav`
display: flex;
justify-content: center;
`
const NavLink = styled(Link)`
margin: 0 12px;
font-size: 1.8rem;
text-decoration: none;
... |
lib/factory.js | Kitware/arctic-viewer | /* global XMLHttpRequest window */
import MagicLensImageBuilder from 'paraviewweb/src/Rendering/Image/MagicLensImageBuilder';
import PixelOperatorImageBuilder from 'paraviewweb/src/Rendering/Image/PixelOperatorImageBuilder';
import ChartViewer from 'paraviewweb/src/React/Viewers/ChartViewer';
import GenericViewer fro... |
__tests__/MenuOption-test.js | instea/react-native-popup-menu | import React from 'react';
import { TouchableHighlight, View, Text } from 'react-native';
import { render, normalizeStyle, nthChild } from './helpers';
jest.dontMock('../src/MenuOption');
jest.dontMock('../src/helpers');
const { MenuOption } = require('../src/MenuOption');
const { createSpy, objectContaining } = jasmi... |
build/libs/Adapter/src/lib/components/C3/ScatterPlot.js | as-me/dashboard | import React from 'react';
import C3ScatterPlot from './ScatterPlotUI';
import '../../session/ScatterPlot.js';
import 'weavecore';
//namesapce
if (typeof window === 'undefined') {
this.adapter = this.adapter || {};
} else {
window.adapter = window.adapter || {};
}
if (typeof window === 'undefined') {
this... |
src/containers/utils/Root.prod.js | hannupekka/badgenator | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import Routes from 'containers/utils/Routes';
const Root = ({ store, history }: { store: Object, history: Object }): ElementType => {
return (
<Provider store={store}>
<Routes history={history} />
</Provider>
);
};
module.ex... |
tests/layouts/MainScreenSpec.js | andela-iukwuoma/newsfeed | import React from 'react';
import chai from 'chai';
import chaiEnzyme from 'chai-enzyme';
import { shallow } from 'enzyme';
import MainScreen from '../../src/app/components/layouts/MainScreen';
import Article from '../../src/app/components/Article';
import Sort from '../../src/app/components/Sort';
import * as data fro... |
docs/src/sections/JumbotronSection.js | jesenko/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 JumbotronSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
classic/src/scenes/wbui/SettingsListSection.js | wavebox/waveboxapp | import React from 'react'
import { List, Paper } from '@material-ui/core'
import shallowCompare from 'react-addons-shallow-compare'
import SettingsListContainer from './SettingsListContainer'
import SettingsListSectionTitle from './SettingsListSectionTitle'
class SettingsListSection extends React.Component {
/* ****... |
src/docs/ComponentPage.js | ThomasBem/ps-react-thomasbem | import React from 'react';
import PropTypes from 'prop-types';
import Example from './Example';
import Props from './Props';
const ComponentPage = ({component}) => {
const {name, description, props, examples} = component;
return (
<div className="componentpage">
<h2>{name}</h2>
<p>{description}</p... |
core/index.node.js | pawelgalazka/firestarter | import express from 'express'
import React from 'react'
import { renderToString, renderToStaticMarkup } from 'react-dom/server'
import { match, RouterContext } from 'react-router'
import { Provider } from 'react-redux'
import routes from '../config/routes'
import { createStore } from '../config/store'
import webpackCo... |
js/src/dapps/dappreg/ModalUpdate/modalUpdate.js | jesuscript/parity | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 your option) any la... |
src/scenes/dashboard/groupprofile/index.js | PowerlineApp/powerline-rn | //This is the Group Profile Screen. Accessible by viewing tapping any group avatar or title anywhere it appears in the app, including My Groups, Standard Item Container, and Group Search
//GH 46
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Actions } from 'react-native-route... |
src/font-icon.js | joxoo/react-material | import React from 'react';
import PropTypes from 'prop-types';
import { getClassesStatic } from './addons/get-classes';
const FontIcon = (props) => (
<i className={ getClassesStatic('font-icon', props) }>
{ props.icon.startsWith('0x') ? String.fromCharCode(props.icon) : props.icon }
</i>
);
FontIcon.p... |
app/components/Work/WorkSection/index.js | yasserhennawi/yasserhennawi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'utils/styled-components';
const Wrapper = styled.div`
display: flex;
flex-direction: column;
`;
const Title = styled.h4`
font-weight: normal;
margin-bottom: 5px;
`;
const WorkSection = ({ title, children, ...props }) => (
<Wr... |
lavalab/html/node_modules/react-bootstrap/es/Row.js | LavaLabUSC/usclavalab.org | 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.