path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/ValueEditorModal/ValueInput.js | fedebertolini/json-editor | import React from 'react';
import { Input, Checkbox } from 'semantic-ui-react';
import throttle from 'lodash/throttle';
import { getValueType } from '../../utils/valueTypes';
const ValueInput = ({ value, onChange }) => {
switch (getValueType(value)) {
case 'string': {
const onInputChange = (e, ... |
ajax/libs/forerunnerdb/1.3.919/fdb-core.js | wout/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/Components/HOC/index.js | wangming-0215/depth-in-react-demo | import React, { Component } from 'react';
import HOC from './HOC';
// create-react-app 暂时不支持decorator
// @HOC
// export default class extends Component {
// render() {
// return <input name='name' {...this.props.name} />
// }
// }
class Input extends Component {
render() {
return <input na... |
src/Thumbnail.js | laran/react-bootstrap | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const Thumbnail = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
alt: React.PropTypes.string,
href: React.PropTypes.string,
src: React.PropTyp... |
docs/src/app/components/pages/components/List/ExampleContacts.js | pomerantsev/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import Divider from 'material-ui/Divider';
import Avatar from 'material-ui/Avatar';
import {pinkA200, transparent} from 'mater... |
src/components/LinkButton.js | dan-f/mark | import React from 'react'
export default ({ message, onClick, className = '' }) =>
<button className={`btn btn-link ${className}`} onClick={onClick}>{message}</button>
|
packages/react-error-overlay/src/components/CodeBlock.js | IamJoseph/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React from 'react';
import { redTransparent, yellowTransparent } from '../styles';
const _preStyle = {
position: '... |
src/main/components/lib/json-schema-form-controller.js | hayond/web-pack-example | import React from 'react'
import ObjectJsonSchema from './schema/object-json-schema'
export default class JsonSchemaFormController {
jsonSchema = null
baseFieldProps = {}
componentContext = {}
initController() {
}
getValues() {
}
setValues() {
}
reset() {
}
componentDefaultSchema(type) {
le... |
src/components/containers/allot-user-list-container.js | HuangXingBin/goldenEast | import React from 'react';
import { Button, AutoComplete, DatePicker, message } from 'antd';
import './user-list-container.css';
import UserListTable from '../views/allot-user-list-view.js';
import SearchUserInput from '../views/SearchUserInput.js';
import store from '../../store';
import { connect } from 'react-redux'... |
javascript/book-list/src/containers/book_detail.js | sandislonjsak/react-learning-projects | import React, { Component } from 'react';
import { connect } from 'react-redux';
class BookDetail extends Component {
render() {
if (!this.props.book) {
return (
<div>Select a book</div>
);
}
return (
<div>
<h3>Details for:</h3>
<div>Title: {this.props.book.ti... |
es/internal/SwitchBase.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/parser/warlock/destruction/modules/soulshards/SoulShardDetails.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import ResourceBreakdown from 'parser/shared/modules/resourcetracker/ResourceBreakdown';
import SPELLS from 'common/SPELLS';
import Panel from 'interface/others/Panel';
import Warning from 'interface/Alert/Warning';
import BoringSpellValue from ... |
src/containers/recipes/Browse/BrowseView.js | banovotz/WatchBug2 | /**
* Receipe Tabs Screen
* - Shows tabs, which contain receipe listings
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
StyleSheet,
InteractionManager,
} from 'react-native';
... |
src/mui/list/FilterForm.spec.js | matteolc/admin-on-rest | import assert from 'assert';
import { render } from 'enzyme';
import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import TranslationProvider f... |
fusion/StepperControl.js | pagesource/fusion | import { css } from 'emotion';
import styled from 'react-emotion';
import React from 'react';
import Button from './Button';
const styles = {
root: {
width: '100%',
maxWidth: 700,
margin: '40px',
},
content: {
margin: '0 16px',
},
actions: {
marginTop: 12,
},
backButton: {
marginR... |
src/utils/createContextWrapper.js | gianpaj/react-bootstrap | import React from 'react';
/**
* Creates new trigger class that injects context into overlay.
*/
export default function createContextWrapper(Trigger, propName) {
return function(contextTypes) {
class ContextWrapper extends React.Component {
getChildContext() {
return this.props.context;
}
... |
packages/material-ui-docs/src/svgIcons/LightbulbFull.js | allanalexandre/material-ui | import React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
function LightbulbFull(props) {
return (
<SvgIcon {...props}>
<path d="m9,21c0,0.55 0.45,1 1,1l4,0c0.55,0 1,-0.45 1,-1l0,-1l-6,0l0,1zm3,-19c-3.86,0 -7,3.14 -7,7c0,2.38 1.19,4.47 3,5.74l0,2.26c0,0.55 0.45,1 1,1l6,0c0.55,0 1,-0.45 1,... |
yii/cecsj/assets/ffb112fe/jquery.js | lmedina33/sisawem | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
public/scripts/components/header.js | asarode/flux-grok | 'use strict'
import React from 'react'
import cx from 'classname'
class Header extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
render() {
return (
<div className="fg-bar-main">
<h1 className="fg-bar-title">Shmounder House</h1>
</div>
)
}
}
He... |
src/html/tags/HtmlTagLi.js | saketkumar95/zulip-mobile | import React from 'react';
import { StyleSheet, View } from 'react-native';
import styles from '../HtmlStyles';
import HtmlNodeText from '../HtmlNodeText';
import renderHtmlChildren from '../renderHtmlChildren';
const BULLET = '\u2022';
const customStyles = StyleSheet.create({
text: {
flexWrap: 'wrap',
fle... |
client/modules/admin/containers/databases/databases.js | JSSolutions/Databazel | import React from 'react';
import Databases from '../../components/databases/databases.jsx';
import Loading from '/client/modules/core/components/partial/loading.jsx';
import { useDeps, composeWithTracker, composeAll } from 'mantra-core';
export const composer = ({ context }, onData) => {
const { Meteor } = context(... |
lib/MultiColumnList/CellMeasurer.js | folio-org/stripes-components | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import noop from 'lodash/noop';
class CellMeasurer extends React.Component {
static propTypes = {
children: PropTypes.node,
columnName: PropTypes.string,
onMeasure: PropTypes.func,
rowIndex: PropTypes.one... |
contrib/node/examples/src/node/web-component-button/src/Button.js | lahosken/pants | var React = require('react'),
ButtonStyles = require('./Button.css');
var Button = React.createClass({
getInitialState: function() {
return { clickCount: 0 };
},
handleClick: function() {
this.setState({ clickCount: this.state.clickCount + 1 });
},
render: function() {
return <button
... |
examples/huge-apps/components/GlobalNav.js | davertron/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
js/components/RecCard.react.js | cs2340-titans/RoastWeb | import React from 'react';
import IconMenu from 'material-ui/lib/menus/icon-menu';
import IconButton from 'material-ui/lib/icon-button';
import FontIcon from 'material-ui/lib/font-icon';
import NavigationExpandMoreIcon from 'material-ui/lib/svg-icons/navigation/expand-more';
import MenuItem from 'material-ui/lib/menus/... |
Libraries/Lists/ViewabilityHelper.js | hammerandchisel/react-native | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const invariant = require('invariant');
export type ViewToken = {
item: any,
key: strin... |
modules/dreamview/frontend/src/components/Header/HMISelectors.js | jinghaomiao/apollo | import React from 'react';
import Selector from 'components/Header/Selector';
import WS from 'store/websocket';
export default class HMISelectors extends React.Component {
render() {
const {
modes, currentMode,
maps, currentMap,
vehicles, currentVehicle,
} = this.props;
return (
... |
components/SearchBox.js | stucco/ui | import React from 'react'
import ReactDOM from 'react-dom'
import history from '../core/history'
import cx from 'classnames'
import Link from './Link'
import { connect } from 'react-redux'
import { SET_SOURCE } from '../redux/actions'
const properties = {
name: 'Name',
vertexType: 'Vertex Type',
... |
aws/grudges/src/Application.js | michaelwehrley/notes | import React, { Component } from 'react';
import NewGrudge from './NewGrudge';
import Grudges from './Grudges';
import './Application.css';
class Application extends Component {
state = {
grudges: [],
};
addGrudge = grudge => {
this.setState({ grudges: [grudge, ...this.state.grudges] });
};
removeG... |
ajax/libs/backbone-react-component/0.5.1/backbone-react-component-min.js | Pranay92/cdnjs | /**
* Backbone.React.Component
* @version 0.5.1
* @author "Magalhas" José Magalhães <magalhas@gmail.com>
* @license MIT <http://opensource.org/licenses/MIT>
*/
"use strict";!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module&&module... |
test/regressions/tests/Tabs/AdvancedTabs.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Icon from 'material-ui/Icon';
import Paper from 'material-ui/Paper';
import Tabs from 'material-ui/Tabs';
import Tab from 'material-ui/Tabs/Tab';
const styles = (theme: Object) => ({
... |
drupal/misc/jquery.js | Since84/AGD-Site |
/*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.... |
test/specs/cartesian/AreaSpec.js | thoqbk/recharts | import React from 'react';
import { expect } from 'chai';
import { Surface, Area } from 'recharts';
import { mount, render } from 'enzyme';
describe('<Area />', () => {
const data = [
{ x: 10, y: 50, value: 100 },
{ x: 50, y: 50, value: 100 },
{ x: 90, y: 50, value: 100 },
{ x: 130, y: 50, value: 100... |
ajax/libs/vkui/4.29.0/cjs/components/CalendarDays/CalendarDays.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CalendarDays = void 0;
var _jsxRuntime ... |
src/pages/trend/index.js | eseom/Gitten | import React from 'react'
import {
Dimensions,
RefreshControl,
Text,
TouchableHighlight,
ListView,
View,
} from 'react-native'
import { Navigation } from 'react-native-navigation'
import { connect } from 'react-redux'
import { iconsMap } from '../../utils/AppIcons'
import { fetchTrends } from '../../redux/... |
app/components/TopGroup/Accordion/index1.js | theterra/newsb | import React from 'react';
import GroupStyle from '../GroupStyle';
import AccordStyle from './AccordStyle';
export default class TopList extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.accordion = this.accordion.bind(this);
}
componentDidMount() {
this.accordio... |
ajax/libs/yui/3.1.0/event-custom/event-custom-debug.js | jieter/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module e... |
ajax/libs/zeroclipboard/2.0.3/ZeroClipboard.Core.js | BinaryMuse/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.3
*/
(function(window, undefined) {
"use strict";... |
src/shared/utils/__tests__/PooledClass-test.js | algolia/react | /**
* Copyright 2014-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... |
src/app/src/components/Controller.js | istreight/eggbeatr | /**
* FILENAME: Controller.js
* AUTHOR: Isaac Streight
* START DATE: October 30th, 2017
*
* This file contains the Controller class that renders the major components
* of the lesson calendar web application.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-ty... |
packages/material-ui-icons/src/BluetoothRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17 7l-4.29-4.29c-.63-.63-1.71-.19-1.71.7v6.18L7.11 5.7a.9959.9959 0 00-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L11 14.41v6.18c0 .89 1.08 1.34 1.7... |
files/clappr/0.0.79/clappr.js | khorep/jsdelivr | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)... |
client/views/room/contextualBar/AutoTranslate/AutoTranslate.js | VoiSmart/Rocket.Chat | import { FieldGroup, Field, ToggleSwitch, Select } from '@rocket.chat/fuselage';
import React from 'react';
import VerticalBar from '../../../../components/VerticalBar';
import { useTranslation } from '../../../../contexts/TranslationContext';
const AutoTranslate = ({
language,
languages,
handleSwitch,
translateE... |
app/components/Icons/icons/icon-code.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
function IconCode() {
return (
<svg version="1.1" id="icon-code4" x="0px" y="0px" viewBox="0 0 175.67 146.83">
<g>
<polygon style={{ opacity: '0.05', isolation: 'isolate' }} points="166.42 74.27 124.6 4.48 89.31 0 89.28 0 88.89 70.83 166.42 74.27" />
<polygon styl... |
ajax/libs/material-ui/4.9.2/Toolbar/Toolbar.min.js | cdnjs/cdnjs | "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends")),_objectWithoutProperties2=_interopRequireDefault(re... |
src/pages/Slides/data/slide19.js | gndplayground/styled-components-presentation | export default {
steps: [
{
key: 'slide19_renderText',
data: {
center: true,
animation: 'opacity',
type: 'text',
data: 'Let re create our <Button /> Component with CSS Modules',
},
},
{
key: 'slide19_renderCode',
data: {
animation: 'opa... |
packages/react/components/accordion-item.js | iamxiaoma/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '..... |
themes/default/assets/js/jquery-1.7.2.min.js | Niiph/Gekosale2 | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
react-native/nativebase/js/components/semana/index.js | lemol/diario-escola-sabatina |
import React, { Component } from 'react';
import { TouchableOpacity, View } from 'react-native';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Text, Button, Icon, H3, H2, H1, List, ListItem } from 'native-base';
import { Grid, Row } from 'react-native-easy-grid';
import { openDraw... |
fixtures/nesting/src/modern/HomePage.js | facebook/react | import React from 'react';
import {useContext} from 'react';
import {Link} from 'react-router-dom';
import ThemeContext from './shared/ThemeContext';
import Clock from './shared/Clock';
export default function HomePage({counter, dispatch}) {
const theme = useContext(ThemeContext);
return (
<>
<h2>src/mo... |
files/rxjs/2.4.10/rx.lite.js | vousk/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... |
test/DropdownButtonSpec.js | cgvarela/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownButton from '../src/DropdownButton';
import DropdownMenu from '../src/DropdownMenu';
import MenuItem from '../src/MenuItem';
import { shouldWarn } from './helpers';
describe('DropdownButton', () => {
const simpleDropdo... |
components/gpstracking/Settings.js | akashnautiyal013/ImpactRun01 | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ListView,
ScrollView,
Navigator,
TouchableHighlight,
AsyncStorage,
SettingsService
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import SettingDetail from './SettingDetail';
va... |
ajax/libs/angular-data/0.10.1/angular-data.js | cloudrifles/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 0.10.1 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js... |
__tests__/index.android.js | yumikohey/WaiterCar | 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 />
);
});
|
test/index.js | elmirkouliev/react-component-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import Sample from 'react-component-boilerplate';
/**
* Test component that just imports our Sample component
*/
class Test extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<Sample... |
node_modules/native-base/src/smart/STabs/TabBar.js | tausifmuzaffar/bisApp | import React, { Component } from 'react';
import { View, Animated, Dimensions } from 'react-native';
import { IconNB } from '../../basic/IconNB';
import { Button } from '../../basic/Button';
import { Text } from '../../basic/Text';
import variables from '../../theme/variables/platform';
import { connectStyle } from '@s... |
examples/js/column/column-title-table.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 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;
... |
information/blendle-frontend-react-source/app/modules/payment/components/CreditcardForm/index.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { translate } from 'instances/i18n';
import classNames from 'classnames';
import ManagedInput from 'components/ManagedInput';
import CreditcardInput from './CreditcardInput';
import CSS from './style.scss';
import Br... |
mdbreact/components/PopoverHeader.js | ryanwashburne/react-skeleton | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const PopoverHeader = (props) => {
const {
className,
tag: Tag,
...attributes
} = props;
const classes = classNames(
'popover-header',
className,
);
return (
<Tag {...attributes} clas... |
ajax/libs/angular-ui-select/0.9.7/select.js | eduardo-costa/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.9.7 - 2015-02-13T15:09:21.834Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: ... |
src/index.js | cyrielo/todoist | import React from 'react';
import { Provider } from 'react-redux';
import { render } from 'react-dom';
import App from './pages/App';
import Store from './store';
import './styles/main.scss';
render(<Provider store= { Store } ><App /></Provider>, document.getElementById('app')); |
react-ui/src/index.js | vincentDevin/demonstrationSpeechWebsite | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/modules/todolist/containers/Settings.js | emadalam/mesmerized | import React, { Component } from 'react';
import List from 'react-toolbox/lib/list/List';
import ListSubHeader from 'react-toolbox/lib/list/ListSubHeader';
import ListItem from 'react-toolbox/lib/list/ListItem';
import Dropdown from 'react-toolbox/lib/dropdown/Dropdown';
import ConnectedStoreHOC from '../utils/connect.... |
src/ButtonInput.js | AlexKVal/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
ajax/libs/material-ui/4.9.2/esm/Select/Select.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import { mergeClasses } from '@material-ui/styles';
import SelectInput from './SelectInput';
import formCon... |
app/containers/ToolTypeAllFull/index.js | BeautifulTrouble/beautifulrising-client | /**
*
* ToolTypeAllFull
*
*/
import React from 'react';
import styled from 'styled-components';
import Isvg from 'react-inlinesvg';
import {Link} from 'react-router';
import { injectIntl } from 'react-intl';
import TranslatableStaticText from 'containers/TranslatableStaticText';
import Container from 'components/To... |
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-runtime/node_modules/core-js/modules/es6.promise.js | wylie99998/OSUCS419RTS | 'use strict';
var LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, anObject = req... |
packages/material-ui-icons/src/DonutSmallRounded.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="M11 3.18v17.64c0 .64-.59 1.12-1.21.98C5.32 20.8 2 16.79 2 12s3.32-8.8 7.79-9.8c.62-.14 1.21.34 1.21.98zm2.03 0v6.81c0 .55.45 1 1 1h6.79c.64 0... |
packages/@lyra/components/src/toggles/Buttons.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import styles from 'part:@lyra/components/toggles/buttons-style'
import Button from 'part:@lyra/components/buttons/default'
const ITEM_SHAPE = {
icon: PropTypes.node,
title: PropTypes.string
}
export default class ToggleButtons extends React.Component {
... |
test/plain-list/AutowhateverApp.js | moroshko/react-autowhatever | import React, { Component } from 'react';
import sinon from 'sinon';
import Autowhatever from '../../src/Autowhatever';
import items from './items';
export const renderItem = sinon.spy(item => (
<span>{item.text}</span>
));
export default class AutowhateverApp extends Component {
constructor() {
super();
... |
app/containers/game.js | mthmulders/lin2go | import React from 'react';
import { View } from 'react-native';
import { connect } from 'react-redux';
import Attempts from '../components/attempts';
import EndGame from '../components/endGame';
import Guess from '../components/guess';
import styles from '../styles';
export const Game = (props) => {
return (
<V... |
content/react/metadata.js | peterkuiper/tutorials | if (Meteor.isClient) {
DiffBox.registerTutorial("simple-todos-react", {
gitHubRepoName: "meteor/simple-todos-react",
patchFilename: "generated/react.multi.patch"
});
}
TutorialRegistry.registerTutorial("react", {
title: "Simple Todos React",
subtitle: "Learn how to use Meteor and React together",
tut... |
src/pages/Editor/pages/MapEditor/pages/EditMap/containers/MapEditor/MapEditor.js | caspg/datamaps.co | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux'
import CommonEditor from './containers/CommonEditor'
import LinearScaleEditor from './containers/LinearScaleEditor'
import EquidistantScaleEditor from './containers/EquidistantScaleEditor'
MapEditor.propTypes = {
ma... |
src/icons/SelectAllIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SelectAllIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 10h4V6c-2.21 0-4 1.79-4 4zm0 16h4v-4H6v4zm8 16h4v-4h-4v4zM6 18h4v-4H6v4zM26 6h-4v4h4V6zm12 0v4h4c0-2.... |
src/js/components/navigation/user/mail-submenu.js | v3rt1go/jsse-client | 'use strict';
import React from 'react';
const MailSubmenu = () => {
return (
<div className="ui top left pointing dropdown basic button">
<i className="icons">
<i className="mail icon"></i>
<i className="corner green add icon"></i>
</i>
<div className="menu">
<a classNa... |
test/FormControlsSpec.js | modulexcite/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import * as FormControls from '../src/FormControls';
describe('Form Controls', function () {
describe('Static', function () {
it('renders a p element wrapped around the given value', function () {
const instance = ReactTestUt... |
sites/all/modules/jquery_update/replace/jquery/1.5/jquery.js | mromaldi/drupal-unc | /*!
* jQuery JavaScript Library v1.5.1
* 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.
... |
client/src/components/playlist/PlaylistItem.js | johnnyxh/HummingBot | import React, { Component } from 'react';
import { Media, Col, Row } from 'reactstrap';
import { getTimestamp } from '../../utils/timestamps';
export default class PlaylistItem extends Component {
constructor(props) {
super(props)
this.onSelected = this.onSelected.bind(this);
}
onSelected(event) {
window.op... |
node_modules/react-router/es6/RouterContext.js | xuan6/react-videos | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
examples/ractive/js/app.js | vicentemaximilianoh/todomvc | /*global window, Ractive */
(function (window, Ractive) {
'use strict';
// Create some filter functions, which we'll need later
var filters = {
completed: function (item) { return item.completed; },
active: function (item) { return !item.completed; }
};
// The keycode for the 'enter' and 'escape' keys
var E... |
src/layouts/index.js | bretafinley/site |
import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import {getUniqueIdentifiers} from '../util/utilities';
import MeCard from '../components/cards/me-card';
import SideCard from '../components/cards/side-card';
import '../../node_modules/b... |
ajax/libs/remark/0.11.0/remark.js | holtkamp/cdnjs | require=(function(e,t,n){function i(n,s){if(!t[n]){if(!e[n]){var o=typeof require=="function"&&require;if(!s&&o)return o(n,!0);if(r)return r(n,!0);throw new Error("Cannot find module '"+n+"'")}var u=t[n]={exports:{}};e[n][0].call(u.exports,function(t){var r=e[n][1][t];return i(r?r:t)},u,u.exports)}return t[n].exports}v... |
app/pages/basic.js | jaredpalmer/formik | import React from 'react';
import { Formik, Field, Form, ErrorMessage } from 'formik';
import * as Yup from 'yup';
let renderCount = 0;
const Basic = () => (
<div>
<h1>Sign Up</h1>
<Formik
initialValues={{
firstName: '',
lastName: '',
email: '',
favorite: '',
ch... |
ajax/libs/jquery.fancytree/2.13.0/jquery.fancytree.min.js | seogi1004/cdnjs | /*!
* jquery.fancytree.js
* Tree view control with support for lazy loading and much more.
* 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.13.0
* @date 2015... |
src/index.js | nkbt/esnext-quickstart | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app/App';
const appRoot = document.createElement('div');
appRoot.id = 'app';
document.body.appendChild(appRoot);
ReactDOM.render(<App />, appRoot);
|
docs-ui/components/textCopyInput.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import {action} from '@storybook/addon-actions';
import TextCopyInput from 'app/views/settings/components/forms/textCopyInput';
export default {
title: 'Utilities/TextCopyInput',
};
export const _TextCopyInput = withInfo('Description')(() =... |
milestones/05-webpack-intro-css/Before/src/carousel.js | jaketrent/react-drift | import PropTypes from 'prop-types'
import React from 'react'
function renderSlides(props) {
return React.Children.map(props.children, (slide, i) => {
return React.cloneElement(slide, {
style: {
...slide.props.style,
width: props.width,
left: props.width * (i - props.showIndex)
... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | ge6285790/test | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
Examples/UIExplorer/js/AssetScaledImageExample.js | Swaagie/react-native | /**
* Copyright (c) 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.
*
* The examp... |
ajax/libs/yui/3.17.0/datatable-body/datatable-body-coverage.js | WebReflection/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-... |
js/src/index.js | romainberger/reddjent | import React from 'react'
import Router from 'react-router'
import routes from './routes'
import ScrollBehavior from './scroll-behavior'
const AppRouter = Router.create({
routes: routes,
scrollBehavior: ScrollBehavior
})
AppRouter.run(function(Handler, State) {
React.render(<Handler />, document.body)
})
|
test/FormControlsSpec.js | asiniy/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import * as FormControls from '../src/FormControls';
describe('Form Controls', function () {
describe('Static', function () {
it('renders a p element wrapped around the given value', function () {
const instance = ReactTestUt... |
src/components.js | vingiesel/clogstrap | import React from 'react';
import _ from 'lodash';
import Classnames from 'classnames';
export function Grid(props){
var class_name = props.fluid ? 'container-fluid' : 'container';
var class_list = Classnames(props.className, class_name);
var safe_props = _.omit(props, 'fluid');
return <div {...safe_props} classNa... |
source/component/updater.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import {
View,
NetInfo,
Alert
} from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Config from '../config';
import Toast from '@remobile/react-native-toast';
import * as UpdateAction from '../action/update';
import ... |
front/events/components/listPage.js | RalphSleigh/bookings | import React from 'react'
import {connect} from 'react-redux'
import {Link, NavLink} from 'react-router-dom'
import {push} from 'react-router-redux'
import ReactMarkdown from 'react-markdown'
import Moment from 'moment'
import {getEvents} from '../actions.js'
import {
showEditLink,
showCreateLink,
showBook... |
node_modules/rc-animate/es/Animate.js | scaulfield01/HallHorn | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
ajax/libs/webshim/1.14.3-RC1/dev/shims/moxie/js/moxie.js | andrepiske/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 ... |
admin/src/components/ListSort.js | geminiyellow/keystone | import { FormNote } from 'elemental';
import classNames from 'classnames';
import React from 'react';
import Popout from './Popout';
import PopoutList from './PopoutList';
import vkey from 'vkey';
import CurrentListStore from '../stores/CurrentListStore';
const Transition = React.addons.CSSTransitionGroup;
var ListS... |
tcl/design-1.x/www-app/jquery-ui-1.10.2/tests/jquery-1.6.js | kit-adl/odfi-implementation-physicaldesign | /*!
* jQuery JavaScript Library v1.6
* 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.
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.