path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/components/Questions/Question.js | klpdotorg/tada-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { checkPermissions } from '../../checkPermissions';
const QuestionView = (props) => {
const { isAdmin, groups, question } = props;
const { question_text, display_text, key, question_type, id } = question.question_details;
const editQuestion =... |
src/svg-icons/hardware/keyboard.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboard = (props) => (
<SvgIcon {...props}>
<path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v... |
examples/huge-apps/routes/Messages/components/Messages.js | pheadra/react-router | import React from 'react'
class Messages extends React.Component {
render() {
return (
<div>
<h2>Messages</h2>
</div>
)
}
}
export default Messages
|
src/server/reactor.js | zebulonj/exygen | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { StaticRouter, matchPath } from 'react-router-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import { App } from '../app';
import Document from './document';
export function reactor... |
renderer/components/Icon/GoogleDrive.js | LN-Zap/zap-desktop | import React from 'react'
const SvgGoogleDrive = props => (
<svg height="1em" viewBox="0 0 1450 465" width="1em" {...props}>
<defs>
<path
d="M279.28 0H141.86L0 247.248l67.062 119.046h287.016l67.062-119.046L279.28 0zM136.023 247.248l74.547-128.66 74.546 128.66H136.023z"
id="google-drive_svg_... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js | ndejesus1227/react-native | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
src/svg-icons/editor/merge-type.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMergeType = (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>
);
EditorMergeType = pure(Editor... |
src/containers/Shopcart/index.js | yuwanlin/react-bookstore | import React from 'react';
import { connect } from 'react-redux';
import { Redirect, Link } from 'react-router-dom';
const Shopcart = ({shopcart, currentUser}) => {
let books = Object.keys(shopcart);
let total = 0;
return (
(currentUser === '')
? <Redirect to="/login" />
: <div>
<h1 className="... |
src/svg-icons/image/filter-b-and-w.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterBAndW = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16l-7-8v8H5l7-8V5h7v14z"/>
</SvgIcon>
);
ImageFilterBAndW = pure(Im... |
exercise-03/src/index.js | learnapollo/pokedex-react | import React from 'react'
import ReactDOM from 'react-dom'
import Pokedex from './components/Pokedex'
import PokemonPage from './components/PokemonPage'
import { Router, Route, browserHistory } from 'react-router'
import ApolloClient, { createNetworkInterface } from 'apollo-client'
import { ApolloProvider } from 'react... |
react/features/recent-list/components/RecentList.native.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { TouchableWithoutFeedback, View } from 'react-native';
import type { Dispatch } from 'redux';
import { getDefaultURL } from '../../app/functions';
import { openDialog } from '../../base/dialog/actions';
import { translate } from '../../base/i18n';
import { NavigateSectionLi... |
react/dashboard_example/src/routes/dashboardPages/forms/index.js | webmaster444/webmaster444.github.io |
import React from 'react';
import Forms from './forms';
export default {
path: '/forms',
action() {
return <Forms />;
},
};
|
src/components/PlayerManager/CGBand.js | fusenlabs/20v | 'use strict';
import React, { Component } from 'react';// eslint-disable-line no-unused-vars
let DEFAULT_ARTIST_NAME = 'Now Playing';
class CGBand extends Component {
constructor(...props) {
super(...props);
this._timeoutId = null;
this.state = {
show: false,
videoT... |
react-redux-tutorial/redux-examples/universal/client/index.js | react-scott/react-learn | import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from '../common/store/configureStore'
import App from '../common/containers/App'
const initialState = window.__INITIAL_STATE__
const store = configureStore(initialState... |
examples/basic/client/render.js | rakeshok/isomorphine | import React from 'react';
import App from './App.jsx';
let state = window.__STATE__;
/**
* Renders the app in the container
*/
let container = document.getElementById('app-container');
React.render(<App state={ state }/>, container);
|
examples/react-and-react-router/src/javascripts/global.js | fifigyuri/backbone-react-component | // Init Backbone jquery object
import $ from 'jquery';
import Backbone from 'backbone';
Backbone.$ = $;
import React from 'react';
import Router from 'react-router';
import BackboneReactMixin from 'backbone-react-component';
let {Route, RouteHandler, Link, State, Navigation} = Router;
class Person extends Backbone.M... |
js/jqwidgets/demos/react/app/buttongroup/templates/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxButtonGroup from '../../../jqwidgets-react/react_jqxbuttongroup.js';
class App extends React.Component {
render() {
let buttonStyle =
{
paddingTop: 4,
paddingBottom: 4,
paddin... |
src/gm3/components/map/jump-to-zoom.js | geomoose/gm3 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016-2019 Dan "Ducky" Little
*
* 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... |
src/svg-icons/notification/system-update.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSystemUpdate = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z"/>
</Sv... |
gatsby-strapi-tutorial/cms/admin/admin/src/components/HomePageBlock/index.js | strapi/strapi-examples | /**
*
* HomePageBlock
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import styles from './styles.scss';
function HomePageBlock({ children, className }) {
return (
<div
className={cn(
className,
styles.homePageBlock,
)}
>
... |
components/react-semantify/src/commons/unit.js | react-douban/douban-book-web | import React from 'react';
import { render } from 'react-dom';
import classSet from 'classnames';
export const Unit = React.createClass({
propTypes: {
className: React.PropTypes.string.isRequired,
type: React.PropTypes.string.isRequired,
color: React.PropTypes.string.isRequired
},
render: function ... |
pages/work.js | EvanSimpson/evansimpson.github.io | import React, { Component } from 'react';
import styles from '../css/work.module.css';
import WorkBlock from '../components/WorkBlock/WorkBlock';
import resumeData from '../resume.json';
class Work extends Component {
buildWorkBlocks() {
let blocks = [];
for (var i=0; i<resumeData.work.length; i++) {
... |
src/Button.js | bbc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import elementType from 'react-prop-types/lib/elementType';
import ButtonInput from './ButtonInput';
const Button = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
active: React.PropTypes.... |
src/components/common/svg-icons/action/room.js | abzfarah/Pearson.NAPLAN.GnomeH | 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... |
ramda-stateless/src/components/timer.js | arvindpdmn/react-examples | import React from 'react';
export default ({ secondsElapsed }) => (<div className="well">
Seconds Elapsed: {secondsElapsed}
</div>);
|
pages/blog/index.js | uraway/Markov | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Blog</h1>
<p>Coming soon.... |
src/components/EditCommentForm.js | chausme/reactnd-project-readable | import React from 'react'
import { Field, reduxForm } from 'redux-form'
import { connect } from 'react-redux'
const required = value => value ? undefined : 'Required'
const renderTextarea = ({ input, label, meta: { touched, error, warning } }) => (
<div>
<textarea {...input} placeholder={label}/>
{touched &... |
src/interface/icons/More.js | anom0ly/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=Misc&i=932100
// more by K Ξ L L Ξ R from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" className="icon" {...other}>
<path
d="M470,36 C461.163444,36 454,28.836556 454,20 C454,1... |
src/parser/warlock/destruction/modules/features/RainOfFire.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import { encodeTargetString } from 'parser/shared/modules/EnemyInstances';
import Haste from 'parser/shared/modules/Haste';
import SPELLS from 'common/SPELLS';
import Statistic from '... |
web-server/v0.4/src/layouts/BlankLayout.js | k-rister/pbench | import React from 'react';
export default props => <div {...props} />;
|
lib/Accordion/headers/DefaultAccordionHeader.js | folio-org/stripes-components | import React from 'react';
import PropTypes from 'prop-types';
import Headline from '../../Headline';
import Icon from '../../Icon';
import css from '../Accordion.css';
const propTypes = {
autoFocus: PropTypes.bool,
contentId: PropTypes.string,
displayWhenClosed: PropTypes.element,
displayWhenOpen: PropTypes.e... |
ordering/components/MemberIntentField.js | root-systems/cobuy | import React from 'react'
import { merge, pipe } from 'ramda'
import { connect as connectFela } from 'react-fela'
import BigMath from 'bigmath'
import { FormattedMessage } from 'dogstack/intl'
import MemberIntentControl from './MemberIntentControl'
import MemberPreIntentControl from './MemberPreIntentControl'
import g... |
examples/dynamic-components/redux/src/example-app/index.js | Mercateo/component-check | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import DynamicComponent from '../dynamic-component';
import { incrementSecond } from '../action-creators';
class ExampleApp extends Component {
render() {
const { seconds, actions: { incre... |
entry.js | paulbevis/wordsearch | /*
Copyright 2015 Paul Bevis
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
d... |
src/presentations/reactDay/reactRedux/slides/redux-provider/index.js | react-skg/meetup | import React from 'react';
import { Heading, List, ListItem, Image, Appear } from 'spectacle';
import { Slide } from '../../components';
import img from '../redux-sketch/provider.svg';
const notes = `
1. The Provider component: This is wrapped around the component tree. It makes it easy for the root component’s child... |
examples/todos-with-undo/index.js | jdelight/redux | import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import App from './containers/App';
import todoApp from './reducers';
const store = createStore(todoApp);
const rootElement = document.getElementById('root');
React.render(
// The child must be wrapped in a funct... |
src/components/label-list-item.component.js | Antoine38660/git-point | import React from 'react';
import styled from 'styled-components/native';
import { Icon } from 'react-native-elements';
import { LabelButton } from 'components';
import { colors } from 'config';
type Props = {
label: Object,
removeLabel: Function,
};
const LabelListItemContainer = styled.View`
border-bottom-col... |
src/components/WebResults/DeepLinks.js | nicolas-adamini/littleblue | import React from 'react';
export default function DeepLinks(props) {
const deepLinks = props.deepLinks;
return (
<div className="deeplinks">
<ul>
{deepLinks.map((page, i) => {
let snippet = '';
if (page.snippet) snippet = page.snippet.slice(0, 100);
return (
... |
core/app/assets/js/molecules/collapse-context.js | arielk/elementor | import React from 'react';
export const CollapseContext = React.createContext();
|
src/components/video_detail.js | willhcurry/ReduxStarter | import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return <div>Loading...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed... |
src/svg-icons/device/gps-fixed.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsFixed = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1... |
public/client/routes/publicClientConf/containers/publicClientConf.js | nearform/concorda-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {reduxForm} from 'redux-form'
import RadioGroup from 'react-radio-group'
import CheckboxGroup from 'react-checkbox-group'
import {validateInitConfig, saveInitConfig} from '../../../modules/client/actions/index'
import {validateEditClie... |
Js/Core/Lib/Core/FormComponent.js | Webiny/Webiny | import React from 'react';
import _ from 'lodash';
import Webiny from 'webiny';
import Component from './Component';
class FormComponent extends Component {
constructor(props) {
super(props);
this.state = {
isValid: null,
validationMessage: null,
validationResu... |
.core/app/app.prod.js | suranartnc/graphql-blogs-app | import React from 'react'
import { render } from 'react-dom'
import { match, browserHistory } from 'react-router'
import Root from './Root'
import getRoutes from 'core/app/routes'
const history = browserHistory
const routes = getRoutes()
match({ history, routes }, (error, redirectLocation, renderProps) => {
rende... |
node_modules/react-bootstrap/es/Row.js | saltypaul/SnipTodo | 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 ... |
ignite/DevScreens/ComponentExamplesScreen.js | infinitered/ChainReactApp | // An All Components Screen is a great way to dev and quick-test components
import React from 'react'
import { Platform, View, ScrollView, Text, Image, TouchableOpacity } from 'react-native'
import { Images } from './DevTheme'
import styles from './Styles/ComponentExamplesScreenStyles'
// Examples Render Engine
import... |
frontend/src/components/eois/modals/changeSummary/changeSummaryForm.js | unicef/un-partner-portal | import React from 'react';
import { isEmpty } from 'ramda';
import { connect } from 'react-redux';
import { reduxForm, clearSubmitErrors } from 'redux-form';
import PropTypes from 'prop-types';
import Snackbar from 'material-ui/Snackbar';
import GridColumn from '../../../common/grid/gridColumn';
import { selectCfeiRevi... |
src/components/organisms/ConfirmModal/index.js | DimensionLab/narc | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { Button } from 'components'
import { Modal } from 'containers'
const Options = styled.div`
display: flex;
justify-content: flex-end;
margin-top: 1rem;
> *:first-child {
margin-right: 0.5rem;
}
`
... |
src/nav/childnav.js | govau/service-manual | import PropTypes from 'prop-types';
import React from 'react';
import AUaccordion from '../../scripts/uikit/accordion.js'
/**
* Childnav: A navigation that shows the Siblings and Children
*
* @disable-docs
*
* The javascript event handlers are in /scripts/js/020-components/01-childnav.js
*/
function makeUrlFro... |
pootle/static/js/admin/components/Language/LanguageEdit.js | dwaynebailey/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 LanguageForm from './La... |
dva/user-dashboard/src/routes/IndexPage.js | imuntil/React | import React from 'react';
import { connect } from 'dva';
import styles from './IndexPage.css';
import MainLayout from '../components/MainLayout/MainLayout'
function IndexPage({location}) {
return (
<MainLayout location={location}>
<div className={styles.normal}>
<h1 className={styles.title}>Yay! W... |
node_modules/antd/es/table/Column.js | ZSMingNB/react-news | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
var Column = function (_React$Component) {
_inherits(Column, _React$Componen... |
chrome/app/options/index.js | xicombd/ipfs-chrome-station | import React from 'react'
import ReactDOM from 'react-dom'
import Root from '../../../app/options/root'
ReactDOM.render(
<Root />,
document.querySelector('#root')
)
|
src/components/ColrApp/ColrApp.js | iamakulov/Colr | import React from 'react';
import { connect } from 'react-redux';
import styles from './ColrApp.css';
import Counter from '../Counter/Counter.js';
import Score from '../Score/Score.js';
import PointPopup from '../PointPopup/PointPopup.js';
import IndexPage from '../IndexPage/IndexPage.js';
import RememberCardsPage fro... |
docs/src/app/components/pages/components/Dialog/ExampleAlert.js | pomerantsev/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation.
*/
export default class DialogExampleAler... |
node_modules/react-router-dom/node_modules/react-router/es/Router.js | ddigioia/react_router_practice_1 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
app/javascript/flavours/glitch/features/notifications/components/setting_toggle.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
export default class SettingToggle extends React.PureComponent {
static propTypes = {
prefix: PropTypes.string,
settings: ImmutablePropTypes.map.isReq... |
frontend/src/components/petals/petals.js | linea-it/qlf | import React, { Component } from 'react';
import { VictoryPie, Slice } from 'victory';
import PropTypes from 'prop-types';
import _ from 'lodash';
export default class Petals extends Component {
static propTypes = {
size: PropTypes.number.isRequired,
selected: PropTypes.array,
onClick: PropTypes.func.isR... |
src/svg-icons/social/public.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPublic = (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 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9... |
app/src/client/components/treemap/pagination.js | Astrolavos/THACO | /* eslint max-len:0 */
import React from 'react';
import { Link } from 'react-router';
class Pagination extends React.PureComponent {
static propTypes = {
limit: React.PropTypes.any.isRequired,
offset: React.PropTypes.any.isRequired,
search: React.PropTypes.string,
count: React.PropTypes.any.isRequ... |
packages/wix-style-react/src/Palette/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
columns,
divider,
example,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../test/storySettings';
import Palette from '..';
import Box from '../../Box/Box'... |
src/js/components/icons/status/Unknown.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.STATUS_ICON;
let _lastId = 0;
export defa... |
src/stories/Single.js | NewSpring/Apollos | import React from 'react';
import { compose, mapProps, pure } from 'recompose';
import { ScrollView } from 'react-native';
import { startCase, toLower } from 'lodash';
import withStory from '@data/withStory';
import BackgroundView from '@ui/BackgroundView';
import Header from '@ui/Header';
import ContentView, { ByLine... |
src/App.js | davty/x-effect | import React, { Component } from 'react';
import _ from 'lodash';
import Toolbar from './Toolbar';
import Theme from './Theme';
import Requirements from './Requirements';
import './App.css';
class App extends Component {
constructor() {
super();
this.state = {
columns: 7,
rows: 4,
theme: '... |
src/views/discover/Browser.js | anysome/objective | /**
* Created by Layman <anysome@gmail.com> (http://github.com/anysome) on 16/7/9.
*/
import React from 'react';
import {StyleSheet, WebView, View, Text,
TouchableOpacity, LayoutAnimation, PixelRatio} from 'react-native';
import {analytics} from '../../app';
export default class Browser extends React.Component {
... |
docs/app/Examples/collections/Message/Types/MessageExampleList.js | shengnian/shengnian-ui-react | import React from 'react'
import { Message } from 'shengnian-ui-react'
const MessageExampleList = () => (
<Message>
<Message.Header>New Site Features</Message.Header>
<Message.List>
<Message.Item>You can now have cover images on blog pages</Message.Item>
<Message.Item>Drafts will now auto-save wh... |
app/redux/containers/Root.dev.js | tidepool-org/blip | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'connected-react-router';
import { hot, setConfig } from 'react-hot-loader';
import { ThemeProvider } from 'styled-components';
import baseTheme from '../../themes/baseTheme';
import { history } from '../s... |
static/src/components/AuthenticatedComponent.js | dom-o/hangboard-helper | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { browserHistory } from 'react-router';
import * as actionCreators from '../actions/auth';
function mapStateToProps(state) {
return {
token: state.auth.token,
userName: state.auth.us... |
views/invocation.js | Suninus/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
client/client.js | GalkinDmitriy/evalotta | import React from 'react';
import ReactDOM from 'react-dom';
import StepGroup from './StepGroup/StepGroup';
import Header from './Header/Header';
const component = (
<div>
<Header/>
<div className="container" style={{paddingTop: '40px'}}>
<div id="offer">
<h1>Разработка React JavaScript библиотек компонент... |
client/src/index.js | Velocies/raptor-ads | import React from 'react';
import { render } from 'react-dom';
import Root from './components/Root';
const appElement = document.getElementById('app');
render(
<Root />
, appElement,
);
|
app/components/Visualization.js | ARMataTeam/ARMata | // @flow
import React, { Component } from 'react';
import Graph from 'react-graph-vis';
import ImageGenerator from '../resources/imageGenerator';
import styles from './Visualization.css'; // eslint-disable-line flowtype-errors/show-errors
export default class Visualization extends Component {
props: {
openNodeWi... |
draft-js-emoji-plugin/src/components/EmojiSelect/Popover/Entry/index.js | koaninc/draft-js-plugins | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import emojione from 'emojione';
export default class Entry extends Component {
static propTypes = {
cacheBustParam: PropTypes.string.isRequired,
imagePath: PropTypes.string.isRequired,
imageType: PropTypes.string.isRequired,
... |
src/svg-icons/action/opacity.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpacity = (props) => (
<SvgIcon {...props}>
<path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.... |
app/components/common/paper/Paper.js | rvpanoz/luna | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core';
import Paper from '@material-ui/core/Paper';
import styles from './styles';
const CustomPaper = (props) => {
const { classes, className, outlined, squared, children, ..... |
app/components/Home.js | flyingkrai/react-flux-blogging-app | import React from 'react';
import actions from '../actions';
import ChirpStore from '../stores/chirps';
import ChirpInput from './ChirpInput';
import ChirpList from './ChirpList';
import storeBind from '../mixins/store-bind';
const getState = () => ({chirps: ChirpStore.timeline()});
const Home = (props) => {
re... |
src/client.js | xaevir/brasiliausa | /**
* 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 createHistory from 'history/lib/createBrowserHistory';
import createStore from './redux/create';
import ApiClient from '.... |
components/Collaborators/Profile.js | AptoGen/AptoGen-Website | import React from 'react';
import H5 from '../Typography/H5';
import H6 from '../Typography/H6';
import P from '../Typography/Paragraph';
import { COLORS } from '../../lib/styles';
const Profile = (data) => {
return (
<div>
<H5>{data.name}</H5>
<H6 style={{ 'font-style': 'italic' }}>{data.title}</H... |
fields/types/select/SelectFilter.js | Ftonso/keystone | import React from 'react';
import { Checkbox, FormField, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/components/PopoutList';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true }
];
function getDefaultValue () {
return {
inver... |
app/features/onboarding/components/OnboardingModal.js | jitsi/jitsi-meet-electron | // @flow
import { Modal } from '@atlaskit/onboarding';
import React, { Component } from 'react';
import { withTranslation } from 'react-i18next';
import { connect } from 'react-redux';
import type { Dispatch } from 'redux';
import { compose } from 'redux';
import OnboardingModalImage from '../../../images/onboarding... |
examples/using-inferno/pages/index.js | sedubois/next.js | import React from 'react'
import Link from 'next/prefetch'
export default () => (
<div>Hello World. <Link href='/about'><a>About</a></Link></div>
)
|
src/js/components/Dancer.js | elliotaplant/celestial-dance | import React from 'react';
import { translate, rand, vLog, objToArr, massToRadius } from '../Helpers/Helpers';
import { getNetAccel } from '../Helpers/AccelerationLogic';
import '../Simulation/Step';
const lightDecay = 0.5;
function range(n) {
let result = [];
while (result.length < n) {result.push(result.length)... |
actor-apps/app-web/src/app/components/modals/MyProfile.react.js | Dreezydraig/actor-platform | import React from 'react';
import { KeyCodes } from 'constants/ActorAppConstants';
import MyProfileActions from 'actions/MyProfileActionCreators';
import MyProfileStore from 'stores/MyProfileStore';
import AvatarItem from 'components/common/AvatarItem.react';
import Modal from 'react-modal';
import { Styles, TextFi... |
src/components/Home/index.js | scimusmn/app-template | import React from 'react';
function Home() {
return (
<div>
<h1>Home</h1>
<p>Start your app here.</p>
</div>
);
}
export default Home;
|
frontend/src/Components/Form/FormInputButton.js | Radarr/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import Button from 'Components/Link/Button';
import SpinnerButton from 'Components/Link/SpinnerButton';
import { kinds } from 'Helpers/Props';
import styles from './FormInputButton.css';
function FormInputButton(props) ... |
app/react/demo/src/stories/Welcome.js | shilman/storybook | import React from 'react';
const styles = {
main: {
margin: 15,
maxWidth: 600,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
},
logo: {
width: 200,
},
link: {
color: '#1474f3',
textDecoration: 'none',
borderBottom: '1px ... |
docs/client.js | apisandipas/react-bootstrap | import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... |
addons/themes/helios/layouts/Single.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
// import NavPanel from '../includes/NavPanel';
let Single = React.createClass({
comp... |
stories/GoogleAddressInput/index.js | skyiea/wix-style-react | import React from 'react';
import {storiesOf} from '@storybook/react';
import AutoDocs from '../utils/Components/AutoDocs';
import CodeExample from '../utils/Components/CodeExample';
import GoogleAddressInputSource from '!raw-loader!wix-style-react/GoogleAddressInput/GoogleAddressInput';
import ExampleControlled from ... |
app/containers/TeamsPage/index.js | zebbra-repos/Zeiterfassung-medi | /*
*
* TeamsPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { bindRoutineCreators } from 'redux-saga-routines';
import { createStructuredSelector } from 'reselect';
import { fromJS } from 'immutable';... |
app/components/NewConversationSource.js | DrPandemic/TwiolioRN | // @flow
import React, { Component } from 'react';
import {
Dimensions,
FlatList,
View,
StyleSheet
} from 'react-native';
import { List, ListItem } from 'react-native-elements';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { ActionCreators } from '../actions';
impo... |
examples/03 Nesting/Drag Sources/Container.js | zetkin/react-dnd | import React from 'react';
import SourceBox from './SourceBox';
import TargetBox from './TargetBox';
import Colors from './Colors';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
@DragDropContext(HTML5Backend)
export default class Container {
render() {
... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleAttached.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleAttached = () => (
<div>
<Segment attached='top'>
This segment is on top
</Segment>
<Segment attached>
This segment is attached on both sides
</Segment>
<Segment attached='bottom'>
This seg... |
src/renderer/ui/components/settings/tabs/MiniTab.js | MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL- | import React, { Component } from 'react';
import SettingsTabWrapper from './SettingsTabWrapper';
import ToggleableOption from '../ToggleableOption';
export default class MiniTab extends Component {
render() {
return (
<SettingsTabWrapper>
<ToggleableOption label={TranslationProvider.query('setting... |
src/svg-icons/image/crop-original.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropOriginal = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"... |
src/Sidebar/Explore.js | pirey/mie-ayam | import React from 'react'
import locIcon from '../Map/loc.png'
const Explore = ({ onInitSelect, onClose }) => {
return (
<div className="panel panel-default">
<div className="panel-heading">
<button onClick={onClose} className="btn btn-link btn-lg"><i className="fa fa-chevron-left"></i></button>
... |
react-app/src/components/Vis.js | tanykim/swimmers-history | import React, { Component } from 'react';
import Header from '../containers/Header';
import Options from '../containers/Options';
import Network from '../containers/Network';
import Country from '../containers/Country';
import Race from '../containers/Race';
import Legends from './Legends';
import Results from '../cont... |
src/component/actionButton.js | sjcrank/viz-data-generator | import React from 'react';
import { StyleSheet, css } from 'aphrodite/no-important';
import StyleGuide from '../util/styleGuide';
const Styles = StyleSheet.create({
base: {
padding: '12px 18px',
fontSize: '16px',
borderRadius: '4px',
cursor: 'pointer',
':focus': {
... |
src/components/JiraTicketWell.js | DanielDeychakiwsky/ReleaseDashboard | import React, { Component } from 'react';
import { Well, Col } from 'react-bootstrap';
import { componentLogger } from '../utils/logger';
const componentName = 'JiraTicketWell';
class JiraTicketWell extends Component {
componentWillMount() {
componentLogger(componentName, 'componentcomponentWillMount');
... |
packages/material-ui-icons/src/LocalShipping.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LocalShipping = props =>
<SvgIcon {...props}>
<path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.