path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/settings/SettingsPageHeader.js | great-design-and-systems/cataloguing-app | import FontAwesome from 'react-fontawesome';
import { LABEL_SETTINGS } from '../../labels/';
import React from 'react';
export const SettingsPageHeader = () => {
return (<h3 className="page-header-title text-primary"><FontAwesome name="gears" size="lg" fixedWidth={true} />{LABEL_SETTINGS}</h3>);
}; |
examples/website/src/parsers/lua/luaparse.js | w-y/ecma262-jison | import React from 'react';
import defaultParserInterface from '../utils/defaultParserInterface';
import pkg from 'luaparse/package.json';
const ID = 'luaparse';
export default {
...defaultParserInterface,
id: ID,
displayName: ID,
version: `${pkg.version}`,
homepage: pkg.homepage,
locationProps: new Set([... |
src/parser/paladin/holy/modules/talents/AvengingCrusader.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import { formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS/index';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import ItemHealingDone from 'int... |
app/packs/src/components/ContainerDatasetModal.js | ComPlat/chemotion_ELN | import React, { Component } from 'react';
import { Modal, ButtonToolbar, Button } from 'react-bootstrap';
import ContainerDataset from './ContainerDataset';
export default class ContainerDatasetModal extends Component {
constructor(props) {
super(props);
this.datasetInput = React.createRef();
this.handl... |
FPL.DraftLeague.APP/src/server.js | olehhe/fpl-draft-league | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
src/svg-icons/action/explore.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExplore = (props) => (
<SvgIcon {...props}>
<path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2... |
packages/maps/src/components/result/GoogleMapMarker.js | appbaseio/reactivesearch | /** @jsx jsx */
import { jsx } from '@emotion/core';
import React from 'react';
import types from '@appbaseio/reactivecore/lib/utils/types';
import { connect, ReactReduxContext } from '@appbaseio/reactivesearch/lib/utils';
import { InfoWindow, Marker } from '@react-google-maps/api';
import MarkerWithLabel from './add... |
docs/pages/api-docs/step-content.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/step-content';
const requireRaw = require.context('!raw-loader!./', false, /\/step-content\.md$/);
export default function P... |
src/components/course/CourseForm.js | panel/pluralsight-react-redux | import React from 'react';
import TextInput from '../common/TextInput';
import SelectInput from '../common/SelectInput';
const CourseForm = ({course, allAuthors, onSave, onChange, onDelete, loading, deleting, errors}) => {
return (
<form>
<h1>Manage Course <small><a
href="#"
... |
examples/with-now/src/App.js | jaredpalmer/react-production-starter | import './App.css';
import React from 'react';
const App = () => <div>Welcome to Razzle.</div>;
export default App;
|
src/Create.js | mauchede/fork-api-platform-admin | import Api from '@api-platform/api-doc-parser/lib/Api';
import Resource from '@api-platform/api-doc-parser/lib/Resource';
import {Create as BaseCreate, SimpleForm} from 'react-admin';
import PropTypes from 'prop-types';
import React from 'react';
const resolveProps = props => {
const {options} = props;
const {inpu... |
blueocean-material-icons/src/js/components/svg-icons/action/settings-bluetooth.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 3.83l1.88 1.88L13... |
node_modules/react-navigation/lib-rn/views/withNavigation.js | joan17cast/Enigma | import React from 'react';
import propTypes from 'prop-types';
import hoistStatics from 'hoist-non-react-statics';
var babelPluginFlowReactPropTypes_proptype_NavigationAction = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_NavigationAction || require('prop-types').any;
var babelPluginFlowReactPr... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | NajibOsman/Githubuser | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/containers/Search/SearchResults.js | codaco/Network-Canvas | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import Loading from '../../components/Loading';
import CardList from '../../components/CardList';
// This provides a workaround for visibility when a softkeyboard scrolls the viewport
// (for example, on iOS). TO... |
examples/src/components/MultiSelectField.js | jwarning/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var MultiSelectField = React.createClass({
displayName: 'MultiSelectField',
propTypes: {
label: React.PropTypes.string,
... |
website/src/BrowserAppContainer.js | Steviey/win-react-navigation |
import React from 'react';
import { NavigationActions, addNavigationHelpers } from 'react-navigation';
function getAction(router, path, params) {
const action = router.getActionForPathAndParams(path, params);
if (action) {
return action;
}
return NavigationActions.navigate({
params: { path },
rou... |
client/modules/App/__tests__/App.spec.js | eantler/google | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import { App } from '../App';
import styles from '../App.css';
import { intlShape } from 'react-intl';
import { intl } from '../../../util/react-intl-test-helper';
import { toggleAddPost } from '../App... |
packages/es-components/src/components/controls/answer-group/AnswerButton.js | jrios/es-components | /* eslint react/prop-types: 0 */
import React from 'react';
import styled from 'styled-components';
import useUniqueId from '../../util/useUniqueId';
import { useTheme } from '../../util/useTheme';
import ValidationContext from '../ValidationContext';
const AnswerLabel = styled.label`
flex-grow: 1;
@media (min-wi... |
frontend/components/host/host_home_container.js | qydchen/SafeHavn | import React from 'react';
import HostHome from './host_home';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { createHome } from '../../actions/home_actions';
import { fetchMapInfo } from '../../actions/map_actions';
const mapStateToProps = ({session, homes, map}) => {
... |
src/svg-icons/content/text-format.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentTextFormat = (props) => (
<SvgIcon {...props}>
<path d="M5 17v2h14v-2H5zm4.5-4.2h5l.9 2.2h2.1L12.75 4h-1.5L6.5 15h2.1l.9-2.2zM12 5.98L13.87 11h-3.74L12 5.98z"/>
</SvgIcon>
);
ContentTextFormat = pure(C... |
src/svg-icons/action/settings.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettings = (props) => (
<SvgIcon {...props}>
<path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l... |
src/React/Widgets/SelectionEditorWidget/range/FiveClauseRender.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/SelectionEditorWidget.mcss';
import Ineq from '../../../../../svg/Operations/Ineq.svg';
import Ineqq from '../../../../../svg/Operations/Ineqq.svg';
import LegendIcon from '../LegendIcon';
import NumberFormatter, {... |
screens/MeditationListScreen.js | FuzzyHatPublishing/isleep | import React, { Component } from 'react';
import { Image, Platform, StyleSheet, Text, TouchableHighlight, View } from 'react-native';
class MeditationListScreen extends Component {
static navigationOptions = ({ navigation }) => ({
title: 'Meditations',
headerStyle: { marginTop: Platform.OS === 'android' ? 24: 0,... |
frontend/src/Datarow.js | b00lduck/raspberry_soundboard | import React from 'react';
import './Datarow.css';
import Rainbow from './Rainbow.js';
export default class Sound extends React.Component {
constructor(props) {
super(props);
var newState = props.data;
var rainbow = new Rainbow();
newState.color = '#' + rainbow.colourAt(props.data.... |
packages/web/src/components/shared/SearchSvg.js | appbaseio/reactivesearch | import React from 'react';
const SearchSvg = (props = {}) => (
<svg
alt="Search"
className="search-icon"
height="12"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 15 15"
style={{
transform: 'scale(1.35)',
position: 'relative',
...(props.style ? props.style : {}),
}}
>
<title>Search</title>... |
fields/types/relationship/RelationshipColumn.js | ONode/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.createClass({
displayName: 'Rel... |
src/svg-icons/image/flash-off.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOff = (props) => (
<SvgIcon {...props}>
<path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/>
</SvgIcon>
);
ImageFlashOff = pure(ImageFlashOf... |
src/components/Example.js | Abrax20/snap-react | // @flow
import React, { Component } from 'react';
import { View, Text, StyleSheet, TouchableHighlight } from 'react-native';
import { Container, Header, Content, Footer, Title, Icon } from 'native-base';
import { Actions } from 'react-native-router-flux';
export default class Example extends Component {
render() {
... |
code/workspaces/web-app/src/containers/modal/LoadUserManagementModalWrapper.js | NERC-CEH/datalab | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { mapKeys, get, find } from 'lodash';
import dataStorageActions from '../../actions/dataStorageActions';
import userActions from '../../actions/userActi... |
fixtures/browser/graphql-with-mjs/src/index.js | IamJoseph/create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/js/pages/Proposals/Project/AvailabilityDatesPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../../../i18n/Translate';
import TopNavBar from '../../../components/TopNavBar/TopNavBar.js';
import '../../../../scss/pages/proposals/project/availability-dates.scss';
import connectToStores from "../../../utils/connec... |
src/icons/IosFootballOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosFootballOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M256,48C141.137,48,48,141.136,48,256c0,114.864,93.137,208,208,208c114.872,0,208-93.138,208-208
C464,141.138,3... |
src/pages/dynamic/Catalan/Catalan.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Catalan extends React.Component {
render() {
return (
<div>Catalan</div>
)
}
}
export default Catalan |
src/routes.js | clothiersphere/kioskPocalypse | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './app';
// import Main from './components/main.js';
import Admin from './components/admin.js';
export default (
<Route path="/" component={App}>
<IndexRoute component={Admin} />
<Route path="/admin" component={Admin... |
src/app/components/Footer.js | preeminence/react-redux-skeleton | import React from 'react';
class Footer extends React.Component {
render() {
return null;
}
}
export default Footer;
|
src/index.js | hotbeatles/time-range-picker-react | import ReactDOM from 'react-dom';
import React from 'react';
import App from './App';
const rootElement = document.getElementById('root');
ReactDOM.render(<App/>, rootElement);
|
app/components/TodoApp/TodoApp.js | ninetails/feijoada-um | import React from 'react';
import TodoList from 'components/TodoList/TodoList';
const TodoApp = ({TodoStore, dispatch}) => (
<section className='todoapp'>
<TodoList dispatch={dispatch} todos={TodoStore.get('todos')}/>
</section>
);
export default TodoApp;
|
admin/client/App/shared/AlertMessages.js | matthewstyers/keystone | import React from 'react';
import { Alert } from '../elemental';
import { upcase } from '../../utils/string';
/**
* This renders alerts for API success and error responses.
* Error format: {
* error: 'validation errors' // The unique error type identifier
* detail: { ... } // Optional details specific t... |
src/svg-icons/action/group-work.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGroupWork = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5... |
blueocean-material-icons/src/js/components/svg-icons/image/assistant.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageAssistant = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11l-4.12 1.88z"/>
</SvgIcon>
);
I... |
app/components/EmailVerificationSuccess/index.js | vvnsze/Nexcast | /**
*
* EmailVerificationSuccess
*
*/
import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import { browserHistory } from 'react-router';
import EmailVerificationPodcastItem from '../../containers/EmailVerificationPodcastItem';
// import styled from 'st... |
src/svg-icons/editor/format-line-spacing.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatLineSpacing = (props) => (
<SvgIcon {...props}>
<path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/>
</SvgIcon>
);
EditorFormatLineSpacing =... |
src/routes/dashboard/components/comments.js | hhj679/mybition-web | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Tag } from 'antd'
import styles from './comments.less'
import { color } from '../../../utils'
const status = {
1: {
color: color.green,
text: 'APPROVED',
},
2: {
color: color.yellow,
text: 'PENDING',
},
3: {
colo... |
src/pages/Uses.js | thibmaek/thibmaek.github.io | import React from 'react';
import { object } from 'prop-types';
import { PageHelmet } from '../components/helmet/';
const Publications = ({ data }) => {
const { title, body } = data.contentfulPage;
return (
<section>
<PageHelmet title={title} />
<header>
<h1>{title}</h1>
</header>
... |
components/Layout/Header.js | rauchs-jewelry/rauchs-jewelry-website | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* 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';
... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | ksivam/react-router | /*globals COURSES:true */
import React from 'react'
import { Link } from 'react-router'
class AnnouncementsSidebar extends React.Component {
render() {
let { announcements } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcements.... |
src/icons/CachedIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class CachedIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 16l-8 8h6c0 6.63-5.37 12-12 12-2.03 0-3.93-.51-5.61-1.39l-2.92 2.92C17.95 39.08 20.86 40 24 40c8.84 0 1... |
packages/bonde-admin/src/mobilizations/widgets/__plugins__/pressure/components/pressure-tell-a-friend.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import { FormattedMessage } from 'react-intl'
import { TellAFriend } from '@/components/share'
const PressureTellAFriend = ({ preview, mobilization, widget }) => (
<TellAFriend
preview={preview}
mobilization={mobilization}
widget={widget}
... |
src/Input/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
import WrapperStyles from '../Wrapper/styles.css';
import TypographyStyles from '../Typography/styles.css';
import Typography from '../Typography';
function Input(props) {
const cap... |
examples/huge-apps/app.js | KamilSzot/react-router | import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import { Router } from 'react-router';
import AsyncProps from 'react-router/lib/experimental/AsyncProps';
import stubbedCourses from './stubs/COURSES';
var rootRoute = {
component: AsyncProps,
// iunno?
renderInitialLoad() {
... |
src/Menus/PitcherSelection.js | kevinleclair1/pitch_fx_visualizer | import React from 'react';
import { createSelector } from 'reselect';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import DatePicker from 'material-ui/DatePicker';
import CircularProgress from 'material-ui/CircularProgress';
import moment from 'moment';
import crea... |
src/svg-icons/image/wb-incandescent.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbIncandescent = (props) => (
<SvgIcon {...props}>
<path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.... |
src/components/ProjectTile/ProjectTile.js | OR13/car2go | import React from 'react'
import { PropTypes } from 'prop-types';
import Paper from 'material-ui/Paper'
import { isObject } from 'lodash'
import IconButton from 'material-ui/IconButton'
import DeleteIcon from 'material-ui/svg-icons/action/delete'
import classes from './ProjectTile.scss'
export const ProjectTile = ({... |
src/core/display/App/Navigation/Vertical/Search.js | JulienPradet/pigment-store | import React from 'react'
const Search = ({search, onChange}) => {
return <div>
<input type='text' value={search} onChange={(e) => onChange(e.target.value)} placeholder='Search...' />
<button onClick={() => onChange('')}>reset</button>
</div>
}
export default Search
|
src/javascript/shared/components/header/index.js | rahulharinkhede2013/xigro-dashboard | import React from 'react';
import { Button } from 'att-iot-ui/lib/button';
import { ListDivider } from 'att-iot-ui/lib/list';
import Icon from 'att-iot-ui/lib/icon';
import ProfileMenu from './profileMenu';
import classnames from 'classnames';
// style
import styles from './style.scss';
import index from '../../../in... |
examples/todomvc/index.js | ptkach/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
import 'todomvc-app-css/index.css'
const store = configureStore()
render(
<Provider store={store}>
<A... |
src/parser/rogue/outlaw/CONFIG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { tsabo, Coywolf } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import Warning from 'interface/Alert/Warning';
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 main... |
docusaurus/website/pages/en/index.js | hirviid/react-redux-fetch | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
const React = require('react');
const CompLibrary = require('../../core/CompLibrary.js');
// // const MarkdownBlock = CompLibrary.Mark... |
packages/wix-style-react/src/MessageBox/docs/AlertExamples/EmptyState.js | wix/wix-style-react | /* eslint-disable react/prop-types */
import React from 'react';
import ImagePlaceholder from '../../../../stories/utils/ImagePlaceholder';
import { MessageBoxFunctionalLayout, EmptyState } from 'wix-style-react';
export default () => (
<MessageBoxFunctionalLayout
title="Choose Your Favorites"
confirmText=... |
webpack/containers/Application/Routes.js | adamruzicka/katello | import React from 'react';
import { Route } from 'react-router-dom';
import { links } from './config';
export default () => (
<div>
{links.map(({ path, component }) => (
<Route exact key={path} path={`/${path}`} component={component} />
))}
</div>
);
|
static/tables/strategy-table.js | joequant/sptrader | import React from 'react';
import {AgGridReact} from 'ag-grid-react';
import {Button} from 'react-bootstrap';
import {actionBoxWidth, StrategyControl, renderLog,
pad, process_headers} from '../../static/utils';
export class StrategyTable extends React.Component {
constructor(props) {
super(props);
this.state = ... |
src/root/Root.js | jorilindell/postit-react | // @flow
import React from 'react'
import {Provider} from 'react-redux'
import {Router} from 'react-router'
import routes from './routes'
export type RootProps = {
history: any,
store: any,
}
const Root = ({history, store}: RootProps) =>
<Provider store={store}>
<Router history={history} routes={routes} ke... |
src/svg-icons/action/rounded-corner.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoundedCorner = (props) => (
<SvgIcon {...props}>
<path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v... |
components/HomePage.js | jordancappy/jorder | import React from 'react';
class HomePage extends React.Component {
render(){
return(
<div>
<div className="page-header text-center">
<h1>jorder</h1>
<p className="lead">create html 5 forms with so much ease</p>
<h1>
<a className="btn btn-lg btn-success" hr... |
.storybook/Example/Example.story.js | metasfresh/metasfresh-webui-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Example from './';
// Defaults to <name>.story.js
export const name = 'Example component';
export default story => {
const states = {
'Regular state': () => (
<Example />
),
'Inverted state': (... |
src/js/Components/Chapel.js | RoyalSix/Eagle-Connect | import React, { Component } from 'react';
import {
Text,
View,
ListView,
Image
} from 'react-native';
import style from 'css';
import * as assets from 'assets';
export default class ChapelContainer extends Component {
constructor(props) {
super(props);
this.renderSect... |
resource/js/app.js | kyonmm/crowi | import React from 'react';
import ReactDOM from 'react-dom';
import Crowi from './util/Crowi';
import CrowiRenderer from './util/CrowiRenderer';
import HeaderSearchBox from './components/HeaderSearchBox';
import SearchPage from './components/SearchPage';
import PageListSearch from './components/PageListSearch';
//... |
src/containers/TrustSupport.js | iris-dni/iris-frontend | import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { fetchPetition } from 'actions/PetitionActions';
import settings from 'settings';
import Trust from 'components/Trust';
import getPetitionForm from 'selectors/petitionForm';
const TrustSupportContainer = (props... |
project/src/scenes/Admin/Media/MediaManager/components/MediaForm/MediaForm.js | boldr/boldr | /* @flow */
import React from 'react';
import styled from 'styled-components';
import { Field, reduxForm } from 'redux-form';
// internal
import Button from '@boldr/ui/Button';
import { Form, TextFormField } from '@boldr/ui/Form';
type Props = {
handleSubmit?: Function,
reset?: Function,
submitting?: boolean,
... |
src/app/core/atoms/icon/icons/calendar.js | blowsys/reservo | import React from 'react'; const Calendar = (props) => <svg {...props} x="0px" y="0px" viewBox="0 0 14.173 14.173"><g><path d="M12.253,2.593l-1.949,0l-0.001-1.194L8.822,1.399l0.001,1.194l-3.474,0L5.349,1.398L3.867,1.399 l0.001,1.194l-1.948,0c-0.398,0-0.721,0.323-0.721,0.721l0,1.94l11.776,0l0-1.94C12.974,2.915,12.652,2.... |
example/pages/footer/index.js | n7best/react-weui | import React from 'react';
import {
Footer,
FooterText,
FooterLinks,
FooterLink
} from '../../../build/packages';
import Page from '../../component/page';
const FooterDemo = (props) => (
<Page className="footer" title="Footer" subTitle="页脚" spacing>
<Footer>
<FooterText>Copyrig... |
packages/wix-style-react/src/Stepper/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
columns,
divider,
code,
api,
testkit,
playground,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../test/storySettings';
import Stepper from '..';
import { Type, StepType, FitMode }... |
app/scripts/Account/createRoutes.js | igr-santos/bonde-client | import React from 'react'
import { Route } from 'react-router'
import { BackgroundContainer } from '../Dashboard/containers'
import {
EditUserPage,
LoginPageWrapper,
LogoutPage,
RegisterPage
} from './pages'
import { AccountContainer } from './containers'
export default (requiredLogin, redirectUrl) => [
<R... |
antd-dva/ant-design-pro-demo/test/src/components/Ellipsis/index.js | JianmingXia/StudyTest | import React, { Component } from 'react';
import { Tooltip } from 'antd';
import classNames from 'classnames';
import styles from './index.less';
/* eslint react/no-did-mount-set-state: 0 */
/* eslint no-param-reassign: 0 */
const isSupportLineClamp = document.body.style.webkitLineClamp !== undefined;
const Ellipsis... |
app/javascript/mastodon/features/compose/components/compose_form.js | theoria24/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
app/containers/Root.js | sheldhur/Vector | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Routes from '../routes';
type RootType = {
store: {},
history: {}
};
export default function Root({ store, history }: RootType) {
return (
<Provider store={store}>
<... |
projeto/todo/src/components/App.js | frbaroni/curso_react | import React from 'react'
import Footer from './Footer'
import Todo from '../containers/add-todo'
import Lista from '../containers/lista'
const App = () => (
<div className="container">
<Todo />
<Lista />
<Footer />
</div>
)
export default App
|
js/EditDictionaryDialog.js | dmitriykovalev/slovareg | import React from 'react';
import {Button, FormGroup, FormControl, Input, Modal} from 'react-bootstrap';
const EditDictionaryDialog = React.createClass({
propTypes: {
show: React.PropTypes.bool.isRequired,
onDone: React.PropTypes.func.isRequired, // f(name, words)
onHide: React.PropTypes.func.isRequired,... |
src/mui/field/DateField.js | RestUI/rest-ui | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
import pure from 'recompose/pure';
const toLocaleStringSupportsLocales = (() => {
// from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString
try {
new Date().to... |
app/components/Character.js | migueloop/1streaction | import React from 'react';
import CharacterStore from '../stores/CharacterStore';
import CharacterActions from '../actions/CharacterActions'
class Character extends React.Component {
constructor(props) {
super(props);
this.state = CharacterStore.getState();
this.onChange = this.onChange.bind(this);
}
... |
src/routes/error/index.js | vincentdd/crm | import React from 'react'
import { Icon } from 'antd'
import styles from './index.less'
const Error = () => (<div className="content-inner">
<div className={styles.error}>
<Icon type="frown-o" />
<h1>404 Not Found</h1>
</div>
</div>)
export default Error
|
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import IconButton from '../../../components/icon_button';
import { changeComposeSensitivity } from '../../../actions/compose';
import Motion from 'react-motion/lib/Motion';
import s... |
src/components/ShareExperience/common/SuccessFeedback.js | WendellLiu/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import Checked from 'common/icons/Checked';
import Feedback from 'common/Feedback';
const SuccessFeedback = ({ buttonClick }) => (
<Feedback
buttonClick={buttonClick}
heading="上傳成功"
buttonText="查看本篇"
Icon={Checked}
/>
);
SuccessFeedba... |
frontend/src/components/eois/details/headerOptions/agencyOpenHeaderOptions.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { compose } from 'ramda';
import { withRouter } from 'react-router';
import { connect } from 'react-redux';
import { PROJECT_STATUSES } from '../../../../helpers/constants';
import { authorizedFileDownload } from '../../../../helpers/a... |
Inspector/js/app.js | qa-dev/WebDriverAgent | /**
* 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.
*/
import Rea... |
packages/retabulate-react/src/components/WrapRenderer.js | jasonphillips/retabulate | import React from 'react';
// converts cells to a collection to be used in charts, etc
const WrapRenderer = ({data, renderer}) => {
const cells = data.rows.map(r => r.cells).reduce((all,a) => all.concat(a), [])
const collection = cells.map(
c => ({
...c.queries.reduce((combined, {key, values}) => ({...c... |
app/javascript/mastodon/components/avatar_overlay.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarOverlay extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
friend:... |
app/index.ios.js | stianjensen/shortsdag.no | import React, { Component } from 'react';
import {
AppRegistry,
AppState,
StyleSheet,
Text,
View,
Image,
Modal,
TouchableHighlight,
} from 'react-native';
import Credits from './credits';
const apiURL = 'https://shortsdag.no';
export default class Shortsdag extends Component {
constructor(props) {
... |
test/integration/prerender/pages/blocking-fallback/[slug].js | azukaru/next.js | import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
export async function getStaticPaths() {
return {
paths: [],
fallback: 'blocking',
}
}
export async function getStaticProps({ params }) {
await new Promise((resolve) => setTimeout(resolve, 1000))
return {
... |
app/routes/user/CreateRoute.js | ryrudnev/dss-wm | import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Model as User } from '../../entities/User';
import { Collection as Companies } from '../../entities/Company';
import { PageHeader, Row, Col, Panel } from 'react-bootstrap';
import UserForm from '../../compo... |
src/svg-icons/image/flash-auto.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashAuto = (props) => (
<SvgIcon {...props}>
<path d="M3 2v12h3v9l7-12H9l4-9H3zm16 0h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L19 2zm-2.15 5.65L18 4l1.15 3.65h-2.3z"/>
</SvgIcon>
);
ImageFlashAuto = pure(ImageFla... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | shenhzou654321/actor-platform | import React from 'react';
import mixpanel from 'utils/Mixpanel';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'actions/LoginActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
import MyProfileModal from 'components/modals/MyProfile.react';
import ... |
src/svg-icons/navigation/subdirectory-arrow-left.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowLeft = pure(Navigation... |
frontend/src/Noise.js | generalelectrix/color_organist | import React from 'react'
import { Slider } from './Slider'
const GAUSSIAN = 'gaussian'
const UNIFORM = 'uniform'
const Noise = ({name, initialCenter, bipolar, dispatch}) => {
const [mode, setMode] = React.useState(GAUSSIAN)
const [center, setCenter] = React.useState(initialCenter)
const [width, setWidth] = R... |
node_modules/react-router-dom/node_modules/react-router/es/Redirect.js | pornvutp/tact | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
packages/cf-component-card/src/CardToolbar.js | koddsson/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
class CardToolbar extends React.Component {
render() {
return (
<div className="cf-card__toolbar">
<div className="cf-card__toolbar_controls">
{this.props.controls}
</div>
<div className="cf-card__toolbar_link... |
docs-ui/components/emptyStateWarning.stories.js | mvaled/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import EmptyStateWarning from 'app/components/emptyStateWarning';
storiesOf('UI|EmptyStateWarning', module).add(
'default',
withInfo('Default')(() => (
<EmptyStateWarning data="https://exampl... |
app/admin/actions/SkillListItem.js | ecellju/internship-portal | import React from 'react';
import { Label, Icon } from 'semantic-ui-react';
import PropTypes from 'prop-types';
const SkillListItem = props => (
<Label style={{ margin: 10 }}><Icon name="checkmark" /> {props.skill} </Label>
);
export default SkillListItem;
SkillListItem.propTypes = {
skill: PropTypes.string.isReq... |
js/jqwidgets/demos/react/app/splitter/loadingsplitpanelswithxhr/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSplitter from '../../../jqwidgets-react/react_jqxsplitter.js';
class App extends React.Component {
componentDidMount() {
let loadPage = (url, tabIndex) => {
let request = new XMLHttpRequest();
request.open('GET'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.