path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/core/display/App/FullPreview/index.js | JulienPradet/pigment-store | import React from 'react'
import {Match} from 'react-router'
import FeatureDisplay from '../Feature/Display'
const FullPreviewFeature = ({pathname}) => (
<FeatureDisplay pathname={pathname.replace(/^\/full/, '')} fullHeight />
)
const FullPreviewComponent = ({component, prefix}) => (
<div>
{component.features... |
src/ContentBlocks/Shared/SlideReordering.js | grommet/grommet-cms-content-blocks | // @flow
import React from 'react';
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import Tabs from 'grommet/components/Tabs';
import Tab from 'grommet/components/Tab';
import Menu from 'grommet/components/Menu';
import PreviousIcon from 'grommet/components/icons/base/Previous... |
app/shared/availability-view/sidebar/Sidebar.js | fastmonkeys/respa-ui | import PropTypes from 'prop-types';
import React from 'react';
import GroupInfo from './group-info/GroupInfo';
Sidebar.propTypes = {
date: PropTypes.string.isRequired,
groups: PropTypes.arrayOf(
PropTypes.shape({ name: PropTypes.string.isRequired }),
).isRequired,
selectedResourceId: PropTypes.string,
};
... |
dashboard-ui/app/components/settings/settings.js | CloudBoost/cloudboost | /**
* Created by Darkstar on 11/29/2016.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { fetchAppSettings, resetAppSettings } from '../../actions';
// sub comps
import General from './general';
import Email from './email';
// import Push from './push'... |
src/components/Editor/withWorkflow.js | Aloomaio/netlify-cms | import React from 'react';
import { connect } from 'react-redux';
import { EDITORIAL_WORKFLOW } from 'Constants/publishModes';
import { selectUnpublishedEntry, selectEntry } from 'Reducers';
import { selectAllowDeletion } from 'Reducers/collections';
import { loadUnpublishedEntry, persistUnpublishedEntry } from 'Action... |
src/Fade.js | IveWong/react-bootstrap | import React from 'react';
import Transition from './Transition';
class Fade extends React.Component {
render() {
return (
<Transition
{...this.props}
className='fade'
enteredClassName='in'
enteringClassName='in'
>
{this.props.children}
</Transition>
... |
src/js/components/Chart/stories/Round.js | grommet/grommet | import React from 'react';
import { Box, Chart, Heading } from 'grommet';
const values = [{ value: [10, 20] }, { value: [20, 30] }, { value: [30, 15] }];
export const Round = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={grommet}>
<Box direction="row-responsive" wrap p... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | v2tmobile/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
docs/app/Examples/elements/Header/Variations/HeaderExampleTextAlignment.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Header, Segment } from 'semantic-ui-react'
const HeaderExampleTextAlignment = () => (
<Segment>
<Header as='h3' textAlign='right'>
Float Right
</Header>
<Header as='h3' textAlign='left'>
Float Left
</Header>
<Header as='h3' textAlign='justified'>
... |
src/Text.js | MrCheater/text-resize-and-word-wrap-provider | import React from 'react';
import parseAbsoluteCSSUnit from 'parse-absolute-css-unit';
import { Component } from './Component';
import { parser } from './parser';
import { contextTypes } from './contextTypes';
import { optionalContext } from './optionalContext';
import { range } from 'react-range-proptypes';
@optional... |
app/containers/Guestlist.js | albertmejia/empire_room | import React from 'react';
import tablereservations from '../styles/tablereservations.scss';
class Guestlist extends React.Component {
componentDidMount() {
window.scrollTo(0, 0);
}
render() {
return (
<div className={tablereservations.wrapper}>
<div className=... |
frontend/src/components/user-settings/delete-account.js | miurahr/seahub | import React from 'react';
import { gettext, siteRoot } from '../../utils/constants';
import ModalPortal from '../modal-portal';
import ConfirmDeleteAccount from '../dialog/confirm-delete-account';
const {
csrfToken
} = window.app.pageOptions;
class DeleteAccount extends React.Component {
constructor(props) {
... |
src/Modal/Modal.js | nirhart/wix-style-react | import React from 'react';
import ReactModal from 'react-modal';
import styles from './Modal.scss';
import {colors, positions} from './ModalConstants';
const Modal = props => {
//TODO When deprecation ends, _theme won't be needed.
const _theme = props.theme || props.style;
if (props.style) {
console.warn('[... |
packages/react/src/components/UIShell/HeaderMenu.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import { ChevronDown16 } from '@carbon/icons-react';
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-type... |
src/containers/SearchIllustsResult.js | alphasp/pxview | import React, { Component } from 'react';
import { View, InteractionManager } from 'react-native';
import { connect } from 'react-redux';
import { connectLocalization } from '../components/Localization';
import IllustList from '../components/IllustList';
import NoResult from '../components/NoResult';
import * as search... |
oldsrc/index.js | iamwithnail/react-redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
examples/with-mobx/pages/index.js | sedubois/next.js | import React from 'react'
import { Provider } from 'mobx-react'
import { initStore } from '../store'
import Page from '../components/Page'
export default class Counter extends React.Component {
static getInitialProps ({ req }) {
const isServer = !!req
const store = initStore(isServer)
return { lastUpdate... |
app/containers/app.container.js | jbkuczma/sounci | import React from 'react';
import Axios from 'axios';
import Sound from 'react-sound';
import Details from '../components/details.component';
import Player from '../components/player.component';
import Progress from '../components/progress.component';
import Search from '../components/search.component';
import Footer f... |
js/components/home/index.js | acbde45/bookRead |
import React, { Component } from 'react';
import { TouchableOpacity, View, ScrollView } from 'react-native';
import { Actions } from 'react-native-router-flux';
import { connect } from 'react-redux';
import {
Container,
Header,
Title,
Text,
Button,
Icon,
Left,
Body,
Right,
} from 'native-base';
impor... |
packages/starter-scripts/fixtures/kitchensink/src/features/config/BaseUrl.js | chungchiehlun/create-starter-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, { Component } from 'react';
import PropTypes from 'prop-types';
import load from 'absoluteLoad';
export default class ext... |
docs/src/app/components/pages/components/GridList/ExampleComplex.js | nathanmarks/material-ui | import React from 'react';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
const styles = {
root: {
display: 'flex',
flexWrap: 'wrap',
justifyContent: 'space-around',
},
gridLi... |
app/components/Players.js | DeividasK/click-or-be-clicked | import React from 'react';
import { Player } from './Player';
export default class Players extends React.Component {
render() {
if (this.props.list.length === 0) {
return <div>Sign in to see the list of players available.</div>
}
return (
<div className="list-group">
{ this.props.lis... |
examples/with-external-scoped-css/pages/index.js | callumlocke/next.js | import React from 'react'
import ss from './index.sass'
export const IndexPage = () => (
<div className={ss.example}>
This is an example from scoped style in a outside CSS file {'<3'}
</div>
)
export default IndexPage
|
examples/js/basic/scroll-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
6.0.0-rc.2/examples/asyncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(268),e.exports=n(266)},function(e,t,n){var r=n(6),o=n(32),i=n(18),a=n(20),u=n(37),s="prototype",... |
app/components/social/SocialList.js | wp-wilsonperez/votos |
import React from 'react';
import TableApp from './../common/TableApp';
class SocialList extends React.Component {
constructor(props) {
super(props);
let params= {
title: "Listado de Sessiones de Facebook",
fields: [
{"title": "Facebook id", "field": "facebook_id"},
... |
assets/jqwidgets/demos/react/app/loader/showonlytext/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxLoader from '../../../jqwidgets-react/react_jqxloader.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
componentDidMount() {
this.refs.openLoader.on('click', () => {
... |
src/pages/index.js | petecorreia/petecorreia | import React from 'react';
import { Link as AppLink, graphql } from 'gatsby';
import get from 'lodash/get';
import { Flex, Box, Text, Link } from 'rebass';
import Layout from '../components/Layout';
import SEO from '../components/SEO';
import { formatReadingTime, getGreeting } from '../utils';
const Section = props =>... |
src/minimalExamples/components/HelloWorldES6Clean.js | yosuzuk/react-playground | import React from 'react';
/**
* Probably the cleanest version of Hello World!
*
* - uses functional component syntax
* - is named to help debugging
* - uses separate lines for JSX and JavaScript
* - wraps JSX in parenthesis
* - uses semicolons
*/
const HelloWorld = () => (
<div>Hello World!</div>
);
expo... |
src/components/common/SimpleEditor/Schema/Marks/BackgroundColorMark.js | anztrax/simple-image-server-frontend | import React from 'react';
export default class BackgroundColorMark extends React.Component{
static get markType(){
return 'background-text-color-mark';
}
constructor(props){
super(props);
}
render(){
const { data } = this.props.mark;
const color = data.get('color');
return (
<spa... |
src/svg-icons/hardware/tv.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTv = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
HardwareTv = pure(Hardwar... |
src/components/Progress/index.js | HenriBeck/materialize-react | // @flow strict-local
import React from 'react';
import clamp from 'clamp';
import PropTypes from 'prop-types';
import getNotDeclaredProps from 'react-get-not-declared-props';
import Sheet, { type Data } from './Sheet';
type Props = {
progress: number,
indeterminate: boolean,
active: boolean,
className: stri... |
packages/bundle/src/adaptiveCards/Attachment/SignInCardAttachment.js | billba/botchat | import PropTypes from 'prop-types';
import React from 'react';
import SignInCardContent from './SignInCardContent';
const SignInCardAttachment = ({ attachment: { content }, disabled }) => (
<SignInCardContent content={content} disabled={disabled} />
);
SignInCardAttachment.defaultProps = {
disabled: undefined
};... |
examples/counter/containers/App.js | Ryan-McBride/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... |
components/RadioContainer.js | brown-jones-industries/client | import React from 'react';
import GoeeyRadio from './GoeeyRadio';
export default ({label, width, height, clicked, selected}) => {
return (
<div className="radioContainer">
<GoeeyRadio width={width} height={height} clicked={clicked} selected={selected} />
<div className={`radioLabel centeredContent ${... |
src/Tabs/Tabs.js | tleunen/react-mdl | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Tab from './Tab';
import TabBar from './TabBar';
import mdlUpgrade from '../utils/mdlUpgrade';
const TabPropType = (props, propName, componentName) => {
const prop = props[propName];
return prop.type !== ... |
app/TabViewItem.js | jeasonHu/RNHelloWord | import React, { Component } from 'react';
import {
StyleSheet,
View,
PropTypes,
TouchableOpacity,
Text
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import { toastShort } from './Utils/ToastUtil'
export default class TabViewItem extends Component {
static de... |
src/components/User/Sprint/Views/Mobile/tpl.js | Ftornik/forwardteam.space | /**
* [IL]
* Library Import
*/
import React from 'react';
import cx from 'classnames';
/**
* [IS]
* Style Import
*/
import Styles from './Styles/main.scss';
import GoodStart from 'components/Assets/Pins/GoodStart';
import ThreeStars from 'components/Assets/Stars/Three';
function Sprint() {
const percent = ... |
src/svg-icons/content/undo.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let 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"/>
</Svg... |
node_modules/react-native/Libraries/Utilities/throwOnWrongReactAPI.js | aksharora/ReactNativeDemoBasic | /**
* 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... |
react/Regular/Regular.demo.js | seek-oss/seek-style-guide | import React from 'react';
import Regular from './Regular';
import Text from '../Text/Text';
export default {
route: '/regular',
title: 'Regular',
category: 'Typography',
component: Text,
initialProps: {
headline: true,
children: ['This text is ', <Regular key="regular">regular</Regular>]
},
opti... |
src/routes/Community/components/CommunityView.js | liuyaoao/omnyiq-sc1-server-render | import React from 'react';
import Helmet from 'react-helmet'
import ReactTabBar from '../../../components/ReactTabBar';
import SubNavOption from '../../../components/SubNavOption';
import logoImg from '../assets/logo.png'
import menuImg from '../assets/menu.png'
import './CommunityView.scss'
var CommunityView = React.... |
examples/async/containers/Root.js | Amirus/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
resources/assets/js/components/common/Loader.js | jrm2k6/i-heart-reading | import React from 'react';
export default () => {
return (
<div className='loader-container'>
<div className="sk-fading-circle">
<div className="sk-circle1 sk-circle"></div>
<div className="sk-circle2 sk-circle"></div>
<div className="sk-circle3 sk-circle"></div>
<div classN... |
src/modules/editor/components/popovers/addTooltip/AddTooltip/AddTooltip.js | CtrHellenicStudies/Commentary | import React from 'react';
import autoBind from 'react-autobind';
import { connect } from 'react-redux';
// redux
import editorActions from '../../../../actions';
import hasSelectedText from '../../../../lib/hasSelectedText';
// components
import AddTooltipMenu from '../AddTooltipMenu';
import AddTooltipButton from '... |
src/app/index.js | irfanandriansyah1997/Kopi-Gayo | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from './store'
import '../asset/style/app.scss'
import AppComponent from './component/app.component'
import { Router, Route, IndexRoute, HashRouter, Switch, Redirect } from 'react-router-dom'
con... |
docs/app/Examples/elements/Input/States/InputExampleFocus.js | clemensw/stardust | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleFocus = () => (
<Input focus placeholder='Search...' />
)
export default InputExampleFocus
|
app/components/CarList.js | qiu-deqing/car-model | import React from 'react'
import {
getCarList
} from '../services/car'
import Pagination from 'rc-pagination'
import Select from 'rc-select'
export default class CarList extends React.Component {
constructor(props) {
super(props)
this.state = {
query: {
initial: '',
brand: '',
... |
app/client/elements/Fields/Text.js | jmdesiderio/swan-cms | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { lighten } from 'polished'
import { FieldWrapper } from './'
const InputElement = styled.input`
border: 1px solid ${p => (p.hasError ? p.theme.colors.red : p.theme.colors.gainsboro)};
border-radius: .25rem;... |
src/svg-icons/action/toc.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToc = (props) => (
<SvgIcon {...props}>
<path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/>
</SvgIcon>
);
ActionToc = pure(ActionToc);
ActionToc.displa... |
Sources/ewsnodejs-server/node_modules/@material-ui/core/esm/utils/createSvgIcon.js | nihospr01/OpenSpeechPlatform-UCSD | import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import SvgIcon from '../SvgIcon';
/**
* Private module reserved for @material-ui/x packages.
*/
export default function createSvgIcon(path, displayName) {
var Component = function Component(props, ref) {
return /*#__PURE__*/R... |
src/RatingWidget.js | arunchaganty/briefly | import React, { Component } from 'react';
import {Alert, Glyphicon, Table} from 'react-bootstrap';
import NaryAnswer from './NaryAnswer';
import SelectableDocument from './SelectableDocument';
import update from 'immutability-helper';
import './RatingWidget.css';
function _kv(key, value) {
let ret = {};
ret[key] ... |
packages/react-scripts/template/src/index.js | Clearcover/web-build | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/components/Post/index.js | tgrecojs/tgrecojs-static | // @flow
/* eslint-disable react/no-danger */
import React from 'react';
import Link from 'next/link';
import { distanceInWordsToNow } from 'date-fns';
import styled from 'styled-components';
import renderMarkup from '../../lib/renderMarkup';
import { type Post } from '../../../types/post';
import theme from '../../li... |
src/news/SubmitDialog.js | kriasoft/react-static-boilerplate | /**
* React Starter Kit for Firebase
* https://github.com/kriasoft/react-firebase-starter
* Copyright (c) 2015-present Kriasoft | MIT License
*/
import React from 'react';
import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui... |
app/components/Icons/icons/icon-vote.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
function IconVote() {
return (
<svg version="1.1" id="icon-vote" x="0px" y="0px" viewBox="-41 164.9 512 512">
<g>
<g>
<path d="M464.5,229.7l-149.3-64c-4.4-1.9-9.5-0.6-12.5,3.1L260,222.2c-2,2.5-2.8,5.8-2.1,9c0.7,3,2.6,5.5,5.3,7l-134,50.3c-11.2,4.2-20.9,12.2-27,22... |
src/components/animate/ReactAnimation/ReactAntdMotion/index.js | SmiletoSUN/react-redux-demo | import React from 'react';
import QueueAnim from 'rc-queue-anim';
const ItemStyle = {
width: 200,
height: 30,
lineHeight: '30px',
marginTop: 5,
backgroundColor: '#ff4848',
color: '#fff',
borderRadius: 3,
textAlign: 'center',
};
const MotionBoxStyle = {
display: 'flex',
justifyContent: 'center',
... |
src/screens/Feed.js | jazmon/greaserocket | // @flow
import React from 'react';
import {
View,
ListView,
ScrollView,
RefreshControl,
Platform,
ActivityIndicator,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import { connect } from 'react-redux';
import type { Story as StoryType } from 'types';
import type { ReduxSta... |
app/javascript/mastodon/components/autosuggest_emoji.js | mhffdq/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
const assetHost = process.env.CDN_HOST || '';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequired,
... |
app/components/Counter/Counter.js | DenQ/electron-react-lex | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Counter.css';
class Counter extends Component {
props: {
set100: () => void,
increment: () => void,
incrementIfOdd: () => void,
incrementAsync: () => void,
decrement: () => void,
... |
app/src/Frontend/components/modal/index.js | ptphp/ptphp |
"use strict";
import React from 'react';
var Tappable = require('react-tappable');
import Icon from "../../libs/weui/components/icon/index";
import './index.less';
export default React.createClass( {
componentDidMount(){
},
render() {
let {title,onClose,show,children} = this.props;
if(... |
sources/js/about.js | lshap/streetlivesnyc | 'use strict';
import React from 'react';
module.exports.About = React.createClass({
render: function() {
return (
<div className="StaticPage-container">
<div className="StaticPage">
<h2 className="StaticPage-title">About</h2>
<h3 className="StaticPage-title">Your city, your map,... |
wwwroot/app/src/components/PantryPage/PantryItem.js | AlinCiocan/PlanEatSave | import React, { Component } from 'react';
import PikadayWrapper from '../../lib-components/PikadayWrapper';
import InputGroup from '../base/form/InputGroup';
export default class PantryItem extends Component {
constructor(props) {
super(props);
let expiration = this.props.item.expiration ? this.pr... |
app/components/layout/newProject/talentsBar.js | communicode-source/communicode | import React from 'react';
import PropTypes from 'prop-types';
import styles from './../../../assets/css/pages/createProject.scss';
import classNames from 'classnames';
class talentsBar extends React.Component {
constructor(props) {
super(props);
this.props = props;
}
handleSkillRemove(ite... |
sundin/source/containers/calcMain/calcMain.js | tkfeng/mppCalc | /**
* This is the main calculator page.
* Created by tkfeng on 4/13/17.
*/
import React from 'react';
import { Dimensions } from 'react-native'
import {
View,
Text,
Subtitle,
Divider,
Icon,
Button,
Screen,
Row,
Heading,
} from '@shoutem/ui';
import NavigationBar from '../../components/navigationBar... |
src/App.js | samghelms/fast-math | import React, { Component } from 'react';
import './App.css';
import Line from './components/Line'
import {
editLine
} from './actions'
import AppLayout from './components/App'
const App = () => (
<AppLayout/>
)
export default App
|
jsx/my_test_redux/src/components/App.js | NickTaporuk/webpack_starterkit_project | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input;
return (
<div>
<form onSubmit={e => {
e.preventDefault()
if (!input.value.trim()) {
return
... |
src/GroupView.js | radding/trough-app | import React, { Component } from 'react';
import { Outing, User} from './Models';
import moment from 'moment';
import {
AppRegistry,
ListView,
StyleSheet,
Text,
View,
TextInput,
Button,
Alert,
FlatList,
TouchableOpacity
} from 'react-native';
import { SwipeListView } from 'react-native-swipe-list-v... |
packages/cf-component-callout/src/Callout.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const styles = ({ theme, type = 'default' }) => {
return {
margin: theme.margin,
padding: theme.padding,
border: theme.border,
borderRadius: theme.borderRadius,
color: theme.color,... |
app/javascript/mastodon/features/bookmarked_statuses/index.js | im-in-space/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks';
import Column from '../ui/components/column';
import ColumnHeader... |
docs/app/Examples/views/Statistic/Types/StatisticExampleGroupColored.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Statistic } from 'semantic-ui-react'
const items = [
{ label: 'Faves', value: '22' },
{ label: 'Views', value: '31,200' },
{ label: 'Members', value: '22' },
]
const StatisticExampleGroupColored = () => (
<Statistic.Group items={items} color='blue' />
)
export default Stati... |
src/components/dashboard/Playlist.js | RanjithNair/RJTube | import React from 'react'
import { Creatable } from 'react-select'
class Playlist extends React.Component {
constructor (props) {
super(props)
this.state = {
playlistName: ''
}
this.onHandleChange = this.onHandleChange.bind(this)
}
onHandleChange (value) {
this.setState({
playlist... |
node_modules/react-bootstrap/es/Well.js | ivanhristov92/bookingCalendar | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/components/Feedback/Feedback.js | ihnat/work-hard | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
src/routes/register/Register.js | ben-miller/adddr.io | /**
* adddr (https://www.adddr.io/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-types';
import withStyl... |
src/svg-icons/places/airport-shuttle.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAirportShuttle = (props) => (
<SvgIcon {...props}>
<path d="M17 5H3c-1.1 0-2 .89-2 2v9h2c0 1.65 1.34 3 3 3s3-1.35 3-3h5.5c0 1.65 1.34 3 3 3s3-1.35 3-3H23v-5l-6-6zM3 11V7h4v4H3zm3 6.5c-.83 0-1.5-.67-1.5-1.... |
app/views/TeamListItem/TeamListItem.js | lishengzxc/random | import React from 'react';
import styles from './TeamListItem.scss';
import cx from 'classnames';
import chooseTeamActionCreators from '../../actions/chooseTeam-action-creators';
import closesb from '../../actions/closesb-action-creators.js';
var TeamListItem = React.createClass({
chooseChoice: function () {
cho... |
src/MicroGarden.Settings.UI/app/main.js | chaliy/microgarden-settings | import React from 'react';
import { render } from 'react-dom';
import { hashHistory, Router, Route } from 'react-router';
import App from './components/App';
import SettingsRoutes from './settings/routes';
import SchemasRoutes from './schemas/routes';
render((
<Router history={hashHistory}>
<Route path="/" comp... |
src/views/components/TimeField.js | physiii/home-gateway | import React from 'react';
import PropTypes from 'prop-types';
import SelectField from './SelectField.js';
import moment from 'moment';
import './TimeField.css';
const DEFAULT_TIME = '0001-01-01T12:00:00.000Z',
HOURS = 12,
MINUTES = 60,
MINUTE_WIDTH = 2;
export class TimeField extends React.Component {
constructo... |
src/jsx-render-engine/strategy/react-router/Provider.js | yeojz/metalsmith-react-templates | import React from 'react';
import PropTypes from 'prop-types';
class Provider extends React.Component {
getChildContext = () => ({
defaultProps: this.props.defaultProps || {}
})
render() {
return React.Children.only(this.props.children);
}
}
Provider.propTypes = {
defaultProps: PropTypes.object,
... |
classic/src/scenes/mailboxes/src/Scenes/SettingsScene/Accounts/Sections/ServiceSettingsSection/Slack/SlackServiceSettings.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import ServiceAppearanceSection from '../Common/ServiceAppearanceSection'
import ServiceBadgeSection from '../Common/ServiceBadgeSection'
import ServiceBehaviourSection from '../Common/ServiceBehaviour... |
Libraries/Components/TextInput/InputAccessoryView.js | exponentjs/react-native | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const Platform = require('../../Utilities/Platform');
const React = require('react');
const ... |
src/routes/Home/components/HomeView.js | johnthedesigner/review-ui | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className='duck'
src={DuckImage} />
</div>
)
export default HomeView
|
src/MapBox.js | varya/react-mapbox | import React from 'react';
import ReactDOM from 'react-dom';
export default class MapBox extends React.Component {
componentWillMount () {
L.mapbox.accessToken = this.props.token;
}
componentDidMount (argument) {
var props = this.props;
var mapId = props.mapId || props.src || "mapbox.streets";
... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | ketoo/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const ContactsSectionItem = React.createClass({
propTypes: {
contact: React.PropTypes.object
},
mixins: [... |
src/modules/game/components/Game.js | vescogma/web-duel | import React, { Component } from 'react';
import * as gameActions from 'modules/game/actions';
import * as gameConstants from 'modules/game/constants';
import PIXI from 'pixi.js';
import {
getShotsToRemove,
getShotsToAdd,
} from 'modules/game/utils';
class Game extends Component {
constructor(props) {
super... |
src/app/app.js | PinkFLoyd92/softwareII | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import AppRoutes from './AppRoutes';
import { muiTheme } from '../TabubaTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
injectTapEventPlugin();
const App = () => (
<Mui... |
src/svg-icons/av/featured-play-list.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFeaturedPlayList = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/>
</SvgIcon>
);
AvFeaturedPlayList = pu... |
frontend/component/Notification.js | auronzhong/pratice-node-project | /**
* Created by zhongwei on 16/8/5.
*/
import React from 'react';
import {Link} from 'react-router';
import jQuery from 'jquery';
import {notificationList, notificationSetRead} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class Notification extends React.Component {
constructo... |
js/components/Login.js | msldiarra/signals-ui | import React from 'react';
import Auth from './AuthService';
class Login extends React.Component {
constructor() {
super()
this.state = {
user: '',
password: '',
authenticationError: false
};
}
login(e) {
e.preventDefault();
Au... |
packages/metadata-react/src/App/Dialog.js | oknosoft/metadata.js | import React from 'react';
import PropTypes from 'prop-types';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core/DialogTitle';
//import withMobileDialog from ... |
src/index.js | dietervanhoof/transcoder-frontend | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
index.native.js | jitsi/jitsi-meet-react | import React, { Component } from 'react';
import { AppRegistry, Linking } from 'react-native';
import { createStore } from 'redux';
import Thunk from 'redux-thunk';
import config from './config';
import { App } from './features/app';
import {
MiddlewareRegistry,
ReducerRegistry
} from './features/base/redux';
... |
app/src/components/GalleryItem.js | quiaro/chunches | import React, { Component } from 'react';
import { gql, graphql } from 'react-apollo';
import classNames from 'classnames';
import styled from 'styled-components';
import GalleryItemMain from './styled/GalleryItemMain';
import GalleryItemCTA from './styled/GalleryItemCTA';
import ErrorHandler from '../common/ErrorHandl... |
apps/test-suite/components/SuiteResult.js | exponentjs/exponent | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import SpecResult from './SpecResult';
export default function SuiteResult({ r, depth }) {
const renderSpecResult = React.useMemo(
() => (r) => {
const status = r.get('status');
const key = r.get('id');
const des... |
react-flux-mui/js/material-ui/src/svg-icons/content/backspace.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentBackspace = (props) => (
<SvgIcon {...props}>
<path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12... |
reactjs/parcel/src/index.js | tangsj/cc-learning | import React from 'react';
import ReactDom from 'react-dom';
import { HashRouter, Router, Route, Link } from 'react-router-dom';
import './index.css';
const TestContext = React.createContext({
data: '',
});
class Child extends React.Component {
constructor(props) {
super(props);
this.spanRef = React.crea... |
src/components/common/svg-icons/maps/store-mall-directory.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsStoreMallDirectory = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/>
</SvgIcon>
);
MapsStoreMallDirectory = pure(MapsStoreMallDirec... |
pkg/frontend/src/index.js | Zenika/MARCEL | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
import './css/index.css'
import * as serviceWorker from './serviceWorker'
import './queryParams.js'
import 'react-toastify/dist/ReactToastify.css'
ReactDOM.render(<App />, document.getElementById('root'))
// If you want your... |
assets/javascripts/kitten/components/navigation/link-list/index.js | KissKissBankBank/kitten | import React from 'react'
import styled from 'styled-components'
import classNames from 'classnames'
import { pxToRem, stepToRem } from '../../../helpers/utils/typography'
import { ScreenConfig } from '../../../constants/screen-config'
import PropTypes from 'prop-types'
import TYPOGRAPHY from '../../../constants/typogr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.