path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/Row.js | HPate-Riptide/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import elementType from 'react-prop-types/lib/elementType';
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
const propTypes = {
componentClass: elementType,
};
const defaultProps = {
componentClass: 'div',
};
class Row ... |
app/header.js | vijanny/react-native-DemoPrj | import React, { Component } from 'react';
import {StatusBar ,View,StyleSheet,Text,TouchableHighlight,Image} from 'react-native';
/*
*iconSrcLeft 左侧图标路径 参考iconSrcLeft = require('路径') 传参
*iconOnPressLeft 左侧图标按下响应函数
*iconSrcRight 右侧图标路径 参考iconSrcLeft = require('路径') 传参
*iconOnPressRight 右侧图标按下响应函数
*titleColor 标题演示
*t... |
tom-binary-tree/src/Counter.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react'
// EVENTS
export class Increment {
constructor(step) {
this.step = step
}
update(model) {
return { model: model + this.step }
}
}
// APP
export default {
init() {
return { model: 0 }
},
update(model, event) {
return event.update(model)
},
view(model) {
... |
src/svg-icons/action/open-in-browser.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenInBrowser = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/>
</SvgIcon>
);
... |
app/components/Hypno/index.js | brainsandspace/ship | /**
*
* Hypno
*
*/
import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.div`
overflow: hidden;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direc... |
frontend/component/TopicList.js | ivernaloo/practice-node-project | import React from 'react';
import {Link} from 'react-router';
import {getTopicList} from '../lib/client';
export default class TopicList extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
getTopicList({})
.then(ret => this.setState({list: ret... |
react/features/toolbox/components/web/JitsiPortal.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import DialogPortal from './DialogPortal';
type Props = {
/**
* The component(s) to be displayed within the drawer portal.
*/
children: React$Node,
/**
* Class name used to add custom styles to the portal.
*/
className?: string
};
/**
* Compo... |
src/svg-icons/image/hdr-off.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrOff = (props) => (
<SvgIcon {...props}>
<path d="M17.5 15v-2h1.1l.9 2H21l-.9-2.1c.5-.2.9-.8.9-1.4v-1c0-.8-.7-1.5-1.5-1.5H16v4.9l1.1 1.1h.4zm0-4.5h2v1h-2v-1zm-4.5 0v.4l1.5 1.5v-1.9c0-.8-.7-1.5-1.5-1.5h-1... |
App.js | emilianoeloi/React | import React from 'react';
class App extends React.Component {
constructor(){
super();
this.state = {
input: '/* add your jsx here */',
output: '',
err: ''
}
this.update = this.update.bind(this);
}
update(e){
let code = e.target.value;
try{
this.setState({
output: babel.transform(code,... |
tests/react/ref.js | facebook/flow | // @flow
import React from 'react';
class Foo extends React.Component<{}, void> {}
class Bar extends React.Component<{}, void> {}
<Foo />; // OK
<Foo ref="foo" />; // OK
<Foo ref={null} />; // OK
<Foo ref={undefined} />; // OK
<Foo ref={(foo: number) => {}} />; // Error: `Foo` is not a `number`.
<Foo ref={foo => (fo... |
node_modules/react-router/modules/Link.js | yomolify/cs-webserver | import React from 'react';
var { object, string, func } = React.PropTypes;
function isLeftClickEvent(event) {
return event.button === 0;
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
}
/**
* <Link> components are used to create an <a> element t... |
app/src/components/Footer/index.js | karatechops/bhamc | import React from 'react';
import Anchor from 'grommet/components/Anchor';
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import Heading from 'grommet/components/Heading';
import Paragraph from 'grommet/components/Paragraph';
import MapIcon from 'grommet/components/icons/base/... |
src/svg-icons/social/party-mode.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPartyMode = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 .... |
src/app/components/media/MediaPlayerCard.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { Player } from '@meedan/check-ui';
import AspectRatio from '../layout/AspectRatio';
const MediaPlayerCard = props => (
<article className="video-media-card" style={{ position: 'relative' }}>
<AspectRatio
key={props.contentWarning}
... |
src/app/components/forms/inputs/DropzoneInput.js | backpackcoder/world-in-flames | import React from 'react'
import {findDOMNode} from 'react-dom'
import Dropzone from 'dropzone'
Dropzone.autoDiscover = false;
export default class DropzoneInput extends React.Component {
componentDidMount() {
let element = $(findDOMNode(this));
let options = this.props.options || {};
element.dropzone(o... |
src/interface/report/FightSelectionPanel.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Toggle from 'react-toggle';
import { Link } from 'react-router-dom';
import { Trans, t } from '@lingui/macro';
import { i18n } from 'interface/RootLocalizationProvider';
import makeAnalyzerUrl from 'interface/common/makeAnalyzerUrl';
import FightSe... |
client/src/app/components/forms/wizards/Wizard.js | zraees/sms-project | import React from 'react'
export default class Wizard extends React.Component {
componentDidMount() {
let self = this;
let element = $(this.refs.wizard);
var stepsCount = $('[data-smart-wizard-tab]').length;
var currentStep = 1;
var validSteps = [];
var $form = element.closest('form');
... |
js/views/create/FriendsListView.js | SamyZ/TravelgramApp | import React from 'react';
import {
View,
Image,
ListView,
TouchableOpacity,
} from 'react-native';
import friendsListStyles from '../../styles/create/friendsListStyles';
import TextOpenSans from '../utils/TextOpenSans';
const FriendsListView = (props) => {
const listContainerStyle = props.friends.getRow... |
src/select/index.js | denisraslov/react-spreadsheet-table | import React from 'react';
import PropTypes from 'prop-types';
import Dropdown from './../dropdown';
import keys from './../kit/keymap';
import find from 'lodash.find';
import styles from './styles.css';
class SpreadsheetGridSelect extends React.PureComponent {
constructor(props) {
super(props);
... |
examples/todos/components/Footer.js | mjw56/redux | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">... |
src/svg-icons/hardware/gamepad.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareGamepad = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
HardwareGamepad = pure(Hardw... |
app/javascript/mastodon/features/compose/components/upload_form.js | kibousoft/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import UploadProgressContainer from '../containers/upload_progress_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import UploadContainer from '../containers/upload_container';
export default class U... |
src/containers/auth/SignupScreen.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import Signup from '../../components/auth/Signup';
import UserStore from '../../stores/UserStore';
import FeaturesStore from '../../stores/FeaturesStore';
import { globalError as globalErrorPro... |
src/helpers/Html.js | bertho-zero/react-redux-universal-hot-example | import React from 'react';
import PropTypes from 'prop-types';
import serialize from 'serialize-javascript';
import Helmet from 'react-helmet';
import config from 'config';
/**
* Wrapper component containing HTML metadata and boilerplate tags.
* Used in server-side code only to wrap the string output of the
* rende... |
admin/client/App/elemental/DropdownButton/index.js | helloworld3q3q/keystone | /* eslint quote-props: ["error", "as-needed"] */
import React from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import Button from '../Button';
function DropdownButton ({ children, ...props }) {
return (
<Button {...props}>
{children}
<span className={css(classes.arrow)} />
</Button>
... |
docs/app/Examples/collections/Form/FieldVariations/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const FormFieldVariationsExamples = () => (
<ExampleSection title='Field Variations'>
<ComponentExample
title='Inline'
... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleInlineTwo.js | shengnian/shengnian-ui-react | import React from 'react'
import { Dropdown, Header, Icon } from 'shengnian-ui-react'
const options = [
{
key: 'today',
text: 'today',
value: 'today',
content: 'Today',
},
{
key: 'this week',
text: 'this week',
value: 'this week',
content: 'This Week',
},
{
key: 'this mont... |
src/app/Footer.js | halhenke/life-letters | import React from 'react';
import styles from './Footer.css';
export default class Footer extends React.Component {
render() {
return (
<footer className={styles.footer}>
<p>2015 © Hal Henke</p>
</footer>
);
}
}
|
examples/Accordion.js | 15lyfromsaturn/react-materialize | import React from 'react';
import Collapsible from '../src/Collapsible';
import CollapsibleItem from '../src/CollapsibleItem';
export default
<Collapsible accordion defaultActiveKey={1}>
<CollapsibleItem header='First' icon='filter_drama' eventKey={1}>
Lorem ipsum dolor sit amet.
</CollapsibleItem>
<Collapsi... |
src/ParaRowTextEditor.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import PropTypes from 'prop-types';
import {
Button
, Checkbox
, Col
, ControlLabel
, FormControl
, Glyphicon
, Grid
, Row
, Tab
, Tabs
, Well
} from 'react-bootstrap';
import { get } from 'lodash';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';... |
stories/killop.js | ramonfm/killop | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import KillopComponent from '../src/components/killop';
import ConnectedKillopComponent from '../src/components/';
storiesOf('KillopComponent', module)
.add('connected to store', () => <ConnectedKillopComponent />)
.add('enabled', () => <Kil... |
Example/index.android.js | cuonghuynhvan/react-native-camera-android-simple | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
Button
} from 'react-native';
import Camera from 'react-native-camera-android-simple';
const Type = {
FRONT: 'front',
BACK: 'back'
};
const styles = StyleSheet.create({
container: {
flex: 1
},
preview: {
flex:... |
src/ProjectInput.js | Miloucodaisseur/task_manager | import React from 'react';
import jQuery from 'jquery';
class ProjectInput extends React.Component {
constructor() {
super();
}
onSubmitForm(event) {
event.preventDefault();
let component = this;
let title = this.refs.newProjectTitle.value;
let description = this.refs.newProjectDescription.... |
tests/lib/rules/vars-on-top.js | vitorbal/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const rule = require("..... |
packages/bonde-styleguide/src/cards/Tooltip/Tooltip.js | ourcities/rebu-client | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import Icon from '../../content/Icon/Icon'
import Button from '../../content/Button/Button'
import Backdrop from '../../layout/Backdrop/Backdrop'
import { borderSpacing, borderSpacingPropTypes } from '../../utils'
cons... |
routes/GetStarted/GetStarted.js | RickFrom1987/rickfrom1987.com | /**
* React App SDK (https://github.com/kriasoft/react-app)
*
* 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';
import Layout from '../../c... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | alessandrostone/actor-platform | import React from 'react';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import InviteUserActions from 'actions/InviteUserActions';
import AvatarItem from 'components... |
src/ui/layout/Auth.js | dhruv-kumar-jha/productivity-frontend | 'use strict';
import React from 'react';
import AuthHeader from 'app/components/common/AuthHeader';
import { I18n } from './I18n';
const Default = (props) => {
return (
<I18n fetch={ false }>
<div className="has-fh">
<AuthHeader />
<main className="body-wrapper">
{ props.children }
</main>
<... |
src/components/Header/Header.js | larsvinter/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
static/src/components/notAuthenticatedComponent.js | kdog1425/React-Redux-Flask-Web-Crawler | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { browserHistory } from 'react-router';
import * as actionCreators from '../actions/auth';
function mapStateToProps(state) {
return {
token: state.auth.token,
userName: state.auth.us... |
src/svg-icons/image/photo-size-select-actual.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoSizeSelectActual = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/>
</SvgIcon>
);
ImagePhotoSiz... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-select/es/Select.js | bhathiya/test | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import ReactDOM from 'react-dom';
import createClass from 'create-react-class';
import KeyCode from 'rc-util/es/KeyCode';
import classnames from 'classnames';
import Anima... |
resources/apps/frontend/src/pages/subscriptions/form.js | johndavedecano/PHPLaravelGymManagementSystem | import React from 'react';
import serialize from 'form-serialize';
import {Form, FormGroup, Input, Label, Button, Row, Col} from 'reactstrap';
import MemberSelect from 'components/Form/Select/MemberSelect';
import SubscriptionStatusSelect from 'components/Form/Select/SubscriptionStatusSelect';
import PackageSelect fro... |
component/Test.js | jimju/BNDemo | 'use strict'
import React, { Component } from 'react';
import {
Text,StyleSheet,View
} from 'react-native';
class Test extends React.Component {
render(){
return(
<View style={styles.content}>
<Text> Hello Test !</Text>
</View>
);
}
}
const styles = StyleSheet.create({
content:{
... |
src/components/topic/stories/BrowseStoriesContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import { pagedAndSortedLocation } from '../../util/location... |
docs/app/Examples/elements/Label/Variations/LabelExampleSize.js | vageeshb/Semantic-UI-React | import _ from 'lodash'
import React from 'react'
import { Label } from 'semantic-ui-react'
const sizes = ['mini', 'tiny', 'small', 'medium', 'large', 'big', 'huge', 'massive']
const LabelExampleSize = () => (
<div>
{sizes.map(size => (
<Label key={size} size={size}>
{_.capitalize(size)}
</La... |
src/components/overlay_tooltip.js | libeanim/sundew-notes | import React from 'react';
import _ from 'lodash';
import { Tooltip, OverlayTrigger } from 'react-bootstrap';
export default function(props){
const id = _.uniqueId('tooltip_');
const tooltip = <Tooltip id={id}>{ props.text }</Tooltip>;
return (
<OverlayTrigger trigger={ props.trigger || ['hover', 'focus'] } ... |
src/NavBar.js | otsoaUnLoco/wolf-chess | // @flow
import React from 'react';
import ReadFileDialog from './ReadFileDialog';
export default function NavBar(props: {
resetBoard: (void) => void,
readFile: (string) => void
}): React.Element<*> {
return (
<div id="navBar" >
<button type="reset" onClick={props.resetBoard}>New Game</button>
<... |
src/svg-icons/image/looks.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks = (props) => (
<SvgIcon {...props}>
<path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1... |
packages/arwes/src/Line/sandbox.js | romelperez/ui | import React from 'react';
import Line from './index';
export default () => (
<div style={{ padding: '20px' }}>
<Line animate />
<Line animate layer="success" />
<Line animate layer="alert" />
</div>
);
|
app/components/spinners/material-spinner/component.js | DenQ/electron-react-lex | import React from 'react';
import BaseComponent from 'lex/libs/base/component';
import Spinner from 'react-spinner-material';
export default class MaterialSpinner extends BaseComponent {
render() {
this.decorateStyle();
const { show } = this.props;
return (
<Spinner
size={200}
spi... |
src/components/UsersWatching/index.js | danbovey/Dekt | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Tooltip from 'rc-tooltip';
import * as showActions from 'actions/show';
import Spinner from 'components/Spinner';
import './styles';
@connect(
state => ({
auth: state.auth,
... |
teoria02/componentes/EstadoTarea.js | mart-dominguez/OFA2017-S01-C02 | import React from 'react';
class EstadoTarea extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
}
handleChange(e) {
this.props.estadoChange(this.props.indice,e.target.name,e.target.value);
}
render(){
return (
<sel... |
packages/cf-builder-pagination/example/basic/component.js | mdno/mdno.github.io | import React from 'react';
import { PaginationBuilder } from 'cf-builder-pagination';
function getStartAndEnd(page, pageSize) {
const start = (page - 1) * pageSize;
const end = start + pageSize - 1;
return [start, end];
}
function hasAllItems(items, start, end) {
for (let i = start; i <= end; i++) {
if (!... |
public/assets/js/node_modules/react-select/examples/src/app.js | ngocson8b/6jar | /* eslint react/prop-types: 0 */
import React from 'react';
import ReactDOM from 'react-dom';
import Select from 'react-select';
import Contributors from './components/Contributors';
import CustomKeysField from './components/CustomKeysField';
import CustomRenderField from './components/CustomRenderField';
import Disa... |
public/js/app/queryTools/components/TableResult.js | fendy3002/QzQueryTools | import React from 'react'
import lo from 'lodash'
import sa from 'superagent';
var Elem = function({table}){
var renderHead = (fields) => {
var fieldDoms = lo.map(fields, k=> (
<th>{k}</th>
));
return <thead>
<tr>
{fieldDoms}
</tr>
... |
src/js/templates/content/post.js | julianburr/wp-react-theme | import React, { Component } from 'react';
import PostMeta from '../../components/post/meta';
import { renderHtml } from '../../utils/render';
export default class ContentPost extends Component {
render () {
const { content } = this.props;
console.log('content.data.data', content.data.data)
return (
... |
app/component/target-progress.js | TinyTheBrontosaurus/CricketTrainer | import React, { Component } from 'react';
import {
AppRegistry,
Button,
Text
} from 'react-native';
import { Col, Grid } from "react-native-easy-grid";
/**
* A single target for displaying its progress in the darts game. Shows a button that can hit next
* to its progress.
*/
export default class TargetProgr... |
client/admin/scenes/protected/settings.js | kirinami/portfolio | import React, { Component } from 'react';
import { Breadcrumb, BreadcrumbItem } from 'reactstrap';
import { Link } from 'react-router-dom';
import { inject, observer } from 'mobx-react';
import Loading from '../../components/loading';
import InputField from '../../forms/fields/input-field';
import TextareaField from ... |
news/sources/app.js | pintimes/lifeix-football-app-react | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Navigator
} from 'react-native';
import {Router, routerReducer, Route, Container, Animations, Schema} from 'react-native-redux-router';
import { createStore, comb... |
src/index.js | budunwang/React-Gallery | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/main.js | successkrisz/fx-rates-right | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
client/app/screens/InviteCreate.js | damienomurchu/snapscreen | import React from 'react';
import { Image, Picker } from 'react-native';
import {
Body,
Card,
CardItem,
Container,
Content,
Button,
Icon,
Item,
Input,
Text,
Toast,
View,
} from 'native-base';
import { createInvite } from '../api';
import { formatShowtime } from '../utils';
const styles = {
co... |
src/scripts/views/reclaimPage.js | TayLang/IronPong | import React from 'react'
import ACTIONS from '../actions.js'
import STORE from '../store.js'
import NavBar from './components/navBar'
import Header from './components/header'
var ReclaimPage = React.createClass({
render: function(){
return(
<div className = 'reclaim-page-wrapper'>
<Header />
<NavBar /... |
renderer/components/File.js | JiniHendrix/reactide | import React from 'react';
import RenameForm from './RenameForm';
import PropTypes from 'prop-types';
const File = ({
file,
dblClickHandler,
selectedItem,
id,
clickHandler,
renameFlag,
renameHandler
}) => {
return (
<li
className={selectedItem.id === id ? 'list-item selected' : 'list-... |
src/components/top-bar.js | mushishi78/content-editor | import React from 'react';
export default class TopBar extends React.Component {
render() {
return !this.props.loggedIn ? null :
<header style={styles.header}>
<nav style={styles.nav}>
{this.iconLink('/mushishi78/content-editor/docs', icons.docs)}
{this.iconLink('https://github.... |
src/components/Button.js | drakang4/creative-project-manager | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { secondary, secondaryDark, blackLight, blackLessLight, black, white } from '../styles/color';
const Button = styled.button`
padding: 16px;
font-size: 16px;
color: ${black};
background-color: ${blackLi... |
src/svg-icons/image/flip.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlip = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v... |
src/components/Buttress/Buttress.js | sk-iv/iva-app | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
if(process.env.WEBPACK) require('./Buttress.css');
const Buttress = (props) => {
const {
children,
className,
size,
blend,
image,
style,
alt,
...other
} = props;
const renderImg... |
app/javascript/mastodon/features/notifications/components/notifications_permission_banner.js | pinfort/mastodon | import React from 'react';
import Icon from 'mastodon/components/icon';
import Button from 'mastodon/components/button';
import IconButton from 'mastodon/components/icon_button';
import { requestBrowserPermission } from 'mastodon/actions/notifications';
import { changeSetting } from 'mastodon/actions/settings';
import ... |
stories/dialogs/delete-wallet.stories.js | LN-Zap/zap-desktop | import React from 'react'
import { storiesOf } from '@storybook/react'
import { DeleteWalletDialog } from 'components/Home'
import { Window } from '../helpers'
storiesOf('Dialogs', module)
.addDecorator(story => <Window>{story()}</Window>)
.add('Delete Wallet', () => (
<DeleteWalletDialog
isOpen
on... |
examples/custom-server-hapi/pages/index.js | BlancheXu/test | import React from 'react'
import Link from 'next/link'
export default () => (
<ul>
<li>
<Link href='/b' as='/a'>
<a>a</a>
</Link>
</li>
<li>
<Link href='/a' as='/b'>
<a>b</a>
</Link>
</li>
</ul>
)
|
src/components/ChatApp/HardwareComponent.js | madhavrathi/chat.susi.ai | import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField';
import Paper from 'material-ui/Paper';
import * as Actions from '../../actions/';
import UserPreferencesStore from '../../stores/UserPreferenc... |
src/main/internal/adaption/react/ChildrenUtils.js | mcjazzyfunky/js-surface | // external imports
import React from 'react'
// --- ChildrenUtils ------------------------------------------------
const ChildrenUtils = {
forEach: React.Children.forEach,
toArray: React.Children.toArray,
count: React.Children.count
}
// --- exports ------------------------------------------------------
expo... |
src/svg-icons/maps/local-car-wash.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCarWash = (props) => (
<SvgIcon {...props}>
<path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2... |
src/components/TextInput/TextInput.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import { settings } from 'carbon-componen... |
packages/mcs-lite-ui/src/P/P.js | MCS-Lite/mcs-lite | import React from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
import R from 'ramda';
import isString from '../utils/isString';
const getBaseComponent = R.ifElse(isString, R.always('p'), R.always('div'));
const Component = ({ children, ...otherProps }) =>
React.creat... |
src/index.js | nreoch25/react-package-dev | import React from 'react';
import ReactDOM from 'react-dom';
import Docs from "./docs/Docs";
import './index.css';
import '../node_modules/highlight.js/styles/ocean.css';
ReactDOM.render(<Docs />, document.getElementById('root'));
|
docs/src/app/components/pages/components/IconMenu/Page.js | hai-cea/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconMenuReadmeText from './README';
import IconMenuExampleSimple from './... |
node_modules/react-bootstrap/es/MediaListItem.js | Technaesthetic/ua-tools | 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 ... |
app/screens/Options.js | rakasiwi23/currency-converter | import React, { Component } from 'react';
import { ScrollView, StatusBar, Platform, Linking } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import PropTypes from 'prop-types';
import { ListItem, Separator } from '../components/List';
import { connectAlert } from '../components/Alert';
co... |
src/app/components/user/UserTooltip.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { FormattedHTMLMessage, FormattedDate } from 'react-intl';
import { Link } from 'react-router';
import Avatar from '@material-ui/core/Avatar';
import LaunchIcon from '@material-ui/icons/Launch';
import styled ... |
src/svg-icons/notification/wifi.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWifi = (props) => (
<SvgIcon {...props}>
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9... |
fields/types/markdown/MarkdownField.js | asifiqbal84/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on jQuery
*/
// Scope jQuery and the bootstrap-markdown editor so it will mount
var $ = require('jquery');
require('./lib/bootstrap-markdown');
// Append/remove ### surround the select... |
src/pages/404.js | growcss/growcss-site | import React from 'react';
import Box from 'components/box';
import Layout from 'components/layout';
const NotFound = () => (
<Layout>
<Box>Not found.</Box>
</Layout>
);
export default NotFound;
|
src/components/Home/SiteInfo.js | mattschwartz/mattschwartz | import React from 'react'
export default () => (
<>
<h3 className="section-header">Site Info</h3>
<p>Click <a className="fancy-link" href="https://github.com/mattschwartz/www">here</a> to see the source code</p>
<p>Powered by React and served fresh by AWS</p>
<p>Written by Matt Sch... |
src/svg-icons/image/crop.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop = (props) => (
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</SvgIcon>
);
ImageCrop = pure(ImageCrop);
ImageCrop.displayNam... |
editor/components/FloatPaper.js | conundrumer/sim-seq | import React from 'react'
import { Paper } from 'material-ui'
import classNames from 'classnames'
export default class FloatPaper extends React.Component {
render() {
return (
<Paper
className={classNames('float-paper', this.props.className)}
circle={this.props.circle}
style={{boxSh... |
src/components/ProfileIntro.js | planningFor/react-build | import React, { Component } from 'react';
require('../css/ProfileIntro.scss');
/**
* Header component in index page.
*/
const Introduction = () => (
<section className="profile-intro">
<h3>关于我</h3>
<p>大家好,我叫杨雯杰。本科毕业与成都信息工程大学,现就读于电子科技大学计算机科学与工程学院。</p>
<p>我觉得前端是一门多性质的工作,从本科开始就对前端有很大的兴趣。但是很... |
react/src/server/frontend/ServerFetchProvider.js | janprasil/mi-vmm-product-quality-rating | import React from 'react';
class ServerFetchProvider extends React.Component {
static childContextTypes = {
serverFetchPromises: React.PropTypes.array,
};
getChildContext() {
return {
serverFetchPromises: this.props.promises,
};
}
props: {
// github.com/facebook/flow/issues/1964
chi... |
packages/material-ui-icons/src/SimCardAlert.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 15h-2v-2h2v2zm0-4h-2V8h2v5z" /></g>
, 'SimCardAlert');
|
src/js/pages/LoginPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import TopNavBar from '../components/ui/TopNavBar';
import SocialBox from '../components/ui/SocialBox';
import translate from '../i18n/Translate';
import LoginActionCreators from '../actions/LoginActionCreators';
import LoginStore from '../st... |
server/index.js | amitpaperg/roadmap-planner | import path from 'path'
import http from 'http'
import express from 'express'
import helmet from 'helmet'
import bodyParser from 'body-parser'
import morgan from 'morgan'
import compression from 'compression'
import hpp from 'hpp'
import throng from 'throng'
import React from 'react'
import ReactDOM from 'react-dom/se... |
app/javascript/mastodon/features/notifications/index.js | increments/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandNotifications, scrollTopNotifications ... |
redux/js/todo/containers/RouteFilterLink.js | quiaro/js-playground | import React from 'react';
import { Link } from 'react-router';
const RouteFilterLink = ({ filter, children }) => (
<Link
to={filter === 'all' ? '' : filter}
activeStyle={{
textDecoration: 'none',
color: 'black',
}}
>
{children}
</Link>
);
export default RouteFilterLink;
|
src/components/marketingStatusLabel/MarketingStatusLabel.js | teamleadercrm/teamleader-ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import Icon from '../icon';
import cx from 'classnames';
import theme from './theme.css';
import { IconLockSmallFilled } from '@teamleader/ui-icons';
import { UITextBody, UITextSmall } from '../typography';
class Ma... |
src/components/app.js | TonCoder/react-music-player | import React, { Component } from 'react';
import MusicPlayer from './MusicPlayer/MusicPlayer';
export default class App extends Component {
constructor(props){
super(props);
this.state = {
"Albums":[
{
"artist": "Trinit... |
app/javascript/mastodon/features/ui/components/video_modal.js | lindwurm/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
src/App.js | rahulpyd/react-dnd-sort-example | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
src/svg-icons/editor/format-align-center.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignCenter = (props) => (
<SvgIcon {...props}>
<path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignCenter = pure(EditorFormatAli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.