path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
index.js | jkomyno/React-Native-FAB | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
Text,
Animated,
Easing,
} from 'react-native';
import { Touchable } from './src';
import { noop } from './src/utils';
const sharpEasingValues = {
entry: Easing.bezier(0.0, 0.0, 0.2, 1),
exit: Easing.bezier(0.... |
frontend/src/containers/online/online-container.js | desihub/qlf | import React, { Component } from 'react';
import Monitor from '../../screens/monitor/monitor';
import Websocket from './connection/websocket';
import QA from '../../screens/qa/qa';
import { Route } from 'react-router';
import Metrics from '../../screens/metrics/metrics';
import PropTypes from 'prop-types';
import { con... |
fields/types/color/ColorField.js | vokal/keystone | import { SketchPicker } from 'react-color';
import { css } from 'glamor';
import Field from '../Field';
import React from 'react';
import {
Button,
FormInput,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
import transparentSwatch from './transparent-swatch';
impo... |
app/components/forms/settings/base/component.js | DenQ/electron-react-lex | import React from 'react';
import { RaisedButton } from 'material-ui';
import { TextField } from 'redux-form-material-ui';
import { Field, reduxForm } from 'redux-form';
import { I18n } from 'react-redux-i18n';
import { connect } from 'react-redux';
import BaseComponent from 'lex/libs/base/component';
import BaseContai... |
app/addons/config/components/ConfigTabs.js | apache/couchdb-fauxton | // 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
// distribu... |
packages/material/src/components/Chip.js | wq/wq.app | import React from 'react';
import MuiChip from '@material-ui/core/Chip';
import { useIcon } from '@wq/react';
import PropTypes from 'prop-types';
export default function Chip({ icon, ...rest }) {
const Icon = useIcon(icon);
return <MuiChip icon={Icon ? <Icon /> : null} {...rest} />;
}
Chip.propTypes = {
i... |
lib/client/app/components/grid.js | andrei-cacio/perl-prerender | /* jshint esnext: true */
import React from 'react';
import ReactDOM from 'react-dom';
import Griddle from 'griddle-react';
import {fakeData} from '../fixtures/grid';
/* jshint ignore:start */
export const GriddleDefault = React.createClass({
render() {
return (
<div id="table-area">
... |
src/components/Typing/Typing.js | nolawi/champs-dialog-sg | /**
* Copyright 2017 dialog LLC <info@dlg.im>
* @flow
*/
import type { Typing as TypingType } from '@dlghq/dialog-types';
import React, { Component } from 'react';
import Spinner from '../Spinner/Spinner';
import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';
import classNames from 'classnames... |
docs/app/Examples/views/Comment/Types/CommentExampleComment.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button, Comment, Form, Header } from 'semantic-ui-react'
const CommentExampleComment = () => (
<Comment.Group>
<Header as='h3' dividing>Comments</Header>
<Comment>
<Comment.Avatar src='/assets/images/avatar/small/matt.jpg' />
<Comment.Content>
<Comment.... |
src/js/components/icons/base/Achievement.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/components/views/login/PasswordLogin.js | aperezdc/matrix-react-sdk | /*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
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 applica... |
app/javascript/mastodon/features/compose/components/search_results.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import AccountContainer from '../../../containers/account_container';
import StatusContainer from '../../../containers/sta... |
src/components/shared/HomeExt/HomeExt.native.js | mutualmobile/Brazos | import React, { Component } from 'react';
import { StyleSheet, Image, View, Text } from 'react-native';
import ActiveLink from '../../theme/ActiveLink';
import Heading1 from '../../theme/Heading1';
export default platform = {
render: function({navigation}) {
return (
<View>
<Heading1>Native Home View</Headi... |
src/api/root.js | FOUfashion/frontend | import React from 'react';
import Router from 'react-router';
import KoaRouter from 'koa-router';
import FluxibleComponent from 'fluxible-addons-react/FluxibleComponent';
import DocumentTitle from 'react-document-title';
import * as AppActions from '../actions/AppActions';
import routes from '../routes';
import Locat... |
src/svg-icons/image/looks-one.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksOne = (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-2zm-5 14h-2V9h-2V7h4v10z"/>
</SvgIcon>
);
ImageLooksOne = pure(ImageLooksOn... |
src/index.js | divyanshu013/impulse-tabs | import React from 'react';
import ReactDOM from 'react-dom';
// for onTouchTap
import injectTapEventPlugin from 'react-tap-event-plugin';
import App from './App';
injectTapEventPlugin(); // adds onTouchTap to the context
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/status/index.js | corzntin/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '../../components/missing_indicator';
import DetailedStatus from './compone... |
src/app/utils/wdyr.js | mingchia-andy-liu/chrome-extension-nba | import React from 'react'
if (process.env.NODE_ENV === 'development') {
const whyDidYouRender = require('@welldone-software/why-did-you-render')
whyDidYouRender(React, {
trackAllPureComponents: true,
})
}
|
app/containers/RepoListItem/index.js | bsherrill480/website-asd-init | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { FormattedNumber } from 'react-intl';
import { makeSelectCurrentUser } from 'containers/App/selectors';
import... |
src/common/components/Routes.js | danielmana/tribal-rewards-store | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './App';
import LoginPage from '../../pages/login/page';
import HomePage from '../../pages/home/page';
import FeaturedPage from '../../pages/featured/page';
import CategoriesPage from '../../pages/categories/page';
import Grou... |
react-flux-mui/js/material-ui/src/svg-icons/action/hourglass-empty.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassEmpty = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/>
... |
src/components/Nav/NavLogo.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { reaction } from 'mobx';
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react';
import { Dropdown, DropdownTrigger, DropdownMenu, DropdownContent, DropdownItem, Button } from 'bloomer';
im... |
app/components/Sample/index.js | sairamchappidi/project-x | /**
*
* Sample
*
*/
import React from 'react';
// import styled from 'styled-components';
class Sample extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div>
</div>
);
}
}
Sample.propTypes = {
};
export default Sample;
|
app/containers/Main.js | ikhsanalatsary/react-mini-shop | import React from 'react';
import ProgressBar from 'react-progress-bar-plus';
import Menu from '../components/Menu.js';
import 'react-progress-bar-plus/lib/progress-bar.css';
import '../assets/styles/main.css';
class Main extends React.Component {
handleSearch(e) {
e.preventDefault;
if (e.charCode == 13 && ... |
src/components/common/indicators/Spinner.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
/**
* Component
*/
class Spinner extends React.Component {
//*** Component Lifecycle ***//
componentDidMount() {
// Component styles
require('./Spinner.scss');
}
//*** Template ***//
render() {
let spinner = () =>... |
src/App.js | drainpip/shaneis.me | import React, { Component } from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import ContentContainer from './patterns/containers/Content';
import './App.css';
class App extends Component {
render() {
return (
<Router>
<div className="App">
<header classNam... |
src/components/SimpleButton/SimpleButton.js | oliverox/lodestone | /** SimpleButton Element
* Renders a simple button.
* 'type' : '' | <primary> | <fullWidth>
*/
import React from 'react';
export const SimpleButton = (prop) => {
const propTypeArr = (prop.type) ? prop.type.split(' ') : [];
const propMap = {
'primary': 'button-primary',
'fullWidth': 'u-full-width'
... |
src/components/WeatherIcons/SunSmall.js | Cirych/WeatherApp | import React from 'react';
export const SunSmall = ({ color = 'yellow' }) =>
<g id="sunSmall">
<circle
id="coreSmall"
fill={color}
stroke="none"
strokeWidth="5000"
cx="441914"
cy="194262"
r="104331"
/>
<g
id="raysSmall"
stroke={color}
strokeWidth="50000"
strokeLinecap="round"
... |
app/jsx/course_link_validator/LinkValidator.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/Card.js | bpa/cyborg-rally | import { ws, GameContext } from './Util';
import React, { Component } from 'react';
import Modal from './Modal';
export default class Card extends Component {
constructor(props) {
super(props);
this.show = this.show.bind(this);
this.hide = this.hide.bind(this);
}
show() {
t... |
lib/.test-setup.js | dmolin/two-factor-auth | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
assets/jqwidgets/demos/react/app/tagcloud/customtags/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTagCloud from '../../../jqwidgets-react/react_jqxtagcloud.js';
class App extends React.Component {
render () {
let data = [
{ countryName: 'Australia', technologyRating: 35, url: 'test' },
{ countryNam... |
src/svg-icons/alert/error.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertError = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
</SvgIcon>
);
AlertError = pure(AlertError);
AlertEr... |
app/components/Items.js | mmolta/Grace-Shopper |
import React from 'react'
import { connect } from 'react-redux'
import { component } from 'react'
import { Link } from "react-router"
import { GridList, GridTile } from 'material-ui/GridList'
import IconButton from 'material-ui/IconButton'
import Subheader from 'material-ui/Subheader'
import Divider from 'material-ui/... |
src/routes/Home.js | cowlik/cowlik | import React, { Component } from 'react';
import './Home.scss';
import Head from '../components/Head';
import Features from '../components/Features';
import app from '../data/app.json';
class Home extends Component {
shouldComponentUpdate() {
return false;
};
render() {
return (
... |
app/javascript/mastodon/features/notifications/components/grant_permission_button.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default class GrantPermissionButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn colum... |
src/scenes/home/home.js | alexspence/operationcode_frontend | /* eslint-disable no-console, react/forbid-prop-types */
import React, { Component } from 'react';
import { Route, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Login from 'shared/components/login/login';
import * as CookieHelpers from 'shared/uti... |
react/javascript/file-upload/src/App.js | looker-open-source/extension-examples | /*
MIT License
Copyright (c) 2022 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
src/containers/RadiumContainer.js | kart1234/signin-redux | import React from 'react';
import Radium from 'radium';
const RadiumContainer = ({children}) => children
export default Radium(RadiumContainer)
|
packages/react-dom/src/client/ReactDOMFiberOption.js | krasimir/react | /**
* Copyright (c) 2013-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.
*
* @flow
*/
import React from 'react';
import warning from 'shared/warning';
let didWarnSelectedSetOnOption = false;
function flattenC... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch05/05_02/start/src/index.js | yevheniyc/Autodidact | import React from 'react'
import { render } from 'react-dom'
import './stylesheets/ui.scss'
import { App } from './components/App'
import { Whoops404 } from './components/Whoops404'
import { Router, Route, hashHistory } from 'react-router'
window.React = React
render(
<Router history={hashHistory}>
<Route path="/"... |
src/app.js | mvtnghia/web-boilerplate | import Routers from '@/app/routers';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import './styles/index.scss';
export class app extends Component {
render() {
return (
<div className="App">
<Routers />
</div>
);
}
}
export default connect()(app);
|
src/components/Feedback/Feedback.js | zuban/edhunter | import React from 'react';
import {Container, Row, Col, Form, FormGroup, Label, Input} from 'reactstrap';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Feedback.css';
class Feedback extends React.Component {
render() {
return <Container className={s.root} fluid>
<div cla... |
addons/info/src/components/PropTable.js | nfl/react-storybook | /* eslint-disable no-underscore-dangle */
import PropTypes from 'prop-types';
import React from 'react';
import PropVal from './PropVal';
const PropTypesMap = new Map();
for (const typeName in PropTypes) { // eslint-disable-line
if (!PropTypes.hasOwnProperty(typeName)) { // eslint-disable-line
continue; // esli... |
src/containers/NewThread.js | jvallexm/message-board | import React from 'react';
export default class NewThread extends React.Component{
constructor(props)
{
super(props)
this.state = {
thread: {
_id: undefined,
name: "",
text: "",
delete_password: "",
replies: [],
bumped_on: 10,
posted_on: "1",
... |
client/modules/App/components/DevTools.js | sharvit/my-blog-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-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
src/context.js | gndplayground/react-hoc-form-validatable | import React from 'react';
const FormContext = React.createContext();
export default FormContext;
|
src/components/BreadcrumbHome/BreadcrumbHome.js | wfp/ui | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import { iconHome } from '@wfp/icons';
import Icon from '../Icon';
import settings from '../../globals/js/settings';
const { prefix } = settings;
const BreadcrumbHome = ({ className, hometext, ...other }) => {
const ... |
src/svg-icons/image/texture.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTexture = (props) => (
<SvgIcon {...props}>
<path d="M19.51 3.08L3.08 19.51c.09.34.27.65.51.9.25.24.56.42.9.51L20.93 4.49c-.19-.69-.73-1.23-1.42-1.41zM11.88 3L3 11.88v2.83L14.71 3h-2.83zM5 3c-1.1 0-2 .9-2 ... |
src/app/icons/partly-cloudy-day.js | Eric-Vandenberg/react-redux-weatherapp.io | import React from 'react';
const partlyCloudyDay = (props) => (
<svg id="partly-cloudy-day" viewBox="0 0 72 72" strokeWidth="0.5" {...props}>
<g>
<path d="M22,8v6c0,1.1,0.9,2,2,2s2-0.9,2-2V8c0-1.1-0.9-2-2-2S22,6.9,22,8z"/>
<path d="M2,32h6c1.1,0,2-0.9,2-2s-0.9-2-2-2H2c-1.1,0-2,0.9-2,2S0.9,32,... |
src/mixins/controllable.js | vanHeemstraSystems/components | import React from 'react';
export default {
propTypes: {
onChange: React.PropTypes.func,
value: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.array,
]),
valueLink: React.PropTypes.shape({
value: React.PropTypes.string.isRequired,
requestChange: React.Pro... |
src/components/theme-legacy/copy-paste.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { withShareMessage } from '../../containers/hoc-share-message'
const CopyPaste = ({ onClick, copyPasteMessage, setEmailRef }) => (
<textarea
ref={setEmailRef}
className='hidden-phone'
id='email-textarea'
onClick={e => {
e.targ... |
components/upper-part/component.js | kalle-manninen/veikkaaja | import React, { Component } from 'react';
import { View, Text } from 'react-native';
import { styles } from './style';
class UpperPart extends Component {
render() {
return (
<View style={styles.title}>
<Text style={styles.titleText}>Veikkaaja</Text>
</View>
);
}
}
UpperPart.propTypes ... |
js/apps/system/_admin/aardvark/APP/react/src/App.js | arangodb/arangodb | import 'jsoneditor-react/es/editor.min.css';
import React, { Component } from 'react';
import 'react-autocomplete-input/dist/bundle.css';
import ReactDOM from 'react-dom';
const jsoneditor = require('jsoneditor');
const d3 = require('d3');
require('nvd3');
// parse prometheus
const parsePrometheusTextFormat = require... |
frontend/src/app.js | juhanas/chatapp | import React, { Component } from 'react';
import logo from './logo.png';
import './styles/index.css';
import './styles/App.scss';
import Chat from './components/chat';
class App extends Component {
render() {
return (
<div className="App container-fluid">
<div className="App-header row">
... |
packages/material-ui-icons/src/Train.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Train = props =>
<SvgIcon {...props}>
<path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5-... |
test/integration/production/pages/dynamic/bundle.js | nelak/next.js | import React from 'react'
import dynamic from 'next/dynamic'
import Router from 'next/router'
import PropTypes from 'prop-types'
const HelloBundle = dynamic({
modules: (props) => {
const components = {
HelloContext: import('../../components/hello-context'),
Hello1: import('../../components/hello1')
... |
src/client/components/Sidebar/InterestingPeople.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import User from './User';
import './InterestingPeople.less';
import './SidebarContentBlock.less';
const InterestingPeople = ({ users, onRefresh }) => (
<div classNam... |
webpack/src/components/about.js | scruffian/javascripture.mobi |
import React from 'react';
export default function About() {
return (
<div>About this</div>
);
}
|
client/src/components/LoginForm.js | wilimitis/DoctorIQ | import React from 'react';
import { Field, reduxForm } from 'redux-form';
import RaisedButton from 'material-ui/RaisedButton';
import { renderTextField } from '../utils/forms';
const LoginForm = props => {
const {
handleSubmit,
pristine,
reset,
submitting
} = props;
return (
<div className="... |
frontend/component/Login.js | a2393439531/nodepractice | import React from 'react';
import jQuery from 'jquery';
import {Link} from 'react-router';
import {login} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class Login extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
handleChange(name, e) {
... |
spec/sections/NavBarSection.js | react-fabric/react-fabric | import React from 'react'
import NavBar from '../../src/NavBar'
const IndexLink = ({ to, children, ...props }) => (
<a {...props} href={to}>{children}</a>
)
IndexLink.propTypes = {
children: React.PropTypes.node,
to: React.PropTypes.string
}
const NavBarSection = () => (
<NavBar>
<div>Foo</div>
<div>... |
client/src/scenes/application/scenes/Project/routes.js | YeFFreY/bernard | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import ProjectsList from 'scenes/application/scenes/Project/scenes/ProjectsList';
import ProjectDetails from 'scenes/application/scenes/Project/scenes/ProjectDetails';
import ProjectTemplateSelection from 'scenes/application/scenes/Project/sce... |
examples/counter/src/containers/Root.prod.js | YoruNoHikage/redux-devtools-dispatch | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
export default class Root extends Component {
render() {
const { store } = this.props;
return (
<Provider store={store}>
<CounterApp />
</Provider>
);
}
}
|
Libraries/Text/Text.js | gre/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/components/CustomLangSwitcher/CustomLangSwitcher.js | malinowsky/dataroot_03 | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Link from '../Link';
import s from './CustomLangSwitcher.scss';
const CustomLangSwitcher = () =>
<div className={s.langSwitcher}>
<span className={s.langItem}>
<span>Укр</span>
</span>
<span class... |
app/components/campaign/email.js | ritishgumber/dashboard-ui | /**
* Created by Darkstar on 11/29/2016.
*/
import React from 'react';
import {connect} from 'react-redux';
import Toolbar from '../toolbar/toolbar.js';
import Footer from '../footer/footer.jsx';
import {sendEmailCampaign, showAlert} from '../../actions';
import RaisedButton from 'material-ui/RaisedButton';
import Em... |
app/containers/ToolDrawer/index.js | jilla720/messidge | import React from 'react';
export default class ToolDrawer extends React.Component { //eslint-disable-line
render() {
return (
<div
style={{
width: 300,
height: 500,
backgroundColor: 'magenta',
position: 'absolute',
top: 0,
right: 0,
... |
src/pages/cashier.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Cashier' />
)
|
examples/admin/src/components/Gallery/index.js | aranja/tux | import React from 'react'
import { EditModal } from 'tux-addon-admin'
import './styles.css'
const Gallery = ({ galleryItems }) => (
<div className="Gallery">
{galleryItems &&
galleryItems.map(item => (
<div key={item.fields.title} className="Gallery-item">
<EditModal model={item}>
... |
src/js/components/icons/base/SocialLinkedin.js | odedre/grommet-final | /**
* @description SocialLinkedin SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.... |
src/svg-icons/maps/local-offer.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalOffer = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86... |
src/components/Settings/Index.js | hao123-fe/weeport | import React from 'react'
import {connect} from 'react-redux'
import {load, save} from '@/lib/storage.js'
import {changeConfig} from '@/store/actions.js'
import SettingTextBox from './SettingTextBox.js'
import PropTypes from 'prop-types'
import {Button, Toast} from 'react-uwp'
class Settings extends React.Component {
... |
packages/xo-web/src/xo-app/backup/file-restore/restore-file-modal.js | vatesfr/xo-web | import _ from 'intl'
import ActionButton from 'action-button'
import ButtonGroup from 'button-group'
import Component from 'base-component'
import defined from '@xen-orchestra/defined'
import Icon from 'icon'
import React from 'react'
import Select from 'form/select'
import Tooltip from 'tooltip'
import { dirname } fro... |
docs/src/app/components/pages/components/Stepper/VerticalLinearStepper.js | igorbt/material-ui | import React from 'react';
import {
Step,
Stepper,
StepLabel,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* Vertical steppers are designed for narrow screen sizes. They are ideal for mobile.
*
* To use t... |
imports/components/TabSongs.js | tampham47/nau-jukebox | /* © 2017
* @author Tu Nguyen
*/
import React, { Component } from 'react';
import PropTypes from 'proptypes';
import { Container } from 'flux/utils';
import { withTracker } from 'meteor/react-meteor-data';
import { Songs } from '../collections';
import AppStore from '../events/AppStore';
import SongList from './Song... |
app/components/progress.component.js | jmsstudio/sc-player | /**
* Created by jefferson on 10/05/16.
*/
import React from 'react';
const Progress = ({elapsed, position, total}) => {
return (
<div className='progress'>
<span className='player__time-elapsed'>{elapsed}</span>
<progress
value={position}
max='1'>
... |
node_modules/react-icons/fa/whatsapp.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaWhatsapp = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25 21.7q0.3 0 2.2 1t2 1.2q0 0.1 0 0.3 0 0.8-0.4 1.7-0.3 0.9-1.6 1.5t-2.2 0.6q-1.3 0-4.3-1.4-2.2-1-3.8-2.6t-3.3-4.2q-1.6-2.3-1.6-4.3v-0.2q0.1-2 1.7-3.5 0.5-0.5 1.2-0... |
MARVELous/client/src/js/app.js | nicksenger/StackAttack2017 | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxThunk from 'redux-thunk';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import reducers from './reducers';
import { loadState, ... |
frontend/src/components/common/map/MapBounder.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
const MapBounder = (props) => {
const { map, bounds, rebound, clearBounds } = props;
if (bounds && map && rebound) {
map.fitBounds(bounds);
setTimeout(() => {
clearBounds();
});
}
return null;
};
MapBounder.propTypes = {
map: ... |
gatsby-strapi-tutorial/cms/admin/admin/src/containers/PluginPage/index.js | strapi/strapi-examples | /*
*
* PluginPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { createSelector } from 'reselect';
import BlockerComponent from 'components/BlockerComponent';
import ErrorBoundary from 'components/ErrorBoundary... |
src/components/pages/reading/bannerDetail.js | guangqiang-liu/OneM | /**
* Created by guangqiang on 2017/9/18.
*/
import React from 'react'
import {View, StyleSheet, Text, ListView, Image, TouchableOpacity} from '../../common'
import {BaseComponent} from '../../base/baseComponent'
import {Actions} from 'react-native-router-flux'
import {commonStyle, deviceInfo} from '../../../utils'
e... |
src/routes/index.js | SawyerHood/pomodoro-redux | import React from 'react'
import { Route, IndexRoute } from 'react-router'
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardless... |
packages/icons/src/md/maps/LocalOffer.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdLocalOffer(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42.82 23.16c.73.73 1.18 1.73 1.18 2.84 0 1.1-.45 2.1-1.17 2.83l-14 14C28.11 43.55 27.1 44 26 44s-2.1-.45-2.82-1.17l-18-18A3.957 3.957 0 0 1 4 22V... |
docs/app/Examples/elements/Input/Variations/InputExampleActions.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button, Select, Input } from 'semantic-ui-react'
const options = [
{ key: 'all', text: 'All', value: 'all' },
{ key: 'articles', text: 'Articles', value: 'articles' },
{ key: 'products', text: 'Products', value: 'products' },
]
const InputExampleActions = () => (
<Input type... |
src/Button.js | reactstrap/reactstrap | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
active: PropTypes.bool,
'aria-label': PropTypes.string,
block: PropTypes.bool,
color: PropTypes.string,
disabled: PropTypes.bool,
o... |
packages/core/content-type-builder/admin/src/components/AttributeOptions/AttributeOption/index.js | wistityhq/strapi | /**
*
* AttributeOption
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
import { Typography } from '@strapi/design-system/Typography';
import useFormModalNav... |
example/src/components/crazyLine.js | jerairrest/react-chartjs-2 | import React from 'react';
import {Bar} from 'react-chartjs-2';
import color from 'rcolor';
const initialState = {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [
{
label: 'My First dataset',
backgroundColor: 'rgba(255,99,132,0.2)',
borderColor: 'rgba(255,99,132,1)',... |
packages/netlify-cms-widget-code/src/SettingsPane.js | netlify/netlify-cms | import React from 'react';
import styled from '@emotion/styled';
import Select from 'react-select';
import isHotkey from 'is-hotkey';
import { text, shadows, zIndex } from 'netlify-cms-ui-default';
import SettingsButton from './SettingsButton';
import languageSelectStyles from './languageSelectStyles';
const Settings... |
src/Svg/QuestionMarkLogo.js | numieco/patriot-trading | import React from 'react'
const QuestionMarkLogo = () => {
return (
<div>
<svg width="60px" height="60px" viewBox="0 0 60 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
<title>question-mark copy</title>
<desc>Created with Sketch.</desc>
... |
app/stories/index.stories.js | atralice/reactDockerizeBoilerplate | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
// Add globals imports here
|
packages/react/src/components/Breadcrumb/BreadcrumbItem.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 PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import { settings } from 'carbon-components';
imp... |
src/routes/checkIn/index.js | transitlinks/web-app | import { getLog } from '../../core/log';
const log = getLog('routes/checkIn');
import React from 'react';
import CheckIn from './CheckIn';
import ErrorPage from '../../components/common/ErrorPage';
import {
createQuery,
getActiveTripQuery,
getFeedItemQuery
} from '../../data/queries/queries';
export default {
... |
examples/BackgroundImage/examples/BasicImage.js | thekevinscott/Hero-test | import React, { Component } from 'react';
import {
AppRegistry,
Image,
} from 'react-native';
const remote = 'https://s15.postimg.org/tw2qkvmcb/400px.png';
export default class BackgroundImage extends Component {
render() {
const resizeMode = 'center';
return (
<Image
style={{
f... |
src/scripts/modules/user/list/UserListComponent.js | arikanmstf/userauth | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import PaginationComponent from '../../common/pagination/PaginationComponent';
class UserListComponent extends Component {
constructor (props) {
super(props);
this.state = {
... |
react-native/firstnative/index.ios.js | tung1404/react-courses | /**
* 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 firstnative extends Component {
render() {
return (
<View style={styles.contain... |
src/components/antd/upload/Upload.js | hyd378008136/olymComponents | import React from 'react';
import RcUpload from 'rc-upload';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import UploadList from './UploadList';
import { T, fileToObject, genPercentAdd, getFileItem, removeFileItem } from './utils';
const defaultLocale = {
uploading: '文件上传中',
removeFi... |
components/Unauthenticated.js | TopOfTheFlops/client-side | import React from 'react'
import Header from './Header'
function Unauthenticated ({state, dispatch}) {
return (
<div>
<Header />
<p>Error: 401, You are not authorised to see this page</p>
<input className='loginButton' type='submit' value='Login!' onClick={() => dispatch({type: 'CHANGE_PAGE', p... |
js/react-kit/src/routes/Home/components/HomeView.js | xiecg/record | import React, { Component } from 'react';
import './HomeView.scss';
import Nav from './Nav.js';
import Content from './Content.js';
import Side from './Side.js';
class HomeView extends Component {
constructor (props) {
super(props);
this.state = {}
}
setSideStyle (item) {
let { side } = this.refs;
... |
react-redux/ResponsiveMixin.js | Landerson352/snippets | import React, { Component } from 'react';
import { throttle } from 'lodash';
// This component depends on "marker" elements whose visibility is
// controlled through CSS media queries. Add these three marker elements
// to the DOM and toggle each between "display: none" and "display: block"
// at the relevant breakpo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.