path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
react/src/app/screens/Welcome/screens/Login/screens/Lists/shared/LoggedInHeader.js | JasonKDarby/listopolis | import React from 'react';
import { Navbar, Button, ButtonGroup, ButtonToolbar, Grid, Glyphicon } from 'react-bootstrap';
import { Link } from 'react-router';
export default ({ children, user, history }) => (
<div>
<Navbar>
<Navbar.Header>
<Navbar.Brand>
<Lin... |
classic/src/scenes/mailboxes/src/Scenes/AccountScene/AccountStandaloneScene/AccountStandaloneSceneContent.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import { DialogContent, DialogActions, Button } from '@material-ui/core'
import shallowCompare from 'react-addons-shallow-compare'
import { WaveboxWebView } from 'Components'
import { userStore } from 'stores/user'
import querystring from 'querystring'
import... |
src/app/components/Seat/Admins.js | Krekotun/seat-booking | import React from 'react';
const Admins = (props) => {
return (
<span className="iquiz_tables--table_org">Организаторы</span>
)
}
export default Admins
|
test/__tests__/index.android.js | nickcharles/react-native-invertible-flatlist | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
docs/src/pages/system/typography/FontStyle.js | lgollut/material-ui | import React from 'react';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
export default function FontStyle() {
return (
<Typography component="div">
<Box fontStyle="normal" m={1}>
Normal font style.
</Box>
<Box fontStyle="italic" m={1}>
... |
src/svg-icons/device/access-alarms.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarms = (props) => (
<SvgIcon {...props}>
<path d="M22 5.7l-4.6-3.9-1.3 1.5 4.6 3.9L22 5.7zM7.9 3.4L6.6 1.9 2 5.7l1.3 1.5 4.6-3.8zM12.5 8H11v6l4.7 2.9.8-1.2-4-2.4V8zM12 4c-5 0-9 4-9 9s4 9 9 9 9-4 9... |
code/workspaces/web-app/src/containers/clusters/ClustersContainer.spec.js | NERC-CEH/datalab | import React from 'react';
import { render } from '@testing-library/react';
import ClustersContainer from './ClustersContainer';
import * as mockAuthHooks from '../../hooks/authHooks';
import * as mockCurrentProjectHooks from '../../hooks/currentProjectHooks';
jest.mock('./ProjectClustersContainer', () => props => (<... |
src/svg-icons/social/person-add.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonAdd = (props) => (
<SvgIcon {...props}>
<path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</... |
examples/CardImage.js | chris-gooley/react-materialize | import React from 'react';
import Card from '../src/Card';
import CardTitle from '../src/CardTitle';
export default
<Card className='small'
header={<CardTitle image='img/sample-1.jpg'>Card Title</CardTitle>}
actions={[<a href='#'>This is a Link</a>]}>
I am a very simple card. I am good at containing small bits o... |
packages/react-ui-core/src/Modal/__tests__/ModalCloseButton-test.js | rentpath/react-ui | import React from 'react'
import renderer from 'react-test-renderer'
import ThemedCloseButton from '../ModalCloseButton'
const ModalCloseButton = ThemedCloseButton.WrappedComponent
describe('ModalCloseButton', () => {
it('renders default children if none passed', () => {
const snap = renderer
.create(<Mod... |
src/svg-icons/action/lightbulb-outline.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLightbulbOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1... |
src/svg-icons/content/font-download.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFontDownload = (props) => (
<SvgIcon {...props}>
<path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13... |
assets/jqwidgets/demos/react/app/chart/donutlabels/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'csv',
datafields: [
{ name: 'Browser' },
... |
react/features/speaker-stats/components/SpeakerStatsItem.js | parisjulien/arkadin-jitsimeet | import React, { Component } from 'react';
import TimeElapsed from './TimeElapsed';
/**
* React component for display an individual user's speaker stats.
*
* @extends Component
*/
class SpeakerStatsItem extends Component {
/**
* SpeakerStatsItem component's property types.
*
* @static
*/
... |
client/app/scripts/components/sidebar.js | kinvolk/scope | import React from 'react';
export default function Sidebar({children, classNames}) {
const className = `tour-step-anchor sidebar ${classNames}`;
return (
<div className={className}>
{children}
</div>
);
}
|
lib/Components/WeatherCards.js | becs919/weatherly | import React, { Component } from 'react';
import Hourly from './Hourly';
import TenDay from './TenDay';
import CurrentWeather from './CurrentWeather';
import Date from './Date';
const WeatherCards = ({ weather }) => {
if (!Object.keys(weather).length) {
return (
<div className='valid-city'>
Please ... |
RN/RNFluxDemo/components/Login.js | puyanLiu/LPYFramework | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import {
Actions
} from 'react-native-router-flux';
import Button from "react-native-button";
class Login extends Component {... |
src/index.js | MarceloProjetos/react-node-red | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/maps/hotel.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsHotel = pure(MapsHot... |
src/svg-icons/action/lock-open.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLockOpen = (props) => (
<SvgIcon {...props}>
<path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 ... |
examples/ToolTip.js | rma-consulting/react-easy-chart | import React from 'react';
import PropTypes from 'prop-types';
import { Style } from 'radium';
const toolTipStyles = {
'.tooltip': {
border: 'solid silver 1px',
position: 'fixed',
backgroundColor: 'white',
borderRadius: '4px',
padding: '10px'
}
};
const ToolTip = (props) => (
<div className=... |
module-10/01/src/Main.js | dtfialho/js-tdd-course | import React from 'react';
import PropTypes from 'prop-types';
import { titleStyle, subtitleStyle, headerStyle, containerStyle, videoStyle } from './Styles';
const defaultProps = {
bgColor: '#ccc',
textColor: '#fff',
font: 'sans-serif',
bgImg: ''
};
const FullHeader = ({ title, subtitle, bgColor, tex... |
components/Head.js | stanidesis/stanidesis.github.io | import React from 'react'
import NextHead from 'next/head'
const Schema = {
Main: {
Title: 'SEO_Title',
Description: 'SEO_Description'
}
}
const Head = ({ content }) => (
<NextHead>
<meta charSet="UTF-8" />
<title>{content[Schema.Main.Title] || ''}</title>
<meta name="description" content={c... |
src/index.js | Solshal/solshal-chrome-extension | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './stores/configureStore';
import App from './shared/app.container';
const store = configureStore();
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById... |
src/components/GitHubIcon.js | react-puzzle-games/15-puzzle | import React, { Component } from 'react';
import styled from 'styled-components';
class GitHubIcon extends Component {
render() {
const { className } = this.props;
return (
<svg
className={className}
version="1.1"
xmlns="http://www.w3.org/2000/svg"
width="24px"
h... |
src/components/Navigation/Navigation.js | niketpathak/npk-website | /**
* @author Niket Pathak. (http://www.niketpathak.com/)
*
* Copyright © 2014-present. 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 cx from 'classnames';
import withSty... |
fields/types/date/DateColumn.js | Tangcuyu/keystone | import React from 'react';
import moment from 'moment';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var DateColumn = React.createClass({
displayName: 'DateColumn',
propTypes: {
co... |
packages/react-vis/src/plot/axis/decorative-axis.js | uber/react-vis | // Copyright (c) 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
node_modules/react-native-form-generator/src/fields/DatePickerField.ios.js | tedsf/tiptap | 'use strict';
import React from 'react';
import ReactNative from 'react-native';
let { View, StyleSheet, TextInput, Text, PickerIOS} = ReactNative;
import {DatePickerComponent} from '../lib/DatePickerComponent';
export class DatePickerField extends React.Component{
setDate(date){
this.refs.datePickerComponent... |
src/parser/hunter/shared/modules/features/focuschart/FocusTab.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import StatTracker from 'parser/shared/modules/StatTracker';
import Tab from 'interface/others/Tab';
import FocusChart from './Focus';
import FocusTracker from './FocusTracker';
class FocusTab extends Analyzer {
static dependencies = {
foc... |
ui/src/components/OrganizationSelect.js | jcampanell-cablelabs/lora-app-server | import React, { Component } from 'react';
import { Link } from 'react-router';
import Select from "react-select";
import OrganizationStore from "../stores/OrganizationStore";
import SessionStore from "../stores/SessionStore";
class OrganizationSelect extends Component {
static contextTypes = {
router: React.P... |
docs/src/sections/PagerSection.js | SSLcom/Bootsharp | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function PagerSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
examples/js/column-format/demo.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import HtmlColumnFormatTable from './html-column-format-table';
import ReactColumnFormatTable from './react-column-format-table';
import ExtraDataColumnFormatTable from './extra-data-column-format-table';
import GetRowIndexTable from './get-row-index-table';
class Dem... |
src/index.js | BHasslebro/TrackAndField-competition | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom'
import App from './App';
import 'bootstrap/dist/css/bootstrap.css';
import './index.css';
import './settings.js'
ReactDOM.render (
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('r... |
React/HelloWorld/public/components/HelloWorld.js | hugonasciutti/Exercises | import React from 'react';
class HelloWorld extends React.Component {
render() {
return (
<div>
Hello World!
</div>
)
}
}
export default HelloWorld
|
client/src/components/Tag/TagList.js | silverstripe/silverstripe-admin | import React from 'react';
import Tag from 'components/Tag/Tag';
import TagPropType from './TagPropType';
import PropTypes from 'prop-types';
/**
* Whatever the focus should move forward.
* @type {boolean}
*/
const FORWARD = true;
/**
* Whatever the focus should move backwards
* @type {boolean}
*/
const BACKWAR... |
examples/official-storybook/stories/addon-events.stories.js | storybooks/react-storybook | import React from 'react';
import EventEmitter from 'eventemitter3';
import withEvents from '@storybook/addon-events';
import Logger from './Logger';
const EVENTS = {
TEST_EVENT_1: 'test-event-1',
TEST_EVENT_2: 'test-event-2',
TEST_EVENT_3: 'test-event-3',
TEST_EVENT_4: 'test-event-4',
};
const emitter = new... |
components/GoogleAnalytics/GoogleAnalytics.js | b1alpha/sdj | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React from 'react';
import { googleAnalyticsId } from '../../config';
const trackingCode = { __html:
`(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(... |
components/JRConf/JRConfLandingHeader.js | yudazilian/VisualJusticeTW | import React from 'react';
import ReactDOM from 'react-dom';
import ReactRouter from 'react-router';
export default class JRConfHeader extends React.Component {
render() {
return (
<header className="landing-page col-md-12">
<div className="header-title">
{/*國是會議觀測站<span className="author">By 看見思法</sp... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedTablet.js | koenvg/Semantic-UI-React | import React from 'react'
import { Grid } from 'semantic-ui-react'
const GridExampleReversedTablet = () => (
<Grid reversed='tablet' columns='equal'>
<Grid.Column>Tablet Fourth</Grid.Column>
<Grid.Column>Tablet Third</Grid.Column>
<Grid.Column>Tablet Second</Grid.Column>
<Grid.Column>Tablet First</Gr... |
js/ClientApp.js | jamnab/vidflix | import React, { Component } from 'react';
import { render } from 'react-dom';
import { BrowserRouter, Route } from 'react-router-dom';
import Landing from './Landing';
import Search from './Search';
class App extends Component {
render() {
return (
<BrowserRouter>
<div className="App">
<... |
components/countdown/countdown.js | SpaceyRezum/react-trivia-game | import React from 'react'
/**
* Count down module
* A simple count down component.
**/
export default class Countdown extends React.Component {
constructor(props) {
super(props);
this.decrementTimer = this.decrementTimer.bind(this);
}
decrementTimer() {
const { timePerQuestion, currentQuestion, upda... |
actor-apps/app-web/src/app/components/modals/AddContact.react.js | nguyenhongson03/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { Styles, TextField, FlatButton } from 'material-ui';
import AddContactStore from 'stores/AddContactStore';
import AddContactActionCreators from 'actions... |
node_modules/native-base/src/smart/SHeader.js | tausifmuzaffar/bisApp |
import React, { Component } from 'react';
import { View } from 'react-native';
import { Left } from '../basic/Left';
import { Body } from '../basic/Body';
import { Right } from '../basic/Right';
import { Header } from '../basic/Header';
import { Button } from '../basic/Button';
import { Title } from '../basic/Title';
... |
source/patterns/01-molecules/dropdown/__tests__/dropdown.spec.js | apparena/patterns | /* eslint-env mocha */
import React from 'react';
import {shallow, configure} from 'enzyme';
import Index from '../index';
import Adapter from 'enzyme-adapter-react-16';
configure({adapter: new Adapter()});
test('renders a dropdown', () => {
const wrapper = shallow(
<Index>
<ul className="drop... |
src/components/layout.js | dstrunk/dstrunk.github.io | import React from 'react'
import PropTypes from 'prop-types'
import { StaticQuery, graphql } from 'gatsby'
import Header from './header'
import '../less/style.less'
const Layout = ({ children }) => (
<StaticQuery
query={graphql`
query SiteTitleQuery {
site {
siteMetadata {
ti... |
.storybook/config.js | sjofartstidningen/bryggan | import React from 'react';
import { configure, addDecorator } from '@storybook/react';
import { BrowserRouter as Router } from 'react-router-dom';
import { ThemeProvider } from 'styled-components';
import * as theme from '../src/theme';
import '../src/index.css';
addDecorator(story => (
<Router>
<ThemeProvider t... |
src/svg-icons/action/rounded-corner.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoundedCorner = (props) => (
<SvgIcon {...props}>
<path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v... |
website/sardines/src/index.js | line72/sardines | /* -*- Mode: rjsx -*- */
/*******************************************
* Copyright (2017)
* Marcus Dillavou <line72@line72.net>
* http://line72.net
*
* Sardines:
* https://github.com/line72/sardines
* https://sardines.line72.net
*
* Licensed Under the GPLv3
*******************************************/
im... |
__tests__/index.android.js | sadafk831/React-Native-Simple-Calculator | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
app/components/SegmentedControl/SegmentedControl.js | JSSolutions/Perfi | import React from 'react';
import {
View,
ViewPropTypes,
Text,
} from 'react-native';
import T from 'prop-types';
import { cx } from '../../styles';
import TabOption from './TabOption';
import s from './styles';
const handleTabPress = (index, multiple, selectedIndex, onTabPress) => {
if (multiple) {
onTabP... |
node_modules/react-router-dom/es/BrowserRouter.js | millerman86/CouponProject | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/components/about.js | Chetson/webpack-react | import React from 'react';
export default class About extends React.Component {
render() {
return (
<div>
<h1>About page</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud... |
src/components/posts_index.js | sadooghi/React_Blog | import React, { Component } from 'react';
import _ from 'lodash';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPosts } from '../actions';
import Navbar from './navbar';
class PostsIndex extends Component {
//componentDidMount is a good place to fetch a data or any act... |
web/client/configdev/src/config/FileBrowser.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... |
react-ukm-hub/src/component/RequestList/RequestEmpty.js | UKM-HUB/ukm_hub | import React from 'react'
const RequestEmpty = (props) => {
return (
<div className='content'>
<div className='container-fluid'>
<div className='row'>
<div className='col-md-12'>
<div className='card'>
<div className="row">
<div className="col-md-... |
examples/js/manipulation/search-format-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-console: 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;
const pname = [ 'Cloud Service', 'Message ... |
imports/ui/components/SignUpJournalReviewers/SignUpJournalReviewers.js | jamiebones/Journal_Publication | /* eslint-disable */
import React from 'react';
import { Row, Col, FormGroup, Table, ControlLabel, Button, Well, Alert } from 'react-bootstrap';
import { Bert } from 'meteor/themeteorchef:bert';
import InputHint from '../InputHint/InputHint';
import { Capitalize, GetEmailFromUserId, GetNameFromUserId } from '../../../m... |
src/svg-icons/av/hearing.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHearing = (props) => (
<SvgIcon {...props}>
<path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ... |
server/index.js | oglimmer/linky |
import express from 'express';
import contentSecurityPolicy from 'content-security-policy';
import xFrameOptions from 'x-frame-options';
import xXssProtection from 'x-xss-protection';
import hsts from 'hsts';
import bodyParser from 'body-parser';
import compression from 'compression';
import cookieParser from 'cookie... |
packages/website/storybook/markseries-story.js | uber/react-vis | /* eslint-env node */
import React from 'react';
import {storiesOf} from '@storybook/react';
import {
withKnobs,
color,
number,
object,
select
} from '@storybook/addon-knobs/react';
import {MarkSeries} from 'react-vis';
import {generateScatterplotData, intRandom, random} from './storybook-data.js';
import... |
app/components/admin/step3/index.js | 7hci/surfboard | import React from 'react';
import { connect } from 'react-redux';
import { graphql, compose } from 'react-apollo';
import mutations from '../../../graphql/mutations';
import actions from '../../../redux/actions';
import selectors from '../../../redux/selectors';
import Step3 from './view';
const Step3Container = props... |
app/pages/Splash.js | zhanghaj00/shop-reactnative | /**
* ShopReactNative
*
* @author Tony Wong
* @date 2016-08-13
* @email 908601756@qq.com
* @copyright Copyright © 2016 EleTeam
* @license The MIT License (MIT)
*/
'use strict';
import React, { Component } from 'react';
import {
Dimensions,
Image,
InteractionManager,
View
} from 'react-native';... |
src/layouts/index.js | mrMetalWood/brauselier | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import HeadMeta from '../components/head-meta/head-meta';
import Header from '../components/header/header';
import Footer from '../components/footer/footer';
import {stripeBackgrou... |
docs/app/Examples/elements/Segment/States/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SegmentStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Disabled'
description=... |
src/containers/serch_bar.js | MrmRed/test | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component{
constructor(props){
super(props);
this.state = {term : '', country: ''};
this.onI... |
docs/app/routes.js | ben174/Semantic-UI-React | import React from 'react'
import { Route, IndexRedirect } from 'react-router'
import Root from './Components/Root'
import Layout from './Components/Layout'
import Introduction from './Views/Introduction'
import Usage from './Views/Usage'
import PageNotFound from './Views/PageNotFound'
const routes = (
<Route path='... |
src/svg-icons/file/cloud-off.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudOff = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-... |
node_modules/react-bootstrap/es/Grid.js | Technaesthetic/ua-tools | 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 ... |
app/components/Table.js | flocks/ledger-test | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import style from './Table.css';
import TabRow from './TabRow.js';
import _ from 'lodash';
import moment from 'moment';
import Spinner from './Spinner';
class Table extends Component {
props: {
bitcoins: object,
... |
src/routes/resume/index.js | oct16/Blog-FE | import React from 'react'
import Layout from 'components/Layout'
import ResumeSuit from 'components/Docment/ResumeWrap'
export default {
path: ['/resume/(\\w{2,3})', '/resume'],
async action() {
const data = await require.ensure([], require => require('./resume.md'), 'resume');
return {
title: 'Resum... |
src/components/Link/__test__/Link-test.js | ngs/draft-js-markdown-shortcuts-plugin | /* eslint jsx-a11y/anchor-is-valid: 0 */
import React from 'react';
import { ContentState } from 'draft-js';
import Adapter from 'enzyme-adapter-react-16';
import { shallow, configure } from 'enzyme';
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
import Link from '..';
configure({ adapter... |
app/components/Main.js | oneillci/egghead-react-app | import React from 'react';
import {RouteHandler} from 'react-router';
export default class Main extends React.Component {
render() {
return (
<div className="main-container">
<nav className="navbar navbar-default">
<div className="col-sm-7 col-sm-offset-2" style={{marginTop:15}}>
es6 menu
</d... |
client/util/react-intl-test-helper.js | mobeendude/reactToDoMERN | /**
* Components using the react-intl module require access to the intl context.
* This is not available when mounting single components in Enzyme.
* These helper functions aim to address that and wrap a valid,
* English-locale intl context around them.
*/
import React from 'react';
import { IntlProvider, intlSha... |
app/javascript/mastodon/features/standalone/compose/index.js | imas/mastodon | import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
import ModalContainer from '../../ui/containers/mo... |
src/index.js | aragonwa/kc-restaurant-reviews | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
// import {Router, browserHistory} from 'react-router';
import {Router, useRouterHistory} from 'react-router';
//import {Router, hashHistory, useRouterHistory} from 'react-router';
impo... |
client/src/containers/ChannelShow.js | kevinladkins/newsfeed | import React from 'react'
import {connect} from 'react-redux';
import {Switch, Route} from 'react-router-dom'
import ArticleShow from '../components/articles/ArticleShow'
import ArticlesIndex from '../components/articles/ArticlesIndex'
const ChannelShow = ({match, articles, channel}) => {
const setArticleUrl = (ti... |
geonode/contrib/monitoring/frontend/src/components/cels/geonode-status/index.js | simod/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import AverageCPU from '../../molecules/average-cpu';
import AverageMemory from '../../molecules/average-memory';
import s... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/ModalFooter.js | jmanday/Master | 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 ... |
definitions/npm/react-navigation_v4.x.x/test_react-navigation.js | splodingsocks/FlowTyped | // @flow
import type {
NavigationRoute,
NavigationScreenProp,
} from 'react-navigation';
import { StackRouter, TabRouter } from 'react-navigation';
import React from 'react';
/**
* Screens
*/
const FunctionalScreenComponent = (
{ navigation }: {| navigation: NavigationScreenProp<NavigationRoute> |},
) => {
... |
web/src/components/tooltips/countrypanelexchangetooltip.js | corradio/electricitymap | import React from 'react';
import { connect } from 'react-redux';
import { useTranslation, getZoneNameWithCountry } from '../../helpers/translation';
import { formatCo2, formatPower } from '../../helpers/formatting';
import { flagUri } from '../../helpers/flags';
import { getRatioPercent } from '../../helpers/math';
i... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/Swagger/ApiCreateSwagger.js | dewmini/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/svg-icons/maps/restaurant.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurant = (props) => (
<SvgIcon {...props}>
<path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/>
</SvgIcon>
)... |
routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | kalmyk/gyper-app | /*globals COURSES:true */
import React from 'react'
class Announcement extends React.Component {
render() {
let { courseId, announcementId } = this.props.params
let { title, body } = COURSES[courseId].announcements[announcementId]
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
... |
src/routes/UIElement/layer/index.js | tigaly/antd-admin | import React from 'react'
import { layer } from '../../../components'
import { Table, Row, Col, Button, Card } from 'antd'
let Enum = {
default: 1,
}
const IcoPage = () => {
const handleButtonClick = (key) => {
if (key === Enum.default) {
layer.open({
title: '默认弹层',
content: <div style={... |
browser_client/__test__/components/AddNameForm-test.js | py-in-the-sky/gae-flask-redux-react-starter-kit | import React from 'react'
import ReactDOM from 'react-dom'
import { mount } from 'enzyme'
import {
Simulate,
findRenderedDOMComponentWithTag,
} from 'react-addons-test-utils'
import { deepFreeze } from 'app/utils/deepFreeze'
import { Form } from 'formsy-react'
import AddNameForm from 'app/components/AddNameForm... |
src/App.js | qduc/caro | import React, { Component } from 'react';
import logo from './logo.svg';
// import './App.css';
import Board from './Board';
class App extends Component {
constructor() {
super();
this.state = {
winner: null
}
this.endGameHandler = this.endGameHandler.bind(this);
}
endGameHandler(winner) ... |
test/DropdownMenuSpec.js | blue68/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownMenu from '../src/DropdownMenu';
import MenuItem from '../src/MenuItem';
import keycode from 'keycode';
describe('DropdownMenu', () => {
const simpleMenu = (
<DropdownMenu>
<MenuItem eventKey='1'>Item 1</MenuIt... |
ignite/Examples/Containers/ignite-ir-boilerplate/RowExample.js | jpklein/TwistedMind | import React from 'react'
import { View, Text, ListView } from 'react-native'
import { connect } from 'react-redux'
// Styles
import styles from './Styles/RowExampleStyle'
class RowExample extends React.Component {
constructor (props) {
super(props)
// If you need scroll to bottom, consider http://bit.ly/2b... |
app/desktop/Loaders/BabelConfig/index.js | christianalfoni/webpack-bin | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import styles from '../styles.css';
import babelStyles from './styles.css';
import currentLoader from '../../../computed/currentLoader';
@Cerebral({
loader: currentLoader
})
class BabelConfig extends React.Component {
render() {
... |
src/main.js | davezuko/react-redux-starter-kit | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import './styles/main.scss'
// Store Initialization
// ------------------------------------
const store = createStore(window.__INITIAL_STATE__)
// Render Setup
// ------------------------------------
const MOUNT_N... |
test/NavBrandSpec.js | bbc/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
// import Navbar from '../src/Navbar';
import NavBrand from '../src/NavBrand';
describe('Navbrand', () => {
it('Should create navbrand SPAN element', () => {
let instance = ReactTestUtils.renderIntoDocument(
<NavBrand>Brand<... |
SQL/client/src/components/dumb/Form/index.js | thebillkidy/MERGE-Stack | import React from 'react';
// import './Form.css';
export default class Form extends React.Component {
render() {
return (
<div className="FormBlock">
<form method={this.props.method || 'POST'} action={this.props.action || ''}>
{this.props.children}
</form>
</div>
);
}... |
src/routes/Data/components/Data.js | BigBlueDot/SMT4AEncyclopedia | /**
* Created by bigbl on 12/14/2016.
*/
import React from 'react';
import {ScatterChart, Scatter, LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'recharts';
import regression from 'regression';
const options = {
pointDot: false,
showTooltips: false
};
const getDataObject = (data) => {
le... |
src/components/ProgressBar/ProgressBar.js | banjeremy/react-redux-todo | import React from 'react';
import classes from './ProgressBar.scss';
const ProgressBar = ({
progress
}) => {
let label;
if (progress) {
label = <span className={classes['label'] + ' hide-on-mobile'}>{progress.toFixed()}% Complete</span>;
}
return (
<div className={classes['progress-bar']}>
... |
src/overdrive.js | berzniz/react-overdrive | import React from 'react'
import ReactDOM from 'react-dom'
import prefix from './prefix'
import PropTypes from 'prop-types'
const renderSubtreeIntoContainer = ReactDOM.unstable_renderSubtreeIntoContainer
const components = {}
class Overdrive extends React.Component {
constructor (props) {
super(props)
this.... |
src/components/NotFoundPage/NotFoundPage.js | semenov/tasks | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
//import './NotFoundPage.less';
import React from 'react'; // eslint-disable-line no-unus... |
src/components/App/index.js | lukekarrys/repeatone.club | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CSSModules from 'react-css-modules';
import Footer from '../Footer';
import { classnames as modernizrClasses } from '../../helpers/modernizr';
@CSSModules(require('./style.less'))
export default class App extends Compon... |
fields/types/cloudinaryimage/CloudinaryImageFilter.js | Adam14Four/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false },
];
function getDefaultValue () {
return {
exists: true,
};
}
var CloudinaryImageFilter = React.createClass({
propTypes: {
filter: React.PropTyp... |
react/src/Ipsum.js | fvianello/frameworks-fight | import React from 'react';
/* eslint-disable */
const lorems = `Ipsum ipsum dolor sit amet, hinc wisi facilisis sit ea. Eam prima nostro eu, dicit tritani ea vis. In propriae signiferumque vim. Nostro accusata sed no, iisque scripserit te ius. His utamur incorrupte te. Ceteros euripidis consectetuer mea ad, id mea adh... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.