path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/FlatButton/FlatButton.spec.js | pradel/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import FlatButton from './FlatButton';
import getMuiTheme from '../styles/getMuiTheme';
describe('<FlatButton />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node... |
ajax/libs/primereact/7.0.0-rc.2/speeddial/speeddial.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { Button } from 'primereact/button';
import { DomHandler, classNames, ObjectUtils, Ripple } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function")... |
Server/app/assets/javascripts/components/PageToolbarComponent.js | codemeow5/InstFlow | import React from 'react';
export default React.createClass({
render: function(){
return (
<div className="page-toolbar">
<div className="btn-group btn-theme-panel">
<a href="javascript:;" className="btn dropdown-toggle" data-toggle="dropdown">
... |
Libraries/Image/Image.ios.js | salanki/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
node_modules/react-icons/ti/th-large-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiThLargeOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m15 3.3h-8.3c-1.9 0-3.4 1.5-3.4 3.4v8.3c0 1.8 1.5 3.3 3.4 3.3h8.3c1.8 0 3.3-1.5 3.3-3.3v-8.3c0-1.9-1.5-3.4-3.3-3.4z m0 11.7h-8.3v-8.3h8.3v8.3z m18.3-11.7h-8.3c... |
packages/idyll-cli/test/custom-ast/src/components/functional-component.js | idyll-lang/idyll | import React from 'react';
export default () => {
return <div>Let's put the fun back in functional!</div>;
};
|
generators/route/templates/component/_main-hooks.js | prescottprue/generator-react-firebase | import React from 'react'
import { makeStyles } from '@material-ui/core/styles'
import styles from './<%= componentName %>.styles'<% if (addStyle && styleType === 'scss') { %>
import classes from './<%= componentName %>.scss'<%}%>
const useStyles = makeStyles(styles)
function <%= componentName %>() {
const classes ... |
ajax/libs/x-editable/1.4.4/jqueryui-editable/js/jqueryui-editable.js | DeuxHuitHuit/cdnjs | /*! X-editable - v1.4.4
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to for... |
app/javascript/mastodon/features/blocks/index.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll';
import Column from '../ui/components... |
script/jquery-1.4.4.min.js | redraiment/pig | /*!
* jQuery JavaScript Library v1.4.4
* 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.
... |
test/utils/createClientRender.js | kybarg/material-ui | /* eslint-env mocha */
import React from 'react';
import PropTypes from 'prop-types';
import {
act,
buildQueries,
cleanup,
createEvent,
fireEvent as rtlFireEvent,
queries,
render as testingLibraryRender,
} from '@testing-library/react/pure';
// holes are *All* selectors which aren't necessary for id sele... |
app/components/AboutPage.js | ufv-js/ru-now | import React from 'react'
export default ({time}) => <h1>Rota 'about', que também tem acesso ao estado: {time}</h1> |
code/workspaces/web-app/src/components/common/ExternalLink.spec.js | NERC-CEH/datalab | import React from 'react';
import { render } from '@testing-library/react';
import ExternalLink from './ExternalLink';
describe('ExternalLink', () => {
it('renders to match snapshot correctly passing props to child components', () => {
const wrapper = render(<ExternalLink href="http://test-external-link.com">Tes... |
src/pages/Home.js | ianroberts131/visual-algorithms | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Row, Col } from 'react-bootstrap';
class Home extends Component {
render() {
return (
<Row className="home">
<Col xs={ 12 } id="header-section">
<h1 id="home-header">Visual Algorithms</h1>
<h... |
ajax/libs/material-ui/4.9.4/es/Breadcrumbs/Breadcrumbs.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React from 'react';
import { isFragment } from 'react-is';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles... |
packages/ringcentral-widgets-test/test/integration-test/legacy/TextInput.spec.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { shallow, mount } from 'enzyme';
import Textinput from 'ringcentral-widgets/components/TextInput';
describe('<Textinput />', () => {
it('should render correct', () => {
const wrapper = shallow(<Textinput />);
expect(wrapper.find('div').length).toEqual(1);
expect(wrapper... |
demo/src/common/containers/NoMatch.js | misterfresh/react-easy-transition | 'use strict'
import React, { Component } from 'react';
import Helmet from 'react-helmet';
class NoMatch extends Component {
render() {
return (
<div>
<Helmet title='Not Found' />
Page was not found
</div>
)
}
}
export default NoMatch;
|
config/webpack.dev.js | akhandpratapsingh-tudip/Atithi | const helpers = require('./helpers');
const path = require('path');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and dev
/**
* Webpack Plugins
*/
const DefinePlugin = require('webpack/lib/D... |
ajax/libs/react-bootstrap-table/2.6.0-beta.1/react-bootstrap-table.js | brix/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
packages/veritone-react-common/src/components/DataPicker/UploaderViewContainer/index.js | veritone/veritone-sdk | import React from 'react';
import { arrayOf, string, func, shape, bool, number, object, oneOfType } from 'prop-types';
import HTML from 'react-dnd-html5-backend';
import { DndProvider } from 'react-dnd';
import Button from '@material-ui/core/Button';
import CheckCircle from '@material-ui/icons/CheckCircle';
import Inf... |
SearchResults.js | ikhsan/Marvel-Finder | 'use strict';
var React = require('react-native');
var {
StyleSheet,
Image,
View,
TouchableHighlight,
ListView,
Text,
Component
} = React;
var showCharacter = require('./showCharacter');
var styles = StyleSheet.create({
thumb: {
width: 80,
height: 80,
marginRight: 10
},
textContainer:... |
src/parser/druid/feral/modules/features/checklist/Component.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import RACES from 'game/RACES';
import { TooltipElement } from 'common/Tooltip';
import Checklist from 'parser/shared/modules/features/Checklist';
import Rule from 'parser/shared... |
ajax/libs/angular.js/2.0.0-alpha.39/http.min.js | x112358/cdnjs | "use strict";var Reflect;!function(e){function t(e,t,r,n){if(w(n)){if(w(r)){if(!j(e))throw new TypeError;if(!C(t))throw new TypeError;return p(e,t)}if(!j(e))throw new TypeError;if(!S(t))throw new TypeError;return r=R(r),d(e,t,r)}if(!j(e))throw new TypeError;if(!S(t))throw new TypeError;if(w(r))throw new TypeError;if(!S... |
src/components/Static/Address/index.js | jmikrut/keen-2017 | import React from 'react';
export default () => {
return (
<div className="studio">
<h5>Studio</h5>
<p>
<a href="https://goo.gl/maps/qqpUKto1ZP12" target="_blank" rel="noopener noreferrer">
500 Stocking Ave NW<br/>
Grand Rapids, MI 49504<br/>
United States
</a>
</p>
</div>
)
} |
src/containers/Players_Page.js | giladgreen/pokerStats | import React, { Component } from 'react';
import { changeSelectedPlayer } from '../actions/index';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import { Link } from 'react-router';
import xxx from '../dateHelper';
import Sizes from '../sizes';
import { browserHistory } from 'react-rout... |
ajax/libs/clappr/0.0.77/clappr.js | shelsonjava/cdnjs | require=(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)... |
src/components/Board/addVideoIcon.js | motion123/mbookmakerUI | /**
* Created by tomihei on 17/03/21.
*/
import React from 'react';
import styles from './addVideoIcon.css';
import ContentAdd from 'material-ui/svg-icons/av/playlist-add';
import IconButton from 'material-ui/IconButton';
export default class AddVideo extends React.Component {
render() {
const {
openDia... |
Examples/UIExplorer/TabBarIOSExample.js | spicyj/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/index.js | dcritchlow/reading-timer | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/semantic-ui-react/0.67.2/semantic-ui-react.min.js | extend1994/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.semanticUIReact=t(require("React"),require("ReactDOM")):e.semanticUIReact=t(e.React,e.ReactDOM)}(t... |
ajax/libs/algoliasearch.zendesk-hc/2.0.0/algoliasearch.zendesk-hc.min.js | holtkamp/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.algoliasearchZendeskHC=e()}}(function(){var e;return fu... |
plugins/react/frontend/components/controls/base/StringControl/index.js | carteb/carte-blanche | import React from 'react';
import randomValue from './randomValue';
import Row from '../../../form/Grid/Row';
import LeftColumn from '../../../form/Grid/LeftColumn';
import RightColumn from '../../../form/Grid/RightColumn';
import CarteBlancheInput from '../../../form/CarteBlancheInput';
import Label from '../../../for... |
pollard/components/SelectedSong.js | spncrlkt/pollard | import React, { Component } from 'react';
import classNames from 'classnames';
import mergeStyles from '../lib/mergeStyles';
import SongInput from './SongInput';
import TitleArtistLine from './TitleArtistLine';
import MarkPlayedBtn from './MarkPlayedBtn';
import ActionBar from './ActionBar';
export default class Se... |
ajax/libs/thorax/2.0.0rc6/thorax.js | dhowe/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";... |
examples/shopping-cart/src/containers/CartContainer.js | gaearon/redux | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { checkout } from '../actions'
import { getTotal, getCartProducts } from '../reducers'
import Cart from '../components/Cart'
const CartContainer = ({ products, total, checkout }) => (
<Cart
products={product... |
src/components/infoPanel.component.vr.js | craigkj312/node-react-vr-starter | import React from 'react';
import { AppRegistry, asset, StyleSheet, Pano, Text, View, Image, VrButton, Linking } from 'react-vr';
import styles from '../styles/main.stylesheet';
export default class InfoPanel extends React.Component {
constructor(props) {
super(props)
this.state = {firstLink: styl... |
Navigator.js | xxsnakerxx/react-native-ya-navigator | import React from 'react';
import PropTypes from 'prop-types';
import NavBar from './NavBar';
import Scene from './Scene';
import { getNavigationDelegate, replaceInstanceEventedProps } from './utils';
import FBNavigator from './FBNavigator';
import {
StyleSheet,
Platform,
BackHandler,
ViewPropTypes,
} from 're... |
src/containers/__tests__/AppointmentFormScreen.spec.js | Dennitz/Timetable | // @flow
import React from 'react';
import { shallow } from 'enzyme';
import navigatorMock from '../../lib/navigatorMock';
import { AppointmentFormScreen } from '../AppointmentFormScreen';
const props = {
dispatch: jest.fn(),
navigator: navigatorMock,
onSubmit: jest.fn(),
};
describe('AppointmentFormScreen', ()... |
examples/CardReveal.js | react-materialize/react-materialize | import React from 'react';
import Card from '../src/Card';
import CardTitle from '../src/CardTitle';
import Icon from '../src/Icon';
export default
<Card header={<CardTitle reveal image={"img/office.jpg"} waves='light'/>}
title="Card Title"
reveal={<p>Here is some more information about this product that is o... |
webpack/move_to_foreman/components/common/Dialog/Dialog.js | jlsherrill/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, Icon } from 'patternfly-react';
const Dialog = (props) => {
const buttons = (props.buttons)
? props.buttons
: (
<Button
key="cancel"
bsStyle="default"
className="btn-cancel"
onClick={p... |
src/pages/landingPage/schedule/index.js | sunway-official/acm-admin | import React from 'react';
import { Component } from 'react';
import { graphql, compose } from 'react-apollo';
import { queries } from '../helpers';
import * as moment from 'moment';
import { functions } from '../helpers';
import ScheduleForm from './scheduleForm';
import Footer from '../section/footer';
import Header ... |
ajax/libs/jquery.fancytree/2.6.0/jquery.fancytree.js | him2him2/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.6.0
* @dat... |
test/containers/CounterPage.spec.js | openexp/OpenEXP | import React from 'react';
import Enzyme, { mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { Provider } from 'react-redux';
import { createBrowserHistory } from 'history';
import { ConnectedRouter } from 'react-router-redux';
import CounterPage from '../../app/containers/CounterPage';
impo... |
ajax/libs/datatables/1.10.2/js/jquery.js | perfect-pixell/cdnjs | /*! 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/routes.js | c-hernandez/codex-5e | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from 'containers/App/App';
import HomePage from 'containers/HomePage/HomePage';
import SpellPage from 'containers/SpellPage/SpellPage';
export default (
<Route path="/" component={App}>
<IndexRoute component={HomePage} />
... |
test/components/TodoTextInput.spec.js | web-seminar/redux-todo-tdd-demo | import React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import {
createRenderer
} from 'react-addons-test-utils';
import TodoTextInput from '../../src/components/TodoTextInput';
function setup(propOverrides) {
const props = Object.assign({
onSave: spy(),
text: 'TDD Demo',
... |
apps/jquery-1.10.2.js | BrightSet/LightOS | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
web/components/shared/Button/index.js | skidding/flatris | // @flow
import classNames from 'classnames';
import React from 'react';
import type { Node } from 'react';
export type ButtonProps = {|
type?: 'button' | 'submit' | 'reset',
children: Node,
disabled?: boolean,
bgColor?: string,
color?: string,
colorDisabled?: string,
hoverEffect?: boolean,
onClick?:... |
docs/src/ComponentsPage.js | roadmanfong/react-bootstrap | /* eslint react/no-did-mount-set-state: 0 */
import React from 'react';
import Affix from '../../src/Affix';
import Nav from '../../src/Nav';
import SubNav from '../../src/SubNav';
import NavItem from '../../src/NavItem';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PropTable from '... |
src/containers/Asians/TabControls/BreakRounds/EnterBreakRoundResults/Controls/InputProgress/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Instance from './Instance'
export default ({
balProg
}) => {
return (
<div>
<Instance
finished={balProg.finished}
total={balProg.total}
title={'Ballots'}
/>
</div>
)
}
|
index.ios.js | zcs0843021123/Ranger | import React from 'react';
import {
AppRegistry,
} from 'react-native';
import SettingsConfig from './js/SettingsConfig';
import JsPractice from './js/JsPractice';
import EchartsDemo from './js/EchartsDemo';
// AppRegistry.registerComponent('Asuka', () => SettingsConfig);
AppRegistry.registerComponent('ReiAyanami'... |
ACL/src/ACL.js | CloudBoost/cloudboost | import React from 'react';
import ReactDOM from 'react-dom';
import { Modal, Button } from 'react-bootstrap';
import ACLRows from './aclRows.js'
// mui dependencies
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
class ACL extends React.Component {
constructor() {
super()
this.state = {
ac... |
src/svg-icons/content/content-copy.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCopy = (props) => (
<SvgIcon {...props}>
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
</SvgIcon>
);... |
grunt/tasks/release.js | mohitbhatia1994/react | 'use strict';
var grunt = require('grunt');
var BOWER_PATH = '../react-bower/';
var BOWER_GLOB = [BOWER_PATH + '*.{js}'];
var BOWER_FILES = [
'react.js', 'react.min.js', 'JSXTransformer.js',
'react-with-addons.js', 'react-with-addons.min.js',
];
var GH_PAGES_PATH = '../react-gh-pages/';
var GH_PAGES_GLOB = [GH_PA... |
src/components/box/box.stories.js | teamleadercrm/teamleader-ui | import React from 'react';
import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils';
import { number, select } from '@storybook/addon-knobs';
import { Box, TextBody, COLORS, TINTS } from '../../index';
const borderRadiusValues = ['square', 'circle', 'rounded'];
const displayValues = ['inline', 'in... |
js/app.js | pletcher/mission-hacks | import 'babel-polyfill'
import '../css/app.css'
import { browserHistory } from 'react-router'
import { Provider } from 'react-redux'
import { RelayRouter } from 'react-router-relay'
import cookies from 'lib/cookies'
import React from 'react'
import ReactDOM from 'react-dom'
import Relay from 'react-relay'
import route... |
src/svg-icons/file/cloud-upload.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudUpload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.... |
react-music-player/app/helloworld/index.js | zhongshanxian/SUM | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './Root';
render(
<AppContainer>
<Root />
</AppContainer>,
document.getElementById('root')
);
if (module.hot) {
module.hot.accept('./Root', () => {
const Ne... |
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js | NS-Kazuki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ConversationContainer from '../containers/conversation_container';
import ScrollableList from '../../../components/scroll... |
android/source/component/menuButton.js | cloudfavorites/favorites | import React, { Component } from 'react';
import {
Text,
View,
Image,
Alert,
TouchableOpacity
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import FloatButton from './floatButton';
import { FloatButtonStyles } from '../style';
const scrollButtonIcon = "ios-person";
const scrollButt... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-internal-message.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ContentMixin} from './../../common/common.js';
import {Div} from '../../bricks/bricks.js';
import './message.less';
export default React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ContentMixin
],
//@@viewOff:mixins
//@@viewOn:statics
static... |
hello world/1.2 - component/src/components/main.js | wumouren/react-demo | import React from 'react';
export default class Main extends React.Component {
render() {
return (
<div>
<h1>这里是主要内容</h1>
</div>
)
}
} |
components/StoresListings.js | ben-scully/eMazon-Me | import React from 'react'
import { Link } from 'react-router'
import StoreTN from './StoreTN'
class StoresListings extends React.Component {
constructor(props) {
super(props)
}
render () {
return (
<div className="storesPage">
<h1>Stores Listings:</h1>
<div className="storesPageSto... |
src/js/components/Retail/Login/partial/LoginFormOTP.js | ajainsyn/project | import React from 'react';
import { Link } from 'react-router-dom';
const LoginFormOTP = ({...props}) => {
return (
<div className="retail-login">
<div className="retail-login-header">
<h3>
Enter your One Time Password (OTP)
<span className="info-otp">Please check your ... |
client/src/app.js | inxilpro/react-redux-isomorphic-hot-boilerplate | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import createProvider from './provider.js';
import createStore from './store';
// Determine if we have a debug session
let debugSession;
if (__DEV__) {
const matches = window.location.href.match(/[?&]debug_session=([^&]+)\b/);
if (matches &&... |
__tests__/App-test.js | concensus/react-native-ios-concensus | import 'react-native';
import React from 'react';
import App from '../App';
import renderer from 'react-test-renderer';
it('renders the loading screen', async () => {
const tree = renderer.create(<App />).toJSON();
expect(tree).toMatchSnapshot();
});
it('renders the root without loading screen', async () => {
c... |
src/Form/__tests__/FieldRadioButton-test.js | mesosphere/reactjs-components | jest.dontMock("../FieldRadioButton");
/* eslint-disable no-unused-vars */
var React = require("react");
/* eslint-enable no-unused-vars */
var TestUtils;
if (React.version.match(/15.[0-5]/)) {
TestUtils = require("react-addons-test-utils");
} else {
TestUtils = require("react-dom/test-utils");
}
var FieldRadioBu... |
ajax/libs/angular.js/1.0.0rc9/angular-scenario.js | steakknife/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* 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.
... |
ajax/libs/material-ui/5.0.0-alpha.28/internal/svg-icons/MoreHoriz.min.js | cdnjs/cdnjs | import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";import{jsx as _jsx}from"react/jsx-runtime";export default createSvgIcon(_jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),... |
app/containers/App/index.js | Princess310/onehower-frontend | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
app/containers/LanguageProvider/index.js | Generic35/ScalableReactRedux | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
node_modules/antd/es/progress/progress.js | ZSMingNB/react-news | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
packages/react-scripts/scripts/utils/verifyPackageTree.js | maletor/create-react-app | // @remove-file-on-eject
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
const chalk = require('chalk');
const fs = require('fs');
const path = require('path');
// We a... |
website/src/pages/index.js | nuke-build/nuke | import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
export default function Home() {
const {siteConfig} = useDocusaurusContext();
re... |
public/localization/nl-BE.js | easybird/easybird.be_blog | module.exports = {
generic: {
LOCALE_DISPLAY: 'Nederlands',
PENCILBLUE: 'PencilBlue',
ALL_RIGHTS: 'Alle rechten voorbehouden',
NONE: 'Geen',
LEFT: 'Links',
CENTER: 'Centreren',
RIGHT: 'Rechts',
YES: 'Ja',
NO: 'Nee',
NEW: 'Nieuw',
... |
src/checkbox/__tests__/CheckBox.js | martinezguillaume/react-native-elements | import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import CheckBox from '../CheckBox';
describe('CheckBox Component', () => {
it('should render without issues', () => {
const component = shallow(<CheckBox />);
expect(component.length).toBe(1);
expect(toJson... |
src/svg-icons/social/school.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSchool = (props) => (
<SvgIcon {...props}>
<path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/>
</SvgIcon>
);
SocialSchool = pure(SocialSchool);
SocialSchool.displayNa... |
ajax/libs/webshim/1.14.4/dev/shims/combos/26.js | ruslanas/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
user_guide/searchindex.js | Gilolume/PPE_appli_frais | Search.setIndex({envversion:42,terms:{represent:[25,115,13,79],mybackup:75,yellow:[6,129],poorli:91,four:[149,87,53,135,54,125,121,130,124],prefix:[87,94,2,29],oldest:130,hate:131,optimize_databas:75,forget:[50,103],whose:29,accur:[0,29,114,151,41,93],aug:91,emailaddress:50,my_control:[101,110],site_url:[81,96,21,7,29]... |
src/App.js | jnarowski/react-metropolis | require('./main.scss');
import Router from 'react-router';
import { DefaultRoute, Link, Route, RouteHandler } from 'react-router';
import React, { Component } from 'react';
import Show from './components/core/show.js';
import Index from './components/core/index.js';
export default class App extends Component {
re... |
examples/shared-root/app.js | bmathews/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the url,
when routes have no pa... |
src/components/pc_product.js | YMFL/reactNews | /**
* Created by YangQianHui on 2017/4/8.
*/
import React from 'react';
class AppComponent extends React.Component {
render() {
return (
<div>
</div>
);
}
}
AppComponent.defaultProps = {
};
export default AppComponent;
|
src/views/UserDetail/UserDetailFullscreen.js | folio-org/ui-users | import React from 'react';
import { Paneset } from '@folio/stripes/components';
import UserDetail from './UserDetail';
export default function UserDetailFullscreen(props) {
return (
<Paneset>
<UserDetail paneWidth="fill" {...props} />
</Paneset>
);
}
|
src/js/components/icons/base/Descend.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
app/javascript/mastodon/features/ui/components/audio_modal.js | lynlynlynx/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Audio from 'mastodon/features/audio';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { previewState } from './video_modal'... |
src/modules/html/index.js | pborrego/demo-cep-base | import React from 'react';
function HTML({ html, assets }) {
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
... |
src/components/Volunteer.js | RicardoG2016/WRFD-project-site | import React, { Component } from 'react';
import '../App.css';
class Volunteer extends Component {
componentDidMount(){
window.scrollTo(0, 0);
}
render() {
return (
<div id="about">
<div className="row">
<div className="col-md-6 col-2 bg-inverse text-white py-2 d-flex align-it... |
src/components/Nav/NavItem.js | wundery/wundery-ui-react | // React
import React from 'react';
// Utils
import classnames from 'classnames';
const NavItem = props => (
<div
className={classnames('ui-nav-navitem', {
'ui-nav-navitem-right': props.right,
'ui-nav-navitem-brand': props.brand,
})}
>
{props.children}
</div>
);
NavItem.propTypes = {
... |
node_modules/react/lib/ReactChildReconciler.js | 15chrjef/mobileHackerNews | /**
* Copyright 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... |
web/js/jquery-1.9.0.js | Jrbebel/Inra | /*!
* 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";... |
basic/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-for-of/node_modules/babel-runtime/helpers/jsx.js | jintoppy/react-training | "use strict";
exports.__esModule = true;
var _for = require("../core-js/symbol/for");
var _for2 = _interopRequireDefault(_for);
var _symbol = require("../core-js/symbol");
var _symbol2 = _interopRequireDefault(_symbol);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; ... |
bower_components/tether/docs/welcome/js/jquery.js | sentryguides/sentry | /*!
* jQuery JavaScript Library v1.9.1
* 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-2-4
*/
(function( window, undefined ) {
// Can't do t... |
ajax/libs/zeroclipboard/2.0.0-beta.8/ZeroClipboard.js | jaywcjlove/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.0-beta.8
*/
(function(window, undefined) {
"use s... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInferred.js | samwgoldman/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
static defaultProps = {};
props: Props;
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
static defaultProps = {};
... |
storybook/stories/character_counter.story.js | mecab/mastodon | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import CharacterCounter from 'mastodon/features/compose/components/character_counter';
storiesOf('CharacterCounter', module)
.add('no text', () => {
const text = '';
return <CharacterCounter text={text} max={500} />;
})
.add('a few... |
src/example/App/index.js | remedux/subscription-container | import React from 'react';
import { SubContainer } from '../..';
import css from './App.css';
const App = () => (
<div className={css.app}>
<h1>subscription-container</h1>
<SubContainer />
</div>
);
export default App;
|
src/svg-icons/maps/train.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTrain = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
client/index.js | YMFE/yapi | import './styles/common.scss';
import './styles/theme.less';
import { LocaleProvider } from 'antd';
import './plugin';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './Application';
import { Provider } from 'react-redux';
import createStore from './reducer/create';
// 由于 antd 组件的默认文案是英文,... |
extensions/SemanticForms/libs/jquery-1.4.2.min.js | SuriyaaKudoIsc/wikia-app-test |
(function(window,undefined){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context);},_jQuery=window.jQuery,_$=window.$,document=window.document,rootjQuery,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,isSimple=/^.[^:#\[\.,]*$/,rnotwhite=/\S/,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,rsingleTag=... |
packages/material-ui-icons/src/BugReport.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let BugReport = props =>
<SvgIcon {...props}>
<path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.