path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
examples/counter/src/index.js | Lucifier129/refer | import React from 'react'
import App from './container/App'
React.render(
<App />,
document.getElementById('container')
)
|
src/components/Layout/SystemSwitcher.js | steem/qwp-antd | import React from 'react'
import PropTypes from 'prop-types'
import { Menu, Dropdown, Icon } from 'antd'
import { Link } from 'dva/router'
const SystemSwitcher = ({ itemClassName, subSystems }) => {
const sysMenus = (<Menu>
<Menu.Item>System Navigation Switcher Menu</Menu.Item>
<Menu.Divider />
{s... |
ajax/libs/video.js/5.15.1/video.js | cdnjs/cdnjs | /**
* @license
* Video.js 5.15.1 <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>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Vers... |
web/src/routes/Contacts/components/Contacts.js | darioml/farley-files | import React from 'react'
import { ContactAdd } from './ContactForm'
import { Contact } from './ContactComponent'
export const Contacts = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Contacts</h2>
<h2>Add</h2>
<ContactAdd />
<hr />
<button className='btn btn-default' onClick={props.fe... |
client/fragments/quizzes/main.js | yeoh-joer/synapse | /**
* External dependencies
*/
import React from 'react'
import { connect } from 'react-redux'
/**
* Internal dependencies
*/
import './style.scss'
import Collection from './collection'
import { fetchQuizzes } from 'client/state/quizzes/actions'
class Quizzes extends React.Component {
componentDidMount() {
co... |
cdn.pagic.org/react-dom@16.13.1/esnext/server.development.js | xcatliu/pagic | /* esm.sh - esbuild bundle(react-dom@16.13.1/server) esnext development */
import react from "/react@16.13.1/esnext/react.development.js";
var __peerModules = {
"react": react
};
var require = name => {
if (name in __peerModules) {
return __peerModules[name];
}
throw new Error("[esm.sh] Could not resolve \"... |
docs-ui/components/tag.stories.js | looker/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import Tag from 'app/views/settings/components/tag';
storiesOf('Tags', module)
.add(
'default',
withInfo('A basic tag-like thing. If you pass no type, it will be gray')(() => (
<Tag>D... |
src/svg-icons/hardware/phone-iphone.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneIphone = (props) => (
<SvgIcon {...props}>
<path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1... |
ajax/libs/6to5/2.7.1/browser-polyfill.js | iamso/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
lib/Selection/Selection.js | folio-org/stripes-components | /* API entry for single-single select and multi-select fields... basically a props pass-through. */
import React from 'react';
import PropTypes from 'prop-types';
import SingleSelect from './SingleSelect';
const propTypes = {
emptyMessage: PropTypes.node,
formatter: PropTypes.func,
label: PropTypes.node,
labe... |
app/HomeTab/views/homePage.js | hakale/bestCarRent | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
// import {Button, Card } from 'react-native-material-design';
import BannerLite from 'react-native-banner-lite';
import React, { Component } from 'react';
import ExCard from '../../set/exCard'
import {
SearchBar,
Divider,
... |
src/components/TextInputCSSModules/TextInputCSSModules.js | emanualjade/react-jade | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
import styles from './textInput.css';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInput({htmlId, name, label, type = "text",... |
app/components/BillListItem/Table.js | balintsoos/app.rezsi.io | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import {
Table as MuiTable,
TableHeader,
TableBody,
TableFooter,
TableRow as MuiTableRow,
TableRowColumn,
TableHeaderColumn,
} from 'material-ui/Table';
import TableRow from './TableRow';
impor... |
ajax/libs/jquery.fancytree/2.7.0/jquery.fancytree.js | BenjaminVanRyseghem/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.7.0
* @dat... |
src/routes/Home/components/HomeView.js | nivas8292/myapp | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img alt='This is a duck, because Redux!' className='duck' src={DuckImage} />
</div>
)
export default HomeView
|
src/WebApp.js | Tsarpf/babel-webpack-react-router-eslint-hot-loader-boilerplate | import React from 'react';
import Application from './containers/application';
import createBrowserHistory from 'history/lib/createBrowserHistory';
React.render( <Application history={ createBrowserHistory() }/>, document.getElementById( 'app' ) );
|
app/components/body/content.js | Rorchackh/Sink | import React from 'react'
import HeaderTab from './tabs/header_tab'
export default class Content extends React.Component {
constructor(props) {
super(props)
this.services = []
}
componentWillReceiveProps(nextProps) {
if (nextProps.soapClient) {
this.services = nextPro... |
docs/src/app/components/pages/discover-more/Showcase.js | lawrence-yu/material-ui | import React from 'react';
import Title from 'react-title-component';
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import FontIcon from 'material-ui/FontIcon';
import MarkdownElement from '../../MarkdownElement';
import showcaseText from './showcase.md';
con... |
src/examples/RandomGifList.js | steos/elmar.js | import R from 'ramda'
import React from 'react'
import {message, targetValue, forward, mapEffects} from '../elmar'
import * as RandomGif from './RandomGifViewer'
const Action = {
Topic: e => model => [{...model, topic: targetValue(e)}, []],
Add: model => {
const [gifModel, effects] = RandomGif.init(mod... |
app/javascript/mastodon/features/hashtag_timeline/index.js | vahnj/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
refreshHashtagTimeline,
ex... |
components/Field/stories.js | insane-ux/rebulma | // @flow
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import Label from 'components/Label'
import Input from 'components/Input'
import Select from 'components/Select'
import Field from './'
const options = [
{
label: 'Rr',
value: 'dr',
},
{
label: 'Mr',
value: 'mr',
... |
ajax/libs/yui/3.7.0pr1/event-focus/event-focus-debug.js | sreym/cdnjs | YUI.add('event-focus', function(Y) {
/**
* 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 = YLang.isFunction(
Y... |
src/components/welcome-card/component.js | BerndWessels/react-template-basic-layout | /**
* Fraedom (https://github.com/Spendvision/)
*
* Copyright © 2016 Fraedom. 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 dependencies.
*/
import React, {Component} from 'react';
import c... |
packages/material-ui-icons/src/Update.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Update = props =>
<SvgIcon {...props}>
<path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.... |
src/components/icons/PlaybookIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const PlaybookIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 100 100">
{props.title && <title>{props.title}</title>}
<path d="M44.92,53.67a2,2,0,0,0,2,2.77,4,4,0,0,0,3.65-2.77,2,2,0,0,0-2-2.77A4,4,0,0,0,44.92,53.67Z"/>
<path ... |
src/index.js | justbrody/react-styling-poc | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import './index.css'
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
examples/with-apollo-and-redux/components/PostUpvoter.js | nahue/next.js | import React from 'react'
import { gql, graphql } from 'react-apollo'
function PostUpvoter ({ upvote, votes, id }) {
return (
<button onClick={() => upvote(id, votes + 1)}>
{votes}
<style jsx>{`
button {
background-color: transparent;
border: 1px solid #e4e4e4;
c... |
src/components/grid/index.js | ianmcgregor/mcgregor.codes | import React, {Component} from 'react';
import styled from 'styled-components';
import {
media,
marginMobile,
columnMobile,
marginTablet,
columnTablet,
marginDesktop,
columnDesktop
} from '../../styles';
import keyboard from 'usfl/input/keyboard';
const Container = styled.div`
display: ... |
packages/material-ui-icons/src/HighQuality.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="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.... |
website/activity/vendors/jQuery-Smart-Wizard/js/jquery-1.4.2.min.js | sayanarijit/activity | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
src/components/App/AppRoot.js | gtg092x/redux-iso | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from '../../stores';
import App from './App';
const store = configureStore();
export default (props) => (
<Provider store={store}>
<App {...props} />
</Provider>
);
|
ui/cap-react/src/components/drafts/form/themes/grommet-preview/fields/importDataField.js | cernanalysispreservation/analysis-preservation.cern.ch | import React from "react";
import PropTypes from "prop-types";
import Anchor from "../../../../../partials/Anchor";
import Box from "grommet/components/Box";
import Label from "grommet/components/Label";
import { AiOutlineLink } from "react-icons/ai";
import axios from "axios";
// schema for the importDataField
// "... |
app/components/ReadMore/messages.js | juanda99/arasaac-frontend | /*
* ReadMore Messages
*
* This contains all the text for the Menu component.
*/
import { defineMessages } from 'react-intl'
export default defineMessages({
readmore: {
id: 'readmmore.more',
description: 'Read more text',
defaultMessage: '...read more'
},
showless: {
id: 'readmore.less',
... |
docs/output/Ext.toolbar.Fill.js | hatimeria/HatimeriaExtJS | Ext.data.JsonP.Ext_toolbar_Fill({"extends":"Ext.Component","inheritable":false,"statics":{"css_var":[],"cfg":[],"method":[{"meta":{"static":true},"tagname":"method","owner":"Ext.Base","name":"addStatics","id":"static-method-addStatics"},{"meta":{"static":true},"tagname":"method","owner":"Ext.Base","name":"borrow","id":... |
webapp/app/components/Users/Button/index.js | EIP-SAM/SAM-Solution-Node-js | //
// List buttons page users
//
import React from 'react';
import { ButtonToolbar } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from './styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class UsersButton extends React.Component {
render... |
src/scripts/app/util/ImmutabilityUtil.js | clarin-eric/component-registry-front-end | 'use strict';
var update = require('react-addons-update');
module.exports = {
update: update,
changeObj: function(key, value) {
var obj = {};
obj[key] = value;
return obj;
},
/**
* Immutable helper function that clones an associative object except for one or more keys
* @param {[type]} o... |
files/react/15.0.0-rc.2/react-with-addons.js | gswalden/jsdelivr | /**
* React (with addons) v15.0.0-rc.2
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="... |
docs/src/ChipsPage.js | jareth/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import chips from '../../examples/Chips';
const component = 'Chip';
class Chi... |
test/components/HeaderTitle.spec.js | datyayu/raji-react | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import HeaderTitle from '../../client/components/HeaderTitle';
test('HeaderTitle should use the HeaderTitle class', t => {
const component = shallow(<HeaderTitle text="raji" />);
t.true(component.hasClass('HeaderTitle'), 'You n... |
src/index.js | sureshmurali/Portfolio | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './Components/App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
modoboa/bower_components/jquery/test/data/jquery-1.8.2.ajax_xhr.min.js | modoboa/modoboa | /*! jQuery v1.8.2 -deprecated,-css,-ajax/script,-ajax/jsonp,-effects,-offset,-dimensions jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttr... |
examples/dynamic-form-fields/app.js | sdemjanenko/formsy-react | import React from 'react';
import ReactDOM from 'react-dom';
import { Form } from 'formsy-react';
import MyInput from './../components/Input';
import MySelect from './../components/Select';
import MyRadioGroup from './../components/RadioGroup';
import MyMultiCheckboxSet from './../components/MultiCheckboxSet';
const ... |
src/modules/forms/plugins/ControlBar/ControlBar.js | hellofresh/janus-dashboard | import React from 'react'
import PropTypes from 'prop-types'
import block from '../../../../helpers/bem-cn'
import Control from '../../../../components/Control/Control'
import Tumbler from '../../../../components/Tumbler/Tumbler'
import './ControlBar.css'
const b = block('j-plugin-controls')
const propTypes = {
... |
src/hocs/withBoards.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { connect } from 'react-redux'
import { firebaseConnect, dataToJS } from 'react-redux-firebase'
import { orderBy } from 'lodash'
import { convertMapToArr } from 'utils/commonUtil'
import Loadi... |
docs/server.js | dongtong/react-bootstrap | /* eslint no-console: 0 */
import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development =... |
docs/src/app/components/pages/components/IconMenu/ExampleControlled.js | tan-jerene/material-ui | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import RaisedButton from 'material-ui/RaisedButton';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import ContentFilter from 'mat... |
ajax/libs/clappr/0.0.19/clappr.js | Sneezry/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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
src/components/Card.js | tgevaert/react-redux-hearts | import React from 'react';
import { constants as heartsConstants } from '../heartsRules';
const CardValue = ({ value }) => (
<div className="card__value">
{value}
</div>
);
const CardSymbol = ({ symbol }) => (
<div className="card__symbol">
{symbol}
</div>
);
const Card = ({ card, onClic... |
example/src/Increment.js | erikras/redux-spy | import React from 'react'
import { connect } from 'react-redux'
import { increment } from './reducer'
let renderCount = 0
const Increment = ({ count, increment }) => {
renderCount++
return (
<div>
<div className="count">{count}</div>
<div>I am connected to the Redux store</div>
<button onCli... |
ajax/libs/es6-shim/0.33.4/es6-shim.js | brix/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.33.4
* see https://github.com/paulmillr/es6-shim/blob/0.33.3/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
tests/views/UserTestView.spec.js | deevatech/frontend | import React from 'react'
describe('(View) UserTest', () => {
it('should exist', () => {
})
})
|
src/components/Offline/Offline.js | febobo/react-redux-start | import React from 'react'
import classes from './Offline.scss'
import { Pagination , Alert , Tag , Table} from 'antd';
import moment from 'moment'
import {i18n} from '../../util/i18n'
type Props = {
};
var currentLimit = 10;
export class Offline extends React.Component {
props: Props;
componentWillMount(){
... |
ajax/libs/intl-tel-input/5.8.4/js/intlTelInput.js | nareshs435/cdnjs | /*
International Telephone Input v5.8.4
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($, window... |
packages/material-ui-icons/src/GestureTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-... |
example/server.js | ForbesLindesay/redux-wait | 'use strict';
import fs from 'fs';
import express from 'express';
import browserify from 'browserify-middleware';
import React from 'react';
import stringify from 'js-stringify';
import Root from './containers/Root';
import MemoryHistory from 'react-router/lib/MemoryHistory';
import createStore from './store';
const ... |
__tests__/index.android.js | sobstel/sequent | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
cheesecakes/plugins/settings-manager/admin/src/components/PluginLeftMenuLink/index.js | strapi/strapi-examples | /**
*
* PluginLeftMenuLink
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import { get, isEmpty, findIndex } from 'lodash';
import styles from './styles.scss';
class PluginLeftMenuLink extends React.Compone... |
packages/es-components/src/components/containers/modal/Modal.specs.js | TWExchangeSolutions/es-components | /* eslint-env jest */
import React from 'react';
import { fireEvent, waitFor } from '@testing-library/react';
import Modal from './Modal';
import ModalHeader from './ModalHeader';
import ModalBody from './ModalBody';
import ModalFooter from './ModalFooter';
import { renderWithTheme } from '../../util/test-utils';
je... |
app/components/Screens/Social/Social.js | fabienjuif/KeyBoard | import React from 'react'
import MidSized from 'MidSized'
const Social = () => {
return (
<div>
<MidSized colorName="gradiant2">Tips to undertake</MidSized>
<MidSized colorName="gradiant1" textLeft>Only if you're nerd</MidSized>
</div>
)
}
export default Social
|
newclient/scripts/components/read-only-attachment-summary/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
ajax/libs/jquery/1.10.1/jquery.js | tcorral/cdnjs | /*!
* jQuery JavaScript Library v1.10.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-05-30T21:49Z
*/
(function( window, undefined ) {
// ... |
app/static/src/performer/TestDiagnosisList.js | SnowBeaver/Vision | import React from 'react';
import Accordion from 'react-bootstrap/lib/Accordion';
import Panel from 'react-bootstrap/lib/Panel';
import {Link} from 'react-router';
import Table from 'react-bootstrap/lib/Table';
import {NotificationContainer, NotificationManager} from 'react-notifications';
import {DATETIME_FORMAT} from... |
src/index.js | guryanov-a/react-search | import React from 'react';
import ReactDOM from 'react-dom';
import configureStore from './store';
import Root from './components/Root';
import 'bootstrap/dist/css/bootstrap.css';
import './index.css';
const store = configureStore();
ReactDOM.render(
<Root store={store} />,
document.getElementById('root'),
);
|
kb/item/js/jquery.js | kburger4/kburger4.github.io | /*! 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... |
docs/app/Examples/views/Card/Types/Groups.js | jcarbo/stardust | import React from 'react'
import { Button, Card, Image } from 'stardust'
const Groups = () => (
<Card.Group>
<Card>
<Card.Content>
<Image floated='right' size='mini' src='http://semantic-ui.com/images/avatar/large/steve.jpg' />
<Card.Header>
Steve Sanders
</Card.Header>
... |
App/views/Announcements/index.js | araneforseti/caretaker-app | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
FlatList,
TouchableOpacity
} from 'react-native';
import ContainerFor from './container.js';
import { renderIf } from '../../utils/helpers';
import ActionButton from '../../components/material-ui/ActionButton';
import ScreenWithToolbar... |
src/SplitButton.js | gianpaj/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
chrome/extension/todoapp.js | altany/react-new-tab-chrome-extension | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Root from '../../app/containers/Root';
import createStore from '../../app/store/configureStore';
import './todoapp.css';
chrome.storage.sync.get('state', (obj) => {
const { state } = obj;
const initialState ... |
addons/a11y/src/A11yManager.js | rhalff/storybook | import React from 'react';
import WrapStory from './components/WrapStory';
// Run all a11y checks inside
class A11yManager {
wrapStory(channel, storyFn, context, axeOptions) {
const props = { context, storyFn, channel, axeOptions };
return <WrapStory {...props} />;
}
}
export default A11yManager;
|
.public/site.bundle.js | Xmerr/PortfolioSite | !function(e){var A={};function t(n){if(A[n])return A[n].exports;var r=A[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=A,t.d=function(e,A,n){t.o(e,A)||Object.defineProperty(e,A,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... |
src/index.js | tylergaw/colorme | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
packages/ringcentral-widgets/components/ComposeTextPanel/NoSenderAlert.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import messageSenderMessages from
'ringcentral-integration/modules/MessageSender/messageSenderMessages';
import AlertDisplay from '../AlertDisplay';
import MessageSenderAlert from '../MessageSenderAlert';
export default class NoSenderAlert... |
src/components/App.js | jmikrut/keen-2017 | import React, { Component } from 'react';
import io from 'socket.io-client';
import { Switch, withRouter, Route } from 'react-router-dom';
import { TransitionGroup, CSSTransition } from 'react-transition-group';
import { connect } from 'react-redux';
import DocumentMeta from 'react-document-meta';
import Header from '... |
lib/generators/badass/templates/assets/javascripts/jquery-1.4.4.js | mpatric/badass | /*!
* 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.
... |
src/svg-icons/editor/format-paint.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatPaint = (props) => (
<SvgIcon {...props}>
<path d="M18 4V3c0-.55-.45-1-1-1H5c-.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-1v-9h8V4h-3z"/>
</SvgIco... |
Libraries/vendor/react/browser/eventPlugins/PanResponder.js | dfala/react-native | /**
* @providesModule PanResponder
*/
"use strict";
var TouchHistoryMath = require('TouchHistoryMath');
var currentCentroidXOfTouchesChangedAfter =
TouchHistoryMath.currentCentroidXOfTouchesChangedAfter;
var currentCentroidYOfTouchesChangedAfter =
TouchHistoryMath.currentCentroidYOfTouchesChangedAfter;
var pre... |
frontend/component/Notification.js | wangmuming/node-forum | import React from 'react';
import { Router, Route, Link, browserHistory } from 'react-router';
// import jQuery from 'jQuery';
import {notificationList, notificationSetRead} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class Notification extends React.Component{
constructor(pros){
... |
wrappers/json.js | jmcorona/jmcorona-netlify | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
<Helmet
tit... |
src/components/Old/Partner.js | r-portas/robogals-brisbane-pwa | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './Partner.css';
class Partner extends Component {
constructor(props) {
super(props);
this.state = {
imageUrl: null
};
const featuredImage = this.props.partner.featured_media;
this.props.api.getMedia(fea... |
demos/function-tree-demos/src/mobx/index.js | FWeinb/cerebral | import React from 'react'
import {render} from 'react-dom'
import App from './components/App'
import store from './store'
export default function () {
render((
<App store={store} />
), document.querySelector('#root'))
}
|
src/components/secure/Dashboard.js | Cretezy/react-redux-router-firebase | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
class Dashboard extends React.Component {
render() {
return (
<div>
<h1>Dashboard</h1>
Welcome
<br/>
<Link to='/profile'>Profile</Link>
<br/>
<Link to='/logout'>Logout</Link>
</div>
... |
web/static/js/components/RankedStats.js | josephyi/anivia | import React from 'react'
import { Table } from 'react-bootstrap'
import champ_icons from '../css/StaticChampionSprites.css'
import championIcon from '../css/ChampionIcon.css'
import champions from '../data/champ_id_to_name.json'
import { Panel, Label } from 'react-bootstrap'
import { BootstrapTable, TableHeaderColumn ... |
ajax/libs/yui/3.10.2/simpleyui/simpleyui.js | tkirda/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/encoded/static/components/navigation/components/AccountNav.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import Nav from 'react-bootstrap/esm/Nav';
import { JWT, isServerSide, object, console, memoizedUrlParse } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { LoginController, LogoutControll... |
src/svg-icons/image/wb-cloudy.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbCloudy = (props) => (
<SvgIcon {...props}>
<path d="M19.36 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.64-4.96... |
client/src/App.js | ameswarb/zelda-gourmand | import React, { Component } from 'react'; // eslint-disable-line
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.state = {
items: [],
recipes: [],
};
}
componentDidMount() {
this.fetchItems();
this.fetchRecipes();
}
fetchItems() {
... |
ajax/libs/yasqe/2.5.0/yasqe.bundled.min.js | peteygao/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;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
client/components/data/CounterSet.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import CounterSet from './CounterSet';
export default {
title: 'components/data/CounterSet',
component: CounterSet,
};
export const _default = () => (
<CounterSet
counters={[
{ count: 123, variation: 0 },
{ count: 456, variation: 7 },
{ count: 789, variation: -1, description:... |
src/components/Header/Header.js | warcraftlfg/warcrafthub-client | import React from 'react'
import {Link, IndexLink} from 'react-router'
import SearchBar from '../../components/SearchBar'
import SideBarMenu from '../../components/SideBarMenu'
import SideBarAccount from '../../components/SideBarAccount'
import logo from './assets/logo.svg'
import './Header.scss'
class Header exten... |
pages/video.js | sikhote/clairic | import React from 'react';
import List from '../components/List';
export default () => (
<List key="video" title="video" header="Video" source="video" />
);
|
src/components/layout/subnav.js | RexSkz/drone-ui | import {Grid} from 'react-mdl';
import React from 'react';
import './subnav.less';
export default
class Subnav extends React.Component {
render() {
return (
<nav className="sub">
<Grid>
{this.props.children}
</Grid>
</nav>
);
}
}
|
app/pages/index.js | johnotander/tachyons-generator | import React from 'react'
import isPresent from 'is-present'
import commaSplit from 'comma-split'
import conf from '../config'
const config = conf()
import Layout from '../components/layout'
export default class extends React.Component {
constructor () {
super()
this.state = {
config
}
}
ha... |
packages/mui-icons-material/lib/GridOffTwoTone.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
ui/src/containers/Visualisations/components/PreviewPeriodPicker.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
import {
TODAY,
LAST_24_HOURS,
LAST_7_DAYS,
LAST_30_DAYS,
LAST_2_MONTHS,
LAST_6_MONTHS,
LAST_1_YEAR,
LAST_2_YEARS,
} from 'ui/utils/constants';
/**
* @param {string} props.visualisationId
* @param {string} props.previewPeriod
* @param {(... |
test/standalone/chart.js | gj262/noaa-coops-viewer | import React from 'react'
import ReactDOM from 'react-dom'
import 'utils/logging'
import { createStore } from 'redux'
import Chart from 'components/Chart'
import coOpsReducer from 'reducers/coOps'
import { actions as coOpsActions } from 'actions/coOps'
/* eslint camelcase: 0 */
import data_2017_9414290 from '../data/20... |
dawnherald.js | Adumbro/dawnherald | const Discord = require("discord.js");
const bot = new Discord.Client();
const config = require("./config.json");
const dict = require("./dictionary.json");
const Twitter = require("twitter");
const fs = require('fs');
const dateFormat = require("dateformat");
const request = require('request').defaults({ encoding: nul... |
app/templates/client.js | v2018z/generator-fluxible | /*global document, window */
import React from 'react';
import debug from 'debug';
import { createElementWithContext } from 'fluxible-addons-react';
import app from './app';
const debugClient = debug('<%= name %>');
const dehydratedState = window.App; // Sent from the server
window.React = React; // For chrome dev t... |
app/javascript/mastodon/features/status/index.js | d6rkaiz/mastodon | import Immutable from 'immutable';
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { createSelector } from 'reselect';
import { fetchStatus } from '../../actions/... |
client/pages/__tests__/LogoutPage-test.js | freakimkaefig/melodicsimilarity | import React from 'react';
import { mount } from 'enzyme';
import sinon from 'sinon';
import LogoutPage from '../LogoutPage';
import DocumentTitle from 'react-document-title';
import { APP_NAME } from '../../constants/AppConstants';
jest.mock('../../services/AuthService');
describe('<LogoutPage/>', () => {
var wra... |
src/components/video_list_item.js | iAmNawa/ReactJS | import React from 'react';
const VideoListItem = ({video, onVideoSelect}) => {
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li onClick={() => onVideoSelect(video)} className="list-group-item">
<div className="video-list media">
<div className="media-left">
<img className=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.