path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
07-formik-example/src/helper.js | iproduct/course-node-express-react | import React from 'react';
export const DisplayFormikState = props =>
<div style={{ margin: '1rem 0' }}>
<h3 style={{ fontFamily: 'monospace' }} />
<pre
style={{
background: '#f6f8fa',
fontSize: '.65rem',
padding: '.5rem',
}}
>
<strong>props</strong> ={' '}
... |
app/components/events/contributions/ContributionList.js | alexko13/block-and-frame | import React, { Component } from 'react';
import Contribution from './ContributionListItem';
import ContributeButton from './ContributeButton';
class ContributionList extends Component {
componentDidMount() {
$('.message .close').on('click', function () {
$(this).closest('.message').transition('fade');
... |
src/components/ui/Card.js | yursky/recommend | /**
* Cards
*
<Card></Card>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Card } from 'react-native-elements';
// Consts and Libs
import { AppSizes, AppColors, AppStyles } from '@th... |
pages/about.js | mmaarrttyy/next-blog | import React from 'react'
import Layout from '../components/MyLayout.js'
import BasicPage from '../components/BasicPage.js'
import Cosmic from '../models/cosmic'
export default class About extends React.Component {
static async getInitialProps () {
return await Cosmic.getPage('about')
}
render () {
... |
src/components/form/Checkbox.js | ashmaroli/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Checkbox extends Component {
handleChange(e) {
const { onChange } = this.props;
onChange(e.target.checked);
}
render() {
const { text, checked } = this.props;
return (
<div className="checkb... |
src/components/pages/lesson/ListView.js | yiweimatou/yishenghoutai | import React from 'react'
import { GridList, GridTile } from 'material-ui/GridList'
const styles = {
img :{
cursor: 'pointer'
}
}
const ListView = ( props ) => {
const { list,onClick } = props
return (
<GridList
padding = { 60 }
cols = { 4 }
>
{
list.map( tile => {
return <GridTile... |
src/App/App.js | amysimmons/a-guide-to-the-care-and-feeding-of-new-devs | import React from 'react';
import Header from '../Header/Header';
import Recommendations from '../Recommendations/Recommendations'
import Findings from '../Findings/Findings'
import StorySelectors from '../StorySelectors/StorySelectors'
import Footer from '../Footer/Footer';
require("./App.css");
var App = React.creat... |
src/components/Overlay.js | edauenhauer/google-drive-copy-folder | /**
* A static semi-opaque overlay with a spinner and optional message
* to indicate loading, processing, or other wait times.
*/
'use strict';
import React from 'react';
import Spinner from './icons/Spinner';
import PropTypes from 'prop-types';
export default function Overlay(props) {
// fixed position overlay ... |
examples/search-highlighting/index.js | ashutoshrishi/slate | import { Editor } from 'slate-react'
import { Value } from 'slate'
import React from 'react'
import initialValue from './value.json'
/**
* The rich text example.
*
* @type {Component}
*/
class SearchHighlighting extends React.Component {
/**
* Deserialize the initial editor value.
*
* @type {Object}
... |
components/CellListProvider.js | lodev09/react-native-cell-components | import React from 'react';
import PropTypes from 'prop-types';
import Cell from './Cell';
import SelectList from './SelectList';
import {
View,
StyleSheet
} from 'react-native';
export const CellListItem = function(props) {
return <View {...props} />;
}
class CellListProvider extends React.Component {
stat... |
_older/demos/student_chart/components/select-group/SelectBy.es6.js | widged/SOT-skills-report | import React from 'react';
let {Component} = React;
export default class SelectBy extends Component {
constructor(props) {
super(props);
let {onChange} = props;
var optionChange = function(event) {
onChange(event.target.value);
}
this.state = {optionChange: optio... |
src/components/NoMatch.js | chaselden/Local-Vintage-SUVs | import React from 'react'
export default function NoMatch () {
return (
<div role="warning" className="o-warning">
<p>Can not find the site you are looking for.</p>
</div>
)
}
|
src/App.js | barock19/react-hot-boilerplate | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
website-prototyping-tools/playground.js | NevilleS/relay | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import 'ba... |
app/components/SignInPage.js | JSSolutions-Academy/newsly | import React from 'react';
const SignInPage = () => (
<div className="card-panel z-depth-4">
<h1>trello common news feed</h1>
<h5>
<a href="/auth/trello">
sign in with trello
</a>
</h5>
</div>
);
export default SignInPage;
|
src/documentation/Grid/Grid-story.js | wfp/ui | /* eslint-disable no-console */
import React from 'react';
import { storiesOf } from '@storybook/react';
import Link from '../../components/Link';
import Page from '../Page';
storiesOf('Design|Core', module)
.addParameters({ options: { showPanel: false, isToolshown: false } })
.add('Grid', () => (
<Page title... |
src-client/components/StyleSizeInput.js | ipselon/structor | /*
* Copyright 2017 Alexander Pustovalov
*
* 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 a... |
packages/reactor-kitchensink/src/examples/Layouts/vbox/vbox.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container, Panel, Spacer } from '@extjs/ext-react';
import colors from '../../colors';
export default class VBoxLayoutExample extends Component {
render() {
const panelProps = {
height: 175,
margin: '0 0 40 0',
default... |
games/jab/game3/src/scripts/modules/About.js | jabrena/ReactLab | import React from 'react'
export default React.createClass({
render() {
return (
<div className="row">
<div className="col-xs-12">
<div className="card">
<div className="card-header">About</div>
<div className="card-block text-md-center... |
ui/src/containers/BasicQueryBuilder/Select/Select.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Dropdown from '../Dropdown/Dropdown';
const StyledSelect = styled.div`
position: relative;
cursor: pointer;
&:focus {
outline: 0;
}
`;
const Content = styled.div`
display: flex;
... |
node_modules/enzyme/src/ShallowTraversal.js | kaizensauce/campari-app | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import isSubset from 'is-subset';
import {
coercePropValue,
propsOfNode,
splitSelector,
isCompoundSelector,
selectorType,
AND,
SELECTOR,
nodeHasType,
} from './Utils';
export function childrenOfNode(node) {
if (!node) return [];
cons... |
server/sonar-web/src/main/js/apps/overview/domains/coverage-domain.js | vamsirajendra/sonarqube | import d3 from 'd3';
import React from 'react';
import { getMeasuresAndVariations } from '../../../api/measures';
import { DomainTimeline } from '../components/domain-timeline';
import { DomainTreemap } from '../components/domain-treemap';
import { DomainBubbleChart } from '../components/domain-bubble-chart';
import {... |
app/components/IndexPage.js | paladinze/testSemantic | 'use strict';
import React from 'react';
import { Card, Button, Rating, Icon, Menu, List, Comment,Dimmer, Statistic, Dropdown, Modal, Popup} from 'semantic-ui-react';
import { Header, Container, Divider, Image, Input, Label, Form, Grid, Segment} from 'semantic-ui-react';
import {Progress, Sidebar} from 'semantic-ui-r... |
wordpuzzle/src/layout/help.js | prabakaranrvp/CodeGame | /* eslint-disable no-loop-func */
import React from 'react';
import Modal from './modal.js'
import '../style/app.scss';
export default class Help extends React.Component {
render() {
return (
<Modal
showClose={true}
title="How to Play - Bull Cow"
className="how-to-modal"
... |
src/index.js | Ricky-Nz/knocknock-web | import React from 'react';
import ReactROM from 'react-dom';
import Relay from 'react-relay';
import { Router, IndexRoute, IndexRedirect, Route, applyRouterMiddleware, hashHistory } from 'react-router';
import useRelay from 'react-router-relay';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeP... |
src/components/FormPage.js | PracticasCodesai/ExercisesInputsReact | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as FormAction from '../actions/FormAction';
import Form from './Form';
class FormPage extends React.Component {
constructor(props, context){
super(props, context);
this.state = {
emails... |
admin/src/components/PopoutPane.js | BlakeRxxk/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var PopoutPane = React.createClass({
displayName: 'PopoutPane',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
onLayout: React.PropTypes.func
},
componentDidMount () ... |
src/components/Modal/Modal.js | znewton/myxx-client | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './Modal.scss';
import { addEndEventListener, removeEndEventListener } from '../../lib/Events/Events';
import Positioning from '../../lib/Positioning/Positioning';
export default class Modal extends Component {
constructor() {
s... |
src/window/pallet/element/Checkbox.js | unkyulee/control-center | import { ipcRenderer } from 'electron'
import React from 'react'
import { Checkbox } from 'react-bootstrap'
const run = require('../../../control/common/run')
export class Element extends React.Component {
constructor(props) {
super(props)
}
click = () => {
// sends out a message that a button is clicked
... |
src/components/MuiDrawer/MuiDrawer.js | pitLancer/pbdorb | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles, createStyleSheet } from 'material-ui/styles';
import Drawer from 'material-ui/Drawer';
import Button from 'material-ui/Button';
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List';
import Keyboar... |
packages/react-scripts/fixtures/kitchensink/src/index.js | timlogemann/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById(... |
src/components/FetchError.js | chriswitko/idiomatic-redux-app | import React from 'react';
const FetchError = ({ message, onRetry}) => (
<div>
<p>Could not fetch todos. {message}</p>
<button onClick={onRetry}>Retry</button>
</div>
);
export default FetchError;
|
client/src/app/routes/outlook/containers/OutlookReplay.js | zraees/sms-project | import React from 'react'
import {OverlayTrigger, Tooltip} from 'react-bootstrap'
import {connect} from 'react-redux'
import {outlookFetchMeesage} from '../OutlookActions'
import Moment from '../../../components/utils/Moment'
import HtmlRender from '../../../components/utils/HtmlRender'
import Select2 from '../../..... |
actor-apps/app-web/src/app/components/SidebarSection.react.js | liruqi/actor-platform-v0.9 | import React from 'react';
import HeaderSection from 'components/sidebar/HeaderSection.react';
import RecentSection from 'components/sidebar/RecentSection.react';
class SidebarSection extends React.Component {
static propTypes = {
selectedPeer: React.PropTypes.object
};
constructor(props) {
super(props... |
docs/src/CodeExample.js | tonylinyy/react-bootstrap | import React from 'react';
export default class CodeExample extends React.Component {
render() {
return (
<pre className="cm-s-solarized cm-s-light">
<code>
{this.props.codeText}
</code>
</pre>
);
}
componentDidMount() {
if (CodeMirror === undefined) {
ret... |
example/src/screens/transitions/sharedElementTransitions/Masonry/Item.js | eeynard/react-native-navigation | import React from 'react';
import {StyleSheet, View, Text, Image} from 'react-native';
import {SharedElementTransition} from 'react-native-navigation';
const SHOW_DURATION = 240;
const HIDE_DURATION = 200;
class Item extends React.Component {
static navigatorStyle = {
navBarHidden: true,
drawUnderNavBar: t... |
demo/component/ScatterChart.js | sdoomz/recharts | import React from 'react';
import { ScatterChart, Scatter, CartesianGrid, Tooltip, Legend,
XAxis, YAxis, ZAxis, ReferenceLine, ReferenceDot, ReferenceArea } from 'recharts';
import { changeNumberOfData } from './utils';
const data01 = [
{ x: 100, y: 200, z: 200 },
{ x: 120, y: 100, z: 260 },
{ x: 170, y: 300, z... |
client/src/js/components/chatbox/ChatboxEmojiList.js | abitlog/retube | import React from 'react';
import ChatboxEmojiElement from './ChatboxEmojiElement';
import scrollify from '../HOCs/scrollify';
import * as emojis from '../../utils/emojiShortnames';
class ChatboxEmojiList extends React.Component {
static propTypes = {
set: React.PropTypes.string.isRequired,
onEmojiClick: Re... |
frontend/src/Settings/Notifications/Notifications/NotificationsConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { deleteNotification, fetchNotifications } from 'Store/Actions/settingsActions';
import createSortedSectionSelector from 'Store/Selectors/createSortedSec... |
src/js/components/DataTable/stories/Sized.js | grommet/grommet | import React from 'react';
import { Box, DataTable } from 'grommet';
// Source code for the data can be found here
// https://github.com/grommet/grommet/blob/master/src/js/components/DataTable/stories/data.js
import { columns, data } from './data';
export const SizedDataTable = () => (
// Uncomment <Grommet> lines... |
src/DropdownStateMixin.js | coderstudy/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
/**
* Checks whether a node is within
* a root nodes tree
*
* @param {DOMElement} node
* @param {DOMElement} root
* @returns {boolean}
*/
function isNodeInRoot(node, root) {
while (node) {
... |
src/_app/js/entry.js | hhumphrey84/harleystphysio | // import React, { Component } from 'react';
// import {render} from 'react-dom';
// import Hello from './components/Hello';
//
// class App extends Component {
// render() {
// return (
// <Hello />
// )
// }
// }
//
// render(<App />, document.getElementById('root'));
const menuBtn = document.getEl... |
src/esm/components/graphics/icons-next/window-edit-icon-next/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var WindowEditIconNext = function WindowEditIconNext(_ref) {
... |
src/main.js | kyoyadmoon/fuzzy-hw1 | /**
* 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 'babel-polyfill';
im... |
app/javascript/mastodon/features/ui/util/reduced_motion.js | anon5r/mastonon | // Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import React from 'react';
import Motion from 'react-motion/lib/Motion';
import PropTypes from 'prop-types';
const stylesToKeep = ['opacity', 'backgroundOpacity'];
const extractValue = (value) =>... |
packages/react/src/components/molecules/SearchBannerForm/SearchBannerForm.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import { action } from '@storybook/addon-actions';
import SearchBannerForm from '.';
import SearchBannerFormDocs from './SearchBannerForm.md';
export const SearchBannerFormExample = (args) => <SearchBannerForm {...args} />;
SearchBannerF... |
src/index.js | SashaKoro/redux-tic-tac-toe | import React from 'react';
import { render } from 'react-dom';
import App from './components/app';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import reducer from './reducers';
const store = createStore(reducer);
render(
<Provider store={store}>
<App />
</Provider>,
document... |
quick-bench/src/dialogs/AboutDialog.js | FredTingaud/quick-bench-front-end | import React from 'react';
import { Modal, Button } from 'react-bootstrap';
class AboutDialog extends React.Component {
render() {
return (
<Modal show={this.props.show} onHide={this.props.onHide} dialogClassName="modal-60w">
<Modal.Header closeButton>
<Modal... |
website/src/pages/components/home/ValueProps2.js | vokal/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 } from 'react-entypo';
const ValueProp = ({ icon, text, title, text2,... |
src/BootstrapMixin.js | gianpaj/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
o2web/source/x_component_appstore_application/src/index.js | o2oa/o2oa | import React from 'react';
import * as ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import {loadComponent, component} from '@o2oa/component';
loadComponent('appstore.application', (content, cb)=>{
// const root = createRoot(content);
... |
Libraries/Components/TextInput/TextInput.js | CodeLinkIO/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... |
app/router.js | spasovski/shield-studies-client | import React from 'react';
import {Router, Route, browserHistory} from 'react-router';
// Layouts
import MainLayout from './components/layouts/main-layout';
// Pages
import StudyListContainer from './components/containers/study-list-container';
import SignIn from './components/views/sign-in';
import StudyDetailsConta... |
index.android.js | Capoeira-Bordeaux/GingaOctet | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Image,
Text,
View
} from 'react-native';
export default class GingaOctet extends Component {
render() {
return (
<Image so... |
src/browser/offline/OfflinePage.js | VigneshRavichandran02/3io | /* @flow */
import type { State } from '../../common/types';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { PageHeader, Pre, Title, View } from '../app/components';
import { connect } from 'react-redux';
const OfflinePage = ({ online }) => (
<View>
<Title message=... |
modules/IndexRedirect.js | meraki/react-router | import React from 'react'
import warning from './warning'
import invariant from 'invariant'
import Redirect from './Redirect'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* An <IndexRedirect> is used to redirect from an indexRoute.
*/
const IndexRedirect = React.createClass({
... |
docs/src/layouts/wrapper.js | adrianleb/nuclear-js | import React from 'react'
import { BASE_URL } from '../globals'
const PRISM_PATH = BASE_URL + 'assets/js/prism.js'
const CSS_PATH = BASE_URL + 'assets/css/output.css'
const JS_PATH = BASE_URL + 'app.js'
const GA_SCRIPT = `(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[])... |
Auth/website/src/pages/FAQ.js | awslabs/aws-serverless-workshops | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* o... |
src/javascript/components/component.js | rahulharinkhede2013/xigro-dashboard | import React from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {buttonClick} from './../action/simpleAction.js';
class SimpleComponent extends React.Component {
constructor(props)
{
super(props);
this.onLike = this.onLike.bind(this);
this.onUnLike = this.onUnL... |
dashboard-ui/app/components/dashboardproject/dashboardproject.js | CloudBoost/cloudboost | 'use strict';
import React from 'react';
import Projecthead from './projecthead';
import Projectscontainer from './projectscontainer';
import Footer from '../footer/footer';
const Dashboardproject = React.createClass({
render: function () {
return (
<div>
<div className='dashproject app-dashprojec... |
client/src/components/NotFound/index.js | dotkom/super-duper-fiesta | import React from 'react';
const NotFound = () => (
<div>
<h1>Denne siden eksisterer ikke</h1>
</div>
);
export default NotFound;
|
src/carousel.js | beni55/nuka-carousel | 'use strict';
import React from 'react';
import tweenState from 'react-tween-state';
import decorators from './decorators';
import assign from 'object-assign';
import ExecutionEnvironment from 'exenv';
React.initializeTouchEvents(true);
const addEvent = function(elem, type, eventHandle) {
if (elem == null || typeo... |
src/browser/screens/home.js | nullstyle/wallet-one | import React from 'react';
import { connect } from 'react-redux';
import {
AppBar, Tabs, Tab, FloatingActionButton,
} from 'material-ui';
import AddIcon from "material-ui/lib/svg-icons/content/add"
import palette from 'b:palette';
import {
AccountName,
AccountMenu,
BalancesTab,
HistoryTab,
Loading,
Send... |
src/routes/Counter/components/Counter.js | pptang/ggm | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
src/names/selected/toolbarActions/DeleteButton.js | VasilyShelkov/ClientRelationshipManagerUI | import React from 'react';
import IconButton from 'material-ui/IconButton';
import DeleteName from 'material-ui/svg-icons/action/delete';
import { red500 } from 'material-ui/styles/colors';
export default ({ removeNameAction }) => (
<IconButton id="deleteName" touch onClick={removeNameAction}>
<DeleteName color=... |
src/svg-icons/hardware/desktop-windows.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopWindows = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"/>
</SvgIcon>
);
HardwareDesk... |
src/containers/DevTools/DevTools.js | dumbNickname/oasp4js-goes-react | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-Q"
changePositionKey="ctrl-M">
<LogMonitor /... |
rojak-ui-web/src/app/utils/Container.js | pyk/rojak | import React from 'react'
import { push } from 'redux-router'
import Navbar from './Navbar'
import { setKeyword, setScreenExpanded } from '../root/actions'
import { connect } from 'react-redux'
class Container extends React.Component {
static propTypes = {
children: React.PropTypes.any,
root: React... |
src/svg-icons/editor/format-bold.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatBold = (props) => (
<SvgIcon {...props}>
<path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1... |
docs/src/app/components/pages/components/IconButton/ExampleTouch.js | matthewoates/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... |
app/javascript/client_messenger/styles/styled.js | michelson/chaskiq | import styled from '@emotion/styled'
import { keyframes } from '@emotion/core'
import React from 'react'
import StyledFrame from '../styledFrame'
import { darken } from 'polished'
import { textColor } from './utils'
import tw from 'twin.macro'
export const mainColor = '#0a1a27' // "#42a5f5";
const rotate = keyframes`... |
src/components/Post.js | nickeblewis/walkapp | /**
* Single Post item
*/
import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
import { Grid, Thumbnail, Col, Row, Button, Jumbotron } from 'react-bootstrap'
class Post extends React.Component {
static propTypes = {
post: React.PropTypes.object,
mutate: React.PropT... |
src/routes/login/index.js | kuao775/mandragora | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/search/facet-box/facet-data.js | asimsir/focus-components | import React from 'react';
import builder from 'focus-core/component/builder';
import {ArgumentInvalidException} from 'focus-core/exception';
import numberFormatter from 'focus-core/definition/formatter/number';
const FacetData = {
getDefaultProps() {
return ({
type: 'text'
});
},
... |
examples/todos-with-undo/index.js | camsong/redux | import React from 'react'
import { render } from 'react-dom'
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')
render(
<Provider store={... |
src/svg-icons/image/transform.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTransform = (props) => (
<SvgIcon {...props}>
<path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/>
</SvgIcon>
);
ImageTransform = pure(I... |
components/Deck/ContentModulesPanel/ContentQuestionsPanel/ExamAnswersItem.js | slidewiki/slidewiki-platform | import React from 'react';
import PropTypes from 'prop-types';
import selectExamAnswer from '../../../../actions/questions/selectExamAnswer';
import { defineMessages } from 'react-intl';
class ExamAnswersItem extends React.Component {
handleOnChange() {
if (!this.props.showCorrectAnswers) {
this... |
src/components/organisms/Footer/_stories.js | ygoto3/artwork-manager | import React from 'react';
import { Footer } from './index';
module.exports = stories => (
stories
.chapter('Footer')
.addWithInfo(
'normal',
'Application\'s footer',
() => (
<Footer />
)
)
);
|
client/src/components/GalleryItem/draggable.js | open-sausages/silverstripe-assets-gallery | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DragSource } from 'react-dnd';
import { getEmptyImage } from 'react-dnd-html5-backend';
export default function draggable(type) {
const spec = {
canDrag(props) {
return props.canDrag;
},
beginDrag(props) {
... |
Practicas/TicTac2/componentes/Game.js | tonkyfiero/React_Ejercicios | /*
*Importacion de Modulos
*/
import React from 'react';
import Tablero from './Tablero.js';
export default class Game extends React.Component{
constructor(props){
super(props);
this.state={
arreglo:Array(9).fill(null),
siguienteLugar:0,
isXNext:true
}
}
handleClick(i){
alert(i);
/*Matriz de m... |
src/components/charts/charts/lib/tooltip.js | noahehall/udacity-corporate-dashboard | import React from 'react';
import * as d3 from 'd3';
export class ToolTip extends React.Component {
constructor (props) {
super(props);
}
componentDidMount () {
// single tooltip used for all charts
const appToolTip = d3
.select('body')
.append('section')
.style('background', 'blac... |
monkey/monkey_island/cc/ui/src/components/ui-components/AdvancedMultiSelect.js | guardicore/monkey | import React from 'react';
import {Button, Card} from 'react-bootstrap';
import {cloneDeep} from 'lodash';
import {getDefaultPaneParams, InfoPane, WarningType} from './InfoPane';
import {MasterCheckbox, MasterCheckboxState} from './MasterCheckbox';
import ChildCheckboxContainer from './ChildCheckbox';
import {getFull... |
src/search/SearchBar.js | carab/Pinarium | import React from 'react';
import {observer} from 'mobx-react-lite';
import {Fade} from '@material-ui/core';
import SearchForm from './SearchForm';
import uiStore from '../stores/ui';
function SearchBar() {
const {open} = uiStore.searchBar;
return (
<Fade in={open} mountOnEnter unmountOnExit>
<Search... |
src/components/rutas/routeDirection.js | ebenezer-unitec/ReactNativeSBO | import React from 'react';
import {
Text,
View,
TouchableOpacity,
Dimensions,
Image
} from 'react-native';
import styles from '../../themes/styles';
import mystyles from './styles';
import{
Container,
Header,
Title,
Button
} from 'native-base';
import {
Actions
} from 'react-native-router-flux';
im... |
app/App.js | gammapy/web-experiments | import React, { Component } from 'react';
import { Col } from 'react-bootstrap';
import Navbar from './components/Navbar';
import LeftPane from './components/LeftPane';
import Content from './components/Content';
import Footer from './components/Footer';
import ImageView from './components/ImageView';
import gll from... |
lib/components/tab.js | bekher/hyperterm | import React from 'react';
import Component from '../component';
export default class Tab extends Component {
constructor () {
super();
this.hover = this.hover.bind(this);
this.blur = this.blur.bind(this);
this.handleClick = this.handleClick.bind(this);
this.state = {
hovered: false
};
... |
src/helpers/connectData.js | melodylu/react-redux-universal-hot-example | import React, { Component } from 'react';
import hoistStatics from 'hoist-non-react-statics';
/*
Note:
When this decorator is used, it MUST be the first (outermost) decorator.
Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods.
*/
export default function connectData(fetchData, fe... |
src/components/Buttons.js | VERSAYANA/simple-todo | import React, { Component } from 'react';
import {
NativeModules,
LayoutAnimation,
View,
Text,
TouchableNativeFeedback,
DatePickerAndroid,
Alert
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import style from './style/Buttons';
const { UIManager } = NativeModu... |
src/Map.js | dronesmith/Dronesmith-Ground-Control | import React, { Component } from 'react';
import L from 'leaflet';
import 'leaflet-rotatedmarker/leaflet.rotatedMarker';
import 'leaflet/dist/leaflet.css';
// import '../lib/mq-routing.js';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Nav from './Nav';
import GroundControlApi from './Groun... |
src/specimens/SawarabiGothic.js | googlefonts/japanese | import React from 'react';
import Section from '../components/Section';
class SpecimenSawarabi extends React.Component {
render() {
return (
<div>
<Section maxWidth={ 2 }>
<div className="h3 sm-h4 md-h2 lg-h1 line-height-4 white">
<div className="border-bottom border-yellow bo... |
public/admin/components/sysUser/UserModal.js | dreamllq/koa-web-framework | /**
* Created by lvliqi on 2017/5/3.
*/
import React from 'react'
import {Form, Modal, Input} from 'antd'
const FormItem = Form.Item;
const formItemLayout = {
labelCol: {
span: 6,
},
wrapperCol: {
span: 14,
},
};
export default Form.create()(
({
visible, title, onCancel, ... |
src/modules/auth/routes.js | xangxiong/xim-js | import React from 'react';
import { Route } from 'react-router-dom';
import Login from './components/login';
import Logout from './components/logout';
import css from './auth.css';
export default [
<Route path="/login" key="login" component={Login} />,
<Route path="/logout" key="logout" component={Logout} />
]; |
src/pages/404.js | 5minreact/5minreact.audio | import React from 'react';
import styled from 'styled-components';
import H2 from '../components/H2';
const Wrapper = styled.div`
text-align: center;
`;
function NotFound() {
return (
<Wrapper>
<H2>Sorry, that page was not found.</H2>
</Wrapper>
);
}
export default NotFound; |
debugger/function-tree-debugger/src/components/Debugger/Signals/Signal/Action/index.js | idream3/cerebral | import './styles.css'
import React from 'react'
import Inspector from '../../../Inspector'
import Service from './Service'
function Action ({action, execution, children, onMutationClick, onActionClick}) {
function getActionName () {
var regex = /\(([^()]+)\)/
var match = regex.exec(action.name)
return {... |
src/containers/People/People.js | rasvaan/digibird_client | import React, { Component } from 'react';
import { Banner, Footer } from 'components';
import Helmet from 'react-helmet';
export default class People extends Component {
render() {
const styles = require('./People.scss');
return (
<div>
<Helmet title="People"/>
<Banner title="People" i... |
scr-app/src/components/GraphicalQuery.js | tlatoza/SeeCodeRun | import React from 'react';
import PropTypes from 'prop-types';
import {withStyles} from '@material-ui/core/styles';
import Fab from '@material-ui/core/Fab';
// import Checkbox from '@material-ui/core/Checkbox';
// import CheckBoxOutlineBlankIcon from '@material-ui/icons/CheckBoxOutlineBlank';
// import CheckBoxIcon fr... |
index.ios.js | nasgul/uwc2016teamSpring | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class todo extends Component {
render() {
return (
<View style={styles.container}>
... |
teletobit/src/components/Base/Header/UserMenu.js | edenpark/teletobit | import React from 'react';
import { Link } from 'react-router';
import { Icon } from 'semantic-ui-react';
import EyeCatchy from 'components/Common/EyeCatchy';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import Dimmer from 'components/Common/Dimmer';
const UserMenu = ({profile, visible, onH... |
src/components/common/inputs/TextArea.js | securely-app/web | import React from 'react';
import styled from 'styled-components';
const TextArea = props => <StyledTextArea onChange={props.onChange} />;
export default TextArea;
const StyledTextArea = styled.textarea`
box-sizing: border-box;
border-radius: 8px;
width: 100%;
border: none;
margin: 12px auto;
display: bl... |
examples/persist-react/src/index.js | rematch/rematch | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { init } from '@rematch/core'
import Spinner from 'react-spinkit'
import createPersistPlugin, { getPersistor } from '@rematch/persist'
import { PersistGate } from 'redux-persist/es/integration/react'
import storage ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.