path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/core/atoms/Link/index.js | codejunkienick/starter-lapis | import React from 'react';
import { Link as RouterLink } from 'react-router';
import './index.css';
const Link = ({ ...props }) => <RouterLink styleName="link" {...props} />;
export default Link;
|
src/svg-icons/alert/error.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertError = (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 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
</SvgIcon>
);
AlertError = pure(AlertError);
AlertEr... |
src/svg-icons/notification/do-not-disturb-off.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbOff = (props) => (
<SvgIcon {...props}>
<path d="M17 11v2h-1.46l4.68 4.68C21.34 16.07 22 14.11 22 12c0-5.52-4.48-10-10-10-2.11 0-4.07.66-5.68 1.78L13.54 11H17zM2.27 2.27L1 3.54l2.78 2.78... |
src/icons/twitterInner.js | jasongforbes/jforbes.io | import React from 'react';
export default () => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path
d="
M12 2
c5.514 0 10 4.486 10 10
s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10
zm0-2
c-6.627 0-12 5.373-12 12
s5.373 12 12 12 12-... |
components/CardMedia.js | dondoko-susumu/react-native-card-media | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Image,
StyleSheet,
Text,
TouchableWithoutFeedback,
View,
} from 'react-native';
import type { StyleObj } from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
type Props = {
style: StyleObj,
files: A... |
src/ClientApp.js | Gabri3l/react-firenze-boilerplate | /* eslint no-underscore-dangle: 0 */
import React from 'react';
import { BrowserRouter } from 'react-router-dom';
import { renderRoutes } from 'react-router-config';
import { Provider } from 'react-redux';
import { hydrate, render } from 'react-dom';
import { rehydrate } from 'glamor';
import Loadable from '@react-fire... |
packages/react-vis/src/plot/series/polygon-series.js | uber/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
app/javascript/mastodon/features/ui/components/column_link.js | kagucho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'react-router-dom/Link';
const ColumnLink = ({ icon, text, to, href, method, hideOnMobile }) => {
if (href) {
return (
<a href={href} className={`column-link ${hideOnMobile ? 'hidden-on-mobile' : ''}`} data-method={method}>
... |
docs/src/app/components/pages/components/Popover/Page.js | verdan/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import popoverReadmeText from './README';
import PopoverExampleSimple from './Ex... |
packages/crow-scripts/bin/__fixtures__/package/src/react-component.js | react-crow/create-react-crow | import React from 'react'
import './react-component.css'
class Component extends React.Component {
static defaultProps = {
title: 'another',
}
render() {
return (
<h1>
{this.props.title}
</h1>
)
}
}
const StatelessComponent = ({ title = 'test', ...componentOptions }) =>
<sec... |
app/Pages/SettlementViewNew/MoneyInfo/MoneyItem.js | jd-daojia/DaojiaRN | /* @flow */
import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
} from 'react-native';
import ContentText from '../ContentText'
import IconHelper from '../IconHelper'
export default class MoneyItem extends Component {
render() {
let item = this.props.item
return (
<View sty... |
src/interface/report/Results/Character/PlayerInfo/Talents.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import Icon from 'common/Icon';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
const FALLBACK_ICON = 'inv_misc_questionmark';
class Talents extends React.PureComponent {
static pr... |
src/svg-icons/file/folder-shared.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFolderShared = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | vietvd88/developer-crawler | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
app/renderer/index.js | AbsoluteZero273/Deezic | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import './../assets/styles/global.css'
import configureStore from './store/configureStore'
let store = configureStore()
render(
<Provider store={store}>
<App />
</Provider>,
... |
src/components/main/ContactForm.js | samihda/pizza | /* eslint-disable react/no-set-state */
import React from 'react';
import assign from 'object-assign';
export default class ContactForm extends React.Component {
constructor(props) {
super(props);
this.state = {
firstName: props.form.firstName,
lastName: props.form.lastName,
street: props.... |
frontend/src/DiscoverMovie/Overview/DiscoverMovieOverviewInfoRow.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import styles from './DiscoverMovieOverviewInfoRow.css';
function DiscoverMovieOverviewInfoRow(props) {
const {
title,
iconName,
label
} = props;
return (
<div
className={styles.infoRow}
... |
packages/bonde-styleguide/src/content/Icon/svg/AngleDown.js | ourcities/rebu-client | import React from 'react'
const Icon = ({ className, color, size }) => (
<svg
xmlns='http://www.w3.org/2000/svg'
className={className}
width={size || '11'}
height={size || '5'}
viewBox='0 0 11 5'
>
<path
fill='none'
fillRule='evenodd'
stroke={color || '#000'}
strokeL... |
src/components/Notification/NotificationContent/PostedNewTagToRestaurant/PostedNewTagToRestaurant.js | labzero/lunch | import PropTypes from 'prop-types';
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from '../NotificationContent.scss';
const PostedNewTagToRestaurant = ({
loggedIn,
user,
restaurantName,
tagName,
showMapAndInfoWindow
}) => {
const restaurantEl = (
<... |
src/containers/AddTrip.js | Levino/reisekostenabrechnung | import React from 'react'
import { connect } from 'react-redux'
import { addTrip } from '../actions'
let AddTrip = ({ dispatch }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
}
dispatch(addTrip(input.v... |
src/index.js | cuebrick/TypeWriter | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
const rootElement = document.getElementById('root');
ReactDOM.render(<App/>, rootElement);
|
packages/react-dom/src/server/ReactPartialRenderer.js | rricard/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ThreadID} from './ReactThreadIDAllocator';
import type {ReactElement} from 'shared/ReactElementType';
imp... |
Components/Component.js | webismymind/Mycelium |
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default class extends React.Component {
render() {
{this.props.children}
}
} |
src/components/Tos/Attribute/Attribute.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
import CreatableSelect from 'react-select/creatable';
import classnames from 'classnames';
import { includes, forEach, find, map } from 'lodash';
import {
resolveSelectValues,
resolveReturnValues
} from '../../../utils/helpers';
import { getDisplayLabel... |
src/components/Dashboard/VisitChart.js | kennylbj/kiwi-blog | import React from 'react'
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Legend,
Tooltip,
ResponsiveContainer
} from 'recharts'
import color from '../../constants/color.js'
const VisitChart = ({ data }) => {
return (
<div>
<div style={{marginLeft: '32px', marginBottom: '32px', fo... |
src/components/bank/Everything.js | hackclub/website | import React from 'react'
import styled from 'styled-components'
import {
Avatar,
Badge,
Box,
Container,
Link as A,
Flex,
Icon,
Text,
theme
} from '@hackclub/design-system'
import { Title, Lead } from 'components/Content'
import { Fade } from 'react-reveal'
import { timeSince } from 'helpers'
import R... |
test/test_helper.js | mdvb1001/BlogReactRedux | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/front-end/js/components/CV/Hobbies.js | aleksey-gonchar/iamamaze.me | import React from 'react'
import createFragment from 'react-addons-create-fragment'
import { isFetched } from '../../reducers/CVReducer.js'
import CVActions from '../../actions/CVActions.js'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import uuid from 'node-uuid'
import { Panel } f... |
examples/huge-apps/routes/Course/components/Nav.js | cgrossde/react-router | import React from 'react';
import { Link } from 'react-router';
import AnnouncementsRoute from '../routes/Announcements';
import AssignmentsRoute from '../routes/Assignments';
import GradesRoute from '../routes/Grades';
const styles = {};
styles.nav = {
borderBottom: '1px solid #aaa'
};
styles.link = {
display: ... |
src/client/components/App.js | jaimerosales/viewer-xymove | /////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Autodesk, Inc. All rights reserved
// Written by Jaime Rosales 2016 - Forge Developer Partner Services
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without... |
src/components/ExperienceDetail/MessageBoard/CommentBlock.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import { P } from 'common/base';
import ThumbsUp from 'common/reaction/ThumbsUp';
import styles from './CommentBlock.module.css';
const formatDate = d => {
const date = new Date(Date.parse(d));
const year = date.getFullYear();
const month = date.getM... |
static/programming-tutorials-backup/src/languages/java/JavaHome.js | EdwardRees/EdwardRees.github.io | import React from 'react';
import { TopicHeader } from '../../components/lesson-components'
import { JavaNav } from '../java';
import { Col } from 'reactstrap';
const JavaHome = () => (
<div>
<TopicHeader>
<Col xs="4" />
<Col xs="4">
<h2>Java</h2>
</Col>
<Col xs="auto" md="auto" ... |
ajax/libs/react-instantsearch/4.1.0-beta.4/Connectors.js | tholu/cdnjs | /*! ReactInstantSearch 4.1.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
src/svg-icons/social/people.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.... |
src/widget/comment/Comment.js | sombreroEnPuntas/trust-builder | import React from 'react';
import PropTypes from 'prop-types';
import { StarFill } from '../star';
import './Comment.scss';
const Comment = ({
review,
size,
}) => (
<div className={`Comment Comment_size-${size}`}>
<div className="header">
<span className="title">
{review.fullName}
</span... |
src/components/toolbar/renderer.js | jlove29/vega-editor | import React from 'react';
import './index.css';
import * as vega from 'vega';
import * as vl from 'vega-lite';
const getVersion = (mode) => {
return mode === 'vega' ? vega.version : vl.version;
}
export default class Toolbar extends React.Component {
static propTypes = {
error: React.PropTypes.string,
r... |
node_modules/react-bootstrap/es/Well.js | ASIX-ALS/asix-final-project-frontend | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
mla_game/front-end/javascript/components/routes/game_menu.js | WGBH/FixIt | import React from 'react'
import { Link } from 'react-router'
import GameNav from '../partials/game_navigation'
import MenuFooter from '../partials/menu_footer'
import UserMessage from '../partials/user_message'
class GameMenu extends React.Component {
render() {
const { gameScores, gameone, gametwo, gamethree,... |
src/views/GameState.js | alexras/truepeacein.space | import React, { Component } from 'react';
import './GameState.css';
import PowerUpList from './PowerUpList';
import MissileCount from './MissileCount';
import Items from './Items';
import StartLocation from './StartLocation';
import Bosses from './Bosses';
import Armor from './Armor';
import Doors from './Doors';
impor... |
components/App.ios.js | xfredlix/snacktime | import React, { Component } from 'react';
import {
Text,
View,
Image,
TouchableHighlight,
TouchableOpacity,
Switch
} from 'react-native';
import styles from '../styles.ios.js';
import Nav from './Navbar.ios.js';
import SearchBar from './Searchbar.ios.js';
import { connect } from "react-redux";
import {bindA... |
docs/src/app/components/pages/components/IconButton/ExampleTouch.js | andrejunges/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionGrade from 'material-ui/svg-icons/action/grade';
const IconButtonExampleTouch = () => (
<div>
<IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right">
<ActionGrade />
</IconButton>
<IconB... |
node_modules/react-sidebar/example/src/index.js | soniacq/LearningReact | import React from 'react';
import ReactDOM from 'react-dom';
import Sidebar from '../../src';
import MaterialTitlePanel from './material_title_panel';
import SidebarContent from './sidebar_content';
const styles = {
contentHeaderMenuLink: {
textDecoration: 'none',
color: 'white',
padding: 8,
},
cont... |
front-end/react/components/filesystem/treebeard/example/app.js | Sparkx120/ESA | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import { StyleRoot } from 'radium';
import {Treebeard, decorators} from '../lib/index';
import data from './data';
import styles from './styles';
import * as filters from './filter';
import FaSearch from 'react-icons/lib/fa/search';
import ... |
src/client/react/UserProfile.js | lostpebble/koa-mobx-react-starter | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer, inject } from 'mobx-react';
import { PhoneIcon } from './svg/svgIcons';
@inject("UserStore") @observer
export default class UserProfile extends Component {
constructor(props) {
super(props);
// This :: thing i... |
packages/television/src/components/Start/index.js | accosine/poltergeist | import React from 'react';
import PropTypes from 'prop-types';
import Body from '../Body';
import Pager from '../Pager';
import Analytics from '../Analytics';
import SvgSpritemap from '../SvgSpritemap';
import SvgLogos from '../SvgLogos';
import Header from '../Header';
import Menu from '../Menu';
import Footer from '... |
components/Comments.js | bigwisu/asik-sehat | import { useSelector, useDispatch } from 'react-redux'
import { useRef } from "react"
import _ from 'lodash'
function Comments({
postComments,
code
}) {
const comments = _.toPairs(postComments)
// const inputAuthor = useRef(null);
// const inputComment = useRef(null);
const renderComment = (... |
pootle/static/js/shared/components/Modal.js | unho/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 LayeredComponent from '... |
src/plugin/BoobsPost/BoobsPost.js | BoomBoobs/chrome-extension | import React from 'react';
import UserInfoBlock from './UserInfoBlock';
import UserContent from './UserContent';
import PostImage from './PostImage';
import PostInteractionsBox from './PostInteractionsBox';
export default function BoobPost(boobs) {
class BoobsPost extends React.Component {
render() {
r... |
app/m_components/MyNote.js | kongchun/BigData-Web | import React from 'react';
import {
Link
} from 'react-router';
import MyInfoNavbar from './MyInfoNavbar';
class MyNote extends React.Component {
render() {
return (<div>
<MyInfoNavbar title="我的笔记" action=""/>
<div>您还没有笔记</div>
</div>)
}
}
export default MyNote;
|
web/react/src/client/pages/WebVR/WebVRPage.js | JamesMillercus/Portfolio-Website | import React, { Component } from 'react';
import { compose } from 'redux';
import getDevice from './../../components/hocs/getDevice';
import getOSVersion from './../../components/hocs/getOSVersion';
import getBrowser from './../../components/hocs/getBrowser';
import getNoScript from './../../components/hocs/getNoScript... |
packages/omni-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js | Omniroot/create-omni-app | import React from 'react'
export default () => (
<span id="feature-file-env-variables">{process.env.OMNI_APP_FILE_ENV_MESSAGE}.</span>
)
|
src/svg-icons/notification/airline-seat-legroom-normal.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomNormal = (props) => (
<SvgIcon {...props}>
<path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1.... |
examples/counter/index.js | TribeMedia/redux | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
src/cxsRender.js | marudor/BahnhofsAbfahrten2 | // @flow
import React from 'react';
import classnames from 'classnames';
import cxs from 'cxs/monolithic';
import Prefixer from 'inline-style-prefixer';
import { flattenDeep, isEmpty, compact } from 'lodash';
const prefixer = new Prefixer();
export const prefixStyles = (styles: Object) => prefixer.prefix(styles);
ex... |
node_modules/enzyme/src/ShallowTraversal.js | cloud9ide/react-enquiry | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import functionName from 'function.prototype.name';
import {
propsOfNode,
splitSelector,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
nodeHasProperty,
} from './Utils';
export function c... |
src/containers/Login/Login.js | hahoocn/hahoo-admin | import React from 'react';
import Helmet from 'react-helmet';
import Panel from 'react-bootstrap/lib/Panel';
import Button from 'react-bootstrap/lib/Button';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import FormControl from 'react-bootstrap/lib/FormControl';
import config from '../../config';
class Login ... |
pages/nodejs_name_main.js | mvasilkov/mvasilkov.ovh | import React from 'react'
import Article from '../app/article'
import Listing from '../app/listing'
import progJS from '../build/prog/basic/entry_point'
import progPython from '../build/prog/basic/entry_point_py'
export const pagePath = 'nodejs_name_main'
export const pageTitle = "Node.js counterpart of Python's __na... |
src/parser/paladin/retribution/modules/core/ShieldOfVengeance.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import HealingDone from 'parser/shared/modules/throughput/HealingDone';
import... |
src/components/inkscape/plain-wordmark/InkscapePlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './InkscapePlainWordmark.svg'
/** InkscapePlainWordmark */
function InkscapePlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'Inks... |
example/src/components/Toolbar.js | rsamec/react-designer-core | import React from 'react';
import _ from 'lodash';
export default class Toolbar extends React.Component {
up() {
var items = this.props.current.parentNode.containers;
var itemIndex = items.indexOf(this.props.current.node);
if (itemIndex === 0) return;
var element = items[itemIndex];
var toIndex ... |
src/TeamPage/PendingActions/PendingActions.js | velesin/retroinator | import React from 'react';
import firebase from 'firebase';
import './PendingActions.css';
import { Avatar, Column, Icon, ICONS } from '../../shared';
export function PendingActions() {
return (
<Column title="Pending actions">
<div className="Team_PendingActions_Action">
<div className="Team_Pen... |
app/components/Contact.js | meryt/wordcount-react | import React from 'react';
import { connect } from 'react-redux'
import { submitContactForm } from '../actions/contact';
import Messages from './Messages';
class Contact extends React.Component {
constructor(props) {
super(props);
this.state = { name: '', email: '', message: '' };
}
handleChange(event) ... |
components/PrimaryButton.js | hellobrian/carbon-components-react | import React from 'react';
import Button from './Button';
const PrimaryButton = props => <Button kind="primary" {...props} />;
export default PrimaryButton;
|
dev/web/www/js/components/story/new-story/new-story-container.js | zajacmarekcom/letswrite | import React from 'react'
import { SubmissionError } from 'redux-form'
import { browserHistory } from 'react-router'
import store from '../../../store'
import * as commonActions from '../../../actions/common/common-actions'
import * as storyActions from '../../../actions/story/story-actions'
import NewStory from './ne... |
pollard/components/AddedSongsConnector.js | freeformpdx/pollard | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import {
selectSong,
deselectSong,
updateSong,
markSongPlayed,
moveSong,
deleteSong,
} from '../actions/Actions.js';
import AddedSongsDisplay from './AddedSongsDisplay';
class Add... |
demo/src/index.js | insin/react-filtered-multiselect | import 'bootstrap/dist/css/bootstrap.min.css'
import React from 'react'
import {render} from 'react-dom'
import FilteredMultiSelect from '../../src/index'
import CULTURE_SHIPS from './ships.json'
import FRUIT from './fruit.json'
const BOOTSTRAP_CLASSES = {
filter: 'form-control',
select: 'form-control',
button... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | StuartStephens/Website | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
frontend/src/UserPage.js | goodman001/20170927express | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import AppBar from 'material-ui/AppBar';
import FontIcon from 'material-ui/FontIcon';
import {blue500, red500, greenA200} fr... |
client/admin/settings/inputs/MultiSelectSettingInput.stories.js | iiet/iiet-chat | import { Field } from '@rocket.chat/fuselage';
import { action } from '@storybook/addon-actions';
import React from 'react';
import { MultiSelectSettingInput } from './MultiSelectSettingInput';
export default {
title: 'admin/settings/inputs/MultiSelectSettingInput',
component: MultiSelectSettingInput,
decorators: ... |
src/error/index.js | Mrancois/barduino | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
client/app/scripts/components/nodes-resources/node-resources-layer-topology.js | kinvolk/scope | import React from 'react';
import pick from 'lodash/pick';
import { applyTransform } from '../../utils/transform-utils';
import {
RESOURCES_LAYER_TITLE_WIDTH,
RESOURCES_LAYER_HEIGHT,
} from '../../constants/styles';
export default class NodeResourcesLayerTopology extends React.Component {
render() {
// Thi... |
UI/Icons/IconArrowUpBorderThin.js | Datasilk/Dedicate | import React from 'react';
import {Path} from 'react-native-svg';
import SvgIcon from 'ui/SvgIcon';
import AppStyles from 'dedicate/AppStyles';
export default class IconArrowUpBorderThin extends React.Component {
constructor(props){
super(props);
}
render(){
const color = this.props.color ... |
docs/src/app/components/pages/components/RadioButton/Page.js | kittyjumbalaya/material-components-web | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import radioButtonReadmeText from './README';
import RadioButtonExampleSimple fr... |
app/data/SpeakerData.js | hsin421/tacec-2017 | import React from 'react';
import styles from '../styles.css';
// 同一個方框框 [ ] 包住的東西每一項必須有獨立的 key.
// 可以是任何字串,只要同一個方框裡面都不一樣就好。
//
//
// spakers: [{
// uid: string, // to link with program
// name: {en: string, zh: string},
// affliation: ({en: string, zh: string} || null),
// intro: {en: string, zh: string},
//... |
examples/counter/index.js | winstonewert/redux-reactions | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
)
|
src/preSite/js/modules/sidebar/sidebarBox.js | Hoglar/hoglarblog |
import React from 'react';
import capitalizeFirstLetter from '../../functionality/capitalizeFirstLetter.js';
import boxColorChange from "./sidebarFunc.js";
// Gets onclick and showBoxInfo
export default class SidebarBox extends React.Component {
constructor(props) {
super(props)
}
// Thos functi... |
src/apps/main.js | MoveOnOrg/mop-frontend | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from '../store/configureStore'
import { routes } from '../routes'
// See reducers/index.js for initialState (and all possible transient states
const store = configureStore()
function run() {
Reac... |
frontend/components/head.js | souvik1997/website | import React from 'react';
import NextHead from 'next/head';
import { string } from 'prop-types';
const defaultDescription = '';
const defaultOGURL = '';
const defaultOGImage = '';
const Head = props => (
<NextHead>
<meta charSet="UTF-8" />
<title>{props.title || ''}</title>
<meta
name="descriptio... |
src/icons/SurroundSoundIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SurroundSoundIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM15.51 32.... |
node_modules/react-bootstrap/es/ModalFooter.js | Crisa221/Lista-Giocatori | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/action/settings-input-hdmi.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputHdmi = (props) => (
<SvgIcon {...props}>
<path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/>
</SvgIcon>
);
ActionSettingsInputHd... |
src/containers/NewBookmarkEditor.js | dan-f/mark | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as Actions from '../actions'
import BookmarkEditor from './BookmarkEditor'
export function NewBookmarkEditor ({ bookmark, actions }) {
if (bookmark !== null) {
return (
<BookmarkEditor
... |
utils/typography.js | alonsogodinez/AlamedaWebPageGatsby | import ReactDOM from 'react-dom/server'
import React from 'react'
import Typography from 'typography'
import { GoogleFont } from 'react-typography'
import CodePlugin from 'typography-plugin-code'
const options = {
googleFonts: [
{
name: 'Open Sans',
styles: [
'700',
],
},
{
... |
js/components/pages/ReadmePage.react.js | octavioturra/CampusWhy | /*
* ReadmePage
*
* This is the page users see when they click the "Setup" button on the HomePage
*/
import React, { Component } from 'react';
import { Link } from 'react-router';
export default class ReadmePage extends Component {
render() {
return (
<div>
<h2>Further Setup</h2>
<p>As... |
client/src/components/formHelpers/BlockSaveButton.js | pahosler/freecodecamp | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from '@freecodecamp/react-bootstrap';
function BlockSaveButton(props) {
return (
<Button block={true} bsStyle='primary' {...props} type='submit'>
{props.children || 'Save'}
</Button>
);
}
BlockSaveButton.displayName = '... |
tests/spec_helpers/index.js | clocasto/react-formulize | import React from 'react';
import { Field } from '../../dist';
// Updates first input in `DOM` wrapper with given `value` and `type`
export function updateInput(DOM, value = '', type = 'text') {
DOM.find('input').simulate('change', { target: { value }, type });
}
export function buildField(mountingFunction, validat... |
react/features/large-video/components/LargeVideo.web.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import VideoLayout from '../../../../modules/UI/videolayout/VideoLayout';
import { Watermarks } from '../../base/react';
import { connect } from '../../base/redux';
import { setColorAlpha } from '../../base/util';
import { StageParticipantNameLabel } from '../../disp... |
components/app.js | vnovick/redux-basic-prototyping-template | import React from 'react';
import { HeaderContainer } from 'header';
import { PageContainer } from 'page';
import { NavbarContainer } from 'navbar';
import { FooterContainer } from 'footer';
import { Provider} from 'react-redux';
require('styles/app')
export default class App extends React.Component {
render() {
... |
tests/format/flow-repo/react/createElement_string.js | rattrayalex/prettier | // @flow
import React from 'react';
class Bar extends React.Component {}
class Foo extends React.Component {
render() {
const Cmp = Math.random() < 0.5 ? 'div' : Bar;
return (<Cmp/>);
}
}
|
src/portfolio/PortfolioPage.js | qingweibinary/binary-next-gen | import React from 'react';
import WebPage from '../containers/WebPage';
import PortfolioContainer from './PortfolioContainer';
export default (props) => (
<WebPage>
<PortfolioContainer {...props} />
</WebPage>
);
|
website/sections/CssFramework.js | sahat/megaboilerplate | import React from 'react';
import cx from 'classnames';
const CSS_FRAMEWORK_SVG = (
<svg xmlns="http://www.w3.org/2000/svg" width="16px" height="16px" viewBox="0 0 50 50">
<path d="M 0 0 L 0 13.4375 L 7.46875 7 L 12.15625 12.625 L 15.71875 10.875 L 22 16.53125 L 22 0 L 0 0 z M 16 4 C 17.104 4 18 4.896 18 6 C 18 ... |
src/index.js | blundercode/node-api-server | import './styles/main.scss';
import React from 'react';
import Router from 'react-router';
import routes from './config/routes';
Router.run(routes, function(Handler) {
React.render(<Handler />, document.getElementById('app'));
});
|
dev-server/app/Test/test-view.react.js | meepshop/meepworks | import React from 'react'
import { Component } from '../../../source'
import Link from '../../../source/internal/component/link'
export default class TestView extends Component {
componentDidMount() {
console.log('component mounted !')
}
render() {
return (
<div>
<Link to='/'>Meepshop Mee... |
src/components/Confirm/index.js | ultimagriever/manager | import React from 'react';
import { Text, Modal, View } from 'react-native';
import { CardSection, Button } from '../';
import styles from './styles';
const Confirm = props => (
<Modal
visible={props.visible}
transparent
animationType="slide"
onRequestClose={() => {}}
>
<V... |
js/components/Main.js | joacle/RGR-PoC | import React from 'react';
import Relay from 'react-relay';
import {debounce} from 'lodash';
import Link from './Link';
import CreateLinkMutation from '../mutations/CreateLinkMutation';
class Main extends React.Component{
constructor(props) {
super(props);
this.search = debounce(this.search, 300)... |
src/components/HelloWorld/HelloWorld.js | nreoch25/react-package-dev | import React from 'react';
import PropTypes from 'prop-types';
/** A super lame component that says Hello with a custom message. */
function HelloWorld({message}) {
return <div>Hello {message}</div>
}
HelloWorld.propTypes = {
/** Message to display */
message: PropTypes.string
};
HelloWorld.defaultProps = {
... |
examples/flux-utils-todomvc/js/app.js | sibinx7/flux | /**
* Copyright (c) 2014, 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.
*
* @flow
*/
'use s... |
packages/icons/src/md/av/NewReleases.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdNewReleases(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M46 23.92l-4.88 5.56.68 7.37-7.22 1.63-3.78 6.36-6.8-2.92-6.8 2.92-3.78-6.36-7.22-1.63.68-7.37L2 23.92l4.88-5.56-.68-7.37 7.22-1.63L17.2 3 24 5.9... |
lib/component.js | mike-engel/hyperterm | import React from 'react';
import { StyleSheet, css } from 'aphrodite-simple';
import { shouldComponentUpdate } from 'react-addons-pure-render-mixin';
export default class Component extends React.Component {
constructor () {
super();
this.styles_ = this.createStyleSheet();
this.cssHelper = this.cssHelpe... |
src/components/PageBar.js | flexiform/flexiform-fill-ui | /**
* Copyright 2016 ReSys OÜ
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.