path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/client/pages/BaseLayout/index.js | hkal/timeworthy | import React from 'react';
import './index.scss';
export default (props) => {
return (
<div>
<div className='container push-bottom'>
{props.children}
</div>
<footer>
<p>Made with <span className='heart'>♥</span> by <a href="https://github.com/hkal">hkal</a></p>
</fo... |
f2e/src/js/mobile.js | NyaaFinder/nyaacat | /**
* Created by john on 15/10/19.
*/
import React from 'react';
import Demo from './compoents/demo/demo.jsx';
import {RootInstanceProvider} from 'react-hot-loader/Injection';
var hotObj = React.render(
<div className="time">
<Demo name="入口2-移动端"/>
</div>,
document.getElementById('app')
);
// 生产... |
app/javascript/mastodon/features/account_timeline/components/header.js | cybrespace/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ActionBar from '../../account/components/action_bar';
import MissingIndicator from '../../../components/missing_indicator';
import ... |
ajax/libs/forerunnerdb/1.3.450/fdb-core+views.js | joeyparrish/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
test/integration/css-fixtures/valid-and-invalid-global/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
blueprints/view/files/__test__/views/__name__View.spec.js | SurfaceW/connectify_client | import React from 'react'
describe('(View) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
src/client/Root.js | buildit/bookit-web | import React from 'react'
import PropTypes from 'prop-types'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import getMuiTheme from 'material-ui/styles/getMuiTheme'
import bookitTheme from './bookitTheme'
... |
packages/material-ui-icons/src/Score.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 2h1.5v3l2-3h1.7l-2 3 2 3h-1.7l-2-3v3H12V5zM7 7.25h2.5V6.5H7V5h4v3.75H8.5v.75H11V11H7V7.25zM19 13l-6 6-4-... |
src/svg-icons/navigation/refresh.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationRefresh = (props) => (
<SvgIcon {...props}>
<path d="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.... |
packages/material-ui-icons/src/MyLocationTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M13 3.06V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2h-2.06c-.46-4.... |
src/sources/soundcloud/PlayerWrapper.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import Player from './Player';
import PreviewPlayer from './PreviewPlayer';
const PlayerWrapper = ({ mode, ...props }) => {
if (mode === 'preview') {
return <PreviewPlayer {...props} />;
}
return <Player {...props} mode={mode} />;
};
PlayerWrapp... |
js/components/detailReviews/index.js | bavuongco10/react-native-school-board | import React from 'react';
import {
View,
Text
} from 'react-native';
import {
Container,
Header,
Content,
Footer,
} from 'native-base';
import styles from './styles';
export default ({item}) => (
<Container>
<Header>
<View>
<Text>
Shet
</Text>
</View>
</Hea... |
graylog2-web-interface/test/src/UserPreferencesButtonTest.js | pdepaepe/graylog2-server | import PreferencesStore from 'stores/users/PreferencesStore';
import UserPreferencesButton from 'components/users/UserPreferencesButton';
import UserPreferencesModal from 'components/users/UserPreferencesModal';
import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import $ from 'jquery';
de... |
src/svg-icons/action/accessible.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessible = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19... |
ajax/libs/forerunnerdb/1.4.23/fdb-legacy.min.js | nolsherry/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
packages/material-ui-icons/src/AllOutTwoTone.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><circle cx="12" cy="12" r="5" opacity=".3" /><path d="M4 4v4l4-4zm12 0l4 4V4zm4 16v-4l-4 4zM4 20h4l-4-4zm15-8c0-3.87-3.13-7-7-7s-7 3.13-7 7 3.13 7 7 7 7-3.13 7-7zm-7 5c-2.76 0-5-2.24-5-5s2... |
src/svg-icons/notification/event-busy.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventBusy = (props) => (
<SvgIcon {...props}>
<path d="M9.31 17l2.44-2.44L14.19 17l1.06-1.06-2.44-2.44 2.44-2.44L14.19 10l-2.44 2.44L9.31 10l-1.06 1.06 2.44 2.44-2.44 2.44L9.31 17zM19 3h-1V1h-2v2H8V... |
ajax/libs/react-is/18.0.0-alpha-5b57bc6e3-20210921/umd/react-is.production.min.js | cdnjs/cdnjs | /** @license React vundefined
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(function(){'use strict';(function(b,c){"object"===typeof exports&&"unde... |
app/javascript/mastodon/features/ui/containers/columns_area_container.js | tateisu/mastodon | import { connect } from 'react-redux';
import ColumnsArea from '../components/columns_area';
const mapStateToProps = state => ({
columns: state.getIn(['settings', 'columns']),
isModalOpen: !!state.get('modal').modalType,
});
export default connect(mapStateToProps, null, null, { forwardRef: true })(ColumnsArea);
|
modules/experimental/AsyncProps.js | apoco/react-router | import React from 'react';
import invariant from 'invariant';
var { func, array, shape, object } = React.PropTypes;
var contextTypes = {
asyncProps: shape({
reloadComponent: func,
propsArray: array,
componentsArray: array
})
};
var _serverPropsArray = null;
function setServerPropsArray(array) {
inv... |
packages/mineral-ui-icons/src/IconRemoveCircleOutline.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconRemoveCircleOutline(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {.... |
client_apps/canvas_quizzes/apps/statistics/js/mixins/components/chart_inspector.js | SwinburneOnline/canvas-lms | define(function(require) {
var React = require('old_version_of_react_used_by_canvas_quizzes_client_apps');
var d3 = require('d3');
var $ = require('canvas_packages/jquery');
var jQuery_qTip = require('qtip');
var makeInspectable = function(selector, view) {
selector
.on('mouseover', view.inspect)
... |
frontend/src/components/ActivityTimelineControls.js | WildflowerSchools/sensei | import React from 'react';
import _ from 'lodash';
import DatePicker from 'react-bootstrap-date-picker';
import QueryParams from 'query-params';
import { history } from '../utils';
import DayPicker from 'react-day-picker';
import 'react-day-picker/lib/style.css';
import KeyHandler, {KEYDOWN} from 'react-key-handler';
i... |
src/svg-icons/action/input.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInput = (props) => (
<SvgIcon {...props}>
<path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"/>
</... |
src/client.js | graphook/LandingPage | /**
* 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 createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
// import io from 'socket.io-client';
imp... |
ReactNativePaginationExample/Pages/VerticalAdvancedFlatList.js | garrettmac/react-native-pagination | /* @flow */
import React, { Component } from 'react';
import {
Dimensions,
FlatList,
Image,
StyleSheet,
Text,
TouchableHighlight,
TouchableOpacity,
View
} from 'react-native';
const { width, height } = Dimensions.get('window');
import _ from 'lodash';
import PropTypes from 'prop-types';
import { MockPer... |
js/app-server.js | shuted/sample_app | import React from 'react'
import { match, RoutingContext } from 'react-router'
import ReactDOMServer from 'react-dom/server'
import express from 'express'
// Routes
import routes from './routes'
// Express
const app = express();
app.engine('handlebars', exphbs({defaultLayout: 'main'}));
app.set('view engine', 'handle... |
src/browser/app/components/Checkbox.js | robinpokorny/este | // @flow
import type { BoxProps } from './Box';
import type { Color, Display, Strict } from '../themes/types';
import type { TextProps } from './Text';
import Button from './Button';
import React from 'react';
import Text from './Text';
import styled from './styled';
// Checkbox with SVG icon.
// - flaticon.com
// -... |
src/components/pages/NewsView.js | merlingerin/f7news | import React from 'react';
import {Page, ContentBlock, Navbar, NavLeft, NavCenter, NavRight} from 'framework7-react';
import ReactHtmlParser, { processNodes, convertNodeToElement, htmlparser2 } from 'react-html-parser';
import {store} from '../../store';
import {connect} from 'react-redux';
import IconButton from 'mate... |
src/routes.js | gregsabo/beanstalk-tractor-trailer | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Home,
Login,
LoginSuccess,
NotFound,
Tractor,
Trailer
} from 'containers';
export default (store) => {
const requireL... |
assets/jqwidgets/demos/react/app/slider/sliderlabels/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js';
class App extends React.Component {
render () {
return (
<JqxSlider ref='mySlider'
height={60} width={400}
value={7} min={0} max={20}... |
src/index.js | gzyzwx/gallery-demo-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
packages/react-interactions/events/src/dom/__tests__/Focus-test.internal.js | rricard/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
import {createEventTarget, setPointerEvent, platform} from '../testing-library';
let Reac... |
ajax/libs/forerunnerdb/1.3.733/fdb-legacy.min.js | emmy41124/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/components/LandingPage/ChartWrapper.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import cn from 'classnames';
import styles from './ChartWrapper.module.css';
const ChartWrapper = ({ className, title, to, children }) => (
<div className={cn(className, styles.chartWrapper)}>
<div className=... |
ajax/libs/forerunnerdb/1.3.719/fdb-core+persist.min.js | kiwi89/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/demo/Ajax/AjaxExample.js | sergiocruz/react-logbook | import React, { Component } from 'react';
import axios from 'axios';
import Highlight from 'react-highlight';
import 'highlight.js/styles/monokai-sublime.css';
import Logbook from '../../Logbook';
let sampleComponent;
let timer;
export class AjaxExample extends Component {
constructor() {
super();
this.st... |
apps/customer/assets/static/js/components/JobFilterBox/index.js | tsurupin/job_search | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
CurrentFilterBox,
SingleSelectField,
AutoSuggestTextField,
TextField,
} from 'components';
import { Wrapper, FilterForm } from './styles';
const propTypes = {
jobTitles: PropTypes.array.isRequired,
jobTitle: PropTypes.st... |
app/react/src/client/preview/error_display.js | bigassdragon/storybook | import PropTypes from 'prop-types';
import React from 'react';
const mainStyle = {
position: 'fixed',
top: 0,
bottom: 0,
left: 0,
right: 0,
padding: 20,
backgroundColor: 'rgb(187, 49, 49)',
color: '#FFF',
WebkitFontSmoothing: 'antialiased',
};
const headingStyle = {
fontSize: 20,
fontWeight: 600... |
client/components/basic/Page.stories.js | Sing-Li/Rocket.Chat | import { Button, ButtonGroup, Tile } from '@rocket.chat/fuselage';
import React from 'react';
import { fullHeightDecorator } from '../../../.storybook/decorators';
import Page from './Page';
export default {
title: 'components/basic/Page',
component: Page,
};
const DummyContent = () => <>
{Array.from({ length: 60... |
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/src/core/linq/observable/amb.js | chuycepeda/polymer-elements | /**
* Propagates the observable sequence or Promise that reacts first.
*
* @example
* var = Rx.Observable.amb(xs, ys, zs);
* @returns {Observable} An observable sequence that surfaces any of the given sequences, whichever reacted first.
*/
Observable.amb = function () {
var acc = obser... |
node_modules/react-native/local-cli/bundle.js | nss-day-cohort-17/nss-day-cohort-17.github.io | var http = require('http');
var fs = require('fs');
var path = require('path');
var chalk = require('chalk');
var blacklist = require('../packager/blacklist.js');
var ReactPackager = require('../packager/react-packager');
var OUT_PATH = 'iOS/main.jsbundle';
function getBundle(flags) {
var options = {
projectRo... |
fields/types/html/HtmlField.js | matthewstyers/keystone | import Field from '../Field';
import React from 'react';
import tinymce from 'tinymce';
import { FormInput } from '../../../admin/client/App/elemental';
import evalDependsOn from '../../utils/evalDependsOn';
/**
* TODO:
* - Remove dependency on underscore
*/
var lastId = 0;
function getId () {
return 'keystone-h... |
ajax/libs/angular.js/1.0.0rc4/angular-scenario.js | fleeting/cdnjs | /** @license
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Lic... |
ajax/libs/vis/0.6.1/vis.js | xeodou/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 0.6.1
* @date 2014-03-06
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
src/svg-icons/device/battery-std.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryStd = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/>
</SvgIcon>
);
D... |
packages/frontend/tests/components/adminPage/MonitoringServices/Self/Message.spec.js | ks888/LambStatus | import React from 'react'
import { shallow } from 'enzyme'
import Message from 'components/adminPage/MonitoringServices/Self/Message'
describe('Message', () => {
describe('render', () => {
it('should return the message with the link to script', () => {
const props = {
settings: { apiKeys: [{ value:... |
app/components/Charts/Donut/index.js | prudhvisays/newsb | import React from 'react';
import './Donut.css';
let donut;
class DonutChart extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.state = {
data: [
{ label: 'Target', value: 100 },
{ label: 'Total', value: 0 },
]
}
this.targets = this.targ... |
ajax/libs/6to5/3.1.1/browser.js | andersem/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
stories/components/daily/SMBGTooltip.js | tidepool-org/viz | import React from 'react';
import { storiesOf } from '@storybook/react';
import SMBGTooltip from '../../../src/components/daily/smbgtooltip/SMBGTooltip';
const bgPrefs = {
bgClasses: {
'very-high': { boundary: 600 },
high: { boundary: 300 },
target: { boundary: 180 },
low: { boundary: 70 },
've... |
app/components/Damen/Damen.js | danielstorch/PPS-Tool-Desk | import React from 'react';
import styles from './Damen.module.css';
import mui from 'material-ui';
import { connect } from 'react-redux';
import { setAuftragsplanungDamenInputXML, resetAuftragsplanungDamenInputXML } from '../../actions/PPSToolActions';
import { Link } from 'react-router';
const Table = require('materi... |
addons/storyshots/stories/required_with_context/Button.stories.js | enjoylife/storybook | import React from 'react';
import { storiesOf } from '@storybook/react'; // eslint-disable-line
import { action } from '@storybook/addon-actions'; // eslint-disable-line
import Button from './Button';
storiesOf('Button', module)
.add('with text', () => <Button onClick={action('clicked')}>Hello Button</Button>)
.... |
examples/huge-apps/routes/Course/components/Dashboard.js | jwaltonmedia/react-router | import React from 'react'
class Dashboard extends React.Component {
render() {
return (
<div>
<h3>Course Dashboard</h3>
</div>
)
}
}
export default Dashboard
|
src/containers/Register/Register.js | ercangursoy/react-dev | import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import Helmet from 'react-helmet';
import * as authActions from 'redux/modules/auth';
// import Select from 'react-select';
@connect(
state => ({user: state.auth.user}),
authActions)
export default class Register extends Compon... |
ajax/libs/forerunnerdb/1.3.369/fdb-core+persist.min.js | jonathantneal/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
examples/forms-bootstrap/src/components/dialogs-create-wizard/Layout.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import Hook from './Hook';
import hookCode from '!raw-loader!./Hook';
export default createReactClass({
displayName: 'Layout',
render: function() {
return (
<div className="example">
<h3>
Dialog: Create - Wiz... |
src/components/forging/forgedBlocks.js | slaweet/lisk-nano | import React from 'react';
import { Card, CardTitle } from 'react-toolbox/lib/card';
import { Table, TableHead, TableRow, TableCell } from 'react-toolbox/lib/table';
import { translate } from 'react-i18next';
import grid from 'flexboxgrid/dist/flexboxgrid.css';
import { TooltipTime } from '../timestamp';
import LiskAmo... |
src/app/management/Managers/Managers.js | drivesense/server | import React from 'react';
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn
} from 'material-ui';
const table = {
backgroundColor: 'inherit'
};
export default class Managers extends React.Component {
render() {
return (
<Table style={table}>
<TableH... |
src/media/js/addon/containers/submit.js | mozilla/marketplace-content-tools | import React from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {messageChange, submit} from '../actions/submit';
import AddonSubnav from '../components/subnav';
import AddonUpload from '../components/upload';
import {Page} from '../../site/components/page';
export cl... |
packages/mineral-ui-icons/src/IconSignalWifiOff.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconSignalWifiOff(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
src/components/Profile.js | Ding-Fan/rstar | /**
* Created by zichuange on 2017/3/20.
*/
import React, { Component } from 'react';
import RepoAndStar from './RepoAndStar';
import { Panel, PanelHeader, PanelFooter } from 'rebass';
import './Profile.css';
class Profile extends Component {
render() {
if (this.props.stargazers_count) {
return (
... |
ajax/libs/forerunnerdb/1.3.718/fdb-legacy.js | kennynaoh/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
tools/bundle.js | i3ringit/mdelc | /**
* 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 webpack from 'webpack';
import webpackConfig fro... |
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js | Jeremy-Meng/actor-platform | import React from 'react';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import CreateGroupStore from 'stores/CreateGroupStore';
import CreateGroupForm from './create-group/Form.react';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
const appEl... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | v2tmobile/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ActivityHeader extends React.Component {
static propTypes = {
close: React.PropTypes.func,
title: React.PropTypes.stri... |
docs/src/app/components/pages/components/Dialog/ExampleAlert.js | tan-jerene/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation.
*/
export default class DialogExampleAler... |
src/applications/hca/config/chapters/vaBenefits/basicInformation.js | department-of-veterans-affairs/vets-website | import React from 'react';
import fullSchemaHca from 'vets-json-schema/dist/10-10EZ-schema.json';
import AdditionalInfo from '@department-of-veterans-affairs/component-library/AdditionalInfo';
import PrefillMessage from 'platform/forms/save-in-progress/PrefillMessage';
import CustomReviewField from '../../../components... |
src/modules/Components/Mail/Inbox.js | rtellez700/MESA_Connect_2.0 | import React, { Component } from 'react';
import { Link } from 'react-router';
import MessageItem from './MessageItem';
import MessageInput from './MessageInput';
import MessageItemList from './MessageItemList';
var LABELS = {
INBOX: 'INBOX',
SENT: 'SENT',
TRASH: 'TRASH'
};
class Inbox extends Compone... |
src/sheetElems/multipleChoiceAnswer/preview.js | lukaszmakuch/quiz | import React from 'react';
import {
FormControl,
FormControlLabel,
} from 'material-ui/Form';
import Checkbox from 'material-ui/Checkbox';
import {correctChoiceVals} from './../choices';
export default answer => {
const correctVals = correctChoiceVals(answer.choices);
return <div>
<FormControl componen... |
src/components/app.js | builderscon/nanp | // @flow
import React from 'react'
import {
StackNavigator,
} from 'react-navigation'
import Home from './screens/home'
import Applicants from './screens/applicants'
import Consent from './screens/consent'
import Scan from './screens/scan'
import Name from './screens/name'
export default StackNavigator({
Home: {... |
src/components/Collection/SitePathCard.js | ndlib/beehive | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import { Card, CardActions, CardMedia, CardHeader, IconButton } from '@material-ui/core'
import { makeStyles } from '@material-ui/core/styles'
import ArrowForwardIcon from '@material-ui/icons/ArrowForward'
import TextOv... |
definitions/npm/react-intl_v2.x.x/test_react-intl_v2.x.x.js | gaborsar/flow-typed | /* @flow */
import React, { Component } from 'react';
import {
intlShape,
addLocaleData,
defineMessages,
injectIntl,
FormattedMessage,
FormattedHTMLMessage,
FormattedDate,
FormattedTime,
FormattedRelative,
FormattedNumber,
FormattedPlural,
IntlProvider,
} from 'react-intl';
import type { IntlSha... |
fields/types/select/SelectColumn.js | mikaoelitiana/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var SelectColumn = React.createClass({
displayName: 'SelectColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTy... |
src/common/components/pages/user/ForgetPasswordPage.js | gocreating/express-react-hmr-boilerplate | import React from 'react';
import PageHeader from 'react-bootstrap/lib/PageHeader';
import PageLayout from '../../layouts/PageLayout';
import ForgetPasswordForm from '../../forms/user/ForgetPasswordForm';
let ForgetPasswordPage = () => (
<PageLayout>
<PageHeader>Forget Password</PageHeader>
<ForgetPasswordFo... |
src/components/search.js | iredchuk/wiki-langlinks-web | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import SearchInputContainer from './search-input-container'
const Container = styled.div`
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
max-width: 800px;
`
const Lang =... |
cloudapp/src/app/index.js | jbrichau/PoolBuddy | import React from 'react';
import ReactDOM from 'react-dom';
import Tabs from 'react-bootstrap/Tabs';
import Tab from 'react-bootstrap/Tab';
import WaterData from './WaterData';
import SoilData from './SoilData';
import WeatherData from './WeatherData';
ReactDOM.render(
<Tabs defaultActiveKey="Weather" id="uncontrol... |
client/src/components/Main/index.js | ncs-jss/plexus-17 | import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import styles from './index.css';
import EventList from '../EventList';
import Event from '../Event';
class Main extends Component {
render() {
return (
<div className={styles.wrapper}>
<div className={`${styles.co... |
test/ShallowWrapper-spec.js | toddw/enzyme | import React from 'react';
import { expect } from 'chai';
import { shallow, render, ShallowWrapper } from '../src/';
import sinon from 'sinon';
import { describeIf } from './_helpers';
import { REACT013 } from '../src/version';
describe('shallow', () => {
describe('context', () => {
it('can pass in context', ()... |
examples/03 Nesting/Drop Targets/Container.js | globexdesigns/react-dnd | import React, { Component } from 'react';
import Dustbin from './Dustbin';
import Box from './Box';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
render() {
return (
<div>
... |
js/lib/jquery-1.7.1/jquery-1.7.1.js | Maikon/GildedRose-Refactoring-Kata | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/helpers/htmlGenerator.js | nitish24p/graficore |
import { StaticRouter } from 'react-router-dom';
import App from './../App';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import fs from 'fs';
import stats from './../../dist/build/stats.json';
const cssSrc = stats.bundle[1];
const vendorJsSrc = stats.vendors;
const bundleJsSrc = stats.... |
ajax/libs/highmaps/5.0.6/highcharts.src.js | dakshshah96/cdnjs | /**
* @license Highcharts JS v5.0.6 (2016-12-07)
*
* (c) 2009-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function(root, factory) {
if (typeof module === 'object' && module.exports) {
module.exports = root.document ?
factory(root) :
factory;
... |
tests/SimpleModalSlideshow-test.js | TiuSh/react-simple-modal-slideshow | import React from 'react';
import { shallow, mount, render } from 'enzyme';
import { expect } from 'chai';
import simple from 'simple-mock';
import SimpleModalSlideshow from '../src/SimpleModalSlideshow.jsx';
import SimpleModal from '../src/SimpleModal.jsx';
import SimpleSlide from '../src/SimpleSlide.jsx';
// TODO: ... |
templates/rubix/demo/src/routes/Social.js | jeffthemaximum/jeffline | import React from 'react';
import {
Row,
Col,
Icon,
Grid,
Panel,
Image,
Button,
PanelBody,
PanelHeader,
PanelFooter,
FormControl,
PanelContainer,
} from '@sketchpixy/rubix';
class SocialBanner extends React.Component {
constructor(props) {
super(props);
this.state = {
follow: '... |
ajax/libs/video.js/4.12.1/video.dev.js | humbletim/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
imports/ui/containers/camera.js | jiyuu-jin/openlens | import React from 'react';
import {composeWithTracker} from 'react-komposer';
import Camera from '../components/camera.js';
import {Points} from '/lib/collections';
const composer = (props, onData) => {
if (Meteor.subscribe('points', Session.get('currentLocation')).ready()) {
const pois = Points.find({'len... |
src/components/posts/list.js | plastical/react-theme | // External dependencies
import React from 'react';
// Internal dependencies
import Post from './single';
import Placeholder from '../placeholder';
const PostList = (props) => {
if (!props.posts) {
return null;
}
const posts = props.posts.map((post, i) =>
<Post key={`post-${i}`} {...post} {...props} /... |
packages/mui-icons-material/lib/esm/Storage.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"
}), 'Storage'); |
src/pages/Weird.js | thibmaek/thibmaek.github.io | import React from 'react';
import { object } from 'prop-types';
import { PageHelmet } from '../components/helmet/';
const Weird = ({ data }) => {
const { title, list, description } = data.contentfulList;
return (
<section>
<PageHelmet title={title} />
<header>
<h1>{title}</h1>
</hea... |
src/WordSoFar.js | leoasis/enter-hangman | import React from 'react';
export default class WordSoFar extends React.Component {
render() {
return <div style={styles.container}>
{this.props.word.split('').join(' ')}
</div>;
}
}
const styles = {
container: {
margin: 30,
fontSize: 25
}
}
|
fixtures/fiber-debugger/src/Fibers.js | billfeller/react | import React from 'react';
import {Motion, spring} from 'react-motion';
import dagre from 'dagre';
// import prettyFormat from 'pretty-format';
// import reactElement from 'pretty-format/plugins/ReactElement';
function getFiberColor(fibers, id) {
if (fibers.currentIDs.indexOf(id) > -1) {
return 'lightgreen';
}... |
ajax/libs/forerunnerdb/1.3.393/fdb-core.min.js | bootcdn/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/components/editor/objects/bericht.js | Q42/CT-3000 | import React from 'react';
import BaseObject from './_baseObject';
import InlineSVG from 'svg-inline-react';
import svg from '!svg-inline-loader!../../../assets/svg/sending.svg';
const springSetting1 = {stiffness: 164, damping: 10};
class Bericht extends React.Component {
constructor(props) {
super(props);
... |
src/svg-icons/image/compare.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCompare = (props) => (
<SvgIcon {...props}>
<path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ImageCo... |
client/src/components/ElementEditor/tests/Summary-test.js | dnadesign/silverstripe-elemental | /* eslint-disable import/no-extraneous-dependencies */
/* global jest, describe, it, expect */
import React from 'react';
import Summary from '../Summary';
import Enzyme, { shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
Enzyme.configure({ adapter: new Adapter() });
describe('Summary', () => ... |
src/containers/DevTools.js | zebapy/react-redux-parse-server | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" defaultIsVisible={false}>
<Lo... |
node_modules/react-icons/ti/user-add.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiUserAdd = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m15 23.3c2.3 0 4.4-0.9 5.9-2.4 1.5-1.5 2.4-3.6 2.4-5.9s-0.9-4.4-2.4-5.9c-1.5-1.5-3.6-2.4-5.9-2.4s-4.4 0.9-5.9 2.4c-1.5 1.5-2.4 3.6-2.4 5.9s0.9 4.4 2.4 5.9c1.5 1.5 3.6... |
ajax/libs/jquery/1.11.1-beta1/jquery.js | perfect-pixell/cdnjs | /*!
* jQuery JavaScript Library v1.11.1-beta1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-03-24T17:21Z
*/
(function( global, factory ) {... |
src/media/js/addon/components/reviewLog.js | mozilla/marketplace-content-tools | import React from 'react';
import {Note} from '../components/comm'
import {Page, PageSection} from '../../site/components/page';
export default class AddonReviewLog extends React.Component {
static propTypes = {
notes: React.PropTypes.array
};
render() {
return (
<ul>
{this.props.notes &... |
node_modules/bower/node_modules/inquirer/node_modules/rx/dist/rx.lite.compat.js | thirdbridge/TM_CMS | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.