path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/modules/home/components/Disclaimer.js | nordsoftware/outdoors-sports-map | import React from 'react';
import {Link} from 'react-router';
import {translate} from 'react-i18next';
export default translate()(({attributionLink, t}) =>
<div className="disclaimer">
<div className="disclaimer__content">
<Link to="#">{t('APP.ABOUT')}</Link>
<a target="_blank" href={attributionLink}... |
client/views/admin/apps/AppsPage.js | VoiSmart/Rocket.Chat | import { Button, ButtonGroup, Icon } from '@rocket.chat/fuselage';
import React from 'react';
import Page from '../../../components/Page';
import { useRoute } from '../../../contexts/RouterContext';
import { useSetting } from '../../../contexts/SettingsContext';
import { useTranslation } from '../../../contexts/Transl... |
components/PendingGame.js | ttalhouk/Game_On | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
TabBarIOS,
Text,
View,
TouchableHighlight,
ListView,
ActivityIndicatorIOS,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
const styles = require('../components/styling.js')
class PendingGame exte... |
examples/complex/src/components/repo/data.js | rocjs/roc-package-web-app-react | import React, { Component } from 'react';
import styles from './style.css';
export default class RepoData extends Component {
static propTypes = {
city: React.PropTypes.object,
list: React.PropTypes.array
};
render() {
const repos = [];
Object.keys(this.props).forEach((re... |
app/javascript/mastodon/components/loading_indicator.js | RobertRence/Mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
src/DatePicker/DatePicker.spec.js | w01fgang/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import DatePicker from './DatePicker';
import getMuiTheme from '../styles/getMuiTheme';
import TextField from '../TextField';
describe('<DatePicker />', () => {
const muiTheme = getMuiTheme();
const shal... |
draft-js-buttons/src/components/BlockquoteButton/index.js | koaninc/draft-js-plugins | import React from 'react';
import createBlockStyleButton from '../../utils/createBlockStyleButton';
export default createBlockStyleButton({
blockType: 'blockquote',
children: (
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6... |
client/src/components/ElementEditor/tests/ElementActions-test.js | dnadesign/silverstripe-elemental | /* eslint-disable import/no-extraneous-dependencies */
/* global jest, describe, it, expect */
import React from 'react';
import { Component as ElementActions } from '../ElementActions';
import Enzyme, { shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import AbstractAction from 'components/Elem... |
src/components/video_list.js | lingyaomeng1/youtube-search | import React from 'react'
import VideoListItem from './video_list_item'
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video}
/>
);
});
return (
<ul className='col-md-4 ... |
src/components/NewArticle/PostList.js | chuntielin/Blog_Yeoman_Fullstack | import React from 'react';
import BlogActions from '../../actions/BlogActions';
import BlogStore from '../../stores/BlogStore';
// Components
import PostItem from './PostItem';
const PostList = React.createClass({
getInitialState(){
return {articles: BlogStore.getAll()}
},
_onChange(){
this.setState({articles: Bl... |
client/App/Members/Table/TableRow/index.js | JohannesAnd/SKWebsite | import React from 'react';
import { state, props, sequences } from 'cerebral';
import { connect } from '@cerebral/react';
import {
faCheck,
faPencilAlt,
faTimes,
} from '@fortawesome/free-solid-svg-icons';
import Mails from './Mails';
import Status from './Status';
import UserLanguage from 'common/UserLanguage'... |
src/library/Dialog/__tests__/DialogBody.spec.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { shallow } from 'enzyme';
import Dialog from '../Dialog';
import DialogBody from '../DialogBody';
import examples from '../../../website/app/demos/Dialog/DialogBody/examples';
import testDemoExamples from '../../../../utils/testDemoExamples';
function shallowDialog(props ... |
test/integration/basic/pages/nav/as-path.js | giacomorebonato/next.js | import React from 'react'
export default class extends React.Component {
static getInitialProps ({ asPath, req }) {
return { asPath }
}
render () {
return (
<div className='as-path-content'>
{this.props.asPath}
</div>
)
}
}
|
test/SafeAnchorSpec.js | chilts/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import SafeAnchor from '../src/SafeAnchor';
describe('SafeAnchor', function() {
it('renders an anchor tag', function() {
const instance = ReactTestUtils.renderIntoDocument(<SafeAnchor />);
const node = React.findDOMNode(instanc... |
client/src/About.js | martchellop/shcode | import React, { Component } from 'react';
import file from './data/about.json';
class About extends Component {
render(){
const text_st = { fontSize: "16px" };
return(
<div className="text-center fluid">
<h1>{file.title}</h1>
{file.pars.map( (par, idx) => {
return(<p key={idx... |
src/Select.js | pedroseac/react-select | import React from 'react';
import ReactDOM from 'react-dom';
import Input from 'react-input-autosize';
import classNames from 'classnames';
import stripDiacritics from './utils/stripDiacritics';
import Async from './Async';
import Option from './Option';
import Value from './Value';
function stringifyValue (value) {... |
app/components/1_Keymaps/Keymaps/EditKeymapModal.js | shug0/Awesomidi | import React, { Component } from 'react';
// MATERIAL
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
// Components
import EditAvatar from './EditAvatar';
class EditKeymapModal ... |
src/components/__tests__/horizontal-bar-content-test.js | ronlobo/building-os-charts | import Component from '../horizontal-bar-content';
import TestFunctions from './__test-functions__';
import React from 'react';
describe('HorizontalBarContent', () => {
const { renderIntoDocument } = React.addons.TestUtils;
TestFunctions.isOfExpectedType(Component, 'g', 'horizontal-bar-content');
TestFunctions... |
app/components/main/content/content/component.js | mic-fadeev/postglass | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import SpinnerComponent from '../../../base/spinner/component';
import HeadersComponent from '../headers/component';
import * as CurrentTableActions from '../../../../actions/currentTable';
im... |
src/components/fileTree/folder.js | fmsouza/wcode | import React from 'react';
import Icon from '../icon';
import ItemFile from './file';
import Menu from './directoryMenu';
export default class ItemFolder extends React.Component {
state = { collapsed: true, files: [], folders: [] };
get chevronName() {
return (this.state.collapsed) ? 'chevron-rig... |
src/routes/Home/components/HomeView.js | shuliang/ReactConventionDemo | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className='duck'
src={DuckImage} />
</div>
)
export default HomeView
|
dashboard/index.js | vinnyhuang/fw-dev-dashboard | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app.js';
import 'colors.css/css/colors.min.css';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import 'react-grid-layout/css/styles.css';
import 'react-resizable/css/styles.css';
impo... |
node_modules/native-base/Components/Widgets/Badge.js | mk007sg/threeSeaShells | /* @flow */
'use strict';
import React from 'react';
import {View} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
import Text from './Text';
export default class BadgeNB extends NativeBaseComponent {
propTypes:... |
node_modules/@material-ui/core/esm/Divider/Divider.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import { fade } from '../styles/colorManipu... |
src/components/common/svg-icons/communication/phone.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61... |
actor-apps/app-web/src/app/components/Main.react.js | zomeelee/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import VisibilityActionCreators from '../actions/VisibilityActionCreators';
import FaviconActionCreators from 'actions/FaviconActionCreators';
import FaviconStore from 'stores/FaviconStore';
import ActivitySection from 'components/ActivitySecti... |
src/incident.js | danriti/pagerduty-review | import moment from 'moment-timezone';
import React from 'react';
const TIMESTAMP_FORMAT = 'dddd YYYY/MM/DD LT zz';
export default class Incident {
constructor(incident) {
this.id = incident.id;
this.number = incident.incident_number;
this.key = incident.incident_key;
this.created = incident.create... |
src/routes.js | bobrown101/phi-tau | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './containers/HomePage';
import AboutPage from './components/AboutPage.js';
import NotFound from './containers/NotFound';
import Rush from './containers/Rush';
import LaserTagHome from'... |
pootle/static/js/auth/components/AccountActivation.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... |
src/clincoded/static/components/provisional_curation.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import _ from 'underscore';
import moment from 'moment';
import url from 'url';
import { curator_page, history_views, userMatch, queryKeyValue } from './globals';
import { RestM... |
src/components/Link/PhoneLink.js | cityofsurrey/polltal-app | import React from 'react'
import PropTypes from 'prop-types'
import Link from './Link'
/**
* Link for phone number that will trigger a calling
*/
const PhoneLink = ({ to, children }) => {
const phone = to.replace(/[- ]/g, '')
return (
<Link to={`tel:+1${phone}`}>{children}</Link>
)
}
PhoneLink.propTypes... |
components/Queries.js | react-community/native-directory | import React from 'react';
import PropTypes from 'prop-types';
import Router from 'next/router';
import { StyleSheet, css } from 'glamor/aphrodite';
import { isEmptyOrNull } from '../common/strings';
export default class Queries extends React.PureComponent {
static propTypes = {
dispatch: PropTypes.func,
q... |
src/widgets/InlineInput.js | rcdexta/react-trello | import React from 'react'
import PropTypes from 'prop-types'
import {InlineInput} from 'rt/styles/Base'
import autosize from 'autosize'
class InlineInputController extends React.Component {
onFocus = (e) => e.target.select()
// This is the way to select all text if mouse clicked
onMouseDown = (e) => {
if (d... |
shared/fee/flat.js | RalphSleigh/bookings | import React from 'react'
//This event has a flat per participant cost.
import {
Button,
Row,
Col,
Form,
FormGroup,
Label,
Input,
InputGroup,
InputGroupAddon,
Card,
CardBody,
CardTitle,
CardImg,
CardImgOverlay,
Table
} from 'reactstrap';
import Currency from ... |
client/src/components/CategoryRow.js | Nauktis/inab | import React from 'react';
import Cell from './Cell';
import Amount from './Amount';
import ui from 'redux-ui';
import BudgetItemForm from './BudgetItemForm';
import {connect} from 'react-redux';
import asyncActionCreatorsFor from '../actions/asyncActionCreatorsFor';
import moment from 'moment';
import FontAwesome from... |
docs/client/components/pages/Linkify/index.js | koaninc/draft-js-plugins | import React, { Component } from 'react';
// eslint-disable-next-line import/no-unresolved
import simpleExampleCode from '!!../../../loaders/prism-loader?language=javascript!./SimpleLinkifyEditor';
// eslint-disable-next-line import/no-unresolved
import simpleExampleEditorStylesCode from '!!../../../loaders/prism-load... |
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js | honpya/taketodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import IconButton from '../../../components/icon_button';
import { changeComposeSensitivity } from '../../../actions/compose';
import Motion from '../../ui/util/optional_motion';
im... |
client/pages/HomePage.js | marcocom/portfolio-react-webpack2 | import React from 'react';
import { browserHistory } from 'react-router';
import { RaisedButton } from 'material-ui';
export default function HomePage() {
const handleToCounter = () => browserHistory.push('counter');
const handleToTodo = () => browserHistory.push('todo');
const buttonStyles = { margin: '10px' };... |
src/js/components/home/Banner.js | mmmigalll/react-starter | import React, { Component } from 'react';
import Button from './Button';
export default () => (
<div className="banner">
<h1>
Intelligence Reports
</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.... |
src/playground/components/ListExample.react.js | Indoqa/indoqa-rebass-components | import React from 'react'
import Div from '../../main/components/Div.react'
import List from '../../main/components/List.react'
import ListItem from '../../main/components/ListItem.react'
import {Heading, Space, Pre} from 'rebass'
const ListExample = () => (
<Div>
<Heading level={2}> Lists </Heading>
<Pre> &... |
componentes/TimeLine.js | yomi-network/app | import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
Text,
View,
ScrollView,
} from 'react-native';
import {StackNavigator} from 'react-navigation';
import Terms from './Terminos';
import Header from './Header';
import * as RecipesApi from './RecipesFromApi';
import SearchBar fro... |
src/parser/priest/holy/modules/core/HolyWordWastedAmounts.js | FaideWW/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage, formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
// dependencies
imp... |
website/src/pages/line/canvas.js | plouc/nivo | import React from 'react'
import omit from 'lodash/omit'
import { ResponsiveLineCanvas, LineCanvasDefaultProps } from '@nivo/line'
import { ComponentTemplate } from '../../components/components/ComponentTemplate'
import meta from '../../data/components/line/meta.yml'
import mapper from '../../data/components/line/mappe... |
internals/templates/app.js | svangordon/latrones-cli | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/icons/AddAlertIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class AddAlertIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M20.02 41.02c0 2.2 1.78 3.98 3.98 3.98s3.98-1.78 3.98-3.98h-7.96zm17.74-8.38V21c0-6.5-4.5-11.94-10.58-13.... |
src/js/components/HomePage/HomePage.js | mnm1001/draggable-homepage | import React from 'react'
import map from 'lodash/map'
import isEmpty from 'lodash/isEmpty'
import Category from 'components/HomePage/Category'
import AddCategoryButton from 'components/HomePage/AddCategoryButton'
import './HomePage.scss'
import { DragDropContext } from 'react-dnd'
import HTML5Backend from 'react-dnd-h... |
src/svg-icons/image/looks-5.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks5 = (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-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/>
</SvgI... |
v3/test/views/layout/Footer.js | mauris/nusmods | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import Footer from 'views/layout/Footer';
test('is a footer element', (t) => {
const actual = shallow(<Footer/>);
t.is(actual.type(), 'footer');
});
// check for noopener noreferrer if target_blank was used
// see: https://www.ji... |
test/testHelper.js | nicksp/react-geo-weather | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/Cart/CartPage.js | KaPrimov/ArtPodarychePage | import React, { Component } from 'react';
import $ from 'jquery';
import ContactForm from './ContactForm';
import BoughtProductsList from './BoughtProductsList';
import '../../resources/styles/bought-products-styles.css';
import { withRouter } from 'react-router'
import {sendEmail} from '../../models/mail-sender';
cla... |
src/components/button_adduser.js | robreczarek/recruitment-un | import React, { Component } from 'react';
import { Link } from 'react-router';
class ButtonAddUser extends Component {
constructor(props) {
super(props);
this.maxUsers = 10
}
userAdded() {
const success = this.props.location.query.success;
const error = this.props.location.query.error;
i... |
src/index.js | cephalization/filehub | // Import Styles
import 'semantic-ui-css/semantic.min.css';
import './index.css';
// Import Components
import React from 'react';
import ReactDOM from 'react-dom';
import MainComponent from './components/mainComponent';
// Misc
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<MainComponent... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js | g3r4n/create-esri-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, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return {
users: [
{ i... |
lib/ui/src/modules/ui/components/stories_panel/index.stories.js | rhalff/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import StoriesPanel from './index';
import { createHierarchies } from '../../libs/hierarchy';
import withLifecyle from '../../../../libs/withLifecycleDecorator';
import { setContext } from '../..... |
src/components/Menu/Home.js | shierby/storehome | import React from 'react';
class Home extends React.Component {
render() {
return (
<div className="container-fluid catalog_page">
<div className="container">
<h1>Home Page</h1>
</div>
</div>
)
}
}
export default Home; |
www/src/components/survey/SurveyUserList.js | cygwin255/SimpleSurvey | import React from 'react'
import Pagination from 'components/navigation/Pagination'
import { Link } from 'react-router-dom'
import { debounce } from 'lodash'
class SurveyUserList extends React.Component {
componentWillMount () {
this.setSearch = debounce(this.setSearch, 250)
}
setSearch (value) {
this.s... |
app/javascript/flavours/glitch/features/search/index.js | im-in-space/mastodon | import React from 'react';
import SearchContainer from 'flavours/glitch/features/compose/containers/search_container';
import SearchResultsContainer from 'flavours/glitch/features/compose/containers/search_results_container';
const Search = () => (
<div className='column search-page'>
<SearchContainer />
<d... |
src/pages/index.js | getinsomnia/website | import React from 'react';
import DownloadLink from '../components/download-link';
import DownloadButton from '../components/download-button';
import SocialCards from '../components/social-cards';
import Link from '../components/link';
import Companies from '../partials/companies';
import Helmet from 'react-helmet';
im... |
src/Stateful.js | rongierlach/react-web3-network-status | import React from 'react'
import { Provider } from 'react-redux'
import store from './state/store'
import NetworkStatus from './NetworkStatus'
const ReactWeb3NetworkStatus = props => (
<Provider store={store}>
<NetworkStatus {...props} />
</Provider>
)
export default ReactWeb3NetworkStatus
|
src/components/Disqus/Disqus.js | Grusteam/spark-in-me | import React from 'react';
import ReactDOM from 'react-dom';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import cx from 'classnames';
import s from './Disqus.css';
import ReactDisqusComments from '../../../node_modules/react-disqus-comments';
class Disqus extends React.Component {
handleNewCommen... |
app/test/unexpectedWithAddons.js | gustavnikolaj/keepass-reader | import unexpected from 'unexpected'
import unexpectedReactShallow from 'unexpected-react-shallow'
import React from 'react'
export var expectForComponents = unexpected
.clone()
.use(unexpectedReactShallow)
.addAssertion('to render as', (expect, subject, value) => {
var renderer = React.addons.TestUtils.creat... |
app/public-src/components/player/player.js | SpaceAppsReno/higher-ground | import classes from 'app-utils/classes';
import styles from './player.scss';
import React, { Component } from 'react';
import Icon from 'app-components/icon/icon';
import Button from 'app-components/button/button';
export default class Player extends Component {
static propTypes = {
year: React.PropTypes.number.is... |
src/routes.js | davide-ravasi/redux-firebase | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import MenuTop from './components/menu_top';
//import PostItem from './components/post_item';
import PostList from './components/post_list';
import PostsNew from './components/create_form';
import PostMod ... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | ketoo/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
source/components/main-menu.js | Aokibi/Regents-Navigation | import React from 'react'
import {Link} from 'react-router'
import Button from './button'
import styles from './our-styles.less'
/* The main menu page. */
class MainMenu extends React.Component {
render() {
return (
<div>
<div>
<h1 className ={styles['heading']}> Welcome to the St. Olaf Regents Navigatio... |
components/background-images.js | WanderlandTravelers/wanderlandtravelers.github.io | import React from 'react'
import Slider from 'react-slick'
import responsiveImages from './responsive-images.js'
import {Icon} from 'react-fa'
import '../css/background-images'
// import 'slick-carousel/slick/slick.scss'
// import 'slick-carousel/slick/slick-theme.scss'
export default class BackgroundImages extends R... |
src/client/index.js | mdang8/IsTheMatrixOn | import 'bootstrap';
import React from 'react';
import { render } from 'react-dom';
import Main from './components/Main.jsx';
import './scss/app.scss';
// only renders the main React component if the "root" element is present
if (document.getElementById('root')) {
render(<Main />, document.getElementById('root'));
}... |
packages/core/src/icons/components/CtbcDirect.js | iCHEF/gypcrete | import React from 'react';
export default function SvgCtbcDirect(props) {
return (
<svg
width="1em"
height="1em"
viewBox="0 0 1000 1000"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M656.3 843.8H343.... |
modules/Redirect.js | shunitoh/react-router | import PropTypes from 'prop-types'
import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './InternalPropTypes'
/**
* A <Redirect> is used to declare another URL path a client should
*... |
src/health/User.js | wangboy/health-client | /**
* Created by wangbo on 23/04/2017.
*/
// in src/users.js
import React from 'react';
import {List, Datagrid, EmailField, TextField} from 'admin-on-rest/lib/mui';
export const UserList = (props) => (
<List title="All users" {...props}>
<Datagrid>
<TextField source="id"/>
<TextField source="name"/... |
src/svg-icons/file/folder-shared.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFolderShared = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v... |
src/docs/components/tiles/TilesDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Tiles from 'grommet/components/Tiles';
import Tile from 'grommet/components/Tile';
import Anchor from 'grommet/components/Anchor';
import Button from 'grommet/components/Button';
import DocsArticle fro... |
examples/huge-apps/components/GlobalNav.js | KamilSzot/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
web/src/app/components/user/items.js | yacloud-io/teleport | import React from 'react';
const U2F_ERROR_CODES_URL = 'https://developers.yubico.com/U2F/Libraries/Client_error_codes.html';
export const ErrorMessage = ({ message }) => {
message = message || '';
if(message.indexOf('U2F') !== -1 ) {
return (
<label className="grv-invite-login-error">
{message}
... |
examples/redux-observable/cancellable-counter/src/components/Counter.js | ioof-holdings/redux-subspace | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import {
INCREMENT,
DECREMENT,
INCREMENT_IF_ODD,
CANCEL_INCREMENT_ASYNC,
START_COUNTDOWN
} from '../actionTypes'
function Counter({counter, countdown, dispatch}) {
const action = (type, value) => () => ... |
src/svg-icons/editor/insert-emoticon.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertEmoticon = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm... |
examples/async/index.js | linalu1/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
src/svg-icons/hardware/computer.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareComputer = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/>
</SvgIcon>
);
HardwareComputer ... |
src/Choropleth.js | ornl-sava/vis-react-components | import React from 'react'
import PropTypes from 'prop-types'
import { TransitionGroup } from 'react-transition-group'
import { interpolate, geoPath, geoEquirectangular } from 'd3'
import * as topojson from 'topojson'
import { setEase } from './util/d3'
import SVGComponent from './SVGComponent'
class Choropleth extend... |
src/components/common/articles/ArticleSummary.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {Link} from 'react-router';
import {slugify} from '../../../utils/strings';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Required components
import Heading from '../typography/Heading';
impo... |
react/gameday2/components/embeds/EmbedUstream.js | nwalters512/the-blue-alliance | import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'
const EmbedUstream = (props) => {
const channel = props.webcast.channel
const src = `https://www.ustream.tv/embed/${channel}?html5ui=1`
return (
<iframe
width="100%"
height="100%"
src={src}
scrolling=... |
src/containers/Info.js | ComicsReader/reader | import React, { Component } from 'react';
import NavigationSidebar from 'components/NavigationSidebar';
export default class Info extends Component {
onClick = (event) => {
if (window.PLATFORM === 'electron') {
event.preventDefault();
const { shell } = require('electron');
shell.openExternal(event.target.... |
src/stories/index.js | brandai/brandai-storybook | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import Button from '../components/Button';
storiesOf('Button', module)
.add('default view', () => (
<Button onClick={ action('button clicked') }>Hello</Button>
))
.add('some emojies as the text', () => (
<Button>😀 😎 👍 💯<... |
client/components/Flass/Lecture/Analysis/Analysis.js | Nexters/flass | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import _ from 'lodash';
import ChartComponent from './Chart/ChartComponent';
import SingleChoiceComponent from './SingleChoice/SingleChoiceComponent';
import ... |
17-react-todos-redux-es7-decorator/src/app/components/todo-list.js | iproduct/course-node-express-react | import React from 'react';
import Todo from './todo';
import TodoDetails from './todo-details';
import { CSSTransitionGroup } from 'react-transition-group';
import AnimationOnPropsChange from './animation-on-props-change';
import { connect } from 'react-redux';
import { changeStatus, selectTodo, editTodo,
deleteTodo... |
gadget-system-teamwork/src/components/gadgets/EditGadgetPage.js | TeodorDimitrov89/JS-Web-Teamwork-2017 | import React from 'react'
import gadgetActions from '../../actions/GadgetActions'
import gadgetStore from '../../stores/GadgetStore'
import EditGadgetForm from './EditGadgetForm'
import FormHelpers from '../common/forms/FormHelpers'
import toastr from 'toastr'
class EditGadgetPage extends React.Component {
construct... |
src/components/RenderToBody.js | luanhaipeng/coolpeng-react | import React from 'react';
import ReactDOM from 'react-dom';
// 将子组件渲染到 document.body 上
export default class RenderToBody extends React.Component {
static propTypes = {
children: React.PropTypes.node.isRequired // 只允许传单个子组件
};
componentDidMount() {
this._innerContainer = document.createEle... |
src/components/Connections/Toolbar.js | SteMcLellan/queryman | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getConnectionStateFromProps } from './selectors.js';
import { actions } from './component.js';
import { actions as query_actions } from '../Query/component.js';
const T_mapStateToProps = (state, ownProps) => {
return {
... |
src/layouts/UserLayout.js | wu-sheng/sky-walking-ui | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
client/src/Application/Application.js | Fasand/youtube-monitor | import React from 'react';
class Application extends React.Component {
render () {
return <h1>Application</h1>;
}
}
export default Application;
|
stories/pageheader.stories.js | JimBarrows/Bootstrap-React-Components | import {storiesOf} from '@storybook/react'
import React from 'react'
import PageHeader from '../src/PageHeader'
storiesOf('Page Header', module)
.addDecorator((story) => <div className="container"> {story()} </div>)
.add('Basic', () => <PageHeader id={'basic'}><h1>Page Header</h1></PageHeader>)
.add(... |
src/components/Footer/Footer.js | agiron123/react-starter-kit-TDDOList | /**
* 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 withStyles from 'isomorp... |
indico/modules/rb/client/js/common/map/util.js | pferreir/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import LatLon from 'geodesy/latlon-nvector-spherical';
import _ from 'lodash';
import PropTypes from... |
src/renderer/components/root.js | ka2n/retro-twitter-client | import { connect } from 'react-redux'
import AccountSwitcher from './account-switcher'
import ContextSwitcher from './channel-switcher'
import ipc from 'ipc'
import Main from './main'
import React from 'react';
import {
fetchAccount,
fetchTweets,
fetchLists,
openUrl,
postTweet,
searchTweets,
selectChannel... |
app/javascript/mastodon/features/favourites/index.js | honpya/taketodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourites } from '../../actions/interactions';
import { ScrollContainer } fr... |
src/components/ui/ListItem.js | eventures-io/ldn-retail-demo | /**
* List Items
*
<ListItem title={'Hello World'} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ListItem } from 'react-native-elements';
// Consts and Libs
import { AppColors, A... |
src/app/Topics.js | cityofasheville/simplicity2 | import React from 'react';
import PropTypes from 'prop-types';
import TopicCard from '../shared/TopicCard';
import { withLanguage } from '../utilities/lang/LanguageContext';
import {
IM_TREE
} from '../shared/iconConstants';
import Icon from '../shared/Icon';
const Topics = props => (
<div className="card-containe... |
app/shared/modals/payment-terms/PaymentTermsModal.js | fastmonkeys/respa-ui | import React from 'react';
import PropTypes from 'prop-types';
import Modal from 'react-bootstrap/lib/Modal';
import injectT from '../../../i18n/injectT';
function PaymentTermsModal({
isOpen,
onDismiss,
t,
}) {
return (
<Modal
className="app-PaymentTermsModal"
onHide={onDismiss}
show={is... |
day17_todolist/src/components/App.js | eyesofkids/ironman2017 | import React from 'react'
import TodoList from './TodoList'
class App extends React.Component {
render() {
return <TodoList initText="開始輸入文字吧!" />
}
}
// 輸出App模組
export default App
|
src/containers/DevTools.js | kun391/react-firebase-chat | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor defaultIsVisible={false} toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w">
<Lo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.