path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/RichTextAreaComposite/RichTextAreaComposite.js | nirhart/wix-style-react | import React from 'react';
import {children, optional, once} from '../Composite';
import RichTextArea from '../RichTextArea';
import Label from '../Label';
import InputAreaWithLabelComposite from '../Composite/InputAreaWithLabelComposite/InputAreaWithLabelComposite';
const RichTextAreaComposite = ({...props, children}... |
src/Components/CompilerButton.js | MaxGraey/Assembleash | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import DropdownButton from 'react-bootstrap/lib/DropdownButton';
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger';
import MenuItem from 'react-bootstrap/lib/MenuItem';
import tooltip from './Tooltip';
import { Compiler... |
src/lib/items/defaultItemRenderer.js | namespace-ee/react-calendar-timeline | import React from 'react'
import PropTypes from 'prop-types'
export const defaultItemRenderer = ({
item,
itemContext,
getItemProps,
getResizeProps
}) => {
const { left: leftResizeProps, right: rightResizeProps } = getResizeProps()
return (
<div {...getItemProps(item.itemProps)}>
{itemContext.useR... |
newclient/scripts/components/user/nav-sidebar/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
6.webpack/src/index.js | zhufengnodejs/201615node | import React from 'react';
import ReactDOM from 'react-dom';
require('bootstrap/dist/css/bootstrap.css');
import MessageBox from './containers/MessageBox';
let store = require('./api');
ReactDOM.render(<MessageBox store={store}/>,document.querySelector('#app'));
|
src/components/common/svg-icons/image/filter-3.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter3 = (props) => (
<SvgIcon {...props}>
<path d="M21 1H7c-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 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1... |
mod12/src/App.js | mauricedb/mwd-2017-02-20 | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import DisplayValue from './DisplayValue';
import UpdateValue from './UpdateValue'
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={lo... |
CompositeUi/src/views/component/HelpText.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import './../../scss/components/_help-tex... |
src/views/HeaderTitle.js | half-shell/react-navigation | /* @flow */
import React from 'react';
import {
Platform,
StyleSheet,
Text,
} from 'react-native';
import type {
Style,
} from '../TypeDefinition';
type Props = {
tintColor?: ?string;
style?: Style,
};
const HeaderTitle = ({ style, ...rest }: Props) => (
<Text numberOfLines={1} {...rest} style={[styl... |
src/client.js | wchargin/wchargin.github.io | /*
* Client-side entry point. Rehydrates a server-side rendered page.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
export default function initializeClient() {
const container = document.getElementById("container");
ReactDOM.hydrate(<App />, container);
}
|
docs/src/app/components/pages/components/TimePicker/ExampleSimple.js | nathanmarks/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
const TimePickerExampleSimple = () => (
<div>
<TimePicker
hintText="12hr Format"
/>
<TimePicker
format="24hr"
hintText="24hr Format"
/>
<TimePicker
disabled={true}
format="24hr"
hintTex... |
src/layouts/layout-5-4.js | nazaninreihani/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className} onClick={onClick}>
<div className="vertical">
{components[0]}
{components[1]}
</div>
<div className="vertical">
{components[2]}
{compone... |
examples/src/components/CustomComponents.js | range-me/react-select | import React from 'react';
import Select from 'react-select';
import Gravatar from 'react-gravatar';
const USERS = require('../data/users');
const GRAVATAR_SIZE = 15;
const GravatarOption = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string,
isDisabled: React.Pro... |
app/components/Setting.js | ayqy/ready-to-work | import React, { Component } from 'react';
import { Form, Icon, Input, Button, Checkbox, Row, Col, Select } from 'antd';
const Option = Select.Option;
const FormItem = Form.Item;
import HeaderBar from '../containers/common/HeaderBar';
const defaultSetting = {
duration: '25',
duration_options: new Array(12).fill(0)... |
examples/pinterest/app.js | Dodelkin/react-router | import React from 'react'
import { createHistory, useBasename } from 'history'
import { Router, Route, IndexRoute, Link } from 'react-router'
const history = useBasename(createHistory)({
basename: '/pinterest'
})
const PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekit... |
src/app/routes/App/App.js | michalniemiec288/clocker | import React from 'react'
import Header from '../../components/Header'
const App = ({children}) =>
<div className="app">
<section className="page">
<Header />
<div className="content">
{children}
</div>
</section>
</div>
export default App
|
node_modules/react-router/es6/RoutingContext.js | captify-iolenchenko/leaderboard | import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has... |
app/containers/AppContainer.js | youtogod/webpack-sample-project | import React, { Component } from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
import { Provider } from 'react-redux';
import AppRoutes from './AppRoutes';
import store from 'store';
class AppContainer extends Component {
render() {
return (
<Provider store ={store} >
... |
src/Parser/MistweaverMonk/Modules/Spells/SoothingMist.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Module from 'Parser/Core/Module';
const debug = false;
class SoothingMist extends Module {
soomTicks = 0;
on_byPlayer_heal(event) {
const spellId = event.ability.guid;
if(spellId === SPELLS.... |
j2c/button.js | konce/css-in-js | import React from 'react';
import j2c from 'j2c';
let styles = j2c.scoped({
container: {
'text-align': 'center'
},
button: {
'background-color': '#ff0000',
width: '320px',
padding: '20px',
'border-radius': '5px',
border: 'none',
outline: 'none',
':hover': {
color: '#fff',
... |
src/components/EventVolunteerRow.js | codefordenver/encorelink | import PropTypes from 'prop-types';
import React from 'react';
import { Link } from 'react-router';
import AddToCalendar from 'react-add-to-calendar';
import { getFormattedDayAndTime } from '../utils/dateFormatting';
const EventVolunteerRow = ({
eventVolunteer, isCurrentlyPending, approveEventMusician, rejectEventMu... |
app/javascript/mastodon/features/notifications/components/column_settings.js | pixiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import SettingToggle from './setting_toggle';
export default class ColumnSettings extends Reac... |
modules/dreamview/frontend/src/components/RouteEditingBar/index.js | xiaoxq/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import EditingTip from 'components/RouteEditingBar/EditingTip';
import removeAllIcon from 'assets/images/routing/remove_all.png';
import removeLastIcon from 'assets/images/routing/remove_last.png';
import sendRouteIcon from 'assets/images/routi... |
src/addons/Select/Select.js | aabustamante/Semantic-UI-React | import React from 'react'
import { META } from '../../lib'
import Dropdown from '../../modules/Dropdown'
/**
* A Select is sugar for <Dropdown selection />.
* @see Dropdown
* @see Form
*/
function Select(props) {
return <Dropdown {...props} selection />
}
Select._meta = {
name: 'Select',
type: META.TYPES.A... |
src/modules/pages/routes/index.js | cltk/cltk_frontend | import React from 'react';
import { Route } from 'react-router';
// components
import AboutPage from '../components/AboutPage';
import NotFoundPage from '../components/NotFoundPage';
import MainLayout from '../../../layouts/MainLayout';
export default (
<div>
<Route
path="about"
component={() => (
<Main... |
fields/components/NestedFormField.js | linhanyang/keystone | import React from 'react';
import { StyleSheet } from 'aphrodite/no-important';
import { FormField, FormLabel } from '../../admin/client/App/elemental';
import theme from '../../admin/client/theme';
function NestedFormField ({ children, className, label, ...props }) {
return (
<FormField {...props}>
<FormLabel a... |
src/App.js | ltoddy/ltoddy.github.io | import React from 'react'
import Header from './header/Header'
import Content from './content/Content'
import Footer from './Footer'
import Corner from './components/Corner'
import css from './App.css'
import { username, essays, header, perPageCount } from './config'
class Application extends React.Component {
con... |
node_modules/react-ga/dist/esm/components/OutboundLink.js | jerednel/jerednel.github.io | function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof o... |
src/components/common/Button.js | xmano/filterlistview |
import React from 'react';
import { Text, View, TouchableOpacity } from 'react-native';
const Button = (props) => {
const { viewStyle, textStyle } = stylesVal;
return (
<TouchableOpacity style={viewStyle} onPress={props.onPress}>
<Text style={textStyle}>
{props.children}
... |
webpack/move_to_pf/TooltipButton/TooltipButton.js | adamruzicka/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Tooltip, OverlayTrigger } from 'patternfly-react';
import './TooltipButton.scss';
const TooltipButton = ({
disabled, title, tooltipText, tooltipId, tooltipPlacement, renderedButton, ...props
}) => {
if (!disabled) return renderedButton... |
client/modules/panel/routes.js | open-dash/open-dash | import React from 'react';
import { mount } from 'react-mounter';
import PanelLayout from '/client/modules/core/containers/panel_layout';
import Panel from './containers/panel';
export default function (injectDeps, { FlowRouter }) {
const PanelLayoutCtx = injectDeps(PanelLayout);
FlowRouter.route('/panel', {
... |
src/components/BlogLink.js | jcmnunes/josenunesxyz | import React from 'react';
import { Link } from 'gatsby';
import styled from 'styled-components';
import PrimaryButton from '../styles/PrimaryButton';
import { Location } from '@reach/router';
const StyledBlogLink = styled(Link)`
@media (max-width: ${props => props.theme.bp_small}) {
position: absolute;
top:... |
client/helpers/scope.js | waterkhair/template | // Modules
import DefaultLayout from '../react/layouts/default';
import HomePage from '../react/pages/auth/home/home';
import LoginPage from '../react/pages/public/login/login';
import React from 'react';
/**
* Creates a admin scope validator
* @param {object} store - Redux store
* @param {ReactComponent} Component... |
src/media/js/site/components/subnav.js | ziir/marketplace-content-tools | import classnames from 'classnames';
import {connect} from 'react-redux';
import React from 'react';
import {reverse, ReverseLink} from 'react-router-reverse';
export class Subnav extends React.Component {
render() {
return (
<nav className="page--subnav">
<ul>
{this.props.children.map(i... |
src/panels/JobMonitor/LogFold.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import style from 'HPCCloudStyle/JobMonitor.mcss';
import state from 'HPCCloudStyle/States.mcss';
export default class LogFold extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
this.toggleO... |
webpack/containers/Application/index.js | daviddavis/katello | import React from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import Routes from './Routes';
export default () => (
<Router>
<Routes />
</Router>
);
|
src/js/components/config/config.js | sepro/React-Pomodoro | import React from 'react';
import Modal from 'boron/FadeModal';
import TextButton, {FixedButton} from '../styled-components/text-button';
import ConfigButton from './config-button';
import ConfigInput from './config-input';
import ConfigBody from './config-body';
import FaCog from 'react-icons/fa/cog';
const boronSt... |
src/LeaderboardHeader5/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Typography from '../Typography';
import classNames from 'classnames';
import styles from './styles.css';
function LeaderboardHeader5(props) {
const caption = props.household ? 'Husholdning' : 'Deltager';
return (
<div
className={class... |
Realization/frontend/czechidm-core/src/components/basic/LabelWrapper/LabelWrapper.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Joi from 'joi';
//
import AbstractFormComponent from '../AbstractFormComponent/AbstractFormComponent';
import Tooltip from '../Tooltip/Tooltip';
/**
* Form label decorator.
*
* @author Vít Švanda
* @author Ra... |
src/elements/Rail/Rail.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useKeyOrValueAndKey,
} from '../../lib'
/**
* A rail is used to show accompanying content outside the bound... |
src/svg-icons/device/screen-rotation.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenRotation = (props) => (
<SvgIcon {...props}>
<path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c... |
client/src/views/ErrorModal.js | MissUchiha/CANX | import React from 'react'
import Modal from 'react-modal'
import {modalStyle} from '../style/modalStyle'
function ErrorModal(props) {
return (
<Modal isOpen={props.args.isOpen}
onRequestClose={props.args.closeModal}
contentLabel="Error"
shouldCloseOnOverlayClick={true}
... |
src/pages/containers/LoginContainer.js | martinkogut/react-native-android-starter | import React, { Component } from 'react';
import * as COLOR from '../../constants/colors';
import { AppRegistry, StyleSheet, Navigator, View, Text, Button, TouchableHighlight } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
export default class LoginContainer extends Component {
co... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js | sThig/jabbascrypt | /**
* 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... |
web/src/client/components/not-found.js | mrsharpoblunto/it-gets-the-hose-again | /*
* @format
*/
import React from 'react';
export default function NotFound() {
return (
<div>
<h2>You have requested a page that doesn't exist</h2>
</div>
);
}
|
pootle/static/js/auth/components/AuthWindow.js | r-o-b-b-i-e/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import Modal from 'components/... |
blueocean-material-icons/src/js/components/svg-icons/editor/format-clear.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorFormatClear = (props) => (
<SvgIcon {...props}>
<path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/>
</SvgIcon>
);
EditorFormatClear.displayNam... |
node_modules/react-router/es6/Router.js | orionwei/mygit | 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 = {... |
server/sonar-web/src/main/js/apps/settings/components/Definition.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
js/components/tab/configTab.js | LetsBuildSomething/vmag_mobile |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Button, Icon, Tabs, Tab, Text, Right, Left, Body, TabHeading } from 'native-base';
import { Actions } from 'react-native-router-flux';
import { actions } from 'react-native-navigation-redux-helpers';
im... |
components/app/common/ContactUs/ContactUsForm.js | resource-watch/resource-watch | import React from 'react';
// Services
import { toastr } from 'react-redux-toastr';
import { contactUs } from 'services/contact-us';
// Components
import Spinner from 'components/ui/Spinner';
import Field from 'components/form/Field';
import Input from 'components/form/Input';
import TextArea from 'components/form/Te... |
packages/lightning-core/common/CurrencyInput.js | DaReaper/lightning-app | import React from 'react'
import reactCSS from 'reactcss'
import Input from './Input'
import { enforceNumbers } from '../helpers/currencies'
export const CurrencyInput = (props) => {
const styles = reactCSS({
'default': {
changer: {
marginTop: 10,
marginBottom: 10,
borderLeft: '1px... |
App/Platform/StatusBar.android.js | taskrabbit/ReactNativeSampleApp | import React from 'react';
var StatusBar = {
setNetworkActive(active) {
},
setHidden(hidden) {
},
setStyle(style) {
},
};
export default StatusBar;
|
client/js/components/About.js | bmacheski/tech-connect | 'use strict';
import React from 'react';
class About extends React.Component {
render() {
return (
<div className="ui container holder">
<h2>What is Tech Connect?</h2>
<p className="about p">Tech Connect was built to address the dissatisfaction with existing tools
to connect IT pr... |
client/src/components/sales/rotator-nav.js | iNeedCode/mern-starter | import React, { Component } from 'react';
class RotatorNav extends Component {
renderNav() {
const toMap = [];
for (let i = 0; i < this.props.length; i++) {
toMap.push(
<li
key={`${i}nav`}
value={i}
className={i == this.props.active ? 'slider-nav-bullet active' : ... |
src/svg-icons/notification/tap-and-play.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationTapAndPlay = (props) => (
<SvgIcon {...props}>
<path d="M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0 4v3h3c0-1.66-1.34-3-3-3zm0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11zM17 1.01L7 1c-1.1 0-2... |
app/components/TableRow/index.js | X0nic/cloud-cost | import React from 'react';
import { fromJS } from 'immutable';
import styles from './styles.css';
function TableRow(props) {
let content;
if (props.items) {
content = props.items.map((item, index) => (
<td key={`item-${index}`}>{item}</td>
));
} else {
content = (<td>Nothing to render</td>)... |
client/modules/Post/components/PostListItem/PostListItem.js | mraq1234/mod11 | import React from 'react';
import propTypes from 'prop-types';
import { Link } from 'react-router';
import { FormattedMessage } from 'react-intl';
// Import Style
import styles from './PostListItem.css';
function PostListItem(props) {
return (
<div className={styles['single-post']}>
<h3 className={styles[... |
imports/startup/client/app.js | ShinyLeee/meteor-album-app | import { Meteor } from 'meteor/meteor';
import { platform } from '/imports/utils';
import React from 'react';
import { render } from 'react-dom';
// import App_Mobile from '/imports/ui/App';
// import App_PC from '/imports/ui/App_PC';
// const App = platform().mobile ? App_Mobile : App_PC;
async function renderAsync(... |
client/src/components/Modal/ConfirmDeletionModal.js | Wiredcraft/jekyllpro-cms | import React from 'react';
import Modal from 'react-modal';
import ModalCustomStyle from '../Modal';
import ModalCloseIcon from '../svg/ModalCloseIcon';
const confirmDeleteionModal = props => {
return (
<Modal
contentLabel="Confirm removal"
className="confirm-deletion"
style={ModalCustomStyle}
... |
common/components/ide/Terminal.js | ebertmi/webbox | import React from 'react';
import { Terminal as Term } from 'xterm';
import * as fit from 'xterm/lib/addons/fit/fit';
import capitalize from 'lodash/capitalize';
import debounce from 'lodash/debounce';
import isFunction from 'lodash/isFunction';
import Debug from 'debug';
import TerminalManager from '../../models/te... |
node_modules/react-router/es6/Lifecycle.js | ajkhatibi/wheevy | import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On stan... |
src/svg-icons/device/battery-charging-full.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryChargingFull = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H... |
node_modules/react-router/es6/Link.js | tacrow/tacrow | 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/svg-icons/action/card-membership.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardMembership = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"/>
</SvgIcon>... |
frontend/jqwidgets/jqwidgets-react/react_jqxcheckbox.js | liamray/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxCheckBox extends React.Component {
componentDidMount() {
let options = this.manag... |
src/components/Disciplina/Notas/index.js | RodolfoSilva/DeVryCalc | import React from 'react'
import { View } from 'react-native'
import Nota from '../Nota'
import PropTypes from 'prop-types'
import { styleByNota } from './styles'
const Notas = ({ ap1 = null, ap2 = null, ap3 = null, style }) => (
<View style={style}>
<Nota value={ap1} valueStyle={styleByNota(ap1)} title="AP1" />... |
src/test-component/draft/draft-settings-map/BlockRenderMap.js | GoreStarry/Stories_Kingdom | import React from 'react';
import Immutable from 'immutable';
import BlockWapperTest from '../components/BlockWapperTest.jsx';
import CommentBlock from '../components/CommentBlock.jsx';
export const BlockRenderMap = Immutable.Map({
'superTitleBlock': {
element: 'h1',
wrapper: <BlockWapperTest/>
},
'comm... |
app/screens/Settings.js | celikmus/MathWise | import React from 'react';
import { Text, StatusBar } from 'react-native';
import { Container } from '../components/Container';
import styles from './styles';
const Settings = () =>
<Container>
<StatusBar translucent={false} barStyle="default" />
<Text>Settings page lala...</Text>
</Container>;
Settings.n... |
src/js/components/icons/base/Sidebar.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
app/javascript/mastodon/features/ui/index.js | koba-lab/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... |
examples/real-world/src/containers/Root.dev.js | lifeiscontent/redux | import React from 'react'
import PropTypes from 'prop-types'
import { Provider } from 'react-redux'
import routes from '../routes'
import DevTools from './DevTools'
import { Router } from 'react-router'
const Root = ({ store, history }) => (
<Provider store={store}>
<div>
<Router history={history} routes={... |
lavalab/html/node_modules/react-bootstrap/es/Badge.js | LavaLabUSC/usclavalab.org | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
node_modules/react-taco-table/site/src/components/ExampleSummarizer.js | together-web-pj/together-web-pj | import React from 'react';
import { TacoTable, DataType, Formatters, Summarizers,
TdClassNames } from 'react-taco-table';
import cellLinesData from '../data/cell_lines.json';
/**
* An example demonstrating how to use column summarizers.
*/
const columns = [
{
id: 'name',
value: rowData => rowData.cellLi... |
src/library/Card/CardStatus.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import IconDangerSimple from '../Icon/IconDangerSimple';
import IconSuccessSimple from '../Icon/IconSuccessSimple';
import IconWarningSimple from '../Icon/IconWarningSimple';
import { CardStatusRoot as Root } from './styled';
import { cardStatusPropTypes } from './propTypes';
imp... |
src/Parser/Rogue/Subtlety/Modules/Talents/DarkShadow/DarkShadowSpecterOfBetrayal.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import ItemLink from 'common/ItemLink';
import ITEMS from 'common/ITEMS';
import { formatPercentage } from 'common/format';
import DarkShadow from './DarkShadow';
class Dark... |
examples/src/components/Creatable.js | serkanozer/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
var CreatableDemo = createClass({
displayName: 'CreatableDemo',
propTypes: {
hint: PropTypes.string,
label: PropTypes.string
},
getInitialState () {
return {
mult... |
src/components/theme/Heading1Ext/Heading1Ext.js | mutualmobile/Brazos | import React, { Component } from 'react';
export default platformCode = {
render: function() {
return (
<h1>Web Page View</h1>
);
}
} |
src/App.js | OutcomeLife/layout | import React, { Component } from 'react';
import { Header, Body, Sidebar, Content, ButtonThick } from 'genny-components';
import { VerticleLayout} from './components';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as BaseEntity from "./actions/baseEntityActions";
import * a... |
src/components/TeamPage/index.js | KidsFirstProject/KidsFirstProject.github.io | import React from 'react';
import { Container, Col, Row, Image, CardColumns, Card } from 'react-bootstrap';
import MemberCard from './MemberCard';
import styles from './TeamPage.module.css';
import teamImage from '../../assets/images/chapters/portland-or/hfh06.jpg';
import directors from '../../data/team/directors';
im... |
app/javascript/mastodon/features/mutes/index.js | pointlessone/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/scenes/connector-03.js | jdpigeon/neurodoro | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
import{
Actions,
}from 'react-native-router-flux';
import { connect } from 'react-redux';
import { MediaQueryStyleSheet } from 'react-native-responsive';
import * as colors from '../styles/colors';
// Components.... |
react-native/AwesomeProject/components/StyledText.js | glandre/prototypes | import React from 'react';
import { Text } from 'react-native';
export class MonoText extends React.Component {
render() {
return <Text {...this.props} style={[this.props.style, { fontFamily: 'space-mono' }]} />;
}
}
|
app/containers/LocaleToggle/index.js | akash6190/apollo-starter | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
src/components/question/Question.js | Oblium/react-math | import React from 'react';
import './question.scss';
class Question extends React.Component {
render() {
return !this.props.gameEnded ? (
<div className="questionContainer">
{this.props.question}
</div>
) : (
<div className="timer">Time is up!</div>
);
}
}
export default Que... |
project-templates/reactfiber/externals/react-fiber/fixtures/dom/src/components/fixtures/input-change-events/InputPlaceholderFixture.js | itsa-server/itsa-cli | import React from 'react';
import Fixture from '../../Fixture';
class InputPlaceholderFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
placeholder: 'A placeholder',
changeCount: 0,
};
}
handleChange = () => {
this.setState(({ c... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/photo-size-select-large.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImagePhotoSizeSelectLarge = (props) => (
<SvgIcon {...props}>
<path d="M21 15h2v2h-2v-2zm0-4h2v2h-2v-2zm2 8h-2v2c1 0 2-1 2-2zM13 3h2v2h-2V3zm8 4h2v2h-2V7zm0-4v2h2c0-1-1-2-2-2zM1 7h2v2H1V7zm16-4h2v2h-2V3zm0 16h2v2h-2v-2zM3 3C2 3 1 4 1 5h2V3zm6 ... |
src/svg-icons/navigation/chevron-left.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationChevronLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
NavigationChevronLeft = pure(NavigationChevronLeft);
NavigationChevronLeft.dis... |
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbMassiveSizeExample.js | jcarbo/stardust | import React from 'react'
import { Breadcrumb } from 'stardust'
const BreadcrumbMassiveSizeExample = () => (
<Breadcrumb size='massive'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Breadcrum... |
src/main/viz/CoverageTrack.js | snaheth/pileup.js | /**
* Coverage visualization of Alignment sources.
* @flow
*/
'use strict';
import type Interval from '../Interval';
import type {TwoBitSource} from '../sources/TwoBitDataSource';
import type {DataCanvasRenderingContext2D} from 'data-canvas';
import type {Scale} from './d3utils';
import type {CoverageDataSource} fr... |
app/javascript/mastodon/components/missing_indicator.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import illustration from 'mastodon/../images/elephant_ui_disappointed.svg';
import classNames from 'classnames';
const MissingIndicator = ({ fullPage }) => (
<div className={classNames('regeneration-indicato... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/ModalHeader.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["className", "cssModule", "children", "toggle", "tag", "wrapTag", "closeAriaLabel", "charCode", "close"];
import React from 'react';
import Pro... |
docs/lib/Components/index.js | video-react/video-react | import React from 'react';
import { Link } from 'react-router';
import {
Container, Row, Col, Nav, NavItem, NavLink
} from 'reactstrap';
const ComponentLink = props => (
<NavItem>
<NavLink tag={Link} to={props.item.to} activeClassName="active">
{props.item.name}
</NavLink>
</NavItem>
);
class Comp... |
src/svg-icons/alert/warning.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertWarning = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
AlertWarning = pure(AlertWarning);
AlertWarning.displayName = 'AlertWarning';
Aler... |
app/containers/CatKitDemo/SlabView.js | mhoffman/CatAppBrowser | import React from 'react';
import PropTypes from 'prop-types';
import Grid from 'material-ui/Grid';
import GeometryCanvasWithOptions from 'components/GeometryCanvasWithOptions';
export class SlabView extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div... |
src/svg-icons/editor/format-strikethrough.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatStrikethrough = (props) => (
<SvgIcon {...props}>
<path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/>
</SvgIcon>
);
EditorFormatStrikethrough = pure(EditorFormatStrikethrough);
Edit... |
node_modules/react-bootstrap/es/Breadcrumb.js | ProjectSunday/rooibus | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | Jeremy-Meng/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 ... |
src/app/app.js | nazar/soapee-ui | /*global FB*/
//load CSS assets first
require( '../assets/main.css' );
import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import Router from 'react-router';
import ga from 'react-ga';
import config from 'config';
import routes from './routes';
///////////////////
/// INITIALISE
let ana... |
app/javascript/mastodon/features/ui/components/column.js | vahnj/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.