path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/javascript/mastodon/features/ui/components/column.js | cybrespace/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
assets/jqwidgets/jqwidgets-react/react_jqxeditor.js | juannelisalde/holter | /*
jQWidgets v4.5.4 (2017-June)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export default class JqxEditor extends React.Component {
componentDidMount() {
let options = this.manageAttributes();
this.createC... |
js/components/list/list-headers.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text, Left, Right, Body } from 'native-base';
import { Actions } from 'react-native-router-flux';
... |
site/components/Cover.js | pairyo/react-dnd | import React from 'react';
import './Cover.less';
export default class Cover {
render() {
return (
<div className="Cover">
<div className="Cover-header">
<p className="Cover-description">
Drag and Drop for React
</p>
</div>
</div>
);
}
} |
app/js/components/ItemBasket.js | silviopaganini/jspm-react-express-proto | "use strict"
import React from 'react'
export default class ItemBasket extends React.Component
{
render(){
return (
<li>
<h4>{this.props.data.name} <span class="product-id">{this.props.data.id}</span></h4>
<h5><span class="currency">{this.props.data.currency} </span>{this.props.data.price}... |
src/components/flows/thirdPillar/ThirdPillarFlow.js | TulevaEE/onboarding-client | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ThirdPillarSetup from './ThirdPillarSetup';
import ThirdPillarSelectSources from './ThirdPillarSelectSources';
import AddressStep from '../common/AddressStep';
import ConfirmThirdPillarMandate from './ConfirmThirdPillarMandate';
import Th... |
src/js/components/SearchBox.js | pazguille/react-meli | /**
* Module dependencies
*/
import React from 'react';
/**
* SearchBox
*/
class SearchBox extends React.Component {
constructor(props) {
super(props);
this.state = { query: this.props.query || '' };
this.handleSubmit = this.handleSubmit.bind(this);
this.handleChange = this.handleChange.bind(this... |
example/containers/ItemDetails.js | idolize/redux-react-router-transitions | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import itemActions from '../actions/Items';
import routingActions from '../actions/Routing';
const mapStateToProps = ({ items: { items } }, props) => {
const foundItems = items.filter((item) => {
// con... |
src/pages/index.js | EvanHammond/EvanHammond.github.io | import React from 'react'
import { graphql } from 'gatsby'
import { css } from '@emotion/core'
import Layout from '../components/Layout'
import Link from '../components/Link'
import Container from 'components/Container'
import { bpMaxSM, bpMaxMD } from '../lib/breakpoints'
import SubscribeForm from '../components/Subsc... |
src/components/PlannerEmptyState/index.js | instructure/canvas-planner | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
app/views/Team/Team.js | lishengzxc/random | import styles from './Team.scss';
import React from 'react';
var Team = React.createClass({
render: function () {
return (
<h1>123</h1>
);
}
});
export default Team; |
plugins/Terminal/js/components/seedprompt.js | NebulousLabs/Sia-UI | import React from 'react'
import { httpCommand } from '../utils/helpers.js'
import querystring from 'querystring'
export default class WalletSeedPrompt extends React.Component {
componentDidUpdate () {
// Give DOM time to register the update.
if (this.props.showSeedPrompt) {
this._seedPasswd.focus()
... |
src/forms/output/Summary.js | knod/cliff-effects-1 | /** @module */
// REACT COMPONENTS
import React from 'react';
import {
Header,
Button,
} from 'semantic-ui-react';
// DATA
// Colors and text for parts of the chart
import { BENEFIT_CHART_VALUES } from './BENEFIT_CHART_VALUES';
// DATA MANIPULATION
import { cloneDeep } from 'lodash';
import { toMoneyStr } from '... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | lojack/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize... |
examples/counter/containers/CounterApp.js | ngokevin/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
admin/src/views/signin.js | ligson/keystone | import classnames from 'classnames';
import React from 'react';
import SessionStore from '../stores/SessionStore';
import { Alert, Button, Form, FormField, FormInput, Spinner } from 'elemental';
import { createHistory } from 'history';
var history = createHistory();
function wasSignedOut() {
return window.location.s... |
es/Card/CardContent.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
plugins/react/formEnvironment/src/index.js | pure-ui/styleguide | import React from 'react';
import ReactDOM from 'react-dom';
import CarteBlancheInput from '../../frontend/components/form/CarteBlancheInput';
import Grid from '../../frontend/components/form/Grid';
import Row from '../../frontend/components/form/Grid/Row';
import LeftColumn from '../../frontend/components/form/Grid/L... |
Beatbox_app/src/containers/DevToolsWindow.js | whiletrace/beatbox | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
export default createDevTools(
<LogMonitor />
)
|
src/components/NotFoundPage.js | oh-my-github/registry | import React from 'react'
import { Link, } from 'react-router'
export default class NotFoundPage extends React.Component {
render() {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
)
}
}
|
docs/app/Examples/collections/Table/Variations/TableExampleSelectableInvertedRow.js | shengnian/shengnian-ui-react | import React from 'react'
import { Table } from 'shengnian-ui-react'
const TableExampleSelectableInvertedRow = () => (
<Table celled inverted selectable>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCel... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/Header.js | Brandon-J-Campbell/codemash | import React from 'react';
import classNames from 'classnames';
import theme from './theme/static';
import ThemeSwitcher from './theme/Switcher';
import styles from './Header.css';
export default function Header() {
return (
<header className={classNames(styles.appHeader, styles[theme])}>
<h1 className={... |
src/Layout.js | CommunityRipple/RippleEffect | import React from 'react';
import {Grid as Container, Image} from 'react-bootstrap';
import {Div} from 'react-tag';
export default function Layout({children}) {
const ground = require('../img/ground.png');
const left = require('../img/cloud-left.png');
const right = require('../img/cloud-right.png');
... |
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js | iest/react-router | import React from 'react';
import { Link } from 'react-router';
class Sidebar extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{assignments.map(assignment => (
... |
local-cli/templates/HelloWorld/index.android.js | callstack-io/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class HelloWorld extends Component {
render() {
return (
<View style={styles.containe... |
js/components/taskEdit/index.js | bsusta/NativeBase-KitchenSink |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Tab, Tabs, Footer, FooterTab, Container, Header, Title, Content, Button, Icon, Text, Left, Right, Body, List, ListItem, View } from 'native-base';
import { Actions ... |
app/src/stories/components/Spinner.stories.js | sproogen/itsgoingto.be | import React from 'react'
import Spinner from 'components/spinner'
export default {
title: 'Components/Spinner',
component: Spinner
}
export const Default = () => <Spinner />
|
server/sonar-web/src/main/js/apps/settings/components/SubCategoryDefinitionsList.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/routes/Project/components/ProjectPage/Project.js | prescottprue/portfolio | import React from 'react'
import { Link } from 'react-router'
import { find } from 'lodash'
import IconButton from 'material-ui/IconButton'
import Paper from 'material-ui/Paper'
import Technologies from '../Technologies'
import Team from '../Team'
import RaisedButton from 'material-ui/RaisedButton'
import ImageGallery ... |
src/shared-components/SceneGrid.js | olslash/buyme | // ********
// TODO:
// refactor to remove stuff from render
// ********
import { map, takeWhile, drop, range, sum, get, reduce } from 'lodash';
import React from 'react';
import shouldPureComponentUpdate from 'react-pure-render/function';
// import { scan } from 'helpers/fp';
import { PropTypes } from 'helpers/rea... |
src/main.js | GarciaEdgar/firstReactApplication | /**
* App entry point
*/
// Polyfill
import 'babel-polyfill';
// Libraries
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
// Routes
import Routes from './common/components/Routes';
// Base styling
import './common/base.css';
// ID of the DOM e... |
src/components/assets/SVGComponents.js | ello/webapp | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
export const SVGComponent = ({ children, ...rest }) =>
(<svg {...rest}>
{children}
</svg>)
SVGComponent.propTypes = {
children: PropTypes.node.isRequired,
}
export const SVGIcon = ({ children, className, onClick... |
src/client.js | simonedesordi/configuration-ms-ui | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import createStore from './redux/create';
import ApiClient from '.... |
tests/files/src/client/index.js | dai-shi/express-react-redux | /* eslint-env browser */
import React from 'react';
import { render } from 'react-dom';
import App from './App';
render(React.createElement(App), document.getElementById('app'));
|
client/init.js | shivg/HireOrbit | import React from 'react';
import ReactDOM from 'react-dom';
import Search from './components/Search';
import Routes from './components/Routes';
ReactDOM.render(
<Routes />,
document.getElementById('app'));
|
src/components/Preview/Preview.js | enemijs1/cakeShop | import React, { Component } from 'react';
class BuildType extends Component {
constructor(props) {
super();
}
render() {
return(
<img src={this.props.src} />
);
}
}
export default BuildType
|
code/workspaces/web-app/src/components/common/buttons/PrimaryActionButton.js | NERC-CEH/datalab | import React from 'react';
import Button from '@material-ui/core/Button';
const PrimaryActionButton = ({ children, ...rest }) => (
<Button
{...rest}
variant="outlined"
color="primary"
>
{children}
</Button>
);
export default PrimaryActionButton;
|
lib/github-package.js | atom/github | import {CompositeDisposable, Disposable} from 'event-kit';
import path from 'path';
import fs from 'fs-extra';
import React from 'react';
import ReactDom from 'react-dom';
import {fileExists, autobind} from './helpers';
import WorkdirCache from './models/workdir-cache';
import WorkdirContext from './models/workdir-c... |
WasteApp/js/components/form/index.js | airien/workbits |
import React, { Component } from 'react';
import { TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, List, ListItem, InputGroup, Input, Picker, Text, Thumbnail } from 'native-base';
import { openDrawer } from '../../actions/drawer'... |
components/Navigation/Navigation.js | rpowis/pusscat.lol | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
import './Navigation.scss';
import Link from '../Link';
export default class extends Component {
render() {
return (
... |
react-router-nb/react-router/examples/master-detail/app.js | zhangfaliang/learnReact | import React from 'react'
import { render, findDOMNode } from 'react-dom'
import { browserHistory, Router, Route, IndexRoute, Link, withRouter } from 'react-router'
import withExampleBasename from '../withExampleBasename'
import ContactStore from './ContactStore'
import './app.css'
const App = React.createClass({
... |
test/integration/scss-fixtures/multi-global-reversed/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global2.scss'
import '../styles/global1.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
commons/components/user/UserTermsKo.js | goominc/goommerce-react | // Copyright (C) 2016 Goom Inc. All rights reserved.
import React from 'react';
export default React.createClass({
render() {
return (
<div>
<div>
{ /*<div id="title_area">
<h2 className="title">
회원약관
</h2>
</div> */ }
{/* 편(par... |
example/examples/CachedMap.js | zigbang/react-native-maps | import React from 'react';
import {
Text,
View,
Dimensions,
StyleSheet,
ListView,
TouchableOpacity,
} from 'react-native';
import MapView, { ProviderPropType, Marker } from 'react-native-maps';
import flagImg from './assets/flag-blue.png';
const HORIZONTAL_PADDING = 12;
const VERTICAL_PADDING = 6;
class ... |
test/integration/scss-fixtures/url-global/pages/_app.js | flybayer/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
|
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Dialog/ExampleCustomWidth.js | pbogdan/react-flux-mui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
const customContentStyle = {
width: '100%',
maxWidth: 'none',
};
/**
* The dialog width has been set to occupy the full width of browser throug... |
admin/client/App/components/Navigation/Mobile/SectionItem.js | Yaska/keystone | /**
* A mobile section
*/
import React from 'react';
import MobileListItem from './ListItem';
import { Link } from 'react-router';
const MobileSectionItem = React.createClass({
displayName: 'MobileSectionItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
curren... |
docs/src/components/Main.js | mattBlackDesign/react-materialize | import React from 'react';
import { Route } from 'react-router-dom';
import routesConfig from '../routes';
const renderRoute = (route) => <Route key={route.path} {...route} />;
const getPageTitle = () => window.location.hash.substring(2) || 'React Materialize';
const capitalize = path => path[0] ? path[0].toUpperCase... |
docs/src/examples/elements/Button/States/ButtonExampleActive.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleActive = () => <Button active>Active</Button>
export default ButtonExampleActive
|
assets/javascripts/kitten/components/form/input/autocomplete/stories.js | KissKissBankBank/kitten | import React from 'react'
import { Autocomplete } from './index'
import { Field, LocationIcon } from 'kitten'
import { DocsPage } from 'storybook/docs-page'
const items = [
'Abyssinian',
'Aegean',
'American Bobtail',
'American Curl',
'American Shorthair',
'American Wirehair',
'Aphrodite Giant',
'Arabia... |
frontend/src/components/users/active-posters/list-item-preview.js | 1905410/Misago | import React from 'react';
import Avatar from 'misago/components/avatar'; // jshint ignore:line
import * as random from 'misago/utils/random'; // jshint ignore:line
export default class extends React.Component {
shouldComponentUpdate() {
return false;
}
getClassName() {
if (this.props.hiddenOnMobile) {
... |
docs/snippets/plugin-using-multiple.js | zapier/formatic | //CUT
import React from 'react';
import Formatic from 'formatic';
const fields = [];
const pluginA = () => ({});
const pluginB = () => ({});
const pluginC = () => ({});
//CUT
const config = Formatic.createConfig(pluginA, pluginB, pluginC);
React.render(<Formatic config={config} fields={fields} />, document.body);
|
src/containers/Home/Home.js | DenisPostu/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
const logoImage = ... |
examples/samples/basic.js | rajkissu/react-native-swiper | import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import Swiper from '../swiper.dist'
const styles = StyleSheet.create({
wrapper: {
},
slide1: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#9DD6EB'
},
slide2: {
flex: 1,
ju... |
docs/src/app/components/pages/discover-more/RelatedProjects.js | ruifortes/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import relatedProjectsText from './related-projects.md';
const RelatedProjects = () => (
<div>
<Title render={(previousTitle) => `Related Projects - ${previousTitle}`} />
<MarkdownEleme... |
ui/src/components/SampleView/ContextMenu.js | mxcube/mxcube3 | import React from 'react';
import { Dropdown } from 'react-bootstrap';
export default class ContextMenu extends React.Component {
constructor(props) {
super(props);
this.toggleDrawGrid = this.toggleDrawGrid.bind(this);
this.menuOptions = this.menuOptions.bind(this);
}
componentWillReceiveProps(nextP... |
client2/src/components/react-burger-menu/test/utils/createShallowComponent.js | frolicking-ampersand/CodeOut | import React from 'react';
import TestUtils from 'react-addons-test-utils';
export default createComponent;
function createComponent(jsx) {
const shallowRenderer = TestUtils.createRenderer();
shallowRenderer.render(jsx);
return shallowRenderer.getRenderOutput();
}
|
src/index.js | andreaValenzi/react-native-swiper | /**
* react-native-swiper
* @author leecade<leecade@163.com>
*/
import React from 'react'
import ReactNative, {
StyleSheet,
Text,
View,
ScrollView,
Dimensions,
TouchableOpacity,
ViewPagerAndroid,
Platform,
ActivityIndicator
} from 'react-native'
// Using bare setTimeout, setInterval, setImmediate
... |
src/nav/navbarInstance.js | jkahrs595/website | import React from 'react';
import {Navbar, Nav, NavItem} from 'react-bootstrap';
export class NavbarInstance extends React.Component {
render(){
return(
<Navbar inverse>
<Navbar.Header>
<Navbar.Brand>
<a href="#">Justin Kahrs</a>
</Navbar.Brand>
<Navbar.Toggle />
</Navbar.... |
src/svg-icons/action/thumbs-up-down.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbsUpDown = (props) => (
<SvgIcon {...props}>
<path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1... |
packages/mui-codemod/src/v5.0.0/jss-to-styled.test/sixth.expected.js | oliviertassinari/material-ui | import React from 'react';
import { styled } from '@mui/material/styles';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import IconButton from '@material-ui/core/IconButton';
import Badge from '@material-ui/core/Badge';
import { connect } from 'react-redux';
import ShoppingCartIcon from '@material-ui/ico... |
src/demo/index.js | edulan/react-virtual-kanban | import React from 'react';
import ReactDOM from 'react-dom';
import Perf from 'react-addons-perf';
import '../../lib/styles.css';
import { generateLists } from './utils/generateLists';
import App from './App';
window.Perf = Perf;
function getLists() {
const lists = window.localStorage.getItem('lists');
return... |
RNLearning/z-day04-Estore/Home/IMMainMiddleView03.js | ivanl001/ReactNative-Learning | /**
* Created by feng on 16/12/12.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
ListView,
Image,
TouchableOpacity,
Alert,
} from 'react-native';
var IMWindow = require('Dimensions').get('window');
var IMCell = require("..... |
internals/templates/containers/LanguageProvider/index.js | vinhtran19950804/procure_react | /*
*
* 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 PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
docs/src/app/components/pages/get-started/ServerRendering.js | hai-cea/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import serverRenderingText from './server-rendering.md';
const ServerRendering = () => (
<div>
<Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} />
<MarkdownElemen... |
src/svg-icons/communication/chat.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChat = (props) => (
<SvgIcon {...props}>
<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-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/>
</SvgIcon>
);
Communicatio... |
node_modules/@material-ui/core/esm/Radio/Radio.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 SwitchBase from '../internal/SwitchBase';
import RadioButtonIcon from './RadioButto... |
src/ui/elements/svg/Contact.js | gouxlord/dev-insight | import React from 'react'
var Logo = React.createClass({
render: function () {
return (
<svg className={this.props.className} viewBox="0 0 234.05 300" preserveAspectRatio="xMinYMin meet">
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="8.9395" y1="191.542" x2="219.657" y2="129.... |
src/components/Dialog.js | tuckerconnelly/carbon-ui | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { View, Animated, TouchableWithoutFeedback, Platform } from 'react-native'
import { animate } from 'uranium'
import { Title, Animations, Colors, Elevation, gu } from '../index'
/**
* Dialogs inform users about a specific task and may ... |
src/svg-icons/action/settings-bluetooth.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.... |
src/library/Grid/GridItem.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { GridItemRoot as Root } from './styled';
import { gridItemPropTypes } from './propTypes';
import type { GridItemProps } from './types';
const GridItem = (props: GridItemProps) => <Root {...props} />;
GridItem.displayName = 'GridItem';
GridItem.propTypes = gridItemPropTy... |
src/pages/css-grid/index.js | MozillaDevelopers/playground | import React from 'react';
import Main from './components/_Main';
// components
import Term from '../../components/Term';
import VideoPlayer from '../../components/VideoPlayer';
// images
import line from '../../components/img/terms/line.svg';
import cell from '../../components/img/terms/cell.svg';
import area from '... |
src/icons/Images.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Images extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<g>
<path d="M457.6,140.2l-82.5-4l-4.8-53.8c-1-11.3-11.1-19.2-22.9-18.3L51.4,88.4c-11.8,1-20.3,10.5-19.4,21.7l21.2,235.8
... |
src/svg-icons/action/eject.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEject = (props) => (
<SvgIcon {...props}>
<path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/>
</SvgIcon>
);
ActionEject = pure(ActionEject);
ActionEject.displayName = 'ActionEject';
ActionEject.muiName = 'Svg... |
dispatch/static/manager/src/js/components/ArticleEditor/ArticleContentEditor.js | ubyssey/dispatch | import React from 'react'
import Headline from '../Editor/Headline'
import {
Editor,
ImageEmbed,
VideoEmbed,
PullQuoteEmbed,
GalleryEmbed,
CodeEmbed,
WidgetEmbed,
PollEmbed,
PodcastEmbed,
InteractiveMapEmbed,
PageBreakEmbed,
DropCapEmbed
} from '../../vendor/dispatch-editor'
const embeds = [
... |
webpack/web2/src/app.js | lijiliang/record | import React from 'react'
import ReactDom from 'react-dom';
import 'font-awesome/css/font-awesome.css'
ReactDom.render(
<div>
react dev
<img src={require('../src/common/img/41.jpg')} />
<i className="fa fa-cloud-upload"></i>
</div>,
document.getElementById('root')
) |
docs/src/app/components/pages/components/Dialog/ExampleSimple.js | frnk94/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Dialog with action buttons. The actions are passed in as an array of React objects,
* in this example [FlatButtons](/#/components/flat-button... |
docs/app/Examples/elements/Icon/Groups/IconExampleLoadingGroup.js | shengnian/shengnian-ui-react | import React from 'react'
import { Icon } from 'shengnian-ui-react'
const IconExampleLoadingGroup = () => (
<div>
<Icon.Group size='huge'>
<Icon size='big' color='red' name='dont' />
<Icon color='black' name='user' />
</Icon.Group>
<Icon.Group size='huge'>
<Icon loading size='big' name=... |
admin/client/App/screens/List/components/ListControl.js | andrewlinfoot/keystone | import React from 'react';
import classnames from 'classnames';
var ListControl = React.createClass({
propTypes: {
dragSource: React.PropTypes.func,
onClick: React.PropTypes.func,
type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired,
},
renderControl () {
var icon = 'octicon octicon-';
... |
src/interface/icons/Armor.js | FaideWW/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/armor/52022/
// armor by Jetro Cabau Quirós from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="10 10 80 80" {...other}>
<path d="M75.25,23C65.75,19.75,59,26.5,59,26.5S56.75,35,50,35s-8.5-8.5-8.5-8.5... |
actor-apps/app-web/src/app/components/Login.react.js | lstNull/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
src/svg-icons/maps/my-location.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsMyLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1... |
node_modules/react-bootstrap/es/Modal.js | skinsshark/skinsshark.github.io | 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... |
docs/components/Toolbar/Toolbar.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import {Toolbar, ToolbarRow, ToolbarSection, ToolbarTitle} from '../../../src/Toolbar';
import { colors, activeColors } from 'utils/colors'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
... |
storybook/stories/button.story.js | Toootim/mastodon | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Button from 'mastodon/components/button';
storiesOf('Button', module)
.add('default state', () => (
<Button text='submit' onClick={action('clicked')} />
))
.add('secondary', () =... |
src/components/posts_show.js | BlakeRedwolf/reduxblog | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPost, deletePost } from '../actions';
class PostsShow extends Component {
componentDidMount() {
const { id } = this.props.match.params;
this.props.fetchPost(id);
}
onD... |
source/views/settings/sections/login-carleton.js | carls-app/carls | // @flow
import React from 'react'
import {Section} from 'react-native-tableview-simple'
import type {TopLevelViewPropsType} from '../../types'
import {LoginButton} from '../components/login-button'
import {
logInViaToken,
logOutViaToken,
type LoginStateType,
} from '../../../flux/parts/settings'
import {type ReduxS... |
src/svg-icons/editor/vertical-align-bottom.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignBottom = (props) => (
<SvgIcon {...props}>
<path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/>
</SvgIcon>
);
EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom);
EditorVertical... |
src/client/components/console/transcripts/chatList.js | uuchat/uuchat | import React, { Component } from 'react';
import Tips from '../../common/tips';
import ChatMessageItem from '../../message/chatMessageItem';
import { fetchAsync } from '../common/utils';
export default class ChatList extends Component {
state = {
dataSource: []
};
getDataSource = async (cid, csid... |
src/utils.js | ianbjorndilling/react-typewriter | import React from 'react';
// Enclosing scope for local state variables.
export var styleComponentSubstring = (() => {
let _start,
_end,
_styles,
_index;
// Will deep clone the component tree, wrapping any text within
// the start/end with a styled span.
function alterComponent(component) {... |
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js | IsenrichO/mui-with-arrows | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
slide: {
... |
docs/src/example.js | ricsv/react-leonardo-ui | import React, { Component } from 'react';
class Example extends Component {
componentDidMount() {
if (this.codeElem && window.hljs) {
hljs.highlightBlock(this.codeElem); // eslint-disable-line no-undef
}
}
componentDidUpdate() {
if (this.codeElem && window.hljs) {
hljs.highlightBlock(thi... |
src/routes.js | kayluhb/tbmaga | import IndexRoute from 'react-router/lib/IndexRoute';
import React from 'react';
import Route from 'react-router/lib/Route';
import {
About,
App,
Contact,
NotFound,
Place,
} from './containers';
export default function routes() {
return (
<Route component={App} path="/">
<IndexRoute ... |
src/App.js | Abrax20/snap-react | import React, { Component } from 'react';
import AppContainer from './containers/AppContainer';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, combineReducers, compose} from 'redux';
import thunkMiddleware from 'redux-thunk';
import { createLogger } from 'redux-logger';
import reducer fr... |
Libraries/Components/Keyboard/Keyboard.js | salanki/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/components/input-group/InputGroupAppend.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import BaseView from '../../utils/rnw-compat/BaseView';
const propTypes = {
children: PropTypes.node.isRequired,
};
const InputGroupAppend = React.forwardRef((props, ref) => (
<BaseView
{...props}
ref={ref}
essentials={{ className: 'input-... |
src/svg-icons/hardware/sim-card.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSimCard = (props) => (
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0... |
src/components/app.js | dassaptorshi/ReactStarter | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>React simple starter</div>
);
}
}
|
packages/reactor-kitchensink/src/examples/DragAndDrop/Files/Files.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel } from '@extjs/ext-react';
import './styles.css';
Ext.require(['Ext.drag.*']);
const DEFAULT_TEXT = 'Drag a file from your computer here';
export default class Files extends Component {
state = {
iconCls: 'drag-file-icon',
labelText: DEFAU... |
assets/app/components/Utils/ErrorMessage/index.js | chernyshof/react-phoenix-users-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import NotificationSystem from 'react-notification-system';
export class ErrorMessage extends Component {
constructor(props) {
super(props);
this.notificationSystem = null;
}
componentDi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.