path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/index.js | unlayer/react-email-editor | import React, { Component } from 'react';
import { loadScript } from './loadScript';
import pkg from '../package.json';
let lastEditorId = 0;
export default class extends Component {
constructor(props) {
super(props);
this.editorId = props.editorId || `editor-${++lastEditorId}`;
}
componentDidMount() ... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | Firfi/derp-stock-exchange-frontend | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
frontend/containers/MarkdownLink.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom';
const MarkdownLink = ({href, children}) => (
href.match(/^https?:\/\//)
? <a href={href}>{children}</a>
: <Link to={href} href={href}>{children}</Link>
);
MarkdownLink.propTypes = {
href: Prop... |
docs/src/new-components/layout/Header.js | storybooks/react-storybook | import React from 'react';
import styled, { css } from 'styled-components';
import { GlobalStyle } from '../basics/shared/global';
import { Link, Icon, TooltipLinkList, WithTooltip, styles, site } from '../basics';
import { navLinks } from './PageLayout';
const { color, typography, spacing, breakpoint } = styles;
con... |
src/components/trendingDisplay.js | DawnOfHammers/TrendR | import React from 'react';
import Paper from 'material-ui/Paper';
import {Line} from 'react-chartjs-2';
const options = {
maintainAspectRatio: "false",
};
export default class TrendingDisplay extends React.Component{
displayName: 'TrendingDisplay';
props: any;
data = {
datasets: [
{
labe... |
ajax/libs/6to5/1.13.1/browser.js | wenliang-developer/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... |
src/svg-icons/av/replay-5.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay5 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2... |
src/components/Loading.js | mleonard87/merknera-ui | /* @flow */
import React from 'react';
export class Loading extends React.Component {
// props: Props;
render () {
return (
<div>Loading...</div>
);
}
}
export default Loading;
|
src/components/MobileHeader.js | fahmifachreza/fahmifachreza-portofolio | import React from 'react';
export default function MobileHeader() {
return (
<header className="mobile-nav-wrap">
<nav>
<ul className="mobile-nav-list">
<li><a href="https://github.com/fahmifachreza"><i className="icon icon_github" /></a></li>
<li><a href="https://www.linkedin.c... |
ajax/libs/yui/3.7.0/event-custom-base/event-custom-base-coverage.js | artpolikarpov/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
frontend/src/Movie/MoveMovie/MoveMovieModal.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Button from 'Components/Link/Button';
import Modal from 'Components/Modal/Modal';
import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
im... |
src/Toggle/Toggle.spec.js | manchesergit/material-ui | /* eslint-env mocha */
import React from 'react';
import {render} from 'enzyme';
import {assert} from 'chai';
import Toggle from './Toggle';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Toggle />', () => {
const muiTheme = getMuiTheme();
const renderWithContext = (node) => render(node, {context: {mu... |
src/svg-icons/action/alarm-add.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmAdd = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
examples/js/custom/insert-button/default-custom-insert-button.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn, InsertButton } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for... |
packages/material-ui-icons/src/Brightness7.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 ... |
packages/material-ui-icons/src/FlightTakeoffTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M2.5 19h19v2h-19v-2zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 2.59 4.49L21 11.49c.81-.23 1.28-1.05 1.07-1.85z" />
, 'FlightTakeoffTwoTone... |
react_ui/components/SubjectView/SubjFamPanel/subjFamEditView.js | chop-dbhi/biorepo-portal | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import * as SubjFamActions from '../../../actions/subjFam';
import * as SubjectActions from '../../../actions/subject';
import LoadingGif from '../../LoadingGif';
import TextField ... |
app/javascript/mastodon/components/__tests__/autosuggest_emoji-test.js | masarakki/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import AutosuggestEmoji from '../autosuggest_emoji';
describe('<AutosuggestEmoji />', () => {
it('renders native emoji', () => {
const emoji = {
native: '💙',
colons: ':foobar:',
};
const component = renderer.create(<Autos... |
Web/WeatherApp/assets/js/vendor/jquery-1.11.1.min.js | SequencingDOTcom/Weather-My-Way-RTP-App | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/renderers/dom/client/__tests__/ReactDOMSVG-test.js | popovsh6/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
examples/js/cell-edit/dbclick-to-edit-table.js | pvoznyuk/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
spar-examples/js/lib/require.js | sabob/jock | /** vim: et:ts=4:sw=4:sts=4
* @license RequireJS 2.1.14 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
/*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* ... |
sites/default/files/js/js__h4mXSq-qRFbnhzrtwJZyuI9lPKMJxtVsJ4esoC5cPg.js | laura-johnson/sistema-drupal | /*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof windo... |
api/controllers/AdminController.js | wi2/calendar-example | /**
* AdminController
*
* @description :: Server-side logic for managing admins
* @help :: See http://links.sailsjs.org/docs/controllers
*/
import React from 'react';
import {Home, List, Create, Update, Routes} from '../../components/admin/index'
module.exports = {
home: function(req, res) {
var s... |
frontend/component/NewTopic.js | a2393439531/nodepractice | import React from 'react';
import jQuery from 'jquery';
import {addTopic} from '../lib/client';
import {redirectURL} from '../lib/utils';
import TopicEditor from './TopicEditor';
export default class NewTopic extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
render() {
... |
src/modules/BootTab/BootTabPane.js | shengnian/shengnian-ui-react | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { mapToCssModules } from '../../lib/'
const propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
className: PropTypes.string,
cssModule: PropTypes.object,
tabId: PropTypes.any,
}
const defaul... |
packages/material-ui-icons/legacy/BorderColorRounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M17.75 7L14 3.25 4.15 13.1c-.1.1-.15.22-.15.36v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.75 7zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29a.9959.9959 0 0 0-1.41 0L15 2.25 18.75 6l... |
packages/material-ui-icons/src/InfoSharp.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="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" /></React.Fragment>
, 'InfoSharp');
|
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/TimePicker/ExampleInternational.js | pbogdan/react-flux-mui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
const TimePickerInternational = () => (
<div>
<TimePicker
hintText="Custom Labels"
okLabel="确定"
cancelLabel="取消"
/>
</div>
);
export default TimePickerInternational;
|
src/common/components/App.js | LandyCandy/beHeard | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
export default ({children}) => {
return (
<MuiThemeProvider>
<div id="container">
{children}
</div>
</MuiThemeProvider>
);
}
|
app/components/shortcodes/shortcodes.js | ramsaylanier/WordpressExpress | import {map} from 'lodash'
import React from 'react'
function GetShortCode(line) {
const shortcodeObj = {
shortcode: '',
content: '',
params: {}
}
// get shortcode from line (gets everything in between the first set of square brackets)
shortcodeObj.shortcode = line.match(/\[([^\]]*)\]/g)[0].toStri... |
src/TitleBar/windows/Controls/Maximize.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import WindowFocus from '../../../windowFocus';
import { themeContextTypes } from '../../../style/theme/windows';
import { backgroundContextTypes } from '../../../style/background/windows';
import { isDarkColor } from '../../../color';
import... |
src/index.js | nortonbrooke/sonobuno | import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './components/App'
import reducer from './reducers'
import './index.css';
const store = createStore(reducer)
render(
<Provider store={store}>
<App />
</Provid... |
Skins/VetoccitanT3/ReactSrc/node_modules/react-dom/profiling.js | MAN-IN-WAN/Kob-Eye | 'use strict';
function checkDCE() {
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
) {
return;
}
if (process.env.NODE_ENV !== 'production') {
// This branch is unreachable ... |
app/src/components/FeedListItem.js | GetStream/Winds | import React from 'react';
import PropTypes from 'prop-types';
import { Img } from 'react-image';
import { Link } from 'react-router-dom';
import TimeAgo from './TimeAgo';
import getPlaceholderImageURL from '../util/getPlaceholderImageURL';
import { ReactComponent as NoteIcon } from '../images/icons/note.svg';
import... |
sites/all/libraries/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js | mikeusry/lts | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u... |
examples/auth-with-shared-root/components/User.js | nhunzaker/react-router | import React from 'react'
const User = React.createClass({
render() {
return <h1>User: {this.props.params.id}</h1>
}
})
export default User
|
ajax/libs/thorax/2.0.0rc3/thorax.js | jaggedsoft/cdnjs | /*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-1-14
*/
(function( window, undefined ) {
"use strict";... |
core/src/main/webapp/js/ext-3.0.3/pkgs/pkg-forms-debug.js | sages-health/openessence-demo | /*!
* Ext JS Library 3.0.3
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
/**
* @class Ext.form.Field
* @extends Ext.BoxComponent
* Base class for form fields that provides default event handling, sizing, value handling and other functionality.
* @constructor
* Cr... |
js/jquery.localscroll-1.2.5.js | haldun/admin-template | /**
* jQuery.LocalScroll
* Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* Date: 3/10/2008
*
* @projectDescription Animated scrolling navigation, using anchors.
* http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.h... |
files/angular.ui-router.extras/0.0.14/ct-ui-router-extras.min.js | osxi/jsdelivr | /** UI-Router Extras v.0.0.14 Monolithic build (all modules) http://christopherthielen.github.io/ui-router-extras/ - MIT License */
!function(t,e){"use strict";"function"==typeof define&&define.amd?define(["angular"],function(t){e(t)}):e("object"==typeof exports?require("angular"):t.angular)}(this,function(t,e){functio... |
src/retired_code/app/app.js | PrimeLens/react-boiler-create-react-app-with-multipage-and-complex-UI |
// dependancies for this component
import React, { Component } from 'react';
import './app.css';
// ESSENTIAL tools for vanilla javascript control that need to be mounted to the window
// assignemts to window should only appear ONCE in the app codebase afterwhich
// each component should already have access
import ... |
src/svg-icons/maps/navigation.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNavigation = (props) => (
<SvgIcon {...props}>
<path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/>
</SvgIcon>
);
MapsNavigation = pure(MapsNavigation);
MapsNavigation.displayName = 'MapsNavigation';
... |
packages/components/src/DataViewer/Headers/TreeHeader/TreeHeader.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withTranslation } from 'react-i18next';
import { Action } from '../../../Actions';
import theme from './TreeHeader.scss';
import I18N_DOMAIN_COMPONENTS from '../../../constants';
import getDefaultT from '../../.... |
src/components/Footer/Footer.spec.js | chrisvogt/teacher-salaries | import React from 'react'
import { shallow } from 'enzyme'
import Footer from './'
const PROPS = {
copyright: 'Et docere et rerum exquirere causas',
overview: 'Veritas',
quoteText: 'Ma luna a\'e o na lahui a pau ke ola o ke kanaka',
quoteCite: 'Scientia est Potentia'
}
const setup = () => {
return shallow(<... |
src/svg-icons/action/announcement.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAnnouncement = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/>
</SvgIcon>
);
ActionAnnouncement = pu... |
wp-content/themes/capitalx/assets/js/jquery.min.js | idealseed123/idealseed | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/filters/factory.js | stitchfix/pyxleyJS | import React from 'react';
import {SelectButton} from './SelectButton';
import {ConditionalSelectButton} from './ConditionalSelectButton';
import {ApiButton} from './ApiButton';
import {DownloadButton} from './DownloadButton';
import {SliderInput} from './SliderInput';
import {DynamicSearchInput} from './DynamicSearchI... |
gdocs/js/jquery-1.4.1.min.js | pffy/chrome-extension-samples | /*!
* jQuery JavaScript Library v1.4.1
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
_viewlayers/react-router/app/components/about/About.js | mjanssen/graduation-frontend-setups | import React from 'react';
const About = () => (
<div>
<h2>About page 🤘</h2>
</div>
);
export default About;
|
docs/src/pages/premium-themes/onepirate/modules/form/defer.js | Kagami/material-ui | import React from 'react';
function defer(Component) {
class Defer extends React.Component {
state = {
mounted: false,
};
componentDidMount() {
this.setState({ mounted: true });
}
render() {
return <Component mounted={this.state.mounted} {...this.props} />;
}
}
return... |
dashboard/src/index.js | kapmahc/sky | import React from 'react'
import ReactDOM from 'react-dom'
import registerServiceWorker from './registerServiceWorker'
import App from './App'
ReactDOM.render(<App/>, document.getElementById("root"))
registerServiceWorker()
|
src/admin/containers/UsersList.js | u-wave/web | import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import UsersList from '../components/UsersList';
import { loadUsers, setUsersFilter } from '../actions/users';
import {
pageSelector,
pageSizeSelector,
totalUsersSelector,
usersSelector,
} from '../selectors/userSelectors';
cons... |
fields/types/location/LocationColumn.js | linhanyang/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country'];
var LocationColumn = React.createClass({
displayName: 'LocationColumn',
propTypes: {
co... |
fields/types/numberarray/NumberArrayFilter.js | danielmahon/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
Grid,
} from '../../../admin/client/App/elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ label:... |
src/components/Footer.js | raghu666/Reactapp | import React from 'react';
const Footer = () => (
<footer className="foot fixed">
<div>
Copyright © 2017 · Raghu Shivaraman · All Rights Reserved
</div>
<div className="credits">
* This website was made with React and a little bit of Redux *
</div>
<... |
src/Checkbox.js | pandoraui/react-ui | "use strict"
import React from 'react'
import classnames from 'classnames'
import { requireCss } from './themes'
requireCss('checkbox')
class Checkbox extends React.Component {
static displayName = "Checkbox"
static propTypes = {
checked: React.PropTypes.bool,
children: React.PropTypes.any,
className... |
docs/src/app/components/pages/components/Checkbox/Page.js | kasra-co/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import checkboxReadmeText from './README';
import checkboxCode from '!raw!materi... |
lib/svg-icons/communication/forum.js | mobilelife/material-ui | 'use strict';
var React = require('react/addons');
var PureRenderMixin = React.addons.PureRenderMixin;
var SvgIcon = require('../../svg-icon');
var CommunicationForum = React.createClass({
displayName: 'CommunicationForum',
mixins: [PureRenderMixin],
render: function render() {
return React.createElement(... |
app/javascript/mastodon/features/enquete/components/enquete_button.js | dwango/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
const messages = defineMessages({
enquete: { id: 'enquete_button.label... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | mikelafalce/mikelafalce.github.io | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
examples/styled-components/src/containers/Home.js | calvinrbnspiess/react-static | import React from 'react'
import { getSiteProps } from 'react-static'
//
import logoImg from '../logo.png'
export default getSiteProps(() => (
<div>
<h1 style={{ textAlign: 'center' }}>Welcome to</h1>
<img src={logoImg} alt="" />
</div>
))
|
src/components/cards/filters/icon-filter.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import {icon_filters} from '../../../globals/filters';
import Icon from "../../icon";
import Loader from "../../loaders/diamond/loader";
import FilterHeader from "./filter-header";
const IconFilter = ({tooltip = true, header = true,... |
test/components/Link.spec.js | styled-components/styled-components-website | import React from 'react';
import renderer from 'react-test-renderer';
import { mount } from 'enzyme';
import Link, { StyledLink, InlineLink } from '../../components/Link';
test('Link renders correctly', () => {
const tree = renderer.create(<Link href="/" />).toJSON();
expect(tree).toMatchSnapshot();
});
test('S... |
ajax/libs/yui/3.10.0/event-focus/event-focus-debug.js | jaslernl/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
src/svg-icons/action/donut-small.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutSmall = (props) => (
<SvgIcon {...props}>
<path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 1... |
index.android.js | hakale/bestCarRent | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React from 'react'
import {
AppRegistry
} from 'react-native'
import { Provider } from 'react-redux'
import configureStore from './app/configureStore'
import App from './app/app'
const store = configureStore()
const ... |
ajax/libs/analytics.js/2.3.7/analytics.min.js | rlugojr/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
packages/react-server-test-pages/pages/root/reduxAdapter.js | szhou8813/react-server | import {createStore, applyMiddleware} from "redux";
import React from 'react';
import { connect } from 'react-redux';
import {RootElement} from "react-server";
import {RootProvider, ReduxAdapter} from "react-server-redux";
import ReduxThunk from "redux-thunk";
function reduxAdapterReducer(state = {}, action) {
if (ac... |
src/components/App.js | allsportster023/imageViewer | import React from 'react';
import AppMain from './AppMain';
import logo from '../images/AtmosLogo.png';
import '../styles/main.css';
const App = ({children}) => (
<div>
<header>
</header>
<section>
<img className="logo" src={logo} alt={"Could not load logo"} />
<AppMain/>
</section>
</d... |
fields/types/file/FileColumn.js | frontyard/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var LocalFileColumn = React.createClass({
renderValue: function () {
var value = this.props.data.fields[this.props.col.path];
if (!value || !value.filename) ret... |
app/admin/actions/AddSkill.js | ecellju/internship-portal | import React, { Component } from 'react';
import axios from 'axios';
import { Form, Button, Divider } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import Auth from '../../auth/modules/Auth';
const addSkill = skill => axios.post('/api/admin/add-skills', skill, {
headers: {
Authorization: `bearer ... |
test/utils/CustomPropTypesSpec.js | laran/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import CustomPropTypes from '../../src/utils/CustomPropTypes';
import {shouldWarn} from '../helpers';
function isChainableAndUndefinedOK(validatorUnderTest) {
it('Should validate OK with undefined or null values', () => {
assert.is... |
src/routes/wallet/component/WrapperWalletPage.js | hourliert/lifework-wallet | import React, { PropTypes, Component } from 'react';
import pureRender from 'pure-render-decorator';
import { WalletCard, WalletHistoryCard } from 'components';
@pureRender
export default class WrapperWalletPage extends Component {
static propTypes = {
walletBalance: PropTypes.number,
transactions: PropTyp... |
ajax/libs/react-native-web/0.0.0-834df0271/exports/Animated/index.min.js | cdnjs/cdnjs | function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?argumen... |
ajax/libs/jssip/0.6.33/jssip.js | seogi1004/cdnjs | /*
* JsSIP v0.6.33
* the Javascript SIP library
* Copyright: 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)
* Homepage: http://jssip.net
* License: MIT
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&de... |
App/node_modules/react-navigation/src/views/Card.js | Dagers/React-Native-Differential-Updater | /* @flow */
import React from 'react';
import { Animated, StyleSheet } from 'react-native';
import createPointerEventsContainer from './PointerEventsContainer';
import type { NavigationSceneRendererProps } from '../TypeDefinition';
type Props = NavigationSceneRendererProps & {
children: React.Children<*>,
onCo... |
src/interface/icons/Suggestion.js | sMteX/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=idea&i=252366
// Idea by Gregor Cresnar from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<path d="M38.7,90v-2.9c0-1.5,1.2-2.8,2.8-2.8h16.9c1.5,0.1,2.... |
modules/place-list/index.js | hakonhk/vaerhona | import React from 'react';
import PropTypes from 'prop-types';
import { List } from './ui';
import ListItem from './list-item';
const PlaceList = ({ places }) => (
<List>
{places.map((p) => (
<ListItem {...p} key={p.cuid} />
))}
</List>
);
PlaceList.propTypes = {
places: PropTypes.array,
};
expo... |
src/svg-icons/notification/more.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMore = (props) => (
<SvgIcon {...props}>
<path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5... |
src/client/todos/todos.react.js | laxplaer/este | import Component from '../components/component.react';
import React from 'react';
import Todo from './todo.react';
export default class Todos extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
list: React.PropTypes.object.isRequired,
msg: React.PropTypes.object.isRequir... |
liferay-gsearch-workspace/modules/gsearch-react-web/src/main/resources/META-INF/resources/lib/containers/Results/Layouts/Thumbnails.js | peerkar/liferay-gsearch | import React from 'react';
import { Item } from 'semantic-ui-react';
import ResultItemUtil from '../../../utils/ResultItemUtil';
/**
* Thumbnails view.
*
* @param {*} param0
*/
const Thumbnails = ({ items }) => {
return (
<Item.Group>
{items.map(function (item, i) {
l... |
packages/react-devtools-shared/src/bridge.js | Simek/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.
*
* @flow
*/
import EventEmitter from 'events';
import type {ComponentFilter, Wall} from './types';
import type {
InspectedEleme... |
src/components/sidebar-entities/default-sidebar/entity-tags/entity-tags.js | mpigsley/sectors-without-number | import React from 'react';
import Chance from 'chance';
import PropTypes from 'prop-types';
import ReactHintFactory from 'react-hint';
import { FormattedMessage, intlShape } from 'react-intl';
import { EyeOff, RefreshCw, Settings } from 'react-feather';
import FlexContainer from 'primitives/container/flex-container';
... |
example/webpack-2/client/routes.js | iansinnott/react-static-webpack-plugin | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { App, About, Home, NotFound } from './components/App.js';
export const routes = (
<Route path='/' component={App}>
<IndexRoute title='App' component={Home} />
<Route path='about' title='App - About' component={About} />
... |
app/containers/App.js | parrajustin/VueElectron_UTEP | // @flow
import React, { Component } from 'react';
export default class App extends Component {
props: {
children: HTMLElement
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
dva/src/components/MainLayout/MainLayout.js | alcat2008/web-demo | import React from 'react';
import styles from './MainLayout.css';
import Header from './Header';
function MainLayout({ children, location }) {
return (
<div className={styles.normal}>
<Header location={location} />
<div className={styles.content}>
<div className={styles.main}>
{chil... |
src/svg-icons/notification/phone-bluetooth-speaker.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneBluetoothSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M14.71 9.5L17 7.21V11h.5l2.85-2.85L18.21 6l2.15-2.15L17.5 1H17v3.79L14.71 2.5l-.71.71L16.79 6 14 8.79l.71.71zM18 2.91l.94.94-.94.94... |
app/app/components/AdminPanel/Products/EditProduct.js | lycha/masters-thesis | import React from 'react';
import bootstrap from 'bootstrap';
class EditProduct extends React.Component {
constructor(props) {
super(props);
this.displayName = 'EditProduct';
}
getQuery(e) {
e.preventDefault();
let product = {
id: this.refs.id.value,
name: this.refs.... |
src/Pages/Coffee.js | Zangriev/Kentico | import React, { Component } from 'react';
import CoffeeStore from "../Stores/Coffee";
import RichTextElement from '../Components/RichTextElement';
let getState = (props) => {
return {
coffee: CoffeeStore.getCoffee(props.params.coffeeSlug)
};
};
class Coffee extends Component {
constructor(props) {
supe... |
server/server.js | TheEvilCorp/OverReact | import 'babel-register';
import express from 'express';
import path from 'path';
import bodyParser from 'body-parser';
import compression from 'compression';
import Promise from 'bluebird';
import { exec } from 'child_process';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match... |
src/pages/Home/Home.js | nase-skoly/web-app | import React from 'react';
import BetaAlert from '../../components/BetaAlert/BetaAlert';
import HomepageSearch from '../../containers/HomepageSearch/HomepageSearch';
import HowItWorks from '../../components/HowItWorks/HowItWorks';
import styles from './Home.less';
const Home = () => (
<div>
<div className={styl... |
web/test/010-app-test.js | opendaylight/spectrometer | /**
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public L... |
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/ondemand-video.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationOndemandVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/>
</SvgIcon>
);
NotificationOndemandVideo.... |
ajax/libs/forerunnerdb/1.3.841/fdb-all.js | cdnjs/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... |
src/components/Splash.js | opucuk/Discotify | import React from 'react'
import { Link } from 'react-router-dom'
function Splash () {
return (
<div className="Hero">
<h1 className="Hero-Title">Export your Discogs collection to Spotify</h1>
<h2 className="Hero-Subtitle">Discotify is a tool that helps you export your Discogs record collection to Sp... |
src/js/index.js | banmunongtian/react-es6-webpack | import React from 'react';
import ReactDom from 'react-dom';
import '../css/csd.css';
export default class Hello extends React.Component {
constructor(props) {
super(props)
this.state = {
id: 1
}
}
componentWillMont() {
}
render() {
r... |
app/react-icons/fa/snapchat-ghost.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaSnapchatGhost extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m20.4 2.9q3-0.1 5.4 1.5t3.6 4.3q0.7 1.3 0.7 4 0 1-0.2 4.2 0.3 0.2 0.6 ... |
Stepper/Stepper.js | myfintech/material-ui | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
client/src/global/components/icon/24/Speaker.js | ManifoldScholar/manifold | import React, { Component } from "react";
import PropTypes from "prop-types";
import classnames from "classnames";
export default class Speaker extends Component {
static propTypes = {
className: PropTypes.string,
size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
stroke: PropTypes.string,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.