path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
clients/packages/admin-client/src/steps/step.js | nossas/bonde-client | import PropTypes from 'prop-types'
import React from 'react'
const Step = ({ children, stepComponent: StepComponent, ...props }) => (
<StepComponent {...props}>
{children}
</StepComponent>
)
Step.propTypes = {
step: PropTypes.number,
isValid: PropTypes.bool,
stepComponent: PropTypes.any.isRequired
}
ex... |
js/src/dialogs/NewRedirect.js | syslo/file_publisher | import React from 'react'
import {ControlLabel, FormControl, FormGroup} from 'react-bootstrap'
import NewRevisionWrapper from './NewRevisionWrapper'
export default class NewRedirect extends React.Component {
getResource() {
return this.props.actions.newRedirect(
this.props.value.name, this.props.value.ur... |
src/shared/i18n/translate.js | buttercup-pw/buttercup | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
const Translate = props => {
// init props
const { html, i18nKey, t, text, children, parent, values = {} } = props;
let Parent = parent;
// search translation and pass values
const translatedText = t(i... |
src/components/Header/index.js | kimshako/portfolio.shako.net | import React from 'react'
import moment from 'moment'
import { Container, RoundedButton } from '..'
import './styles.css'
const Header = () => (
<div className="Header">
<div className="buttons">
<RoundedButton title="GitHub" link="//github.com/kimshako/portfolio.shako.net" />
<RoundedButton title="... |
app/javascript/mastodon/features/compose/components/upload_button.js | honpya/taketodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 're... |
index.android.js | pcstl/app-saber | /**
* index.android.js: Ponto de entrada Android
*
* Este arquivo define o primeiro componente carregado pelo aplicativo
* quando ele é executado na plataforma Android.
*
* O componente definido neste arquivo é responsável por realizar quaisquer
* customizações necessárias para a plataforma Andro... |
docs/src/app/components/pages/components/Table/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 tableReadmeText from './README';
import TableExampleSimple from './Exampl... |
src/gm3/components/linearProgress.js | geomoose/gm3 | import React from 'react';
const LinearProgress = () => (
<div className="linear-progress">
<div className="bar">
</div>
</div>
);
export default LinearProgress;
|
src/components/Problem.js | hansenjl/circuit-builder-client | import React from 'react';
import { Link } from 'react-router-dom'
const Problem = ({problem}) => (
<Link to={`/problems/${problem.id}`}>
<div>
<p>Difficulty: {problem.difficulty}</p>
<p>Category: {problem.category}</p>
<p># of Loops: {problem.loops.length}</p>
<p>Likes: {problem.likes} ... |
source/patterns/01-molecules/card/docs/card.example.js | apparena/patterns | import React from 'react';
import {Card} from 'apparena-patterns-react';
export default function CardExample() {
return (
<Card>
<div type="card-header">
<h4>This is the title of the card</h4>
</div>
<div type="card-block">
<p>This is the ... |
src/svg-icons/device/battery-90.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery90 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
test/test_helper.js | LianaBuss/react-weather | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/Radial.react.js | FrenchBen/kitematic | import React from 'react';
import classNames from 'classnames';
var Radial = React.createClass({
render: function () {
var percentage;
if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) {
percentage = (
<div className="percentage"><... |
src/routes/Home/components/VideoPlayer.js | nnti3n/YouTime | import React from 'react'
import youTubePlayer from 'youtube-player'
function shouldUpdateVideo(prevProps, props) {
if (prevProps.videoId !== props.videoId){
return true
}
return false
}
class VideoPlayer extends React.Component {
constructor (props) {
super(props)
this.internalPlayer = null
}... |
src/components/Notifs/Notifs.js | TackleboxBeta/betabox-seed | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
@connect(
(state, props) => ({ notifs: state.notifs[props.namespace] || [] })
)
export default class Notifs extends Component {
static propTypes = {
notifs: PropTypes.array.isRequired,
Notif... |
packages/views/shared/components/Footer/index.js | isbasex/blog-engine | import React from 'react'
import IconGithub from 'shared/svg-icons/github.svg'
import IconInbox from 'shared/svg-icons/inbox.svg'
import IconTelegram from 'shared/svg-icons/telegram.svg'
import './index.module.scss'
const Footer = () => (
<footer styleName="footer">
<div className="main-container">
<a styl... |
index.ios.js | Exper1ence/Community | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class Community extends Component {
render() {
return (
<View style={styles.container... |
src/svg-icons/av/playlist-add.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/>
</SvgIcon>
);
AvPlaylistAdd = pure(AvPlaylistAdd);
AvPlaylistAdd... |
docs/src/CodeExample.js | collinwu/react-bootstrap | import React from 'react';
export default class CodeExample extends React.Component {
render() {
return (
<pre className="cm-s-solarized cm-s-light">
<code>
{this.props.codeText}
</code>
</pre>
);
}
componentDidMount() {
if (CodeMirror === undefined) {
ret... |
client/component/log-page/log-filters.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
/**
* Internal dependencies
*/
import BulkAction from 'component/table/bulk-action';
import { MultiOptionDropdown } from 'wp-plugin-components';
import TableGroup from 'component/table/group';
/** @typedef ... |
app/javascript/mastodon/components/status.js | cobodo/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
src/containers/MenuView/DocumentUpload/DocumentUpload.js | JamesJin038801/CampID | import { Text, View, Platform, Image, ScrollView, ListView } from 'react-native';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import I18n from 'react-native-i18n';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import NavigationBar from 'react-nat... |
js/src/dialogs/NewFile.js | syslo/file_publisher | import React from 'react'
import {ControlLabel, FormControl, FormGroup} from 'react-bootstrap'
import NewRevisionWrapper from './NewRevisionWrapper'
export default class NewFile extends React.Component {
getResource() {
return this.props.actions.newFile(
this.props.value.file
)
}
setValue(key, v... |
docs/app/Examples/modules/Modal/Types/ModalExampleBasic.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Button, Header, Icon, Modal } from 'semantic-ui-react'
const ModalBasicExample = () => (
<Modal trigger={<Button>Basic Modal</Button>} basic size='small'>
<Header icon='archive' content='Archive Old Messages' />
<Modal.Content>
<p>Your inbox is getting full, would you... |
src/svg-icons/content/remove.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemove = (props) => (
<SvgIcon {...props}>
<path d="M19 13H5v-2h14v2z"/>
</SvgIcon>
);
ContentRemove = pure(ContentRemove);
ContentRemove.displayName = 'ContentRemove';
ContentRemove.muiName = 'SvgIcon... |
video-advisor-ui/va/src/App.js | n3ls0nla8/video-advisor | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import Child from "./Child";
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h... |
src/DemoWizard.js | rexxars/imbo-demo | import React from 'react'
import {Client as ImboClient} from 'imboclient'
import ImageControlsContainer from './ImageControlsContainer'
const thumbOpts = {
width: 200,
height: 200
}
class DemoWizard extends React.Component {
constructor() {
super()
const config = JSON.parse(localStorage.imboConfig || '... |
Libraries/Components/Keyboard/Keyboard.js | jadbox/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
react-router-demo/lessons/10-clean-urls/modules/Home.js | zhangjunhd/react-examples | import React from 'react'
export default React.createClass({
render() {
return <div>Home</div>
}
})
|
app/components/Commissioned/photos/PhotoSerie.js | 1Green/projectAout | import React from 'react';
import Slider from 'react-slick';
import Transition from 'react-addons-css-transition-group';
import { read } from '../../../utils/methods';
export const PhotoSerie = React.createClass({
render() {
const { photos, params } = this.props;
var settings = {
dots: false... |
src/components/Footer/Footer.js | erichardson30/cardinal_interview_react | /**
* React Starter (https://github.com/erichardson30/react-starter)
*
* Copyright © 2016 Eric Richardson. 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, { Component } from 'react';
import wi... |
src/main/webapp/resources/js/components/common/sidermenu.js | peterchenhdu/webbf | import { Menu, Icon } from 'antd';
import React from 'react'
const SubMenu = Menu.SubMenu;
export default class SiderMenu extends React.Component {
constructor(props) {
super(props);
this.state={
current: 'userMgt',
openKeys: []
};
}
handleClick(e) {
window.location.hash = e.key;
... |
judge/client/src/Components/UserSolution.js | istamenov/NodeJS_Judge | import React, { Component } from 'react';
class UserSolution extends Component {
render() {
let results = [];
for (var res in this.props.solution.results)
{
if(this.props.solution.results[res] === 'p'){
results.push((<img src={"http://icons.iconarchive.com/icons/mattahan/umicons/128/Letter-... |
client/extensions/woocommerce/woocommerce-services/components/weight-field/index.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* Internal dependencies
*/
import FormFieldset from 'components/forms/form-fieldset';
import FormLabel from 'components/forms/form-label';
import FormTextInputWithAffixes from 'components/forms/form-te... |
app/jsx/developer_keys/ActionButtons.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
example/index.ios.js | jodybrewster/react-native-linkedin-login | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
'use strict';
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import Example from './Example';
AppRegistry.registerComponent('RNLinkedinLoginExample', () => Example);
|
actor-apps/app-web/src/app/components/JoinGroup.react.js | bradparks/actor-platform___im_client_cross_platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
project/src/scenes/Admin/Media/MediaManager/index.js | boldr/boldr | // @flow
import React from 'react';
import { graphql } from 'react-apollo';
import universal from 'react-universal-component';
import type { MediaType } from '../../../../types/boldr';
import MEDIA_BY_ID_QUERY from '../gql/mediaById.graphql';
const UniversalMediaManager = universal(import('./MediaManager'));
type P... |
modules/gui/src/app/app.js | openforis/sepal | import {compose} from 'compose'
import {connect} from 'store'
import {loadUser$} from 'user'
import {selectFrom} from 'stateUtils'
import Home from 'app/home/home'
import Landing from 'app/landing/landing'
import Notifications from 'widget/notifications'
import PropTypes from 'prop-types'
import React from 'react'
impo... |
admin/src/components/Footer.js | woody0907/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import { Container } from 'elemental';
var Footer = React.createClass({
displayName: 'Footer',
propTypes: {
appversion: React.PropTypes.string,
backUrl: React.PropTypes.string,
brand: React.PropTypes.string,
Us... |
src/components/d3components/Label.js | nbuechler/studious-display | import React from 'react';
import d3 from 'd3';
import _ from 'underscore';
export default class Label extends React.Component {
constructor (props) {
super(props);
this.state = { };
}
render () {
return (
<text x={this.props.offset + 5 } y={this.props.availableHeight + this.props.buffers.top/2... |
docs/src/app/components/pages/components/Tabs/ExampleSimple.js | owencm/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import Slider from 'material-ui/Slider';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
};
function handleActive(tab) {
alert(`A tab with this route property ${tab.props['data... |
js/app.js | anil26/MovieSearchGoogleMaps | /**
*
* app.js
*
* This is the entry file for the application
*
*/
// Import all the third party stuff
import React from 'react';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impo... |
public/components/frontPage/UserButtons.js | City-of-Vantaa-SmartLab/kupela | import React from 'react';
import { connect } from 'react-redux';
import UserInputHandler from './UserInputHandler';
import { initSocketVersion, sendMessage, getSomeMessages } from '../../reducer/serverConnection/actions';
import { changeText } from '../../reducer/textvalues/actions';
const UserButtons = (props, {prof... |
src/Containers/Search/Search.js | rahulp959/airstats.web | import React from 'react'
import {connect} from 'react-redux'
import { fetchSearch } from '../../ducks/search'
import TableSearch from './TableSearch/TableSearch'
class Search extends React.Component {
componentDidMount () {
this.props.dispatch(fetchSearch(this.props.match.params.searchTerm))
}
componentWil... |
mdbreact/components/TabContent.js | ryanwashburne/react-skeleton | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { omit } from './utils';
const propTypes = {
activeItem: PropTypes.any,
tabId: PropTypes.any,
className: PropTypes.string
};
class TabContent extends React.Component {
constructor(props) {
super(pro... |
example/CartView/app/components/ProductItemNote.js | yaraht17/react-native-draggable-view |
import React, { Component } from 'react';
import {
StyleSheet, View, Dimensions, Image, Text,
Animated, Platform, TouchableOpacity, ScrollView, FlatList, TextInput
} from 'react-native';
import Collapsible from 'react-native-collapsible';
import iconStar from '../media/icon_star.png'
import iconStarDisable fr... |
src/svg-icons/places/smoke-free.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSmokeFree = (props) => (
<SvgIcon {...props}>
<path d="M2 6l6.99 7H2v3h9.99l7 7 1.26-1.25-17-17zm18.5 7H22v3h-1.5zM18 13h1.5v3H18zm.85-8.12c.62-.61 1-1.45 1-2.38h-1.5c0 1.02-.83 1.85-1.85 1.85v1.5c2.24 0 ... |
client/src/containers/RandomQuote.js | lucketta/got-quote-generator | import React, { Component } from 'react';
import { Jumbotron } from 'react-bootstrap';
import { bindActionCreators } from 'redux'
import { Button } from 'react-bootstrap';
import * as quotes from '../actions/quoteCreators'
import {connect} from 'react-redux'
class RandomQuote extends Component {
componentDidMount()... |
src/components/spark_chart.js | miclovich/weather | import React from 'react';
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';
function getAverage(data){
return Math.round((data.reduce((a,b) => a + b)) / data.length);
}
export default function SparkChart(props) {
return (
<div>
<Sparklines height={pr... |
src/routes/users/UserModal.js | zhangjingge/sse-antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Form, Input, InputNumber, Radio, Modal } from 'antd'
const FormItem = Form.Item
const formItemLayout = {
labelCol: {
span: 6,
},
wrapperCol: {
span: 14,
},
}
const modal = ({
visible,
type,
item = {},
onOk,
onCancel,
for... |
components/SwipeMenu.js | Belhalaribi/PFE | import React, { Component } from 'react';
import Drawer from 'material-ui/Drawer';
import Swipeable from 'react-swipeable';
export default class SwipeMenu extends Component
{
constructor(){
super();
this.state = {
open: false
}
}
swipe = () => {
this.setState({
open: true
})
... |
src/toolPages/explorerSidebar.js | kura52/sushi-browser | window.debug = require('debug')('info')
// require('debug').enable("info")
import process from './process'
import React from 'react';
import ReactDOM from 'react-dom';
import {FileExplorer, getHome} from './explorer';
import path from 'path';
import '../defaultExtension/contentscript'
;(async ()=>{
const homePath =... |
src/components/CodeSnippet/CodeSnippet.Skeleton.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, { Component } from 'react';
import classNames from 'classnames';
import { settings } from '... |
example/src/Delay.js | ryo33/redux-pages | import React from 'react'
export default ({ params }) => (
<div>
<h2>Delay</h2>
<p>It was displayed after {params.msec} ms delay</p>
</div>
)
|
views/blocks/SearchBar/SearchBarInput/SearchBarInput.js | AlSoEdit/team5 | import React from 'react';
import './SearchBarInput.css';
import b from 'b_';
import {SearchBarInputString} from './../../../constants/strings';
export default class SearchBarInput extends React.Component {
render() {
const {searchString, onShowParams} = this.props;
return (
<div classN... |
src/svg-icons/communication/phonelink-ring.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkRing = (props) => (
<SvgIcon {...props}>
<path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2... |
app/javascript/mastodon/components/loading_indicator.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export const CircularProgress = ({ size, strokeWidth }) => {
const viewBox = `0 0 ${size} ${size}`;
const radius = (size - strokeWidth) / 2;
return (
<svg width={size} height={size} viewBox={viewBox} className='circular-progress' role='progress... |
src/components/ArFormGroup.js | philipzhou2009/amoy-rangers | import React from 'react'
import { Field } from 'redux-form'
// import { SelectCompanyT1WithData } from '../form'
const renderField = ({ input, label, type, meta: { touched, error, warning } }) => {
let hasError = touched && (error || warning)
let errorClass = ''
let errorMsg = null
if (hasError) {
... |
client/src/components/AutoSuggestInput.js | codefordenver/Circular | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import PlacesAutocomplete, { geocodeByAddress, getLatLng } from 'react-places-autocomplete';
import scriptLoader from 'react-async-script-loader';
import { GeoPoint } from '../firebase';
import { clearSe... |
internals/templates/containers/LanguageProvider/index.js | wenpengfei/react-boilerplate | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react'
import { connect } from 'react-redux'
import { createSelector } from 'reselect'
import { IntlProvider } from 'react-i... |
src/scenes/home/families/facts/facts.js | OperationCode/operationcode_frontend | import React from 'react';
import styles from './facts.css';
import family3 from '../../../../images/Family-3.jpg';
const Facts = () => (
<div className={styles.facts}>
<div className={styles.factsList}>
<div className={styles.factsHeading}>
<h5>The Facts</h5>
</div>
<ul>
<li cl... |
fixtures/attribute-behavior/src/index.js | yangshun/react | import './index.css';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/svg-icons/maps/local-taxi.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalTaxi = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4... |
src/svg-icons/content/reply-all.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReplyAll = (props) => (
<SvgIcon {...props}>
<path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/>
</SvgIcon>
);
ContentReplyAll = pure(ContentReplyAll);
Conte... |
packages/icons/src/md/notification/VoiceChat.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdVoiceChat(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M40 4c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H12l-8 8 .02-36c0-2.21 1.77-4 3.98-4h32zm-4 24V12l-8 6.4V12H12v16h16v-6.4l8 6.4z" />
</IconBase>
... |
server/sonar-web/src/main/js/apps/project-admin/routes.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact 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... |
examples/react-router/client/main.js | okgrow/analytics | import React, { Component } from 'react';
import { Meteor } from 'meteor/meteor';
import { Random } from 'meteor/random';
import { render } from 'react-dom';
import { Router, Route, browserHistory, Link } from 'react-router';
import { analytics } from "meteor/okgrow:analytics";
import { LoginButtons } from 'meteor/okgr... |
src/shared/components/form/formEmail/formEmail.js | sethbergman/operationcode_frontend | import React, { Component } from 'react';
import FormInput from '../formInput/formInput';
class FormEmail extends Component {
render() {
const validEmailRegex = /(^[^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})/;
return (
<FormInput
{...this.props}
validationRegex={validEmailRegex}
vali... |
src/svg-icons/notification/do-not-disturb-alt.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8... |
spec/javascripts/jsx/gradebook/default_gradebook/GradebookGrid/headers/StudentColumnHeaderSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
stories/ui/Rating.js | kumar303/addons-frontend | /* @flow */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import { fakeI18n } from 'tests/unit/helpers';
import Rating, { RatingBase } from 'ui/components/Rating';
import type { Props as RatingProps } from 'ui/components/Rating';
import { cr... |
dev/test-studio/parts/tools/css-variables/tool.js | sanity-io/sanity | import React from 'react'
import cssCustomProperties from 'sanity:css-custom-properties'
import {ThemePropertyGroup} from './propertyGroup'
import metadata from './metadata'
import {getData} from './helpers'
import styles from './tool.css'
function CSSVariablesTool() {
const data = React.useMemo(() => getData(metad... |
modules/Home/RequestCaptureBox.js | cloudytimemachine/frontend | import React from 'react'
import { Link } from 'react-router'
import RequestCaptureForm from '../Common/RequestCaptureForm'
export default React.createClass({
render() {
return (
<div className="requestCaptureBox">
<h4>Archive a website</h4>
<RequestCaptureForm />
</div>
)
}
})
|
src/modules/Popup/PopupContent.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A PopupContent displays the content body of a Popover.
*/
export default function PopupContent(props)... |
src/js/components/filterComponent.js | nestalk/toggl-report-react | import React from 'react';
import Token from './tokenComponent';
import DatePicker from './dateComponent';
import WorkHours from './workHoursComponent';
const filterComponent = () => {
return (
<div className="filter">
<Token />
<WorkHours />
<DatePicker />
</di... |
src/svg-icons/action/perm-scan-wifi.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermScanWifi = (props) => (
<SvgIcon {...props}>
<path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/>
</SvgIcon>
);
ActionPermScanWifi = pure(A... |
packages/material-ui-icons/src/RingVolume.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let RingVolume = props =>
<SvgIcon {...props}>
<path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0 .52-.11.7-... |
app/components/EditAdmins/index.js | theClubhouse-Augusta/JobWeasel-FrontEnd | /**
*
* EditAdmins
*
*/
import React from 'react';
import './style.css';
import './styleM.css';
export default class EditAdmins extends React.PureComponent {
constructor () {
super (),
this.state = {
users: [],
notification: "",
}
}
componentWillMount() {
this.getUsers();
}
ge... |
src/components/anchors.js | MarcoPolo/emoji-mart | import React from 'react'
import InlineSVG from 'svg-inline-react'
import * as SVGs from '../svgs'
export default class Anchors extends React.Component {
constructor(props) {
super(props)
var defaultCategory = props.categories[0]
if (defaultCategory.anchor) {
defaultCategory = defaultCategory.anc... |
webApp/web_client/components/BroadcastEntry.js | deliquescentlicorice/silent-disco | import React from 'react';
// MATERIAL DESIGN
import ListItem from '../../node_modules/material-ui/lib/lists/list-item';
import Divider from '../../node_modules/material-ui/lib/divider';
import Avatar from '../../node_modules/material-ui/lib/avatar';
import MenuItem from '../../node_modules/material-ui/lib/menus/menu-... |
src/components/commit-list-item.component.js | gitpoint/git-point | import React from 'react';
import { StyleSheet, TouchableHighlight, View } from 'react-native';
import { ListItem } from 'react-native-elements';
import { colors, fonts } from 'config';
type Props = {
commit: Object,
navigation: Object,
};
const styles = StyleSheet.create({
container: {
flexDirection: 'row'... |
src/components/ProjectList.js | drakang4/creative-project-manager | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { primary, black, white } from '../styles/color';
import Card from './Card';
const Wrapper = styled.div`
padding: 16px;
padding-top: 72px;
`;
const Button = styled.button`
border: none;
border-bottom:... |
src/ModalBody.js | azmenak/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalBody extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalBody.prop... |
packages/base-shell/src/providers/AddToHomeScreen/Context.js | TarikHuber/react-most-wanted | import React from 'react'
export const Context = React.createContext(null)
export default Context
|
views/decoration_toggle.js | Ribeiro/black-screen | import React from 'react';
export default React.createClass({
getInitialState() {
return {enabled: this.props.invocation.state.decorate};
},
handleClick(event) {
stopBubblingUp(event);
var newState = !this.state.enabled;
this.setState({enabled: newState});
this.prop... |
react/IconJobAd/IconJobAd.iconSketch.js | seekinternational/seek-asia-style-guide | import React from 'react';
import IconJobAd from './IconJobAd';
export const symbols = {
'IconJobAd': <IconJobAd />
};
|
src/pages/page-2.js | twitchett/gatsby-uno | import React from 'react'
import Link from 'gatsby-link'
const SecondPage = () => (
<div>
<h1>Hi people</h1>
<p>Welcome to page 2</p>
<Link to="/">Go back to the homepage</Link>
</div>
)
export default SecondPage
|
src/containers/pages/miscellaneous/privacy-policy/cookies/table-of-content.js | vFujin/HearthLounge | import React from 'react';
const ToCCookies = () =>{
return (
<li>
<h3><a href="#cookies">Cookies</a></h3>
<ul>
<li><a href="#cookies-control">Do we use 'cookies'?</a></li>
<li><a href="#cookies-usage">What do we use cookies for?</a></li>
<li><a href="#cookies-disa... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/compare-arrows.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionCompareArrows = (props) => (
<SvgIcon {...props}>
<path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/>
</SvgIcon>
);
ActionCompareArrows.displayName = 'ActionCompareArrows';
ActionCompareArrows.muiName =... |
src/components/App.js | ellenhong/virginamerica | import React, { Component } from 'react';
import { Router, Route, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import { syncHistoryWithStore } from 'react-router-redux';
import DevTools from './devtools';
import Layout from './Layout';
import generateStore from '../generateStore';
req... |
client/app/bundles/ToDo/components/application.js | macbury/basket | import React from 'react';
import { connect } from 'react-redux';
import Header from './layout/header';
import FlashMessages from './layout/flash_messages';
class Application extends React.Component {
render() {
return (
<div>
<Header />
{ this.props.children }
<FlashMessages />
... |
test/integration/image-component/default/pages/layout-fixed.js | azukaru/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Layout Fixed</p>
<Image
id="fixed1"
src="/wide.png"
width="1200"
height="700"
layout="fixed"
></Image>
<Image
id="fixed2"
src="/wide.png"... |
website-prototyping-tools/playground.js | chentsulin/relay | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use strict... |
src/modules/sermon/SermonEdit.js | rllc/llc-archives-react | import React from 'react'
import SermonService from '../../services/SermonService.js'
import Textfield from 'react-mdl/lib/Textfield'
import Button from 'react-mdl/lib/Button'
import ProgressBar from 'react-mdl/lib/ProgressBar'
import Switch from 'react-mdl/lib/Switch'
import {List, ListItem, ListItemContent, ListItemA... |
src/app/components/PlayBar.js | skratchdot/audio-editor | import React, { Component } from 'react';
import { Row, Col, Button, Glyphicon } from 'react-bootstrap';
import { connect } from 'react-redux';
import { setPlaybackPosition } from '../actions/playbackPosition';
import { setPlaybackType } from '../actions/playbackType';
class PlayBar extends Component {
handlePlaybac... |
src/svg-icons/editor/functions.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFunctions = (props) => (
<SvgIcon {...props}>
<path d="M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"/>
</SvgIcon>
);
EditorFunctions = pure(EditorFunctions);
EditorFunctions.displayName = 'EditorFunctions... |
components/forms/contact.js | react-ui-kit/base | import React from 'react';
import PropTypes from 'prop-types';
import Button from 'core/button';
import 'sass/forms/forms';
export default class Contact extends React.Component {
static displayName = 'Contact'
static propTypes = {
className: PropTypes.string,
contactText: PropTypes.string,
description... |
src/mui/form/FormField.js | epwqice/admin-on-rest-old-man | import React from 'react';
import { Field } from 'redux-form';
import Labeled from '../input/Labeled';
const FormField = ({ input, ...rest }) => input.props.addField ?
(input.props.addLabel ?
<Field {...rest} {...input.props} name={input.props.source} component={Labeled} label={input.props.label}>{ input }... |
src/PageItem.js | collinwu/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.