path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/components/Heading/__tests__/Heading.js | thegrinder/basic-styled-uikit | import React from 'react';
import { ThemeProvider } from 'styled-components';
import { render, cleanup } from '@testing-library/react';
import theme from '../../../theme/theme';
import Heading from '../Heading';
const children = 'children';
const renderComponent = (props = {}) =>
render(
<ThemeProvider theme={... |
packages/ringcentral-widgets-docs/src/app/pages/Components/Environment/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import Environment from 'ringcentral-widgets/components/Environment';
const props = {};
props.server = 'test string';
props.recordingHost = 'test string';
props.enabled = false;
props.onSetData = () => null;
props.defaultHidden = false;
/**
* A example of `Envir... |
app/javascript/mastodon/features/list_adder/index.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListAdder, resetListAdder } from '... |
Rosa_Madeira/Revendedor/src/components/common/card_produto/Card.js | victorditadi/IQApp | import React from 'react';
import { View } from 'react-native';
const Card = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderWidth: 1,
borderRadius: 2,
borderColor: '#846848',
borderBottomWidth: 0,
... |
tests/view/components/checkBoxTest.js | salesforce/refocus | /**
* Copyright (c) 2016, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* tests/view/components/formTest.js
*/
import React from 'react';
import Reac... |
src/components/IssueTable/IssueTable.js | IndyXTechFellowship/Cultural-Trail-Web | import React from 'react';
import classes from './IssueTable.scss';
import _ from 'lodash'
// components
import { Table } from 'react-bootstrap';
import IssueRow from './IssueRow';
const renderIssueRow = (props) => {
const hasData = _.has(props, 'issues')
if(hasData && props.issues !== undefined){
return prop... |
atom/atom.symlink/packages/file-icons/node_modules/debug/src/browser.js | bss/dotfiles | /**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrom... |
ajax/libs/yui/3.17.0/datatable-body/datatable-body-coverage.js | kristoferjoseph/cdnjs | /*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-body/datatable-body.js']) {
__coverage__['build/datatable-body/datatable-... |
react-client/src/index.js | dhanushuUzumaki/Journal | /* global document */
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/createBrowserHistory';
import { ConnectedRouter } from 'react-router-redux';
import { Provider } from 'react-redux';
import configureStore from './store/';
import App from './components/App';
import './... |
lib-dist/svg-icons/editor/format-indent-increase.js | IsenrichO/mui-with-arrows | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
app/index.js | FuBoTeam/fubo-flea-market | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { configure } from 'redux-auth';
import configureStore from './stores/configure... |
src/client/modules/forms/components/TextField.js | dunika/job-admin | import React from 'react';
import styled from 'styled-components';
import { compose, mapProps } from 'recompose';
import { formInput } from '../hoc';
const Input = styled.input``;
const TextArea = styled.textarea``;
const TextField = ({ Component, id, label, ...rest }) => (
<Component
{...rest}
id={id}
... |
src/client/assets/javascripts/components/NotFound/NotFound.js | richbai90/CS2810 | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class NotFound extends Component {
render() {
return (
<div className="container text-center">
<h1>This is a demo 404 page!</h1>
<hr />
<Link to="/">Back To Home View</Link>
</div>
... |
react-flux-mui/js/material-ui/src/RadioButton/RadioButtonGroup.spec.js | pbogdan/react-flux-mui | /* eslint-env mocha */
import React from 'react';
import {assert} from 'chai';
import {shallow} from 'enzyme';
import RadioButtonGroup from './RadioButtonGroup';
import getMuiTheme from '../styles/getMuiTheme';
describe('<RadioButtonGroup />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (no... |
src/svg-icons/action/room.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoom = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z... |
test/month_test.js | bekerov/react-datepicker-roco | import React from 'react'
import ReactDOM from 'react-dom'
import TestUtils from 'react-addons-test-utils'
import moment from 'moment'
import Month from '../src/month'
import Day from '../src/day'
import range from 'lodash/range'
describe('Month', () => {
it('should have the month CSS class', () => {
const month... |
Examples/Example/App.js | devstepbcn/react-native-android-wifi | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Modal,
StyleSheet,
Text,
TextInput,
TouchableHighlight,
ScrollView,
View,
PermissionsAndroid
} from 'react-native';
import wifi from 'react-native-android-wifi';
... |
src/server.js | Jastrzebowski/react-logo | /* global process, __dirname*/
// import path from 'path'
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import koa from 'koa'
import logger from 'koa-logger'
import route from 'koa-route'
// import assets from '../_cache/assets.json'
const app = koa()
const port = process.env.PORT || 1138... |
ajax/libs/yui/3.9.1/event-focus/event-focus.js | janpaepke/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() {
... |
docs/src/sections/DatePickerFormatterSection.js | yyssc/ssc-grid | import React from 'react';
import Anchor from '../Anchor';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function DatePickerFormatterSection() {
return (
<div className="bs-docs-section">
<h3><Anchor id="date-picker-formatter">DatePicker格式化</Anchor></h3... |
actor-apps/app-web/src/app/components/dialog/messages/Text.react.js | yangchaogit/actor-platform | import _ from 'lodash';
import React from 'react';
import memoize from 'memoizee';
import emojify from 'emojify.js';
import emojiCharacters from 'emoji-named-characters';
import Markdown from '../../../utils/Markdown';
const inversedEmojiCharacters = _.invert(_.mapValues(emojiCharacters, (e) => e.character));
emoj... |
src/FilePicker/FilePicker.spec.js | skyiea/wix-style-react | import React from 'react';
import FilePicker from './FilePicker';
import filePickerDriverFactory from './FilePicker.driver';
import {createDriverFactory} from '../test-common';
import {filePickerTestkitFactory} from '../../testkit';
import {filePickerTestkitFactory as enzymeFilePickerTestkitFactory} from '../../testkit... |
packages/material-ui-icons/src/VerticalSplit.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 15h8v-2H3v2zm0 4h8v-2H3v2zm0-8h8V9H3v2zm0-6v2h8V5H3zm10 0h8v14h-8V5z" />
, 'VerticalSplit');
|
Agiil.Web.Client/src/components/modals/ModalBackground.js | csf-dev/agiil | //@flow
import React from 'react';
// $FlowFixMe
import styles from './ModalBackground.module.scss';
export function ModalBackground() {
return (
<div className={styles.modalBackground} />
);
} |
node_modules/react-router/es/IndexRedirect.js | angustas/company | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.string,
object = _React$PropTypes.object;
/**
* An <IndexRedir... |
src/blog/index.js | markmiro/react-static-boilerplate | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React from 'react';
export default class {
render() {
return (
<div>
<h1>Blog</h1>
<p>Coming soon.</p>
</div>
);
}
};
|
src/shared/zarizeni/umistovani/__tests__/NedavneLokality.spec.js | hhjcz/too-simple-react-skeleton | /** Created by hhj on 4/25/16. */
/* eslint-disable no-unused-expressions, no-unused-vars, import/no-extraneous-dependencies */
import { expect } from 'chai'
import React from 'react'
import sd from 'skin-deep'
import NedavneLokality from '../NedavneLokality'
describe('umistovani NedavneLokality component', () => {
... |
index.ios.js | withwind318/RNAppDemos | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class RNAppDemos extends Component {
render() {
return (
<View style={styles.containe... |
presentation/interactive.js | tdmckinn/react-es-presentation |
import React, { Component } from 'react';
import { Heading } from 'spectacle';
import Iframe from 'react-iframe';
export default class Interactive extends Component {
constructor() {
super();
this.state = {
count: 0
};
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
... |
src/components/Home/Home.js | ratchagarn/react-redux-playground | /**
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* Component - Counter
* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
*/
import React from 'react';
export default Home;
/**
* Prop types
* --------------------------------------------------------
*/
Home.PropTypes = {};
/**
* -----... |
node_modules/react-router/modules/Router.js | midknightmare/menuology | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
docs/app/Examples/elements/Container/Types/ContainerExampleText.js | clemensw/stardust | /* eslint-disable max-len */
import React from 'react'
import { Container, Header } from 'semantic-ui-react'
const ContainerExampleText = () => (
<Container text>
<Header as='h2'>Header</Header>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa stron... |
src/svg-icons/navigation/arrow-downward.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDownward = (props) => (
<SvgIcon {...props}>
<path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/>
</SvgIcon>
);
NavigationArrowDownward = pure(NavigationArrowDownward);
Na... |
frontend/src/containers/GraphToolbar/GraphToolbar.js | temaptz/life-analytics | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import SelectGraph from '../../components/SelectGraph/SelectGraph';
import GraphActions from '../../components/GraphActions/GraphActions';
import TimePeriodPanel from '../../components/TimePeriod/TimePeriodPane... |
frontend/src/components/dialog/internal-link-dialog.js | miurahr/seahub | import React from 'react';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import PropTypes from 'prop-types';
import toaster from '../toast';
import copy from '../copy-to-clipboard';
import { gettext } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
... |
app/containers/PlayListFeed/index.js | fenderface66/spotify-smart-playlists | /*
* PlayListFeed
*
* Shows a feed of users playlists
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectPlaylists, makeSelectLoading, makeSele... |
src/client/components/Navigation/Notifications/NotificationReblog.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, FormattedRelative } from 'react-intl';
import { Link } from 'react-router-dom';
import Avatar from '../../Avatar';
import { epochToUTC } from '../../../helpers/formatter';
import './Notificatio... |
src/components/Header/Header.js | ZoeyYoung/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
ajax/libs/phaser/2.1.0/custom/p2.js | askehansen/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
src/docs/examples/TextInput/ExampleError.js | tlraridon/ps-react-train-tlr | import React from 'react';
import TextInput from 'ps-react-train-tlr/TextInput';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
onChan... |
src/pages/page-2.js | wikander/mitt | import React from 'react'
import Link from 'gatsby-link'
const SecondPage = () => (
<div>
<h1>Hi from the second page</h1>
<p>Welcome to page 2</p>
<Link to="/">Go back to the homepage</Link>
</div>
)
export default SecondPage
|
src/components/CodeSnippet/CodeSnippet.Skeleton.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classNames from 'classnames';
import { settings } from '... |
sites/all/modules/jquery_update/replace/jquery/1.11/jquery.min.js | KennaW/drupal-cooking-with-blog | /*! jQuery v1.11.2 | (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... |
conference-management-system-front-end/src/components/addPaperForm.js | Kokosowys/conference-management-system | import React, {Component} from 'react';
class AddPaperForm extends Component {
render() {
return (
<form onSubmit={this.props.handleSubmit}>
<label htmlFor="userName">Name:</label><br/>
<input type="text" id="userName" name="name" required />
<br/... |
Samples/Provisioning.Services.SiteManager/Provisioning.Services.SiteManager.AppWeb/Scripts/jquery-1.9.1.min.js | grazies/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
clients/packages/admin-client/src/components/navigation/navbar/navbar-edition-wrapper.spec.js | nossas/bonde-client | import React from 'react';
import { expect } from 'chai';
import shallowWithIntl from '../../../intl/helpers/shallow-with-intl';
import { NavbarEditionWrapper } from '../../../components/navigation/navbar/navbar-edition-wrapper';
import { IntlProvider } from 'react-intl';
const intlProvider = new IntlProvider({ local... |
app/containers/App/index.js | tzibur/site | /**
*
* 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... |
ajax/libs/glamorous/3.15.1/glamorous.umd.tiny.min.js | maruilian11/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("glamor")):"function"==typeof define&&define.amd?define(["react","glamor"],t):e.glamorous=t(e.React,e.Glamor)}(this,function(e,t){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?argum... |
ajax/libs/grommet-index/0.2.1/grommet-index.min.js | maruilian11/cdnjs | var GrommetIndex=function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:!1};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.loaded... |
Samples/OfficeGraph.Demo.App/OfficeGraph.Demo.App/Scripts/jquery-1.9.1.js | srirams007/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
webapp/app/components/RestoreCreation/index.js | EIP-SAM/SAM-Solution-Server | //
// Component page save
//
import React from 'react';
import { PageHeader } from 'react-bootstrap';
import RestoreCreationForm from 'containers/RestoreCreation/Form';
/* eslint-disable react/prefer-stateless-function */
export default class RestoreCreation extends React.Component {
componentWillUnmount() {
th... |
components/Divider.js | amni/alanmni-portfolio | import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Helmet from "react-helmet"
import { config } from 'config'
export default class Divider extends React.Component {
render () {
return (
<hr style= {{marginTop:"8%", width:"10%", marginLeft:"au... |
files/parsleyjs/2.1.2/parsley.remote.js | 2947721120/adamant-waffle | // `window.ParsleyExtend`, like `ParsleyAbstract`, is inherited by `ParsleyField` and `ParsleyForm`
// That way, we could add new methods or redefine some for these both classes. In particular case
// We are adding async validation methods that returns promises, bind them properly to triggered
// Events like onkeyup wh... |
gbe/resources/assets/js/app.js | DemocracyApps/Community-Budget-Explorer | require('babelify/polyfill');
import React from 'react';
import Site from './components/Site';
var dispatcher = require('./common/BudgetAppDispatcher');
var ActionTypes = require('./constants/ActionTypes');
var idGenerator = require('./common/IdGenerator');
var apiActions = require('./common/ApiActions');
/*
* Sinc... |
examples/src/BasicExample/BasicExample.js | DanielMontesDeOca/react-autosuggest | import React, { Component } from 'react';
import utils from '../utils';
import Autosuggest from '../../../src/Autosuggest';
import SourceCodeLink from '../SourceCodeLink/SourceCodeLink';
import suburbs from 'json!../suburbs.json';
function getSuggestions(input, callback) {
const escapedInput = utils.escapeRegexChara... |
src/components/lists/unorderedlist.js | timludikar/component-library | import React from 'react';
import ListItem from './listitem';
import styles from './stylesheet/lists.styl';
const UnorderedList = ({ children, style = {} }) => (
<ul
className={styles.ul}
style={{ ...style }}
>
{children}
</ul>
);
UnorderedList.propTypes = {
children: React.PropTypes.oneOfType([
... |
src/svg-icons/navigation/arrow-drop-down-circle.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDownCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/>
</SvgIcon>
);
NavigationArrowDropDownCircle =... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleSelection.js | clemensw/stardust | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { friendOptions } from '../common'
// friendOptions = [
// {
// text: 'Jenny Hess',
// value: 'Jenny Hess',
// image: { avatar: true, src: '/assets/images/avatar/small/jenny.jpg' },
// },
// ...
// ]
const DropdownExampleS... |
node_modules/react/lib/ReactComponentEnvironment.js | banesrdjevic/ExtremeSimon | /**
* 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... |
js/components/organisms/UserPanel/UserPanel.react.js | Freizeitler/curcooma-game | /*
* User Panel: Organism
* TODO: put dl into organism
*/
import React, { Component } from 'react';
import UserInfo from '../../molecules/UserInfo/UserInfo.react';
export default class UserPanel extends Component {
render() {
var combinedClasses = this.props.colorClass + ' controls';
return (
<aside ... |
server/sonar-web/src/main/js/apps/project-permissions/permissions.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/renderers/shared/fiber/__tests__/ReactTopLevelText-test.js | shergin/react | /**
* Copyright 2013-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.
*
* @emails react... |
client/containers/routes.js | viatsko/codingbox | import React from 'react';
import { Router, Route } from 'react-router';
import Main from './Main';
import Signin from './Signin';
import Signup from './Signup';
import ErrorNotFound from './ErrorNotFound';
/**
* The React Router 1.0 routes for both the server and the client.
*/
module.exports = (
<Router>
<Rout... |
react-router-es6-example/src/Signup.js | akhilaantony/React-Stylisted | import React, { Component } from 'react';
import { Modal } from 'react-overlays';
const modalStyle = {
position: 'fixed',
zIndex: 1080,
top: 0, bottom: 0, left: 0, right: 0
};
const backdropStyle = {
...modalStyle,
zIndex: 'auto',
//backgroundColor: '#000',
opacity: 0.5
};
const dialogStyle = function(... |
imports/ui/dataTable/helpers.js | ctagroup/home-app | import '/imports/ui/dataTable/dataTableEditButton';
import '/imports/ui/dataTable/dataTableDeleteButton';
import '/imports/ui/dataTable/dataTableTextButton';
import '/imports/ui/dataTable/createButton';
import { fullName } from '/imports/api/utils';
import { formatDate } from '/imports/both/helpers';
import BlazeTempla... |
modules/Link.js | ustccjw/react-router | import React from 'react'
import warning from 'warning'
const { bool, object, string, func } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
function isEmptyObject(obj... |
client/components/Header.js | glenrage/another-chance | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
const LoggedOutView = props => {
if (!props.currentUser) {
return (
<ul className="nav navbar-nav navbar-right">
<li className="nav-item">
<Link to="/" className="nav-link">
... |
src/app.js | albburtsev/migrate-to-redux | import 'bootstrap/dist/css/bootstrap.css';
import 'styl/app.styl';
import store from 'store';
import * as paths from 'paths';
import {createHistory} from 'history';
import {Router, Route, IndexRoute} from 'react-router';
import React from 'react';
import {Provider} from 'react-redux';
import ReactDOM from 'react/lib/... |
src/modules/mapping/components/CwpDialog/CwpDialog.js | devteamreims/4me.react | import React, { Component } from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import R from 'ramda';
import {
clients as envClients,
sectors as envSectors,
} from '../../../../shared/env';
const { prettyName } = envSectors;
const { getClientById } = envClients;
import Dialog from 'mate... |
src/containers/OnboardingSelectCity.js | ontappl/rn | import React from 'react';
import {connect,} from 'react-redux';
import {
ListView,
InteractionManager,
} from 'react-native';
import {OnboardingSelectCity as OnboardingSelectCityComponent,} from '../components';
import {fetchCitiesRequest,} from '../actions/cities';
import {selectCity,} from '../actions/onboa... |
docs/app/Examples/elements/Divider/index.js | clemensw/stardust | import React from 'react'
import Types from './Types'
import Variations from './Variations'
const DividerExamples = () => (
<div>
<Types />
<Variations />
</div>
)
export default DividerExamples
|
chrome/spec/__tests__/Form-test.js | hnry/kindred | import React from 'react'
import {shallow, mount} from 'enzyme'
const {Form, Input} = require('../../src/options.js')
describe('Form', () => {
it('renders 4 <Input /> initially', () => {
const f = shallow(<Form action='new' />)
const inputs = f.find(Input)
expect(inputs.length).toBe(4)
})
it('rend... |
misc/jquery.js | jeffstric/DrupalStudy |
/*!
* 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.... |
ajax/libs/video.js/5.0.0-rc.54/alt/video.novtt.js | drewfreyling/cdnjs | /**
* @license
* Video.js 5.0.0-rc.54 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports... |
js/player/ButtonPanel.js | GyrosOfWar/podcaster-frontend | import React from 'react'
import { Button, Glyphicon, ButtonGroup } from 'react-bootstrap'
const ButtonPanel = React.createClass({
getDefaultProps: function() {
return {
currentSongIndex: 0,
songCount: 0
};
},
render: function() {
var isPlaying = this.props.isPlaying;
var isPause = this.props.isPau... |
themes/hugo-tracks-theme/static/js/jquery.min.js | MisterDoom/studenthack | /*! jQuery v1.11.0 | (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... |
website/core/DocsSidebar.js | alantrrs/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... |
test/spec/FileTreeView-test.js | flukeout/brackets | /*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights... |
packages/react-ui-core/src/DatePicker/__tests__/Calendar-test.js | rentpath/react-ui | import React from 'react'
import { shallow } from 'enzyme'
import format from 'date-fns/format'
import getDaysInMonth from 'date-fns/getDaysInMonth'
import ThemedCalendar from '../Calendar'
const theme = {
'Calendar_Date-active': 'Calendar_Date-active',
'Calendar_Date-disabled': 'Calendar_Date-disabled',
}
const ... |
dist/1.8.1/jquery-ajax-css-deprecated-dimensions.js | eric-seekas/jquery-builder | /*!
* jQuery JavaScript Library v1.8.1 -deprecated,-css,-ajax,-ajax/jsonp,-ajax/script,-ajax/xhr,-effects,-offset,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/licen... |
docs/src/app/components/pages/components/List/Page.js | frnk94/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 listReadmeText from './README';
import listExampleSimpleCode from '!raw!.... |
src/parser/druid/feral/modules/azeritetraits/JungleFury.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { calculateAzeriteEffects } from 'common/stats';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import StatTracker from 'pars... |
core/assets/vendor/backbone/backbone.js | YashiMalhotra/drupalsolr | // Backbone.js 1.2.3
// (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(factory) {
// Establish the root object, `window` (`se... |
src/parser/rogue/assassination/modules/core/Snapshot.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import { encodeTargetString } from 'parser/shared/modules/EnemyInstances';
import calculateEffectiveDamage from 'parser/... |
packages/material-ui-icons/src/GTranslateRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09... |
ajax/libs/highcharts/4.1.1/highcharts.src.js | CrossEye/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.1.1 (2015-02-17)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear... |
src/Tooltip.js | bvasko/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import CustomPropTypes from './utils/CustomPropTypes';
export default class Tooltip extends React.Component {
render() {
const {
placement,
positionLeft,
positionTop,
arrowOffsetLeft,
arrowOffsetTop,
className,
... |
docs/src/examples/modules/Dimmer/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import States from './States'
import Types from './Types'
import Variations from './Variations'
import Usage from './Usage'
const DimmerExamples = () => (
<div>
<Types />
<States />
<Variations />
<Usage />
</div>
)
export default DimmerExamples
|
client/index.js | yaatra/PointBreak | import './index.scss'
import React from 'react'
import ReactDOM from 'react-dom'
import {Provider} from 'react-redux'
import store from './store'
import Routes from './routes'
// establishes socket connection
import './socket'
ReactDOM.render(
<Provider store={store}>
<Routes />
</Provider>,
document.getEle... |
docs/app/Examples/collections/Form/States/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const FormStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Loading'
description='If ... |
ajax/libs/react-instantsearch/3.1.0/Dom.js | joeyparrish/cdnjs | /*! ReactInstantSearch 3.1.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
examples/websocket/priv/static/jquery.min.js | yangchengjian/cowboy | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
src/directives/progress.directive.js | megoth/es6app | import React from 'react';
import Progress from './components/Progress.jsx!';
class ProgressDirective {
constructor(slidesService, socketService) {
var slides = slidesService.get();
return function (scope, element) {
socketService.onProgressUpdate(function (list) {
var progressElement = React.c... |
src/internal/EnhancedButton.spec.js | mit-cml/iot-website-source | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import EnhancedButton from './EnhancedButton';
import getMuiTheme from '../styles/getMuiTheme';
describe('<EnhancedButton />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => ... |
ajax/libs/jQRangeSlider/5.1/jQRangeSliderBar.js | keicheng/cdnjs | /**
* jQRangeSlider
* A javascript slider selector that supports dates
*
* Copyright (C) Guillaume Gautreau 2012
* Dual licensed under the MIT or GPL Version 2 licenses.
*
*/
(function($, undefined){
"use strict";
$.widget("ui.rangeSliderBar", $.ui.rangeSliderDraggable, {
options: {
leftHandle: null,
... |
packages/material-ui-icons/src/Send.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z" />
, 'Send');
|
ajax/libs/vue/2.5.17/vue.runtime.esm.js | extend1994/cdnjs | /*!
* Vue.js v2.5.17
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
/* */
var emptyObject = Object.freeze({});
// these helpers produces better vm code in JS engines due to their
// explicitness and function inlining
function isUndef (v) {
return v === undefined || v === null
}
function isDef (... |
docs/src/app/components/pages/components/SelectField/ExampleCustomLabel.js | tan-jerene/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
export default class SelectFieldExampleCustomLabel extends React.Component {
constructor(props) {
super(props);
this.state = {value: 1};
}
handleChange = (event, index, value) => t... |
src/pages/Dashboard/EmailChart.js | JSLancerTeam/crystal-dashboard | import React from 'react';
import ChartistGraph from 'react-chartist';
// Chartist.Pie('#chartPreferences', dataPreferences, optionsPreferences);
// Chartist.Pie('#chartPreferences', {
// labels: ['62%','32%','6%'],
// series: [62, 32, 6]
// });
const EmailStatistic = () => {
let dataPreferences = {
labels: [... |
src/pages/Home/index.js | elarasu/HackerNews | import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import { Actions } from 'react-native-router-flux';
import { Page } from 'HackerNews/src/components';
import ApolloClient, { createNetworkInterface } from 'apollo-client';
import { ApolloProvider } from 'react-apollo';
import NewsLis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.