path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/esm/components/form/field/components/radio-set.js | KissKissBankBank/kitten | import React from 'react';
import { RadioSet } from '../../../form/radio-set';
export var FieldRadioSet = function FieldRadioSet(props) {
return /*#__PURE__*/React.createElement("div", {
className: "k-u-margin-top-single"
}, /*#__PURE__*/React.createElement(RadioSet, props));
}; |
src/index.js | jessicamvs/blog | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise';
import reducers from './reducers';
import PostsIndex from './c... |
wrappers/yaml.js | elliotec/LnL | import React from 'react'
import yaml from 'js-yaml'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
... |
js/jqwidgets/demos/react/app/chart/donutseries/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let data_source_mobile =
{
datatype: 'csv',
datafields: [
{ name: '... |
src/svg-icons/device/wifi-lock.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWifiLock = (props) => (
<SvgIcon {...props}>
<path d="M20.5 9.5c.28 0 .55.04.81.08L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l12 16 3.5-4.67V14.5c0-2.76 2.24-5 5-5zM23 16v-1.5c0-1.38-1.12-2.5-2.5-2.5S18 13.... |
src/modules/connect/connectDetail/components/ConnectDetailImageBox.js | Florenz23/sangoo_04 |
import React, { Component } from 'react';
import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text, Thumbnail, Left, Right, Body } from 'native-base';
import { View } from 'react-native'
import styles from '../../styles/imageBox';
import realm from '../../db_ini'
import { findInDb, findInDbTag... |
src/client/story.js | Drooids/hacker-menu | import React from 'react'
export default class Story extends React.Component {
markAsRead () {
this.props.onMarkAsRead(this.props.story.id)
}
openUrl (url) {
this.props.onUrlClick(url)
}
handleYurlOnClick (e) {
e.preventDefault()
this.openUrl(this.props.story.yurl)
}
handleByOnClick (e... |
src/svg-icons/content/gesture.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentGesture = (props) => (
<SvgIcon {...props}>
<path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.... |
app/views/components/item-column/no-search-results.js | jeffreymoya/sprintly-kanban | import React from 'react';
import FilterActions from '../../../actions/filter-actions';
import ProductStore from '../../../stores/product-store';
var NoSearchResults = React.createClass({
propsTypes: {
product: React.PropTypes.object.isRequired
},
clearFilters() {
let product = ProductStore.getProduct(... |
client/scripts/components/config/questionnaire-config/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
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
Lic... |
src/main/resources/assets/javascripts/app.js | AdRoll/airpal | /**
* App Bootstrap
*/
import 'es6-shim';
import 'whatwg-fetch';
import AirpalApp from './components/AirpalApp.jsx';
import React from 'react';
// Start the main app
React.render(
<AirpalApp />,
document.querySelector('.js-react-app')
);
|
client/showDevTools.js | auth0-extensions/auth0-user-invite-extension | import React from 'react';
import { render } from 'react-dom';
import DevTools from './containers/DevTools';
module.exports = (store) => {
const popup = window.open(null, 'Redux DevTools', 'menubar=no,location=no,resizable=yes,scrollbars=no,status=no');
popup.location.reload();
setTimeout(() => {
popup.docu... |
tilapp/src/containers/Scenes/Book/Index/index.js | tilap/tilapp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Alert } from 'react-native';
import { View, Container, Content } from 'native-base';
import merge from 'deep-assign';
import BookSheet from '~/components/BookSheet/';
import FooterAction from '~... |
react-dev/containers/header.js | DeryLiu/DeryLiu.github.io | import React, { Component } from 'react';
import classnames from 'classnames';
import { connect } from 'react-redux';
import AppBar from 'material-ui/AppBar';
import { fetchSiteInfo } from '../actions/index';
import Menu from '../components/menu';
import { RightBar } from '../components/right_menu_bar';
class Heade... |
src/routes/admin/index.js | MxMcG/tourlookup-react | /**
* 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 Layout from '../../co... |
frontend/src/Routes.js | cthit/singIT | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Start from './components/start';
import App from './App';
const routes = (
<Route path="/" component={App}>
<IndexRoute component={Start}/>
</Route>
);
export default routes; |
packages/material-ui-icons/src/FastRewind.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FastRewind = props =>
<SvgIcon {...props}>
<path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z" />
</SvgIcon>;
FastRewind = pure(FastRewind);
FastRewind.muiName = 'SvgIcon';
export default FastRewind... |
examples/counter/containers/CounterApp.js | witer5/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/src/main/js-surface-react-native.js | mcjazzyfunky/js-surface | import adaptReactifiedDefineComponent from './adaption/adaptReactifiedDefineComponent';
import Config from './config/Config';
import ElementInspector from './helper/ElementInspector';
import React from 'react';
import ReactNative from 'react-native';
const
defineComponent = adaptReactifiedDefineComponent({
... |
src/Portal.js | glortho/react-overlays | import React from 'react';
import mountable from 'react-prop-types/lib/mountable';
import ownerDocument from './utils/ownerDocument';
import getContainer from './utils/getContainer';
/**
* The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
* You can think of i... |
src/tabsets/TabsetsListItem.js | dash-/netjumpio-tabs-web | ///
// Dependencies
///
import React, { Component } from 'react';
import * as types from './types';
import CardsListItem from '../elements/CardsListItem';
import ButtonsList from '../elements/ButtonsList';
import ButtonsListMenu from '../elements/ButtonsListMenu';
import ButtonsListMenuItem from '../elements/Buttons... |
server/priv/js/components/Duration.react.js | alinpopa/mzbench | import React from 'react';
import moment from 'moment';
class Duration extends React.Component {
constructor(props) {
super(props);
this.state = { duration: this._calculate(props.bench), timeout: undefined };
}
componentDidMount() {
this._createTimer(this.props.bench);
}
c... |
src/views/pages/Errors/NotFound/index.js | munza/react-reducks-starter | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { routeTo } from '../../../../utils';
import './styles.css';
class NotFoundPage extends Component {
render() {
return (
<div className="error">
<div className="error-header">
<h1>404 Not Found</h1>... |
app/Resources/reactcory/src/components/App.js | zlatko58/symfony-react | /* eslint-disable import/no-named-as-default */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/contactsActions';
import MuiThemeProvider from "material-ui/styles/MuiThemePr... |
egghead.io/create-react-app/src/Lifecycle.js | andrisazens/learning_react | import React, { Component } from 'react';
import ReactDom from 'react-dom';
class App extends Component {
constructor() {
super();
this.state = { val: 0 }
this.update = this.update.bind(this)
}
update() {
this.setState({ val: this.state.val + 1 });
}
componentWillMou... |
src/index.js | CCSF-Coders/CampusConnect | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
const root = document.getElementById('root');
ReactDOM.render(
<App />,
root
);
if (module.hot) {
module.hot.accept('./components/App', () => {
const NextApp = require('./components/App').default
ReactDOM.r... |
examples/huge-apps/routes/Course/components/Nav.js | chunwei/react-router | import React from 'react';
import { Link } from 'react-router';
import AnnouncementsRoute from '../routes/Announcements';
import AssignmentsRoute from '../routes/Assignments';
import GradesRoute from '../routes/Grades';
const styles = {};
styles.nav = {
borderBottom: '1px solid #aaa'
};
styles.link = {
display: ... |
components/DoneButton.ios.js | FuYaoDe/react-native-app-intro | import React from 'react'
import {
Text,
View,
TouchableOpacity,
Animated
} from 'react-native';
export const DoneButton = ({
styles, onDoneBtnClick, onNextBtnClick,
rightTextColor, isDoneBtnShow,
doneBtnLabel, nextBtnLabel,
doneFadeOpacity, skipFadeOpacity, nextOpacity
}) => {
return (
<View sty... |
docs/src/app/components/pages/components/SvgIcon/ExampleSimple.js | pomerantsev/material-ui | import React from 'react';
import {blue500, red500, greenA200} from 'material-ui/styles/colors';
import SvgIcon from 'material-ui/SvgIcon';
const iconStyles = {
marginRight: 24,
};
const HomeIcon = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
</SvgIcon>
);
const SvgIco... |
docs/src/sections/BadgeSection.js | Terminux/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function BadgeSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
src/app/components/task/Task.js | meedan/check-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { FormattedMessage } from 'react-intl';
import config from 'config'; // eslint-disable-line require-path-exists/exists
import Box from '@material-ui/core/Box';
import Button from '@material-ui/c... |
src/components/TodoApp.js | jhegedus42/egghead-redux-playaround | // @flow
import {AddTodo} from './AddTodo.js'
import React from 'react';
import {VisibleTodoList} from './VisibleTodoList.js'
import {Footer} from './Footer.js'
import {Provider} from 'react-redux';
export const TodoApp = () :React$Element<any> => {
return (
<div>
<AddTodo />
<VisibleTodoList... |
packages/icons/src/md/device/WifiLock.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdWifiLock(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M41 19c.56 0 1.09.08 1.63.16L48 12c-6.69-5.02-15-8-24-8S6.69 6.98 0 12l24 32 7-9.33V29c0-5.52 4.48-10 10-10zm5 13c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2H36... |
website/components/Navbar/utils/makeSection.js | naustudio/keystone | import React from 'react';
import Item from '../Item';
export default function makeSection (currentPath, layer, depth) {
return layer.map((section, idx) => {
const sectionStyles = depth === 1 ? styles.section : styles.subsection;
return (
<ul key={idx} css={[styles.menu, styles[`menu_depth_${depth}`]]}>
<... |
src/TabbedArea.js | zanjs/react-bootstrap | import React from 'react';
import Tabs from './Tabs';
import TabPane from './TabPane';
import ValidComponentChildren from './utils/ValidComponentChildren';
import deprecationWarning from './utils/deprecationWarning';
const TabbedArea = React.createClass({
componentWillMount() {
deprecationWarning(
'TabbedA... |
5.1.3/src/index.js | erikras/redux-form-docs | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import store from 'redux/store'
import DevTools from './components/DevTools'
import component from './routes'
import Perf from 'react-addons-perf'
import devToolsEnabled from './devToolsEnabled'
const dest = document.ge... |
src/components/review_widget_component.js | allenyin55/reading_with_Annie | import React from 'react';
import moment from 'moment-timezone';
import { Link } from 'react-router';
const ReviewWidget = ({ review, reviewer, profile,uniqueKey, onDeleteReview}) =>{
const PSTTime =moment.tz(review.dateedited, "Zulu").tz("America/Los_Angeles").format();
if (reviewer.name === profile.name) {
... |
example/redux/src/components/SignUp.js | iansinnott/react-static-webpack-plugin | /* @flow */
import React from 'react';
import classnames from 'classnames/bind';
import s from './SignUp.styl';
const cx = classnames.bind(s);
export class LogIn extends React.Component {
render() {
return (
<div className={cx('page')}>
<div className={cx('siteTitle')}>
<h1>Log In</h1>
... |
src/index.js | CyberThugs/JavaScript-Applications-Team-Project | ///////////////////////////////////////////
// jquery and tether for bootstrap to use
// alternative is to link them in index.html
import jquery from 'jquery';
window.$ = window.jQuery = jquery;
window.Tether = require('tether');
require('bootstrap/dist/js/bootstrap');
import configureStore from './store/configureStor... |
docs/app/Examples/modules/Dropdown/Types/DropdownExamplePointingTwo.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Dropdown, Menu } from 'semantic-ui-react'
const DropdownExamplePointingTwo = () => (
<Menu vertical>
<Menu.Item>
Home
</Menu.Item>
<Dropdown text='Messages' pointing='left' className='link item'>
<Dropdown.Menu>
<Dropdown.Item>Inbox</Dropdown.Item>
... |
src/components/Profiles/ShareFamilyProfile.js | RahulDesai92/PHR | import React, { Component } from 'react';
import { Text,
View,
StyleSheet,
ActivityIndicator,
Image,
ScrollView,
KeyboardAvoidingView ,
TouchableOpacity
} from 'react-native';
import { NavigationActions } from 'react-navigation';
import customsty... |
src/containers/WorldsBetween.js | mattschwartz/mattschwartz | import React from 'react'
import StoneQuest from '../components/StoneQuest/StoneQuest'
import '../styles/worldsBetween.css'
import backgroundImage from '../res/stonequestPreview.png'
class WorldsBetween extends React.Component {
componentDidMount() {
document.title = 'Worlds Between Blood'
}
ren... |
tp-4/euge/src/pages/home/HomePage.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import { Layout, Icon } from 'antd';
const { Header, Content } = Layout;
const HomePage = () => (
<Layout>
<Header style={{ background: '#fff', padding: 0 }}>
<Icon
className="trigger"
/>
</Header>
<Content style={{ margin: '24px 16px', padding: 24, backgrou... |
src/components/CityList.js | tienwei/weather-app | import React from 'react';
import PropTypes from 'prop-types';
import City from './City';
import './CityList.css';
const CityList = ({isFetching, cities = [], error = null}) => {
let resultView;
if(error) {
resultView = <tr><td colSpan={3}><b style={{color: 'red'}}>{error.message}</b></td></tr>;
} else {
... |
assets/jqwidgets/demos/react/app/grid/positioning/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js';
class App extends React.Component {
componentDidMount() {
this.refs.top.on('checked', () => {
... |
src/svg-icons/editor/border-left.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderLeft = (props) => (
<SvgIcon {...props}>
<path d="M11 21h2v-2h-2v2zm0-4h2v-2h-2v2zm0-12h2V3h-2v2zm0 4h2V7h-2v2zm0 4h2v-2h-2v2zm-4 8h2v-2H7v2zM7 5h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2V3H3v18zM19 9h2V7h-2v2z... |
src/containers/SecurityCheckerPage.js | great-design-and-systems/cataloguing-app | import * as actions from '../actions/SecurityActions';
import PropTypes from 'prop-types';
import React from 'react';
import { bindActionCreators } from 'redux';
import { browserHistory } from 'react-router';
import { connect } from 'react-redux';
export class SecurityCheckerPage extends React.Component {
constru... |
enrolment-ui/src/modules/Projects/ProjectTerminationModal.js | overture-stack/enrolment | import React from 'react';
import { connect } from 'react-redux';
import { Modal } from 'react-bootstrap';
import { withRouter } from 'react-router-dom';
import { toggleProjectTerminationModal } from './redux';
import ModalTerminationForm from './components/ModalTerminationForm';
import { fetchProjects, terminateProj... |
frontend/client/index.js | rkuykendall/weeklypulls | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
import Store from './store';
const store = new Store();
ReactDOM.render(<App store={store} />, document.getElementById('root'));
|
gui/src/app/containers/loading-spinner-container.js | mbonvini/LambdaSim | import React from 'react';
import { connect } from 'react-redux';
import LoadingSpinner from '../components/loading-spinner';
import log from 'loglevel';
const LoadingSpinnerContainer = React.createClass({
render: function() {
return (
<LoadingSpinner loading={this.props.loading}/>
);
}
});
const ... |
src/components/droptoolbutton/Droptoolbutton.js | Convicted202/PixelShape | import './droptoolbutton.styl';
import React, { Component } from 'react';
import decorateWithKeyBindings from '../../helpers/KeyBindings';
import classNames from 'classnames';
import { toolHotkeys } from '../../defaults/tools';
// TODO: might need to use more generic reusable Toolbutton.js component
// for active but... |
src/svg-icons/device/battery-90.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery90 = (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.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
src/main/resources/code/react/Apps/ManageRadars/Pages/ManageAssociatedRadarTemplatesPage/index.js | artieac/technologyradar | import React from 'react';
import ReactDOM from 'react-dom';
import Reflux from 'reflux';
import createReactClass from 'create-react-class';
import { connect } from "react-redux";
import { addAssociatedRadarTemplatesToState, addSharedRadarTemplatesToState, addSelectedRadarTemplateToState } from '../../redux/RadarTempla... |
reactJS/my-music-player-project/src/components/MusicPlayer.js | CoderKevinZhang/web-front-end-practice | import React from 'react';
// set duration of current music
let duration = '-';
class MusicPlayer extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: '-'
};
this.changeProgress = this.changeProgress.bind(this);
}
componentDidMount() {
$('#play').bi... |
samples/react/app/components/Header/index.js | IntelliSearch/search-client | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
/* eslint-disable react/prefer-stateless-function */
class... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/index.js | thusithak/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/components/controller.js | LaserWeb/lw.controller | // Copyright 2017 Todd Fleming
//
// 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 dist... |
src/svg-icons/image/filter-vintage.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterVintage = (props) => (
<SvgIcon {...props}>
<path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9... |
examples/reset-values/app.js | yesmeck/formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import { Form } from 'formsy-react';
import MyInput from './../components/Input';
import MySelect from './../components/Select';
const user = {
name: 'Sam',
free: true,
hair: 'brown'
};
const App = React.createClass({
submit(data) {
alert(JSON.... |
src/containers/NotFound/NotFound.js | madeagency/reactivity | // @flow
import React from 'react'
import Helmet from 'react-helmet'
import Status from 'components/RouterStatus/Status'
const NotFound = () => (
<Status code={404}>
<div>
<Helmet
title="Not Found"
meta={[{ name: 'description', content: 'Not Found' }]}
/>
<h1>This Page is no lo... |
src/App.js | Marcoga/react-dnd-test | import React, { Component } from 'react';
import Person from './components/Person';
import Classroom from './components/Classroom';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import { DragDropContext } from 'react-dnd';
require('../node_modules/bootstrap/dist/css/bootstrap.min.css');
@DragDropContex... |
ui/js/pages/form/FormDate.js | ericsoderberg/pbc-web | import React from 'react';
import PropTypes from 'prop-types';
import FormField from '../../components/FormField';
import DateInput from '../../components/DateInput';
const FormDate = (props) => {
const { error, field, formTemplateField, onChange } = props;
return (
<FormField label={formTemplateField.name}
... |
src/svg-icons/social/pages.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPages = (props) => (
<SvgIcon {...props}>
<path d="M3 5v6h5L7 7l4 1V3H5c-1.1 0-2 .9-2 2zm5 8H3v6c0 1.1.9 2 2 2h6v-5l-4 1 1-4zm9 4l-4-1v5h6c1.1 0 2-.9 2-2v-6h-5l1 4zm2-14h-6v5l4-1-1 4h5V5c0-1.1-.9-2-2-2z"/... |
src/core/Module.js | gianmarcotoso/redux-seed | import React from 'react'
class Module {
constructor(name, reducer, routes) {
const _name = name
Object.defineProperty(this, 'name', {
enumerable: true,
get: () => _name
})
const _reducer = reducer
Object.defineProperty(this, 'reducer', {
enumerable: true,
get: () => _reducer
})
const _rou... |
src/routes/dashboard/components/browser.js | hhj679/mybition-web | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Tag } from 'antd'
import styles from './browser.less'
import { color } from '../../../utils'
const status = {
1: {
color: color.green,
},
2: {
color: color.red,
},
3: {
color: color.blue,
},
4: {
color: color.yel... |
docs/src/GettingStartedPage.js | sheep902/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
import Anchor from './Anchor';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMa... |
src/notebook/components/status-bar.js | 0u812/nteract | /* @flow */
import React from 'react';
import moment from 'moment';
type Props = {
notebook: any,
lastSaved: Date,
kernelSpecDisplayName: string,
executionState: string,
};
export default class StatusBar extends React.Component {
props: Props;
shouldComponentUpdate(nextProps: Props): boolean {
if (th... |
src/Col.js | bvasko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const Col = React.createClass({
propTypes: {
/**
* The number of columns you wish to span
*
* for Extra small devices Phones (<768px)
*
... |
src/App.js | adadesions/jackson-project | import React, { Component } from 'react';
import stringify from 'json-stable-stringify';
import triangulate from 'delaunay-triangulate';
import async from 'async';
import './App.css';
// Components
import Sidebar from './components/Sidebar';
import DisplayScreen from './components/DisplayScreen';
import Footer from '.... |
src/behaviours/autoInitialisedForm.js | codaco/Network-Canvas | import React from 'react';
import PropTypes from 'prop-types';
import { fromPairs, map } from 'lodash';
// TODO: Seems like this knowledge should be part of the field component?
const typeInitalValue = (field) => {
switch (field.type) {
case 'CheckboxGroup':
case 'ToggleGroup':
return fromPairs(map(fie... |
packages/metadata-react/src/FrmSuperLogin/SocialLink.js | oknosoft/metadata.js | import React from 'react';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import TextField from '@material-ui/core/TextField';
import Button from '@material-ui/core/Button';
import Typography from '@material-ui/core/Typography';
import {red, blue} from '@material-ui/core/colors';
im... |
20161210/RN-test/app/test02/myListView1.js | fengnovo/react-native | import React, { Component } from 'react';
import { Text, View, ListView,
RefreshControl,
TouchableHighlight, StyleSheet } from 'react-native';
class MyListView extends React.Component {
constructor(props) {
super(props);
this._onScrollBeginDrag = this._onScrollBeginDrag.bind(this);
this._onScrol... |
react/src/index.js | ozlerhakan/rapid | import React from 'react';
import ReactDOM from 'react-dom';
import HomePage from './components/HomePage';
import '../node_modules/bootstrap/dist/css/bootstrap.min.css'
import '../node_modules/font-awesome/css/font-awesome.min.css'
import './custom.css';
ReactDOM.render(
<HomePage />,
document.getElementById('... |
app/jsx/custom_help_link_settings/CustomHelpLinkMenu.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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... |
app/components/AddCharacter.js | benjaminmbrown/eve-faces | import React from 'react';
import AddCharacterStore from '../stores/AddCharacterStore';
import AddCharacterActions from '../stores/AddCharacterActions';
class AddCharacter extends React.Component{
constructor(props){
super(props);
this.state = AddCharacterStore.getState();
this.onChange = this.onChange.bind(thi... |
src/Parser/BrewmasterMonk/Modules/Spells/IronSkinBrew.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage, formatThousands } from 'common/format';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import S... |
components/Cards/CondensedSpaceCard/CondensedSpaceCard.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import css from './CondensedSpaceCard.css';
import LeftRight from '../../LeftRight/LeftRight';
import FittedImage from '../../FittedImage/FittedImage';
const CondensedSpaceCard = (props) => {
const {
href,
images,
... |
src/containers/ColourPicker/RgbForm.js | colouroscope/colouroscope | import React from 'react'
import { connect } from 'react-redux'
import { setRgbColour, setPreviewColour } from '../../actions/index'
import tinycolor from 'tinycolor2'
const mapStateToProps = ({ picker }) => {
return {
rgb: picker.rgb
}
}
const mergeProps = (stateProps, { dispatch }, ownProps) => {
... |
examples/form/src/index.js | jas-chen/redux | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, bindActionCreators } from 'typed-redux'
import Form from './components/Form'
import form from './reducers'
import { ChangeName, ChangeRemember } from './actions'
const store = createStore(form)
const rootEl = document.getElementById('root... |
src/Interleave/index.js | pinebit/react-cr | import React from 'react';
import PropTypes from 'prop-types';
import Wrapper from '../Wrapper';
const Interleave = ({ separator, first, last, children, ...wrapperProps }) => {
if (!children || !separator) {
return null;
}
const content = [];
children.forEach((child, index) => {
const key = child.key;... |
src/Collapse.js | chilts/react-bootstrap | import React from 'react';
import Transition from 'react-overlays/lib/Transition';
import domUtils from './utils/domUtils';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import createChainedFunction from './utils/createChainedFunction';
let capitali... |
demo/delaunay-color-mesh.js | joelburget/d4 | import React from 'react';
import poissonDiscSampler from 'poisson-disc-sampler';
import {voronoi as d3Voronoi} from 'd3-voronoi';
import {lab} from 'd3-color';
import {polygonCentroid} from 'd3-polygon';
const width = 960;
const height = 500;
const radius = 30;
const sampler = poissonDiscSampler(width, height, radiu... |
app/components/variable-list.js | paulsonnentag/qwery-me | import _ from 'lodash';
import React from 'react';
import {TOKEN} from '../types';
export default class VariableList extends React.Component {
render () {
var {variables, onSelect} = this.props;
return (
<div className="token-list">
{_.map(variables, _.partial(getVariable, onSelect))}
</... |
test/js/AR/release_test/ARObjectMarkerTest.js | viromedia/viro |
/**
* Copyright (c) 2017-present, Viro Media, 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.
*/
import R... |
src/main/js/builder/assets/containers/WagerInput.js | Bernardo-MG/dreadball-toolkit-webpage | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { setWager } from 'builder/assets/actions';
import ObservableNumberInput from 'components/ObservableNumberInput';
import { selectWagers } from 'builder/assets/sel... |
src/components/Test.js | ttrentham/Griddle | import React from 'react';
export default class Test extends React.Component {
render() {
return <div>Hi from component</div>;
}
}
|
test/integration/production/pages/svg-image.js | JeromeFitz/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<h1>SVG with a script tag attempting XSS</h1>
<Image id="img" src="/xss.svg" width="100" height="100" />
<p id="msg">safe</p>
</div>
)
}
export default Page
|
examples/with-aphrodite/pages/index.js | nahue/next.js | import React from 'react'
import { StyleSheet, css } from 'aphrodite'
export default () => (
<div className={css(styles.root)}>
<h1 className={css(styles.title)}>My page</h1>
</div>
)
const styles = StyleSheet.create({
root: {
width: 80,
height: 60,
background: 'white',
':hover': {
bac... |
client/src/Assistant/ApartmentFeatureInputs/RangeSelectionGroup.js | ciex/mietlimbo | // @flow
import React from 'react'
import autoBind from 'react-autobind'
import { intlShape } from 'react-intl'
import './Styles.css'
export type GroupData = {
positive: Array<string>,
negative: Array<string>
};
// Properties passed to a RangeSelectionGroup
type RangeSelectionGroupProps = {
changed: Object => ... |
node_modules/react-router/es6/RouteUtils.js | TarikHuber/react-redux-material-starter-kit | 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 from 'react';
function isValidChild(object) {
... |
app/containers/App/index.js | codermango/BetCalculator | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import Helmet from 'react-helmet';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injec... |
js/src/dapps/signaturereg.js | immartian/musicoin | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
app/react/src/demo/Welcome.js | jribeiro/storybook | import React from 'react';
import PropTypes from 'prop-types';
import glamorous from 'glamorous';
const Main = glamorous.article({
margin: 15,
maxWidth: 600,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
});
const Title = glamorous.h1({});
const Note = g... |
packages/arwes/src/List/List.js | romelperez/prhone-ui | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
export default function List(props) {
const { theme, classes, node, className, children, ...etc } = props;
const cls = cx(classes.root, className);
return React.createElement(node, { className: cls, ...etc }, children);
}... |
src/js/Components/Team/TeamStats.js | dhenson02/fan2c | 'use strict';
import React from 'react';
class TeamStats extends React.Component {
constructor ( props ) {
super(props);
}
shouldComponentUpdate ( nextProps ) {
return nextProps.stats.id !== this.props.stats.id;
}
render () {
let stats = this.props.stats;
let ties... |
example/examples/FitToCoordinates.js | Gogowego/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
TouchableOpacity,
Text,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LA... |
src/svg-icons/hardware/cast.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareCast = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4... |
app/components/SteelDayPage/SteelDayPage.js | tenhaus/bbwelding | import React from 'react';
import Radium from 'radium';
import _ from 'lodash';
import AltActions from '../../actions/AltActions';
import SteelDayStore from '../../stores/SteelDayStore';
import Page from '../Page/Page';
import Style from './_SteelDayPage.Style';
import FlyerImage from './images/Steel_Day_Flyer-01.jp... |
src/routes.js | VolodiaGP/DW_Front | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
Pagination,
Map,
Region,
Search... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | omerts/react-router | import React from 'react';
class Announcement extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//announcement: COURSES[params.courseId].announcements[params.announcementId]
//});
//}
render () {
//var { title, body } = this.props.announcement;
var { courseId, annou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.