path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/ProjectForm.js | ml7757/To-Do-React | import './stylesheets/components.scss';
import React from 'react';
import jQuery from 'jquery';
class ProjectsForm extends React.Component{
constructor(){
super();
}
saveProject(event){
event.preventDefault();
var component = this;
var formData = {
name: component.refs.projectName.value,... |
node_modules/enzyme/test/Debug-spec.js | sauceSquatch/we_are_razorfish_experience | import { expect } from 'chai';
import React from 'react';
import {
spaces,
indent,
debugNode,
} from '../src/Debug';
import { mount } from '../src/';
import { describeWithDOM, itIf } from './_helpers';
import { REACT013 } from '../src/version';
describe('debug', () => {
describe('spaces(n)', () => {
it('s... |
src/routes/home/index.js | ACGNTaiwan/acgnFront | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
i... |
frontend/src/pages/Layout.js | dimkarakostas/rupture | import React from 'react';
import Nav from '../components/Nav';
import Footer from '../components/Footer';
export default class Layout extends React.Component {
render() {
return (
<div>
<Nav/>
<div> {this.props.children} </div>
<Footer/>
... |
client/components/Auth/LogoutPage.js | rkazakov/guardbook | import React from 'react';
import { Link } from 'react-router';
class LogoutPage extends React.Component {
render() {
return (
<div>
<h1>LogoutPage</h1>
</div>
)
}
}
export default LogoutPage;
|
admin/src/components/ListHeaderTitle.js | mekanics/keystone | import classnames from 'classnames';
import CurrentListStore from '../stores/CurrentListStore';
import Popout from './Popout';
import PopoutList from './PopoutList';
import React from 'react';
import vkey from 'vkey';
import { FormNote } from 'elemental';
const Transition = React.addons.CSSTransitionGroup;
var ListHe... |
src/js/components/icons/base/FingerPrint.js | odedre/grommet-final | /**
* @description FingerPrint 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.
*... |
Realization/frontend/czechidm-acc/src/content/wizard/connectorType/AdUserSystemWizard/StepCheckPermission.js | bcvsolutions/CzechIdMng | import { Basic } from 'czechidm-core';
import React from 'react';
import _ from 'lodash';
import AbstractWizardStep from '../../AbstractWizardStep';
/**
* Step three of MS AD wizard (permissions check).
*
* @author Vít Švanda
* @since 10.8.0
*/
export default class StepCheckPermission extends AbstractWizardStep ... |
app/react-native/index.android.js | sping/abcd-epic-fussball | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import App from './app/app';
AppRegistry.registerComponent('MeetupReactNative', () => App);
|
examples/js/advance/hide-on-insert-table.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
const jobTypes = [ 'A', 'B', 'C', 'D' ];
function addJobs(quantity) {
const startId = jobs.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
jo... |
springboot/GReact/node_modules/react-bootstrap/es/Grid.js | ezsimple/java | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
map/src/components/ModalShare/index.js | Vizzuality/care_usa | 'use strict';
import './styles.postcss';
import Modal from '../Modal';
import React from 'react';
import Clipboard from 'clipboard';
class ModalShare extends Modal {
constructor(props) {
super(props);
this.state = {
open: this.props.visible,
className: 'modal-share'
};
}
onClickCopy()... |
src/parser/rogue/assassination/modules/talents/ElaboratePlanning.js | sMteX/WoWAnalyzer | import React from 'react';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Ana... |
app/Resources/static-src/app/common/component/persona-multi-input/index.js | richtermark/SMEAGOnline | import React, { Component } from 'react';
import MultiInput from '../multi-input';
import List from './list';
function initItem(dataSourceUi,data,index,props) {
let obj = {
itemId:Math.random(),
nickname: data[props.nickname],
isVisible: data[props.isVisible] == 1 ? true : false,
avatar: data[props.a... |
src/svg-icons/action/question-answer.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionQuestionAnswer = (props) => (
<SvgIcon {...props}>
<path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/>
</SvgIcon>
);
... |
plum/src/components/common/groupItem.js | jbkaplan/plum-app | import React, { Component } from 'react';
import { StyleSheet, Text, View, TouchableHighlight, TouchableOpacity, Dimensions } from 'react-native';
import Icon from 'react-native-vector-icons/Entypo';
var GroupItem = React.createClass({
render: function() {
return (
<View style={[styles.groupItem]}>
... |
src/components/Feedback/Feedback.js | adorris1/dorris-united | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
tests/baselines/reference/checkJsxChildrenCanBeTupleType.js | nojvek/TypeScript | //// [checkJsxChildrenCanBeTupleType.tsx]
/// <reference path="/.lib/react16.d.ts" />
import React from 'react'
interface ResizablePanelProps {
children: [React.ReactNode, React.ReactNode]
}
class ResizablePanel extends React.Component<
ResizablePanelProps, any> {}
const test = <ResizablePanel>
<div />
<di... |
app/components/Preview/RightBlock/MessageDispatcher/MessageDispatcher.js | realgvard/telegram_theme_customizer | import React, { Component } from 'react';
import CSSModules from 'react-css-modules';
import { connect } from 'react-redux';
// Components
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import TextField from 'material-ui/TextField';
// Images
import MicIcon from 'material-ui... |
SimpleMessaging/__tests__/index.ios.js | bit6/bit6-react-native-samples | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
doc/src/pages/examples/component-pointer.js | mapillary/mapillary-js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import Layout from '@theme/Layout';
import {Code} from '../../js/components/Code';
import... |
src/svg-icons/av/play-arrow.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlayArrow = (props) => (
<SvgIcon {...props}>
<path d="M8 5v14l11-7z"/>
</SvgIcon>
);
AvPlayArrow = pure(AvPlayArrow);
AvPlayArrow.displayName = 'AvPlayArrow';
AvPlayArrow.muiName = 'SvgIcon';
export defau... |
react/features/device-selection/components/DeviceSelectionDialog.js | parisjulien/arkadin-jitsimeet | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
setAudioInputDevice,
setAudioOutputDevice,
setVideoInputDevice
} from '../../base/devices';
import {
Dialog,
hideDialog
} from '../../base/dialog';
import { translate } from '../../base/i18n';
import { createL... |
src/components/Main.js | planningFor/react-build | import React, { Component } from 'react';
import Navbar from './Navbar';
import Loading from './Loading';
require('../css/Main.scss');
/**
* App component is top component of all.
*/
export default class App extends Component {
render() {
return (
<div className="app">
<Navba... |
demo/reactjs/src/index.js | harttle/shopify-liquid | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import * as serviceWorker from './serviceWorker';
import { App } from './App';
// import { App } from './AppWithHooks';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster,... |
src/scenes.js | yarikgenza/WhereToGo-Lviv | import React from 'react';
import { Actions, Scene } from 'react-native-router-flux';
import LaunchScreen from './Containers/LaunchScreen';
import LocationScreen from './Containers/LocationScreen';
import CategoryScreen from './Containers/CategoryScreen';
import PlacesScreen from './Containers/Places/PlacesScreen';
i... |
packages/mineral-ui-icons/src/IconNotificationsNone.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconNotificationsNone(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...... |
src/components/Rocket.js | krystalcampioni/krystalcampioni-portfolio | import React from 'react';
import styles from '../styles/main.scss';
var Rocket = React.createClass({
render: function(){
return(
<div className={styles.rocket}>
<ul className={styles.rocket__windows}>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
... |
app/components/H1/index.js | PeterKow/clientAurity | import React from 'react';
import styles from './styles.css';
function H1(props) {
return (
<h1 className={ styles.heading1 } { ...props } />
);
}
export default H1;
|
app/javascript/mastodon/components/autosuggest_emoji.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
import { assetHost } from 'mastodon/utils/config';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequire... |
examples/huge-apps/routes/Grades/components/Grades.js | KamilSzot/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
src/pages/pokemon.js | tylerchilds/pokedex | import React from 'react';
import { IndexLink, Link } from 'react-router';
import TypeMatchup from '../components/type-matchup';
import TypeLink from '../components/type-link';
import PokemonLink from '../components/pokemon-link';
import ALL_POKEMON from '../data/pokemon';
export default class Pokemon extends React.Co... |
src/styles/style.js | ijhua/analytics | import React from 'react';
const link = {
normal: {
borderBottom: '1px dotted rgb(0, 168, 0)',
},
hover: {
borderBottom: '1px solid rgb(0, 168, 0)',
color: 'black',
},
active: 'hover',
touchActive: {
borderBottom: '1px dashed rgb(0, 168, 0)',
color: 'black',
},
focusFromTab: {
o... |
packages/react-error-overlay/src/components/Collapsible.js | digitalorigin/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React, { Component } from 'react';
import { black } from '../styles';
import type { Element as ReactElement } from '... |
examples/universal/client/index.js | jdelight/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
const rootElement = do... |
Projets/JS/React/Projet 3 BAR/myRecipeBox/src/components/Admin.js | thib123/TPJ | import React from 'react';
import base from '../base';
import AjouterRecette from './AjouterRecette';
class Admin extends React.Component {
state = {
uid: null,
owner: null
};
componentDidMount() {
base.onAuth(user => {
if (user) {
this.traiterConnexion(null, { user })
}
})
}
traiterChangemen... |
examples/files/core_components/sectionlistHomogenous.js | dabbott/react-native-express | import React from 'react'
import { SectionList, StyleSheet, Text } from 'react-native'
const sections = [
{
id: '0',
title: 'Basic Components',
data: [
{ id: '0', text: 'View' },
{ id: '1', text: 'Text' },
{ id: '2', text: 'Image' },
],
},
{
id: '1',
title: 'List Compone... |
examples/huge-apps/routes/Course/components/Dashboard.js | birendra-ideas2it/react-router | import React from 'react'
class Dashboard extends React.Component {
render() {
return (
<div>
<h3>Course Dashboard</h3>
</div>
)
}
}
export default Dashboard
|
apps/mk-app-tree-table/apps/mk-app-tree-table-detail/action.js | ziaochina/mk-demo | import React from 'react'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import { List, fromJS } from 'immutable'
import moment from 'moment'
import config from './config'
class action {
constructor(option) {
this.metaAction = option.metaAction
this.config = config.current
... |
dashboard/components/log.js | vinnyhuang/fw-dev-dashboard | import React, { Component } from 'react';
import ansiHTML from 'ansi-html';
import Parser from 'html-react-parser';
ansiHTML.setColors({
reset: ['111111','ffffff'],
black: '111111',
white: 'ffffff',
red: 'ff4136',
green: '2ecc40',
yellow: 'ffdc00',
blue: '0074d9',
magenta: ... |
src/components/Music/Music.js | Aquellex/aquellexws | import React from 'react';
import PropTypes from 'prop-types';
import styles from './Music.module.css';
const Music = ({ title, genre, children }) => (
<article className={styles.music}>
<h4 className={styles.musicEntryTitle}>
<span>{title}</span> ∙ {genre}
</h4>
{children}
</article>
);
... |
src/components/Template/Hero/index.js | tscanlin/tocbot | import React from 'react'
import Link from 'next/link'
function makeGithubCounter ({ user, repo }) {
return <iframe src={`https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=star&count=true&size=large`} frameBorder='0' scrolling='0' width='160px' height='30px' />
}
function Hero (props) {
return (
... |
lib/Sae.js | halilb/react-native-textinput-effects | import React from 'react';
import PropTypes from 'prop-types';
import {
Animated,
TextInput,
TouchableWithoutFeedback,
View,
StyleSheet,
} from 'react-native';
import BaseInput from './BaseInput';
export default class Sae extends BaseInput {
static propTypes = {
height: PropTypes.number,
/*
*... |
app/hourList/GDHourList.js | jo-liu/GD | /**
* Created by Jo on 2017/8/30.
*/
/**
* Created by Jo on 2017/8/30.
*/
/**
* Created by Jo on 2017/8/30.
*/
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
... |
src/components/Modal/__tests__/Modal.spec.js | propertybase/react-lds | import React from 'react';
import { shallow } from 'enzyme';
import FocusTrap from 'focus-trap-react';
import Modal from '../Modal';
import ModalContent from '../ModalContent';
import ModalFooter from '../ModalFooter';
import ModalHeader from '../ModalHeader';
const getComponent = (props = {}) => shallow(
<Modal
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | AndreyKedo/My_project_blog | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/Parser/Priest/Shadow/Modules/Features/Checklist.js | enragednuke/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 ItemLink from 'common/ItemLink';
import CoreChecklist, { Rule, Requirement } from 'Parser/Core/Modules/Features/Checklist';
imp... |
index.js | RealOrangeOne/react-native-busy-indicator | import React from 'react';
import {
StyleSheet,
View,
Text,
DeviceEventEmitter,
ActivityIndicator
} from 'react-native';
import PropTypes from 'prop-types';
const styles = StyleSheet.create({
container: {
position: 'absolute',
backgroundColor: 'rgba(0,0,0,0.3)',
justifyContent: 'center',
... |
src/manager/components/SelectTheme.js | sm-react/react-theming | import React from 'react';
import { flattenTheme } from '@react-theming/flatten';
import * as styled from './SelectTheme.styled';
import Toolbar from '../UI/Toolbar';
import Caption from '../UI/Caption';
import IconButton from '../UI/IconButton';
const materialPreview = ({ palette }) => ({
main: [palette.primary.ma... |
app/static/src/diagnostic/CampaignForm_modules/NewUserForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Button from 'react-bootstrap/lib/Button';
import Panel from 'react-bootstrap/lib/Panel';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import {findDOMNode} from 'rea... |
ajax/libs/react-redux/7.1.0-alpha.0/react-redux.js | sufuf3/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('redux'), require('react-dom')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'redux', 'react-dom'], factory) :
(global = global || self, factory(glo... |
src/components/LongDescription.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { processMarkdown } from '../lib/markdown.lib';
import SectionTitle from './SectionTitle';
import { FormattedMessage } from 'react-intl';
import unified from 'unified';
import remarkParse from 'remark-parse';
import remarkRehype from 'remark-rehype';... |
src/layouts/PublicLayout.js | sanalonyedi/egitimbudur-web-app | import React from 'react'
import { IndexLink, Link } from 'react-router'
import PropTypes from 'prop-types'
import Header from '../components/Header'
export const PublicLayout = ({ children }) => (
<div>
<Header />
{children}
</div>
)
PublicLayout.propTypes = {
children: PropTypes.node,
}... |
src/Pagination.js | brentertz/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
const Pagination = React.createClass({
mixins: [BootstrapMixi... |
docs/app/Examples/collections/Grid/Variations/GridExamplePadded.js | clemensw/stardust | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExamplePadded = () => (
<div>
<p>The following grid has vertical and horizontal gutters.</p>
<Grid columns={2} padded>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
<... |
example/components/Chart.js | woles/animated-3d-piechart | import React from 'react';
import piechart3D from '../../src';
function generateId() {
const alphabet = 'abcdefghijklmnopqrstuvwxyz';
let id = '';
for (let i = 2; i >= 0; i -= 1) {
id += (alphabet[(Math.random() * alphabet.length).toFixed(0)]);
}
return id;
}
class Chart extends React.Component {
st... |
example/examples/PanController.js | pjamrozowicz/react-native-maps | /* eslint-disable */
import React from 'react';
import PropTypes from 'prop-types';
import {
View,
Animated,
PanResponder,
} from 'react-native';
const ModePropType = PropTypes.oneOf(['decay', 'snap', 'spring-origin']);
const OvershootPropType = PropTypes.oneOf(['spring', 'clamp']);
const AnimatedPropType = Pr... |
Team4of5/src/Team4of5_App/ProjectManagement/ProjectManagement.js | Team4Of5/Project | import React from 'react';
import Navbar from '../Navbar/Nav.js';
import ProjectManagementTable from './ProjectManagementTable.js';
import './ProjectManagementTables.css';
import * as Users from '../../Team4of5_Service/Users.js';
//import { Board } from 'react-trello'
import { Board } from './react-trello/src/index.js'... |
ajax/libs/react-instantsearch/4.5.0/Connectors.js | wout/cdnjs | /*! ReactInstantSearch 4.5.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
client/app/components/ListRowItem.js | florianporada/moovel_testme | import React from 'react';
import { Text } from 'react-native';
import PropTypes from 'prop-types';
class ListRowItem extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<Text>{this.props.name}</Text>
);
}
}
ListRowItem.propTypes = {
name: PropTypes.string
... |
docs/src/app/components/pages/components/Dialog/ExampleAlert.js | w01fgang/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation.
*/
export default class DialogExampleAler... |
src/client/components/App.js | mucsi96/react-native-lambda-starter | import React from 'react';
import {
StyleSheet,
Text,
View,
ScrollView
} from 'react-native';
import RegisterForm from './RegisterForm';
export default () => (
<View style={styles.container}>
<ScrollView>
<RegisterForm/>
</ScrollView>
</View>
)
const styles = StyleSheet.create({
container:... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Table.js | adamruzicka/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table as PFtable } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import classNames from 'classnames';
import { createSubscriptionsTableSchema } from '../SubscriptionsTableSchema';
import { Table as ForemanTabl... |
src/Parser/Paladin/Holy/Modules/Traits/SacredDawn.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
import Combatants from 'Parser/Core/Mod... |
src/components/RandomizerPage.js | rgdelato/instantly-lunch | import React, { Component } from 'react';
import { TransitionMotion, spring } from 'react-motion';
import RestaurantItem from '../containers/RestaurantItem';
class AttributeCheckbox extends Component {
render () {
const { name } = this.props;
return (
<label className="restaurant-item-attribute">
<input... |
tests/site2/code/components/component2.js | dominikwilkowski/cuttlebelle | import PropTypes from 'prop-types';
import React from 'react';
import List from './list';
/**
* The Component2 component for the footer
*/
const Component2 = ({ background, links }) => {
const backgroundStyle = {
backgroundColor: background,
padding: '1em',
marginTop: '3em',
};
return (
<footer style={ ... |
webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { ListGroup, ListGroupItem } from 'patternfly-react';
import './SubscriptionDetails.scss';
const SubscriptionDetailProducts = ({ subscriptionDetails }) => (
<div>
<h2>{__('Provided Pr... |
app/components/slider/UpMenuSlider.js | Hirico/supic | /**
* Created by lu on 2017/7/20.
*/
import React, { Component } from 'react';
import { Slider, Icon } from 'antd';
import styles from './UpMenuSlider.css';
class UpMenuSlider extends Component {
constructor(props) {
super(props);
const { max, min } = props;
const mid = ((max - min) / 2).toFixed(5);
... |
client/charCreation/gameDifficulty.js | mordrax/cotwmtor | import React from 'react';
import * as actions from '../../actions/index';
import {connect} from 'react-redux';
import classNames from '../../node_modules/classnames/bind';
import Game from '../../collections/games';
export const DifficultyLevel = {
"Easy": 0,
"Intermediate": 1,
"Difficult": 2,
"ExpertsOnly": ... |
docs/app/Examples/collections/Table/Variations/TableExampleCollapsing.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleCollapsing = () => {
return (
<Table collapsing>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Not... |
docs-ui/components/shareIssue.stories.js | beeftornado/sentry | import React from 'react';
import {action} from '@storybook/addon-actions';
import {text} from '@storybook/addon-knobs';
import {withInfo} from '@storybook/addon-info';
import ShareIssue from 'app/components/shareIssue';
export default {
title: 'Features/Issues/Share Issue',
};
class ShareSimulator extends React.C... |
Todo/components/Index.js | davejmac/test-react-native-app | import React from 'react'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import todoApp from '../reducers'
import App from './App'
let store = createStore(todoApp)
const Index = () => (
<Provider store={store}>
<App />
</Provider>
)
export default Index
|
src/about/index.js | Zetoff/react-flexbox-grid-jss-demo | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
auth/__tests__/index.android.js | DaveWJ/LearningReact | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/layouts/CoreLayout/CoreLayout.js | jhardin293/style-guide-manager | import React from 'react'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div>
<Header />
<div>
{children}
</div>
</div>
)
CoreLayout.propTypes = {
children : React.PropTypes.element.isRequir... |
examples/demos/rendering.js | TeaBough/react-big-calendar | import React from 'react'
import { Calendar, Views } from 'react-big-calendar'
import events from '../events'
function Event({ event }) {
return (
<span>
<strong>{event.title}</strong>
{event.desc && ': ' + event.desc}
</span>
)
}
function EventAgenda({ event }) {
return (
<span>
... |
node_modules/react-router-dom/es/HashRouter.js | Bartoshko/occasion-jitsu | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/components/molecules/HomeTitle/index.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | import React from 'react';
import styled from 'styled-components';
import {Link} from 'components';
import Copyright from 'material-ui/svg-icons/action/copyright';
import {size, palette} from 'styled-theme';
const Wrapper = styled.div `
font-size: 25px;
padding: 30px 10px;
font-weight: 500;
margin-left: 20px;
color:#... |
src/core/display/App/Navigation/Horizontal/index.js | JulienPradet/pigment-store | import React from 'react'
import CategoryNavigation from './CategoryNavigation'
const Navigation = ({indexCategory, prefix}) => (
<CategoryNavigation category={indexCategory} prefix={prefix} parentPathname={prefix} />
)
export default Navigation
|
react/features/calendar-sync/components/CalendarList.native.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import {
Text,
TouchableOpacity,
View
} from 'react-native';
import { translate } from '../../base/i18n';
import { AbstractPage } from '../../base/react';
import { connect } from '../../base/redux';
import { openSettings } from '../../mobile/permissions';
import { refre... |
paraviewweb/src/React/Properties/MapProperty/KeyValuePair.js | CordyChen/VisMechan | import React from 'react';
import style from 'PVWStyle/ReactProperties/MapProperty.mcss';
export default React.createClass({
displayName: 'KeyValuePair',
propTypes: {
idx: React.PropTypes.number,
label: React.PropTypes.string,
onChange: React.PropTypes.func,
value: React.PropTypes.object,
},
... |
source/PhoneInput.js | halt-hammerzeit/react-phone-number-input | import React from 'react'
import PropTypes from 'prop-types'
import usePhoneDigits from './usePhoneDigits'
function PhoneInput({
Component,
country,
defaultCountry,
useNationalFormatForDefaultCountryValue,
value,
onChange,
metadata,
international,
withCountryCallingCode,
...rest
}, ref) {
// "Phone digits"... |
src/components/TableOfContents/TableOfContents.js | hologram-io/docs | import React from 'react'
import {Link} from '../'
class TableOfContents extends React.PureComponent {
constructor(props) {
super(props);
}
render() {
const { tocData = [] } = this.props;
return (
<div className="toc">
{tocData.map((group, i) => (
<div className="lin... |
src/svg-icons/device/screen-rotation.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenRotation = (props) => (
<SvgIcon {...props}>
<path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c... |
examples/js/selection/single-select-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
pages/about.js | uraway/CreditChecking | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
import FlatButton from 'material-ui/lib/flat-button';
import FontIcon from 'material-ui/lib/font-icon';
import { TwitterButton... |
android/rn/src/ui/cmntList/index.js | skyujilong/native-rn | //评论列表部分
'use strict';
import React from 'react';
import {
View,
Text,
Alert,
Button,
Image,
TouchableOpacity
} from 'react-native';
import './reducer';
import {connect} from 'react-redux';
import styles from './css/style';
import {goReplyList,disableGoReplyList} from './action';
class CmntLis... |
Example/index.android.js | pocesar/react-native-sim | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import RNSimData from 'react-native-sim-data'
export default class Example extends Component {
render() {
... |
techCurriculum/ui/solutions/4.1/src/components/Title.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* 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... |
src/svg-icons/av/volume-down.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeDown = (props) => (
<SvgIcon {...props}>
<path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"/>
</SvgIcon>
);
AvVolumeDown = pure(AvVolumeDown);
AvVolumeD... |
app/components/ActionBar/ControlBetRaise.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import ActionButton from './ActionButton';
import {
ALL_IN,
BET_SET,
BET,
} from '../../containers/ActionBar/actions';
const ControlBetRaise = (props) => {
const {
amount,
amountToCall,
minRaise,
myStack,
sliderOpen,
} = pro... |
src/js/components/icons/base/DriveCage.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... |
_site/src/components/header/settings-dialog.js | eemp/elasticsearch-scribe | import React from 'react'
import Dialog from 'material-ui/lib/dialog'
import RaisedButton from 'material-ui/lib/raised-button'
import RadioButton from 'material-ui/lib/radio-button'
import RadioButtonGroup from 'material-ui/lib/radio-button-group'
import Toggle from 'material-ui/lib/toggle'
class SettingsDialog exten... |
src/common/containers/SiteCreate.js | strekmann/samklang | import React from 'react';
import { Grid, Row, Col, Input, Button } from 'react-bootstrap';
import { connect } from 'react-redux';
import { createSite } from '../actions/sites';
class SiteCreate extends React.Component {
constructor(props) {
super(props);
this.onCreate = this.onCreate.bind(this);
... |
src/components/Links.js | ysaaron/react-collapse-tree | import React from 'react';
import { TransitionMotion, spring } from 'react-motion';
import d3 from 'd3';
const diagonal = d3.svg.diagonal().projection((d) => { return [d.y, d.x]; });
export default class Links extends React.Component {
constructor(props) {
super(props);
this.willEnter = this.willEnter.bind... |
packages/node_modules/@webex/react-component-activity-system-message/src/index.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {FormattedMessage} from 'react-intl';
import CallDataActivityMessage from '@webex/react-component-call-data-activity';
import messages from './messages';
import styles from './styles.css';
// eslint-disable-nex... |
app/containers/Login/index.js | thecodingwhale/conduit-clone | /**
*
* Login
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { push } from 'react-router-redux';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { createStructuredSelector } from 'reselect';
import { com... |
src/theme/template/NotFound.js | td-ui/td-ui.github.io | /**
* @Author: Zhengfeng.Yao <yzf>
* @Date: 2017-06-12 11:29:45
* @Last modified by: yzf
* @Last modified time: 2017-06-12 11:29:47
*/
import React from 'react';
import { Link } from 'react-router';
import * as utils from './utils';
export default function NotFound({ location }) {
return (
<div id="pag... |
showcase/axes/custom-axis.js | Apercu/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, 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, modify... |
app/javascript/mastodon/features/explore/tags.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag';
import LoadingIndicator from 'mastodon/components/loading_indicator';
import { connect } from 'react-redux';
import { fetc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.