path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/db/bridge.js | HVF/franchise | import React from 'react'
import _ from 'lodash'
import { getDB } from './configure'
import { addCell, isEmpty, addTrash } from '../notebook'
import * as State from '../state'
import * as U from '../state/update'
import { UnmountClosed } from 'react-collapse'
const RETRY_INTERVAL = 1000
const BRIDGE_URL = 'ws://loc... |
node/stack/src/client/index.js | petrsmid/modern-javascript-course | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import Main from './main';
import injectTapEventPlugin from 'react-tap-event-plugin';
const app = document.getElementById('app-root');
//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.... |
src/components/board/cell/note/index.js | ecolman/sudokujs | import React from 'react';
import { useSelector } from 'react-redux';
import { Set, Text } from 'react-raphael';
import { isArray, map } from 'lodash';
import { BOARD_TYPES, NOTE_NUMS } from 'components/constants';
import { selectors as boardsSelectors } from 'redux/boards';
import './styles.less';
function Notes({
... |
src/components/HomePage.js | rafurr/react-material-ui-components | import React from 'react';
import {Link} from 'react-router';
// Since this component is simple and static, there's no parent container for it.
const HomePage = () => {
return (
<div>
<h1>React Material-UI Components</h1>
<h2>Get Started</h2>
<ol>
<li>View the <Link to="redux">Redux D... |
components/TopBar.js | DanFoad/Memento | import React, { Component } from 'react';
import {
Text,
View,
TouchableHighlight,
Image,
} from 'react-native';
import styles from '../styles'
export default class TopBar extends Component {
constructor(props) {
super(props);
// Initial state
this.state = {
... |
src/components/SignIn.js | opsukka/fantasy-map | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import { SignUpLink } from './SignUp';
import { PasswordForgetLink } from './PasswordForget';
import { auth } from '../firebase';
import * as routes from '../constants/routes';
const SignInPage = ({ history }) =>
<div className... |
generators/js-framework/modules/react/components/Account/Signup.js | sahat/boilerplate | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux'
import { signup } from '../../actions/auth';
import { facebookLogin, twitterLogin, googleLogin, vkLogin, githubLogin } from '../../actions/oauth';
import Messages from '../Messages';
class Signup extends React.Compone... |
docs/src/app/components/pages/discover-more/Showcase.js | lawrence-yu/material-ui | import React from 'react';
import Title from 'react-title-component';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import MarkdownElement from '../../MarkdownElement';
import showcaseText from './showcase.md';
con... |
client/src/javascript/components/icons/RatioIcon.js | stephdewit/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class RatioIcon extends BaseIcon {
render() {
return (
<svg className={`icon icon--ratio ${this.props.className}`} viewBox={this.getViewBox()}>
<path d="M60,4.85L55.14,0l-7,6.94a29.17,29.17,0,0,0-5.24-3.3l-3,6.16a22.39,22... |
src/App.js | webtutorial/builder | import React, { Component } from 'react';
import './App.css';
import {
Container, Row, Col
} from 'reactstrap';
import {
BrowserRouter
} from 'react-router-dom';
import Navigasi from './Navigasi.jsx';
import Sidebar from './Sidebar.jsx';
import Komponen from './Komponen.jsx';
class App extends Component {
... |
ui/src/main/js/components/UpdateSettings.js | crashlytics/aurora | import moment from 'moment';
import React from 'react';
export default function UpdateSettings({ update }) {
const settings = update.update.instructions.settings;
return (<div>
<table className='update-settings'>
<tr>
<td>Batch Size</td>
<td>{settings.updateGroupSize}</td>
</tr>
... |
src/js/components/Topics/Form.js | appdev-academy/appdev.academy-react | import React from 'react'
import { Link } from 'react-router'
import ErrorsList from '../ErrorsList'
import BlueButton from '../Buttons/Blue'
import GreenButton from '../Buttons/Green'
export default class Form extends React.Component {
// Set Topic
setTopic(topic) {
if (topic) {
this.refs.title.value =... |
app/javascript/mastodon/components/skeleton.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>‌</span>;
Skeleton.propTypes = {
width: PropTypes.number,
height: PropTypes.number,
};
export default Skeleton;
|
frontend/src/components/forms/fields/PolarRadio.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import RadioForm from '../radioForm';
const BOOL = [
{
value: true,
label: 'Yes',
},
{
value: false,
label: 'No',
},
];
const PolarRadio = (props) => {
const { fieldName, label, ...other } = props;
return (
<RadioForm
... |
docs/src/Anchor.js | dongtong/react-bootstrap | import React from 'react';
const Anchor = React.createClass({
propTypes: {
id: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
},
render() {
return (
<a id={this.props.id} href={'#' + this.props.id} className="anchor">
<span className="anchor-ic... |
node_modules/react-router/es6/RouteContext.js | harrislabel/personal_website | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
src/svg-icons/editor/mode-comment.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorModeComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/>
</SvgIcon>
);
EditorModeComment = pure(EditorModeComment);
Edito... |
app/test/helpers/intl-test.js | TCotton/react-reaction | /**
* Components using the react-intl module require access to the intl context.
* This is not available when mounting single components in Enzyme.
* These helper functions aim to address that and wrap a valid,
* English-locale intl context around them.
*/
import React from 'react';
import { IntlProvider, intlSha... |
src/containers/About/About.js | hirzanalhakim/testKumparan | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import MiniInfoBar from 'components/MiniInfoBar/MiniInfoBar';
import { isLoaded as isInfoLoaded, load as loadInfo } from 'redux/modules/info';
import { asyncConnect } from 'redux-connect';
@asyncConnect([{
promise: ({ store: { dispatch, get... |
src/common/Icon.js | mwwscott0/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
const Icon = ({ icon, alt, ...other }) => {
icon = icon.replace('.jpg', '').replace('-', '');
if (icon === 'petbattle_healthdown') {
// Blizzard seems to have forgotten to remove the dash for this one... or something
icon = 'petbattle_health-do... |
example/src/containers/Modal/Modal.js | AKolodeev/redux-promising-modals | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ModalContainer from 'react-modal';
import { popModalWindow } from 'redux-promising-modals';
import { EditFileDialog, RemoveFileDialog } from '../../components';
import { EDIT_FILE_DIALOG, REMOVE_FILE_DIALOG } fr... |
example/src/components/5-ScopedAnimations/ScopedAnimationsDemo.js | knpwrs/css-modules-electron | import React, { Component } from 'react';
import ScopedAnimations from './ScopedAnimations';
import Snippet from '../shared/Snippet/Snippet';
import readFile from '../shared/readFile';
const js = readFile(__dirname, 'ScopedAnimations.js');
const css = readFile(__dirname, 'ScopedA... |
src/components/icons/DownloadFilledIcon.js | austinknight/ui-components | import React from 'react';
const DownloadFilledIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
<path d="M0 0h24v24H0z" fill="none" />
</svg>
)... |
app/components/OutputLine.js | danielribeiro/fil | import React from 'react';
import {parseType} from 'helpers';
import Chunk from 'components/Chunk';
class OutputLine extends React.Component {
render() {
var block = "console__output";
return (
<div className={block + "__line"}>
{this.props.output.map(
(chunk, i) => <Chunk key={i} ... |
app/javascript/mastodon/components/column_back_button.js | unarist/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class ColumnBackButton extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
handleClick = () => {
if (window.history && window.history.length === 1)... |
stories/Input.stories.js | nekuno/client | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Input from '../src/js/components/ui/Input/Input.js';
storiesOf('Input', module)
.add('text input', () => (
<div style={{background: '#756EE5'}}>
<Input placeholder=... |
mobileapp/app/components/SecondPage.js | tw-spic/charchapoint | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Navigator,
TouchableNativeFeedback
} from 'react-native';
class SecondPage extends Component {
constructor(props) {
super(props);
}
navigateToFirstPage() {
this.props.navigator.push({id: 'FirstPage'});
... |
src/components/Cross.js | rlayeh/TicTacToe | import React from 'react'
const Cross = () => {
return (
<svg version="1.1" className="cross red" xmlns="http://www.w3.org/2000/svg" width="20px" height="20px" viewBox="100 200 500 500">
<path xmlns="http://www.w3.org/2000/svg" d="M 614.774 560.122 C 587.68 570.685 516.07 565.134 470.717 548.955 C 418.226 530... |
client/modules/App/__tests__/Components/Footer.spec.js | mraq1234/mod11 | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Footer } from '../../components/Footer/Footer';
test('renders the footer properly', t => {
const wrapper = shallow(
<Footer />
);
t.is(wrapper.find('p').length, 2);
t.is(wrapper.find('p').first().text(), '© 2016 ... |
src/components/Deals.js | aryalprakash/aryalprakash.github.io | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class Deals extends Component {
constructor() {
super();
this.state = {
list: false,
place: 'Dubai',
class: '',
loc: 'active-color',
cat: 'passi... |
website/src/components/Video.js | chrisl8/ArloBot | import React from 'react';
import { Collapse, Card, CardBody, CardHeader, CardTitle } from 'reactstrap';
import boolToOnOff from '../utils/boolToOnOff';
const Video = (props) => {
let cardTitle = 'Video - Camera Off';
if (!props.personalData.camera0) {
cardTitle = 'Desktop Screenshot';
}
if (props.cameraOn... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | fengchenlianlian/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
fields/types/Field.js | riyadhalnur/keystone | import classnames from 'classnames';
import evalDependsOn from '../utils/evalDependsOn.js';
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import blacklist from 'blacklist';
function isObject(arg) {
return Object.prototype.toString.call... |
website/core/WebPlayer.js | kesha-antonov/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/svg-icons/av/playlist-add-check.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAddCheck = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"/>
</SvgIcon>
);
AvPlaylistAddCheck = pure... |
demo/sections/Badges.js | joshq00/react-mdl | import React from 'react';
import Example from './Example';
import Badge from '../../src/Badge';
import Icon from '../../src/Icon';
export default ( props ) => (
<section { ...props }>
<h3>Badges</h3>
<Example>
<Badge text="1">
<Icon name="account_box" />
</... |
shared/mixins/formatters/naFormatter.js | gzoreslav/panda-iso | import React from 'react';
import _ from 'lodash';
export const naFormatter = {
componentWillMount() {
_.merge(this, {
formatters: {
na(value) {
return (value === 'n/a') || (value == undefined) ? <span className="n-a">n/a</span> : value;
}
... |
imports/startup/client/routes.js | dklisiaris/grabber | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, Redirect, browserHistory } from 'react-router';
import { Meteor } from 'meteor/meteor';
import {App} from '/imports/ui/layouts/app';
import {Login} from '/imports/ui/views/login';
import {Signup} from '/imports/ui/views/signup';
imp... |
src/App.js | h12345jack/card-Visualization | import React, { Component } from 'react';
import MyDialogModal from './containers/MyDialogModal'
class App extends Component {
state = {
tree: {}
}
render() {
return (
<div className="vis-custom">
<MyDialogModal/>
</div>
);
}
}
export default App;
|
index.ios.js | hustmsc/hustmsc-app | /**
* 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 HustmscApp extends Component {
render() {
return (
<View style={styles.containe... |
src/components/withViewport.js | george-vrancianu/coriolis-web | /*
Copyright (C) 2017 Cloudbase Solutions SRL
This program 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, either version 3 of the
License, or (at your option) any later version.
This program is distribu... |
src/svg-icons/notification/do-not-disturb-off.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbOff = (props) => (
<SvgIcon {...props}>
<path d="M17 11v2h-1.46l4.68 4.68C21.34 16.07 22 14.11 22 12c0-5.52-4.48-10-10-10-2.11 0-4.07.66-5.68 1.78L13.54 11H17zM2.27 2.27L1 3.54l2.78 2.78... |
react-redux-tutorial/06-params/modules/Repos.js | react-scott/react-learn | import React from 'react'
export default React.createClass({
render() {
return <div>Repos</div>
}
})
|
src/app/components/SelectOptions.js | mkkhedawat/weather-forecast-react | import React from 'react';
import PropTypes from 'prop-types';
/*
Export Select Options Component
*/
export default class SelectOptions extends React.Component {
constructor(props) {
super(props);
this.state = {selectedIndex: -1};
}
componentDidMount() {
// Materialize custom ... |
fields/types/location/LocationColumn.js | stunjiturner/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country'];
var LocationColumn = React.createClass({
displayName: 'Loc... |
src/components/pages/PlayLists/PlayLists.js | ArtyomVolkov/music-search | import React from 'react';
// components
import PlayListCards from '../../custom-components/PlayListCards/PlayListCards';
class PlayLists extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="play-lists-page">
<PlayListCards />
</div>
);
}
}
export def... |
frontend/src/Movie/Details/MovieDetails.js | Radarr/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Tab, TabList, TabPanel, Tabs } from 'react-tabs';
import TextTruncate from 'react-text-truncate';
import Icon from 'Components/Icon';
import ImdbRating from 'Components/ImdbRating';
import InfoLabel from 'Comp... |
src/layouts/Footer/Footer.js | dziksu/songs-manager | import React from 'react';
const Footer = () => {
return (
<footer className="page-footer blue darken-2">
<div className="container">
<div className="row">
<div className="col l6 s12">
<h5 className="white-text">Footer Content</h5>
<p className="grey-text text-lig... |
app/javascript/mastodon/features/ui/components/confirmation_modal.js | narabo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
class ConfirmationModal extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
confirm: P... |
src/pages/404.js | pascalwhoop/pascalwhoop.github.io | import React from 'react'
import Layout from '../components/layout'
const NotFoundPage = () => (
<Layout>
<div id="main" className="alt">
<section id="one">
<div className="inner">
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness... |
src/containers/Markets/Markets.js | PhilNorfleet/pBot | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { asyncConnect } from 'redux-connect';
import { connect } from 'react-redux';
import { pure } from 'recompose';
import { withApp } from 'app';
import * as marketsActions from 'redux/modules/markets';
import Tickers from '../../componen... |
src/components/music/play-button.js | scholtzm/arnold | import React, { Component } from 'react';
import { Button } from 'semantic-ui-react';
import player from '../../rpc/api/player.js';
import { addNotification } from '../../actions/notification-actions.js';
class AlbumPlayButton extends Component {
constructor(props, context) {
super(props, context);
this.st... |
server/sonar-web/src/main/js/components/charts/bar-chart.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/components/icons/Github.js | typical000/paveldavydov | import React from 'react'
import PropTypes from 'prop-types'
import cn from 'classnames'
import Icon from './Icon'
const Github = ({className}) => (
<Icon>
{({classes}) => (
<svg
className={cn(classes.icon, className)}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
>
... |
src/Card/ButtonHeader/ButtonHeader.driver.js | nirhart/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
const buttonHeaderDriverFactory = ({element, wrapper, component}) => {
const title = element.querySelector('[data-hook="title"]');
const subtitle = element.querySelector('[data-hook="subtitle"]');
return {
exists: () => !!element,
title: () =... |
test/integration/image-component/basic/pages/lazy.js | JeromeFitz/next.js | import React from 'react'
import Image from 'next/image'
import Link from 'next/link'
const Lazy = () => {
return (
<div>
<p id="stubtext">This is a page with lazy-loaded images</p>
<Image
id="lazy-top"
src="lazy1.jpg"
height={400}
width={1024}
loading="lazy"
... |
client/components/ui/modal/index.js | ZeHiro/kresus | import React from 'react';
import Modal from 'react-modal';
import { connect } from 'react-redux';
import { actions, get } from '../../../store';
import { assert } from '../../../helpers';
import ModalContent from './content';
const modalsMap = new Map();
export function registerModal(slug, modalMaker) {
assert... |
src/svg-icons/action/dashboard.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDashboard = (props) => (
<SvgIcon {...props}>
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/>
</SvgIcon>
);
ActionDashboard = pure(ActionDashboard);
ActionDashboard.displayName... |
src/svg-icons/action/gavel.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGavel = (props) => (
<SvgIcon {...props}>
<path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z... |
frontend/src/components/options/sign-in-credentials/root.js | 1905410/Misago | import React from 'react';
import ChangeEmail from 'misago/components/options/sign-in-credentials/change-email'; // jshint ignore:line
import ChangePassword from 'misago/components/options/sign-in-credentials/change-password'; // jshint ignore:line
import misago from 'misago/index'; // jshint ignore:line
import title f... |
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_03/finished/src/index.js | yevheniyc/Autodidact | import C from './constants'
import React from 'react'
import { render } from 'react-dom'
import routes from './routes'
import sampleData from './initialState'
import storeFactory from './store'
import { Provider } from 'react-redux'
import { addError } from './actions'
const initialState = (localStorage["redux-store"]... |
react-flux-mui/js/material-ui/src/svg-icons/device/signal-cellular-off.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularOff = (props) => (
<SvgIcon {...props}>
<path d="M21 1l-8.59 8.59L21 18.18V1zM4.77 4.5L3.5 5.77l6.36 6.36L1 21h17.73l2 2L22 21.73 4.77 4.5z"/>
</SvgIcon>
);
DeviceSignalCellularOff = pure(... |
src/internal/RfFormWrapper.js | wfp/ui | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import { connect } from 'react-redux';
//import { Values } from 'redux-form-website-template';
import Button from '../components/Button';
import Blockquote from '../components/Blockquote';
import FormLabel from '../components/FormLabel/Rf... |
node_modules/semantic-ui-react/dist/es/collections/Form/FormSelect.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
import Select from '../../addons/Select';
import FormField from './FormField';
/**
* Sugar for <Form.Field control={Select} />.
* @see Form
* @see S... |
webapp/app/components/Notifications/Form/Users/SelectedUsers/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component selected users form notifications
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel, HelpBlock } from 'react-bootstrap';
import ButtonPopover from 'components/ButtonPopover';
import Option from 'components/Option';
import styles from 'components/Notifications/styles.css';
/* ... |
pootle/static/js/auth/components/SignUpForm.js | phlax/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import assign from 'object-assi... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch05/05_03/finish/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/containers/Layout.js | jrzimmerman/bestrida-rn | import React from 'react';
import PropTypes from 'prop-types';
import { TabNavigator } from 'react-navigation';
import Icon from 'react-native-vector-icons/Ionicons';
import ChallengeFeedTab from './ChallengeFeedTab';
import ActiveChallengesTab from './ActiveChallengesTab';
import CreateChallengeTab from './CreateChall... |
CompositeUi/src/views/page/organization/New.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import React from 'react';
import {connec... |
src/core/markers/PolygonMarker.js | mocheer/react-map | import React from 'react';
export const PolygonMarker = React.createClass({
render: function () {
var state = this.state;
return null;
}
}); |
solutions/step8/server/index.js | colmarius/universal-react-workshop-app | const Hapi = require('hapi')
const talks = require('./data')
const pages = require('./pages')
import React from 'react'
import {renderToString, renderToStaticMarkup} from 'react-dom/server'
import TalkList from '../client/TalkList'
import {createStore} from 'redux'
import {Provider} from 'react-redux'
import reducers... |
src/svg-icons/editor/insert-link.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3... |
src/svg-icons/maps/layers-clear.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayersClear = (props) => (
<SvgIcon {...props}>
<path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-... |
src/svg-icons/action/flip-to-front.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlipToFront = (props) => (
<SvgIcon {...props}>
<path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-doc-kit-demo.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
import {BaseMixin, ElementaryMixin, SectionMixin, LsiMixin} from '../common/common.js';
import {Glyphicon, Footer, Section, Div, Line, Block, Iframe, Button, ButtonGroup, ButtonSwitch, Pre, FileViewer} from '../bricks/bricks.js';
impor... |
Mr.Mining/MikeTheMiner/Santas_helpers/Sia_wallet/resources/app/plugins/Hosting/js/components/app.js | patel344/Mr.Miner | import React from 'react'
import Header from '../containers/header.js'
import Body from '../containers/body.js'
import ResizeDialog from '../containers/resizeDialog.js'
import AnnounceDialog from '../containers/announce.js'
import WalletModal from '../containers/walletmodal.js'
const HostingApp = () => (
<div classNa... |
src/index.js | TUIHackfridays/tuise-poc |
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { Route } from 'react-router'
import { ConnectedRouter } from 'react-router-redux'
import store, { history } from 'store'
// route components
import App from 'components/App'
// Main Application Styles
import 'st... |
src/index.js | leiming/pcgame-react-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
example/src/page/creditProductEdit/InputButton/index.js | sqhtiamo/zaro | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Components, utils } from 'zaro';
const { Input, Button } = Components;
const { array: arrayUtils } = utils;
class InputButton extends Component {
constructor(props) {
super(props);
this.inputs = [];
this.state = {
... |
src/svg-icons/hardware/speaker-group.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeakerGroup = (props) => (
<SvgIcon {...props}>
<path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2... |
src/svg-icons/image/dehaze.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageDehaze = (props) => (
<SvgIcon {...props}>
<path d="M2 15.5v2h20v-2H2zm0-5v2h20v-2H2zm0-5v2h20v-2H2z"/>
</SvgIcon>
);
ImageDehaze = pure(ImageDehaze);
ImageDehaze.displayName = 'ImageDehaze';
ImageDehaze... |
src/components/diff-blocks.component.js | Antoine38660/git-point | // @flow
import React from 'react';
import { TouchableOpacity } from 'react-native';
import styled from 'styled-components/native';
import { colors, fonts } from 'config';
type Props = {
additions: number,
deletions: number,
showNumbers: boolean,
onPress: Function,
};
const DiffBlocksViewContainer = styled.V... |
client/src/app/routes/forms/components/wizards/BasicWizardWidget.js | zraees/sms-project | import React from 'react'
import JarvisWidget from '../../../../components/widgets/JarvisWidget'
import UiValidate from '../../../../components/forms/validation/UiValidate'
import Wizard from '../../../../components/forms/wizards/Wizard'
import countries from '../../../../components/forms/commons/countries'
const va... |
node_modules/antd/es/date-picker/createPicker.js | ZSMingNB/react-news | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
client/src/app/routes/settings/containers/FeeTypes/EditGeneralInfo.js | zraees/sms-project | import React from 'react'
import { reset } from 'redux-form';
import axios from 'axios';
import { Field, reduxForm } from 'redux-form'
import { RFReactSelect } from '../../../../components/ui'
import { required } from '../../../../components/forms/validation/CustomValidation'
import AlertMessage from '../../../../c... |
src/svg-icons/notification/sync-problem.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncProblem = (props) => (
<SvgIcon {...props}>
<path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z... |
app/jsx/grading/HideAssignmentGradesTray/Layout.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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... |
server/sonar-web/src/main/js/components/SourceViewer/SourceViewerBase.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/SafeAnchor.js | adampickeral/react-bootstrap | import React from 'react';
import createChainedFunction from './utils/createChainedFunction';
/**
* Note: This is intended as a stop-gap for accessibility concerns that the
* Bootstrap CSS does not address as they have styled anchors and not buttons
* in many cases.
*/
export default class SafeAnchor extends React... |
packages/material-ui-icons/src/FolderSpecial.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FolderSpecial = props =>
<SvgIcon {...props}>
<path d="M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29L15 8l1.34... |
docs/src/app/pages/components/TabWrapper/ExampleTabWrapperDefault.js | GetAmbassador/react-ions | import React from 'react'
import {TabWrapper, Tab} from 'react-ions/lib/components/TabWrapper'
import Button from 'react-ions/lib/components/Button'
import style from './style.scss'
class ExampleTabWrapperDefault extends React.Component {
constructor(props) {
super(props)
}
state = {
selected: '1st',
... |
js/react-native/merin_j/src/components/common/Input.js | petarov/sandbox | // reusable input
import React from 'react';
import { TextInput, View, Text } from 'react-native';
const Input = ({ label, hint, value, onChangeText, secure }) => {
const { inputStyle, labelStyle, containerStyle } = styles;
return (
<View style={containerStyle}>
<Text style={labelStyle}>
{label}... |
app/components/H3/index.js | joegattnet/joegatt.net-client | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
src/components/activeList/tabs.js | snow798/reactText | /**
* Created by Administrator on 2016/6/23.
*/
import React from 'react'
export const tabs = React.createClass({
getInitialState: function() {
return { };
},
componentDidMount: function(props){
},
toggleDataType: function(type, event){
// 修改容器里的状态
this.props.changeListType(type);
},
rende... |
src/helpers/universalRouter.js | marceltschoppch/react-redux-webpack-blog | import React from 'react';
import Router from 'react-router'
import createRoutes from '../routes';
import {Provider} from 'react-redux';
import createHistory from 'history/lib/createMemoryHistory';
const getFetchData = (component = {}) => {
return component.WrappedComponent ?
getFetchData(component.WrappedCompon... |
src/components/Btn/index.js | focuswish/scheduletext | import React from 'react';
import Link from 'next/link'
export default props => (
<section>
<a className="common-btn hero-btn" onClick={props.handleSubmit}>{props.text}</a>
</section>
); |
src/client/js/pages/Home.js | GoodBoy123/crendorianinvitational | import React from 'react';
import { connect } from 'react-redux';
import { ciAppSelector } from '../selectors/ciAppSelector';
import {fetchPosts, fetchResults, fetchOverall} from '../actions/actions';
import NewsFeed from '../news/NewsFeed';
import WeekMatches from '../weekmatches/WeekMatches';
import OverallTable f... |
example/rnas/index.ios.js | micahrye/react-native-animated-sprite | /**
* 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 rnas extends Component {
render() {
return (
<View style={styles.container}>
... |
lib/DraggableCore.js | hemnstill/react-draggable | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import {matchesSelectorAndParentsTo, addEvent, removeEvent, addUserSelectStyles, getTouchIdentifier,
removeUserSelectStyles, styleHacks} from './utils/domFns';
import {createCoreData, getControlPosition, sn... |
src/components/Page.js | dimitardanailov/build-a-wiki-with-react-and-firebase | import React from 'react';
import * as API from '../api';
import Section from './Section';
export default class Page extends React.Component {
state = {
'page': {}
}
componentDidMount() {
API.pages.child(this.props.params.id).on('value', this.updateContent);
}
/**
* Invoked when a component is receiving ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.