path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
actor-apps/app-web/src/app/components/common/State.react.js | winiceo/actor-platform | import React from 'react';
import { MessageContentTypes } from 'constants/ActorAppConstants';
class State extends React.Component {
static propTypes = {
message: React.PropTypes.object.isRequired
};
render() {
const { message } = this.props;
if (message.content.content === MessageContentTypes.SERVI... |
app/components/Elements/SettingsDataManager.js | alexpell00/FRCUltimateManager | /*
* @Author: alexpelletier
* @Date: 2016-03-22 00:41:26
* @Last Modified by: alexpelletier
* @Last Modified time: 2016-03-22 17:35:06
*/
import React from 'react';
import request from 'superagent';
import Select from 'react-select';
var SettingsDataManager = React.createClass({
getInitialState() {
return {p... |
src/RefreshableList.js | onaclover/react-native-refreshable-list | /**
* @providesModule RefreshableList.Index
*/
import React from 'react';
import { ListView, RefreshControl, View, ViewPropTypes } from 'react-native';
import InvertibleScrollView from 'react-native-invertible-scroll-view';
import SGListView from 'react-native-sglistview';
import {
EMPTY_DATA,
PLACEHOLDER_DATA,... |
packages/react/src/views/DefaultList.js | wq/wq.app | import React from 'react';
import {
useComponents,
useViewComponents,
useReverse,
useList
} from '../hooks';
export default function DefaultList() {
const reverse = useReverse(),
{ list, unsynced, empty, page_config } = useList(),
{
Message,
ScrollView,
... |
src/containers/Articles/ArticlesPage/ArticlesPage.js | ReactPoland/react-community | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import permission from 'utils/privileges';
// COMPONENTS
import ArticlesList from './ArticlesList';
// LAYOUT
import Grid from 'react-bootstrap/lib/Grid';
impor... |
src/app/component/payment-section/payment-section.js | all3dp/printing-engine-client | import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import cn from '../../lib/class-names'
const PaymentSection = ({classNames, children, childrenLabel, subtotal, shippings, vat, total}) => (
<section className={cn('PaymentSection', {}, classNames)}>
<ul classNa... |
app/components/ListItem/index.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const Tr = styled.tr`
&:nth-of-type(odd) {
background-color: rgba(0, 0, 0, 0.05);
}
`;
const Th = styled.th`
text-align: left;
color: #464a4c;
`;
// background-color: #eceeef;
const Td = styled.td`
... |
src/containers/App.js | vincentleandr/vincentleandr.github.io | import React, { Component } from 'react';
import {
BrowserRouter as Router,
Route,
Switch,
Redirect,
withRouter
} from 'react-router-dom';
import { ScrollContext } from 'react-router-scroll-4';
import './App-dist.css';
import Nav from '../components/Nav/Nav';
import Home from './Home/Home';
import... |
client/homescreen.js | hr-memories/TagMe | import Exponent from 'exponent';
import React from 'react';
import {
StyleSheet,
Text,
View,
Image,
AlertIOS,
AsyncStorage
} from 'react-native';
import { Font } from 'exponent';
import { Container, Header, Title, Content, Footer, Button } from 'native-base';
import { Ionicons } from '@exponent/vector-icons... |
modules/Redirect.js | zenlambda/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should
... |
src/js/components/ContentBlocks/Shared/GenericPreview.js | grommet/grommet-cms-boilerplate | // @flow
import React from 'react';
import Box from 'grommet/components/Box';
import Heading from 'grommet/components/Heading';
export default function GenericPreview(props: {
content: string
}) {
return (
<Box
colorIndex="light-1"
direction="row"
pad={{ between: 'medium' }}
full="horiz... |
src/sections/takePhotosSection/TakePhotosSection.js | shot-me/photobooth | import React from 'react';
import Webcam from 'react-webcam';
import { withRouter } from 'react-router-dom';
import Div from '../shared/div/Div';
import HugeHeader from '../shared/headers/hugeHeader/HugeHeader';
class TakePhotosSection extends React.Component {
constructor() {
super();
this.state = {
... |
src/components/pages/lesson/DetailView.js | yiweimatou/yishenghoutai | import React from 'react'
import { Paper,RaisedButton,Dialog,FloatingActionButton,Divider } from 'material-ui'
import { ContentRemove } from 'material-ui/svg-icons'
import EditView from './EditView'
import SelectListView from '../organize/SelectListView'
import SelectView from '../user/SelectView'
import UserView from ... |
examples/react-ts-webpack4/src/emoji-button.js | storybooks/storybook | import React from 'react';
import PropTypes from 'prop-types';
export const EmojiButton = ({ label, ...props }) => (
<button type="button" {...props}>
⚠️ {label}
</button>
);
EmojiButton.propTypes = {
/**
* A label to show on the button
*/
label: PropTypes.string,
};
EmojiButton.defaultProps = {
... |
js/components/Header/1.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-native-navigation-redux-helpers';
import { openDra... |
docs/examples/Reset/Example1.js | romagny13/react-form-validation | import React from 'react';
import { Form, LightGroup, Reset, Input, CheckboxGroup, Label, required, minlength, ValidationHelper } from 'romagny13-react-form-validation';
class Example1 extends React.Component {
constructor(props) {
super(props);
this.state = {
model: {
... |
consoles/my-joy-templates/src/mocks/declarative-redux-form.js | yldio/joyent-portal | import React from 'react';
export default ({ children, ...props }) => React.createElement(children, props);
|
actor-apps/app-web/src/app/components/DialogSection.react.js | darioajr/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
i... |
app/components/List/index.js | sulthan16/awesome-jr-frontend-sulthan | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
7-React-Search-Select/src/app/index.js | ekaaditiac/React-Basic-API | "use strict";
import React from 'react';
import ReactDOM from 'react-dom';
import Request from 'superagent';
import _ from 'lodash';
class App extends React.Component{
constructor(){
super();
this.state = {
query: "Trek",
currentMovie: "tt0232500"
};
}
componentWillMount(){
// Cal... |
renderer/components/RenameForm.js | reactide/reactide | import React from 'react';
import PropTypes from 'prop-types';
const RenameForm = ({
renameHandler
}) => {
return (
<span>
<input autoFocus className='rename-input' onKeyPress={renameHandler} onClick={(event)=>{event.stopPropagation()}}/>
</span>
)
}
RenameForm.propTypes = {
renameHandler: PropT... |
test/server_side-test.js | byronmwong/react-flexbox-layout | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { createCustomClasses } from '../lib';
function createApp({ VLayout, VLayoutItem, HLayout, HLayoutItem }) {
return class App extends React.Component {
render() {
return (
<VLayout>
<VLayoutItem>
T... |
src/package/components/modal/ModalForm.js | abobwhite/slate-editor | import React from 'react'
import classnames from 'classnames'
// FIXME: Needs to handle assets files to work with SSR
if (require('exenv').canUseDOM) require('./ModalForm.css')
const ModalForm = ({ children, className, ...props }) => (
<form
className={classnames('modal--form', className)}
{...props}
>
... |
src/js/components/ListItem.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import classnames from 'classnames';
import Box from './Box';
import Props from '../utils/Props';
import CSSClassnames from '../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.LIST_ITEM;
export defau... |
src/ListCatalog.js | material-components/material-components-web-catalog | import React, { Component } from 'react';
import ComponentCatalogPanel from './ComponentCatalogPanel.js';
import {MDCList} from '@material/list/index';
import {MDCRipple} from '@material/ripple';
import {MDCCheckbox} from '@material/checkbox/dist/mdc.checkbox';
import {MDCRadio} from '@material/radio';
import classname... |
src/svg-icons/notification/airline-seat-legroom-reduced.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomReduced = (props) => (
<SvgIcon {...props}>
<path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 1... |
client/src/components/Profile/Profile.js | wolnewitz/raptor-ads | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Grid } from 'semantic-ui-react';
import { push } from 'react-router-redux';
import ProfileDashboard from './ProfileDashboard';
import Inbox from './Inbox/Inbox';
import ProfileSettings from './profileSettings';
import P... |
src/DropdownMenu.js | Terminux/react-bootstrap | import keycode from 'keycode';
import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import bootstrapUtils from './utils/bootstrapUtils';
import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper';
import ValidComponentChildren from './utils/ValidComponentChildren';
... |
packages/@lyra/components/src/toggles/Checkbox.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import styles from 'part:@lyra/components/toggles/checkbox-style'
export default class Checkbox extends React.Component {
static propTypes = {
label: PropTypes.string,
description: PropTypes.string,
markers: PropTypes.array,
checked: PropTy... |
P/bst/src/components/Header.js | imuntil/React | import React from 'react'
import { Navbar, NavItem, Nav } from 'react-bootstrap'
// import { Link } from 'react-router-dom'
import './Header.less'
import createHistory from 'history/createHashHistory'
const history = createHistory()
class Header extends React.Component {
handleSelect (eventKey, event) {
history.... |
pootle/static/js/admin/general/components/LiveEditor.js | ta2-1/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import _ from 'underscore';
im... |
classic/src/scenes/wbfa/generated/FAREyeSlash.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faEyeSlash } from '@fortawesome/pro-regular-svg-icons/faEyeSlash'
export default class FAREyeSlash extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faEyeSlash} />)
}
}
|
src/routes/contact/Contact.js | FamilyPlanerTeam/family-planner | /**
* 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-... |
admin/client/App/screens/List/components/Filtering/ListFiltersAddForm.js | linhanyang/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import Popout from '../../../../shared/Popout';
import { Filters } from 'FieldTypes';
var ListFiltersAddForm = React.createClass({
propTypes: {
field: React.PropTypes.object.isRequired,
maxHeight: React.PropTypes.number,
onApply: React.PropTyp... |
examples/pinterest/app.js | besarthoxhaj/react-router | import React from 'react';
import { Router, Link } from 'react-router';
import HashHistory from 'react-router/lib/HashHistory';
var history = new HashHistory({ queryKey: 'k' });
var pictures = [
{id: 0, src: 'http://placekitten.com/601/601'},
{id: 1, src: 'http://placekitten.com/610/610'},
{id: 2, src: 'http://p... |
src/js/components/settingPanel.js | tohashi/css-typesetter | import React from 'react';
import _ from 'lodash';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import SettingTable from './settingTable';
import Publishing from './publishing';
export default class SettingPanel extends React.Component {
constructor(props) {
super(props);
this.inputChangeHandle... |
demo-react-redux/app/page/test.js | renhongl/Summary |
import React, { Component } from 'react';
import HeaderContainer from '../container/HeaderContainer';
export default class Test extends Component{
constructor(props) {
super(props);
}
render() {
return (
<div>
<HeaderContainer />
</div>
)
... |
src/components/dashboard.js | intrepion/hojberg-mastering-reactjs-tutorial | import React from 'react';
import DashboardStore from '../stores/dashboard_store';
import DashboardActions from '../actions/dashboard_actions';
import SalesChart from './sales_chart';
class Dashboard extends React.Component {
constructor(props) {
super(props);
this.onChange = this.onChange.bind(thi... |
src/index.js | nothingp/frontend | import React from 'react'
import ReactDOM from 'react-dom';
import { Provider } from "mobx-react";
import stores from './store'
// 引入标准Fetch及IE兼容依赖
import 'whatwg-fetch';
import 'es6-promise/dist/es6-promise.min.js';
import 'fetch-ie8/fetch.js';
// 引入React-Router模块
import { BrowserRouter as Router, Route } from 'reac... |
src/pages/IndexPage.js | pekkis/react-training-broilerplate | // @flow
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { List } from 'immutable';
import TodoForm from '../components/TodoForm';
import TodoLists from '../components/TodoLists';
import { Link } from 'react-router';
type Props = {
addUser: Function,
users: List<UserT... |
app/components/Mtg.js | agrant216/React-Electron-Mtg | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Mtg.css';
import PlayerList from './PlayerList'
class Mtg extends Component {
// props : {
// addPlayer: () => void,
// removePlayer: () => void
// };
render() {
const { ad... |
src/svg-icons/maps/local-gas-station.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalGasStation = (props) => (
<SvgIcon {...props}>
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.4... |
src/internal/ScaleIn.js | skarnecki/material-ui | import React from 'react';
import ReactTransitionGroup from 'react-addons-transition-group';
import ScaleInChild from './ScaleInChild';
class ScaleIn extends React.Component {
static propTypes = {
childStyle: React.PropTypes.object,
children: React.PropTypes.node,
enterDelay: React.PropTypes.number,
... |
src/svg-icons/content/reply.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReply = (props) => (
<SvgIcon {...props}>
<path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReply = pure(ContentReply);
ContentReply.displayName = 'ContentReply'... |
docs/app/Examples/modules/Dropdown/Types/index.js | ben174/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 DropdownTypesExamples = () => (
<ExampleSe... |
src/forms/SuppliedForm.js | de44/kb-ui | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { withState, withHandlers, lifecycle, compose } from 'recompose';
const SuppliedView = ({ component, loading, onChange, onCancel, onSubmit, options, suppliedModel }) => {
if (loading) {
return (<div className="loading">... |
src/svg-icons/navigation/arrow-drop-down.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDown = (props) => (
<SvgIcon {...props}>
<path d="M7 10l5 5 5-5z"/>
</SvgIcon>
);
NavigationArrowDropDown = pure(NavigationArrowDropDown);
NavigationArrowDropDown.displayName = 'NavigationA... |
example_components/ErrorMessage.react.js | blueberryapps/react-bluekit | import Component from '../src/app/PureRenderComponent.react';
import Radium from 'radium';
import React from 'react';
import RPT from 'prop-types';
@Radium
export default class ErrorMessage extends Component {
static propTypes = {
children: RPT.any.isRequired,
kind: RPT.oneOf([
'plain',
'block'
... |
src/components/CommonComponent/CollapsableBox/collapsable.js | sourabh-garg/react-starter-kit | import React from 'react';
import {connect} from 'react-redux';
import Expand from '../../../images/Icons/arrow';
import './collapsable.scss';
class Main extends React.Component{
constructor(props) {
super(props);
this.state = {show : true};
this.toggle = this.toggle.bind(this);
}
componentDidMo... |
src/mui/input/SelectArrayInput.js | matteolc/admin-on-rest | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ChipInput from 'material-ui-chip-input';
import translate from '../../i18n/translate';
import FieldTitle from '../../util/FieldTitle';
const dataSourceConfig = { text: 'text', value: 'value' };
/**
* An Input component for an array... |
src/PageHeader.js | tannewt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
assets/javascripts/kitten/components/information/boxes/arrow-container/stories.js | KissKissBankBank/kitten | import React from 'react'
import { ArrowContainer } from './index'
import { Text, COLORS } from 'kitten'
import { DocsPage } from 'storybook/docs-page'
export default {
title: 'Information/Boxes/ArrowContainer',
component: ArrowContainer,
parameters: {
docs: {
page: () => (
<DocsPage filepath={... |
src/containers/Lancamentos/lancamentoInclusaoForm.js | MarceloProjetos/react-node-red | import React, { Component } from 'react';
import {
Button,
Glyphicon,
Panel,
Col,
Row,
Grid,
FormGroup,
FormControl,
ControlLabel,
Checkbox,
} from 'react-bootstrap';
import DatePicker from 'react-bootstrap-date-picker';
import uuid from 'node-uuid';
import { assign } from 'lodash';
import m... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Details/Resources.js | ChamNDeSilva/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/components/__tests__/SettingsTest.js | GriddleGriddle/Griddle | import 'jsdom-global/register';
import React from 'react';
import test from 'ava';
import { shallow, mount } from 'enzyme';
import Settings from '../Settings';
test('renders with style', (t) => {
const style = { backgroundColor: '#EDEDED' };
const wrapper = shallow(<Settings style={style} />);
t.true(wrapper.m... |
framework/react-native/meituan/src/scene/web/index.js | huajianmao/learning | import React, { Component } from 'react';
import { StyleSheet, View, WebView, InteractionManager } from 'react-native';
import { Actions } from 'react-native-router-flux';
class WebScene extends Component {
state: {
source: Object
}
constructor(props: Object) {
super(props)
this.state = {
sou... |
example/src/screens/transitions/sharedElementTransitions/Cards/Cards.js | iotize/react-native-navigation | import React from 'react';
import {ScrollView, TouchableHighlight, StyleSheet, Image, Text, View, ScrolView} from 'react-native';
import {SharedElementTransition} from 'react-native-navigation';
const IMAGE_HEIGHT = 190;
class CardScreen extends React.Component {
goToCard = (index) => {
this.props.navigator.pu... |
public/js/components/feedheader.js | gonzochic/inox | import React from 'react';
export default class FeedHeader extends React.Component {
constructor(props) {
super (props);
}
render() {
return (
<div>
<h3>{this.props.feedName}</h3>
<p>
{this.props.description}
</p>
<h6>
By {... |
app/javascript/mastodon/components/inline_account.js | gol-cha/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { makeGetAccount } from 'mastodon/selectors';
import Avatar from 'mastodon/components/avatar';
const makeMapStateToProps = () => {
const getAccount = makeGetAccount();
const mapStat... |
examples/react-router-3/app.js | mjrussell/redux-auth-wrapper | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, combineReducers, applyMiddleware, compose } from 'redux'
import { Provider } from 'react-redux'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import { routerReducer, syncHistoryWithStore, routerMiddleware } from ... |
src/BootstrapTable.js | opensourcegeek/react-bootstrap-table | import React from 'react';
import classSet from 'classnames';
import Const from './Const';
import TableHeader from './TableHeader';
import TableBody from './TableBody';
import PaginationList from './pagination/PaginationList';
import ToolBar from './toolbar/ToolBar';
import TableFilter from './TableFilter';
import {Tab... |
src/server/express.js | matystl/shopping_list | /*eslint-disable no-console */
import React from 'react';
import compression from 'compression';
import config from './config';
import express from 'express';
import http from 'http';
import favicon from 'serve-favicon';
import render from './render';
import handler_newTodoList from './handlers/newTodoList';
import {p... |
src/components/dialog.js | phodal/growth-ng | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Text, Modal } from 'react-native';
import Spinkit from 'react-native-spinkit';
import AppStyle from '../theme/styles';
import TIPS from '../constants/TIPS';
function hide() {
setTimeout(() =>
this.setState({ visible: fal... |
client/scripts/components/config/customize-notifications/done-button/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your ... |
client/src/components/Documents/CreateForm.js | natalie-elizabeth/doczy | import React from 'react';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import DocumentView from './documentView';
const CreateDocument = props => (
<div>
<TextField
name="t... |
exercise-07-solution/src/components/PokemonCard.js | learnapollo/pokedex-react | import React from 'react'
import { propType } from 'graphql-anywhere'
import gql from 'graphql-tag'
import { graphql } from 'react-apollo'
import styled from 'styled-components'
const Button = styled.div`
background-color: ${props => props.save ? '#2BC3A1' : ''};
color: ${props => props.save ? 'white' : props.dele... |
src/index.js | alexbg/planeText | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import planeText from './reducers/reducer';
import App from './containers/container';
import thunkMiddleware from 'redux-thunk'
let store = createStore(
planeText... |
web/src/js/components/General/SocialShareComponent.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import {
EmailIcon,
EmailShareButton,
FacebookIcon,
FacebookShareButton,
RedditIcon,
RedditShareButton,
TumblrIcon,
TumblrShareButton,
TwitterIcon,
TwitterShareButton,
} from 'react-sha... |
ui/src/containers/SampleViewContainer.js | mxcube/mxcube3 | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Row, Col, Stack, Container } from 'react-bootstrap';
import SampleImage from '../components/SampleView/SampleImage';
import MotorControl from '../components/SampleView/MotorControl';
i... |
src/index.js | ricard-alcaraz/cerebro-ebay-plugin | 'use strict';
import { app, remote, ipcRenderer } from 'electron'
import fs from 'fs'
//const React = require('react');
//importem react
import React from 'react'
const electronApp = remote ? remote.app : app
//importem el fitcher "preview" que amb react ens permet veure el producte al costat dret
import Preview from ... |
src/components/Login/Login.js | yangdongMC/kaola | import React from 'react'
import { connect } from 'dva'
import { Form, Input, Button, Row, Col, Icon } from 'antd'
import styles from './Login.css'
const FormItem = Form.Item;
const Login = (
{
dispatch,
form:{
getFieldDecorator,
validateFieldsAndScroll,
}
}
) => ... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/iso.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageIso = (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-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/>
</SvgIcon>
);
ImageIso.displayNa... |
packages/react/src/components/atoms/links/FootNoteLink/index.js | massgov/mayflower | /**
* FootNoteLink module.
* @module @massds/mayflower-react/FootNoteLink
* @requires module:@massds/mayflower-assets/scss/01-atoms/footnote-link
*/
import React from 'react';
import PropTypes from 'prop-types';
class FootNoteLink extends React.Component {
handleScroll() {
const element = document.getElement... |
src/main.js | nestoralonso/recetas-redux | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import AppShell from './components/AppShell.jsx';
import RecipesPage from './components/recipes/MyRecipesPage.jsx';
im... |
resources/assets/js/search-box/app.react.js | bionikspoon/react-comment | import React from 'react';
class Hello extends React.Component {
constructor(props) {
super(props);
this.state = {count: 5};
this.incrementCount = this.incrementCount.bind(this);
}
incrementCount() {
this.setState({
count: this.state.count + 1
});
}
... |
web/app/pages/password.js | bitemyapp/serials | // @flow
import React from 'react'
import {Link} from 'react-router'
import {LogoPage} from './login'
import {makeUpdate} from '../data/update'
import {Alerts} from '../model/alert'
import {User, forgotPassword, resetPassword} from '../model/user'
import {transitionTo, Routes} from '../router'
export class ForgotPassw... |
packages/react/src/components/Popover/index.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { settings } from 'carbon-components';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
co... |
js/app.js | ayal/jaar | /**
*
* app.js
*
* This is the entry file for the application, mostly just setup and boilerplate
* code. Routes are configured at the end of this file!
*
*/
// Load the ServiceWorker, the Cache polyfill, the manifest.json file and the .htaccess file
//import 'file?name=[name].[ext]!../serviceworker.js';
import ... |
app/components/Table/index.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import BoardCards from 'components/Card/BoardCards';
import Seat from 'containers/Seat';
import TableMenu from '../../containers/TableMenu';
import ActionBar from '../../containers/ActionBar';
import tableImage from './tableBG.svg';
import Pot from '../Pot'... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/wb-cloudy.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageWbCloudy = (props) => (
<SvgIcon {...props}>
<path d="M19.36 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.64-4.96z"/>
</SvgIcon>
);
ImageWbCloud... |
app/javascript/mastodon/features/status/index.js | increments/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '../../components/missing_indicator';
... |
src/App/Body/Content/index.js | mikearnaldi/react-starter | import React from 'react'
import {Match} from 'react-router'
import styled from 'styled-components'
import One from './One'
import Two from './Two'
const Container = styled.div`
height: 100%;
`
const Content = () => {
return (
<Container>
<Match pattern={'/'} exactly component={One} />
<Match patt... |
src/components/Window.js | mmapplebeck/react-redux-minesweeper | import React from 'react'
import '../style/window.scss'
export default props => (
<div className="window">
<div className="window__header">
<div className="window__header-icon sprite"></div>
<div className="window__header-title">
{props.title}
</div>
</div>
<div className="windo... |
src/svg-icons/action/room.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoom = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z... |
packages/@lyra/components/src/progress/ProgressBar.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import styles from 'part:@lyra/components/progress/bar-style'
export default class ProgressBar extends React.Component {
static propTypes = {
className: PropTypes.string,
percent: PropTypes.number,
animation: PropTypes.bool,
completed: Prop... |
ui/src/components/CreateConnectionDialog.js | jliddev/pgBrowse | import React, { Component } from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import CommCenter from '../comm/CommCenter';
class CreateConnectionDialog extends Component {
state = {
name: 'Test',
h... |
App/GroupMgmtOptions.js | adnanhemani/RideApp | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Navigator,
ScrollView,
ListView,
Alert,
} from 'react-native';
import {
Platform,
TouchableHighlight,
TouchableNativeFeedback,
} from "react-native";
import NavigationBar from 'react-native-navbar';
class GroupMgmtOptions e... |
lib/components/core/Text.js | mrkre/react-d3-viz | import React from 'react';
import PropTypes from 'prop-types';
const Text = ({
text,
textAnchor,
x,
y,
dy,
fill,
fillOpacity,
opacity,
transform,
style,
onMouseOver,
onMouseOut,
}) => (
<text
textAnchor={textAnchor}
x={x}
y={y}
dy={dy}
fill={fill}
fillOpacity={fillOpac... |
dispatch/static/manager/src/js/pages/Persons/PersonPage.js | ubyssey/dispatch | import React from 'react'
import R from 'ramda'
import { connect } from 'react-redux'
import { Button, Intent } from '@blueprintjs/core'
import userActions from '../../actions/UserActions'
import personsActions from '../../actions/PersonsActions'
import invitesActions from '../../actions/InvitesActions'
import Person... |
src/components/WelcomeScreen/SignUp/SignUp.component.js | amberleyromo/cboard | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import { withFormik } from 'formik';
import Button from 'material-ui/Button';
import Dialog, {
DialogTitle,
DialogContent,
DialogActions
} from 'material-ui/Dialog';
... |
src/svg-icons/file/cloud-circle.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudCircle = (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 2zm4.5 14H8c-1.66 0-3-1.34-3-3s1.34-3 3-3l.14.01C8.58 8.28 10.13 7 12 7c2.21 0 4 1.79... |
blueocean-material-icons/src/js/components/svg-icons/image/add-a-photo.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageAddAPhoto = (props) => (
<SvgIcon {...props}>
<path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-3.2-5c0 1.77 1.4... |
src/components/App/index.js | Reditr-Software/reditr | import React from 'react'
import { render } from 'react-dom'
import Viewer from 'react-viewer'
import PropTypes from 'prop-types'
import { BrowserRouter as Router, Route, Switch, Link } from 'react-router-dom'
import history from '../../utilities/History'
import HeaderView from '../HeaderView'
import QuickSwitchView f... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js | CodeLinkIO/react-native | 'use strict';
import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
} from 'react-native';
import ListItem from '../../components/ListItem';
import WelcomeText from './WelcomeText';
export default class WelcomeScreen extends Component {
static navigationOptions = {
title: 'Welc... |
docs/app/Examples/views/Feed/Types/FeedExampleShorthand.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const events = [
{
date: '1 Hour Ago',
image: 'http://semantic-ui.com/images/avatar/small/elliot.jpg',
meta: '4 Likes',
summary: 'Elliot Fu added you as a friend',
},
{
date: '4 days ago',
image: 'http://semantic-ui.com/im... |
Prototype/leo/speed-animal-metaphor/node_modules/case-sensitive-paths-webpack-plugin/demo/src/init.js | tjlagrow/MurmuringMallards | import AppRoot from './AppRoot.component.js';
import React from 'react';
import ReactDOM from 'react-dom';
const app = {
initialize() {
ReactDOM.render(<AppRoot/>, document.getElementById('react-app-hook'));
}
};
app.initialize();
|
src/client.js | zsl99a/localjs-store | import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import Relay from 'react-relay'
import ViewerQueries from './queries/ViewerQueries'
import App from './app'
Relay.injectNetworkLayer(
new Relay.DefaultNetworkLayer('/graphql')
)
ReactDOM.render(
<BrowserRo... |
examples/LeftAlignedNavbar.js | mattBlackDesign/react-materialize | import React from 'react';
import Navbar from '../src/Navbar';
import NavItem from '../src/NavItem';
export default
<Navbar brand='logo' left>
<NavItem href='get-started.html'>Getting started</NavItem>
<NavItem href='components.html'>Components</NavItem>
</Navbar>;
|
app/features/settings/SelectField.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import cuid from 'cuid';
import { titleCase } from 'voca';
import { Block, Label, Note } from './styles';
const SelectField = ({ input, options, label, note }) => (
<Block>
<Label htmlFor={input.name}>
<span>{label || input.name}</span>
... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/NavDropdown.js | Akkuma/npm-cache-benchmark | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.