path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/DataGrid.js | choyt/react-accessible-components | import React from 'react';
import injectSheet from 'react-jss';
import classNames from 'classnames';
const styles = {
DataCell: {
'&$Highlighted': {
backgroundColor: 'gray',
},
},
DataGrid: {
textAlign: '-webkit-center',
'& tr > *': {
border: '1px solid lightgray',
padding: '.5e... |
src/svg-icons/editor/format-color-text.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatColorText = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".36" d="M0 20h24v4H0z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/>
</SvgIcon>
);... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | fanhc019/react-router | import React from 'react';
class Grades extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments;
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment.grade} - {assi... |
docs/src/examples/views/Statistic/Variations/StatisticExampleSizeDivided.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Divider, Statistic } from 'semantic-ui-react'
const StatisticExampleSizeDivided = () => (
<div>
<Statistic size='mini'>
<Statistic.Label>Views</Statistic.Label>
<Statistic.Value>2,204</Statistic.Value>
</Statistic>
<Divider />
<Statistic size='tiny'>
... |
node_modules/semantic-ui-react/dist/es/addons/Confirm/Confirm.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
front/src/FilterBar.js | miyef/onboard-fridge | import React, { Component } from 'react';
class FilterBar extends Component {
constructor(props) {
super(props);
this.state = {
value: '',
};
}
render() {
return (
<input
type="text"
value={this.state.value}
... |
src/web/solutions/Search/SolutionListItem.js | whybug/whybug-server | import React from 'react';
export var SearchResult = React.createClass({
propTypes: {
uuid: React.PropTypes.string,
level: React.PropTypes.string,
message: React.PropTypes.string,
programminglangauge: React.PropTypes.string
},
render() {
const params = {
... |
src/BootstrapMixin.js | tonylinyy/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
app/javascript/mastodon/features/ui/components/actions_modal.js | KnzkDev/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
scripts/apps/packaging/directives/AddToPackageDropdown.js | thnkloud9/superdesk-client-core | import React from 'react';
import PackageGroupList from '../components/PackageGroupList';
AddToPackageDropdown.$inject = ['item', 'className', 'authoringWorkspace', 'packages', 'api', '$rootScope'];
export function AddToPackageDropdown(item, className, authoringWorkspace, packages, api, $rootScope) {
return React.... |
demo/demoPages/sections/inputsPageSections/TextInputSection.js | Pearson-Higher-Ed/compounds | import React, { Component } from 'react';
import { TextInput, Select } from '../../../../index';
export default class TextInputSection extends Component {
constructor(props) {
super(props);
this.state = { inputState : "default" };
}
render(){
const { inputState } = this.state;
return(
... |
src/routes/account/DetailModal.js | vincentdd/crm | import React from 'react';
import PropTypes from 'prop-types';
import {
Modal,
Button
} from 'antd';
// const {
// info
// } = Modal;
function info(item) {
let childNode = [];
for (let key in item) {
const temp = [];
}
Modal.info({
title: '详细信息',
content: (
<div>
<p>some messages...some messa... |
node_modules/react-native-mock/src/components/TextInput.js | niukui/gitpro | import React from 'react';
import TextInputState from '../api/TextInputState';
import TimerMixin from 'react-timer-mixin';
import NativeMethodsMixin from '../mixins/NativeMethodsMixin';
import View from './View';
import Text from './Text';
const { PropTypes } = React;
const TextInput = React.createClass({
propTypes... |
src/main.js | dmtrKovalenko/Kova | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
import injectTapEventPlugin from 'react-tap-event-plugin'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import '../node_modules/animate.css/a... |
src/index.js | bogdan-dumitru/padkontrol | import _polyfill from 'babel-core/polyfill';
import React from 'react';
import App from './views/app';
import normalize from 'normalize.css';
import FastClick from 'fastclick';
import stores from './stores';
import { initStateTree } from 'lib/flux';
let stateString = localStorage.getItem('state');
let state = stateSt... |
example/index.js | dantman/react-cropper | import React from 'react';
import ReactDOM from 'react-dom';
import Cropper from '../dist/react-cropper';
const Demo = React.createClass({
getInitialState() {
return {
src: 'http://fengyuanchen.github.io/cropper/img/picture.jpg',
preview: null
};
},
_crop(){
this.setState({
previ... |
server/sonar-web/src/main/js/apps/projects/components/ProjectsListFooter.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/jsx/tab.js | IonPostglacial/hexagon-toolkit | import React from 'react';
export default class Tab extends React.Component {
render () {
const entryIcon = this.props.icon === undefined ? '': 'fa fa-fw ' + this.props.icon;
return (
<li onClick={ e => { e.currentTarget.getElementsByTagName('input')[0].click();}} >
<input name="dummy-tabx" typ... |
pyxis/components/TextField/index.js | gtkatakura/furb-desenvolvimento-plataformas-moveis | import React from 'react';
import { View, StyleSheet, Text, TextInput } from 'react-native';
import _ from 'lodash';
export default ({ onChange, name, secure, placeholder, value }) => {
return (
<View style={styles.container}>
<Text style={styles.label}>{_.capitalize(placeholder)}:</Text>
<TextInput... |
src/avoiding-the-monorepo/presentation.js | travi/presentations | import React from 'react';
import {Appear, Deck, Heading, Image, Link, List, ListItem, Slide, Text, Typeface} from 'spectacle';
import createTheme from 'spectacle/lib/themes/default/index';
import preloader from 'spectacle/lib/utils/preloader';
const theme = createTheme({
primary: '#C12127'
});
const images = {
p... |
src/svg-icons/av/queue-play-next.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueuePlayNext = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3... |
web/src/components/About.js | jinghang/react-todo-demo | import React from 'react'
const About = () => (
<div>
<h2>About</h2>
</div>
)
export default About
|
view/src/index.js | cjkoepke/five-recent | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import View from './components/View';
ReactDOM.render(
<View />,
document.getElementById('five-recent-root')
);
|
app/javascript/mastodon/features/compose/components/navigation_bar.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
src/main.js | sljuka/buzzler-ui | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
src/redux/utils/createDevToolsWindow.js | donnycrash/react-redux-electron-starter-kit | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
/* istanbul ignore next */
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it r... |
src/routes/Onboarding/components/sections/Notebook.js | formulaslug/expense | import React from 'react'
import './sections.scss'
export const Notebook = (props) => (
<section>
I'm a Notebook!
This is the main screen, and likely what you'll interact with most often.
Here, you'll be able to find:
<ul className='todoList'>
<li>health, temp, max and current</li>
<li>sp... |
src/js/entry.js | daigof/react-examples | import React from 'react'
import ReactDOM from 'react-dom'
import {Router, Route, IndexRoute, hashHistory} from 'react-router'
import Layout from './pages/Layout'
import Home from './pages/Home'
import RouteParams from './pages/RouteParams'
import InputPage from './pages/InputPage'
import PropTypesPage from './pages/P... |
src/components/events/single.js | plastical/react-theme | /* global PlasticalSettings */
// External dependencies
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { injectIntl } from 'react-intl';
import classNames from 'classnames';
// Internal dependencies
import { getTitle, getFeaturedMedia, g... |
pages/players/index.js | turntwogg/esports-aggregator | import React from 'react';
import { withRouter } from 'next/router';
import Page from '../../components/Page';
import PageHeader from '../../components/PageHeader';
import PageContent from '../../components/PageContent';
import Filter from '../../components/Filter';
import Select from '../../components/Select';
import... |
frontend/src/main.js | loganabsher/portfolio | 'use strict';
import React from 'react';
import ReactDom from 'react-dom';
import {Provider} from 'react-redux';
import 'bootstrap';
import storeCreate from '../lib/store-create.js';
import App from './components/app';
let store = storeCreate();
let AppContainer = () => {
return(
<Provider store={store}>
... |
js/components/developer/reference-screen/index.js | justarrived/p2p-client | import React, { Component } from 'react';
import { Container, Content, List } from 'native-base';
import moment from 'moment';
import ReferenceListItem from './referenceListItem';
import I18n from '../../../i18n';
// Temporary data. Will be handled in another way in the future.
const REFERENCES = [
{ reference: 'Lor... |
src/components/Navbar.js | carlyleec/cc-react | import React from 'react';
import { Link } from 'react-router';
import styled from 'styled-components';
import BackArrow from './BackArrow';
const NavbarWrapper = styled.div`
display: flex;
justify-content: ${props => props.justifyContent};
font-weight: 400;
flex-basis: 90%;
margin-top: 10px;
`;
const Nav... |
admin/client/App/shared/Popout/PopoutBody.js | andrewlinfoot/keystone | /**
* Render the body of a popout
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React... |
analysis/warlockdemonology/src/CONFIG.js | yajinni/WoWAnalyzer | import React from 'react';
import SPECS from 'game/SPECS';
import { AlertWarning } from 'interface';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone buil... |
SnowSchoolers/LessonDetails.js | bbensch09/snowschoolers-react-demo | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity,
} from 'react-native';
class LessonDetails extends Component {
_onPressGoBack() {
this.props.navigator.pop();
}
render() {
return (
<View style={this.props.style.container}>
<Text>
... |
app/gui/index.js | jfilipczyk/lesson-report | import injectTapEventPlugin from 'react-tap-event-plugin';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThe... |
src/components/Photos/Photos.js | ArchersDeLaBretagneRomantique/ui | import React from 'react'
import PageHeader from '../PageHeader'
import { getI18nLabels } from '../../services/I18nService'
const labels = getI18nLabels({
title: 'PHOTO.TITLE',
})
const Photos = () => {
return (
<div>
<PageHeader title={labels.title} />
<div className="row marketing">
Soo... |
src/components/login-form.js | marcusdarmstrong/cloth-io | import React from 'react';
import Button from './button';
export default class LoginForm extends React.Component {
static propTypes = {
openModal: React.PropTypes.func.isRequired,
closeModal: React.PropTypes.func.isRequired,
loginUser: React.PropTypes.func.isRequired,
};
state = {
email: '',
... |
demo/src/Doc.js | kiloe/ui | import React from 'react';
import View from '../../package/View';
import Card from '../../package/Card';
import Text from '../../package/Text';
import Button from '../../package/Button';
import PlayArrowIcon from '../../package/icons/PlayArrowIcon';
import * as babel from 'babel';
import {exec} from './all';
function ... |
src/components/Form/DetailTitle/DetailTitle.js | hahoocn/hahoo-admin | import React from 'react';
import styles from './DetailTitle.css';
class DetailTitle extends React.Component {
static propTypes = {
children: React.PropTypes.node,
className: React.PropTypes.string
}
state = {}
render() {
const { children, className, ...rest } = this.props;
return (
<di... |
src/components/map/mouseposition.js | bartvde/sdk | /*
* Copyright 2015-present Boundless Spatial Inc., http://boundlessgeo.com
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required ... |
src/js/Codedojo/Form.js | pankiv/news | /**
* Created by Vasul on 02.10.2017.
*/
import React from 'react';
class Form extends React.Component {
constructor(props) {
super(props);
this.addTodos = this.addTodos.bind(this);
this.state= {
value: ''
}
}
componentWillReceiveProps() {
cons... |
geonode/contrib/monitoring/frontend/src/components/cels/frequent-layers/index.js | kartoza/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import styles from './styles';
import actions from './actions';
const mapStateToProps = (state) => ({
interval: state.interval.interval,
layers: state.frequentLayers.response,
timestamp: state.interval.timestam... |
fields/types/color/ColorColumn.js | Pop-Code/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var ColorColumn = React.createClass({
displayName: 'ColorColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... |
src/components/home/Home.js | SantiagoGdaR/react-example-app | import React, { Component } from 'react';
import './home.css';
import HomeForm from './HomeForm'
class Home extends Component{
constructor(props) {
super(props);
this.state = {
value: ''
}
this.valueChanged = this.valueChanged.bind(this);
}
valueChanged(value){
this.setState({
val... |
src/common/root.js | canonical-ols/javan-rhino | import React, { Component } from 'react';
import { hot } from 'react-hot-loader';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import store from './store';
const history = syncH... |
examples/the-full-works/components/button-group/__fixtures__/button-group-fixture.js | lystable/redocs | import React from 'react';
import ButtonGroup from '../button-group';
import Button from '../../button';
/** Basic boring group of buttons */
function BoringButtonGroup(): ReactElement {
return (
<ButtonGroup>
<Button>Button</Button>
<Button>Button</Button>
<Button>Button</Button>
</Button... |
src/components/HiddenCardView.js | KtuluTeam/Ktulu | import React from 'react'
import {
Text,
View
} from 'react-native'
import { NextFooter } from './Buttons'
import { styles } from '../styles/styles'
export const HiddenCardView = ({number, index, onSubmit}) => {
let text = ''
let buttonTitle = ''
if (number === index) {
text = 'Oddaj urządzenie Manitou'
... |
src/components/modules/Modules.js | santiagoarriaga/slide_viewer | import React from 'react'
import { connect } from 'react-redux'
import HomeLink from '../HomeLink'
import Module from './Module'
/**
* Module listing for the current training.
*/
class Modules extends React.Component
{
constructor( props )
{
super( props )
this.showModule = this.showModule.bind( this ... |
examples/counter/containers/CounterApp.js | lapanoid/redux-devtools | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
src/js/components/icons/base/FastForward.js | odedre/grommet-final | /**
* @description FastForward SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
*... |
shared/components/App.js | AndrewGibson27/react-webpack-express-isomorphic-boilerplate | import React, { Component } from 'react';
import { Route, Switch, Redirect } from 'react-router-dom';
import styled from 'styled-components';
import Nav from './Nav';
import asyncComponent from '../utils/asyncComponent';
import { Container } from '../styles/containers';
const LatestNews = asyncComponent(() => (
imp... |
client/components/NavigationIcon/index.js | jkettmann/universal-react-relay-starter-kit | import React from 'react'
import PropTypes from 'prop-types'
import Wrapper from './Wrapper'
import Icon from './Icon'
import Line from './Line'
const NavigationIcon = ({ open, onClick }) => (
<Wrapper
onClick={onClick}
role="button"
tabIndex={0}
>
<Icon>
<Line className={open && 'open'} />
... |
app/containers/App.js | careykevin/reddy | // @flow
import React, { Component } from 'react';
export default class App extends Component {
props: {
children: HTMLElement
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
ui/src/shared/components/OnClickOutside.js | brianbaker/chronograf | import React from 'react'
import ReactDOM from 'react-dom'
export default function enhanceWithClickOutside(WrappedComponent) {
const componentName = WrappedComponent.displayName || WrappedComponent.name
return React.createClass({
displayName: `Wrapped${componentName}`,
componentDidMount() {
documen... |
node_modules/react-router/es6/Router.js | gurusewak/redux101 | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/user/UserSettings.js | carab/Pinarium | import React from 'react';
import {observer, useObservable} from 'mobx-react-lite';
import {useTranslation} from 'react-i18next/hooks';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import ListItemIcon from '@mate... |
src/views/InvestorDashboard/InvestorDashboard.js | NathanLewis/surefair | import React, { Component } from 'react';
import SyndicatePositions from './SyndicatePositions';
import InvestorDetails from './InvestorDetails';
class InvestorDashboard extends Component {
render() {
return ( <
div className = "animated fadeIn" >
<InvestorDetails />
<S... |
examples/UnigridExample2.js | yoonka/unigrid | /*
Copyright (c) 2018, Grzegorz Junka
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following... |
src/svg-icons/hardware/security.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSecurity = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/>
</SvgIcon>
);
Hardwa... |
components/Todos.js | lipp/next-todos | import React from 'react'
import DebouncedInput from './DebouncedInput'
// The checkbox input uses onClick instead of onChange as recommended by preact wiki
// to prevent flickering.
// https://github.com/developit/preact/wiki/Forms#checkboxes--radio-buttons
const Todo = ({setCompleted, setTitle, remove, todo: {compl... |
src/svg-icons/toggle/check-box.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleCheckBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</SvgIcon>
);... |
src/components/projectTeaser.js | RadLikeWhoa/radlikewhoa.github.io | import React from 'react'
import PropTypes from 'prop-types'
import IconWell from './iconWell'
const ProjectTeaser = ({ project, onClickFilter }) => {
const start = +project.frontmatter.date.split('.').splice(-1).pop()
return (
<article className="post-inline project-inline">
<div data-grid>
<d... |
js/jqwidgets/demos/react/app/combobox/bindingtoremotedata/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxComboBox from '../../../jqwidgets-react/react_jqxcombobox.js';
class App extends React.Component {
componentDidMount() {
this.refs.myComboBox.on('select', (event) => {
if (event.args) {
let item = event.args... |
src/routes/results/index.js | hmeinertrita/MyPlanetGirlGuides | import React from 'react';
import Layout from '../../components/Layout';
import Results from './Results';
const title = 'swag';
function action() {
return {
chunks: ['welcome'],
title: 'Welcome',
component: (
<Layout>
<Results title={title} />
</Layout>
),
};
}
export default ... |
js/ui/Cookies.js | ahoak/react-cookie-app | import React from 'react';
import { Grid, Row, Col } from 'react-flexbox-grid';
import MenuContainer from './MenuContainer'
const Cookies = () => (
<div>
<Grid fluid>
<Row>
<Col sm={12} md={12} lg={12}>
<div>
<MenuContainer />
</div>
</Col>
</Row>
<... |
src/svg-icons/image/crop.js | mmrtnz/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... |
src/routes/statistics/monitor/components/recentAccount.js | muidea/magicSite | import React from 'react'
import PropTypes from 'prop-types'
import { Table } from 'antd'
import styles from './recentAccount.less'
function RecentAccount({ data }) {
const columns = [
{
title: '名称',
dataIndex: 'name',
}, {
title: '注册时间',
dataIndex: 'registerDate',
render: text ... |
client/containers/signup/index.js | Elektro1776/Project_3 | import React, { Component } from 'react';
import SignupForm from '../../components/SignupForm';
import { signupUser } from '../../actions/signupActions';
import { withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import styles from "./signup.css"
class Si... |
src/client/index.js | Restuta/rcn.io | import 'styles/bootstrap.scss'
import 'app.scss'
//to use generators
import 'regenerator-runtime/runtime'
// import 'core-js/library/es6/promise' //required for IE11
import 'isomorphic-fetch' //required for IE11 and Safary
//favicons
import 'public/img/favicon.ico'
import 'public/img/apple-touch-icon-152x152.png'
imp... |
packages/react-ui-components/src/Button/index.story.js | dimaip/neos-ui | import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import {withKnobs, text, boolean, select} from '@kadira/storybook-addon-knobs';
import {StoryWrapper} from './../_lib/storyUtils.js';
import Button from './index.js';
const validSizes = ['small', 'regular'];
storiesOf('Button', module)
... |
app/javascript/mastodon/features/report/components/status_check_box.js | ebihara99999/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import emojify from '../../../emoji';
import Toggle from 'react-toggle';
class StatusCheckBox extends React.PureComponent {
static propTypes = {
status: ImmutablePropTypes.map.isRequired,
... |
examples/embeds/index.js | AlbertHilb/slate |
import { Editor } from 'slate-react'
import { State } from 'slate'
import React from 'react'
import Video from './video'
import initialState from './state.json'
/**
* Define a schema.
*
* @type {Object}
*/
const schema = {
nodes: {
video: Video
}
}
/**
* The images example.
*
* @type {Component}
*/... |
data-browser-ui/public/app/components/documentation/cloudQueue.js | CloudBoost/cloudboost | import React from 'react'
import ReactDOM from 'react-dom'
import { observer } from "mobx-react"
import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card'
@observer
class CloudQueue extends React.Component {
constructor() {
super()
this.state = {
}
... |
docs/src/pages/demos/snackbars/FadeSnackbar.js | cherniavskii/material-ui | import React from 'react';
import Button from 'material-ui/Button';
import Snackbar from 'material-ui/Snackbar';
import Fade from 'material-ui/transitions/Fade';
class FadeSnackbar extends React.Component {
state = {
open: false,
};
handleClick = () => {
this.setState({ open: true });
};
handleClos... |
node_modules/eslint-config-airbnb/test/test-react-order.js | mzagaja/question_tool | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
rules: {
// It is okay to import devDependencies in tests.... |
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/no-options/index.js | boquiabierto/wherever-content | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* The internal dependencies.
*/
import Field from 'fields/components/field';
import withSetup from 'fields/decorators/with-setup';
/**
* Render a notice to inform the user that the field doesn't have
* any opt... |
pootle/static/js/shared/components/Dialog.js | iafan/zing | /*
* Copyright (C) Pootle contributors.
* Copyright (C) Zing contributors.
*
* This file is a part of the Zing 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... |
packages/react/src/components/organisms/UtilityPanel/UtilityPanel.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import UtilityPanel from '.';
import UtilityPanelDocs from './UtilityPanel.md';
import UtilityPanelData from './UtilityPanel.json';
export const UtilityPanelExample = (args) => <UtilityPanel {...args} />;
UtilityPanelExample.storyName =... |
app/javascript/mastodon/features/ui/components/bundle_modal_error.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from '../../../components/icon_button';
const messages = defineMessages({
error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp... |
components/base/TopNavigation/LogoLink.js | CarbonStack/carbonstack | import React from 'react'
import Link from 'next/link'
import {
textColor
} from '../../../lib/styles/variables'
const LogoLink = props => (
<h1 className='LogoLink'>
<Link href={props.href} as={props.as}>
<a>
<img src='https://unpkg.com/@carbonstack/favicon@0.0.1/assets/logo.svg' />
{pr... |
docs/src/app/components/pages/components/List/Page.js | manchesergit/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 listReadmeText from './README';
import listExampleSimpleCode from '!raw!.... |
src/components/Track/Background/index.js | lukekarrys/repeatone.club | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CSSModules from 'react-css-modules';
import { cssfilters } from '../../../helpers/modernizr';
@CSSModules(require('./style.less'))
export default class Background extends Component {
static propTypes = {
image: Pr... |
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js | greatdinosaur/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import AvatarItem from 'components/common/AvatarItem.react';
var ContactItem = React.createClass({
displayName: 'ContactItem',
propTypes: {
contact: React.PropTypes.object,
onSelect: React.PropTypes.func
},
mixins: [PureRende... |
src/components/article/title-row-upon.js | hanyulo/twreporter-react | // import topicRightArrow from '../../../static/asset/icon-topic-arrow-right.svg'
import { date2yyyymmdd } from '../../utils/index'
import Link from 'react-router/lib/Link'
import { LINK_PREFIX } from '../../constants/index'
import { screen } from '../../themes/screen'
import { typography, globalColor, colors } from '.... |
src/workshops/authoring/Step.js | GrayTurtle/rocket-workshop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Icon from 'react-icons-kit';
import { ic_delete_forever } from 'react-icons-kit/md/ic_delete_forever';
import { DragSource } from 'react-dnd';
import './assets/css/Step.css';
class Step extends Component {
static propTypes ... |
app/containers/ServerSettings.js | NightBrownie/RedisViewer | import React from 'react'
import {connect} from 'react-redux'
import PropTypes from 'prop-types'
import { withRouter } from 'react-router'
import serverActions from '../actions/server'
import routes from '../constants/routes'
import ServerSettings from '../components/ServerSettings'
const ServerSettingsContainer = w... |
src/components/library/StandardButton/index.js | jfilter/frag-den-staat-app | import { Button, Icon } from 'react-native-elements';
import React from 'react';
import { greyDark, primaryColor } from '../../../globals/colors';
const borderRadius = 30;
const StandardButton = ({ containerViewStyle, disabled, icon, ...rest }) => (
<Button
buttonStyle={{
margin: 5,
padding: 5,
... |
src/parser/druid/guardian/modules/features/IronFurGoEProcs.js | fyruna/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import GuardianOfElune from './GuardianO... |
src/svg-icons/action/assignment-returned.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturned = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .... |
docs/src/app/pages/components/Input/ExampleInputPlaceholder.js | GetAmbassador/react-ions | import React from 'react'
import Input from 'react-ions/lib/components/Input'
const ExampleInputPlaceholder = () => (
<Input value='' placeholder='Placeholder text.' />
)
export default ExampleInputPlaceholder
|
src/svg-icons/navigation/arrow-forward.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowForward = (props) => (
<SvgIcon {...props}>
<path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/>
</SvgIcon>
);
NavigationArrowForward = pure(NavigationArrowForward);
Navigation... |
website/irulez/src/components/admin_menu/fields/SelectionField.js | deklungel/iRulez | import React, { Component } from 'react';
import { withStyles } from '@material-ui/core/styles';
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import FormControl from '@material-ui/core/FormControl';
import Select from '@material-ui/core/Select';
const styles... |
src/svg-icons/device/nfc.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNfc = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2... |
packages/giu/src/components/progress.js | guigrpa/giu | // @flow
import React from 'react';
import classnames from 'classnames';
import { ThemeContext } from '../gral/themeContext';
import type { Theme } from '../gral/themeContext';
// ==========================================
// Declarations
// ==========================================
/* --
A wrapper for the native HT... |
lens-ui/app/components/LogoutComponent.js | RaghavendraSingh/lens | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
examples/huge-apps/components/App.js | tkirda/react-router | /*globals COURSES:true */
import React from 'react'
import Dashboard from './Dashboard'
import GlobalNav from './GlobalNav'
class App extends React.Component {
render() {
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={COURSES... |
docs/src/app/components/PropTypeDescription.js | rscnt/material-ui | import React from 'react';
import {parse} from 'react-docgen';
import {parse as parseDoctrine} from 'doctrine';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import MarkdownElement from './MarkdownElement';
import recast from 'recast';
require('./prop-type-description.css');
function getDeprecatedInfo... |
src/renderers/AboutRenderer.js | dkozar/react-data-menu | import React, { Component } from 'react';
export default class AboutRenderer extends Component {
render() {
var data = this.props.data;
return (
<div key={data.key} id={data.id} className='about-menu-item'>
<div className='about-menu-item-title'>
Thi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.