path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
examples/js/style/table-class-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
... |
client/src/components/layout/Header.js | anarinya/feedback-panda-server | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { connect } from 'react-redux';
import { Checkout } from '../billing';
class Header extends Component {
renderContent() {
const { auth } = this.props;
const { credits } = auth || 0;
switch (auth) {
case false... |
js/components/blocks/EmptyUserBlock.js | Sacret/githubify | 'use strict';
import React from 'react';
/**
* Empty user block contains message and links
*/
const EmptyUserBlock = React.createClass({
render() {
return (
<div className="empty-user-block">
<div className="empty-user-block-content text-center">
<h3>
Github user {this.pr... |
src/Badge.js | kwnccc/react-bootstrap | import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
import classNames from 'classnames';
const Badge = React.createClass({
propTypes: {
pullRight: React.PropTypes.bool
},
getDefaultProps() {
return {
pullRight: false
};
},
hasContent() {
re... |
components/Tutorial/Article.stories.js | cofacts/rumors-site | import React from 'react';
import Article from './Article';
import { withKnobs, text, select } from '@storybook/addon-knobs';
export default {
title: 'Tutorial/Article',
component: 'Article',
decorators: [withKnobs],
};
export const Normal = () => (
<div style={{ padding: '20px' }}>
<Article
label={... |
examples/composable-components/redux/src/composable-component/index.js | Mercateo/component-check | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import DynamicComponent from '../dynamic-component';
import * as actionCreators from '../action-creators';
import styles from './composable-component.css';
class ComposableComponent extends Comp... |
test/DropdownMenuSpec.js | aabenoja/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownMenu from '../src/DropdownMenu';
import MenuItem from '../src/MenuItem';
describe('DropdownMenu', function () {
it('Should render menu correctly', function () {
let Parent = React.createClass({
render: function... |
node_modules/react-headroom/www/html.js | aimanaiman/supernomadfriendsquad | import React from 'react'
import DocumentTitle from 'react-document-title'
import { prefixLink } from 'gatsby-helpers'
import { GoogleFont, TypographyStyle } from 'typography-react'
import typography from './utils/typography'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
render () {
... |
app/src/components/content/UserPage/GroupStatus/index.js | ouxu/NEUQ-OJ | /**
* Created by out_xu on 17/5/16.
*/
import React from 'react'
import { Card, Table } from 'antd'
import './index.less'
const GroupStatus = (props) => {
const columns = [
{
title: 'avatar',
dataIndex: 'avatar',
width: 48
}, {
title: 'content',
dataIndex: 'content',
rend... |
app/src/containers/Library.js | wtfil/google-music-unofficial-client | import React from 'react';
import {connect} from 'react-redux';
import {loadPlaylists} from '../actions';
import Row from '../components/Row';
@connect(state => state)
export default class Library extends React.Component {
static onEnter(dispatch) {
return dispatch(loadPlaylists());
}
render() {
const {music} =... |
docs/app/Examples/collections/Grid/Variations/GridStretchedExample.js | jamiehill/stardust | import React from 'react'
import { Grid, Segment } from 'stardust'
const { Column, Row } = Grid
const GridStretchedExample = () => (
<Grid columns={3} divided>
<Row stretched>
<Column>
<Segment>1</Segment>
</Column>
<Column>
<Segment>1</Segment>
<Segment>2</Segment>
... |
docs/src/app/components/pages/components/Card/ExampleWithAvatar.js | w01fgang/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleWithAvatar = () => (
<Card>
<CardHeader
title="URL Avatar"
subtitle="Subtitle"
avatar="images/jsa-128.jpg"... |
assets/js/components/Truncate.js | mlapierre/Winds | import React from 'react'
var Entities = require('html-entities').AllHtmlEntities,
entities = new Entities(),
normalizeWhitespace = require('normalize-html-whitespace')
const truncate = (text, length = 15) => {
if (text.length < length) return text
return text.substring(0, length) + '...'
}
export de... |
app/containers/LanguageProvider/index.js | keithalpichi/NobleNote | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/components/FlashMessage/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './flash-message.scss';
const TIMEOUT = 2000;
const FlashMessage = React.createClass({
beginTimeout () {
const duration = this.props.duration || TIMEOUT;
return setTimeout(() => this.props.hideFlashMessage(), duration);
},
componentDidMount () {
this.t... |
stories/Breadcrubms/ExampleWithOnClick.js | skyiea/wix-style-react | import React from 'react';
import styles from './ExampleBreadcrumbs.scss';
import Breadcrumbs from '../../src/Breadcrumbs/Breadcrumbs';
const items = [{id: '1', value: 'first item'}, {id: '2', value: 'second item'}, {id: '3', value: 'third item'}];
export default () =>
<div>
<div className={`${styles.onGrayBac... |
components/preview/preview.js | DarcyChan/darcychan.com | /*
Preview Component.
The preview link component with a preview image, name, and category of the project.
*/
// External components
import React from 'react';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
// Internal components
import { Icon, Glyph, Image } from 'components... |
docs/src/stories/CustomWidths.js | byumark/react-table | /* eslint-disable import/no-webpack-loader-syntax */
import React from 'react'
import _ from 'lodash'
import namor from 'namor'
import ReactTable from '../../../lib/index'
class Story extends React.PureComponent {
render () {
const data = _.map(_.range(5553), d => {
return {
firstName: namor.gener... |
test/specs/shape/CurveSpec.js | sdoomz/recharts | import React from 'react';
import { expect } from 'chai';
import { Surface, Curve } from 'recharts';
import { mount, render } from 'enzyme';
describe('<Curve />', () => {
const points = [
{ x: 10, y: 10 },
{ x: 25, y: 40 },
{ x: 40, y: 10 },
{ x: 55, y: 40 },
{ x: 70, y: 10 },
];
const point... |
test/components/EnterprisePageComponentTest.js | cised-ca/se-dir-frontend-react | /* eslint-env node, mocha */
/* global expect */
/* eslint no-console: 0 */
'use strict';
import React from 'react';
import { shallow } from 'enzyme';
import EnterprisePageComponent from 'components/EnterprisePageComponent.js';
var slug = require('slug');
slug.defaults.mode = 'rfc3986';
describe('EnterprisePageComp... |
src/js/components/Calendar/stories/SundayFirstDay.js | HewlettPackard/grommet | import React from 'react';
import { Box, Calendar, Grommet } from 'grommet';
import { grommet } from 'grommet/themes';
// When the first day of the month is Sunday, and the request of firstDayOfWeek
// is Monday, we are verifing we are not missing a week, issue 3253.
export const SundayFirstDayCalendar = () => (
<G... |
app/components/AssignedProblem.js | jmpressman/REACTO-platform | import React from 'react';
import { connect } from 'react-redux';
import Carousel from 'nuka-carousel';
const AssignedProblem = (props) => {
console.log('PROBLEM PROPS', props);
const assignedProblem = props.assignedProblem;
return (
<div className="col-lg-10">
<h3>{assignedProblem.name}</h3>
... |
src/containers/__tests__/views/login-view-test.js | arayi/SLions | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import FormView from '@containers/auth/Form/FormView';
// Login prop expects a promise
const mockPromise = new Promise(resolve => resolve());... |
app/javascript/mastodon/features/followers/index.js | tootsuite/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
NewsDemoNavTab/Component/ZPFind.js | HAPENLY/ReactNative-Source-code-Demo | /**
* Created by zhaopengsong on 2016/12/13.
*/
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
var ZPFind = React.createClass({
render() {
... |
examples/src/components/MultiSelectField.js | webcoding/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 MultiSelectField = React.createClass({
displayName: 'MultiSelectField',
propTypes: {
label: React.PropTypes.string,
... |
stories/Button.js | schneckentempo/ClicksAndImpressions | import React from 'react';
const buttonStyles = {
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 15,
padding: '3px 10px',
margin: 10,
};
const Button = ({ children, onClick }) => (
<button
style={buttonStyles}
onClick={onClick}
>
{chil... |
docs/src/PropTable.js | insionng/react-bootstrap | import merge from 'lodash/object/merge';
import React from 'react';
import Label from '../../src/Label';
import Table from '../../src/Table';
let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, '');
function getPropsData(componentData, metadata){
let props = componentData.props || {};
i... |
blueocean-material-icons/src/js/components/svg-icons/social/people.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.... |
src/components/LoadingScreen.js | robertkirsz/magic-cards-manager | import React from 'react'
import { Spinner } from 'components'
import { AbsoluteCenter } from 'styled'
const LoadingScreen = () => (
<AbsoluteCenter background="white">
<Spinner />
</AbsoluteCenter>
)
export default LoadingScreen
|
src/give/Funds/FundDetails.js | NewSpring/Apollos | import React from 'react';
import { Platform, ScrollView } from 'react-native';
import { compose, mapProps } from 'recompose';
import withFinancialAccounts from '@data/withFinancialAccounts';
import styled from '@ui/styled';
import Header from '@ui/Header';
import BackgroundView from '@ui/BackgroundView';
import SideBy... |
react-demos/drag_and_drop/src/index.js | konvajs/site | import React, { Component } from 'react';
import { createRoot } from 'react-dom/client';
import { Stage, Layer, Text } from 'react-konva';
class App extends Component {
state = {
isDragging: false,
x: 50,
y: 50,
};
render() {
return (
<Stage width={window.innerWidth} height={window.innerHe... |
src/layouts/CoreLayout/CoreLayout.js | colindcampbell/word-weaver | import React from 'react'
import PropTypes from 'prop-types'
import Header from '../../components/Header'
import 'styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header />
<div className='core-layout__viewport'>
{children}
</div>
</div>
)
... |
zhihu/src/js/zhihuReact2/index.js | fengnovo/webpack-react | import React from 'react'
import { render } from 'react-dom'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import App from './App'
import Detail from './Detail'
import Comment from './Comment'
var rootElement = document.getElementById('app')
render(
<Router>
<div>
<Rout... |
fields/types/date/DateColumn.js | stunjiturner/keystone | import React from 'react';
import moment from 'moment';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var DateColumn = React.createClass({
displayName: 'DateColumn',
propTypes: {
col: React.PropTypes.obj... |
packages/material-ui/src/Tabs/TabScrollButton.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';
import withStyles from '../styles/withStyles';
import ButtonBase from '.... |
examples/async/containers/Root.js | AVert/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
src/components/form/controls/combobox/FormsCombobox.js | TechyFatih/Nuzlog | import React from 'react';
import icons from 'img/icons';
import defaultIcon from 'img/defaultIcon.png';
import pokedex from 'data/pokedex';
import normalize from 'utilities/normalize';
import Combobox from './Combobox';
const getForms = pokemon => {
let forms = ['Normal'];
if (pokemon) {
const entry = pok... |
node_modules/react-bootstrap/es/SplitButton.js | lucketta/got-quote-generator | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/Portal.js | sthawali/react-overlays | import React from 'react';
import mountable from 'react-prop-types/lib/mountable';
import ownerDocument from './utils/ownerDocument';
import getContainer from './utils/getContainer';
/**
* The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy.
* You can think of i... |
src/containers/App/index.js | raptiq/fire-emblem-optimizer | import React, { Component } from 'react';
/* global styles for app */
import './styles/app.scss';
/* application components */
import { Header } from 'components/Header';
import { Footer } from 'components/Footer';
export class App extends Component {
static propTypes = {
children: React.PropTypes.any,
};
... |
ui/src/components/GatewayForm.js | jcampanell-cablelabs/lora-app-server | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Map, Marker, TileLayer } from 'react-leaflet';
import Select from "react-select";
import SessionStore from "../stores/SessionStore";
import LocationStore from "../stores/LocationStore";
import GatewayStore from "../stores/GatewayS... |
frontend/src/admin/branchManagement/memberView/MemberListTable.js | rabblerouser/core | import React from 'react';
import moment from 'moment';
import { connect } from 'react-redux';
import { EditButton, DeleteButton } from '../../common';
import { SortedTable } from '../../common/tables';
import { editMember, memberRemoveRequested } from './actions';
const columnsWithAddress = [
{ type: 'name', field... |
13. ReactJS Fundamentals - Feb 2019/03. Events and Forms/Fog-App/src/Games/GameGridList.js | zrusev/SoftwareUniversity2016 | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import GridList from '@material-ui/core/GridList';
import GridListTile from '@material-ui/core/GridListTile';
import GridListTileBar from '@material-ui/core/GridListTileBar';
import IconButton from '@ma... |
app/javascript/mastodon/components/button.js | corzntin/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
js/src/dapps/dappreg/ModalUpdate/modalUpdate.js | BSDStudios/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... |
modules/RouteContext.js | nottombrown/react-router | import React from 'react'
const { object } = React.PropTypes
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent transitions.
*/
const RouteContext = {
prop... |
dashboard/client/src/js/components/modules/ExperimentDetails.js | jigarjain/sieve | import React from 'react';
import Helpers from '../../utils/helpers';
export default function (props) {
const items = [
{
name: 'Experiment Id',
value: props.experiment.id
},
{
name: 'Version',
value: props.experiment.version
},
... |
src/svg-icons/image/looks.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks = (props) => (
<SvgIcon {...props}>
<path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1... |
views/pages/questsAll/questsAll.js | MozalovPavel/team5 | import React from 'react';
import ReactDOM from 'react-dom';
import Search from '../../blocks/Search/search';
ReactDOM.render(
<div>
<h2 className="page__title">Все квесты</h2>
<Search />
</div>,
document.getElementById('root')
);
|
src/components/Profile.js | vkarpov15/shidoshi | 'use strict';
import ArticleList from './ArticleList';
import React from 'react';
import { Link } from 'react-router';
import agent from '../agent';
import { connect } from 'react-redux';
const EditProfileSettings = props => {
if (props.isUser) {
return (
<Link
to="settings"
className="btn... |
src/layouts/index.js | sarahatwork/gatsby-poc | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import './reset.css';
const TemplateWrapper = ({children}) => (
<div>
<Helmet title="Gatsby POC" />
{children()}
</div>
);
TemplateWrapper.propTypes = {
children: PropTypes.... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-v3-text-button.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js';
import InputWrapper from './internal/input-wrapper.js';
import TextInput from './internal/text-input.js';
import TextInputMixin from './mixins/text-input-mixin.js'
import ItemList from './internal/item-list.js';
impo... |
src/pages/404.js | pixelstew/pixelstew-gatsby | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
test/checkbox-spec.js | izziaraffaele/material-ui | import React from 'react';
import Checkbox from 'checkbox';
import injectTheme from './fixtures/inject-theme';
import TestUtils from 'react-addons-test-utils';
describe('Checkbox', () => {
/* eslint-disable max-len */
const CHECKMARK_PATH = 'M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89... |
docs/server.js | bbc/react-bootstrap | /* eslint no-console: 0 */
import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development =... |
react/features/base/dialog/components/DialogContent.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Container, Text } from '../../react';
import { type StyleType } from '../../styles';
import styles from './styles';
type Props = {
/**
* Children of the component.
*/
children: string | React$Node,
style: ?StyleType
};
/**
* Gener... |
DateField/index.js | derniercri/react-components | import React from 'react'
import {
View,
DatePickerIOS,
Platform,
} from 'react-native'
import moment from 'moment'
import 'moment/locale/fr'
import DatePickerAndroid from './DatePickerAndroid'
moment.locale('fr')
const formatDateValue = rawDate => {
const dateValue = typeof rawDate === 'number'
? parseF... |
src/addons/dragAndDrop/DraggableEventWrapper.js | martynasj/react-big-calendar | import PropTypes from 'prop-types';
import React from 'react'
import { DragSource } from 'react-dnd';
import cn from 'classnames';
import BigCalendar from '../../index';
/* drag sources */
let eventSource = {
beginDrag(props) {
return props.event;
}
}
function collectSource(connect, monitor) {
return {
... |
src/index.js | peterjam28/ReduxSimpleStarter | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/app'
ReactDOM.render(<App />, document.querySelector('.container'))
|
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | zomeelee/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
docs/src/NotFoundPage.js | nickuraltsev/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const NotFoundPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="" />
<PageHeader
title="404"
subT... |
src/svg-icons/alert/add-alert.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertAddAlert = (props) => (
<SvgIcon {...props}>
<path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v... |
src/svg-icons/device/signal-cellular-0-bar.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar);
DeviceSignalCellular0Bar.displayN... |
src/js/components/Posts.js | slavapavlutin/pavlutin-node | import { chunk, reduce } from 'lodash';
import React from 'react';
import PostPreview from './PostPreview';
function Posts({ posts, tag }) {
if (posts.length === 0) {
return <p>No posts found.</p>;
}
return (
<section className="posts">
<ul className="nav-list">
{mapPostsToRows(posts, tag)}... |
assets/javascripts/kitten/karl/pages/news-list/index.js | KissKissBankBank/kitten | import React from 'react'
import NewsCard from './news-card'
import styled, { css } from 'styled-components'
import {
ArrowIcon,
ScreenConfig,
HorizontalStroke,
Title,
Paragraph,
Text,
Container,
Button,
InstrumentTagIcon,
pxToRem,
COLORS,
} from 'kitten'
const Head = styled.div`
background-col... |
src/components/icons/SmsIcon.js | austinknight/ui-components | import React from 'react';
const SmsIcon = props => (
<svg
{...props.size || { width: "24px", height: "24px" }}
{...props}
viewBox="0 0 24 24"
>
{props.title && <title>{props.title}</title>}
<defs>
<path
d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-... |
lib/component.js | AlmirKadric/hyperterm | import React from 'react';
import {StyleSheet, css} from 'aphrodite-simple';
import {shouldComponentUpdate} from 'react-addons-pure-render-mixin';
export default class Component extends React.Component {
constructor() {
super();
this.styles_ = this.createStyleSheet();
this.cssHelper = this.cssHelper.bin... |
docs/src/components/templates/dashboard/Menu.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import radium, {StyleRoot} from 'radium';
import {Route} from 'react-router-dom';
import Img from 'cat-components/lib/img';
import Link from 'cat-components/lib/link';
import * as style from './style/menu';
import pages from './../temp/dashb... |
node_modules/react-bootstrap/es/CarouselItem.js | NathanBWaters/jb_club | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
packages/material-ui-icons/src/LocationOn.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /></g>
, 'LocationOn');
|
app/components/HomePageComponents/index.js | rapicastillo/beautifulrising-client | /**
*
* HomePageComponents
*
*/
import React from 'react';
import styled from 'styled-components';
import { CommonLeftHeader } from 'components/CommonComponents';
import SmallSectionHeader from 'components/SmallSectionHeader';
function HomePageComponents() {
return (
<div>
</div>
);
}
HomePageComponents.... |
website/src/pages/index.js | scalapb/ScalaPB | import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';
const features = [
{
title: ... |
packages/material-ui-icons/tpl/SvgIcon.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '{{{ muiRequireStmt }}}';
let {{className}} = props =>
<SvgIcon {...props}>
{{{paths}}}
</SvgIcon>;
{{className}} = pure({{className}});
{{className}}.muiName = 'SvgIcon';
export default {{className}};
|
docs/app/Examples/elements/Loader/Variations/LoaderExampleInline.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Loader } from 'semantic-ui-react'
const LoaderExampleInline = () => (
<Loader active inline />
)
export default LoaderExampleInline
|
src/components/posts_show.js | richgurney/ReduxBlogBoilerPlate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPost, deletePost } from '../actions';
import MarkdownRenderer from 'react-markdown-renderer';
import Parser from 'html-react-parser';
import { Link } from 'react-router-dom';
import DateFormat from 'dateformat';
class PostsS... |
src/index.js | DarklyLabs/LaserWeb4 | import React from 'react'
import { render } from 'react-dom'
import { compose, applyMiddleware, createStore } from 'redux';
import { Provider } from 'react-redux';
import logger from 'redux-logger';
import persistState, {mergePersistedState} from 'redux-localstorage'
import adapter from 'redux-localstorage/lib/adapter... |
src/routes.js | idealgardens/codeword | import React from 'react' // eslint-disable-line
import { Route, IndexRoute, Router, browserHistory } from 'react-router'
import {
App,
Home,
Account,
Login,
Signup,
NotFound,
Locations,
Location
} from './containers'
export default (store) => (
<Router history={browserHistory} store... |
src/Mememe.js | amysimmons/mememe | import Instruction from './Instruction';
import Container from './Container';
import Share from './Share';
import React from 'react';
import request from 'superagent';
var Mememe = React.createClass({
getInitialState (){
var memesGenerated = false;
return{
memesGenerated: memesGenerated
};
},
... |
src/app/components/auth/groups/groupItem.js | rokbar/vivdchat | import React from 'react';
import { Link } from 'react-router';
import {
TableRow,
TableRowColumn
} from 'material-ui/Table';
import IconButton from 'material-ui/IconButton';
import AcceptIcon from 'material-ui/svg-icons/action/check-circle';
import CancelIcon from 'material-ui/svg-icons/navigation/cancel';
import ... |
src/common/components/Landing.js | ThinkingInReact/ThinkingInReact | import React, { Component } from 'react';
class Landing extends Component {
render() {
return (
<div className="Landing">
You have reached the top secret landing page!
</div>
);
}
}
export default Landing;
|
src/Main/SelectorBase.js | enragednuke/WoWAnalyzer | import React from 'react';
import ReactTooltip from 'react-tooltip';
class SelectorBase extends React.PureComponent {
static propTypes = {
};
constructor(props) {
super(props);
this.state = {
show: false,
};
this.handleClick = this.handleClick.bind(this);
this.handleDocumentClick = thi... |
src/js/client/app.js | juancjara/bettson-notifier-chrome-extension | import React from 'react';
import Main from './Main.jsx';
import db from '../background/db';
React.render(<Main />,
document.getElementById('app'));
|
src/components/DesignerProjects.js | computer-lab/salon94design.com | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import styled from 'emotion/react'
import cx from 'classnames'
import {
sansfont,
baseUl,
childLink,
Header2,
Header3,
SimpleLinkList,
SimpleLinkListItem,
SimpleLinkListSection,
} from '../layouts/emotion-base'
i... |
SQL/client/src/components/dumb/FormBlock/index.js | thebillkidy/MERGE-Stack | import React from 'react';
import Input from '../Input';
import Button from '../Button';
import Radio from '../Radio';
import Label from '../Label';
// import './FormBlock.css';
export default class FormBlock extends React.Component {
static propTypes = {
isHideLabel: React.PropTypes.bool
}
getElement() {
... |
js/components/addItem/index.js | bsusta/NativeBase-KitchenSink |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Input, Picker, Item, Footer, FooterTab, Container, Header, Title, Content, Button, Icon, Text, Left, Right, Body, List, ListItem, View } from 'native-base';
import ... |
common/components/ide/panels/TestAuthoringPanel.js | ebertmi/webbox | import React from 'react';
import Editor from '../../Editor';
import optionManager from '../../../models/options';
import { Button } from '../../bootstrap';
export default class TestAuthoringPanel extends React.Component {
constructor(props) {
super(props);
this.onChangeOption = this.onChangeOption.bind(thi... |
src/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z"/>
</SvgIcon>
);
DeviceSignalCellularC... |
dapp/src/shared/dao/token/components/main.js | airalab/DAO-IPCI | import React from 'react'
import { Link } from 'react-router'
import { translate } from 'react-i18next'
import { Layout } from '../../main/components'
import Form from '../containers/formFunc'
const Main = (props) => {
const { address, name, totalSupply, balance, t } = props
const menu = (<div className="btn-group... |
app/javascript/mastodon/features/ui/components/embed_modal.js | cobodo/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... |
7.2.1/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e... |
client/views/omnichannel/appearance/AppearanceForm.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import AppearanceForm from './AppearanceForm';
export default {
title: 'omnichannel/AppearanceForm',
component: AppearanceForm,
};
export const Default = () => <AppearanceForm />;
|
src/components/Header/Header.js | neilhighley/maybeconsulting | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
client/components/Nav/MobileDrawer.js | ncrmro/ango | import React from 'react'
import Navigation from 'react-mdc-web/lib/Drawer/Navigation'
import Drawer from 'react-mdc-web/lib/Drawer/Drawer'
import DrawerHeader from 'react-mdc-web/lib/Drawer/DrawerHeader'
import DrawerHeaderContent from 'react-mdc-web/lib/Drawer/DrawerHeaderContent'
import DrawerContent from 'react-mdc... |
src/HelpDialog.js | BenjaminCosman/alchemistsSolver | import React from 'react'
import Modal from 'antd/lib/modal'
function showHelpDialog() {
Modal.info({
title: 'Usage',
content: <>
<h3>Overview</h3>
<br/>
This app takes in things you learn during the game (primarily
experimental results), and helps you figure out what to publish, what... |
src/main.js | slaweet/lisk-nano | import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter as Router } from 'react-router-dom';
import { Provider } from 'react-redux';
import { I18nextProvider } from 'react-i18next';
import App from './components/app';
// import history from './history';
import store from './store';
import i18n ... |
pages/blog/test-article-two.js | al6mina/jsCom | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Test Article 2</h1>
<p>Co... |
src/components/Home/PortfolioPreview.js | franciskim722/crypy | import React from 'react';
import PropTypes from 'prop-types';
import { VictoryPie } from 'victory';
export default class PortfolioPreview extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
};
}
render(){
const {balanceData} = this.props;
return... |
src/components/stepTwo/StepTwoForm.spec.js | oraclesorg/ico-wizard | import React from 'react'
import { Form } from 'react-final-form'
import { StepTwoForm } from './StepTwoForm'
import Adapter from 'enzyme-adapter-react-15'
import { configure, mount } from 'enzyme'
configure({ adapter: new Adapter() })
jest.mock('react-dropzone', () => () =><span>Dropzone</span>);
describe('StepTwoFo... |
src/routes/request/index.js | 102010cncger/antd-admin | import React from 'react'
import Mock from 'mockjs'
import { request, config } from 'utils'
import {
Row,
Col,
Card,
Select,
Input,
Button,
} from 'antd'
import styles from './index.less'
const { api } = config
const { dashboard, users, userLogin, user, v1test, v2test } = api
const requestOptions = [
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.