path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
react/Footer/components/FooterLinks/FooterLinks.js | seekinternational/seek-asia-style-guide | import React from 'react';
import PropTypes from 'prop-types';
import styles from './FooterLinks.less';
const FooterLinks = ({ messages }) => {
return (
<ul className={styles.list}>
<li className={styles.itemMobile}>
<a className={styles.link} href={messages['footer.legalLink']} rel="nofollow">
... |
test/e2e/prerender/pages/blocking-fallback-some/[slug].js | JeromeFitz/next.js | import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
export async function getStaticPaths() {
return {
paths: [{ params: { slug: 'a' } }, { params: { slug: 'b' } }],
fallback: 'blocking',
}
}
export async function getStaticProps({ params }) {
await new Promise((... |
src/components/WRD.js | RicardoG2016/WRFD-project-site | import React, { Component } from 'react';
import '../App.css';
class WRD extends Component {
componentDidMount(){
window.scrollTo(0, 0);
}
render() {
return (
<div id="about">
<div className="row">
<div className="col-md-6 col-2 bg-inverse text-white py-2 d-flex align-items-cent... |
packages/react-ui-components/src/IconButtonDropDown/index.story.js | dimaip/neos-ui | import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import {withKnobs, text} from '@kadira/storybook-addon-knobs';
import {StoryWrapper} from './../_lib/storyUtils.js';
import IconButtonDropDown from './index.js';
import Icon from './../Icon/index.js';
storiesOf('IconButtonDropDown', module... |
client/util/render-routes.js | willopez/domainsjs | import createHistory from 'history/lib/createBrowserHistory';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { reduxReactRouter, ReduxRouter } from 'redux-router';
import configureStore from '../../shared/util/configure-store';
export default function ren... |
tests/layout.js | goto-bus-stop/bulmare | import React from 'react'
import test from 'tape'
import { shallow, render } from 'enzyme'
import { Container, Header, Hero, Section, Footer } from '../src'
test('Containers should have class "container"', (t) => {
t.ok(shallow(<Container />).hasClass('container'))
t.end()
})
test('Containers should render their ... |
src/Welcome/index.js | techmsi/mental-health-app | // Stateless Component: Welcome Page
import React from 'react';
import { Header } from 'styles/Layout';
import {
WelcomeShell,
WelcomeText,
WelcomeButton
} from 'Welcome/ui/styles-Welcome';
const Welcome = props => (
<WelcomeShell className='introduction'>
<Header>
<h1>Paitent Health Questionnaire (... |
src/pages/second.ios.js | fmsouza/rn-seed-tabs | import React from 'react';
import { View, Text } from 'react-native';
import { CardView, Header, Icon } from '../common';
const Style = {
card: {
padding: 10
},
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
welcome: {
fontSize: 20,
... |
src/assets/js/react/django.js | jscott1989/happening | import React from 'react';
import Cookies from 'js-cookie';
export const DjangoCSRFToken = React.createClass({
render: function() {
const csrftoken = Cookies.get('csrftoken');
return React.DOM.input(
{type:"hidden", name:"csrfmiddlewaretoken", value:csrftoken}
);
}
});
|
consoles/my-joy-templates/src/components/list.js | yldio/joyent-portal | import React from 'react';
import distanceInWordsToNow from 'date-fns/distance_in_words_to_now';
import styled from 'styled-components';
import { Row, Col } from 'joyent-react-styled-flexboxgrid';
import Flex, { FlexItem } from 'styled-flex-component';
import { Margin, Padding } from 'styled-components-spacing';
import... |
src/components/editor/FileTree.js | umiushi/umiushi | import classNames from 'classnames'
import React from 'react'
import { connect } from 'react-redux'
import * as editorActions from '../../actions/editor'
class FileTree extends React.Component {
constructor() {
super()
}
makeNodes(arborescence, depth=0) {
let nodes = []
const in... |
frontend/src/Settings/Notifications/Notifications/AddNotificationPresetMenuItem.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import MenuItem from 'Components/Menu/MenuItem';
class AddNotificationPresetMenuItem extends Component {
//
// Listeners
onPress = () => {
const {
name,
implementation
} = this.props;
this.props.onPress({
... |
client/components/avatar/AppAvatar.js | VoiSmart/Rocket.Chat | import { Box } from '@rocket.chat/fuselage';
import React from 'react';
import BaseAvatar from './BaseAvatar';
export default function AppAvatar({ iconFileContent, size, iconFileData, ...props }) {
return (
<Box {...props}>
<BaseAvatar
size={size}
objectFit
url={iconFileContent || `data:image/png;ba... |
src/components/icons/Twitter.js | dtjv/dtjv.github.io | import React from 'react'
export const TwitterIcon = ({ className, ...props }) => (
<svg
{...props}
className={`text-twitter ${className}`}
role="img"
fill="currentColor"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<title>Twitter</title>
<path ... |
src/containers/search-results.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { searchPetitions } from '../actions/petitionActions'
import SearchResultsComponent from 'LegacyTheme/search-results'
class SearchResults extends React.Component {
componentDidMount() {
// guarding for a co... |
src/App.js | rachelylim/rachelylim.github.io | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/... |
packages/ui-toolkit/src/styleguide/playground.js | geek/joyent-portal | import React, { Component } from 'react';
import styled from 'styled-components';
import is from 'styled-is';
import remcalc from 'remcalc';
const Wrapper = styled.section`
margin-top: ${remcalc(24)};
margin-bottom: ${remcalc(46)};
`;
const Tabs = styled.ul`
list-style: none;
display: flex;
padding: 0;
al... |
app/javascript/flavours/glitch/components/intersection_observer_article.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import scheduleIdleTask from 'flavours/glitch/util/schedule_idle_task';
import getRectFromEntry from 'flavours/glitch/util/get_rect_from_entry';
// Diff these props in the "unrendered" state
const updateOnPropsForUnrendered = ['id', 'index', 'listLength', ... |
src/svg-icons/hardware/keyboard-hide.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardHide = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H... |
src/components/leaderboard.js | orouvinen/mytype-frontend | import React from 'react';
import * as layout from '../three-columns';
import { layoutWrapper } from '../layout-wrapper';
import LinksPanel from '../containers/links-panel-container';
const leaderBoardTableStyle = {
width: "85%",
margin: "10px auto",
};
const topTenStyle = {
fontSize: "1.3em",
fontWeight: "b... |
public/js/components/admin/login.react.js | rajikaimal/Coupley | /**
* Created by Isuru 1 on 24/01/2016.
*/
import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardHeader from 'material-ui/lib/card/card-header';
import CardMedia from 'material-ui/li... |
src/components/google_map.js | nsepehr/weatherApp | import React, { Component } from 'react';
class GoogleMap extends Component {
componentDidMount() {
new google.maps.map(this.refs.map, {
zoom: 12,
center: {
lat: this.props.lat,
lng: this.propps.lon
}
});
}
render() {
// this.ref.map
return <div ref="map" />;
... |
packages/veritone-widgets/src/widgets/UserProfile/Modals/ChangeName/index.js | veritone/veritone-sdk | import React from 'react';
import { bool, func } from 'prop-types';
import { reduxForm, Field } from 'redux-form';
import { formComponents } from 'veritone-react-common';
const { TextField } = formComponents;
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
im... |
src/components/EarthquakesDetails.js | ajaycheenath/earthquake | import React, { Component } from 'react';
import appStyle from "../css/app.css";
import RightDrawer from "../uic/RightDrawer";
import RangeSelector from "../uic/RangeSelector";
import Content from "../uic/Content";
import Button from "../uic/Button";
import EarthQuakePlaces from "./EarthQuakePlaces";
import EarthQuakeL... |
static/src/containers/BarGraph.js | eltrufas/cosmico | import React from 'react';
import connectToDataPoints from '../connectToDataPoints';
import { Chart } from 'react-google-charts';
const unsusedColors = [
'#2196F3',
'#F44336',
'#FF9800',
'#4CAF50'
]
const BarGraph = ({ sensorsObj, totals, key, sensors }) => {
const rows = sensors
.map((sensorId, idx) =>... |
frontend/jqwidgets/jqwidgets-react/react_jqxpopover.js | yevgeny-sergeyev/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxPopover extends React.Component {
componentDidMount() {
let options = this.manage... |
node_modules/native-base/src/basic/Item.js | odapplications/WebView-with-Lower-Tab-Menu | import React, { Component } from 'react';
import { TouchableOpacity, Animated, Platform, View } from 'react-native';
import { Input } from './Input';
import { Label } from './Label';
import { Icon } from './Icon';
import { connectStyle } from '@shoutem/theme';
import variables from '../theme/variables/platform';
impor... |
src/svg-icons/places/casino.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesCasino = (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-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z... |
src/ModalBody.js | xsistens/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalBody extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalBody.prop... |
fields/types/cloudinaryimage/CloudinaryImageColumn.js | alobodig/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var CloudinaryImageColumn = React.createClass({
displayName: 'CloudinaryImageCo... |
src/partials/notebook-editor/with-redal.js | jl-/bronote | /**
*
*
*/
import React, { Component } from 'react';
import Redal from 'components/redal';
import { REDAL_DURATION } from 'configs/common';
import NotebookEditor from './editor';
import styles from './style.scss';
const REDAL_REF = Symbol('redal');
const EDITOR_REF = Symbol('editor');
class NotebookEditorWithRedal... |
frontend/src/components/dialog/create-repo-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import Select from 'react-select';
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Form, FormGroup, Label, Alert } from 'reactstrap';
import { gettext, enableEncryptedLibrary, repoPasswordMinLength, storages, libraryTemplates } from '../... |
src/shelf.js | baherami/bookapp | import React, { Component } from 'react';
import Book from './book'
class Shelf extends Component{
render(){
const {onBookChange,shelfName,shelfBooks}=this.props
let finalShelfBooks="No results! Try these keywords "
if(shelfBooks&&!shelfBooks.error){
let filteredBooks=shelfBooks.filter(e=>(((e.shelf... |
src/mixins/StoreWatchMixin.js | RamEduard/admin-lte-express | /**
* Created by Ramon Serrano <ramon.calle.88@gmail.com>
* Date: 5/24/16
* Time: 2:01 PM
*/
import React from 'react';
import AppStore from '../stores/app-store';
export default ( InnerComponent, stateCallback ) => class extends React.Component {
constructor(props){
super(props);
this.state = stateCallback( ... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js | CodingZeal/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function* load(limit) {
let i = 1;
while (i <= limit)... |
src/components/SidebarRight/SidebarRight.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
import LayerSubtitleSpace from '../LayerSubtitle/LayerSubtitleSpace.js'
import PolygonData from '../PolygonData/PolygonData.js'
import HTML5Backend from 'react-dnd-html5-backend'
import { DragDropContext } from 'react-dnd'
const SidebarRight = ({
layers,
showSidebarRight,
onLayerC... |
blueocean-material-icons/src/js/components/svg-icons/maps/local-mall.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalMall = (props) => (
<SvgIcon {...props}>
<path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.34-3 3-3zm0 10c-2.76 0-5-2.24-5-5h... |
packages/icons/src/dv/GoogleAssistant.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function DvGoogleAssistant(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M21.612 8.15c2.392 1.824 3.973 4.673 4.228 7.675.292 2.989-.723 6.075-2.74 8.302-2.114 2.39-5.313 3.766-8.503 3.64-3.174-.077-6.263-1.637-8.2... |
nlyyAPP/component/药物管理/研究中心/MLYwhgl.js | a497500306/nlyy_APP | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ListView,
Alert
} from 'react-native';
//时间操作
var moment = require('moment');
mom... |
lib/photo-carousel/index.js | bjyas/react-native-rnkit | /**
* Created by kevin on 15/12/17.
*/
'use strict';
import React from 'react';
import Toast from '@remobile/react-native-toast'
import PhotoBrower from '@bjyas/react-native-photo-browser'
import ActionSheet from 'react-native-actionsheet';
import {
StyleSheet,
Platform,
StatusBar,
Image,
ScrollView,
Di... |
src/routes/Counter/components/Counter.js | rbhat0987/funfunapp | import React from 'react'
import PropTypes from 'prop-types'
export const Counter = ({ counter, increment, doubleAsync }) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {counter}</h2>
<button className='btn btn-primary' onClick={increment}>
Increment
</button>
{' '}
<button className... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | lauracurley/2016-08-ps-react | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
app/containers/FeaturePage/index.js | svangordon/latrones-cli | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
src/app/components/userNotifications.js | webcoding/soapee-ui | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import cx from 'classnames';
import meActions from 'actions/me';
import userNotificationsStore from 'stores/userNotifications';
import UserAvatar from 'components/userAvatar';
export default React.createClass( {
mixins: [
Re... |
src/components/filters/daterange.js | thinktopography/reframe | import PropTypes from 'prop-types'
import React from 'react'
import Search from '../search'
import moment from 'moment'
import _ from 'lodash'
class DaterangePanel extends React.Component {
static propTypes = {
format: PropTypes.any,
label: PropTypes.string,
include: PropTypes.array,
name: PropTypes... |
src/Toolbar/Title.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../types'
class Title extends React.Component {
props: PropsC
static defaultProps = {
component: 'span',
}
static displayName = 'Toolbar.Title'
render() {
const { component: Component, className, ...rest } =... |
src/TabbedArea.js | xuorig/react-bootstrap | import React from 'react';
import Tabs from './Tabs';
import TabPane from './TabPane';
import ValidComponentChildren from './utils/ValidComponentChildren';
import deprecationWarning from './utils/deprecationWarning';
const TabbedArea = React.createClass({
componentWillMount() {
deprecationWarning(
'TabbedA... |
stories/demos/resource.stories.js | jquense/react-big-calendar | import React from 'react'
import moment from 'moment'
import { Calendar, momentLocalizer } from '../../src'
import Resource from './exampleCode/resource'
export default {
title: 'Examples',
component: Calendar,
parameters: {
docs: {
page: null,
},
},
}
const localizer = momentLocalizer(moment)
... |
react/react_harry/command/harry-react-title.js | caiting/react-webpack-mud | /**
* Created by tt on 16/5/25.
*/
import React from 'react';
import ReactDOM from 'react-dom';
var HarryStyle =require('./harry-react1.css');
var Title = React.createClass({
getInitialState: function () {
return {
class: true
}
},
haddleClick: function (event) {
this.... |
src/components/footer/index.js | mattmischuk/m1x | // @flow
import React from 'react'
import type { Node } from 'react'
import styled from 'styled-components'
const Container = styled.footer`
position: fixed;
bottom: 1rem;
left: 3rem;
`
type Props = {
children: Node,
}
const Footer = ({ children }: Props) => <Container>{children}</Container>
export default ... |
src/icons/BookmarkBorderIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class BookmarkBorderIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M34 6H14c-2.21 0-3.98 1.79-3.98 4L10 42l14-6 14 6V10c0-2.21-1.79-4-4-4zm0 30l-10-4.35L14 36V10h20v2... |
information/blendle-frontend-react-source/app/components/ManagedInput/index.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import CSS from './style.scss';
import classNames from 'classnames';
export default class ManagedInput extends React.Component {
static propTypes = {
value: PropTypes.any.isRequired,
onChange: PropTypes.func.isRequired,
className: PropTypes.s... |
linksa/ZC.js | liuhui219/linksa | import React from 'react';
import {
View,
StyleSheet,
Navigator,
TouchableOpacity,
TouchableHighlight,
Text,
Keyboard,
Animated,
TextInput,
ScrollView,
ActivityIndicator,
InteractionManager,
Dimensions,
BackAndroid,
Image,
RefreshControl,
ListView,
} from 'react-native';
import ScrollableTabView,... |
src/client/app/footer.react.js | gaurav-/este | import Component from '../components/component.react';
import React from 'react';
import {FormattedHTMLMessage} from 'react-intl';
export default class Footer extends Component {
static propTypes = {
msg: React.PropTypes.object.isRequired
}
render() {
const {msg: {app: {footer}}} = this.props;
ret... |
src/Interpolate.js | justinanastos/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
src/Flex1.js | babizhu/webApp | /**
* Created by liu_k on 2015/11/16.
*
*/
import React from 'react';
import App from './App';
import Nav from './Nav';
class Flex extends React.Component {
render() {
let box = {
//padding: '2px',
display: 'flex',
height: '100%',
background: 'gray',
... |
frontend/src/components/ListTeams.js | textilemuseum/spinningjenny | import React from 'react'
import axios from 'axios'
// components
import Button from 'material-ui/Button'
class ListTeams extends React.Component {
constructor () {
super()
this.handleSubmit = this.handleSubmit.bind(this)
this.state = {
'volunteer': {
'id': null
},
teams: [],
snackbarText: '',... |
client/pages/post/Posts.js | jkettmann/relay-authentication | import React from 'react'
import PropTypes from 'prop-types'
import { routerShape } from 'found/lib/PropTypes'
import { createPaginationContainer, graphql } from 'react-relay'
import PostList from '../../components/post/PostList'
export const POST_COUNT = 6
const Posts = ({ viewer, router, relay }) => (
<div>
... |
client/components/Menu/Menu.js | Abe404/tagpad | import React from 'react';
import navigation from '../../helpers/navigation'
require('./menu.css');
function logout (e) {
e.preventDefault();
fetch('logout', {
method: 'POST',
credentials: 'same-origin'
}).then(function(res) {
return res.json();
}).then(function(json) {
if (json.status === 'su... |
src/pages/homepage/SetCollege.js | HeliumLau/Hoop-react | import React from 'react';
import Header from 'components/Header.js';
import SaveButton from 'components/SaveButton.js';
import './SetCollege.less';
export default class SetCollege extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div id="set... |
src/pages/Account.js | jthoms1/react-ionic-conference-app | import React, { Component } from 'react';
import UserAccount from '../containers/UserAccount';
import './Account.scss';
export default class Account extends Component {
updatePicture(){}
changeUsername(){}
changePassword(){}
support(){}
render() {
return [
<ion-header key={1}>
<ion-navbar>
... |
src/ui/components/Html/index.js | osorioramirez/owm | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
client/src/components/surveys/SurveyNew.js | anarinya/feedback-panda-server | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import { SurveyForm, SurveyFormReview } from './';
class SurveyNew extends Component {
constructor(props) {
super(props);
this.state = { showFormReview: false };
}
renderContent() {
if (this.state.showFormReview) {
... |
components/BrowserRouter.js | jumoel/reasonable-router | import React, { Component } from 'react';
import { createBrowserHistory } from 'history';
import { Router } from './Router';
export class BrowserRouter extends Component {
constructor() {
super(...arguments);
this.state = {
history: createBrowserHistory(),
};
}
render() {
return (
<Router {...this.... |
app/jsx/shared/SpaceSettingsModal/index.js | sfu/canvas-spaces | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Modal from 'react-modal';
import api from '../../utils/api';
import SpaceNameField from '../../shared/SpaceNameField';
import SpaceDescriptionField from '../../shared/SpaceDescriptionField';
import SpaceMaillistField from '../../share... |
src/React/CollapsibleControls/CollapsibleControlFactory/ProbeControl.js | Kitware/paraviewweb | import React from 'react';
import CollapsibleControlFactory from '.';
import ProbeControl from '../ProbeControl';
CollapsibleControlFactory.registerWidget('ProbeControl', ({ model }) => (
<ProbeControl key="ProbeControl" imageBuilder={model} />
));
|
src/svg-icons/communication/phonelink-lock.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkLock = (props) => (
<SvgIcon {...props}>
<path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ... |
node_modules/react-router/es6/Redirect.js | jsg7440/MainPage | 'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e... |
index.js | kris1226/clymer-metal-crafts | import 'babel-core/polyfill';
import React from 'react';
import { render } from 'react-dom';
import Root from './containers/Root';
import ReactReduxRouterRoot from './containers/ReactReduxRouterRoot';
//import configureStore from './store/configureStore';
import configureStore from './store/reactReduxRouterConfigureSto... |
src/main.js | MoonlightOwl/hel-site | import './globals.js'
import React from 'react'
import ReactDOM from 'react-dom'
import Backbone from 'backbone'
import './lib/semantic.min.js'
import Dash from './view/dash'
import Greeting from './view/greeting'
import List from './view/packages'
import './dom.js'
console.info('Welcome to Hel!');
class Hel extends ... |
src/components/download-icon.js | getinsomnia/website | import React from 'react';
const DownloadIcon = () => (
<svg className="icon" viewBox="0 0 512 512">
<path d="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24... |
client/containers/questions/questionList.js | TecProgPurrsuit/TeamBasedLearningApp | /**
* This file is responsible for render a list os questions to the user
*
* @summary Component for a list of questions
@class QuestionList
*/
import React from 'react';
import Question from './question';
function QuestionList() {
return (
<div className="row">
<div className="col l9 offset-l1 s12">
... |
node_modules/react-router-dom/es/NavLink.js | lucketta/got-quote-generator | 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; };
var _typeof = typeof Symbol === "function" && typeof Symbol.i... |
app/components/App.js | rfarine/ArtistRanking | import React from 'react';
import {RouteHandler} from 'react-router';
import Footer from './Footer';
import Navbar from './Navbar';
class App extends React.Component {
render() {
return (
<div>
<Navbar />
<RouteHandler />
<Footer />
</div>
);
}
}
export default App; |
browser/app/js/components/UploadModal.js | brendanashworth/minio | /*
* Minio Cloud Storage (C) 2016 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
modules/Lifecycle.js | migolo/react-router | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
src/components/Hoverable.js | themarquisdesheric/collatz-conjecture-music | import React, { Component } from 'react';
import { func } from '../proptypes-constants';
export default class Hoverable extends Component {
static propTypes = {
children: func.isRequired
};
state = {
hover: false
};
toggleHover = () => {
this.setState({ hover: !this.state.hover });
}
rend... |
app/javascript/mastodon/features/home_timeline/index.js | ambition-vietnam/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { expandHomeTimeline, refreshHomeTimeline } from '../../actions/timelines';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHe... |
node_modules/react-bootstrap/es/ControlLabel.js | CallumRocks/ReduxSimpleStarter | 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 ... |
src/component/PhotoButton.js | munyrasirio/mss-chat | import React, { Component } from 'react';
import { StyleSheet, TouchableOpacity, Image } from 'react-native';
export default class PhotoButton extends Component {
render() {
return (
<TouchableOpacity style={styles.buttonPhoto} onPress={this.props.onPress}>
<Image style={styles.buttonImg} sourc... |
lib/ui/src/modules/ui/components/stories_panel/header.stories.js | rhalff/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Header from './header';
const openShortcutsHelp = action('openShortcutsHelp');
storiesOf('ui/stories/Header', module).add('simple', () => (
<Header name="name" url="http://google.com" o... |
src/App.js | kylefdoherty/ipsum-generator | import React, { Component } from 'react';
import Speeches from './speeches';
import GeneratedIpsum from './generated_ipsum';
import PresidentSelector from './president_selector';
import HeroContainer from './hero_container';
import ParagraphSlider from './paragraph_slider';
class App extends Component {
constructor(... |
src/AffixMixin.js | gianpaj/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
web/client/configdev/src/config/WebServer.js | project-owner/Peppy | /* Copyright 2019 Peppy Player peppy.player@gmail.com
This file is part of Peppy Player.
Peppy Player 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 la... |
entry_types/scrolled/package/src/frontend/AudioPlayer/index.js | codevise/pageflow | import React from 'react';
import classNames from 'classnames';
import {MediaPlayer} from '../MediaPlayer';
import {useTextTracks} from '../useTextTracks';
import {useMediaMuted} from '../useMediaMuted';
import {AudioStructuredData} from './AudioStructuredData';
import styles from '../AudioPlayer.module.css';
/**
*... |
src/components/buttons/DeleteButton.js | dataloom/gallery | import React from 'react';
import styled from 'styled-components';
import FontAwesome from 'react-fontawesome';
const StyledButton = styled.button`
color: #e91e63;
background: none;
border: none;
display: flex;
flex: 0;
margin: auto 5px;
&:hover {
color: #b90b14;
}
&:disabled {
cursor: defaul... |
source/src/containers/dashboard.js | vgudzhev/DiagramTool | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, Link, hashHistory } from 'react-router';
class Dashboard extends React.Component {
render() {
return (
<div className="masthead">
<ul className="nav nav-pills pull-right">
... |
src/redux/utils/createDevToolsWindow.js | joopand/sipreman-ui | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
src/containers/home/Home.js | rickieanand/ReactOne | import React, { Component } from 'react';
import './home.css';
export default class Home extends Component {
render() {
return (
<div>
<div className="jumbotron">
<div className="container">
<h1 className="display-3">Yet Another Web App Starter Kit</h1>
<p classNa... |
dashboard-ui/app/components/settings/mongo.js | CloudBoost/cloudboost | /**
* Created by Darkstar on 11/29/2016.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { showAlert, enableMongoAccess, getAccessURL } from '../../actions';
import { makeUrlFromData, makeConnectionStringFromData, makeServerUrlFromData } from '../../help... |
src/MediaListItem.js | apkiernan/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils';
class MediaListItem extends React.Component {
render() {
const { className, ...props } = this.props;
const [bsProps, elementProps] = splitBsProps(props);
const cl... |
src/components/PreviousButtonContainer.js | GriddleGriddle/Griddle | import React from 'react';
import { connect } from '../utils/griddleConnect';
import { textSelector, hasPreviousSelector, classNamesForComponentSelector, stylesForComponentSelector } from '../selectors/dataSelectors';
const enhance = OriginalComponent => connect((state, props) => ({
text: textSelector(state, { key: ... |
docs/app/Examples/modules/Dimmer/Usage/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DimmerStatesExamples = () => (
<ExampleSection title='Usage'>
<ComponentExample
title='Dimmer Events'
descript... |
node_modules/react-bootstrap/es/Row.js | soniacq/LearningReact | 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 ... |
src/containers/settings/EditUserScreen.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import { defineMessages, intlShape } from 'react-intl';
import UserStore from '../../stores/UserStore';
import Form from '../../lib/Form';
import EditUserForm from '../../components/settings/use... |
src/main.js | michaeltomasik/easyPaginationList | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
src/containers/app/index.js | ngochuy13/react-firebase-address | /* global localStorage, location */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import { Container } from 'semantic-ui-react';
import Header from '../../components/header';
import Footer from '../../components/footer';
import {addressReque... |
react-ui/src/AppointmentFormDatePicker.js | joshboyan/appointment-ledger-map | /**
* Date picker component: https://hacker0x01.github.io/react-datepicker/
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import DatePicker from 'react-datepicker';
import moment from 'moment';
import 'react-datepicker/dist/react-datepicker.css';
class AppointmentFormDatePicker ext... |
app/javascript/mastodon/features/list_editor/components/account.js | masarakki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../compone... |
src/Interpolate.js | tonylinyy/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.