path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/svg-icons/editor/insert-chart.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertChart = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
Editor... |
examples/01 Dustbin/Single Target/Container.js | zetkin/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import Dustbin from './Dustbin';
import Box from './Box';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
render() {
return (
... |
imaginarySet/src/App.bak.js | HJBowers/imaginary-shrew | import React, { Component } from 'react';
import './App.css';
import Deck from '../src/Deck'
import _ from 'lodash'
const deck = ("Deck", Deck)
let currentDeck = _.shuffle(deck)
let board = [null,null,null,null,null,null,null,null,null,null,null,null]
// The selected cards
let setArray = []
// the values of those card... |
packages/icons/src/md/image/Flip.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFlip(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M30 42h4v-4h-4v4zm8-24h4v-4h-4v4zM6 10v28c0 2.21 1.79 4 4 4h8v-4h-8V10h8V6h-8c-2.21 0-4 1.79-4 4zm32-4v4h4c0-2.21-1.79-4-4-4zM22 46h4V2h-4v44zm16-12h4v-... |
src/pages/danbiro.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Danbiro' />
)
|
src/components/ProgressBar/index.js | IDEOorg/steps-guide-builder | import React from 'react';
import './index.less';
const ProgressBar = (props) => {
let i = 0;
let bars = [];
while(i < props.count && i < 2) {
bars.push(<div key={i} className="progress_bar_bar progress_bar_bar_complete"></div>);
i++;
}
while(i < 2) {
bars.push(<div key={i} className="progress_ba... |
setup/src/universal/features/common_ui/components/Tabs/index.js | ch-apptitude/goomi | /**
*
* Tabs
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import RCTabs from 'rc-tabs';
import TabContent from 'rc-tabs/lib/TabContent';
import ScrollableInkTabBar from 'rc-tabs/lib/ScrollableInkTabBar';
import styled from 'styled-components';
const TabContainer = styled.div`
.rc-tabs-nav {
... |
src/Spring.js | jaredly/react-motion | import React from 'react';
import components from './components';
module.exports = components(React);
|
client/src/app/parts/core/coreModule.js | Einsteinish/DumbNode | import React from 'react';
import { browserHistory, Router } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import {createAction, createReducer} from 'redux-act';
import {connect} from 'react-redux';
import IntlComponent from './components/IntlComponent';
import {routerMiddleware} from ... |
app/components/CodeEditor.js | Ribeiro/fil | import React from 'react';
import AceEditor from 'react-ace';
import 'brace/mode/python';
import 'brace/mode/ruby';
import 'brace/mode/javascript';
import 'brace/theme/tomorrow_night';
import {getExtension} from 'helpers';
import {byExtension} from 'interpreters';
class CodeEditor extends React.Component {
constr... |
webapp/src/components/NewCubeForm.js | ArnaudBrousseau/blockbin | import React, { Component } from 'react';
import Web3 from 'web3';
import {BigNumber} from 'bignumber.js';
import { createBlockbinContract, createWeb3, getEtherscanURL } from '../util/ethereum';
const SUPPORTED_CODECS = {
'ASCII': 'ascii'
};
function WarningBanner(props) {
if (!props.errors || !props.errors.lengt... |
web/src/scripts/actions/dialogActions.js | alexzherdev/deco-ide | /**
* Copyright (C) 2015 Deco Software Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be... |
src/components/PlaylistManager/index.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import OverlayContent from '../Overlay/Content';
import PlaylistMenu from '../../containers/PlaylistManagerMenu';
import PlaylistPanel from '../../containers/PlaylistManagerPanel';
import PlaylistImport from '../../containers/Pl... |
pages/signup.js | angel200sdnot/web-liga | import React from 'react'
import { Provider } from 'react-redux'
import { initStore } from '../store'
import userReducer from '../reducers/user'
import SignupForm from '../components/signup-form'
import Layout from '../layouts/main'
export default class Signup extends React.Component {
static getInitialProps({ req }... |
src/svg-icons/places/airport-shuttle.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAirportShuttle = (props) => (
<SvgIcon {...props}>
<path d="M17 5H3c-1.1 0-2 .89-2 2v9h2c0 1.65 1.34 3 3 3s3-1.35 3-3h5.5c0 1.65 1.34 3 3 3s3-1.35 3-3H23v-5l-6-6zM3 11V7h4v4H3zm3 6.5c-.83 0-1.5-.67-1.5-1.... |
app/components/App/app.js | mitchbox/react-seed | 'use strict';
import './_app.scss';
import React from 'react';
import AppActions from '../../actions/app-actions';
import ItemsStore from '../../stores/items-store';
import Body from '../body/body';
import Footer from '../footer/footer';
function getAppState() {
return {
items: ItemsStore.getAll()
};
}
expo... |
components/charts/placeholder-chart/index.js | resource-watch/resource-watch | import React from 'react';
function DatasetPlaceholderChart() {
return (
<div className="c-placeholder-chart">
<div className="c-we-chart" />
</div>
);
}
export default DatasetPlaceholderChart;
|
src/svg-icons/communication/phonelink-setup.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkSetup = (props) => (
<SvgIcon {...props}>
<path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1... |
src--/components/HeadNav/HeadNav.js | wqzwh/react-phone | import React from 'react';
import {Link} from 'react-router';
require ('./HeadNav.css');
class HeadNav extends React.Component {
render() {
return (
<nav className="nav">
<div className="nav-container">
<Link to="/"><span className="nav-back"></span></Link>
<p className="nav-title">我的顶部</p>
<s... |
js/components/loaders/ProgressBar.ios.js | DevHse/ClubRoom | /* @flow */
import React, { Component } from 'react';
import { ProgressViewIOS } from 'react-native';
export default class ProgressBarNB extends Component {
render() {
return (
<ProgressViewIOS
{...this.props}
progress={this.props.progress ? this.props.progress / 100 : 0.5}
prog... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/check-circle.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionCheckCircle = (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 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</SvgIcon>
);
ActionCheckCircle.displayName = 'ActionChec... |
assets/jqwidgets/demos/react/app/knob/knobwithcustomshape/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxKnob from '../../../jqwidgets-react/react_jqxknob.js';
class App extends React.Component {
componentDidMount() {
}
render() {
let marks = {
colorRemaining: '#333',
colorProgress: '#17a25d',
... |
src/routes/default/component/WrapperDefaultPage.js | hourliert/lifework-wallet | import React, { Component } from 'react';
import pureRender from 'pure-render-decorator';
@pureRender
export default class WrapperDefaultPage extends Component {
render() {
return (
<div className="flex layout vertical center-center">
<h1>Whoops! 404!</h1>
<p>These are <em>not</em> the dro... |
src/pages/aramodu.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Aramodu' />
)
|
src/components/canvas/Canvas.js | nchathu2014/canvas-new | import React from 'react';
import ReactDOM from 'react-dom';
import Header from './Header';
import View from './View';
import MenuWrapper from './MenuWrapper';
import Menu from './Menu';
import MenuItem from './MenuItem';
import MenuLabel from './MenuLabel';
/*2nd level components*/
import AddMedia from './other_compo... |
js/components/loaders/ProgressBar.android.js | kwoumn3/khemet | /* @flow */
import React from 'react';
import ProgressBarAndroid from 'react-native';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps() {
... |
examples/counter/containers/App.js | wfro/redux | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider r... |
src/components/JeopardyDetails/JeopardyDetails.js | matthewgallo/portfolio | import React from 'react';
import DetailHeader from '../DetailPage/DetailHeader';
import JeopardyDetailsImage from '../../assets/images/jeopardy/home_jeopardy_app.png';
import Tag from '../Tag/Tag';
import CalloutGroup from '../DetailPage/DetailCalloutGroup';
import CalloutGroupItem from '../DetailPage/CalloutGroupItem... |
app/containers/Pas/PasReport/PieChart.js | vollmerr/app-hub | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Section from '../../../components/Layout/Section';
import { PieChart as Chart } from '../../../components/D3';
import theme from '../../../utils/theme';
import { incrementRenderCount } from '../../AppHub/actio... |
src/Pagination.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
const Pagination = React.createClass({
mixins: [BootstrapMixi... |
app/javascript/mastodon/components/column_back_button_slim.js | kazh98/social.arnip.org | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
import Icon from 'mastodon/components/icon';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
... |
packages/react-scripts/fixtures/kitchensink/src/index.js | christiantinauer/create-react-app | /**
* Copyright (c) 2015-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.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById(... |
react-dev/pages/post.js | DeryLiu/DeryLiu.github.io | import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
import { blueGrey800, grey50, teal900, green900, green500, teal500, cyan500 } from 'material-ui/styles/colors';
import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import MuiThemeProvider from 'material-ui/styles/Mui... |
src/ReactBoilerplate/Scripts/containers/App/Modals/TwoFactorModal.js | pauldotknopf/react-dot-net | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Modal, Button } from 'react-bootstrap';
import { resetLoginState } from 'redux/modules/account';
import { TwoFactor } from 'components';
class TwoFactorModal extends Component {
constructor(props) {
super(props);
this.c... |
src/Parser/Druid/Restoration/Modules/Features/Efflorescence.js | hasseboulen/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
const DUR... |
src/components/chart.js | Khenblack/Intermediate-Redux | //Component --> Rehusable components
import _ from 'lodash';
import React from 'react';
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';
function average(data) {
return _.round(_.sum(data)/data.length);
}
export default (props) => {
return (
<div width="200px" he... |
src/components/SettingsManager/Links.js | u-wave/web | import React from 'react';
import { useTranslator } from '@u-wave/react-translate';
import Button from '@mui/material/Button';
import LicenseIcon from '@mui/icons-material/Copyright';
import GithubIcon from './GithubIcon';
function Link(props) {
return (
<Button
className="SettingsPanel-link"
target=... |
src/components/Sidebar.js | founderlab/fl-admin | import _ from 'lodash' // eslint-disable-line
import React from 'react'
import {Link} from 'react-router'
import {LinkContainer} from 'react-router-bootstrap'
import {Nav, NavItem, Glyphicon} from 'react-bootstrap'
import {modelAdmins} from '../index'
// Links to all model index pages for the sidebar
export default fu... |
docs/src/app/components/pages/components/AutoComplete/ExampleDataSources.js | lawrence-yu/material-ui | import React from 'react';
import AutoComplete from 'material-ui/AutoComplete';
import MenuItem from 'material-ui/MenuItem';
const dataSource1 = [
{
text: 'text-value1',
value: (
<MenuItem
primaryText="text-value1"
secondaryText="☺"
/>
),
},
{
text: 'text-value2'... |
examples/src/components/DisabledUpsellOptions.js | brad82/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 DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropType... |
src/components/colorpicker/ColorSlider.js | webcerebrium/ec-react15-lib | import React, { Component } from 'react';
import './colorpicker.css';
/* eslint-disable no-undef */
class ColorSlider extends Component {
state = {
isDragging: false,
posX: 0
};
maxValue = null;
componentWillMount() {
if (!this.props.value) {
this.props.onChange(this.props.min);
} else ... |
services/QuillLMS/client/app/bundles/Lessons/utils/devTools.js | empirical-org/Empirical-Core | import React from 'react';
// Exported from redux-devtools
import { createDevTools } from '@redux-devtools/core';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from '@redux-devtools/log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
import SliderMonitor from 'red... |
src/client/admin/admin.js | r3dDoX/geekplanet | import React from 'react';
import PrivateRoute from '../router/privateRoute';
import Forms from './forms/forms';
import HomeTiles from './hometiles/homeTiles';
import Orders from './orders/orders';
import Coupons from './coupons/coupons';
export default () => [
<PrivateRoute key="adminOrders" path="/admin/orders" al... |
react-log/src/Inspect.js | rod-stuchi/JS-inspect | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {ObjectInspector, TableInspector} from 'react-inspector';
import FaExpanded from 'react-icons/lib/fa/chevron-circle-down';
import sqlFormatter from "sql-formatter";
import SyntaxHighlighter, { registerLanguage } from "react-syntax... |
packages/canvas-rce/src/rce/DraggingBlocker.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/routes/catalog/Small/Small.js | pustovitDmytro/maysternya | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-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';
import withStyles from 'isom... |
app/js/components/__tests__/selection-test.js | mattiaslundberg/typer | import React from 'react'
import Selection from '../selection'
import sd from 'skin-deep'
describe('Selection', () => {
const render = (onAddClick=jest.fn(), onSelect=jest.fn()) => {
return sd.shallowRender(
<Selection
onAddClick={onAddClick}
onSelect={onSelect}
options={[{"fulltext... |
examples/ReactNativeDemo/__tests__/index.android.js | savjs/sav-flux | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/RadioButtonGroup/RadioButtonGroup-story.js | jzhang300/carbon-components-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import RadioButtonGroup from '../RadioButtonGroup';
import RadioButton from '../RadioButton';
import FormGroup from '../FormGroup';
const radioProps = {
className: 'some-class',
};
storiesOf('... |
app/components/AnimeLibrary.js | daiyingheng/dayinhen | /**
* Created by daiyingheng on 16/9/8.
*/
import React from 'react';
import {Link} from 'react-router';
import AnimeLibraryActions from '../actions/AnimeLibraryActions';
import AnimeLibraryStore from '../stores/AnimeLibraryStore';
class Post extends React.Component {
constructor(props) {
super(props);
thi... |
tests/react/useEffect_hook.js | mroch/flow | // @flow
import React from 'react';
{
React.useEffect(); // Error: function requires another argument.
}
{
// Ok variants without cleanup functions
React.useEffect(() => {});
React.useEffect(() => {}, []);
React.useEffect(() => {}, [1, 2, 3]);
// Ok variants with cleanup functions
React.useEffect(() =... |
src/Menu.js | Hydrock/monsterlessons-react | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class Menu extends Component {
render () {
return (
<div>
<Link to='/'>Home</Link>
<Link to='/about'>About</Link>
</div>
)
}
}
|
packages/veritone-redux-common/src/components/withUIState/index.js | veritone/veritone-sdk | import React from 'react';
import { isFunction, omit, noop, isEmpty } from 'lodash';
import { connect as libConnect } from 'react-redux';
import {
getStateForKey,
setStateForKey,
clearStateForKey
} from 'modules/ui-state';
import { guid } from 'helpers/misc';
import { string, func, objectOf, any } from 'prop-typ... |
app/javascript/packs/application.js | NahlStudio/teamly-rails | import React from 'react';
import { render } from 'react-dom';
import {
BrowserRouter as Router,
Route,
Switch,
} from 'react-router-dom';
import { Provider } from 'redux-zero/react';
import store from './stores/store';
// Components
import SignIn from './components/SignIn';
import Dashboard from './components/... |
packages/web/examples/TagCloud/src/index.js | appbaseio/reactivesearch | import React from 'react';
import ReactDOM from 'react-dom';
import {
ReactiveBase,
TagCloud,
ResultList,
SelectedFilters,
ReactiveList,
} from '@appbaseio/reactivesearch';
import './index.css';
const Main = () => (
<ReactiveBase
app="meetup_app"
url="https://a03a1cb71321:75b6603d-9456-4a5a-af6b-a487b309eb... |
src/js/all/stories/TypographySmall.js | HewlettPackard/grommet | import React from 'react';
import { Grommet, Box, Heading, Paragraph, Text } from 'grommet';
import { grommet } from 'grommet/themes';
const paragraphFiller = `
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.
`;
export const Small = () => (
... |
ajax/libs/recompose/0.20.0/Recompose.js | hare1039/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
src/Screens/Home.js | saurabhj/helpline-app | 'use strict';
import React, { Component } from 'react';
import {
Alert,
StyleSheet,
Text,
View,
Image,
TextInput,
Platform,
Button,
TouchableHighlight,
TouchableOpacity,
AsyncStorage,
NetInfo,
} from 'react-native';
import { NavigationActions, StackNavigator } from 're... |
examples/tree-view/index.js | mjw56/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import Node from './containers/Node'
import configureStore from './store/configureStore'
import generateTree from './generateTree'
const tree = generateTree()
const store = configureStore(tree)
... |
albums/src/components/CardSection.js | diegopoli/sample-react-native-projects | import React from 'react';
import { View } from 'react-native';
const AlbumSection = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderBottomWidth: 1,
padding: 5,
backgroundColor: '#fff',
justifyConten... |
components/kitchen_lamp.js | kapone89/MonteOfficeExpo | import React, { Component } from 'react';
import { View } from 'react-native';
import { observer } from 'mobx-react/native';
import { Container, Header, Content, Title, Icon, Button, Left, Right, Body } from 'native-base';
import { Button as RneButton } from 'react-native-elements';
import icon from '../services/icon';... |
src/svg-icons/maps/local-drink.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDrink = (props) => (
<SvgIcon {...props}>
<path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.... |
src/pages/index.js | aravindballa/website2017 | import React from 'react';
import { Link, graphql } from 'gatsby';
import { GatsbyImage } from 'gatsby-plugin-image';
import Layout from '../components/Layout';
import SEO from '../components/SEO';
import getLCImage from '../utils/lcImage';
import { getRandomTailwindGradient } from '../utils/getRandomTailwindGradient'... |
src/components/Icon/LeftArrow.js | tehkaiyu/bananas | import React from 'react';
function LeftArrow() {
return (
<svg
version="1.1"
className="icon-left"
x="0px"
y="0px"
viewBox="78.8 13.45 6.15 13.05"
xmlSpace="preserve"
>
<g>
<path
fill="#9AA7AF"
d="M84.5,26.5c-0.1,0-0.3,0-0.4-0.1l-4.6-4.6c... |
src/components/Layout/Layout.js | onelink-translations/react-localization | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-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';
import PropTypes from 'prop-... |
node_modules/react-router/es6/IndexRoute.js | jvstrpv/reactredux_2 | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
src/components/ListBox/__tests__/ListBox-test.js | jzhang300/carbon-components-react | import React from 'react';
import { mount } from 'enzyme';
import ListBox from '../';
describe('ListBox', () => {
let mockProps;
beforeEach(() => {
mockProps = {
type: 'default',
children: <ListBox.Field />,
className: 'bx--list-box__container',
disabled: false,
innerRef: jest.fn... |
src/components/SectionTemplates/DrawSection.spec.js | KNMI/GeoWeb-FrontEnd | import React from 'react';
import DrawSection from './DrawSection';
import { mount } from 'enzyme';
describe('(Component) SectionTemplates/DrawSection', () => {
it('renders a DrawSection', () => {
const _component = mount(<DrawSection><div /></DrawSection>);
expect(_component.type()).to.eql(DrawSection);
}... |
src/server.js | HopeUA/tv.hope.ua-react | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import path from 'path';
import createStore from './redux/create';
import Html from './helpers/Html';
import PrettyError from 'pretty-error';
import http from 'http';
import { match } from ... |
app/javascript/mastodon/features/account_timeline/index.js | vahnj/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { refreshAccountTimeline, refreshAccountFeaturedTimeline, expandAccountTimeline } from '../../ac... |
src/app/containers/widgets/Visitors.js | ucokfm/admin-lte-react | import React from 'react';
export default function Visitors() {
return (
<div className="box box-solid bg-light-blue-gradient">
<div className="box-header">
<div className="pull-right box-tools">
<button
type="button"
className="btn btn-primary btn-sm daterange pul... |
be/App.js | emilianoeloi/fi-automation | import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
constructor(){
super();
this.state = {
data: [],
odd: true
}
}
componentDidMount(){
console.info('componentDidMount');
$.ajax({
url:"http://localhost:5000/api/1.0/stock",
dataType: 'json',
cac... |
src/svg-icons/device/add-alarm.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAddAlarm = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
src/routes/content/index.js | xugy0926/shuoriyu | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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';
import Content from './Content'... |
JS Web/ReactJS/Final Project/zoo-market/src/components/user/Register.js | mitaka00/SoftUni | import React, { Component } from 'react';
import requester from './../../utils/requester'
import { Link,Redirect } from 'react-router-dom'
import './../../App.css';
class Register extends Component{
constructor(){
super()
this.state={
username:'',
password:'',
r... |
react-flux-mui/js/material-ui/src/svg-icons/maps/directions-car.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsCar = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1... |
example/__tests__/index.android.js | netceteragroup/react-native-twitterkit | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/TimeAndSalary/common/InfoSalaryModal.js | WendellLiu/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import Modal from 'common/Modal';
import Question from 'common/icons/Question';
import editorStyles from 'common/Editor.module.css';
import Button from 'common/button/Button';
const InfoSalaryModal = ({ isOpen, close }) => (
... |
src/react-motion.js | beni55/react-motion | import React from 'react';
import components from './components';
export const {Spring, TransitionSpring, Motion, StaggeredMotion, TransitionMotion} = components(React);
export spring from './spring';
export presets from './presets';
import reorderKeys from './reorderKeys';
export const utils = {
reorderKeys,
};
|
extension/index.js | sadorlovsky/currency-converter | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, combineReducers } from 'redux'
import { reducer as statesReducer } from 'redux-state'
import Popup from '../src'
const reducer = combineReducers({
states: statesReducer
})
const store = createStore... |
app/javascript/mastodon/components/setting_text.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
packages/slate-react/src/components/node.js | 6174/slate |
import Debug from 'debug'
import ImmutableTypes from 'react-immutable-proptypes'
import React from 'react'
import SlateTypes from 'slate-prop-types'
import logger from 'slate-dev-logger'
import Types from 'prop-types'
import Void from './void'
import Text from './text'
/**
* Debug.
*
* @type {Function}
*/
const... |
packages/reactor-kitchensink/src/examples/Panels/AdvancedDatePanel/AdvancedDatePanel.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container, DatePanel } from '@extjs/ext-react';
export default class AdvancedDatePanelExample extends Component {
render() {
return (
<Container padding={Ext.os.is.Phone ? 0 : 10} layout="fit">
<DatePanel
s... |
src/components/cronList.js | auth0/webtask-widget | import CronListRow from 'components/cronListRow';
import Editor from 'components/editor';
import ComponentStack from 'lib/componentStack';
import React from 'react';
import Sandbox from 'sandboxjs';
import 'styles/cronList.less';
export default class CronList extends React.Component {
constructor(props) {
... |
example/CustomActions.js | Chatnbook/react-native-gifted-chat | import PropTypes from 'prop-types';
import React from 'react';
import {
Modal,
StyleSheet,
TouchableOpacity,
View,
ViewPropTypes,
Text,
} from 'react-native';
import CameraRollPicker from 'react-native-camera-roll-picker';
import NavBar, { NavButton, NavButtonText, NavTitle } from 'react-native-nav';
expo... |
app/javascript/mastodon/features/ui/util/reduced_motion.js | masarakki/mastodon | // Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import React from 'react';
import Motion from 'react-motion/lib/Motion';
import PropTypes from 'prop-types';
const stylesToKeep = ['opacity', 'backgroundOpacity'];
const extractValue = (value) =>... |
site/demos/technews/src/components/Results.js | appbaseio/reactivesearch | import React from 'react';
import { ReactiveList } from '@appbaseio/reactivesearch';
import PropTypes from 'prop-types';
import ResultItem, { resultItemDetails } from '../styles/ResultItem';
import Flex, { FlexChild } from '../styles/Flex';
import Link from '../styles/Link';
function timeSince(date) {
const seconds ... |
app/components/about/AboutUs.js | Block-and-Frame/block-and-frame | import React, { Component } from 'react';
import AboutUsText from './AboutUsText';
import AboutEach from './AboutEach.js';
import Carousel from './Carousel';
class AboutUs extends Component {
render() {
return (
<div className="ui container aboutus">
<div className="ui two-column grid">
<... |
src/components/Feedback/Feedback.js | fsad/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedba... |
client/src/components/GoogleMap/GoogleMap.js | Velocies/raptor-ads | import React from 'react';
import {
withGoogleMap,
GoogleMap,
Marker,
} from 'react-google-maps';
const GoogleMapRender = withGoogleMap(props =>
<GoogleMap
center={props.defaultCenter}
zoom={12}
>
{props.markers.map((marker, index) => {
if (marker.position) {
return (
<Mar... |
src/__mocks__/react-native-svg.js | AwesomeJerry/react-native-qrcode-svg | import React from 'react'
export default function ({ children }) {
return (
<div>
{children}
</div>
)
}
export const Rect = (props) => {
return (
<span>Rect: {JSON.stringify(props)}</span>
)
}
export const Path = (props) => {
return (
<span>Path: {JSON.stringify(props)}</span>
)
}
... |
node_modules/react-bootstrap/es/SplitToggle.js | lucketta/got-quote-generator | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import DropdownToggle fr... |
src/components/__tests__/general/error-test.js | OlivierVillequey/hackathon | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import { Alert } from 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import Error from '@components/general/Error';
it('Error renders correctly', () => {
const tree = renderer.create(
<Erro... |
packages/veritone-react-common/src/components/DataPicker/LeftNavigationPanel/index.js | veritone/veritone-sdk | import React from 'react';
import { oneOf, func, string, arrayOf } from 'prop-types';
import { CloudUploadOutlined, CardTravel } from '@material-ui/icons';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import List... |
packages/plugins/i18n/admin/src/components/LabelAction/index.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import styled from 'styled-components';
import { Tooltip } from '@strapi/design-system/Tooltip';
const Button = styled.button`
border: none;
padding: 0;
background: transparent;
svg {
width: 12px;
heigh... |
admin/client/App/shared/FlashMessages.js | helloworld3q3q/keystone | /**
* Render a few flash messages, e.g. errors, success messages, warnings,...
*
* Use like this:
* <FlashMessages
* messages={{
* error: [{
* title: 'There is a network problem',
* detail: 'Please try again later...',
* }],
* }}
* />
*
* Instead of error, it can also be hilight, info, ... |
src/svg-icons/action/class.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionClass = (props) => (
<SvgIcon {...props}>
<path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/>
</SvgIcon>
);
ActionClass = pure(ActionClass);... |
src/components/AudioRecorder.js | futurice/PelaryHemmo | /*
View block that includes audio recording button and progression bar.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Alert, StyleSheet, Platform } from 'react-native';
import ProgressBar from 'react-native-progress/Bar';
import { Recorder } from 'react-native-audio-to... |
src/Composer.js | ianlin/react-native-gifted-messenger | import PropTypes from 'prop-types';
import React from 'react';
import {
Platform,
StyleSheet,
TextInput,
} from 'react-native';
export default class Composer extends React.Component {
onContentSizeChange(e) {
const contentSize = e.nativeEvent.contentSize;
// Support earlier versions of React Native on... |
dcc-portal-ui/app/scripts/oncololliplot/js/react-components/Toolbar.js | icgc-dcc/dcc-portal | import React from 'react';
import { connect } from 'react-redux';
import { object, array, func } from 'prop-types';
import { loadTranscript, reset } from '../redux/OncoLolliplot/redux';
const Toolbar = ({
loadTranscript,
reset,
transcripts,
selectedTranscript,
mutationService,
filters,
}) => {
const sele... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.