path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/material-ui-icons/src/DomainOutlined.js | allanalexandre/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="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v... |
ajax/libs/forerunnerdb/1.3.452/fdb-legacy.min.js | brix/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
mapOverlay/generateUrl.js | wxtiles/mapbuilder | import React from 'react'
import urlDialog from './urlDialog'
class generateUrl extends React.Component {
constructor() {
super()
this.state = {}
this.state.isGeneratingUrl = false
this.openDialog = this.openDialog.bind(this)
this.closeDialog = this.closeDialog.bind(this)
}
componentWillMoun... |
lib/Newsticker.js | moschan/react-native-newsticker | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TouchableOpacity,
View
} from 'react-native';
import Style from './Style'
export class Newsticker extends Component {
constructor() {
super();
this.state = {
render_text: '',
state: [],
timers: [],
... |
__tests__/index.ios.js | alfism1/trave | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | mrgardner/mrgardner.github.io | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/about/about.js | javflores/dtl-react-training | import React from 'react';
class About extends React.Component {
render(){
return(
<div className="jumbotron">
<h1>We are Broadbandchoices</h1>
<h2>The best broadband comparison tool in the market.</h2>
<p>We are Damo, Ranj, Rob, Alex, Ben, Walshy... |
ajax/libs/jquery.fancytree/2.8.0/jquery.fancytree-all.js | hasantayyar/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.8.0
* @dat... |
docs/src/app/components/pages/components/Card/Page.js | spiermar/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 cardReadmeText from './README';
import cardExampleWithAvatarCode from '!r... |
src/app/core/atoms/icon/icons/more.js | blowsys/reservo | import React from 'react'; const More = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><rect width="4" height="4" x="10" y="4" rx="2"/><rect width="4" height="4" x="10" y="10" rx="2"/><rect width="4" height="4" x="10" y="16" rx="2"/></g></g></svg>; export default More;
|
ajax/libs/yui/3.4.0pr1/loader/loader.js | melvinsembrano/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
docs/src/app/components/pages/components/FlatButton/Page.js | skarnecki/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 flatButtonReadmeText from './README';
import flatButtonExampleSimpleCode ... |
ajax/libs/firebase/8.6.0/firebase-auth.min.js | cdnjs/cdnjs | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).firebase)}(this,function(e){"use strict";try{!function(){var t,Hl=(t=e)&&"object"==typeof t&&"default"... |
src/parser/hunter/beastmastery/modules/spells/BarbedShot.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import { formatDuration, formatPercentage } from 'common/... |
client/src/about/About.js | petertrotman/adventurelookup | import React from 'react';
import './About.scss';
const About = () => (
<div className="about">
<h2>About</h2>
<p>
Wouldn't it be great to think "I want to run an adventure with a
Beholder as the villain!" and be able to find a list of every published
adventure featuring beholders? Then be... |
files/wordpress/3.8/js/jquery/jquery.js | bonbon197/jsdelivr | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
*/
(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=f.trim,x=function(e,t){return new x.fn.ini... |
packages/material-ui-icons/src/ArtTrackRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M21 13h-6c-.55 0-1-.45-1-1s.45-1 1-1h6c.55 0 1 .45 1 1s-.45 1-1 1zm0-6h-6c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1zm-6 10h6c.55 0 1-.45 1-1s-.45-1-1-1h-6c-.55 0-1 .45-1 ... |
src/tabs/tabs.container.js | Trampss/kriya | import { connect } from 'react-redux'
import { getKeys } from './redux'
import Component from './tabs'
export const mapStateToProps = (state, ownProps) => {
if (ownProps.children) return {}
return {
tabs: getKeys(state),
}
}
export default connect(mapStateToProps)(Component)
|
ajax/libs/highstock/2.1.0/highstock.src.js | tholu/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.1.0 (2015-02-16)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT... |
src/plugin-hooks/useFilters.js | react-tools/react-table | import React from 'react'
import {
getFirstDefined,
getFilterMethod,
shouldAutoRemoveFilter,
} from '../utils'
import {
actions,
useGetLatest,
functionalUpdate,
useMountedLayoutEffect,
} from '../publicUtils'
import * as filterTypes from '../filterTypes'
// Actions
actions.resetFilters = 'resetFilters... |
app/assets/javascripts/components/story/ExpandedStory/ExpandedStoryHistoryLocation.js | Codeminer42/cm42-central | import React from 'react';
import Clipboard from 'react-clipboard.js';
import { storyUrl } from '../StoryUrl';
import { editingStoryPropTypesShape, hasHistory } from '../../../models/beta/story';
import PropTypes from 'prop-types';
const ExpandedStoryHistoryLocation = ({
story,
onClone,
showHistory
}) => (
<di... |
P/from0/src/pages/RouterBasic.js | imuntil/React | import { BrowserRouter as Router, Route, Link } from 'react-router-dom'
import React from 'react'
const RouterBasic = () => (
<Router>
<div>
<ul>
<li>
<Link to="/">Home</Link>
</li>
<li>
<Link to="/about">About</Link>
</li>
<li>
<Link to... |
site/examples/SortExample.js | tirams/fixed-data-table | "use strict";
var ExampleImage = require('./ExampleImage');
var FakeObjectDataListStore = require('./FakeObjectDataListStore');
var FixedDataTable = require('fixed-data-table');
var React = require('react');
var Column = FixedDataTable.Column;
var PropTypes = React.PropTypes;
var Table = FixedDataTable.Table;
var So... |
packages/material-ui-icons/src/FormatPaintTwoTone.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="M6 4h10v2H6z" opacity=".3" /><path d="M17 2H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-... |
src/store.js | bhamodi/nuclear-js | import { Map } from 'immutable'
import { toFactory, extend } from './utils'
import { toJS, toImmutable } from './immutable-helpers'
/**
* Stores define how a certain domain of the application should respond to actions
* taken on the whole system. They manage their own section of the entire app state
* and have no ... |
src/icons/SocialGoogleplusOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialGoogleplusOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M223.5,82.1c11.8,9.6,36.4,29.7,36.4,68c0,37.3-21.5,54.9-43.1,71.5c-6.7,6.6-14.4,13.6-14.4,24.7
c0,... |
pages/Index.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'
import JobsView from 'components/JobsView'
export default class Index extends React.Component {
render () {
return (
<div style= {{tex... |
client/containers/admin/layout/aside.js | ShannChiang/meteor-react-redux-base | import { useDeps } from 'react-simple-di';
import { withHandlers, withTracker, withLifecycle, composeAll } from 'react-komposer-plus';
import Aside from '../../../components/admin/layout/aside';
const lifeCircle = {
componentDidMount() {
$('#side-menu').metisMenu();
const toggleMenu = () => {
if ($(win... |
src/index.js | louisiaegerv/zephyr | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
packages/material-ui-icons/src/CloudDownloadRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><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.... |
packages/material-ui-icons/src/SettingsInputAntennaRounded.js | Kagami/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 5c-3.48 0-6.37 2.54-6.91 5.87-.1.59.39 1.13 1 1.13.49 0 .9-.36.98-.85C7.48 8.79 9.53 7 12 7s4.52 1.79 4.93 4.15c.08.49.49.85.98.85.61 0 1.09... |
client/room.js | assemble-live/assemble | import React from 'react'
import { render } from 'react-dom'
import { LocaleProvider } from 'antd'
import enUS from 'antd/lib/locale-provider/en_US'
import Main from './room/main'
window.onload = () => {
render(
<LocaleProvider locale={enUS}>
<Main />
</LocaleProvider>,
document.querySelector('#rea... |
src/App.js | vgrigoriu/learn-to-read | // @flow
import React, { Component } from 'react';
import './App.css';
import Game from './Game';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-intro">
<Game />
</div>
</div>
);
}
}
export default App;
|
examples/js/expandRow/single-expanding.js | AllenFang/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;
if (i < 3) {
products.push... |
packages/veritone-widgets/src/widgets/MediaPlayer/DefaultControlBar.js | veritone/veritone-sdk | import React from 'react';
import { connect } from 'react-redux';
import cx from 'classnames';
import { get } from 'lodash';
import { bindActionCreators } from 'redux';
import {
VolumeMenuButton,
ControlBar,
ReplayControl,
ForwardControl,
PlayToggle,
playerActions,
videoActions,
CurrentTimeDisplay,
Ti... |
src/components/TitleAndMetaTags/index.js | fathomlondon/fathomlondon.github.io | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import defaultImage from '../../assets/images/hero/default.jpg';
export function TitleAndMetaTags({ url, pathname, title, description, image }) {
return (
<Helmet>
<title>
{title} – {description}
</title>
... |
packages/component/src/Attachment/Assets/DownloadIcon.js | billba/botchat | import PropTypes from 'prop-types';
import React from 'react';
const ICON_SIZE_FACTOR = 22;
const DownloadIcon = ({ className, size }) => (
<svg className={className} height={ICON_SIZE_FACTOR * size} viewBox="0 0 31.8 46" width={ICON_SIZE_FACTOR * size}>
<path d="M26.8,23.8l-10.9,11L5,23.8l1.6-1.6l8.2,8.3V5H17v... |
src/components/WebResults/WebResults.js | nicolas-adamini/littleblue | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { webSearch } from '../../redux/actions/index';
import LinkCard from './LinkCard';
import TotalResults from './TotalResults';
import AsideImages from './AsideImages';
import InlineImages f... |
components/Editor/view.js | CAYdenberg/wikode | const React = require('react');
const WikiEditor = require('./WikiEditor');
module.exports = (props) => {
return (
<div className="column row">
<h1>{props.title}</h1>
<WikiEditor />
</div>
);
}
|
mobile/app/module/Login/LoginComponent.js | liyangwood/DreamCup | import React from 'react';
import {View, Container, Content, Item, Button, Input, Form, Label, Text, Icon, Toast} from 'native-base';
import KG from 'kg';
import DrawerPage from 'app/module/common/DrawerPage';
import {Error} from 'app/lib';
import {ErrorText, Loading} from 'app/module/ui';
const style = KG.Style.creat... |
src/components/Form/Button.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import MuiButton from '@material-ui/core/Button';
const Button = ({
children, className, text, ...props
}) => (
<MuiButton
variant="raised"
color="primary"
className={cx('Button', className)}
type="submit"
... |
lib/components/modification/__tests__/select-feed-route-and-patterns.js | conveyal/scenario-editor | // @flow
import renderer from 'react-test-renderer'
import React from 'react'
import {mockFeed, mockPattern, mockRoute} from '../../../utils/mock-data'
import SelectFeedRouteAndPatterns from '../select-feed-route-and-patterns'
describe('Component > SelectFeedRouteAndPatterns', () => {
it('renders empty correctly',... |
BackUp FIrebase/IQApp/components/TaskList.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View, TextInput, Text, Button, AlertIOS } from 'react-native';
import HeaderIQMail from './Faixa';
import { Container, Content, InputGroup, Input } from 'native-base';
export default class TaskList extends Component{
constructor(){
super();
this.state = {
... |
gui/src/app/components/tab-dashboard.js | mbonvini/LambdaSim | import React from 'react';
import log from 'loglevel';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import { simulateModel } from '../api/lambda-sim-api';
import store from '../store';
import SimulateForm from '../c... |
packages/material-ui-icons/src/WbIncandescent.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.6... |
src/components/LookCell.js | rollo-zhou/look | import React from 'react';
import {
ActivityIndicator,
Image,
PixelRatio,
StyleSheet,
Text,
TouchableOpacity,
View,
Dimensions,
} from 'react-native';
import globalVariables from '../globalVariables.js';
import UserCell from './UserCell.js';
import moment from 'moment';
import LookDetail from './LookDe... |
wp-includes/js/jquery/jquery.js | ixkaito/wck2015 | /*! 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... |
ajax/libs/angular.js/1.0.0rc12/angular-scenario.js | kartikrao31/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.
... |
src/containers/organizations/components/OrganizationRolesSectionComponent.js | dataloom/gallery | import React from 'react';
import Immutable from 'immutable';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Models, Types } from 'lattice';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import StyledFlexContainerStacked from '../../../compon... |
react-flux-mui/js/material-ui/src/svg-icons/content/markunread.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMarkunread = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
ContentMarkunread ... |
app/components/Task/TaskItem.js | rjzheng/kzhomepanel | import React, { Component } from 'react';
import { connect } from 'react-redux';
class TaskItem extends Component {
render() {
var { id, task, completed, createdAt, remind, remindAt } = this.props;
return(
<div>
</div>
)
};
};
export default TaskItem;
|
ajax/libs/webshim/1.14.3-RC1/dev/shims/moxie/js/moxie.js | mgoldsborough/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 ... |
node_modules/react-icons/io/ios-flame.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosFlame = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m17.5 2.5c6.8 5 13.3 14 12.4 22.5-1 10.5-8.1 12.5-9.9 12.5s-9.9-3.1-10-12.5c-0.1-11.4 9.5-11.2 7.5-22.5z m2.5 34.4s3.1-2.8 3.1-6.3-3.1-6.2-3.1-6.2-3.2 2.8-3.2 6.2 3.... |
packages/gatsby-codemods/src/transforms/__testfixtures__/navigate-calls/existing-esm-import.input.js | 0x80/gatsby | /* eslint-disable */
import React from 'react';
import { graphql } from 'gatsby';
import { navigateTo } from 'gatsby-link';
export default function Example() {
return <button onClick={() => navigateTo('/sample')}>waddup</button>;
}
export const pageQuery = graphql`
query {
allSitePages {
prefix
}
... |
packages/ndla-icons/src/editor/AlignRight.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const AlignRight = props => (
<Icon
vi... |
web/components/SendMessage.js | mrcnc/spatialconnect-server | import React, { Component, PropTypes } from 'react';
class SendMessage extends Component {
state = { title: '', body: '', errors: {}, valid: false };
validate = () => {
let errors = {};
if (!this.state.title) {
errors.title = 'Title is required';
}
if (this.state.title.length > 50) {
e... |
pages/api/snackbar.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './snackbar.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
src/pages/404.js | muhrusdi/muhrusdi.github.io | import React from 'react'
import Layout from '../components/layout'
const NotFoundPage = () => (
<Layout>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
)
export default NotFoundPage
|
src/isomorphic/classic/class/__tests__/ReactBind-test.js | studiowangfei/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... |
modules/mod_dziresponsivebannerslider/js/jquery-1.7.min.js | knigherrant/decopatio | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
developer-tools/webpack.config.js | datapimp/smooth | /**
* @see http://webpack.github.io/docs/configuration.html
* for webpack configuration options
*/
var webpack = require("webpack");
module.exports = {
context: __dirname,
entry: {
client: "./src/client.coffee",
inspector: "./src/inspector.cjsx"
},
output: {
path: __dirname + "/dist",
file... |
client/views/omnichannel/agents/AgentsPage.js | VoiSmart/Rocket.Chat | import React from 'react';
import FilterByText from '../../../components/FilterByText';
import GenericTable from '../../../components/GenericTable';
import Page from '../../../components/Page';
import AddAgent from './AddAgent';
function AgentsPage({ data, reload, header, setParams, params, title, renderRow, children... |
client_apps/canvas_quizzes/apps/statistics/test/unit/views/charts/answer_bars_test.js | eCNAP/CANVAS | define(function(require) {
var Subject = require('jsx!views/charts/answer_bars');
var $ = require('canvas_packages/jquery');
var React = require('react');
var d3 = require('d3');
describe('Views.Charts.AnswerBars', function() {
this.reactSuite({
type: Subject
});
it('should render', functi... |
src/index.js | alistairmgreen/soaring-analyst | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack to... |
example/examples/InputSizeExample.react.js | Neophy7e/react-bootstrap-typeahead | import React from 'react';
import {Radio} from 'react-bootstrap';
import {Typeahead} from '../../src/';
import options from '../../example/exampleData';
/* example-start */
const InputSizeExample = React.createClass({
getInitialState() {
return {
bsSize: undefined,
};
},
render() {
const {bsS... |
services/toast.js | kapone89/MonteOfficeExpo | // import Toast, { DURATION } from 'react-native-easy-toast';
// import React, { Component } from 'react';
import { Toast } from 'native-base';
class ToastService {
show = (msg) => {
Toast.show({ text: msg });
}
}
const toast = new ToastService();
export default toast;
|
test/integration/image-component/default/pages/layout-fixed.js | azukaru/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Layout Fixed</p>
<Image
id="fixed1"
src="/wide.png"
width="1200"
height="700"
layout="fixed"
></Image>
<Image
id="fixed2"
src="/wide.png"... |
docs/app/Examples/elements/Input/States/InputExampleLoading.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleLoading = () => (
<Input loading icon='user' placeholder='Search...' />
)
export default InputExampleLoading
|
src/components/Layout/Navigation/DropDown/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import Menu from '../Menu'
import MenuColumn from '../MenuColumn'
import MenuList from '../MenuColumn/MenuList'
const DropDown = (props) => {
const columns = props.menuData.map(
(column, index) => {
const classes = index === 0 ? 'col-md-offset-2 ... |
src/components/calculatorLarge/presentation/CLPrices.js | edu-affiliates/promo_calculators | 'use strict';
import React from 'react';
import {connect} from 'react-redux';
import PropTypes from 'prop-types';
import generalOptions from '../../../config/generalOptions';
class CLPrices extends React.Component {
constructor(props) {
super(props);
}
render() {
const {fullPrice, discou... |
lib/component.js | ekmartin/hyperterm | import React from 'react';
import {StyleSheet, css} from 'aphrodite-simple';
import {shouldComponentUpdate} from 'react-addons-pure-render-mixin';
export default class Component extends React.Component {
constructor() {
super();
this.styles_ = this.createStyleSheet();
this.cssHelper = this.cssHelper.bin... |
ajax/libs/backbone.js/1.1.2/backbone.js | mikelambert/cdnjs | // Backbone.js 1.1.2
// (c) 2010-2014 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(root, factory) {
// Set up Backbone appropriately for ... |
app/javascript/mastodon/features/compose/components/upload_button.js | increments/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 're... |
app/javascript/mastodon/components/extended_video_player.js | kibousoft/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class ExtendedVideoPlayer extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
alt: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
time: PropTypes.number,
contr... |
node_modules/babel-traverse/lib/path/lib/hoister.js | Moussee/Fun-with-StarWars-people | "use strict";
exports.__esModule = true;
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _babel... |
test/index.ios.callback.js | andpor/react-native-sqlite-storage | /**
* sqlite.ios.callback.js
*
* Created by Andrzej Porebski on 10/29/15.
* Copyright (c) 2015 Andrzej Porebski.
*
* Test App using JS Callbacks for react-naive-sqlite-storage
*
* This library is available under the terms of the MIT License (2008).
* See http://opensource.org/licenses/alphabetical for full tex... |
src/svg-icons/image/photo-filter.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoFilter = (props) => (
<SvgIcon {...props}>
<path d="M19.02 10v9H5V5h9V3H5.02c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zM17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7l2.06.94zm-3.75.... |
tools/build.js | brian-kilpatrick/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import cp from 'child_process';
import run from './run'... |
src/components/ui/layout/Flex.js | daxiangaikafei/QBGoods | import React, { Component } from 'react';
import classNames from 'classnames';
import 'libs/layout/layout-mixin.less';
class Flex extends Component {
constructor(props) {
super(props)
}
render() {
let props = this.props;
let classGroups = ['flexLayout', 'flex'];
classGroups.push( "flex-" + props... |
docs/app/Examples/modules/Modal/Types/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const ModalExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
... |
src/index.js | crapulus/react-chat-widget | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App/>, document.getElementById('nrcwv1'))
if (module.hot) {
module.hot.accept('./App', () => {
const NextApp = require('./App').default;
ReactDOM.... |
assets/js/jquery-1.11.1.min.js | EveraldoReis/FUEL-CMS-ModFilemanager | /*! 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... |
common/shared/add-post/add-review/FileUpload.js | gobble43/gobble-dist-web | import React, { Component } from 'react';
import config from './../../../../env/client.js';
class FileUpload extends Component {
componentDidMount() {
const Dropzone = window.Dropzone;
const dropzone = new Dropzone('#dropzone', { url: `${config.GOBBLE_MEDIA_URL}/api/media` });
dropzone.on('success', (err... |
webpack.config.js | mapkiwiz/sectorisation | const path = require('path');
const webpack = require('webpack');
const argv = require('yargs').argv;
const _ = require('lodash');
/*
* Webpack Plugins
*/
// problem with copy-webpack-plugin
var CopyWebpackPlugin = (CopyWebpackPlugin = require('copy-webpack-plugin'), CopyWebpackPlugin.default || CopyWebpackPlugin);
... |
ajax/libs/yui/3.9.0pr1/simpleyui/simpleyui.js | ljharb/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
src/admin_components/RaceGroupListItemEdit.js | chiefwhitecloud/running-man-frontend | import React from 'react';
import PropTypes from 'prop-types';
export default class RaceGroupListItemEdit extends React.Component {
constructor(props) {
super(props);
let distanceUnit = this.props.raceGroup.distanceUnit;
if (distanceUnit === '') {
distanceUnit = 'k';
}
this.state = {
... |
docs/app/Examples/modules/Progress/Variations/Size.js | jamiehill/stardust | import React from 'react'
import { Progress } from 'stardust'
const ProgressSizeExample = () => (
<div>
<Progress percent={10} size='tiny'>
tiny
</Progress>
<Progress percent={20} size='small'>
small
</Progress>
<Progress percent={35} size='medium'>
medium
</Progress>
<P... |
source/OnFocusOutOrTapOutside.js | halt-hammerzeit/react-responsive-ui | import React from 'react'
import PropTypes from 'prop-types'
import createRef from 'react-create-ref'
import OnFocusOut from './OnFocusOut'
import OnTapOutside from './OnTapOutside'
/**
* `<OnFocusOutOrTapOutside/>` sets `onBlur` on the child element.
* Calls `onFocusOut` on focus out or tap outside.
*/
export def... |
src/core/display/App/util/View/Layout/Minimal/index.js | JulienPradet/pigment-store | import React from 'react'
import styles from './layout.css'
const Layout = class Layout extends React.Component {
constructor () {
super()
this.state = {
showHiddenNav: false
}
this.toggleHiddenNav = this.toggleHiddenNav.bind(this)
}
toggleHiddenNav () {
this.setState((state) => ({
... |
ajax/libs/highmaps/1.1.7/highmaps.src.js | freak3dot/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.1.7 (2015-06-26)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi... |
lib_/Message.js | ssmlee04/react-chandler | /** @jsx React.DOM */
"use strict";
var React = require("react");
var update = require('react-addons-update');
var cx = require("classnames");
var NavLink = require('fluxible-router').NavLink;
// a typical message looks like this
// {
// thumb: "xxx",
// title: "xxx",
// message: "xxx",
// date_added: "xxx",
/... |
src/svg-icons/action/camera-enhance.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCameraEnhance = (props) => (
<SvgIcon {...props}>
<path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.2... |
src/svg-icons/action/language.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLanguage = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 ... |
react-router-nb/react-router/examples/auth-with-shared-root/components/Dashboard.js | zhangfaliang/learnReact | import React from 'react'
import auth from '../utils/auth'
const Dashboard = React.createClass({
render() {
const token = auth.getToken()
return (
<div>
<h1>Dashboard</h1>
<p>You made it!</p>
<p>{token}</p>
{this.props.children}
</div>
)
}
})
module.exports... |
app/containers/HomePage2/index.js | Frai/Events | import React from 'react';
import Helmet from 'react-helmet';
import StyledHomePage from './StyledHomePage';
const HomePage2 = () => (
<div>
<Helmet
title="EventsApp"
meta={[
{
name: 'description',
content: 'Upcoming Facebook events nearby you',
},
]}
/>... |
local-cli/templates/HelloWorld/__tests__/index.ios.js | esauter5/react-native | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
app/index.js | stefanKuijers/aw-fullstack-app | // @flow
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { remote } from 'electron';
import routes from './app/routes';
import configureStore from... |
dungeon-maker/src/components/Tile.js | sgottreu/dungeoneering | import React from 'react';
import '../css/Tile.css';
const Tile = ( { id, tile, onUpdateKey, selectedTile, selectedEntity } ) => {
const className = tile.label+' Tile';
const style = {
width: (75 * ((tile.size === undefined) ? 1 : tile.size.width)),
height: (75 * ((tile.size === undefined) ? 1 : tile.size.heig... |
files/rxjs/2.3.17/rx.compat.js | walkermatt/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
docs/src/app/components/pages/components/Stepper/HorizontalTransition.js | pancho111203/material-ui | import React from 'react';
import {
Step,
Stepper,
StepLabel,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import ExpandTransition from 'material-ui/internal/ExpandTransition';
import TextField from 'material-ui/TextField';
/*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.