path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/Navbar/Navbar.js | mamal72/dgkala-web | import React from 'react';
import {
Nav,
NavItem,
Navbar,
Image,
FormGroup,
FormControl,
Button
} from 'react-bootstrap';
import { LinkContainer } from 'react-router-bootstrap';
import { IndexLink } from 'react-router';
export default ({header, items}) => (
<Navbar inverse collapseOnSelect>
<Navbar... |
loc_frontend/node_modules/react-router/es6/Link.js | marka2g/loc | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
react-flux-mui/js/material-ui/src/svg-icons/action/translate.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTranslate = (props) => (
<SvgIcon {...props}>
<path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.7... |
others/ant/antd/index2.js | fengnovo/diary | import React from 'react';
import ReactDOM from 'react-dom';
import { Form, Input, Tooltip, Icon, Cascader, Select, Row, Col, Checkbox, Button, AutoComplete } from 'antd';
const FormItem = Form.Item;
class RegistrationForm extends React.Component {
state = {
confirmDirty: false,
autoCompleteResult: [],
};
... |
src/components/common/svg-icons/communication/live-help.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLiveHelp = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13... |
docs/app/Examples/views/Item/Variations/ItemExampleUnstackable.js | shengnian/shengnian-ui-react | import React from 'react'
import { Item } from 'shengnian-ui-react'
const ItemExampleImages = () => (
<Item.Group divided unstackable>
<Item>
<Item.Image src='/assets/images/wireframe/image.png' />
</Item>
<Item>
<Item.Image src='/assets/images/wireframe/image.png' />
</Item>
<Item ... |
blueocean-material-icons/src/js/components/svg-icons/image/gradient.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageGradient = (props) => (
<SvgIcon {...props}>
<path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm2-... |
examples/todomvc/containers/Root.js | zires/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return (
<Provider... |
lib-es/elements/th.js | bokuweb/re-bulma | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React, { Component } from 'react';
import PropTypes fr... |
src/app/components/@FlashMessages/Msg.js | tomatau/breko-hub | import React from 'react'
import PropTypes from 'prop-types'
import { Bem, noop, cleanProps } from 'app/utils'
import { TYPES } from 'app/modules/flash/flash.constants'
import './Msg.scss'
const bem = new Bem('Msg')
export default class Msg extends React.Component {
buttonRef = React.createRef();
static propType... |
dnim-client/src/components/ShortCutButton.js | zhangmingkai4315/DNIS-Project | import React from 'react';
export default class ShortCutButton extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<button className="pure-button"
onClick={this.props.handleClick}
key={this.props.key}
>{this.props.name}</button>
);
}
}... |
src/Modal/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
class Modal extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(event) {
event.stopPropagation(... |
packages/react-cookie-demo/src/components/NameForm.js | reactivestack/cookies | import React from 'react';
import { func, string } from 'prop-types';
export default function NameForm({ name, onChange }) {
return (
<div>
<h1>What's your name?</h1>
<form
onSubmit={e => {
e.preventDefault();
}}
>
<input
type="text"
pl... |
app/javascript/mastodon/features/ui/components/audio_modal.js | masto-donte-com-br/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Audio from 'mastodon/features/audio';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/pictur... |
client.js | slidewiki/slidewiki-platform | /*global document, window */
import React from 'react';
import ReactDOM from 'react-dom';
import debug from 'debug';
import app from './app';
import { IntlProvider } from 'react-intl';
import { loadLocale } from './configs/locales';
import es6Promise from 'es6-promise';
es6Promise.polyfill();
const debugClient = debug... |
app/components/LoopPlayHead.js | experimentalDataAesthetics/play-splom | import React from 'react';
import PropTypes from 'prop-types';
import connect from '../utils/reduxers';
import { getLoop, getLoopBox, getLoopModePayload } from '../selectors';
import { setPointsUnderBrush } from '../actions/interaction';
import styles from './LoopPlayHead.css';
const sustain = 0.1;
function findActi... |
src/Parser/DeathKnight/Blood/Modules/Features/Checklist.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
//import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import CoreChecklist, { Rule, Requirement } from 'Parser/Core/Modules/Features/Checklist';
import { PreparationRule } from 'Parser/Core/Mo... |
node_modules/react-bootstrap/es/SplitToggle.js | yeshdev1/Everydays-project | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import DropdownToggle fr... |
src/containers/Asians/TabControls/BreakRounds/EnterBreakRoundResults/Controls/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Card, {
CardActions,
CardContent
} from 'material-ui/Card'
import InputProgress from './InputProgress'
import LockRound from './LockRound'
import GetShareLink from './GetShareLink'
import HideMatchUps from './HideMatchUps'
export default ({
balProg,
breakRound
}) =>
<Card>
... |
src/components/todo/todoList.js | shawnzhang009/react-starter | import React from 'react'
import RaisedButton from 'material-ui/RaisedButton'
import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'
export default class TodoList extends React.Component {
constructor(props) {
super(props)
this._getTodoList = this._getT... |
src/routes/register/index.js | loganfreeman/react-is-fun | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Register from './Registe... |
src/svg-icons/communication/chat-bubble.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChatBubble = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
CommunicationChatBubble = pure(CommunicationChatBubble)... |
src/js/ClientApp.js | mwtrager/brackets | import React from 'react'
import { render } from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import App from './App'
const renderApp = () => {
render(<BrowserRouter><App /></BrowserRouter>, document.getElementById('app'))
}
renderApp()
|
src/redux/containers/AppContainer.js | ihenvyr/react-app | import React from 'react';
import { Router } from 'react-router';
import routes from '../../routes';
import { browserHistory } from 'react-router';
import { applyMiddleware, compose, createStore, combineReducers } from 'redux';
import ApolloClient from 'apollo-client';
import { ApolloProvider } from 'react-apollo';
imp... |
src/Table.js | Sipree/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
src/components/members.component.js | Antoine38660/git-point | import React from 'react';
import { connect } from 'react-redux';
import {
StyleSheet,
View,
Text,
FlatList,
TouchableHighlight,
Image,
} from 'react-native';
import { List, ListItem } from 'react-native-elements';
import LinearGradient from 'react-native-linear-gradient';
import { colors, fonts } from 'co... |
fields/types/datearray/DateArrayField.js | nickhsine/keystone | import ArrayFieldMixin from '../../mixins/ArrayField';
import DateInput from '../../components/DateInput';
import Field from '../Field';
import React from 'react';
import moment from 'moment';
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD';
const DEFAULT_FORMAT_STRING = 'Do MMM YYYY';
module.exports = Field.create({
dis... |
admin/client/App/screens/List/components/ListControl.js | rafmsou/keystone | import React from 'react';
import classnames from 'classnames';
var ListControl = React.createClass({
propTypes: {
dragSource: React.PropTypes.func,
onClick: React.PropTypes.func,
type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired,
},
renderControl () {
var icon = 'octicon octicon-';
... |
voting-web-views/src/js/Components/RegisterForm/RegisterForm.js | joaolrpaulo/eletronic-voting-system | import React from 'react';
import * as MainPageActions from 'Actions/mainPageActions.js';
import RegisterFormTemplate from './RegisterForm.rt';
export default class RegisterForm extends React.Component {
formSubmit () {
const user = {
voter_id: document.getElementById('voter_id').value,
... |
app/javascript/mastodon/features/ui/components/embed_modal.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
import api from 'mastodon/api';
import IconButton from 'mastodon/components/icon_button';
const messages = defin... |
packages/babel-plugin-transform-react-pure-annotations/test/fixtures/react/lazy/input.js | jridgewell/babel | import React from 'react';
const SomeComponent = React.lazy(() => import('./SomeComponent'));
|
demo/shared/containers/Demo.js | redux-autoform/redux-autoform-material-ui | import React, { Component } from 'react';
import LiveSchemaEditorContainer from './LiveSchemaEditor';
class Demo extends Component {
render() {
let { location } = this.props;
return <LiveSchemaEditorContainer preset={location.query.preset}/>;
}
}
export default Demo;
|
src/svg-icons/notification/enhanced-encryption.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEnhancedEncryption = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM8.9 6c0-1.71 1.39-3.... |
src/images/IconSketch.js | benjaminmodayil/modayilme | import React from 'react';
function Icon({ width = 37, height = 34 }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width={width} height={height}>
<path
fill="#FDB300"
fillRule="evenodd"
d="M8.249 1.12L18.903 0l10.655 1.12 8.249 11.004L18.903 34 0 12.124 8.249 1.119z"
></... |
src/interface/icons/Avoidance.js | fyruna/WoWAnalyzer | import React from 'react';
import Icon from 'common/Icon';
const icon = props => (
<Icon icon="ability_rogue_quickrecovery" {...props} />
);
export default icon;
|
fields/components/DateInput__OLD.js | stosorio/keystone | import moment from 'moment';
import Pikaday from 'pikaday';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = React.createClass({
displayName: 'DateInput',
// set default properties
getDefaultProps: function() {
return {
format: 'YYYY-MM-DD'
};
},
getInitialState: fu... |
app/javascript/mastodon/components/column.js | mhffdq/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import detectPassiveEvents from 'detect-passive-events';
import { scrollTop } from '../scroll';
export default class Column extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
};
scrollTop () {
const scrollable = th... |
examples/huge-apps/routes/Course/components/Dashboard.js | keathley/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
src/components/topbar/topbarUser.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Popover from '../uielements/popover';
import userpic from '../../image/user1.png';
import authAction from '../../redux/auth/actions';
const { logout } = authAction;
class TopbarUser extends Component {
constructor(props) {
s... |
pages/changelog.js | tscanlin/tocbot | import React from 'react'
import Template from '../src/components/Template'
// import TryIt from '../src/components/Template/TryIt'
import CONFIG from '../data/config.js'
import PAGE_JSON from '../data/CHANGELOG.json'
const Index = (props) => {
return (
<Template
title={CONFIG.title}
subtitle='Chang... |
client/src/components/UserList.js | medelbou/react-redux-express | import React from 'react';
import User from './User';
export default (props) => {
const {list} = props;
return (
<div>
{list.map((user) => {
return <User key={user.name} {...user}/>
})}
</div>
)
} |
app/containers/FeaturePage/index.js | ScoutingIJsselgroep/Jotihunt | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
src/mixins/style-propable.js | felipethome/material-ui | import React from 'react';
import warning from 'warning';
let hasWarned;
const warn = () => {
warning(hasWarned, 'The \'material-ui/lib/mixins/style-propable.js\' mixin has been deprecated.' +
' Please do not use this mixin as it will be removed in an upcoming release.');
hasWarned = true;
};
export const mer... |
frontend/src/AddMovie/ImportMovie/Import/ImportMovieRowConnector.js | Radarr/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { queueLookupMovie, setImportMovieValue } from 'Store/Actions/importMovieActions';
import createAllMoviesSelector from 'Store/Sel... |
packages/web/src/components/Work/ChapterList.js | dvaJi/ReaderFront | import React from 'react';
import Chapter from './Chapter';
import useIntl from '@hooks/use-intl';
import { ChapterListStyle, Title, List, NoChapters } from './styles';
function padZero(num) {
return String(num).padStart(3, '0');
}
function ChapterList({ work }) {
const { f } = useIntl();
const workIsComplet... |
src/pages/repository_settings_secret/content.js | RexSkz/drone-ui | import { branch } from 'baobab-react/higher-order';
import PageContent from '../../components/layout/content';
import React from 'react';
import { events, GET_REPO_SECRETS, DEL_REPO_SECRET, POST_REPO_SECRET } from '../../actions/events';
import { Textfield, FABButton, Icon, Switch, Grid, Cell, Checkbox } from 'react-md... |
packages/material-ui-icons/src/SignalWifi1BarLockOutlined.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5l3.5-4.36V14.5z" /><path d="M15.5 14.5c0-.23.04-.46.07-.68-... |
geonode/monitoring/frontend/src/components/cels/frequent-layers/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styles from './styles';
import actions from './actions';
const mapStateToProps = (state) => ({
interval: state.interval.interval,
layers: state.frequentLayers.response,
timestamp: state.interval.timestam... |
src/svg-icons/maps/local-hospital.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHospital = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"/>
</SvgIcon>
);
MapsLocal... |
src/icons/EyeClosedIcon.js | resmio/mantecao | import React from 'react'
import Icon from '../Icon'
const EyeClosedIcon = props =>
<Icon {...props}>
<g transform="translate(1 8)">
<path
stroke="currentColor"
strokeWidth="1.3"
d="M14.806 16.59c8.686 0 14.133-6.603 14.133-6.603.37-.403.375-1.06-.014-1.467 0 0-5.434-6.54-14.12-6.54... |
stories/demos/TimezoneSelect.js | jquense/react-big-calendar | import React from 'react'
import PropTypes from 'prop-types'
import Layout from 'react-tackle-box/Layout'
import moment from 'moment'
import 'moment-timezone'
const allZones = moment.tz.names()
allZones.unshift('clear')
export default function TimezoneSelect({
title,
defaultTZ = moment.tz.guess(),
timezone,
s... |
docs/app/Examples/elements/Header/Variations/HeaderExampleBlock.js | clemensw/stardust | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleBlock = () => (
<Header as='h3' block>
Block Header
</Header>
)
export default HeaderExampleBlock
|
app/components/Modal.js | rondobley/meal-planner | import React from 'react';
import AddDish from './AddDish';
import EditDish from './EditDish';
import DeleteDish from './DeleteDish';
import AddTagToDish from './AddTagToDish';
import DeleteTagFromDish from './DeleteTagFromDish';
class Modal extends React.Component {
constructor(props) {
super(props);
... |
example/client.js | DenisIzmaylov/redux-wait | import 'babel-core/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Root from './containers/Root';
import createStore from './store';
const store = createStore(INITIAL_STATE);
React.render(
<Root history={new BrowserHistory()} store={store} />,
document.ge... |
lib/masters_of_venice/src/App.js | sgottreu/game-scoring | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
import AppBar from 'material-ui/AppBar';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import RaisedB... |
src/scenes/home/history/timeline/timeline.js | OperationCode/operationcode_frontend | import React from 'react';
import TimelineEvent from '../timelineEvent/timelineEvent';
import styles from './timeline.css';
const Timeline = () => (
<div className={styles.timeline}>
<div className={styles.segment}>
<div className={styles.date}>
<h3>2012</h3>
</div>
<div className={sty... |
step5-forms/node_modules/react-router/es6/Route.js | jintoppy/react-training | 'use strict';
import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './PropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var func = _React$PropTypes.func;
/**
* A <Route>... |
website/Demos.js | sahat/megaboilerplate | import React from 'react';
class Demos extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="container-fluid">
<h1 className="text-center"><strong>Mega</strong> Boilerplate Demos</h1>
<br/>
<div className="row">
<div cl... |
src/components/GridCol/GridCol.js | HasanSa/hackathon | import React from 'react';
import {Col} from 'react-flexbox-grid';
const GridCol = (props) => {
return (
<Col style={{
paddingLeft: 0,
paddingRight: 0
}} {...props}/>
);
};
GridCol.propTypes = {};
GridCol.defaultProps = {};
export default GridCol;
|
src/components/NotFoundPage.js | guestn/Montagram | 'use strict';
import React from 'react';
import { Link } from 'react-router';
export default class NotFoundPage extends React.Component {
render() {
return (
<div className="not-found">
<h1>404</h1>
<h2>Page not found!</h2>
<p>
<Link to="/">Go back to the main page</Link>... |
cms/react-static/src/containers/About.js | fishjar/gabe-study-notes |
import React from 'react'
//
export default () => (
<div>
<h1>This is what we're all about.</h1>
<p>React, static sites, performance, speed. It's the stuff that makes us tick.</p>
</div>
)
|
src/components/pages/me.js | yiweimatou/yiweimatou-mobile | import React from 'react'
import { Group, List,Badge} from 'amazeui-touch'
import user from '../../stores/user'
class me extends React.Component{
constructor(props){
super(props)
this.state = {
avatar:<img alt='头像'/>,
nickname:'',
userid:0
}
}
com... |
src/mui/list/Actions.js | RestUI/rest-ui | import React from 'react';
import { CardActions } from 'material-ui/Card';
import { CreateButton, RefreshButton } from '../button';
import onlyUpdateForKeys from 'recompose/onlyUpdateForKeys';
const cardActionStyle = {
zIndex: 2,
display: 'inline-block',
float: 'right',
};
const Actions = ({ resource, fil... |
__tests__/components/installmets-test.js | paramadeep/chit | import 'react-native';
import React from 'react';
import {render} from '@testing-library/react-native';
import Installments from '../../src/components/Installments';
test('display installment', () => {
const {getByText} = render(
<Installments installments={[{amount: 100, id: 1}]} />,
);
getByText('100');
})... |
src/cards/cards.js | govau/service-manual | import PropTypes from 'prop-types';
import React from 'react';
// LOCAL
import Card from './card';
/**
* The partial component
*/
const Cards = ( page ) => (
<div className={`au-body au-grid`}>
<div className="container-fluid">
<div className="row">
<div className="col-lg-offset-3 col-md-offset-3 col-md-... |
src/Icon_Flag_RU.js | codefoundries/material-ui-country-flags | 'use strict';
import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
// SVG source:
// https://github.com/lipis/flag-icon-css/tree/master/flags/4x3
export default function( props )
{
return(
<SvgIcon viewBox="0 0 640 480" {...props}>
<g id="flag" fill-rule="evenodd" strokeWidth="1pt" trans... |
src/components/handlers/NotFoundHandler.js | cpsubrian/redis-explorer | import React from 'react'
class NotFoundHandler extends React.Component {
render () {
return (
<div className='not-found'>
<h1>Sorry, Page Not Found</h1>
</div>
)
}
}
export default NotFoundHandler
|
src/components/routes/animal/AnimalContainer.js | fredmarques/petshop | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import AnimalForm from './AnimalForm'
import AnimalList from './AnimalList';
import { deleteAnimal, updateAnimal } from '../../../actions/animals'
class AnimalContainer extends Component {
render... |
src/components/common/button/ButtonGroupImage.js | chejen/GoodJobShare | import React from 'react';
import cn from 'classnames';
import PropTypes from 'prop-types';
import {
makeId,
} from 'utils/stringUtil';
import styles from './ButtonGroupImage.module.css';
class ButtonGroupImageEle extends React.PureComponent {
constructor(props) {
super(props);
this.onChange = this.onCh... |
src/components/Header/index.js | developer239/workbox-webpack-react | import React from 'react'
import { Link } from 'react-router-dom'
const Header = () => (
<header>
<nav>
<ul>
<li><Link to="/">Home</Link></li>
<li><Link to="/counter">Redux Counter</Link></li>
</ul>
</nav>
</header>
)
export default Header
|
app/javascript/mastodon/containers/media_gallery_container.js | honpya/taketodon | import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import MediaGallery from '../components/media_gallery';
import { fromJS } from 'immutable';
const { localeData, messages } = getLocale();
addLocaleData(locale... |
example/ExamplePage.js | Codafication/react-schema-form | /**
* Created by steve on 12/09/15.
*/
'use strict';
import React from 'react';
import { utils } from 'react-schema-form';
import { SchemaForm } from 'react-schema-form';
require('react-select/less/select.less');
import Select from 'react-select';
var $ = require('jquery');
import AceEditor from 'react-ace';
require... |
client/components/main.js | yaatra/PointBreak | import React from 'react'
import PropTypes from 'prop-types'
import {connect} from 'react-redux'
import {withRouter, Link} from 'react-router-dom'
import {logout} from '../store'
import {Navbar, Footer} from './'
/**
* COMPONENT
* The Main component is our 'picture frame' - it displays the navbar and anything
* e... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | fengchenlianlian/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
src/react.js | michael-ni/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
client/components/util/help-popover.js | conveyal/commute | import React from 'react'
import {Button, Popover, OverlayTrigger} from 'react-bootstrap'
import Icon from './icon'
import messages from '../../utils/messages'
export default function HelpPopover ({ type }) {
const popover = (
<Popover title={messages.docs[type].title} id={type} className='help-popover'>
... |
views/invocation.js | habibmasuro/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
src/icons/PlayForWorkIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class PlayForWorkIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill="#010101" d="M22 10v11.17h-7l9 9 9-9h-7V10h-4zM12 28c0 6.62 5.38 12 12 12s12-5.38 12-12h-4c0 4.42-3.... |
src/dropdown.js | gabrielbull/react-tether2 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import tether from './index';
@tether(
function (ownProps) {
return {
target: typeof ownProps.target === 'function' ? ownProps.target() : ownProps.target,
attachment: ownProps.attachment,
... |
docs/src/sections/BarSection.js | lzcmaro/react-ratchet | import React from 'react';
import Samples from '../Samples'
import ReactPlayground from '../ReactPlayground'
export default function BarSection() {
return (
<div>
{/* Title bar */}
<ReactPlayground id="bars" title='Title bar' desc='Title bars are full width and docked to the top of the viewport.' codeText={S... |
src/interface/icons/Events.js | ronaldpereira/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=rows&i=1819800
// Grid Many Rows by Justin White from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" className="icon" {...other}>
<g transform="rotate(90 27 32)">
<rect width="6... |
src/components/MapContainer.js | txwkx/grime-map | import React, { Component } from 'react';
import {wrapper as GoogleApiComponent} from '../utils/GoogleApiComponent';
import Map from './Map';
import { Marker } from './Marker';
import { InfoWindow } from './InfoWindow';
import '../css/InfoWindow.css';
const __GAPI_KEY__ = 'AIzaSyC0rdWrZmJ1X0WcT8OQrpDjxJ971oUWoLI';
... |
src/svg-icons/communication/rss-feed.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRssFeed = (props) => (
<SvgIcon {...props}>
<circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js | kesha-antonov/react-native | import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
} from 'react-native';
import ListItem from '../../components/ListItem';
import WelcomeText from './WelcomeText';
export default class WelcomeScreen extends Component {
static navigationOptions = {
title: 'Welcome',
// Yo... |
src/svg-icons/image/movie-creation.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMovieCreation = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/>
</SvgIcon>
);
ImageMovieCreati... |
accounts-ui/app/components/activate.js | CloudBoost/cloudboost | import React from 'react';
import { Link } from 'react-router'
import axios from 'axios'
import cookie from 'react-cookie'
import CircularProgress from 'material-ui/CircularProgress'
class Activate extends React.Component {
constructor(){
super()
this.state = {
errorMessage:'',
code:nu... |
app/static/src/performer/NewTestForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import Button from 'react-bootstrap/lib/Button';
import DateTimeField from 'react-bootstrap-datetimepicker/lib/DateTim... |
src/svg-icons/device/battery-80.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h10V5.33z"/><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
src-rx/src/components/JsonConfigComponent/ConfigTextSendTo.js | ioBroker/ioBroker.admin | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
import IconButton from '@material-ui/core/IconButton';
import copy from '@iobroker/adapter-react/Components/copy-to-clipboard';
import CopyIcon fro... |
apps/react-image-editor/stories/index.stories.js | nhnent/tui.component.image-editor | import React from 'react';
import { storiesOf } from '@storybook/react';
import ImageEditor from '../src/index';
const stories = storiesOf('Toast UI ImageEditor', module);
const props = {
includeUI: {
loadImage: {
path: 'img/sampleImage2.png',
name: 'sampleImage2',
},
initMenu: 'shape',
... |
frontend/src/components/categories/category-subcategories.js | 1905410/Misago | import React from 'react';
import LastActivity from 'misago/components/categories/last-activity'; // jshint ignore:line
import ReadIcon from 'misago/components/categories/read-icon'; // jshint ignore:line
import Stats from 'misago/components/categories/stats'; // jshint ignore:line
import SubcategorySubcategories from ... |
src/icons/SignalWifi1BarLockIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SignalWifi1BarLockIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M41 19c.7 0 1.4.1 2.1.2l4.2-5.2c-.9-.7-9.8-8-23.3-8S1.6 13.3.7 14L24 43l7-8.7V29c0-5.5 4.5-10 1... |
docs/app/Examples/elements/Button/Types/ButtonExampleIconProp.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleIconProp = () => (
<Button icon='world' />
)
export default ButtonExampleIconProp
|
app/javascript/mastodon/features/compose/components/action_bar.js | kazh98/social.arnip.org | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
edit_profile: { id: 'a... |
src/navigation/auth.js | visa-innovation-sf/ldn-retail-demo | /**
* Auth Scenes
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { Scene, ActionConst } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
// Scenes
import Authenticate from '@containers/auth/Authen... |
src/js/components/icons/base/Actions.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... |
mobile/app/components/HomeScreen.js | serban-petrescu/candidate-management | import React from 'react';
import {StyleSheet, Text, Image, View, AsyncStorage, ScrollView, ToastAndroid} from 'react-native';
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome';
import FontAwesome, {Icons} from 'react-native-fontawesome';
import {Fumi,} from 'react-native-textinput-effects';
import Mo... |
packages/bonde-styleguide/src/layout/Footer/Footer.js | ourcities/rebu-client | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import IconColorful from '../../content/IconColorful/IconColorful'
const FooterContent = styled.div`{
flex-grow: 1;
padding: 0 0 0 84.7px;
& a {
font-family: 'Nunito Sans', sans-serif;
font-size: 13px;
... |
fields/types/datearray/DateArrayFilter.js | suryagh/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const PRESENCE_OPTIONS = [
{ label: 'At least one element', value: 'some' },
{ label: 'No element', value: 'none'... |
app/index.js | natac13/conduit-fill | // Immutable dev tools makes for easier viewing of Maps and Lists in the
// Chrome Developer tools.
import Immutable from 'immutable';
import installDevTools from 'immutable-devtools';
installDevTools(Immutable);
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
import React from 're... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.