path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/src/components/Listing/FullListing.js | wolnewitz/raptor-ads | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import Carousel from 'nuka-carousel';
import moment from 'moment';
import { Container, Grid, Image, Header, Divider, Message, List, Loader, Button, Modal, Form, Card } from 'semantic-ui-react';
import G... |
src/components/yii/plain/YiiPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './YiiPlain.svg'
/** YiiPlain */
function YiiPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'YiiPlain' + ' ' + className}
iconSVG=... |
src/containers/LaserTagHome/index.js | bobrown101/phi-tau | import React from 'react';
import {Link} from 'react-router';
// import Header from '../../components/Header.js';
import Section from '../../components/Section.js';
// import AngledDivider from './AngledDivider.js';
import CursiveHeader from '../../components/CursiveHeader.js';
import CenteredContainer from '../../comp... |
app/containers/OnboardingPage/index.js | simon-johansson/PB-labz |
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import styles from './styles.css';
import match from './match.png';
import splash from './splash.png';
import bg from './Welcome_man_headphones_white.jpg';
export class FeaturePage extends React.Component {
... |
modules/Lifecycle.js | jdelight/react-router | import React from 'react';
import invariant from 'invariant';
var { object } = React.PropTypes;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method
* to a component that may be used to cancel a transition or prompt
* the user for confirmation.
*
* On standard transitions, routerWillLeave receives... |
src/components/Page/Page.js | yvanwangl/UniversalBlog | /**
* 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-... |
src/svg-icons/communication/call-split.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallSplit = (props) => (
<SvgIcon {...props}>
<path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/>
</SvgIcon>
);
CommunicationCallS... |
local-cli/templates/HelloNavigation/components/ListItem.js | ankitsinghania94/react-native | 'use strict';
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
TouchableHighlight,
TouchableNativeFeedback,
View,
} from 'react-native';
/**
* Renders the right type of Touchable for the list item, based on platform.
*/
const Touchable = ({onPress, children}) => {
const c... |
examples/forms-bootstrap/src/components/dialogs-update-wizard-generic/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
export default lore.connect(function(getState, props) {
const { tweetId } = props.params;
return {
tweet: getState('tweet.byId... |
react-flux-mui/js/material-ui/src/svg-icons/device/bluetooth-disabled.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothDisabled = (props) => (
<SvgIcon {...props}>
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29... |
src/components/common/svg-icons/hardware/keyboard-arrow-up.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowUp = (props) => (
<SvgIcon {...props}>
<path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowUp = pure(HardwareKeyboardArrowUp);
HardwareKeyboardAr... |
client/src/components/Login/index.js | yuxuan1101/airPivilion | /**
* Created by yuxuan on 7/8/16.
*/
import React from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import TextField from 'material-ui/TextField'
import RaisedButton from 'material-ui/RaisedButton'
import Snackbar from 'material-ui/Snackbar'
import Paper from 'material-ui/Paper'
... |
src/routes.js | seeds-of-creativity/home | /**
* 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 Router from 'react-routi... |
admin/src/components/ItemsTableCell.js | ligson/keystone | import React from 'react';
var ItemsTableCell = React.createClass({
displayName: 'ItemsTableCell',
propTypes: {
className: React.PropTypes.string,
},
render () {
let className = 'ItemList__col' + (this.props.className ? (' ' + this.props.className) : '');
return (
<td {...this.props} className={className... |
docs/app/Examples/collections/Form/Shorthand/FormExampleSubcomponentId.js | shengnian/shengnian-ui-react | import React from 'react'
import { Form } from 'shengnian-ui-react'
const FormExampleSubcomponentId = () => (
<Form>
<Form.Group widths='equal'>
<Form.Input id='form-subcomponent-shorthand-input-first-name' label='First name' placeholder='First name' />
<Form.Input id='form-subcomponent-shorthand-inp... |
client/components/Utils/TextButton.js | Mignon-han/issue-processing | import React, { Component } from 'react';
import { Button, Glyphicon } from 'react-bootstrap';
import '../Filter/css/style.css';
class TextButton extends Component {
constructor(props) {
super(props);
}
render() {
const { text, repo, onClick } = this.props;
return (
<di... |
client/components/Research/Awards.js | Treeeater/expresshome | import React from 'react';
export const Awards = () => {
return (
<div className="singleEntry">
<h1 style={{ fontSize: '3em' }}>Awards, Patents, and Media Coverage</h1>
<br />
<div className="textBlock">
<ul>
<li>
<div>UVa today media coverage, 2015</div>
<p>The resear... |
assets/react/dist/grid_offset.js | nathansmith/unsemantic | // Dependencies.
import React from 'react';
import PropTypes from 'prop-types'; // Define class.
class GridOffset extends React.Component {
// Render method.
render() {
// Expose UI.
return /*#__PURE__*/React.createElement("div", {
className: "grid-offset"
}, this.props.children);
}
} // Valid... |
Rosa_Madeira/Cliente/src/components/common/card_produto/Card.js | victorditadi/IQApp | import React from 'react';
import { View } from 'react-native';
const Card = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderWidth: 1,
borderRadius: 2,
borderColor: '#846848',
borderBottomWidth: 0,
... |
code/frontend/src/components/ContractorInfo/index.js | CPSC319-2017w1/coast.the-terminal | /**
* Created by shrey on 2017-11-18.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ContractorInfoComponent from './ContractorInfo.jsx';
import EditContractor from './EditContractor.js';
import { isLoading, hasStoppedLoading } from '../../actions/main-... |
app/addons/documents/header/header.js | popojargo/couchdb-fauxton | // 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, software
// distributed un... |
src/components/about/About-Userform-View.js | nikolay-is/jsappproject | import React from 'react';
class AboutForm extends React.Component {
render() {
let tableRows = this.props.userlogs.map((userLog, idx) =>
<tr key={userLog._id}>
<td>{userLog.ip}</td>
<td>{userLog.countryCode}</td>
<td>{userLog.country}</td>
<td>{userLog.cit... |
src/svg-icons/av/recent-actors.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRecentActors = (props) => (
<SvgIcon {...props}>
<path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.... |
src/components/Main.js | Bryukh/Puzzles | import React from 'react';
import Footer from './Footer';
import Header from './Header';
import puzzles from 'json!./puzzle-info.json';
import "../styles/main.scss";
var Main = React.createClass({
render: function () {
let blocks = puzzles.map((info, index) => {
let imageURL = (info.imageURL... |
src/pages/Prepare.js | Dermah/spooky-timer | import React from 'react';
import {compose, withState} from 'recompose';
import {withRouter} from 'react-router-dom';
import logo from '../logo.svg';
const prepare = ({
time,
updateTime,
date,
updateDate,
location,
history
}) => (
<div className="App">
<header className="App-header">
<img src=... |
src/components/svg/icon/Page-Content.js | ryanabragg/VanguardLARP | import React from 'react';
import PropTypes from 'prop-types';
const PageContent = (props) => {
const color = props.color == 'inherit' ? undefined : props.color;
const aria = props.title ? 'svg-page-content-title' : '' +
props.title && props.description ? ' ' : '' +
props.description ? 'svg-page-content-de... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | samidarko/react-router | import React from 'react';
class Announcement extends React.Component {
render () {
var { courseId, announcementId } = this.props.params;
var { title, body } = COURSES[courseId].announcements[announcementId];
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
... |
src/widgets/TabSelector/index.js | mydearxym/mastani | /*
*
* TabSelector
*
*/
import React from 'react'
import T from 'prop-types'
import { buildLog } from '@/utils/logger'
import {
Wrapper,
OptionsWrapper,
Option,
Icon,
Title,
HeaderDivider,
} from './styles'
/* eslint-disable-next-line */
const log = buildLog('c:TabSelector:index')
const TabSelector ... |
src/error/error.js | bschneier/credit-cards-front-end | import React from 'react';
import { Col } from 'react-bootstrap';
const ErrorPage = () => {
return (
<div className="errorText">
<h2>Error</h2>
<Col xs={12} md={8} mdOffset={2}>
An error occurred while processing your request. You should call the inferior web developer
who wrote this ... |
clients/packages/admin-client/src/community/components/dns/dns-preview/subdomain-preview.js | nossas/bonde-client | import PropTypes from 'prop-types'
import React from 'react'
const SubdomainPreview = ({ subdomain, menuComponent: MenuComponent, checked }) => (
<div className='table-row'>
<div className='wrapper'>
<div className='text' style={{ width: 30 }}>
<span className={`circle${checked ? ' checked' : ''}`}... |
app/pages/morePage.js | shiyunjie/scs | /**
* Created by shiyunjie on 16/12/6.
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Platform,
TouchableOpacity,
Linking,
NativeAppEventEmitter,
} from 'react-native';
import constants from '../constants/constant';
import ItemView from '../components/UserVi... |
actor-apps/app-web/src/app/utils/require-auth.js | voidException/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
site/src/templates/doc.js | tkh44/emotion | // @flow
/** @jsx jsx */
import { jsx } from '@emotion/react'
import React from 'react'
import { mq, colors } from '../utils/style'
import Playground from '../components/Playground'
import * as markdownComponents from '../utils/markdown-styles'
import memoize from '@emotion/memoize'
import Layout from '../layouts'
impo... |
src/svg-icons/image/view-comfy.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewComfy = (props) => (
<SvgIcon {...props}>
<path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-... |
src/components/ceylon/plain/CeylonPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './CeylonPlain.svg'
/** CeylonPlain */
function CeylonPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'CeylonPlain' + ' ' + className}
... |
examples/App/containers/Api.js | tangjinzhou/biz-mobile-ui | import React from 'react'
import ApiNav from '../components/ApiNav'
import Doc from '../components/Doc'
import Demo from './Demo'
import {px2rem, deviceHeight, htmlFontSize} from '@bizfe/biz-mobile-ui/build/util/util';
function getStyles() {
const pcStyle = {
container: {
minWidth: '960px',
... |
docs/app/Examples/elements/Image/Types/ImageExampleWrapped.js | ben174/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const src = 'http://semantic-ui.com/images/wireframe/image.png'
const ImageExampleWrapped = () => (
<Image src={src} size='small' wrapped />
)
export default ImageExampleWrapped
|
src/components/CardSectionTitle.js | carlyleec/cc-react | import React from 'react'; //eslint-disable-line
import styled from 'styled-components';
const CardSectionTitle = styled.h1`
font-size: 1em;
font-weight: 700;
line-height: 1.1;
color: inherit;
margin: auto;
text-align: center;
@media (min-width: 480px) {
font-size: 2em;
}
@media (min-width: 768px... |
src/components/Friends.js | openbasement/openbasement | import { connect } from 'react-redux';
import Modal from 'react-modal';
import React from 'react';
import { I18n } from 'react-redux-i18n';
import mapDispatchToProps from '../actions';
import { mapStateToProps } from '../model/state';
@connect(mapStateToProps, mapDispatchToProps)
export default class FriendsComponent... |
pkg/playground/plot.js | martinpitt/cockpit | import './plot.css';
import React from 'react';
import ReactDOM from "react-dom";
import { PlotState } from "plot.js";
import { SvgPlot, bytes_config } from "cockpit-components-plot.jsx";
const direct_metric = {
direct: ["mem.util.available"],
units: "bytes"
};
const pmcd_metric = {
pmcd: ["mem.util.ava... |
app/javascript/flavours/glitch/features/video/index.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { is } from 'immutable';
import { throttle, debounce } from 'lodash';
import classNames from 'classnames';
import { isFullscreen, requestFullscreen, exitFullscreen } from 'fla... |
src/svg-icons/action/announcement.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAnnouncement = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/>
</SvgIcon>
);
ActionAnnouncement = pu... |
src/svg-icons/action/swap-vert.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapVert = (props) => (
<SvgIcon {...props}>
<path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/>
</SvgIcon>
);
ActionSwapVert = pure(ActionSwapVert);
ActionSwapVert.displa... |
src/svg-icons/hardware/keyboard-capslock.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardCapslock = (props) => (
<SvgIcon {...props}>
<path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"/>
</SvgIcon>
);
HardwareKeyboardCapslock = pure(HardwareKeyboardCaps... |
app/index.js | mersocarlin/react-webpack-template | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import Root from './containers/root';
const createHashHistory = require('history/lib/createHashHistory');
import './styles/animate.css';
import './styles/app.scss';
const history = createHashHistory({
queryKey: false,
});
ren... |
src-client/scripts/modal-window.js | Dolpator/iLuggit | import React from 'react'
let ModalWindow = React.createClass({
render:function(){
let modalClassName = 'modal-container'
if (this.props.modalSettings.isShowing ===false){
modalClassName = 'modal-container is-hidden '
}
console.log(this.props);
return(
<div className... |
dev/web/www/js/components/user/login/login-container.js | zajacmarekcom/letswrite | import React from 'react'
import Login from './login'
import store from '../../../store'
import {SubmissionError} from 'redux-form'
import { browserHistory } from 'react-router'
import * as userActions from '../../../actions/user/user-actions'
import * as commonActions from '../../../actions/common/common-actions'
con... |
src/svg-icons/device/network-wifi.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkWifi = (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="M3.53 10.95l8.46 10.54.01.0... |
src/lib/plugins/spotify.js | edoren/hyperline | import React from 'react'
import Component from 'hyper/component'
import SvgIcon from '../utils/SvgIcon'
var spotify = require('spotify-node-applescript');
class PluginIcon extends Component {
styles() {
return {
'spotify-icon': {
fill: '#1ED760'
}
}
}
template(css) {
return (
... |
src/client.js | leifdalan/vega-june | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
react-js/redux-form/src/routes.js | vanyaland/react-demos | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import PostsIndex from './components/posts_index';
import PostsNew from './components/posts_new.js';
import PostsShow from './components/posts_show.js';
export default (
<Route path="/" component={App}>
... |
client/components/budget/item.js | ZeHiro/kresus | import React from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { get, actions } from '../../store';
import { round2, translate as $t } from '../../helpers';
import AmountInput from '../ui/amount-input';
function computeAmountRati... |
docs/pages/system/sizing.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'system/sizing';
const requireDemo = require.context('docs/src/pages/system/sizing', false, /\.(js|tsx)$/);
const requireRaw = req... |
client/containers/Post.js | JayMc/react-crud-example | import React, { Component } from 'react';
import ListPosts from '../components/ListPosts';
import FormPost from '../components/FormPost';
import fetch from 'isomorphic-fetch';
import {Router, Route, hashHistory} from 'react-router';
export default React.createClass({
getInitialState() {
return { posts: [{ id: 1,... |
src/components/Gui.js | dherault/Oso | import React from 'react';
// import { Link } from 'react-router';
import { connect } from 'react-redux';
// import ac from '../state/actionCreators';
import sceneSets from '../client/renderer/sceneSets';
class Gui extends React.Component {
render() {
return <div>
{
this.props.guiComponents.map((... |
packages/wix-style-react/src/Dropdown/test/Dropdown.e2eStory.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import TestTabSwitches from './TestTabSwitches';
import { getTestStoryKind } from '../../../stories/storiesHierarchy';
import { storySettings, testStories } from '../docs/storySettings';
const kind = getTestStoryKind({
storyName: storySettings... |
src/components/Footer.js | literarymachine/crg-ui | import React from 'react'
import 'font-awesome/css/font-awesome.css'
import '../styles/Footer.pcss'
const toggleFooter = (e) => {
const toggleFooter = e.target
if (toggleFooter.classList.contains('fa-chevron-down')) {
toggleFooter.classList.remove('fa-chevron-down')
toggleFooter.classList.add('fa-chevron-... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js | 0xaio/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import logo from './assets/logo.svg';
export default () => <img id="feature-svg-inclusion" src={logo} alt="l... |
static/js/src/components/presentations/materialRequirements.js | jpludens/quartrmastr | import React from 'react';
const MaterialRequirements = ({requirements}) => {
const totalCost = requirements.reduce(
(total, req) => { return total + req.material.price * req.amount; }, 0);
return (
<div className="material-requirements">
<span className="material-requirements__header">
Forge... |
frontend/components/PostcodeFormatter.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
const PostcodeFormatter = ({value}) => (
<span>{value.substring(0, 3)} {value.substring(3, 5)}</span>
);
PostcodeFormatter.propTypes = {
value: PropTypes.string.isRequired,
};
export default PostcodeFormatter;
|
server/sonar-web/src/main/js/apps/overview/components/issues-tags.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
packages/example-phone/src/scripts/main.js | Josh-Dykstra/spark-js-sdk | import '../styles/style.css';
import React from 'react';
import ReactDOM from 'react-dom';
import {hashHistory} from 'react-router';
import {syncHistoryWithStore} from 'react-router-redux';
import Root from './root';
import store from './store';
const history = syncHistoryWithStore(hashHistory, store);
ReactDOM.ren... |
src/react/JSONTree/JSONBooleanNode.js | jackielii/redux-devtools | import React from 'react';
import reactMixin from 'react-mixin';
import { SquashClickEventMixin } from './mixins';
import hexToRgb from '../../utils/hexToRgb';
const styles = {
base: {
paddingTop: 3,
paddingBottom: 3,
paddingRight: 0,
marginLeft: 14
},
label: {
display: 'inline-block',
ma... |
src/app/common/error/route.js | rujianwang/ant-design-aspnetzero | import React from 'react';
import { Icon } from 'antd';
import styles from './error.less';
const Error = () => <div className={styles.error}>
<Icon type="frown-o" />
<h1>404 Not Found</h1>
</div>;
export default Error;
|
app/jsx/gradebook/SISGradePassback/PostGradesApp.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
app/scripts/charts/node.js | hustbill/network-verification-ui | import React from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import { Map as makeMap, List as makeList } from 'immutable';
import { clickNode, enterNode, leaveNode } from '../actions/app-actions';
import { getNodeColor } from '../utils/color-utils';
import MatchedText from '..... |
pages/postcss.js | murej/ansambel | import React from 'react'
import './example.css'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
export default class PostCSS extends React.Component {
render () {
return (
<DocumentTitle title={`${config.siteTitle} | Hi PostCSSy friends`}>
<div>
<h1 class... |
public/components/Single.js | Deivis/react-redux-first-app | import React from 'react';
import Photo from './Photo';
import Comments from './Comments';
const Single = ({posts, params, comments, increment, addComment, removeComment}) => {
const postId = params.postId;
let i = posts.reduce((pp,cp,idx)=>{ return pp || (cp.code === postId ? idx : pp ); }, null);
const post = p... |
node_modules/react-router/es/IndexRedirect.js | saltypaul/SnipTodo | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.string,
object = _React$PropTypes.object;
/**
* An <IndexRedir... |
internals/templates/appContainer.js | kenzanboo/tumbler-blog-api | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
index.android.js | mkgilbert/ispy | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
Dimensions,
ListView,
StyleSheet,
Text,
View
} from 'react-native';
import iSpy from './js/iSpy';
AppRegistry.registerComponent('ispy', () => iSpy);
|
dva/porsche-e3/src/routes/MainPage.js | imuntil/React | import React from 'react'
import { connect } from 'dva'
import QueueAnim from 'rc-queue-anim'
import './MainPage.scss'
import E3Carousel from '../components/Carousel'
import Item from '../components/Item'
import BottomBar from '../components/BottomBar'
function Title() {
const text = ' 全新 Cayenne — 齐心并驰'.split('')
... |
src/React/Widgets/QueryDataModelWidget/Number.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/QueryDataModelWidget.mcss';
/**
* This React component expect the following input properties:
* - model:
* Expect a QueryDataModel instance.
* - listener:
* Expect a Boolean based on the automa... |
docs/src/IntroductionPage.js | pombredanne/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
client/components/Footer/index.js | DarkHorseJP/RPGScenarist | import React from 'react'
//import { FormattedMessage } from 'react-intl'
//import messages from './messages'
function Footer() {
return (
<span></span>
)
}
export default Footer
|
src/routes/error/index.js | poeschko/ask-refugeescode | /**
* 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 ErrorPage from './Err... |
client/src/app.js | cashyu/reactNode | 'use strict'
import React from 'react';
import ReactDOM from 'react-dom';
import {createStore, applyMiddleware} from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, Link, IndexLink, browserHistory, h... |
docs/app/Examples/elements/Reveal/Types/RevealExampleMoveUp.js | clemensw/stardust | import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleMoveUp = () => (
<Reveal animated='move up'>
<Reveal.Content visible>
<Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' />
</Reveal.Content>
<Reveal.Content hidden>
... |
src/lib/markers/TimelineMarkersRenderer.js | namespace-ee/react-calendar-timeline | import React from 'react'
import { TimelineMarkersConsumer } from './TimelineMarkersContext'
import { TimelineMarkerType } from './markerType'
import TodayMarker from './implementations/TodayMarker'
import CustomMarker from './implementations/CustomMarker'
import { TimelineStateConsumer } from '../timeline/TimelineStat... |
src/scripts/app-controller.js | Dolpator/jonportfolio | import Backbone from 'backbone'
import React from 'react'
import $ from 'jquery'
import ProjectsPage from './projects-page.js'
import SkillsPage from './skills-page.js'
// import Resume from './resume.js'
import HomePage from './home-page.js'
const AppController = React.createClass({
render: function(){
swi... |
src/routes/Dashboard/components/quote.js | daizhen256/i5xwxdoctor-web | import React from 'react'
import styles from './quote.less'
function Quote (props) {
const { name, content, title, avatar } = props
return (
<div className={styles.quote}>
<div className={styles.inner}>
{content}
</div>
<div className={styles.footer}>
<div className={styles.de... |
pages/api/collapse.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './collapse.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
src/SettingsStrip.js | sidler/react_dirlist | /**
* Created by sidler on 03.02.17.
*/
import React, { Component } from 'react';
import Settings from './Settings';
class SettingsStrip extends Component {
constructor(props) {
super(props);
this.changeSizeCheckbox = this.changeSizeCheckbox.bind(this);
}
changeSizeCheckbox = func... |
examples/todomvc/src/index.js | lsm/alfa | import { Provider } from 'alfa'
import React from 'react'
import { render } from 'react-dom'
import App from './containers/App'
import * as TODO_FILTERS from './constants/TodoFilters'
import * as actions from './actions'
import 'todomvc-app-css/index.css'
/**
* Initial state of applicaiton.
*/
const data = {
todo... |
blueocean-material-icons/src/js/components/svg-icons/toggle/radio-button-unchecked.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ToggleRadioButtonUnchecked = (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-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"/>
</SvgIcon>
);
ToggleRadioButtonUnchecked.... |
app/javascript/mastodon/features/ui/components/modal_root.js | KnzkDev/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Base from '../../../components/modal_root';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './modal_loading';
import ActionsModal from './actions_modal';
imp... |
src/App.js | naoufal/react-transform-boilerplate | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
src/views/components/NavigationScreen.js | physiii/home-gateway | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import {withAppContext} from '../AppContext.js';
import {connect} from 'react-redux';
import {withRouter} from 'react-router-dom';
import {compose} from 'redux';
import {loadContext, loadScreen, unloadContext, unloadScreen}... |
client/src/javascript/components/icons/ChevronRightIcon.js | stephdewit/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class ChevronRightIcon extends BaseIcon {
render() {
return (
<svg className={`icon icon--chevron-right ${this.props.className}`} viewBox={this.getViewBox()}>
<polygon points="18.66 58.8 12.65 52.79 35.4 30.04 12.58 7.21 ... |
src/components/header/menu/index.js | appunnicer13/profile | import React from 'react';
import "./menu.scss";
import FontIcon from 'material-ui/FontIcon';
import {red500, yellow500, blue500} from 'material-ui/styles/colors';
const iconStyles = {
marginRight: 24,
};
const ProfileMenu = ({open}) => (
<div>
<FontIcon className="material-icons" style={iconStyles}>... |
src/blocks/wavefolder/block.js | rsimmons/plinth | import React from 'react'
import ReactDOM from 'react-dom';
import BlockRoot from '../../components/BlockRoot';
import Knob from '../../components/Knob';
class View extends React.Component {
constructor(props) {
super(props);
}
render() {
const {stages, setStages, smoothness, setSmoothness} = this.props... |
frontend/src/components/FoodInfoCard.js | zuhairp/CrowdFood | import React from 'react';
import { Col } from 'react-bootstrap';
import { Link } from 'react-router';
export default (props) => {
const { name, distance, id, index } = props;
const nameStyle = {
fontWeight: 'bold',
padding: 0,
};
const distanceStyle = {
padding: 0,
};
return (
<Col... |
app/app.js | bruceli1986/react-qdp | /**
* 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';... |
docs/app/Examples/elements/Step/States/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const States = () => (
<ExampleSection title='States'>
<ComponentExample
title='Active'
description='A step can be hi... |
assets/node_modules/react-router/es6/IndexRedirect.js | janta-devs/janta | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
src/components/Menus.js | Grilados/site | import React, { Component } from 'react';
import './css/Menus.css';
export class MenuHeader extends Component {
renderMenu() {
if (!this.props.menu) return console.error('Os itens não foram encontrados!');
return(
<div>
{
this.props.menu.map((item, index)=>
... |
src/pages/about.js | saschajullmann/gatsby-starter-gatsbythemes | /* eslint-disable no-undef, react/prop-types */
import React from 'react';
import { graphql } from 'gatsby';
import Img from 'gatsby-image';
import { css } from 'react-emotion';
import { Box } from '../components/Layout';
import PageWrapper from '../components/PageWrapper';
import colors from '../utils/colors';
const ... |
tech_stack/src/app.js | victorditadi/IQApp | import React from 'react';
import { View } from 'react-native';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducer from './reducers';
import { Header } from './components/common';
import LibraryList from './components/LibraryList.js';
const App = () => {
return (
<Provide... |
collect-webapp/frontend/src/scenes/DataCleansingPage.js | openforis/collect | import React, { Component } from 'react';
import Constants from 'Constants';
import MaxAvailableSpaceContainer from 'common/components/MaxAvailableSpaceContainer';
class DataCleansingPage extends Component {
render() {
return (
<MaxAvailableSpaceContainer>
<iframe src={Constants.BASE_URL + 'dataclean... |
src/svg-icons/av/fiber-smart-record.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberSmartRecord = (props) => (
<SvgIcon {...props}>
<g><circle cx="9" cy="12" r="8"/><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"/></g>
</S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.