path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/index.js | huynhtastic/ReduxSimpleStarter | import _ from 'lodash';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
import VideoDetail from './components/video_detail';
const API_KEY = 'AIzaSyCZp... |
src/svg-icons/action/report-problem.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionReportProblem = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
ActionReportProblem = pure(ActionReportProblem);
ActionReportProblem.displa... |
app/javascript/mastodon/features/ui/index.js | MitarashiDango/mastodon | import classNames from 'classnames';
import React from 'react';
import { HotKeys } from 'react-hotkeys';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Redirect, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import NotificationsContai... |
app/components/Layouts/MainLayout.js | zhrkian/SolarDataApp | import React from 'react'
import s from './MainLayout.css'
const MainLayout = props =>
<div className={s.container}>
{props.children}
</div>
export default MainLayout |
docs/src/pages/guides/right-to-left/RtlOptOut.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
const styles = theme => ({
root: {
width: '100%',
marginTop: theme.spacing.unit * 4,
marginRight: theme.spacing.unit * 2,
},
affected: {
textAlign: 'right',
},
unaffected: {
fli... |
client/screens/components/table/Components/DateRangeFilter.js | francixcoag/trace_packages | 'use strict';
import React from 'react'
import ReactDOM from 'react-dom'
import Button from 'react-bootstrap/lib/Button';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import moment from 'moment';
import DateRangePicker from 'react-bootstrap-daterangepicker';
class DateRangeFilter extends React.Component {
... |
fields/components/DateInput.js | Pylipala/keystone | import moment from 'moment';
import DayPicker from 'react-day-picker';
import React from 'react';
import Popout from '../../admin/src/components/Popout';
import { FormInput } from 'elemental';
function isSameDay(d1, d2) {
d1.setHours(0, 0, 0, 0);
d2.setHours(0, 0, 0, 0);
return d1.getTime() === d2.getTime();
}
m... |
docs/pages/getting-started/templates/sign-in-side.js | lgollut/material-ui | import React from 'react';
import AppTheme from 'docs/src/modules/components/AppTheme';
import SignInSide from 'docs/src/pages/getting-started/templates/sign-in-side/SignInSide';
export default function Page() {
return (
<AppTheme>
<SignInSide />
</AppTheme>
);
}
|
src/components/home/Welcome.js | Team-Banana-Guava/JobOrNot-React | import React from 'react';
const Welcome = () => (
<div className='container' id='welcome'>
<div className='row'>
<div className='topComponent centerText'>
<h1 className='headline'>We Make the Best Matches.</h1>
<h5>Recruiters + Talent + Hiring Managers</h5>
</div>
<... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | dut3062796s/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
app/src/scripts/decorators/component/requireAuth.js | vyorkin-archive/assignment | import React from 'react';
import auth from '../../lib/auth';
const requireAuth = (Component, redirectTo = 'sign-in') => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!auth.isAuthenticated()) {
auth.attemptedTransition = transition;
return ... |
src/shared/views/visit/VisitMuseumHeader/VisitMuseumHeader.js | in-depth/indepth-demo | import React from 'react'
import { withRouter } from 'react-router'
import Editor from 'react-medium-editor'
import styles from './VisitMuseumHeader.css'
// const museumSettings = {
// demo: {
// name: 'DEMO',
// tagline: 'The official demo museum',
// image: '/static/images/museums/tepapa.jpg',
// },... |
src/pages/contact.js | saintasia/portfolio | import React from 'react';
import SEO from "../components/seo"
import Fade from 'react-reveal/Fade';
const ContactPage = () => (
<>
<SEO title="Anastasia K. Digital Creator | Contact"/>
<div className="Main__Container">
<Fade bottom>
<h1>Contact me</h1>
<form className="Contact__Form" n... |
src/compiler/compiler.js | micooz/diary | import React from 'react';
import path from 'path';
import fs from 'fs';
import moment from 'moment';
import serialize from 'serialize-javascript';
import * as Archives from './archives';
import * as Render from './render';
import * as Assembler from './assembler';
import * as Dump from './dump';
import {HomeComponent}... |
src/main.js | mjchamoures/milpitasInfo | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
components/EmptyTeams.js | turntwogg/final-round | import React from 'react';
export default ({ size = 175 }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 350 350"
>
<path
d="M175 0A175 175 0 1 1 0 175 175 175 0 0 1 175 0z"
fill="#f5f2fa"
fillRule="evenodd"... |
app/javascript/flavours/glitch/features/list_editor/containers/account_container.js | im-in-space/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from 'flavours/glitch/selectors';
import { injectIntl } from 'react-intl';
import { removeFromListEditor, addToListEditor } from 'flavours/glitch/actions/lists';
import Account from '../components/account';
const makeMapStateTo... |
client/src/components/Connections/components/SubgraphInstructions.js | verejnedigital/verejne.digital | // @flow
import React from 'react'
import {compose} from 'redux'
import {connect} from 'react-redux'
import {withHandlers, withState} from 'recompose'
import {Input} from 'reactstrap'
import {updateValue} from '../../../actions/sharedActions'
import {addNeighboursLimitSelector} from '../../../selectors'
import {setAddN... |
src/components/CampaignTimeAndSalary/Banner.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import Wrapper from 'common/base/Wrapper';
import styles from './Banner.module.css';
const CampaignItem = ({ name, title }) => (
<NavLink
className={styles.campaignItem}
activeClassName={styles.active}... |
src/components/Sidebar/Operations/OperationList.js | funkBuild/machinist | import React, { Component } from 'react';
import Button from '../../common/Button';
import PathManager from '../../../models/path_manager';
import './OperationList.css'
class OperationList extends Component {
createNew(){
let operation = PathManager.addNewOperation();
this.selectOperation(operation.id);
... |
docs/app/components/layout/home/index.js | VACO-GitHub/vaco-components-library | import React from 'react';
import { Link } from 'react-router';
import Button from 'react-toolbox/button';
import Logo from '../../logo';
import Navigation from '../../navigation';
import style from './style';
const GithubIcon = () => (
<svg viewBox="0 0 284 277">
<g><path d="M141.888675,0.0234927555 C63.5359948... |
server/sonar-web/src/main/js/apps/overview/meta/MetaLinks.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... |
entry_types/scrolled/package/src/frontend/PlayerControls/ClassicPlayerControls/QualityMenu.js | codevise/pageflow | import React from 'react';
import PropTypes from 'prop-types';
import {MenuBarButton} from '../MenuBarButton';
import {useI18n} from '../../i18n';
import QualityIcon from '../images/quality.svg';
export function QualityMenu(props) {
const {t} = useI18n();
if (props.items.length < 2) {
return null;
}
re... |
example/index.ios.js | droibit/react-native-custom-tabs | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TouchableHighlight,
View
} from 'react-native';
import { CustomTabs } from 'react-native-custom-tabs';
export default class Example extend... |
admin/client/App/shared/Kbd.js | Pop-Code/keystone | import React from 'react';
import { css } from 'glamor';
import theme from '../../theme';
import { darken, lighten } from '../../utils/color';
function Kbd ({ className, ...props }) {
props.className = css(classes.kbd);
return <kbd {...props} />;
};
const classes = {
kbd: {
backgroundColor: theme.color.body,
... |
src/components/languageSwitcher/languageSwitcher.js | EncontrAR/backoffice | import React from 'react';
export default ({ config, changeTheme, selectedId }) => {
const { id, label, options } = config;
return (
<div className="themeSwitchBlock">
<h4>
{label}
</h4>
<div className="themeSwitchBtnWrapper">
{options.map(option => {
const { themeNa... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | ElectricChiliCo/electricchili.co | 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/parser/shared/modules/resourcetracker/ResourceBreakdown.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import { TooltipElement } from 'common/Tooltip';
class ResourceBreakdown extends React.Component {
static propTypes = {
tracker: PropTypes.object.isRequired,... |
src/svg-icons/action/view-quilt.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewQuilt = (props) => (
<SvgIcon {...props}>
<path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/>
</SvgIcon>
);
ActionViewQuilt = pure(ActionViewQuilt);
ActionViewQuilt.displayN... |
node_modules/react-router/es/Router.js | aalpgiray/react-hot-boilerplate-ts | 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/components/Blog/Thumbnails.js | andreas-groos/mini-blog-redux | import React from 'react'
const Thumbnails = (props) => {
// I removed it, if you want to see old examples look at previous commits
return null
}
export default Thumbnails
|
src/svg-icons/communication/clear-all.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationClearAll = (props) => (
<SvgIcon {...props}>
<path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/>
</SvgIcon>
);
CommunicationClearAll = pure(CommunicationClearAll);
CommunicationClearAll.di... |
src/containers/weather_list.js | Zurean/udemy-weather | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Chart from '../components/chart';
import GoogleMap from '../components/google_map';
class WeatherList extends Component {
renderWeather(cityData) {
const name = cityData.city.name;
const temps = cityData.list.map(weather =>... |
ReactRouterTest/src/components/Masthead/tabs/dummyTable.js | OlesiaBelmega/GoIT-Studing | import React from 'react';
const DummyTable = () => (
<table className="table">
<tbody>
<tr>
<td>Dummy</td>
<td>Table</td>
</tr>
</tbody>
</table>
);
export default DummyTable;
|
src/views/Widgets/Widgets.js | Cruis-R/GestionOutil | import React, { Component } from 'react';
import { Progress } from 'reactstrap';
class Widgets extends Component {
render() {
return (
<div className="animated fadeIn">
<div className="row">
<div className="col-sm-6 col-lg-3">
<div className="card">
<div classNam... |
src/routes/express/Filter.js | terryli1643/daoke-react-c | import React from 'react'
import PropTypes from 'prop-types'
import { Input, Row, Col } from 'antd'
const Search = Input.Search
const ColProps = {
xs: 24,
sm: 12,
style: {
marginBottom: 16,
},
}
const Filter = ({ onSearch }) => {
const handleSubmit = (value) => {
onSearch(value)
}
return (
... |
client/src/components/pages/component-samples.js | joshuaslate/mern-starter | import React, { Component } from 'react';
import PricingTable from '../sales/pricing-table';
import SocialMediaBar from '../sales/social-media-bar';
import Rotator from '../sales/rotator';
const bronzeFeatures = ['Really cool', 'Pretty cheap', 'Awesome'];
const silverFeatures = ['A couple features', 'Pretty neat'];
c... |
src/svg-icons/action/add-shopping-cart.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAddShoppingCart = (props) => (
<SvgIcon {...props}>
<path d="M11 9h2V6h3V4h-3V1h-2v3H8v2h3v3zm-4 9c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zm10 0c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-... |
src/svg-icons/editor/pie-chart-outlined.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChartOutlined = (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 2zm1 2.07c3.61.45 6.48 3.33 6.93 6.93H13V4.07zM4 12c0-4.06 3.07-7.44 7-7.93v15.87c-... |
geonode/contrib/monitoring/frontend/src/components/molecules/total-requests/index.js | kartoza/geonode | import React from 'react';
import PropTypes from 'prop-types';
import CircularProgress from 'material-ui/CircularProgress';
import HoverPaper from '../../atoms/hover-paper';
import styles from './styles';
class TotalRequests extends React.Component {
static propTypes = {
requests: PropTypes.number,
}
stati... |
docs/src/app/components/pages/components/Dialog/ExampleModal.js | nathanmarks/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* A modal dialog can only be closed by selecting one of the actions.
*/
export default class DialogExampleModal extends React.Component {
sta... |
app/javascript/mastodon/features/community_timeline/components/column_settings.js | esetomo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingText from '../../../components/setting_text';
const messages = defineMessages({
filter_regex: { id: 'home... |
Libraries/Image/ImageBackground.js | formatlos/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... |
src/App.js | junorouse/valid-xss-checker | import React from 'react';
import axios from 'axios';
import styles from './App.css';
class App extends React.Component {
render() {
return (
<div>
<SiteList/>
<AddSite/>
</div>
)
}
}
class SiteInfo extends React.Component {
render() {
return(
<li class... |
react-fundamentals-es6/lessons/00-setup/App.js | wandarkaf/React-Bible | import React from 'react';
class App extends React.Component {
render(){
return <div>Hi</div>
}
}
export default App
|
frontend/component/Footer.js | tigerxjtu/njs | import React from 'react';
const footerStyle = {
marginTop: 50,
padding: 20,
};
export default class Footer extends React.Component{
render(){
return (
<div className="text-center" style={footerStyle}>
© CopyRight Node.js实战
</div>
);
}
} |
packages/page-click/example/App.js | nkbt/react-works | import React from 'react';
import {Modal} from './Modal';
export class App extends React.Component {
state = {
showModal: false,
showLazyModal: false
};
hideLazyModal = () => {
this.setState({showLazyModal: false});
};
hideModal = () => {
this.setState({showModal: false});
};
showLazy... |
fixtures/attribute-behavior/src/index.js | ericyang321/react | import './index.css';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
fields/types/boolean/BooleanColumn.js | joerter/keystone | import React from 'react';
import Checkbox from '../../components/Checkbox';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var BooleanColumn = React.createClass({
displayName: 'BooleanColumn',
propTypes: {
col: React.PropTypes.object,
... |
src/js/pages/LoginPage.js | bikebaba/XcomponentsStormpath | import React from 'react';
import DocumentTitle from 'react-document-title';
import { LoginForm } from 'react-stormpath';
export default class LoginPage extends React.Component {
render() {
return (
<DocumentTitle title={`Login`}>
<div className="container">
<div className="row">
... |
src/decorators/withViewport.js | w10036w/ReactTest | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
client/src/app.js | mozillaSv/TweetGeoViz | import React, { Component } from 'react';
export default class App extends Component {
render() {
const { props: { children } } = this;
return (
<div>
{children}
</div>
);
}
};
|
src/components/async-img.js | boundlessgeo/sdk | import React from 'react';
import PropTypes from 'prop-types';
import fetch from 'isomorphic-fetch';
/**
* WARNING! This class uses a "mounted" member of state
* which react recommends against. Changing that would make the
* code a lot messier and this solution is otherwise a clean way
* to get protected images.
... |
docs/src/app/components/pages/components/TextField/ExampleControlled.js | ichiohta/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
export default class TextFieldExampleControlled extends React.Component {
constructor(props) {
super(props);
this.state = {
value: 'Property Value',
};
}
handleChange = (event) => {
this.setState({
value: eve... |
modules/IndexRoute.js | cold-brew-coding/react-router | import React from 'react'
import invariant from 'invariant'
import warning from 'warning'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './PropTypes'
const { bool, func } = React.PropTypes
/**
* An <IndexRoute> is used to specify its parent's <Route indexRout... |
src/containers/Request/index.js | andresmechali/shareify | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { addFlashMessage, deleteFlashMessage } from "../../redux/actions/flashMessages";
import { setCurrentUser } from "../../redux/actions/authActions";
import NewRequest ... |
src/server.js | shalomeir/snippod-starter-demo-app-front | 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 './store/create';
import ApiC... |
components/Footer/Footer.js | MartinKilonzo/remmyMartin | import React from 'react';
import Link from '../Link';
import s from './Footer.css';
function Footer() {
return (
<footer className={`mdl-mini-footer ${s.footer}`}>
<div className="mdl-mini-footer__left-section">
<div className="mdl-logo">© Remmy Martin Kilonzo</div>
<ul className="mdl-mini... |
packages/mineral-ui-icons/src/IconBrightness1.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconBrightness1(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPr... |
stories/SuppliedSimpleUserViewDemo.js | de44/kb-ui | import React from 'react'
import kb from '../src/kb-ui'
import { withState, compose } from 'recompose';
import ViewDemo from './ViewDemo';
function getUser(id, name, suspended) {
return {
id,
name,
suspended,
profile: {
bio: '<h4 style="border-bottom: 1px dashed red;"><span style="color: blue"... |
actor-apps/app-web/src/app/components/modals/Preferences.react.js | Ajunboys/actor-platform | import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstants';
import Actor... |
src/components/Autor.js | rafaelviegas/react-app | import React, { Component } from 'react';
import $ from 'jquery';
import PubSub from 'pubsub-js';
import InputCustom from './InputCustom';
import ButtonCustom from './ButtonCustom';
import ErrorsHandler from './ErrorsHandler';
class FormularioAutor extends Component {
constructor() {
super();
this.... |
admin/client/App/screens/List/components/Filtering/ListFiltersAddForm.js | frontyard/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import Popout from '../../../../shared/Popout';
import { Filters } from 'FieldTypes';
var ListFiltersAddForm = React.createClass({
propTypes: {
field: React.PropTypes.object.isRequired,
maxHeight: React.PropTypes.number,
onApply: React.PropTyp... |
app/frontend/pages/emails/invited.js | latteware/marble-seed | import React from 'react'
import PageComponent from '~base/page-component'
import storage from '~base/storage'
import tree from '~core/tree'
import api from '~base/api'
import MarbleForm from '~base/components/marble-form'
const schema = {
'password_1': {
'widget': 'PasswordWidget',
'name': 'password',
... |
src/index.js | ctco-dev/bookie-client | import React from 'react';
import ReactDOM from 'react-dom';
import {Router, Route, IndexRoute} from 'react-router';
import history from './history';
import App from './App';
import Room from './Room';
import Book from './Book';
import Check from './Check';
import RoomPicker from './RoomPicker';
import './index.css';
i... |
src/web/components/BoardList.js | faalsh/LamaDesktop | import React from 'react';
import CreateBoard from './CreateBoard'
import _ from 'lodash'
import BoardListItem from './BoardListItem'
import { StyleSheet, css } from 'aphrodite'
class BoardList extends React.Component {
constructor(props){
super(props)
this.onEscape = this.onEscape.bind(this)
}
handle... |
fields/types/relationship/RelationshipColumn.js | qwales1/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var Relat... |
src/svg-icons/maps/directions-boat.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsBoat = (props) => (
<SvgIcon {...props}>
<path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99... |
fields/types/relationship/RelationshipFilter.js | codevlabs/keystone | import async from 'async';
import React from 'react';
import xhr from 'xhr';
import { Button, FormField, FormInput, InputGroup, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/components/PopoutList';
const TOGGLE_OPTIONS = [
{ label: 'Linked To', value: false },
{ label: 'NOT Lin... |
app/src/routes/OwnedItems.js | quiaro/chunches | import React from 'react';
export default () => (
<div>Mis Chunches</div>
)
|
src/core/Link.js | touchstonejs/touchstonejs | import blacklist from 'blacklist';
import React from 'react';
import Tappable from 'react-tappable';
import Transitions from '../mixins/Transitions';
var Link = React.createClass({
mixins: [Transitions],
propTypes: {
children: React.PropTypes.any,
options: React.PropTypes.object,
transition: React.PropTypes.st... |
src/svg-icons/editor/strikethrough-s.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorStrikethroughS = (props) => (
<SvgIcon {...props}>
<path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ... |
client/components/Item.js | jimini-js/jimini | import React from 'react';
import $ from 'jquery';
import { Col } from 'react-bootstrap';
import { Thumbnail } from 'react-bootstrap';
import PurchaseConfirmation from './PurchaseConfirmation.js';
class Item extends React.Component {
constructor(){
super()
this.handleRemove = this.handleRemove.bind(this);
... |
example/src/components/Row.js | yusufyildirim/react-native-navigation | import React from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, View, Text, TouchableHighlight, Platform} from 'react-native';
class Row extends React.PureComponent {
render() {
const {title, onPress, onPressIn, platform, testID} = this.props;
if (platform && platform !== Platform.OS) {
... |
app/javascript/mastodon/features/account_timeline/components/header.js | Ryanaka/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import MovedNote from './moved_note';
import { FormattedMessage } fro... |
src/svg-icons/image/filter-4.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14... |
app/javascript/mastodon/features/favourited_statuses/index.js | theoria24/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
import ColumnHeade... |
stories/Breadcrumbs.js | Talend/react-talend-components | import React from 'react';
import { storiesOf, setAddon, action } from '@kadira/storybook';
import infoAddon from '@kadira/react-storybook-addon-info';
import { Breadcrumbs } from '../src/index';
setAddon(infoAddon);
storiesOf('Breadcrumbs', module)
.addWithInfo('default', () => {
const items = [
{ text: 'Text ... |
js/components/LocationOverview.js | a-omsk/Vegreact | import React from 'react';
import Rater from 'react-rater';
import CityStore from '../stores/CityStore';
import Haversine from './common/Haversine';
import { Link } from 'react-router';
const firstRowStyle = {
display: 'flex',
flexDirection: 'row',
justifyContent: 'space-between',
};
const distanceStyle =... |
src/index.js | curious-containers/cc-ui | import 'tawian-frontend';
import 'typeface-cousine';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, IndexRedirect, Route, hashHistory } from 'react-router';
import App from './App';
import TaskGroups from './TaskGroups';
import TaskGroup from './TaskGroup';
import Tasks from './Tasks';
im... |
src/components/UsersList.js | madjid-asa/github_users_browser | import React, { Component } from 'react';
import {connect} from 'react-redux';
import { Col, ListGroup, ListGroupItem } from 'react-bootstrap';
import SearchInput, {createFilter} from 'react-search-input'
import {viewUserDetail, searchUsers} from '../actions/userActions'
const KEYS_TO_FILTERS = ['login']
class User... |
node_modules/native-base/Components/Widgets/Tabs.js | aspanu/threeSeaShells | /* @flow */
'use strict';
import React from 'react';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
import ScrollableTabView from './../vendor/react-native-scrollable-tab-view';
export default class TabNB extends NativeBaseComponent {
propTypes... |
src/components/Feed/Feed.js | wall3/wall3.github.io | // @flow strict
import React from 'react';
import moment from 'moment';
import { Link } from 'gatsby';
import type { Edges } from '../../types';
import styles from './Feed.module.scss';
type Props = {
edges: Edges
};
const Feed = ({ edges }: Props) => (
<div className={styles['feed']}>
{edges.map((edge) => (
... |
src/pages/player/PlayerDetail.js | i-July/footballgo | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
class PlayerDetail extends Component {
render() {
const id = this.props.match.params.id;
return (
<div>
<h2>球员序号:{id}</h2>
</div>
);
}
}
export default withRouter(PlayerDetail);
|
lib/new-project-template/new-project/src/index.js | markmarcelo/reactide | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
// AppContainer is a necessary wrapper component for HMR
import App from './components/App';
const render = (Component) => {
ReactDOM.render(
<AppContainer>
<Component/>
</AppContainer>,
... |
src/SliderItem.js | lzcmaro/react-ratchet | import React from 'react';
import classNames from 'classnames';
let SliderItem = React.createClass ({
propTypes:{
className : React.PropTypes.string
},
render() {
let Component = this.props.eleType || 'div';
return (
<Component
{...this.props}
... |
src/App.js | nienkebos/ExhibitionPlanner | import React from 'react';
//COMPONENTS//
import Header from './TemplateContainer/Header';
import Footer from './TemplateContainer/Footer';
//STYLES//
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import {GridList, GridTile} from 'material-ui/GridList';
class App extends React.Component {
... |
src/parser/shaman/restoration/modules/spells/HealingSurge.js | fyruna/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
class HealingSurge extends Analyzer {
static d... |
src/ui/Constraints.js | bnan/dhroraryus | import React from 'react'
import { TimePicker } from './TimePicker';
import { FormDaysOfTheWeek } from './FormDaysOfTheWeek';
import moment from 'moment'
export class Constraints extends React.Component {
constructor(props) {
super(props)
this.state = {
day: '2', // default to monday
... |
src/components/Spacer.js | ramaya314/UndocuFunds | import React from 'react';
class Spacer extends React.Component
{
render() {
return(
<div style={{marginTop: this.props.space}} />
);
}
}
export default Spacer; |
src/components/Item/SendRequest.js | andresmechali/shareify | import React from 'react';
import PropTypes from 'prop-types';
import { withApollo } from 'react-apollo';
import REQUEST_ITEM from "../../utils/queries/REQUEST_ITEM";
class SendRequest extends React.Component {
constructor(props){
super(props);
this.state = {
message: '',
... |
src/modules/universal-discovery/components/search/search.results.item.component.js | sunpietro/react-udw | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './css/search.results.item.component.css';
export default class SearchResultsItemComponent extends Component {
handlePreviewClick() {
this.props.onPreview(this.props.data);
}
render() {
const item = this.... |
src/components/Chat/ScrollDownNotice.js | u-wave/web | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import { useTranslator } from '@u-wave/react-translate';
import Fab from '@mui/material/Fab';
import ScrollDownIcon from '@mui/icons-material/ArrowDownward';
function ScrollDownNotice({ show, onClick }) {
const { t } = useTranslato... |
node_modules/react-bootstrap/es/DropdownButton.js | WatkinsSoftwareDevelopment/HowardsBarberShop | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/common/Socket/SocketWrapper.js | Syncano/syncano-dashboard | import React from 'react';
import { IconButton } from 'material-ui';
export default ({ style, iconStyle, ...other }) => {
const styles = {
style: {
padding: 6
},
iconStyle: {
fontSize: 36
}
};
return (
<IconButton
{...other}
style={{ ...styles.style, ...style }}
... |
docs/app/Examples/collections/Menu/Variations/MenuExampleFixed.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MenuExampleFixed = () => {
return (
<Message info>
You can view examples of the <b>fixed</b> variation in the
<a href='https://semantic-ui.com/collections/menu.html#fixed' target='_blank'> official documentation</a>.
</Me... |
src/containers/Chat/Chat.js | jiangzhichao/dog | /**
* Created by jiang on 2017/9/17.
*/
import React from 'react';
import FriendsList from './FriendsList/FriendsList';
import MsgList from './MsgList/MsgList';
import './Chat.scss';
export default () => (
<div className="friends">
<FriendsList />
<MsgList />
</div>
);
|
client/js/components/Login.js | micahp0506/jeeps | 'use strict';
import React from 'react';
import LoginStore from '../stores/LoginStore';
import LoginActions from '../actions/LoginActions';
import {Route, Router, browserHistory, Link} from 'react-router';
// Creating Login to handle actions and store
class Login extends React.Component {
constructor(props) {
... |
server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.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... |
tests/Button.js | OmerHerera/unity | import React from 'react';
import { createRenderer } from 'react-addons-test-utils';
import createComponent from 'react-unit';
import tape from 'tape';
import addAssertions from 'extend-tape';
import jsxEquals from 'tape-jsx-equals';
const test = addAssertions(tape, {jsxEquals});
// Component to test
import Button fro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.