path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/preview/preview-input.js | sergeyruskov/sergeyruskov.github.io | //@flow
import React from 'react';
import type {Card, UpdateCard} from "../../types/cards";
import type {Action} from "../../types/index";
/**
* Предпросмотр и настройка добавленного пользователем контрола Input
**/
export default function PreviewInput({updateCard, card, id}: {
updateCard: UpdateCard => Action,
c... |
src/Grid.js | tannewt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Grid = React.createClass({
propTypes: {
/**
* Turn any fixed-width grid layout into a full-width layout by this property.
*
* Adds `container-fluid` class.
*/
fluid... |
twitter-ui-react/src/index.js | leemurray100/twitter | /* 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... |
techCurriculum/ui/solutions/2.1/src/components/Title.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* 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... |
static/src/entry.js | smit1625/gospotchess | import React from 'react';
import ReactDOM from 'react-dom';
// import Routes from './components/Routes';
import ChessGame from './components/ChessGame';
ReactDOM.render(
<ChessGame url="/api/moves" pollInterval={2000} />,
document.getElementById('gsc-chess'));
|
src/components/organisms/FileDetailMenu/index.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | import React from 'react';
import styled from 'styled-components';
import Carousel from 'react-slick';
import {Grid, Row, Col} from 'react-flexbox-grid';
import RaisedButton from 'material-ui/RaisedButton';
import FloatingActionButton from 'material-ui/FloatingActionButton';
import Menu from 'material-ui/svg-icons/navi... |
src/components/parallax-scroll.component.js | gitpoint/git-point | import React, { Component } from 'react';
import { View, Dimensions, Platform, TouchableOpacity } from 'react-native';
import ParallaxScrollView from 'react-native-parallax-scroll-view';
import { Icon } from 'react-native-elements';
import styled from 'styled-components';
import { colors, normalize, fonts } from 'conf... |
src/main/server/utils/renderComponent.js | FrederikS/react-isomorphic-example | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { RouterContext } from 'react-router';
import ContextProvider from '../../common/container/ContextProvider';
import Layout from '../Layout';
import fetchComponentData from './fetchComponentData';
import dehydrate from './dehydrate';
expor... |
extensions/genericdata/client-admin.js | axax/lunuc | import React from 'react'
import Hook from 'util/hook'
import Async from 'client/components/Async'
import {
SimpleSwitch,
SimpleButton
} from 'ui/admin'
import Util from '../../client/util'
import {CAPABILITY_MANAGE_CMS_TEMPLATE} from '../cms/constants'
import {client} from 'client/middleware/graphql'
import co... |
src/components/constellations.js | cosmowiki/cosmowiki | import React from 'react';
import {ConstellationNotes} from './notes';
import {Summary} from './chunks/summary';
const ConstellationsComponent = ({constellations}) => {
return (
<main role="main" className="pure-u-1">
<div id="siteTitle" className="constellations pure-u-1 center">
<div id="siteTitl... |
example/examples/DraggableMarkers.js | pjamrozowicz/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
import PriceMarker from './PriceMarker';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4... |
src/App.js | SwordSoul/swordsoul.github.com | import React, { Component } from 'react';
import {Route, Router, browserHistory} from 'react-router';
import Page from './Page.js';
import Contents from './Contents.js';
export default class App extends Component {
render() {
return (
<Router history={browserHistory}>
<Route name="contents" pat... |
packages/icons/src/external.js | yldio/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
blueocean-material-icons/src/js/components/svg-icons/content/undo.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentUndo = (props) => (
<SvgIcon {...props}>
<path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/>
</SvgIcon>
);
ContentUndo.displayName ... |
Screens/Settings/Lists.js | Datasilk/Dedicate | import React from 'react';
import { View, StyleSheet, BackHandler, Alert } from 'react-native';
import Text from 'text/Text';
import Body from 'ui/Body';
import DbLists from 'db/DbLists';
import ListPicker from 'fields/ListPicker';
import Textbox from 'fields/Textbox';
import Button from 'buttons/Button';
export defau... |
examples/js/column-filter/select-filter.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const qualityType = {
0: 'good',
1: 'bad',
2: 'unknown'
};
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) ... |
src/svg-icons/image/linked-camera.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLinkedCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3... |
src/components/Html.js | LeraSavchenko/Maysternia | import React from 'react';
import PropTypes from 'prop-types';
import serialize from 'serialize-javascript';
import config from '../config';
class Html extends React.Component {
static propTypes = {
title: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
styles: PropTypes.arrayOf(Pr... |
examples/04 Sortable/Simple/index.js | globexdesigns/react-dnd | import React, { Component } from 'react';
import Container from './Container';
export default class SortableSimple extends Component {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b>
... |
src/encoded/static/components/donor.js | T2DREAM/t2dream-portal | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import url from 'url';
import { Panel, PanelBody, PanelHeading } from '../libs/bootstrap/panel';
import { auditDecor } from './audit';
import { ExperimentTable } from './dataset';
import { DbxrefList } from './dbxref';
import { D... |
app/chaos/chaos.js | enotsimon/home | import ReactDOM from 'react-dom'
import React from 'react'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import Util from 'common/util'
import Agent from 'chaos/agent'
import App from 'chaos/components/app'
import root_reducer from 'chaos/reducers'
import * as actions from 'chaos/actions'... |
geonode/contrib/monitoring/frontend/src/pages/software-performance/index.js | timlinux/geonode | import React from 'react';
import Header from '../../components/organisms/header';
import GeonodeAnalytics from '../../components/organisms/geonode-analytics';
import GeonodeLayersAnalytics from '../../components/organisms/geonode-layers-analytics';
import WSAnalytics from '../../components/organisms/ws-analytics';
imp... |
www/pages/components/home/ValueProps2.js | andrewlinfoot/keystone | import React, { Component } from 'react';
import Container from '../../../components/Container';
import { Col, Row } from '../../../components/Grid';
import theme from '../../../theme';
import { compose } from 'glamor';
import { EntypoTools, EntypoCloud, EntypoRocket } from 'react-entypo';
import { rhythm } from 'utils... |
client/src/index.js | no-stack-dub-sack/alumni-network | /* eslint-disable */
import App from './App';
import React from 'react';
import './styles/index.css';
import thunk from 'redux-thunk';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import rootReducer from './rootReducer';
import { BrowserRouter } from 'react-router-dom';
import { createStore... |
ajax/libs/react-instantsearch/4.4.2/Connectors.js | joeyparrish/cdnjs | /*! ReactInstantSearch 4.4.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/screen/LoggedData/LoggedData.js | wavicles/fossasia-pslab-apps | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter } from 'react-router-dom';
import { Scrollbars } from 'react-custom-scrollbars';
import IconButton from '@material-ui/core/IconButton';
import CircularProgress from '@material... |
src/Label.js | gianpaj/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Label = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'label',
bsStyle: 'default'
};
},
render() {
let classes = this.getBsClassSe... |
src/parser/hunter/shared/modules/talents/Barrage.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import AverageTargetsHit from 'interface/others/AverageTargetsHit';
import { e... |
src/pages/Dev.js | thibmaek/thibmaek.github.io | import React from 'react';
import { dependencies, devDependencies } from '../../package.json';
import { PageHelmet } from '../components/helmet/';
const getDependencies = () => [
...Object.keys(dependencies),
...Object.keys(devDependencies),
].sort();
const Dev = () => {
return (
<section>
<PageHelme... |
content/gocms/src/admin/components/basicComponent/BasicComponent.js | gocms-io/gocms | 'use strict';
import React from 'react';
import {connect} from 'react-redux'
class BasicComponent extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
}
render() {
return (
<p className="basic-component">Basic ... |
src/TabPane.js | azmenak/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const TabPane = React.createClass({
propTypes: {
active: React.PropTypes.bool,
animation: React.PropTypes.bool,
onAnimateOutEnd: React.PropTypes.func,
disabled: ... |
docs/app/Examples/modules/Rating/Types/RatingExampleStar.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Rating } from 'semantic-ui-react'
const RatingExampleStar = () => (
<Rating icon='star' defaultRating={3} maxRating={4} />
)
export default RatingExampleStar
|
react-flux-mui/js/material-ui/src/svg-icons/action/room.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoom = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z... |
app/containers/TimeLine/index.js | SakuB/Individual_website | import React, { Component } from 'react';
import QueueAnim from 'rc-queue-anim';
import styles from './styles.css';
class TimeLine extends Component {
render() {
return (
<section className={styles.timeline}>
<QueueAnim type="bottom" className={styles.timeline_con}>
<div className={style... |
web/src/server.js | kriasoft/Web-App-Boilerplate | /**
* 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 path from 'path';
import express from 'express';... |
lib/bar/BottomBar.js | ebias/react-native-photo-browser | import React from 'react';
import PropTypes from 'prop-types';
import {
Image,
Text,
StyleSheet,
TouchableOpacity,
View,
} from 'react-native';
import { BarContainer, BAR_POSITIONS } from './BarContainer';
const BUTTON_WIDTH = 40;
export default class BottomBar extends React.Component {
static propTypes... |
frontend/src/components/LoginUI/index.js | webrecorder/webrecorder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet';
import { Col, Container, Row } from 'react-bootstrap';
import querystring from 'querystring';
import { product } from 'config';
import LoginForm from 'components/siteComponents/UserManagementUI/loginFo... |
admin/src/page/dashboard.js | grumoon/GruBlog | import React from 'react'
export class DashboardPage extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>仪表盘</div>
)
}
}
|
actor-sdk/sdk-web/src/components/search/ToolbarSearch.react.js | ljshj/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import React, { Component } from 'react';
import { Container } from 'flux/utils';
import classnames from 'classnames';
import { FormattedMessage, FormattedHTMLMessage } from 'react-intl';
import SearchStore from '../../stores/SearchStore';
import SearchAction... |
src/Home/index.js | pulse-opensource/pulselabs-homepage | import React from 'react';
import style from './style.css';
export default function() {
return (
<div>
<p>
<div>
Hi boys. I'm Tina. Please don't tell Mom and Dad. So I think I'm being attacked by zombies and I start screaming, 'Do you wanna make out?' And I make out with it. I'm out of control. Everythi... |
src/scripts/base/img.js | ButuzGOL/constructor | import React from 'react';
import Radium from 'radium';
@Radium
export default class Img extends React.Component {
static propTypes = {
src: React.PropTypes.string.isRequired,
alt: React.PropTypes.string,
width: React.PropTypes.number,
height: React.PropTypes.number
};
static defaultProps = {
... |
src/components/locator/components/presentational/ResultsListItem.js | mgoodenough/estimator | 'use strict';
/*
* Module Definition
*
*/
import React from 'react';
import { getClassNames, isEqual } from '../../utils/index';
/*
* Class Definition
*
*/
class ResultsListItem extends React.Component {
constructor(props) {
super(props);
this.onClick = props.onClick.bind(null, props.idx);
}
... |
app/javascript/mastodon/features/list_editor/index.js | honpya/taketodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... |
src/components/Decorators/Loading.js | alexcurtis/react-treebeard | import React from 'react';
import PropTypes from 'prop-types';
import styled from '@emotion/styled';
const Loading = styled(({className}) => (
<div className={className}>loading...</div>
))(({style}) => style);
Loading.propTypes = {
style: PropTypes.object
};
export default Loading;
|
packages/react/src/components/atoms/buttons/ButtonFixedFeedback/index.js | massgov/mayflower | /**
* ButtonFixedFeedback module.
* @module @massds/mayflower-react/ButtonFixedFeedback
* @requires module:@massds/mayflower-assets/scss/01-atoms/fixed-feedback-button
*/
import React from 'react';
import PropTypes from 'prop-types';
const ButtonFixedFeedback = (props) => (
<div
className="ma__fixed-feedback... |
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/contact-phone.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationContactPhone = (props) => (
<SvgIcon {...props}>
<path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.... |
packages/hekla-viewer/src/components/PaneTitle/index.js | andrewjensen/hekla | import React from 'react';
import './PaneTitle.css';
const PaneTitle = (props) => (
<div className="PaneTitle">{props.text}</div>
);
export default PaneTitle;
|
src/svg-icons/social/whatshot.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialWhatshot = (props) => (
<SvgIcon {...props}>
<path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.... |
app/components/Header/index.js | BartoszBazanski/react-100-pushup-challenge | import React from 'react';
// import { FormattedMessage } from 'react-intl';
import NavBar from './NavBar';
// import HeaderLink from './HeaderLink';
// import messages from './messages';
class Header extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<Nav... |
app/javascript/mastodon/components/attachment_list.js | MitarashiDango/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';... |
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js | Jaeandroid/actor-platform | import React from 'react';
import AvatarItem from 'components/common/AvatarItem.react';
class ContactItem extends React.Component {
static propTypes = {
contact: React.PropTypes.object,
onToggle: React.PropTypes.func
}
constructor(props) {
super(props);
this.onToggle = this.onToggle.bind(this)... |
app/javascript/mastodon/features/ui/components/list_panel.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { fetchLists } from 'mastodon/actions/lists';
import { connect } from 'react-redux';
import { createSelector } from 'rese... |
src/scenes/home/footer/footer.js | tal87/operationcode_frontend | import React from 'react';
import { Link } from 'react-router-dom';
import ScrollUpButton from 'react-scroll-up-button';
import SocialMedia from 'shared/components/socialMedia/socialMedia';
import centerLogo from 'images/icons/Medal-Icon.svg';
import styles from './footer.css';
const Footer = () => (
<div className=... |
src/svg-icons/device/nfc.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNfc = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2... |
examples/counter/containers/App.js | jquense/redux | import React from 'react';
import CounterApp from './CounterApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App {
render() {
return (
<Provider redux={redux}>
{() => <Cou... |
src/lib/state_tools/connect_root.js | roman01la/f-react-kit | import React from 'react';
import { assocIn } from './atom';
import { fromJS } from 'immutable';
let queries = [];
let fetchQueue = [];
let id;
export function getQueries() {
return queries;
}
export function connectRoot(Component, uri) {
return React.createClass({
displayName: `${Component.displayName}::C... |
app/javascript/mastodon/features/ui/components/embed_modal.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage, injectIntl } from 'react-intl';
import api from '../../../api';
@injectIntl
export default class EmbedModal extends ImmutablePureComponent {
static propTypes... |
wrappers/toml.js | conversataal/conversataal.github.io | import React from 'react'
import toml from 'toml-js'
import Helmet from 'react-helmet'
import { config } from 'config'
class TomlWrapper extends React.Component {
render () {
const data = this.props.route.page.data;
return (
<div className="toml-container container">
<He... |
docs/app/Examples/elements/Reveal/Types/RevealExampleFade.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleFade = () => (
<Reveal animated='fade'>
<Reveal.Content visible>
<Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' />
</Reveal.Content>
<Reveal.Content hidden>
<Imag... |
front/app/js/components/__dev__/Template.js | nudoru/React-Starter-3 | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { withBootStrap, getBsClassName } from '../../shared/bsHOC';
import { SIZE, SIZE_MAP, DEVICE_SIZES, STYLE, STATE } from './BsStyles';
class Bar extends React.PureComponent {
render() {
const El = styled.... |
src/svg-icons/device/network-cell.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkCell = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceNetworkCell = pure(DeviceNetworkCell);
DeviceNetworkCell.displayNam... |
Libraries/Components/TextInput/TextInput.js | adamjmcgrath/react-native | /**
* 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.
*
* @provides... |
src/common/component/loaderComponent.js | yusinto/movie-time | import React from 'react';
/*
* Animated loader using css for those slow rpc calls
* */
export default () =>
<div>
<span className="Loader">
<div className="Loader-indicator">
<h1>
<span>Loading</span>
<span className="Loader-ellipsis">
<span className="Loade... |
swiil/src/components/Menu.js | saaqibz/inbev-hackathon | /**
* Created by saz on 3/26/17.
*/
import React, { Component } from 'react';
import {Link} from 'react-router-dom';
import _ from 'lodash';
import './Menu.css';
import Header from './Header';
import Api from './api';
class MenuContainer extends Component {
constructor() {
super();
this.state ... |
client/node_modules/uu5g03/dist-node/bricks/file-viewer.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from '../common/common.js';
import Loading from './loading.js';
import Table from './table.js';
import TBody from './table-tbody.js';
import Tr from './table-tr.js';
import Td from './table-td.js';
import Error from './error.js';
import './file-view... |
src/client/index.js | yoo2001818/resumegen | import React from 'react';
import { render } from 'react-dom';
import 'whatwg-fetch';
import App from './component/app';
// Since the application is ABSOLUTELY static - there is no other pages,
// etc, we can just download the metadata json and be done with it.
let state = window.__INITIAL_STATE__;
function rerend... |
dashboard/components/Container.js | MEDIGO/laika | import React from 'react'
import { node } from 'prop-types'
import './Container.css'
const Container = ({ children }) => (
<div className='lk-container'>{children}</div>
)
Container.propTypes = {
children: node
}
Container.defaultProps = {
children: null
}
export default Container
|
src/components/Footer/Footer.js | Shalelol/geomapping-schools | /**
* 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/svg-icons/notification/personal-video.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPersonalVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
Notifi... |
examples/admin/src/components/Menu/index.js | aranja/tux | import React from 'react'
import Link from '../Link'
import Logo from '../Logo'
import './styles.css'
const menuItems = [
{ name: 'Home', href: '/' },
{ name: 'About', href: '/about' },
{ name: 'Try out Tux', href: '/' },
]
const Menu = () => (
<div className="Menu">
<Logo />
<ul className="Menu-list... |
src/icons/FlipToFrontIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FlipToFrontIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm4 8v-4H6c0 2.21 1.79 4 4 4zM6 18h4v-4H6v4zm24 24h4v-4h-4v4zm8-36H18c-2.2... |
src/svg-icons/communication/call-merge.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMerge = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
CommunicationCallMerge... |
client/src/components/utils/ESActions/ESActions.js | DjLeChuck/recalbox-manager | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import Panel from 'react-bootstrap/lib/Panel';
import PostActionButton from '../PostActionButton';
const renderStatusAction = (t, status, onSuccess, onError) => {
if ('OK' === status) {
return (
<PostA... |
src/scenes/home/landing/emailSignup/emailSignup.js | tal87/operationcode_frontend | import React, { Component } from 'react';
import Section from 'shared/components/section/section';
import axios from 'axios';
import PropTypes from 'prop-types';
import config from 'config/environment';
import Form from 'shared/components/form/form';
import FormEmail from 'shared/components/form/formEmail/formEmail';
i... |
components/AboutPage.js | arpith/react-router-example | import React from 'react';
class AboutPage extends React.Component {
render() {
return (
<div>
<h1>About me</h1>
<p>I code at <a href='https://github.com/arpith'>github.com/arpith</a> and write at <a href='https://medium.com/@arpith'>medium.com/@arpith</a>.</p>
<p>I also tweet at <... |
Realization/frontend/czechidm-core/src/content/confidentialstorage/ConfidentialStorageValueTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
//
import * as Utils from '../../utils';
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
/**
* Table with confidential storage values
*
* @author Patrik Stlou... |
packages/material-ui-icons/src/SignalWifi3BarLock.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-.3-4.9-4-11.6-4z" /><path d="M23 16v-1.5c0-1.4-1.1-2.5-2.... |
src/Seripap.js | seripap/wedding.seripap.com | import React, { Component } from 'react';
import { render } from 'react-dom';
import { Router, IndexRoute, Route, browserHistory } from 'react-router';
import './sass/bulma.scss';
import Delegate from './components/Delegate';
import Home from './components/Home';
import OurStory from './components/OurStory';
import R... |
src/components/Search.js | WhiteBlue/bilibili-react | import React from 'react';
import AMUIReact from 'amazeui-react';
import Lib from '../Lib'
var VideoList = React.createClass({
render: function () {
var list = this.props.list;
var insetList = [];
for (var i = 0; i < list.length; i++) {
insetList.push({
title: list[i].title,
link: ... |
src/svg-icons/device/bluetooth.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46... |
examples/src/components/CustomRender.js | mcls/react-select | import React from 'react';
import Select from 'react-select';
import Highlighter from 'react-highlight-words';
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
return {};
},
setValue (value) {
this.setS... |
front.end/react/react-tutorial/src/index.js | entrepidea/projects | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'))
|
src/interface/icons/ViralContent.js | ronaldpereira/WoWAnalyzer | import React from 'react';
// Viral Content by Edwin Prayogi M from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<g>
<path d="M49.9931641,18.8754883c0.6904297,0,1.25-0.5595703,1.25-1.25V12.5c0-0.6904297-0.559570... |
admin/client/App/screens/Item/components/RelatedItemsList/RelatedItemsList.js | Pop-Code/keystone | import React from 'react';
import { Link } from 'react-router';
import { Alert, BlankState, Center, Spinner } from '../../../../elemental';
import DragDrop from './RelatedItemsListDragDrop';
import ListRow from './RelatedItemsListRow';
import { loadRelationshipItemData } from '../../actions';
import { TABLE_CONTROL_C... |
app/SearchBar.js | macypa/pikka | import React, { Component } from 'react';
import { View, TextInput, StyleSheet } from 'react-native';
export default class SearchBar extends Component {
render() {
return (
<View style={styles.container}>
<TextInput
style={styles.input}
p... |
src/client/components/kiosk/Timeout/Timeout.js | DBCDK/content-first | import React from 'react';
import {connect} from 'react-redux';
import {get} from 'lodash';
import {SHORTLIST_CLEAR} from '../../../redux/shortlist.reducer';
export class Timeout extends React.Component {
constructor(props) {
super(props);
// Disable timeout in development
this.devmode = !!(get(process... |
src/client/components/ProConComponent/ProConPage/PageElements/Menu.js | psu-hci/ReactiveThinker | import React from 'react';
class Menu extends React.Component {
render () {
return (
<div className="ui inverted menu">
<a className="active item">
Home
</a>
<div className="right menu">
<a className="ui item">
Logout
</a>
</div>
... |
src/front/components/contextTypes.js | dbkaplun/dbtag | import React from 'react'
export default {
app: React.PropTypes.shape({render: React.PropTypes.func.isRequired}), // React.PropTypes.instanceOf(require('./App.jsx'))
fbRef: React.PropTypes.instanceOf(require('firebase')),
history: React.PropTypes.shape({push: React.PropTypes.func.isRequired}),
u: React.PropTyp... |
app/src/scripts/main.js | vyorkin/assignment | import React from 'react';
import Router from 'react-router';
import FastClick from 'fastclick';
import appRoutes from './routes/app';
import '../styles/main.css';
new Promise((resolve) => {
if (window.addEventListener) {
window.addEventListener('DOMContentLoaded', resolve);
} else {
window.attachEvent('... |
src/routes.js | fughz/react-redux-example | import React from 'react'
import { connect } from 'react-redux'
import { Route, IndexRedirect, Redirect, Link } from 'react-router'
import Header from './containers/header'
import App from './containers/app';
import About from './components/about';
class PageNotFound extends React.Component {
render() {
return ... |
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js | wmyers/react-router | import React from 'react';
class Announcements extends React.Component {
render () {
return (
<div>
<h3>Announcements</h3>
{this.props.children || <p>Choose an announcement from the sidebar.</p>}
</div>
);
}
}
export default Announcements;
|
app/index.js | Eaternity/eaternity-edb-solution | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, applyMiddleware, compose } from 'redux'
import createSagaMiddleware from 'redux-saga'
import { Provider } from 'react-redux'
import { Router, hashHistory } from 'react-router'
import { syncHistoryWithStore, routerMiddleware } from 'react-r... |
server/sonar-web/src/main/js/apps/project-admin/key/BulkUpdateResults.js | Builders-SonarSource/sonarqube-bis | /*
* 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... |
src/routes/toolViewer/ToolViewer.js | goldylucks/adamgoldman.me | import React from 'react'
import { useParams } from 'react-router'
import toolsData from '../../tools/tools-data'
import MultiStepForm from '../../components/MultiStepForm/MultiStepForm'
const ToolViewer = () => {
const { tool } = useParams()
const toolData = toolsData[tool]
return (
<div
style={{
... |
dashboard-ui/app/components/dashboardproject/projectname.js | CloudBoost/cloudboost | /**
* Created by Darkstar on 12/2/2016.
*/
'use strict';
import { saveAppName } from '../../actions';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import React from 'react';
export class ProjectName extends React.Component {
static propTypes = {
name: PropTypes.any,
value: Pr... |
src/components/Image/index.js | andywillis/uws | // Dependencies
import React from 'react';
import PropTypes from 'prop-types';
import { getDimensions } from '../../lib/device';
// Style
import './style.css';
const getResponsiveSrc = (x, src) => {
src = src.replace('.jpg', '');
if (x > 1000) return `${src}_c.jpg`;
if (x < 380) return `${src}_n.jpg`;
return ... |
src/components/common/Icon.js | kmcarter/karaoke-song-lister | import React from 'react';
import PropTypes from 'prop-types';
const Icon = props => {
return <i className={`fa ${props.className}`} />;
};
Icon.propTypes = {
className: PropTypes.string.isRequired
};
export default Icon; |
src/server/frontend/render.js | langpavel/react-svg-path-editor | import DocumentTitle from 'react-document-title';
import Html from './html.react';
import Promise from 'bluebird';
import React from 'react';
import Router from 'react-router';
import config from '../config';
import immutable from 'immutable';
import initialState from '../initialstate';
import routes from '../../client... |
definitions/npm/react-addons-css-transition-group_v15.x.x/test_react-addons-css-transition-group.js | altano/flow-typed | // @flow
import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
const shouldWork = () => (
<div>
<ReactCSSTransitionGroup
transitionName="div"
transitionEnterTimeout={500}
transitionLeaveTimeout={300}>
<div />
</ReactCSSTransitionGroup>
... |
src/components/Dropdown/Dropdown.js | dingchaoyan1983/ReactRedux | import React from 'react';
import DropdownTrigger from './DropdownTrigger';
import DropdownList from './DropdownList';
import DropdownItem from './DropdownItem';
import dropdownManager from './DropdownManager';
import css from './drop-down.css';
class Dropdown extends React.Component {
static defaultProps = {
op... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.