path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
stalk-messenger/app/components/PushController.js | JohnKim/stalk.messenger | /**
*
* @flow
*/
'use strict';
import React, { Component } from 'react';
import { Platform } from 'react-native';
import Parse from 'parse/react-native';
import PushNotification from 'react-native-push-notification';
export default class PushController extends Component {
componentDidMount() {
PushNotifi... |
src/issue/screens/pull-merge.screen.js | gitpoint/git-point | /* eslint-disable no-shadow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { View, ScrollView, StyleSheet, TextInput, Alert } from 'react-native';
import { ListItem, Icon } from 'react-native-elements';
import ActionSheet from 'reac... |
core/src/plugins/gui.ajax/res/js/ui/HOCs/selection/providers.js | ChuckDaniels87/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio 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, o... |
src/components/LoginTitleBar/index.js | pprimm/ds-contest-material | import React from 'react'
import {
AppBar,
Toolbar,
Typography
} from 'material-ui'
import styled from 'styled-components'
const LoginWrapper = styled.div`
text-align: left;
margin-top: 50px;
witdh: 100%;
`
const LoginAppBar = styled(AppBar)`
position: fixed;
top: 0px
`
const TitleText = styled(Typogr... |
admin/visitors/SegmentsField.js | romainquellec/cuistot | import React from 'react';
import Chip from 'material-ui/Chip';
import { translate } from 'admin-on-rest';
import segments from '../segments/data';
const styles = {
main: { display: 'flex', flexWrap: 'wrap' },
chip: { margin: 4 },
};
const SegmentsField = ({ record, translate }) => (
<span style={styles.m... |
src/App.js | alexmlong/quadrants | import React, { Component } from 'react';
import {Motion, spring} from 'react-motion';
import _ from 'lodash';
var json = require("json!./creatures.json");
const App = React.createClass({
getInitialState() {
return {
creatures: [],
};
},
componentDidMount() {
var self = this;
setInterval(... |
App.js | gembarrett/hamara-internet-app | import React from 'react';
import { StyleSheet, Text, View, Button, Image, I18nManager } from 'react-native';
import { StackNavigator } from 'react-navigation';
import MenuScreen from './components/menu.js';
import { prefs } from './routes/prefs.js'
import OnlineScreen from './components/online.js';
import DevicesScree... |
src/components/pc_product.js | YMFL/reactNews | /**
* Created by YangQianHui on 2017/4/8.
*/
import React from 'react';
class AppComponent extends React.Component {
render() {
return (
<div>
</div>
);
}
}
AppComponent.defaultProps = {
};
export default AppComponent;
|
bundle-size/fixtures/Portal.size.js | Semantic-Org/Semantic-UI-React | import { Portal } from 'semantic-ui-react'
import React from 'react'
import ReactDOM from 'react-dom'
function App() {
return <Portal trigger={<button>A button</button>}>Some content</Portal>
}
ReactDOM.render(<App />, document.querySelector('#root'))
|
packages/makeen-user/src/mailerTemplates/Layout.js | makeen-project/makeen | import React from 'react';
import PropTypes from 'prop-types';
const Layout = ({ children }) =>
(<html lang="en">
<head>
<meta charSet="utf-8" />
</head>
<body>
{children}
</body>
</html>);
Layout.propTypes = {
children: PropTypes.node.isRequired,
};
export default Layout;
|
scripts/components/PeopleCreate.js | ZucchiniZe/flux-people | import React from 'react';
import Actions from '../actions/Actions';
import Remarkable from 'remarkable';
// Create new markdown renderer
const md = new Remarkable();
// A simple react if component
class If extends React.Component {
render() {
if (this.props.test) {
return this.props.children;
}
... |
src/index.js | boopeshmahendran/simon-game | import React from 'react';
import ReactDOM from 'react-dom';
import {StyleRoot} from 'radium';
import GameBoard from './components/GameBoard';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<StyleRoot><GameBoard /></StyleRoot>, document.getElementById('root'));
regis... |
packages/metadata-react/src/SplitPane/SplitPane.js | oknosoft/metadata.js | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import Prefixer from 'inline-style-prefixer';
import stylePropType from 'react-style-proptype';
import Pane from './Pane';
import Resizer, { RESIZER_DEFAULT_CLASSNAME } from './Resizer';
const DEFAULT_USER_AGENT = 'Mozill... |
src/client.js | BusyginCode/chat | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import { ApolloClient, createNetworkInter... |
src/components/Header.js | MichelML/masaq.com | import React, { Component } from 'react';
import HeaderTitle from './HeaderTitle.js';
import SearchBar from './SearchBar.js';
import SortSection from './SortSection.js';
import '../styles/Header.css';
class Header extends Component {
render() {
return (
<header className="mdl-layout__header wine-bg">
... |
src/components/ClientSection.js | tuanvt/asterixlab | import React from 'react';
import $ from 'jquery';
import { SUBHAND_IMAGE } from './FeatureSection';
var echoesLogo = require('../images/logos/echoes.png');
var hottabLogo = require('../images/logos/hottab-logo.png');
var warblerLogo = require('../images/logos/warbler.jpg');
var wetLogo = require('../images/logos/wet.p... |
src/components/NodeCptStatesThead/index.js | fhelwanger/bayesjs-editor | import React from 'react';
import { statePropTypes } from 'models';
import PropTypes from 'prop-types';
const NodeCptStatesThead = ({ states }) => (
<thead>
<tr>
{states.map(state => (
<th key={state}>{state}</th>
))}
</tr>
</thead>
);
NodeCptStatesThead.propTypes = {
states: PropTyp... |
src/public/components/toolbox/item/file/download.js | Lunik/tcloud | import React from 'react'
import ListItem from '../default'
import { DownloadIcon } from '../../../image/svg'
export default class DownloadToolboxItem extends React.Component {
constructor (props) {
super(props)
this.state = {}
this.initState(props)
}
initState (props) {
Object.assign(this.sta... |
src/components/pages/Application/Application.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {RouteHandler} from 'react-router';
import {slugify} from '../../../utils/strings';
// Flux
import AccountStore from '../../../stores/Account/AccountStore';
import ApplicationStore from '../../../... |
src/app.js | DavidSGK/calendar | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { orange500, grey800 } from 'material-ui/styles/colors';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import createStore from './store';
import Routes from './routes';
import getMuiTheme fr... |
src/components/icons/InfoOutlineIcon.js | austinknight/ui-components | import React from 'react';
const InfoOutlineIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M0 0h24v24H0z" fill="none" />
<path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-... |
app/client/components/store/Store.js | breakfast-mimes/cyber-mimes | import React from 'react';
import Entry from './Entry'
import { weapons, head, body } from '../../data/items.js'
export default class Store extends React.Component {
constructor(props) {
super(props);
this.state = {
weapons,
head,
body
}
}
render(){
let hero = this.props.hero
... |
packages/cf-component-checkbox/src/CheckboxGroup.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import Checkbox from './Checkbox';
import includes from 'lodash/includes';
class CheckboxGroup extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
}
handleChange(value, checked) {
... |
src/MonsterHpBarPop.js | emfmesquita/beyondhelp | import './MonsterHpBarPop.css';
import { Overlay, Popover } from 'react-bootstrap';
import React, { Component } from 'react';
class MonsterHpBarPop extends Component {
static get FadeTime() {
return 2000;
}
render() {
const colorClass = this.props.hpChange > 0 ? "Monster-hp-pop... |
node_modules/react-icons/io/ios-game-controller-b.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosGameControllerB = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m8 16c0.9 0 1.5 0.6 1.5 1.5s-0.6 1.5-1.5 1.5-1.4-0.6-1.4-1.5 0.6-1.5 1.4-1.5z m25.9 3.5c1.6 6.8 1.4 11.8-0.5 12.8-0.4 0.1-0.7 0.2-1.1 0.2-1.7 0-3.5-1.9-5.3... |
Rosa_Madeira/Revendedor/src/components/common/Input.js | victorditadi/IQApp | import React, { Component } from 'react';
import { TextInput, View, Text } from 'react-native';
const Input = ({ label, value, onChangeText, placeholder, secure }) => {
const { inputStyle, labelStyle, containerStyle } = styles;
return (
<View style={containerStyle}>
<Text style={labelStyle}>{label}</Te... |
plant/src/components/Welcome.js | opopeieie/plant-static | import React from 'react'
import { Link } from 'react-router'
import Logon from './logon'
/**
* 本组件为欢迎页(首页)
* 由于几乎没有交互逻辑
* 因此可以不使用类的写法
*
* 实际上,ES6 的类经由 Babel 转码后
* 其实还是返回一个类似的函数
*/
const Welcome = () => (
<div className="row">
<div className="medium-8 columns">
<h1>欢迎使用 <br/> 我是占位符我是占位符我是占位符我是... |
app/components/main/PageDisplay.js | BenGoldstein88/hitch-frontend | import React from 'react';
import styles from '../../styles/indexStyles'
// import FileUploadForm from '../venue/FileUploadForm'
import Typist from 'react-typist';
import PageDisplayVenue from './PageDisplayVenue'
import PageDisplayMain from './PageDisplayMain'
export default class PageDisplay extends React.Component ... |
src/svg-icons/social/plus-one.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPlusOne = (props) => (
<SvgIcon {...props}>
<path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/>
</SvgIcon>
);
SocialPlusOne = pure(SocialPlusOne);
SocialPlusOne.displayName = 'Social... |
pootle/static/js/editor/components/EditorPluralFormHeader.js | unho/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 { t } from 'utils/i18n'... |
client/src/components/dashboard/Community/CertLinks.js | FCC-Alumni/alumni-network | import { Icon } from './SocialLinks';
import propTypes from 'prop-types';
import React from 'react';
const FCC_URL = "https://freecodecamp.org/";
const CertLinks = ({ handleClick, fccCerts, username }) => {
return(
<div className="right floated">
<span>
{ fccCerts.Front_End &&
<a
... |
tndata_backend/chat/static/react-chat/src/components/chat.js | tndatacommons/tndata_backend | import _ from 'lodash';
import moment from 'moment';
import React, { Component } from 'react';
import Websocket from './websocket';
import AutoLinkText from 'react-autolink-text';
import ChatForm from './chat_form'
import { slugify, extractVideo } from './utils';
export default class Chat extends Component {
co... |
src/theme/template/IconSet/CopyableIcon.js | td-ui/td-ui.github.io | /**
* @Author: Zhengfeng.Yao <yzf>
* @Date: 2017-07-19 10:47:12
* @Last modified by: yzf
* @Last modified time: 2017-07-19 10:47:13
*/
import React from 'react';
import CopyToClipboard from 'react-copy-to-clipboard';
import { Icon } from 'td-ui';
export default class CopyableIcon extends React.Component {
... |
src/routes.js | nick-ng/nick-blog-frontend | import React from 'react';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import App from './components/App';
import BlogContainer from './containers/blog-container';
import PostEditorContainer from './containers/post-editor-containe... |
src/components/Navigation/index.js | marcneander/marcneander.se | import React from 'react';
import { Link } from 'gatsby';
import styled from 'styled-components';
import { scaleX } from '../../utils/cssAnimations';
import { colors } from '../../utils/cssVariables';
const NavWrap = styled.div`
display: inline-block;
`;
const NavLink = styled(Link)`
display: inline-block;
... |
src/index.js | kriswinbush/reactchat | import React from 'react';
import ReactDom, {render} from 'react-dom';
import {BrowserRouter} from 'react-router-dom';
import App from './components/App.jsx';
import injectTapEventPlugin from 'react-tap-event-plugin';
import * as mobx from 'mobx'
import { Provider } from 'mobx-react';
import stores from './stores';
imp... |
src/svg-icons/maps/local-atm.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1... |
docs/src/components/Docs/Props/MentionProp/index.js | michalko/draft-wyswig | import React from 'react';
import Codemirror from 'react-codemirror';
export default () => (
<div>
<h3>Enabling mentions</h3>
<div className="docs-desc">
Mentions can be enabled in the editor as showed in example below.
separator is character that separates a mention from word preceding it, defa... |
src/view/ApplyView.js | kokokele/reactjs-demo | import React from 'react';
var Router = require('react-router');
var {
Route,
DefaultRoute,
NotFoundRoute,
RouteHandler,
Link
} = Router;
var Apply = React.createClass({
render:function(){
return (
<div>
申请
</div>
)
}
});
module.exports = Apply
|
src/components/Footer/Footer.js | philbot9/youtube-comment-scraper-2.0 | import React from 'react'
import './Footer.scss'
export const Footer = () => {
const year = (new Date()).getFullYear()
return (
<div className='footer container'>
<hr />
<a className='small' href='http://philip.klostermann.ca' target='_blank'>
© {year} Philip Klostermann
</a>
... |
webpack/scenes/RedHatRepositories/components/RepositorySetRepositories.js | Katello/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Alert, Spinner } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import loadRepositorySetRepos from '../../../redux/actions/RedHatRepositories/repositorySet... |
src/app/routes.js | elgatoylacaja/Kandel | import React from 'react'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import Splash from './splash'
import Level from './level'
import Levels from './levels'
import Stats from './stats'
import Tutorial from './tutorial'
import Tutorials from './tutorials'
import Practice from './practice'
... |
test/helpers/shallowRenderHelper.js | skyline10101/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/svg-icons/alert/warning.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertWarning = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
AlertWarning = pure(AlertWarning);
AlertWarning.displayName = 'AlertWarning';
Aler... |
src/icons/BackspaceIcon.js | WiaczeslawP/react-screen-keyboard | import React from 'react';
const BackspaceIcon = ({viewBox = '0 0 24 24', width = 24, height = 24, fill,}) =>
<svg {...{width, height, fill, viewBox}}>
<path fill="currentColor" d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 ... |
src/components/ImageContainer.js | lxgreen/flickr-viewr | import React, { Component } from 'react';
import {PropTypes} from 'prop-types';
import ImageTile from './ImageTile';
class ImageContainer extends Component {
render() {
const {store} = this.context;
const {images, activeId} = store.getState();
return (
<div>
{ ima... |
src/svg-icons/av/library-books.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLibraryBooks = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1... |
src/demo/index.js | maheshsenni/react-treelist | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('tree'));
|
src/client/lib/logRenderTime.js | AlesJiranek/este | import Component from 'react-pure-render/component';
import React from 'react';
// When UI renders thousands components, it's useful to check render time.
// Example:
// @logRenderTime
// export default class App extends Component {}
export default function logRenderTime(BaseComponent) {
return class LogRenderTim... |
src/components/common/complexTransition.js | BryceHQ/form-designer | import React from 'react';
import _ from 'lodash';
import {TransitionMotion, spring} from 'react-motion';
const _springConfig = {
slow: {stiffness: 40, damping: 12},
soft: {stiffness: 80, damping: 12},
sharp: {stiffness: 200, damping: 25},
fast: {stiffness: 220, damping: 12},
};
const _transitionConfig = {
... |
src/components/ruby/original-wordmark/RubyOriginalWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './RubyOriginalWordmark.svg'
/** RubyOriginalWordmark */
function RubyOriginalWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'RubyOri... |
src1/common/messageComponent/view/Message.react.js | Cron-J/CSV-RE | import React from 'react';
import * as MessageAction from '../actions/messageActions';
import NotificationSystem from 'react-notification-system';
import { Button, Modal } from 'react-bootstrap';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
class Message extends React.Component {
... |
src/svg-icons/device/storage.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceStorage = (props) => (
<SvgIcon {...props}>
<path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/>
</SvgIcon>
);
DeviceStorage = pure(DeviceStorage);
DeviceS... |
src/svg-icons/image/image-aspect-ratio.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageImageAspectRatio = (props) => (
<SvgIcon {...props}>
<path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H... |
node_modules/react-icons/fa/lemon-o.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaLemonO = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m34.4 18.4q0-0.9-0.1-2.5t-0.5-2.1q-0.2-0.7-0.3-1t-0.2-0.8-0.1-1.1q0-0.5 0.1-1.6t0.1-1.5q0-0.8-0.2-1.2-0.1 0-0.3 0-0.4 0-1.3 0.1t-1.3 0.1q-1.4 0-4-0.5t-3.9-0.6q-0.9 0-2... |
src/svg-icons/image/landscape.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLandscape = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageLandscape = pure(ImageLandscape);
ImageLandscape.displayName... |
src/components/Main.js | lancespears/profile-maker | import React from 'react';
import { connect } from 'react-redux';
import Navigator from './Navigator';
export default class Main extends React.Component {
render() {
return (
<div>
<Navigator/>
{this.props.children}
</div>
);
}
}
|
html/dev/lib/showAll.js | scott-fleischman/greek-grammar | import React from 'react';
import R from 'ramda';
import { Button } from 'react-bootstrap';
const ShowAllButton = ({showAllLoading, handleShowAll}) => {
const text = showAllLoading ? 'Loading…' : 'Show all (may take a while)';
return (
<div className="showAllButton">
<Button onClick={() => handleShowAll(... |
src/views/CourseList.js | kimf/golfstats_client_react_redux_immutable | import React from 'react';
import Listing from 'views/Listing';
export default class CourseList extends Listing {
constructor(props) {
super(props);
this.itemType = 'course';
this.title = 'What course?';
this.back = <a className="goback btn block" href="#" onClick={() => ::this.resetChoice('club')}>&... |
public/components/tehtPage/tabsComponents/reusables/PohjaStreetView.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { Carousel } from 'react-bootstrap';
const staticStreetUrl1 = 'https://maps.googleapis.com/maps/api/streetview?size=600x400&location=';
const staticStreetUrl2 = '&fov=90&heading=235&pitch=10&key=AIzaSyCIr0jpTVj-s9pNn35kb4M4V3jyTFnsevc&format=png&visual_refresh=true';
/*const PohjaStr... |
src/svg-icons/hardware/mouse.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareMouse = (props) => (
<SvgIcon {...props}>
<path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/>
</SvgIcon>
);
HardwareMouse =... |
client/src/components/Views.js | ViDA-NYU/domain_discovery_tool | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import SwipeableViews from 'react-swipeable-views';
import Checkbox from 'material-ui/Checkbox';
import Scatterplot from './Scatterplot'
import {csv} from 'd3-request'
import Highlighter from 'react-highlight-words';
import {List, ListItem} from ... |
[4]. Project/DianShang/Component/Mine/SJMineHeaderView.js | knightsj/RN_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
Platform
} from 'react-native';
var Dimensions = require('Dimensions');
var {width} = Dim... |
src/features/not-found/index.js | ByndyuSoft/ui.embryo | import React from 'react';
import styles from './index.scss';
export default () => <h1 className={styles.message}>404: Not Found</h1>;
|
webui/components/account/FormChangePassword.js | stiftungswo/izivi_relaunch | import React from 'react';
import AutoField from 'uniforms-semantic/AutoField';
import SubmitField from 'uniforms-semantic/SubmitField';
import ErrorsField from 'uniforms-semantic/ErrorsField';
import AutoForm from 'uniforms-semantic/AutoForm';
const FormChangePassword = formProps => (
<AutoForm {...formProps} >
... |
app/javascript/mastodon/features/account/components/header.js | Craftodon/Craftodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Motion from '../../ui/util/optional_motion';
import sprin... |
src/svg-icons/alert/add-alert.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertAddAlert = (props) => (
<SvgIcon {...props}>
<path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v... |
src/layouts/PageLayout/PageLayout.js | learningnewthings/funfunapp | import React from 'react'
import { IndexLink, Link } from 'react-router'
import PropTypes from 'prop-types'
import './PageLayout.scss'
export const PageLayout = ({ children }) => (
<div className='container text-center'>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='page-layout__nav-ite... |
src/components/Table.js | pascalduez/react-proptable | // @flow
import React from 'react';
import get from 'lodash.get';
import type { Property, Properties } from '../types';
type Props = {
properties: Properties,
className?: string,
};
export default function Table({ properties, className }: Props) {
return (
<table className={className}>
<thead>
... |
docs/app/Examples/collections/Table/Types/TableExampleCollapsing.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Header, Image, Table } from 'semantic-ui-react'
const TableExampleCollapsing = () => {
return (
<Table basic='very' celled collapsing>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Employee</Table.HeaderCell>
<Table.HeaderCell>Correct Guesses</T... |
src/components/Forms/TextInput.js | josedigital/koala-app | import React from 'react'
const TextInput= (props) => {
return (
<div className="form-element">
<label htmlFor={props.name} className="form-label">{props.label}</label>
<input
className={props.classes}
type={props.inputType}
name={props.name}
value={props.content} ... |
src/parser/paladin/protection/modules/spells/HammerOfTheRighteous.js | fyruna/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import Abilities from 'parser/core/modules/Abilities';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import SPELLS from 'common/S... |
nlyyAPP/component/受试者随机/新增筛选失败受试者/MLXzsxsbsszQR.js | a497500306/nlyy_APP |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ListView,
Alert,
DatePickerAndroid,
TouchableHighlight,
DatePickerIOS,
Picker,
ActivityIndicator,
} from 'react-native';
//时间操作
var moment = require(... |
src/views/Routes.js | eventhough/hapi-universal-redux | import React from 'react';
import {Route} from 'react-router';
import AppContainer from 'containers/AppContainer';
import Main from 'views/Main';
/**
* The React Routes for both the server and the client.
*
* @class Routes
*/
export default (
<Route handler={AppContainer}>
<Route path="/" name="main" handler={M... |
src/ContentBlocks/BlockImage/BlockImagePreview.js | grommet/grommet-cms-content-blocks | import PropTypes from 'prop-types';
import React from 'react';
import Box from 'grommet/components/Box';
import Image from 'grommet/components/Image';
import Markdown from 'grommet/components/Markdown';
export default function BlockImagePreview ({ content, image, imageDesc }) {
return (
<Box colorIndex="light-1"... |
src/svg-icons/image/filter-8.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter8 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-1... |
src/team.js | angustas/company | import React, { Component } from 'react';
import Sidebar from './common/sidebar';
import $ from 'jquery';
import { Icon,message,Menu, Tree, Button,Modal,Form, Input, Card,Select ,Collapse,Switch,Tooltip,Tag,Badge} from 'antd';
var echarts = require('echarts/lib/echarts');
require('echarts/lib/chart/bar');
require('echa... |
app/containers/Planning/CpGallery.js | frascata/vivaifrappi | import React from 'react';
import Gallery from '../../components/Gallery/index';
const S3_BASE_PATH = 'https://s3.eu-central-1.amazonaws.com/vivaifrappi/servizi/progettazione/cp/';
const S3_TMB_PATH = 'tmb/';
const S3_TMP_POSTFIX = '-300x200-no-upscale';
const S3_FILE_EXT = '.jpg';
const IMAGES = [
'cp_01_progetto'... |
public/js/app/index.watch.js | fendy3002/QzQueryTools | import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import sa from 'superagent';
import lo from 'lodash';
import App from './watchTools/containers/StateApp.js';
import {execQuery} f... |
src/parser/druid/feral/modules/features/EnergyDetails.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Panel from 'interface/others/Panel';
import ResourceBreakdown from 'parser/shared/modules/resourcetracker/ResourceBreakdown';
import EnergyTracker from './EnergyTracker';
class EnergyDetails extends Analyzer {
static dependencies = {
... |
app/containers/PatientMonitorMobile/index.js | johnsiu2016/FYP | /*
*
* PatientMonitorMobile
*
*/
'use strict';
import React from 'react';
import {connect} from 'react-redux';
import Helmet from 'react-helmet';
import styles from './styles.css';
import ReactGrid, {WidthProvider} from 'react-grid-layout';
const ReactGridLayout = WidthProvider(ReactGrid);
import {grey900, grey8... |
src/components/views/delegateProfile/components/TextWrap.js | LiskHunt/LiskHunt | import React from 'react';
const TextWrap = ({ label, text, extra_text }) => {
const displayed_text = text === '' || text === undefined || text == null ? '--' : text + extra_text;
return (
<div className="columns is-mobile">
<div className="column sidebar-label is-half-mobile">{label}</... |
src/main/script/src/index.js | EunBeeJo/auction | import React from 'react';
import ReactDOM from 'react-dom';
import { App, Home, Login, Register } from './containers';
// router
import { BrowserRouter, Route } from 'react-router-dom';
// redux
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thu... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | liruqi/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import Inputs from 'utils/Inputs';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes... |
src/components/Header.js | mattlewis92/react-imgur | import React, { Component } from 'react';
import { Navbar, Nav, NavItem, Glyphicon } from 'react-bootstrap';
export default class Header extends Component {
render() {
return (
<Navbar
brand='React Imgur viewer'
fixedTop={true}
toggleNavKey={0}>
<Nav right eventKey={0}>
... |
stories/index.js | Astrocoders/react-image-smooth-loading | import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import { linkTo } from '@storybook/addon-links'
import styled from 'styled-components'
import Img from '../lib'
const Wrapper = styled.div`
width: 400px;
height: 400px;
`
storiesOf('Img', mo... |
src/svg-icons/device/signal-cellular-connected-no-internet-3-bar.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M17 22V7L2 22h15zm3-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/>
</SvgIcon>
);
Devic... |
src/containers/CreateRoomPage.js | Destinia/Splendor | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import CreateRoom from '../components/CreateRoom.js';
import * as LobbyActions from '../actions/LobbyActions';
const CreateRoomPage = (props) => (
<div>
<CreateRoom {...props} />
</div>
);
const map... |
src/app/components/menu/sideMenu2.js | Kikonejacob/nodeApp | import React from 'react';
import ReactDOM from 'react-dom';
import "metismenu";
var MainMenu=React.createClass({
render:function(){
return (<MenuNode node={this.props.node} mainNode={true} />);
}
})
var MenuNode = React.createClass({
getInitialState: function() {
r... |
src/components/radioInput/RadioInput.js | DaveOrDead/react-dnd-character-generator | import React from 'react';
import InputLabel from '../inputLabel';
const RadioInput = ({
id,
labelText,
isLabelHidden,
onChange = () => {},
...props
}) => {
return (
<div className="c-radio-input">
<input
{...props}
id={id}
... |
public/js/app/queryTools/components/LayoutResult.js | fendy3002/QzQueryTools | import React from 'react';
import lo from 'lodash';
import TableResult from './TableResult.js';
import ReportResult from './ReportResult.js';
var Elem = function({layout, data}){
var renderNum = (num) => {
var selectedData = data[num - 1];
return <TableResult table={selectedData} />;
};
var... |
examples/src/BasicExample/BasicExample.js | markdalgleish/react-autosuggest | import React, { Component } from 'react';
import utils from '../utils';
import Autosuggest from '../../../src/Autosuggest';
import SourceCodeLink from '../SourceCodeLink/SourceCodeLink';
import suburbs from 'json!../suburbs.json';
function getSuggestions(input, callback) {
const escapedInput = utils.escapeRegexChara... |
app/components/layout/navigation.js | bluemner/arc | import React, { Component } from 'react';
/**
* @extends {Component}
*/
class Navigation extends Component {
constructor(props) {
super(props);
}
componentWillMount() {
}
render() {
return (
<nav className="navbar navbar-default navbar-inverse navbar-fixed-top navigation-template">
<div className="c... |
packages/icons/src/md/image/CropOriginal.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdCropOriginal(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M38 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h28zm0 32V10H10v28h28zM27.93 24.57l-5.5 7.08-3.93-4.72L13... |
admin/client/components/PopoutPane.js | mikaoelitiana/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutPane = React.createClass({
displayName: 'PopoutPane',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
onLayout: React.PropTypes.func
},
getDefaultProps () {
... |
app/components/RecorderButton/index.js | hipertracker/cerebral-boilerplate | import React from 'react'
import {connect} from 'cerebral-view-react'
import styles from './style.css'
export default connect({
recorder: 'recorder'
}, {
clicked: 'recorder'
},
function RecorderButton({recorder, clicked}) {
let action
if (recorder.isPlaing) {
action = {name: 'paused', label... |
src/components/Icon/Icon-story.js | jzhang300/carbon-components-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import Icon from '../Icon';
const props = {
style: {
margin: '50px',
},
fill: 'grey',
description: 'This is a description of the icon and what it does in context',
className: 'extra-class',
};
storiesOf('Icon', module).addWithInfo(... |
src/views/About.js | tmbtech/react-to-life | import React from 'react';
import MiniInfoBar from '../components/MiniInfoBar';
export default class SignUp {
render() {
return (
<div>
<h1>About Us</h1>
<div>Hey! You found the mini info bar! The following component is display-only.</div>
<MiniInfoBar/>
</div>
);
}
}
|
src/index.js | filipdanic/react-botkit | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
node_modules/react-bootstrap/es/Tooltip.js | skinsshark/skinsshark.github.io | 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.