path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/interface/icons/Versatility.js | anom0ly/WoWAnalyzer | import React from 'react';
const icon = (props) => (
<svg
xmlns="http://www.w3.org/2000/svg"
version="1.1"
viewBox="16 16 32 32"
className="icon"
{...props}
>
<polygon points="40.128,30.517 43.92,31.535 48.567,26.883 47.893,24.366 44.461,27.802 40.628,26.774 39.601,22.935 43.032,19.499 40.5... |
test/kitchensink/src/features/webpack/SassModulesInclusion.js | egoist/poi | import React from 'react'
import styles from './assets/sass-styles.module.sass'
import indexStyles from './assets/index.module.sass'
export default () => (
<div>
<p className={styles.sassModulesInclusion}>SASS Modules are working!</p>
<p className={indexStyles.sassModulesIndexInclusion}>
SASS Modules w... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | alexbid/sqrtrading | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
components/AppLayout/AppSidebar.js | cofacts/rumors-site | import React from 'react';
import gql from 'graphql-tag';
import { t } from 'ttag';
import SwipeableDrawer from '@material-ui/core/SwipeableDrawer';
import { makeStyles } from '@material-ui/core/styles';
import {
Box,
Button,
Typography,
Divider,
List,
ListItem,
} from '@material-ui/core';
import Avatar fr... |
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/TankParams.js | SnowBeaver/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
im... |
src/App.js | devigor/react-busca-cep | import React from 'react';
import ReactDOM from 'react-dom';
import BuscaCep from './Components/BuscaCEP';
ReactDOM.render(
<BuscaCep />,
document.getElementById('root')
);
|
src/svg-icons/navigation/arrow-forward.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowForward = (props) => (
<SvgIcon {...props}>
<path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/>
</SvgIcon>
);
NavigationArrowForward = pure(NavigationArrowForward);
Navigation... |
test/fixtures/block-element/input.js | rebem/rebem-jsx | import React from 'react';
function Test() {
return <div block="test">
<div block="test" elem="test2"></div>
</div>;
}
|
src/svg-icons/action/backup.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBackup = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z... |
components/Navigation/index.js | joaojusto/jose-gomes-landing-page | import React from 'react';
import './index.scss';
import NextArrow from './next.svg';
import PreviowsArrow from './previous.svg';
const Navigation = ({ onPrevious, onNext }) =>
<div className="Navigation">
<img
className="Navigation-previous"
src={PreviowsArrow}
onClick={onPrevious}
/>
... |
server/sonar-web/src/main/js/apps/background-tasks/components/Search.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... |
src/components/Dashboard/CoinedList.js | Alonski/CoinPanion | import React from 'react'
import { List, ListItem } from 'material-ui/List'
import Divider from 'material-ui/Divider'
import Avatar from 'material-ui/Avatar'
import IconMenu from 'material-ui/IconMenu'
import MenuItem from 'material-ui/MenuItem'
import IconButton from 'material-ui/IconButton'
import MoreVertIcon from '... |
src/js/components/app.js | rafaelkyrdan/flux-app | import React from 'react';
import AppActions from '../actions/app-actions';
import Catalog from './catalog/app-catalog';
import Cart from './cart/app-cart';
import CatalogDetail from './product/app-catalogdetail';
import Template from './app-template';
import { Router, Route, IndexRoute } from 'react-router'
export d... |
src/svg-icons/action/view-week.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewWeek = (props) => (
<SvgIcon {...props}>
<path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4... |
src/templates/blog-post.js | simpaa/s-andersson-site | import React from 'react';
import Helmet from 'react-helmet';
import SiteConfig from '../data/SiteConfig';
import TextCard from '../components/TextCard';
export default function Template({
data
}) {
const { markdownRemark: post } = data;
return (
<TextCard className="blog-post-container">
... |
src/svg-icons/device/storage.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceStorage = (props) => (
<SvgIcon {...props}>
<path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/>
</SvgIcon>
);
DeviceStorage = pure(DeviceStorage);
DeviceS... |
4-routing/src/Loading.js | pirosikick/react-hands-on-20171023 | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
function Loading() {
return (
<div style={{ textAlign: 'center', paddingTop: '20px' }}>
<CircularProgress />
</div>
);
}
export default Loading;
|
6.0.2/examples/asyncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(269),e.exports=n(267)},function(e,t,n){var r=n(5),o=n(36),i=n(20),a=n(21),u=n(37),s="prototype",... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | cnbin/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ActorClient from 'utils/ActorClien... |
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SassInclusion.js | jdcrensh/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 './assets/sass-styles.sass';
const SassInclusion = () => (
<p id="feature-sass-inclusion">We love u... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | liuzwei/actor-platform | import React from 'react';
import classNames from 'classnames';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React.Component {
static propTypes = {
di... |
src/svg-icons/device/brightness-auto.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessAuto = (props) => (
<SvgIcon {...props}>
<path d="M10.85 12.65h2.3L12 9l-1.15 3.65zM20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM14.3 ... |
src/index.js | awebfactory/state-shape-designer | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import {reducer as formReducer} from 'redux-form';
import reducer from './reduc... |
client/modules/Post/components/PostListItem/PostListItem.js | Skrpk/mern-sagas | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
// Import Style
import styles from './PostListItem.css';
function PostListItem(props) {
return (
<div className={styles['single-post']}>
<h3 className={sty... |
src/static/index.js | qwertypomy/rental | import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import Root from './containers/Root/Root';
import configureStore from './store/configureStore';
import { authLoginUserSuccess } from './actions/auth';
... |
ajax/libs/react-select/1.0.0-rc.10/react-select.es.js | tholu/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
className: ... |
source/client/components/admin/invitations/_partials/short-name.js | lawshe/boda | import React from 'react';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
/**
*
* For within add invitation form, text input for invitation short name used in R... |
app/components/shared/Icon/index.js | buildkite/frontend | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import update from 'react-addons-update';
import svgContent from './svgContent';
type Props = {
style?: Object,
className?: string,
icon: string,
title?: string
};
function Icon(props: Props) {
const style = update(props.style || {}, {... |
frontend/src/components/recipes/edit/components/Step2/components/TagsSection/TagsField/TagsField.js | jf248/scrape-the-plate | import React from 'react';
import { Compose } from 'lib/react-powerplug';
import { RecordsMany } from 'lib/crud';
import * as Enhanced from 'lib/mui-components';
import TagsFieldPres from './TagsFieldPres';
function TagsField(props) {
const { inputProps, ...rest } = props;
const {
value: valueProp,
error... |
src/svg-icons/hardware/power-input.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePowerInput = (props) => (
<SvgIcon {...props}>
<path d="M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"/>
</SvgIcon>
);
HardwarePowerInput = pure(HardwarePowerInput);
HardwarePowerInput.dis... |
webapp/src/routes/dashboard/components/numberCard.js | templatetools/trace | import React from 'react'
import PropTypes from 'prop-types'
import { Icon, Card } from 'antd'
import CountUp from 'react-countup'
import styles from './numberCard.less'
function NumberCard ({ icon, color, title, number, countUp }) {
return (
<Card className={styles.numberCard} bordered={false} bodyStyle={{ padd... |
src/components/App.js | crp2002/ID3-React | import React, { Component } from 'react';
import { render } from 'react-dom';
import Header from '../containers/Header';
import TextEditor, { editor } from './editor/textEditor';
import AttributesPanel from '../containers/AttributesPanel';
import Footer from './footer/Footer';
const { ipcRenderer } = require('electron... |
test/integration/scss-fixtures/multi-global/pages/_app.js | zeit/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global1.scss'
import '../styles/global2.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
docs/app/Examples/collections/Table/Variations/TableExampleCompact.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleCompact = () => {
return (
<Table compact>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Ta... |
components/ListItem.js | hellobrian/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
const propTypes = {
children: PropTypes.node,
className: PropTypes.string,
};
const ListItem = ({ children, className, ...other }) => {
const classNames = classnames('bx--list__item', className);
return (
<... |
packages/material-ui-icons/src/NoSim.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let NoSim = props =>
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1.27L3.65 3.8... |
src/components/AboutPage/index.js | aaronholmes/yelp-clone | import React from 'react';
import {Link} from 'react-router';
import style from './AboutPage.css';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className={style.altHeader}>About</h2>
<p>
Here we are learning Rea... |
app/routes.js | aaronjameslang/nhshd17 | // @flow
import React from 'react';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import App from './containers/App';
import SettingsPage from './containers/SettingsPage';
import PatientsPage from './containers/PatientsPage';
import PatientPage from './containers/PatientPage';
import RecordProc... |
gatsby-strapi-tutorial/cms/plugins/settings-manager/admin/src/components/EditFormSectionNested/index.js | strapi/strapi-examples | /**
*
* EditFormSectionNested
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { has, map, forEach } from 'lodash';
// HOC
import EditFormSectionSubNested from '../EditFormSectionSubNested';
import WithFormSection from '../WithFormSection';
/* eslint-disable react/require-default-props */
... |
examples/using-preact/pages/about.js | kevmannn/next.js | import React from 'react'
export default () => (
<div>About us</div>
)
|
examples/todomvc/index.js | leoasis/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
import 'todomvc-app-css/index.css'
const store = configureStore()
render(
<Provider store={store}>
<A... |
app/features/quiz/QuizSession/QuizHeader/index.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
selectCategory,
selectPercentComplete,
selectPercentCorrect,
selectCompleteCount,
selectSessionRemainingCount,
} from 'features/quiz/QuizSession/selectors';
import Icon from 'common/components/Icon... |
client/node_modules/react-error-overlay/lib/components/ErrorOverlay.js | bourdakos1/Visual-Recognition-Tool | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
src/public/components/form/password.js | Harrns/segta |
import React from 'react'
import $ from 'jquery'
import Notify from '../notification'
import TextInput from '../input/text'
import Form from './default'
import SubmitButton from '../button/submit'
export default class PasswordForm extends React.Component {
constructor (props) {
super(props)
this.minPassL... |
demos/forms-demo/src/components/Fields/Input/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state, props, signal} from 'cerebral/tags'
import {css} from 'aphrodite'
import styles from './styles'
export default connect({
field: state`${props`path`}.**`,
settings: state`app.settings.**`,
fieldChanged: signal`simple.fieldChanged`
},
... |
client/src/components/articles/ArticleSearchComponent.js | axs221/infio | 'use strict';
import React from 'react';
import { Input } from 'react-bootstrap';
require('styles/articles/ArticleSearch.sass');
class ArticleSearchComponent extends React.Component {
constructor() {
super();
this.state = {
value: ''
};
// http://www.newmediacampaigns.com/blog/refactoring-re... |
front-end/app/config/routes.js | akumbhani66/cantaloupe | import React from 'react';
import {Route, Router, hashHistory} from 'react-router';
import Main from '../components/Main';
import Display_invoices from '../containers/invoice/display_invoices_container';
import Edit_invoices from '../containers/invoice/edit_invoice_container';
import Display_users from '../containers/u... |
6.0.0-alpha.15/examples/asyncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(290),e.exports=n(288)},function(e,t,n){var r=n(5),o=n(33),i=n(17),a=n(19),u=n(38),s="prototype",... |
src/svg-icons/editor/attach-money.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorAttachMoney = (props) => (
<SvgIcon {...props}>
<path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.... |
src/static/containers/Home/index.js | lroyland/SalaSIS | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import './style.scss';
import reactLogo from './images/react-logo.png';
import reduxLogo from './images/redux-logo.png';
class HomeView extends React.Component {
static propTypes = {
statusText: React.P... |
src/components/FindDomNode.js | nchathu2014/reactApp | import React from 'react';
import ReactDOM from 'react-dom';
export default class FindDomNode extends React.Component{
_findDOMNode(){
var node = document.getElementById('myDiv');
node = ReactDOM.findDOMNode(node);
node.style.backgroundColor='green';
var another_node = ReactDOM.findDOMNode(this);
another_... |
src/components/ConsultoresTabla.js | daviddsp/front_agence | import React, { Component } from 'react';
import {
Button,
IconButton
} from 'react-mdl';
export default class ButtonBox extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<div>
<Button raised ripple colored>
... |
es/admin/components/AdminApp/index.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
import List, { ListItem, ListItemText } from '../../../components/List';
import CurrentPage from './CurrentPage';
import '../../index.css';
var _ref2 =
/*#__PURE__*/
_jsx(ListItemText, {
primary: "Ma... |
fields/types/url/UrlColumn.js | Ftonso/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var UrlColumn = React.createClass({
displayName: 'UrlColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.ob... |
src/scripts/app.js | sharnee/instaClone | import React from 'react'
import ReactDOM from 'react-dom'
import Backbone from 'backbone'
import Header from './views/header'
import DetailView from './views/detailView.js'
import ListView from './views/listView.js'
const app = function() {
//MODEL
var ImageCollection = Backbone.Collection.extend({
url: 'https://i... |
examples/huge-apps/routes/Calendar/components/Calendar.js | andreftavares/react-router | import React from 'react'
class Calendar extends React.Component {
render() {
const events = [
{ id: 0, title: 'essay due' }
]
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... |
frontend/tests/components/button.js | 1905410/Misago | import assert from 'assert';
import React from 'react'; // jshint ignore:line
import Button from 'misago/components/button'; // jshint ignore:line
import * as testUtils from 'misago/utils/test-utils';
describe("Button", function() {
afterEach(function() {
testUtils.unmountComponents();
});
it('renders', fun... |
js-old/src/ui/TxList/txList.spec.js | destenson/ethcore--parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
src/App/__tests__/App.container-test.js | psychobolt/react-native-boilerplate | import React from 'react';
import Immutable from 'immutable';
import { shallow } from 'enzyme';
import configureMockStore from 'redux-mock-store';
// app
import AppContainer from '../App.container';
import initialState from '../Navigation/Navigation.state';
const mockStore = configureMockStore([]);
test('AppContaine... |
pootle/static/js/shared/components/Tabs.js | ta2-1/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 { PureRenderMixin } from... |
app/components/StaticListHeader/index.js | arnef/ligatool-hamburg | import React from 'react';
import { View } from 'react-native';
import { connect } from 'react-redux';
import { darken } from '../../Helper';
import styles from './styles';
import { getColor } from '../../redux/modules/user';
function StaticListHeader(props) {
const headerStyle = [styles.row, { backgroundColor: dar... |
example/src/index.js | glortho/react-keydown | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
ReactDOM.render( <App />, document.getElementById( 'example' ) );
|
src/routes.js | kaloudiyi/VotePlexClient | import React from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import promise from 'redux-promise';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import reducers from './reducers';
import PollAdd from './components/poll_add';
import PollDetai... |
src/components/baeder/BaederModalMenuIntroduction.js | cismet/wupp-geoportal3-powerboats | import React from 'react';
import { Link } from 'react-scroll';
const BaederModalMenuIntroduction = ({ uiStateActions }) => {
return (
<span>
Über{' '}
<Link
id="lnkSettings"
to="settings"
containerId="myMenu"
smooth={true}
delay={100}
onClick={() => uiStateActions.setApplicationMenuAc... |
app/views/ListsNavigatorView.js | hippothesis/Recipezy | /*
* Copyright 2017-present, Hippothesis, 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.
*/
'use strict';
import React, { Component } from 'react';
import { Icon } from 'native-base';
import { StackN... |
src/example/index.js | KleeGroup/focus-notifications | import React from 'react';
import ReactDOM from 'react-dom';
import SmartNotificationCenter from '../';
import 'material-design-icons-iconfont/dist/material-design-icons.css'
import 'material-design-lite/material.css';
import 'material-design-lite/material.min';
import moment from 'moment';
import i18next from 'i18ne... |
client/components/header.js | nizarayari/PersonalWebsite | import React, { Component } from 'react';
import $ from 'jquery';
export default class Header extends Component {
componentDidMount(){
$(window).scroll(function(){
var wScroll = $(this).scrollTop();
if(wScroll < 306){
$('.intro').css({
'transform': 'translate(0px, '+ wScroll/2 +'px... |
src/components/LaborRightsMenu/About.js | chejen/GoodJobShare | import React from 'react';
import { Section, P } from 'common/base';
import styles from './About.module.css';
const About = () => (
<Section paddingBottom>
<img
className={styles.image}
src="https://image.goodjob.life/labor-rights-about.png"
alt="勞動知識小教室"
/>
<P size="l" className={style... |
client/lib/components/pages/ControlPanel/UsersRegistration.js | blckt/diploma | import React from 'react';
import { findDOMNode } from 'react-dom';
import { series } from 'async';
import {
Row,
Col,
Grid,
FormGroup,
FormControl,
ControlLabel,
Form,
ProgressBar,
Button
} from 'react-bootstrap';
import Table from '../../TableView';
import 'whatwg-fetch';
import { showError } from '... |
src/svg-icons/av/new-releases.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNewReleases = (props) => (
<SvgIcon {...props}>
<path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.1... |
__tests__/Menu.js | PaulLeCam/react-pure | import React from 'react';
import TestRenderer from 'react-test-renderer';
import Menu from '../src/Menu';
describe('Menu', () => {
it('renders a div with class `pure-menu` by default', () => {
const renderer = TestRenderer.create(<Menu className="my-menu" />);
expect(renderer.toJSON).toMatchSnapshot();
}... |
cmd/elwinator/src/index.js | foolusion/choices | // @flow
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import { Router, Route, browserHistory } from 'react-router';
import { syncHisto... |
app/javascript/mastodon/features/blocks/index.js | hugogameiro/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 ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
src/ui/components/StatusItem.js | exponentjs/xde | /**
* @flow
*/
import React, { Component } from 'react';
import { StyleSheet, css } from 'aphrodite/no-important';
import StyleConstants from '../StyleConstants';
class StatusItem extends Component {
props: {
icon: ReactElement<*>,
right: ReactElement<*>,
onClick?: (e: any) => void,
style?: Object... |
src/components/AssignmentDetails.js | dpastoor/assignment-manager | /**
* Created by devin on 1/5/16.
*/
import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import CardMedia from 'material-ui/lib/card... |
docs/src/components/Home/Hero/ButtonsPreview/ButtonsPreview.js | seek-oss/seek-style-guide | import styles from './ButtonsPreview.less';
import buttonStyles from 'seek-style-guide/react/Button/Button.less';
import React from 'react';
import classnames from 'classnames';
import { Button } from 'seek-style-guide/react';
export default function ButtonsPreview() {
return (
<div className={styles.root}>
... |
client/src/app/components/utils/Moment.js | zraees/sms-project | import React from 'react'
import moment from 'moment'
export default class Moment extends React.Component {
render() {
return (
<span>{
moment(this.props.date).format(this.props.format || 'llll')}</span>
)
}
}
|
src/pages/App.js | evenchange4/michaelhsu.tw | import React from 'react';
import Envelope from 'react-icons/lib/fa/envelope-square';
import GitHub from 'react-icons/lib/fa/github';
import Twitter from 'react-icons/lib/fa/twitter-square';
import Linkedin from 'react-icons/lib/fa/linkedin-square';
import CoverImage from '../components/CoverImage';
import Body from '.... |
components/RSVPForm/ContactInfo.js | jamesrf/weddingwebsite | import React from 'react';
import s from './RSVPForm.css';
import TextField from '../TextField/TextField';
class ContactInfo extends React.Component {
render() {
return (
<div className={s.contactInfo}>
<TextField label="Your Name"
id="rsvpName"
onChange={this... |
src/React/Renderers/PlotlyRenderer/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import Plotly from 'plotly.js';
import style from 'PVWStyle/ReactRenderers/PlotlyRenderer.mcss';
import sizeHelper from '../../../Common/Misc/SizeHelper';
export default class PlotlyRenderer extends React.Component {
constructor(props) {
super(prop... |
src/encoded/static/components/__tests__/user-test.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
import _ from 'underscore';
import TestUtils, { act } from 'react-dom/test-utils';
import { object } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
/* Basing off of browse.js to test user.js */
jest.autoMockOff();
// Fixes https://github.com/facebook/jest/... |
src/client/modules/jobs/pages/Jobs/Jobs.js | dunika/job-admin | import React from 'react';
import styled from 'styled-components';
import { Flex } from 'client/modules/shared/components';
import { connectReselect } from 'client/lib/redux-helpers';
import { actions, selectors } from '../../store';
import { Job } from '../../components';
import Filters from './Filters';
const Conta... |
packages/swap/example/On/On.js | nkbt/react-works | import React from 'react';
import PropTypes from 'prop-types';
export function On({children, ...rest}) {
return (
<div data-e2e="on" className="on" {...rest}>
{children}
</div>
);
}
On.propTypes = {
children: PropTypes.node
};
On.defaultProps = {
children: 'ON'
};
|
app/javascript/mastodon/features/home_timeline/index.js | ebihara99999/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../ui/components/column';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ColumnSettingsCo... |
shared/app/Tms/components/Icons/Playlist.js | pebie/react-universally-node-config | import PropTypes from 'prop-types';
import React from 'react';
/**
* Playlist icon
*
* @return {jsx}
*/
const Playlist = ({ svgClass }) =>
(<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 38 30"
className={svgClass}
aria-labelledby="title desc"
tabIndex="0"
role="img"
>
<title ... |
src/components/Layout/index.js | STMU1320/dedao-demo | import React from 'react'
import styles from './style.less'
function Layout () {
return (
<div className={styles.wrap}>
<div className={styles.item}>item1</div>
<div className={styles.item}>item2</div>
<div className={styles.item}>item3</div>
</div>
)
}
export default Layout
|
pootle/static/js/admin/components/User/UserAdd.js | phlax/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 UserForm from './UserFo... |
stories/create-story.js | indeedeng/react-link-to-inbox | import React from 'react';
export default (code, elem) => {
return () => (<div>
<div>
<div>
Code:
</div>
<pre>
<code>
{code}
</code>
</pre>
</div>
<div>
<div>
Example:
</div>
<br />
<... |
src/svg-icons/social/notifications.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotifications = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 ... |
src/svg-icons/action/swap-horiz.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapHoriz = (props) => (
<SvgIcon {...props}>
<path d="M6.99 11L3 15l3.99 4v-3H14v-2H6.99v-3zM21 9l-3.99-4v3H10v2h7.01v3L21 9z"/>
</SvgIcon>
);
ActionSwapHoriz = pure(ActionSwapHoriz);
ActionSwapHoriz.d... |
app/javascript/mastodon/features/ui/components/mute_modal.js | SerCom-KC/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
import { muteAccount }... |
packages/native/src/components/screens/transactions/TransactionAccountListScreen.js | hwaterke/inab-native | import React from 'react';
import PropTypes from 'prop-types';
import {View, FlatList} from 'react-native';
import {connect} from 'react-redux';
import {arraySelector} from 'hw-react-shared';
import {
AccountResource,
selectBalanceByAccountId,
getBudgetBalance
} from 'inab-shared';
import {crud} from '../../hoc/c... |
src/@ui/Icon/icons/SkipPrevious.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M11.846 4.168v15.67c0 1.2... |
src/components/layout.js | LuisLoureiro/placard-wrapper | import React from 'react'
import { StaticQuery, graphql } from 'gatsby'
import Navigation from './navigation'
import EventListenerSimulator from './event-listener-simulator'
import styles from './layout.module.styl'
export default ({ children }) => (
<StaticQuery
query={graphql`
query NavigationQuery {
... |
redux/js/todo/index.js | quiaro/js-playground | import React from 'react'
import { render } from 'react-dom'
import * as Store from './app/store'
import { save as saveState } from './app/state'
import Root from './components/Root'
let subscriptions = [{
delay: 600, // debouce for a specific number of milliseconds before the function is called
fn() {
saveSt... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | vishveshcoder/Login | 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'));
|
app/javascript/mastodon/features/ui/components/embed_modal.js | lindwurm/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
import api from 'mastodon/api';
import IconButton from 'mastodon/components/icon_button';
const messages = defin... |
web/react/components/SearchListItem_test.js | tribou/whatlyric | // Testing the SearchListItem component
import Lab from 'lab';
import Code from 'code';
import React from 'react';
import { createRenderer } from 'react-addons-test-utils';
// Test shortcuts
const lab = exports.lab = Lab.script();
const describe = lab.describe;
const it = lab.it;
const expect = Code.expect;
import Se... |
frontend/test/app/containers/RestartPage-test.js | mozilla/testpilot | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import Restart from '../../../src/app/containers/RestartPage';
describe('app/containers/RestartPage', () => {
let props, subject;
beforeEach(function() {
props = {
hasAddon: fal... |
src/js/components/AuthenticatedComponent.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import connectToStores from '../utils/connectToStores';
import LoginStore from '../stores/LoginStore';
export default (ComposedComponent) => {
function getState(props) {
return {
userLoggedIn: LoginStore.isLoggedIn(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.