path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/components/Ingredients.js | MichaelLSmith/recipeBox | import React from 'react';
import { ListGroup, ListGroupItem } from 'react-bootstrap';
function Ingredients(props) {
// console.log(props);
if(props.ingredients == undefined){
return <div>Ingredients here</div>
}
const ingredientsList = props.ingredients.map(
(ingredient, key) => {
return (
<... |
ui/src/components/event/EventExecs.js | d3sw/conductor | import React, { Component } from 'react';
import { Link, browserHistory } from 'react-router';
import { Breadcrumb, BreadcrumbItem, Input, Well, Button, Panel, DropdownButton, MenuItem, Popover, OverlayTrigger, ButtonGroup, Table, Grid, Row, Col } from 'react-bootstrap';
import {BootstrapTable, TableHeaderColumn} from ... |
src/Accordion.js | leozdgao/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
const Accordion = React.createClass({
render() {
return (
<PanelGroup {...this.props} accordion={true}>
{this.props.children}
</PanelGroup>
);
}
});
export default Accordion;
|
src/interface/report/Results/Timeline/Buffs.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Trans } from '@lingui/macro';
import { formatDuration } from 'common/format';
import Icon from 'common/Icon';
import SpellLink from 'common/SpellLink';
import BuffsModule from 'parser/core/modules/Buffs';
import Tooltip from 'common/Tooltip';
imp... |
src/components/Footer/Footer.js | YumboRumbo/FlashCard | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import s from './Footer.scss';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
@withStyles(s)
class Footer extends Component {
render() {
return (
<div clas... |
mla_game/front-end/javascript/components/partials/corrections.js | WGBH/FixIt | import React from 'react'
import classNames from 'classnames'
class Corrections extends React.Component {
render(){
return(
<div className="vote-option corrected">
{this.props.text}
</div>
)
}
}
export default Corrections; |
src/scenes/imports/view.js | bobinette/papernet-front | import PropTypes from 'prop-types';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import classNames from 'classnames';
import { paperPropType } from 'utils/constants';
import FileLoader from './components/file-loader';
import ImportViewRow from './components/row';
import './v... |
app.js | melnik88/rusty-hammers | /* global document */
import './node_modules/milligram/dist/milligram.min.css';
import './style.css';
import Main from './components/Main.jsx';
import Results from './components/Results.jsx';
import Contacts from './components/Contacts.jsx';
import Walks from './components/Walks.jsx';
import React from 'react';
impor... |
src/client/app.js | JBostelaar/Digital-Dash | import getRoutes from 'client/utils/getRoutes';
import { Provider } from 'react-redux';
import { createStore, combineReducers } from 'redux';
import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import * as reducers from 'client/reducers';
const reducer ... |
src/components/AnimalPage.js | KingCountySAR/database-frontend | import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import { Card, CardHeader, CardText } from 'material-ui/Card';
import MissionsTable from './MissionsTable';
import { missionProp, animalProp } from '../propTypes';
import Page from './Page';
const AnimalPage = ({ ... |
react-frontend/src/LoginPanel.js | aabmass/print-web | import React, { Component } from 'react';
import { Card, Button } from 'semantic-ui-react'
import LoginForm from './LoginForm';
// a react function component
class LoginPanel extends Component {
render() {
let body = undefined;
let isLoggedIn = this.props.user.isLoggedIn;
if (isLoggedIn) {
let { ... |
stories/toast.stories.js | sovrin/spectres | import React from 'react';
import {storiesOf} from '@storybook/react';
import Toast from '../src/components/Toast';
import Button from '../src/components/Button';
import Toasts from '../src/managers/Toasts';
import {text} from '../.storybook/addons';
const manager = Toasts.getManager();
storiesOf('Toast', module)
... |
examples/03 Nesting/Drop Targets/Container.js | arnif/react-dnd | import React from 'react';
import Dustbin from './Dustbin';
import Box from './Box';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
@DragDropContext(HTML5Backend)
export default class Container {
render() {
return (
<div>
<div style={{ over... |
app/scripts/main.js | kroupaTomass/Piknik-In-The-City | import React from 'react';
import Router from 'react-router';
import routes from './routes';
Router.run(routes, Handler => React.render(<Handler />, document.body));
|
example/__tests__/App-test.js | doomsower/react-native-vkontakte-login | /**
* @format
*/
import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
renderer.create(<App />);
});
|
frontend/app/common/conf/pagesIndex.js | First-Peoples-Cultural-Council/fv-web-ui | /*
Copyright 2016 First People's Cultural Council
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 w... |
src/components/common/Button.js | jaggerwang/zqc-app-demo | /**
* 在球场
* zaiqiuchang.com
*/
import React from 'react'
import {StyleSheet, Text, TouchableOpacity} from 'react-native'
import flattenStyle from 'flattenStyle'
import {COLOR} from '../../config'
export default ({text, onPress, containerStyle, textStyle}) => {
let {fontSize} = flattenStyle(textStyle || styles.t... |
interface/components/SendTx/index.js | ethereum/mist | import React, { Component } from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import ExecutionContext from './ExecutionContext';
import FeeSelector from './FeeSelector';
import Footer from './Footer';
import TxParties from './TxParties';
import {
confirmTx,
determineIfContract,
estimate... |
packages/react-ui-components/src/Tree/tree.spec.js | mstruebing/PackageFactory.Guevara | import React from 'react';
import {shallow} from 'enzyme';
import toJson from 'enzyme-to-json';
import {createStubComponent} from './../_lib/testUtils';
import Tree from './tree';
describe('<Tree/>', () => {
let props;
beforeEach(() => {
props = {
theme: {
panel: 'panelBase... |
lib/client/app/components/grid-rows.js | andrei-cacio/perl-prerender | /* jshint esnext: true */
import React from 'react';
import ReactDOM from 'react-dom';
import Griddle from 'griddle-react';
import {fakeData} from '../fixtures/grid';
/* jshint ignore:start */
export const GriddleRows = React.createClass({
componentWillMount() {
this.setState({
rows: this.prop... |
react/features/base/react/components/native/NavigateSectionListItem.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import type { Item } from '../../Types';
import AvatarListItem from './AvatarListItem';
import Container from './Container';
import Text from './Text';
import styles from './styles';
type Props = {
/**
* Item containing data to be rendered.
*/
it... |
src/svg-icons/editor/multiline-chart.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMultilineChart = (props) => (
<SvgIcon {...props}>
<path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3... |
src/parser/monk/brewmaster/modules/features/StaggerPoolGraph.js | FaideWW/WoWAnalyzer | import React from 'react';
import { Line as LineChart } from 'react-chartjs-2';
import 'common/chartjs-plugin-vertical';
import { formatDuration, formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Analyzer from 'parser/core/Analyzer';
import Tab fr... |
imports/react/containers/AppContainer.js | leocavalcante/mars | import React from 'react'
import App from '../components/App'
import { connect } from 'react-redux'
import { queryMessages } from '/imports/redux/actions/query-messages'
import { addMessage } from '/imports/redux/actions/add-message'
const props = state => ({
label: state.label,
messages: state.messages,
})
const... |
src/components/structures/RightPanel.js | martindale/vector | /*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2017 New Vector Ltd
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... |
src/app.js | telpalbrox/EliteTime | 'use strict';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { HashRouter as Router, Route } from 'react-router-dom';
import MainPage from './components/MainPage.js';
import TorrentPage from './components/TorrentPage';
import SearchPage from './components/SearchPage';
import Settings... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js | RobzDoom/frame_trap | /**
* 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.
*/
import Rea... |
src/components/ExperienceDetail/Heading/index.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import { Heading, P } from 'common/base';
import cn from 'classnames';
import styles from './Heading.module.css';
import { companyNameSelector, jobTitleSelector } from '../experienceSelector';
const formatType = type => {
switch (type) {
case 'work'... |
packages/stockflux-launcher/src/search-results/SearchResults.js | owennw/OpenFinD3FC | import React from 'react';
import classNames from 'classnames';
import SearchResult from './SearchResult';
export default ({ results, paddingNeeded }) =>
results &&
results.length > 0 && (
<div className={classNames('cards', { 'padding-top': paddingNeeded })}>
{results.map(result => (
<SearchResu... |
packages/mineral-ui-icons/src/IconCode.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconCode(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
dva/wind-tunnel/src/routes/P3.js | imuntil/React | import React from 'react'
import MainLayout from '../components/MainLayout/MainLayout'
import FadeInOut from '../components/Animation/FadeInOut'
import Form from '../components/End/Form'
import { connect } from 'dva'
function P3({current, dispatch, location, history, match}) {
function handleSubmit() {
dispatch(... |
client/my-sites/importer/dispatcher-converter.js | tinkertinker/wp-calypso | import Dispatcher from 'dispatcher';
import React from 'react';
import find from 'lodash/find';
import identity from 'lodash/identity';
import isFunction from 'lodash/isFunction';
const firstCallable = ( ...args ) => find( args, isFunction );
const mergeProps = ( ...args ) => Object.assign( {}, ...args );
const dispa... |
src/Form/Field/FieldBody.js | boldr/boldr-ui | // @flow
import React from 'react';
import classNames from 'classnames';
import { createWrappedComponent } from '../../util/boldrui';
export type Props = {
tag?: string,
className?: string,
};
export function FieldBody({ tag = 'div', ...props }: Props) {
const className = classNames('boldrui-form__field-body',... |
internals/templates/containers/LanguageProvider/index.js | iPhaeton/Selectors-study | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
tests/routes/Projects/components/NewProjectTile.spec.js | KyperTech/devshare-site | import React from 'react'
import NewProjectTile from 'routes/Projects/components/NewProjectTile/NewProjectTile'
import { shallow } from 'enzyme'
describe('(Projects:Component) NewProjectTile', () => {
let _component
beforeEach(() => {
_component = shallow(
<NewProjectTile />
)
})
it('Renders', (... |
app/pages/ProductPage.js | Byte-Code/lm-digitalstore | import React from 'react';
import PropTypes from 'prop-types';
import Page from '../components/Page';
import Product from '../containers/Product';
import Footer from '../components/Footer';
import SideMenu from '../components/SideMenu';
export default function ProductPage(props) {
return (
<Page padding="0 0 14... |
src/svg-icons/action/search.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSearch = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
packages/example-phone/src/scripts/components/auth-status.js | udaysrinath/spark-js-sdk | import React from 'react';
export default function AuthStatus({authenticated, authenticating}) {
let message;
if (authenticated) {
message = `authenticated`;
}
else if (authenticating) {
message = `authenticating`;
}
else {
message = `not authenticated`;
}
return <span className="authentic... |
src/routes/request/index.js | mapengze/Antd-Backstage | import React from 'react'
import styles from './index.less'
import Mock from 'mockjs'
import { request, config } from '../../utils'
import {
Row,
Col,
Card,
Select,
Input,
Button,
} from 'antd'
const { api, baseURL } = config
const { dashboard, users, userLogin, user } = api
const requestOptions = [
{
... |
client/components/user/user_profile.js | xxnatc/waste-not | import React, { Component } from 'react';
import InventoryList from './inventory_list';
import Map from '../map/map';
export default class OrganizationProfile extends Component {
render() {
return (
<div>
<InventoryList />
<Map />
</div>
);
}
}
|
test/ButtonToolbarSpec.js | mmartche/boilerplate-shop | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Button from '../src/Button';
import ButtonGroup from '../src/ButtonGroup';
import ButtonToolbar from '../src/ButtonToolbar';
describe('ButtonToolbar', () => {
it('Should output a button toolbar... |
src/elements/List/ListIcon.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
createShorthandFactory,
getUnhandledProps,
META,
SUI,
useVerticalAlignProp,
} from '../../lib'
import Icon from '../Icon/Icon'
/**
* A list item can contain an icon.
*/
function ListIcon(props) {
const { cl... |
src/component/List.js | CompileYouth/SmallFish | import React, { Component } from 'react';
import {
ListView
} from 'react-native';
import Item from './Item';
export default class List extends Component {
constructor() {
super();
this._renderTodo = this._renderTodo.bind(this);
}
componentWillMount() {
this.todos = [
{ text: '吃饭', date: '... |
src/svg-icons/action/visibility.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibility = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-... |
public/js/left.js | MelanistOnca/Pers | import React from 'react';
import { render } from 'react-dom';
import $ from 'jquery';
import Foot from './foot';
import LayoutSelector from './subComponents/layoutSelector'
import site_left_switch from './helpers/site_left_switch'
export default class Left extends React.Component {
render(){
// console.log... |
templates/frontOffice/modern/components/React/SubTitle/index.js | lopes-vincent/thelia | import React from 'react';
export default function SubTitle({ subTitle, className }) {
return (
<div
className={`text-3xl font-bold text-left outline-none mb-8 leading-none ${className}`}
>
{subTitle}
</div>
);
}
|
src/containers/ProductsContainer.js | ihenvyr/react-parse | import React from 'react';
import Products from '../components/Products';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { brandsLoad } from '../actions';
import { withRouter } from 'react-router';
const ProductsContainer = (props) => {
return (
<Products {...props} />
... |
src/containers/FuelSavingsPage.spec.js | Liz303/Flight | import React from 'react';
import {shallow} from 'enzyme';
import {FuelSavingsPage} from './FuelSavingsPage';
import FuelSavingsForm from '../components/FuelSavingsForm';
describe('<FuelSavingsPage />', () => {
it('should contain <FuelSavingsForm />', () => {
const actions = {
saveFuelSavings: () => { },
... |
src/scripts/routes.js | jie/microgate | import cookie from './utils/cookie'
import React from 'react'
import { Router, Route } from 'react-router'
import AccountLoginApp from './containers/account'
import { MainApp } from './containers/admin'
import { DashboardApp } from './containers/admin'
import { ApiCreateApp, ApisListApp } from './containers/admin'
impo... |
fields/types/file/FileField.js | xyzteam2016/keystone | import Field from '../Field';
import React from 'react';
import { Button, FormField, FormInput, FormNote } from 'elemental';
module.exports = Field.create({
displayName: 'FileField',
statics: {
type: 'File',
},
shouldCollapse () {
return this.props.collapse && !this.hasExisting();
},
fileFieldNode () {
... |
app/components/Editor/index.js | rohitRev/React | /**
*
* Editor
*
*/
import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
const customContentStyle = {
width: '60%',
maxWidth: 'none',
};
class Editor extends React.Component { /... |
js/components/tabMenu/index.js | gectorat/react-native-app |
import React, { Component } from 'react';
import {
TouchableOpacity,
Image,
Alert
} from 'react-native';
import { View as RawView } from 'react-native';
import { connect } from 'react-redux';
import {
Container,
Content,
Header,
Title,
Tabs,
Text,
Card,
CardItem,
Grid,
Col,
Row,
Button,
... |
src/svg-icons/maps/local-convenience-store.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalConvenienceStore = (props) => (
<SvgIcon {...props}>
<path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z"/>
</SvgIcon>
);
MapsLocalConvenienceStore = ... |
app/utils/icons.js | wilomgfx/AnyWeatherReactRedux | import React from 'react';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
export default function getWeatherIconByIconName(darkSkyIconName, iconSize =30, color='white', styles= {}){
switch (darkSkyIconName){
case 'clear-day':
return <Icon name="weather-sunny" size={iconSize} color={... |
react/features/welcome/components/AbstractWelcomePage.js | bickelj/jitsi-meet | import React, { Component } from 'react';
import { appNavigate } from '../../app';
import { isRoomValid } from '../../base/conference';
import { VideoTrack } from '../../base/media';
import { getLocalVideoTrack } from '../../base/tracks';
/**
* Base (abstract) class for container component rendering the welcome page... |
src/svg-icons/notification/power.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPower = (props) => (
<SvgIcon {...props}>
<path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"/>
</SvgIcon>
);
NotificationPower = pu... |
examples/js/manipulation/del-row-custom-confirm.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-console: 0 */
/* eslint no-alert: 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 i... |
test/BootstrapMixinSpec.js | albertojacini/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import BootstrapMixin from '../src/BootstrapMixin';
import styleMaps from '../src/styleMaps';
import { shouldWarn } from './helpers';
let Component;
describe('BootstrapMixin', () => {
beforeEach(() => {
Component = React.createCla... |
src/app/DevTools.js | eordano/sherlock | 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-g'
changePositionKey='ctrl-q' >
<LogMonitor />
</Dock... |
src/components/Account/components/Reservations/components/PastReservations/components/PastReservation/index.js | galsen0/hair-dv-front | /**
* Created by diop on 11/05/2017.
*/
import React from 'react';
import { Item, Label, Button, Grid, Icon } from 'semantic-ui-react';
const PastReservation = () => {
return(
<Item>
<Item.Image src='../../../img/front-image-one.jpeg' size="medium" />
<Item.Content>
... |
packages/core/stories/tokens/icons/Icon.stories.js | massgov/mayflower | import React from 'react';
import { assets } from './Icon.knob.options';
import IconDisplay from './IconDisplay';
import generateTitle from '../../util/generateTitle';
export const Icons = (args) => (
<ul className="sg-icons">
{
Object.keys(assets).map((icon) => (
<IconDisplay {...args} name={i... |
app/javascript/mastodon/features/favourited_statuses/index.js | Kirishima21/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
import ColumnHeade... |
server/dashboard/js/components/Bench.react.js | MrAlone/mzbench | import React from 'react';
import BenchStore from '../stores/BenchStore';
import BenchNav from './BenchNav.react';
import BenchOverview from './BenchOverview.react';
import BenchGraphs from './BenchGraphs.react';
import BenchReports from './BenchReports.react';
import BenchScenario from './BenchScenario.react';
import... |
react/private/GlobalFooter/GlobalFooter.js | seekinternational/seek-asia-style-guide | import React, { Component } from 'react';
import styles from './GlobalFooter.less';
import PropTypes from 'prop-types';
import FooterLinks from './components/FooterLinks/FooterLinks';
import UpperFooter from './components/UpperFooter/UpperFooter';
import { Hidden, Text, PageBlock, ListItem, Icon } from 'seek-asia-style... |
client/containers/lists/ImportCSV.spec.js | zhakkarn/Mail-for-Good | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { ImportCSVComponent } from './ImportCSV';
const mockProps = ( overrides) => ({ // eslint-disable-line no-unused-vars
handleCSVSubmit: () => {},
isPosting: true,
notification: () => {},
upload: {}
});
const wra... |
docs/tutorial/DO_NOT_TOUCH/01/src/index.js | FWeinb/cerebral | import React from 'react'
import {render} from 'react-dom'
import {Controller} from 'cerebral'
import {Container} from 'cerebral/react'
import Devtools from 'cerebral/devtools'
import App from './components/App'
const controller = Controller({
devtools: Devtools()
})
render((
<Container controller={controller}>
... |
src/routes/register/index.js | jwhchambers/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Register from './Registe... |
client/modules/core/components/main_layout.js | wmzhai/mantra-demo | import React from 'react';
import Header from './header';
const Layout = ({content = () => null }) => (
<div>
<Header />
<main className="app-layout">
{content()}
</main>
<footer className="site-footer">
<small>基于<a href='https://github.com/kadirahq/mantra'>Mantra</a> & Meteor构建.</s... |
src/BootstrapMixin.js | natlownes/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
src/app/containers/App.js | skratchdot/js-playground | import React, { Component } from 'react';
import { Grid } from 'react-bootstrap';
import pathGet from 'object-path-get';
import GithubCorner from 'react-github-corner';
import Header from '../components/Header';
import Footer from '../components/Footer';
import stringToCssName from '../helpers/stringToCssName';
class ... |
hw8/frontend/src/index.js | yusong-shen/comp531-web-development | /*
High level logic for entire front-end applicaiton
*/
require('expose?$!expose?jQuery!jquery')
require("bootstrap-webpack")
require('./styles.css')
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import createLogger from 'redux-logger'
import { createStore, compose,... |
assets/jqwidgets/demos/react/app/grid/bindingtoobservablearray/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
constructor() {
super();
this.state = {
observableArra... |
src/svg-icons/action/label.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabel = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/>
</SvgIcon>
);
A... |
src/basic/Textarea.js | sampsasaarela/NativeBase | import React, { Component } from 'react';
import { TextInput } from 'react-native';
import { connectStyle } from 'native-base-shoutem-theme';
import variables from '../theme/variables/platform';
import computeProps from '../Utils/computeProps';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class Te... |
src/svg-icons/av/not-interested.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNotInterested = (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 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12... |
src/svg-icons/image/center-focus-strong.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusStrong = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V... |
examples/js/selection/select-bgcolor-table.js | dana2208/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,
... |
src/scenes/ProductView/index.native.js | Manuelandro/Universal-Commerce | import React from 'react'
import { graphql, compose } from 'react-apollo'
import { ProductViewQuery } from '../../../server/graphql/queries/product'
import ProductView from './component.native'
import { ScrollView } from '../../components/native'
const ProductViewWithData = (props) =>
(
<ScrollView>
... |
packages/bonde-admin-canary/src/components/Tutorial/Provider.js | ourcities/rebu-client | // Provider is responsible to union Dialog components
import React from 'react'
import PropTypes from 'prop-types'
import Context, { defaultContext } from './Context'
import Dialog from './Dialog'
const initializeCondition = initialize => (
typeof initialize === 'function'
? initialize()
: initialize
)
clas... |
app/components/SoundPlayer/ShowSoundPlayer.js | juanda99/arasaac-frontend | import React from 'react'
import SoundPlayer from './index';
import GetAppIcon from 'material-ui/svg-icons/action/get-app'
import IconButton from 'material-ui/IconButton'
import {
LOCUTIONS_URL,
} from 'services/config'
import {downloadLocution } from 'services'
const ShowSoundPlayer = ({hasLocution, locale, keyword... |
src/components/Charts/Bar/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... |
fields/types/boolean/BooleanFilter.js | stosorio/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false }
];
var BooleanFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || TOGGLE_OPTIONS[0].value
};
... |
client/components/ui/tabs.js | bnjbvr/kresus | import React from 'react';
import { Route, Switch, Redirect, NavLink } from 'react-router-dom';
import PropTypes from 'prop-types';
class TabsContainer extends React.Component {
handleSelectorChange = event => {
let newPath = event.target.value;
// Only modify current path if necessary
if (... |
app/javascript/mastodon/features/ui/components/column_link.js | mimumemo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
const ColumnLink = ({ icon, text, to, href, method, badge }) => {
const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span> : null;
if (href) {
return (
<... |
src/components/molecules/Feature/index.js | DimensionLab/narc | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { ifProp } from 'styled-tools'
import { Icon, Link, Paragraph, Heading, Badge, PreformattedText } from 'components'
const Wrapper = styled.div`
position: relative;
display: flex;
padding: 1rem;
box-sizin... |
frontend/src/components/tree-view/tree-node-view.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { permission } from '../../utils/constants';
import TextTranslation from '../../utils/text-translation';
import ItemDropdownMenu from '../dropdown-menu/item-dropdown-menu';
const propTypes = {
repoPermission: PropTypes.bool,
node: PropTypes.obje... |
src/components/calendar/CheckoutForm.js | ChrisWhiten/react-rink | import React from 'react';
import PropTypes from 'prop-types';
import {injectStripe} from 'react-stripe-elements';
import Snackbar from 'material-ui/Snackbar';
import {
Form,
Col,
// Checkbox,
} from 'react-bootstrap';
import PersonalInfoSection from './PersonalInfoSection';
import CardSection from './CardSectio... |
react/dashboard_example/src/components/Header/Header.js | webmaster444/webmaster444.github.io | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 withStyles from 'isomorp... |
src/App.js | robreczarek/clouds-stepone-app | import React, { Component } from 'react';
import Logout from './Logout';
import Nav from './Nav';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<h2>Sample Recruitment App</h2>
</div>
<Nav />
... |
src/js/contexts/ResponsiveContext/ResponsiveContext.js | grommet/grommet | import React from 'react';
import { ResponsiveContextPropTypes } from './propTypes';
export const ResponsiveContext = React.createContext(undefined);
ResponsiveContext.propTypes = ResponsiveContextPropTypes;
|
old-or-not-typescript/React-RxJS/src/routes/Login.js | janaagaard75/framework-investigations | import React from 'react';
const Login = () => (
<div className="jumbotron text-center">
<h1>Login</h1>
</div>
);
export default Login;
|
storybook/stories/Tabs.story.js | entria/entria-components | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { Tabs, Tab, RoutedTabs, ScrollableRoutedTabs } from '../../src';
const stories = storiesOf('Tabs', module);
stories.add('default', () =>
<div style={styles.wrapper}>
<Tabs>
<Tab label="Tab 1">
<div style={styles.tab... |
docs/src/Root.js | westonplatter/react-bootstrap | import React from 'react';
import Router from 'react-router';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html',
'introduction.html',
'getting-started.html',... |
src/svg-icons/device/signal-wifi-2-bar.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi2Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M4.79 12.52l7.2 8.98H12l... |
test/CollapsableNavSpec.js | Azerothian/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import CollapsibleNav from '../src/CollapsibleNav';
import Nav from '../src/Nav';
import Panel from '../src/Panel';
import {shouldWarn} from './helpers';
describe('Deprecations for collapsable property in CollapsibleNav', function () {
... |
src/components/Subscribe.js | ViniciusAtaide/reduxchat | import React, { Component } from 'react';
export default class Subscribe extends Component {
render() {
return (
<h1>Subscribe</h1>
);
}
} |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | yukimochi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import Immuta... |
src/index.js | nnecec/anteact | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack t... |
packages/material-ui-icons/src/AddToPhotos.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z" /></g>
, 'AddToPhotos');
|
client/scripts/components/user/revise/entity-section/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
Lic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.