path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/react/JSONTree/grab-node.js | cyhunter/redux-devtools | import React from 'react';
import objType from './obj-type';
import JSONObjectNode from './JSONObjectNode';
import JSONArrayNode from './JSONArrayNode';
import JSONStringNode from './JSONStringNode';
import JSONNumberNode from './JSONNumberNode';
import JSONBooleanNode from './JSONBooleanNode';
import JSONNullNode from... |
ajax/libs/muicss/0.9.5/react/mui-react.js | jdh8/cdnjs | (function (global) {
var babelHelpers = global.babelHelpers = {};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function define... |
ajax/libs/js-data/1.5.1/js-data-debug.js | gaearon/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file dist/js-data-debug.js
* @version 1.5.1 - Homepage <http://www.js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Data store.
*/
!function(e){if("object"==typeof exports&&"undefine... |
stories/ButtonWithOptions/index.js | skyiea/wix-style-react | import React from 'react';
import {storiesOf} from '@storybook/react';
import Markdown from '../utils/Components/Markdown';
import Readme from '../../src/ButtonWithOptions/README.md';
import ExampleStandardComp from './ButtonWithOptionsStandard';
import InteractiveCodeExample from '../utils/Components/InteractiveCodeEx... |
src/components/Weui/cell/cell_header.js | ynu/ecard-wxe | /**
* Created by jf on 15/11/12.
*/
import React from 'react';
import classNames from 'classnames';
export default class CellHeader extends React.Component {
render() {
const {className, children, ...others} = this.props;
const cls = classNames({
'weui-cell__bd_hd': true,
... |
node_modules/material-ui/lib/card/card-header.js | pborel/polisee | 'use strict';
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; };
var React = require('react');
var Styles = req... |
ajax/libs/forerunnerdb/1.3.476/fdb-core.min.js | maruilian11/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... |
packages/material-ui-icons/src/InvertColorsOff.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let InvertColorsOff = props =>
<SvgIcon {...props}>
<path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.58c1.79 0 3.... |
packages/cp-frontend/src/components/manifest/environment.js | yldio/copilot | import React from 'react';
import { Field } from 'redux-form';
import remcalc from 'remcalc';
import { Row } from 'react-styled-flexboxgrid';
import { Button, Divider, H3, P } from 'joyent-ui-toolkit';
import { EEditor } from './editors';
import Files from './files';
const EnvironmentDivider = Divider.extend`margin-t... |
app/root.js | attentiveness/reading | /**
*
* Copyright 2016-present reading
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
assets/themes/admin/js/jquery1x.js | arjint2004/12516 | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if ... |
ajax/libs/omniscient/3.0.0/omniscient.js | pzp1997/cdnjs | /**
* Omniscient.js v2.1.0
* Authors: @torgeir,@mikaelbr
***************************************/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n... |
app/components/Header.js | hillscottc/trivnode-react | import React from 'react'
import styles from './Header.css';
import { Link } from 'react-router'
const Header = () => (
<header className={styles.header}>
<h1>
<Link to="/">trivnode-react</Link>
</h1>
<nav>
<ul>
<li><Link to="/cats" activeClassName={styles.active} >cats<... |
test/helpers/shallowRenderHelper.js | nt001-01/AFD | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
webpack.config.js | HopperGithub/react-newsapp | var webpack = require('webpack');
var path = require('path');
var websiteDir = path.resolve(__dirname, 'website');
var serverDir = path.resolve(__dirname, 'api');
var nodeModuleDir = path.resolve(__dirname, 'node_modules');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var CopyPlugin = require('copy-w... |
ajax/libs/forerunnerdb/1.3.454/fdb-all.js | honestree/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/Root.js | Opelvectra/hello.react.redux | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Provider, connect } from 'react-redux';
import routes from '../routes';
import { Router } from 'react-router';
import {bindActionCreators} from 'redux';
import * as productsActions from '../actions/productsActions';
import * as cartI... |
imports/ui/pages/RecoverPassword/RecoverPassword.js | jamiebones/Journal_Publication | import React from 'react';
import { Row, Col, Alert, FormGroup, ControlLabel, Button } from 'react-bootstrap';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Accounts } from 'meteor/accounts-base';
import { Bert } from 'meteor/themeteorchef:bert';
import AccountPageFooter from '..... |
test/components/familyList.spec.js | noahpeden/adoptfund | import React from 'react'
import { shallow, mount } from 'enzyme'
import { expect, assert } from 'chai'
import sinon from 'sinon'
import FamilyList from '../../public/lib/components/FamilyList'
describe('FamilyList', () => {
it('renders a div', function() {
expect(shallow(<FamilyList />).contains(<div/>)).to.equa... |
src/Menu.js | dragfire/react-menus-dd | import React from 'react';
import './menu.css';
import ArrowRight from './arrow_right.png';
import PropTypes from 'prop-types';
const Styles = {
arrowRight: {
position: 'absolute',
right: 5,
top: '35%',
width: 12,
height: 12,
},
};
const Menu = (props) => {
const {
link,
onClick,
... |
node_modules/react-bootstrap/es/Pagination.js | lucketta/got-quote-generator | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
lib/ui/settings/preferredunits.js | SignalK/instrumentpanel | /**
* PreferredUnits
*
*/
import React from 'react';
import {render} from 'react-dom';
import PropTypes from 'prop-types';
import {Panel, ButtonGroup, Button} from 'react-bootstrap';
import InstrumentPanel from '../instrumentpanel';
import {
conversionsToOptions,
getConversionsList
} from './conversions'
import... |
templates/javascript/Component.js | willmendesneto/generator-reactor | 'use strict';
import React from 'react';<% if (!!style) {%>
import './<%= classedFileName %>.<%= cssExtension %>';<% } %>
export default class <%= classedName %> extends React.Component {
constructor(props, context) {
super(props, context);
}<% if(rich){%>
getInitialState() {
return({});
}
getD... |
src/common/containers/landing.js | canonical-websites/build.snapcraft.io | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Anchor } from '../components/vanilla-modules/button';
import { HeadingTwo, HeadingThree } from '../components/vanilla-modules/heading';
import { List, ListItem } from '../components/vanilla-mod... |
frontend/components/GroupListTable.js | SkyPicker/Skywall | import React from 'react'
import {countBy} from 'lodash'
import {formatPattern} from 'react-router'
import {IndexLinkContainer} from 'react-router-bootstrap'
import {Table, Button} from 'react-bootstrap'
import {For, With} from 'jsx-control-statements'
import PropTypes from 'prop-types'
import {compose, bindActionCreat... |
FirstRedux/src/components/Main/Main.js | Louis0503/TestRact | // Stateless Component : provide the entry for all views.
import React from 'react';
// import ReactDOM from 'react-dom';
import TodoHeaderContainer from '../../containers/TodoHeaderContainer';
import TodoListContainer from '../../containers/TodoListContainer';
const Main = () => (
<div>
<TodoHeaderContainer />... |
app/jsx/bundles/course_wizard.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
teletobit/src/components/SinglePost/PostDeleted.js | edenpark/teletobit | import React from 'react';
import { Link } from 'react-router';
import { Header, Icon, Button, Divider } from 'semantic-ui-react';
const PostDeleted = () => {
return(
<div className="deleted-post-wrapper">
<Header as='h2' icon>
<Icon name='meh' />
삭제 된 포스트 입니... |
stories/form/input.js | shulie/dh-component | import React from 'react';
import { Input } from '../../src';
export default class InputDemo extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="test-input">
<div className="test-input-eq ">
<Input value="1223" onChange={(e) => {conso... |
app/scripts/components/matched-results.js | hustbill/autorender-js | import React from 'react';
import MatchedText from './matched-text';
const SHOW_ROW_COUNT = 2;
const MAX_MATCH_LENGTH = 24;
const Match = match => (
<div className="matched-results-match" key={match.label}>
<div className="matched-results-match-wrapper">
<span className="matched-results-match-label">
... |
module/manager/lib/database.js | soomtong/blititor | // var async = require('neo-async');
var mysql = require('mysql');
var winston = require('winston');
var common = require('../../../core/lib/common');
var misc = require('../../../core/lib/misc');
var databaseDefault = misc.getDatabaseDefault();
var tables = {
auth: databaseDefault.tablePrefix + 'auth',
user... |
example/__tests__/App.js | speedledger/slant | import React from 'react';
import { shallow } from 'enzyme';
import App from '../App';
test('App', () => {
const app = shallow(<App />);
expect(app).toMatchSnapshot();
});
|
packages/vulcan-redux/lib/server/setupRedux.js | VulcanJS/Vulcan | import React from 'react';
import { Provider } from 'react-redux';
import { addCallback } from 'meteor/vulcan:core';
import { initStore } from '../modules/redux';
const setupRedux = initialState => {
const store = initStore(initialState);
addCallback('router.server.wrapper', function ReduxStoreProvider(app) {
... |
node_modules/laravel-elixir/node_modules/vueify/node_modules/babel/node_modules/babel-core/node_modules/core-js/library/modules/es6.promise.js | munfor/laravel-angular-cms | 'use strict';
var $ = require('./$')
, LIBRARY = require('./$.library')
, global = require('./$.global')
, ctx = require('./$.ctx')
, classof = require('./$.classof')
, $export = require('./$.export')
, isObject = require('./$.is-object')
, anObject = require('./$.an-objec... |
RNAPPDemo/ReactComponent/index.android.js | xuchengcheng/RNAPPDemo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class ReactNativeDemo extends Component {
//初始化一些不可以修改的值
static defaultProps = {
autoPla... |
src/components/presentational/ProductsPreviewElements/ProductsRow.js | AurimasSk/DemoStore | import React from 'react';
import PropTypes from 'prop-types';
import ProductPreviewElement from './ProductPreviewElement';
const ProductsRow = ({ productsRow}) => {
return (
<div className="productsRow row">
{productsRow.map(product =>
<ProductPreviewElement
key={product.id}
pr... |
src/vendor/recharts/demo/component/AreaChart.js | donal-crotty/fuzzy-telegram | import React from 'react';
import { changeNumberOfData } from './utils';
import { AreaChart, Area, XAxis, YAxis, Tooltip, CartesianGrid, Brush,
ReferenceArea, ReferenceLine, ReferenceDot, ResponsiveContainer } from 'recharts';
const data = [
{ name: 'Page A', uv: 4000, pv: 2400, amt: 2400 },
{ name: 'Page B', uv... |
Libraries/CustomComponents/Navigator/Navigator.js | DerayGa/react-native | /**
* Copyright (c) 2015, Facebook, Inc. All rights reserved.
*
* Facebook, Inc. ("Facebook") owns all right, title and interest, including
* all intellectual property and other proprietary rights, in and to the React
* Native CustomComponents software (the "Software"). Subject to your
* compliance with these t... |
src/components/Row.js | radubrehar/evanghelic.ro | import React from 'react';
import { css } from 'glamor';
import join from './join';
const mainCls = css({
margin: '0 auto',
maxWidth: 960,
padding: '0px 1.0875rem'
});
const Row = props => {
return <div {...props} className={join(mainCls, props.className)} />;
};
export default Row;
|
js/pages/iptt_report/components/sidebar/buttons.js | mercycorps/TolaActivity | import React from 'react';
export const IPTTButton = ( props ) => {
return (
<button type="reset" className={ "btn btn-block btn-reset" + (props.isDisabled ? " disabled" : "")}
onClick={ props.action }>
{ props.label }
</button>
);
} |
ajax/libs/primereact/6.6.0-rc.1/steps/steps.min.js | cdnjs/cdnjs | this.primereact=this.primereact||{},this.primereact.steps=function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=r(t);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r... |
test/DropdownMenuSpec.js | collinwu/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownMenu from '../src/DropdownMenu';
import MenuItem from '../src/MenuItem';
describe('DropdownMenu', function () {
it('Should render menu correctly', function () {
let Parent = React.createClass({
render(){
... |
app/javascript/mastodon/containers/compose_container.js | NS-Kazuki/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import Compose f... |
ajax/libs/ember-data.js/2.15.0-beta.1/ember-data.prod.js | wout/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2017 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.15.0-beta.1
*/
var loader, define, requireModule, require, requirej... |
packages/mui-icons-material/lib/esm/BurstMode.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"
}), 'B... |
src/js/delegate.js | stoodkev/SteemPlus |
var token_del = null;
var delegationStarted = false;
var usernamePageDelegation=null;
var created = false;
var load_check = '';
var load_check2 = '';
var classButton;
var timeoutD = 2000;
var myAccountDelegation=null;
var totalOutgoingDelegation=-1;
var totalIncomingDelegation=-1;
var myTotalOutgoingDelega... |
app/containers/AppContainer.js | thenormalsquid/electronApp | // @flow
import React from 'react';
import type { Children } from 'react';
const AppContainer = ({ children } : any) =>
<div>
{children}
</div>;
export default AppContainer; |
e2e/js/index.android.js | umfana/react-native-geocoder | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TextInput,
TouchableOpacity,
ScrollView,
} from 'react-native';
import Geocoder from 'react-native-geocoder';
class GeocoderE2EApp exten... |
node_modules/react-icons/go/checklist.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoChecklist = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m34.7 20.2l-1.9-2c-0.3-0.2-0.7-0.2-0.9 0l-4.1 4.1-4.7 4.7-3.7-3.6c-0.2-0.3-0.6-0.3-0.9 0l-1.9 1.9c-0.3 0.3-0.3 0.7 0 0.9l6 6.1c0.3 0.2 0.7 0.2 0.9 0l11.2-11.2c0.3-0... |
ajax/libs/forerunnerdb/1.3.596/fdb-core.min.js | sajochiu/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... |
saga/P/async/src/components/Picker.js | imuntil/React | import React from 'react'
import PropTypes from 'prop-types'
function Picker({value, onChange, options}) {
return (
<span>
<h1>{value}</h1>
<select onChange={e => onChange(e.target.value)} value={value}>
{
options.map(option =>
<option value={option} key={option}>{option... |
src/Message.js | atFriendly/react-native-friendly-chat | /* eslint react-native/no-inline-styles: 0 */
import PropTypes from 'prop-types';
import React from 'react';
import { View, ViewPropTypes, StyleSheet, TouchableWithoutFeedback, Text, TouchableOpacity, } from 'react-native';
import Avatar from './Avatar';
import Bubble from './Bubble';
import SystemMessage from './Sys... |
MUMScrum.Web/UI_Design/plugins/Font-Awesome/src/assets/js/jquery-1.7.1.min.js | KhaledSamir/ScrumSystem | /*! jQuery v1.7.1 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 cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
ajax/libs/clappr/0.0.61/clappr.js | sajochiu/cdnjs | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)... |
src/propTypes/LayoutPropTypes.js | dingbat/react-native-mock | /**
* https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/LayoutPropTypes.js
*/
import React from 'react';
const { PropTypes } = React;
/**
* React Native's layout system is based on Flexbox and is powered both
* on iOS and Android by an open source project called css-layout:
* https://gith... |
ajax/libs/aui/5.2-m6/js/aui-all.min.js | paleozogt/cdnjs | !function(a2,aB){var w,af,o=a2.document,aI=a2.location,d=a2.navigator,bg=a2.jQuery,I=a2.$,am=Array.prototype.push,a4=Array.prototype.slice,aK=Array.prototype.indexOf,z=Object.prototype.toString,V=Object.prototype.hasOwnProperty,aO=String.prototype.trim,bG=function(e,bZ){return new bG.fn.init(e,bZ,w)},bx=/[\-+]?(?:\d*\.... |
src/main/resources/code/react/Apps/ManageRadars/Pages/AddFromPreviousRadarPage/RadarCopyControl/RadarQuadrantCopyControl/quadrantItemColumns/index.js | artieac/technologyradar | import React from 'react';
import { Link } from 'react-router-dom';
export const quadrantItemColumns = (handleCheckboxClickEvent) => {
return [
{
title: '',
key: 'inRadar',
render: rowData => {
return <span><input type="checkbox" onChange= {(event) => handleCheckboxClickEvent(event, row... |
src/layouts/PageLayout/PageLayout.js | sebastiyan/todolist | import React from 'react'
import { IndexLink, Link } from 'react-router'
import PropTypes from 'prop-types'
import './PageLayout.scss'
export const PageLayout = ({ children }) => (
<div className='container text-center'>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='page-layout__nav-ite... |
node_modules/semantic-ui-react/src/views/Feed/Feed.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
} from '../../lib'
import FeedContent from './FeedContent'
import FeedDate from './FeedDate'
import FeedEven... |
form/FieldSet.js | ExtPoint/yii2-frontend | import React from 'react';
import PropTypes from 'prop-types';
export default class FieldSet extends React.Component {
static propTypes = {
model: PropTypes.oneOfType([
PropTypes.string,
PropTypes.func,
]),
prefix: PropTypes.string,
layout: PropTypes.string,... |
webpack-demo/demo16/index.js | zhangjunhd/react-examples | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, Link, IndexRoute, browserHistory } from 'react-router';
require('./app.css');
var App = React.createClass({
render: function () {
return (
<div>
<header>
<ul>
<li><Link to="/app">Dashboard<... |
src/routes/index.js | bhavik3jain/LibertyMutual320Project | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 React from 'react';
import App from '../components/... |
stories/components/form/index.js | NestorSegura/operationcode_frontend | import React, { Component } from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Form from 'shared/components/form/form';
import FormInput from 'shared/components/form/formInput/formInput';
import FormButton from 'shared/components/form/formButton/formB... |
src/svg-icons/content/select-all.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSelectAll = (props) => (
<SvgIcon {...props}>
<path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 ... |
packages/mui-icons-material/lib/ReportGmailerrorred.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")... |
js/jquery-1.11.0.min.js | m0dE/binaryRings | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
node_modules/react-router/es6/IndexLink.js | dulik06/ReduxStarter | 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; };
import React from 'react';
import Link from './Link';
/**
*... |
__tests__/index.ios.js | carney520/30-days-of-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 />
);
});
|
src/components/card/card-in-text.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import Tooltip from 'antd/lib/tooltip';
import './styles.css';
const Img = ({src}) => <img src={src} alt="" />;
const CardInText = ({label, imgSrc, rarity}) => (
<Tooltip title={<Img src={imgSrc} />} placement="top" overlayClassName="cardInText">
<c... |
lib/components/elements/text-input/classes.js | GordonDiggs/relax | import jss from '../../../react-jss';
export default jss.createRules({
input: {
display: 'inline-block',
width: '100%',
maxWidth: '100%',
border: '1px solid #cccccc',
outline: 0
},
holder: {
textAlign: 'left'
}
});
|
test/range-test.js | OnsenUI/react-onsenui | /* global describe it assert */
import React from 'react';
import ReactDOM from 'react-dom';
import {Range} from '../dist/react-onsenui.js';
import TestUtils from 'react/lib/ReactTestUtils';
import rendersToComponent from './testUtil.js';
describe('Range', function() {
rendersToComponent(
<Range />,
'ons-... |
src/svg-icons/action/alarm-add.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmAdd = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
spec/javascripts/components/story/expanded_story/expanded_story_owned_by_spec.js | Codeminer42/cm42-central | import React from 'react';
import { shallow } from 'enzyme';
import ExpandedStoryOwnedBy from 'components/story/ExpandedStory/ExpandedStoryOwnedBy';
describe('<ExpandedStoryOwnedBy />', () => {
const setup = propOverrides => {
const defaultProps = () => ({
users: [
{ id: 1, name: 'foo' },
{... |
src/svg-icons/action/g-translate.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGTranslate = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4... |
node_modules/react-native/node_modules/react-tools/src/shared/utils/__tests__/accumulateInto-test.js | IlyasM/relay | /**
* 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... |
packages/bonde-admin/src/mobrender/widgets/donations/component.spec.js | ourcities/rebu-client | import React from 'react'
import { expect } from 'chai'
import shallowWithIntl from '@/intl/helpers/shallow-with-intl'
import * as mock from '@/utils/mock'
import Page from './component'
describe('client/mobrender/widgets/donations/component', () => {
let wrapper
const props = {
dispatch: mock.noop,
mobil... |
lib/TypeaheadMenu.react.js | Neophy7e/react-bootstrap-typeahead | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _pick2 = require('lodash/pick');
var _pick3 = _interopRequireDefault(_pick2);
var _reactHighlighter = require('react-highlighter');
var _reactHighlighter2 = _interopRequireDefault(_reactHighlighter);
var _react = require('react');
... |
packages/bootstrap-shell/src/containers/LayoutContainer/LayoutContainer.js | TarikHuber/react-most-wanted | import { useConfig } from 'base-shell/lib/providers/Config'
import React from 'react'
import MenuProvider from '../../providers/Menu/Provider'
import '../../styles/custom-bootstrap.css';
const LayoutContent = ({ children }) => {
return (
<div
style={{
display: 'flex',
flexDirection: 'column... |
dropbox-sdk-dotnet/Examples/SimpleBlogDemo/Scripts/jquery-1.10.2.min.js | dropbox/dropbox-sdk-dotnet | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
fluxible-router/components/Page.js | devypt/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import PageStore from '../stores/PageStore';
import { connectToStores } from 'fluxible-addons-react';
@connectToStores([PageStore], (context) => context.getSt... |
app/javascript/mastodon/features/compose/containers/privacy_dropdown_container.js | salvadorpla/mastodon | import { connect } from 'react-redux';
import PrivacyDropdown from '../components/privacy_dropdown';
import { changeComposeVisibility } from '../../../actions/compose';
import { openModal, closeModal } from '../../../actions/modal';
import { isUserTouching } from '../../../is_mobile';
const mapStateToProps = state => ... |
example/App.js | bodyflex/react-native-simple-modal | import React from 'react';
import { Text, TouchableOpacity, View } from 'react-native';
import Modal from 'react-native-simple-modal';
export default class App extends React.Component {
state = { open: false };
modalDidOpen = () => console.log('Modal did open.');
modalDidClose = () => {
this.setState({ ope... |
docs/src/app/components/pages/components/FlatButton/ExampleIcon.js | xmityaz/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import {fullWhite} from 'material-ui/styles/colors';
const style = {
margin: 12,
};
const FlatButtonExampleIcon = () => (
<div>... |
src/components/AudioPlayer/AudioPlayer.js | littlewin-wang/mufly | import React from 'react'
import PlayButton from './PlayButton'
export default class AudioPlayer extends React.Component {
constructor (props) {
super(props)
this.state = {
ready: false,
mode: 'play',
percent: 0,
duration: 0,
buffered: {}
}
}
// Calc the percentage of ... |
webpack/components/NewTemplateSync/index.js | mmoll/foreman_templates | import React from 'react';
import { connect } from 'react-redux';
import * as TemplateSyncActions from './NewTemplateSyncActions';
import NewTemplateSync from './NewTemplateSync';
import { selectLoadingSettings, selectError } from './NewTemplateSyncSelectors';
import withProtectedView from '../../withProtectedView';
i... |
examples/counter/containers/App.js | AprilArcus/redux | import React, { Component } from 'react';
import CounterApp from './CounterApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider r... |
examples/with-global-stylesheet/pages/index.js | nelak/next.js | import React from 'react'
import stylesheet from 'styles/index.scss'
// or, if you work with plain css
// import stylesheet from 'styles/index.css'
export default () =>
<div>
<style dangerouslySetInnerHTML={{ __html: stylesheet }} />
<p>ciao</p>
</div>
|
react-native/TechStack/__tests__/index.android.js | vanyaland/react-demos | 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/ButtonSpec.js | Firfi/meteor-react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Button from '../src/Button';
describe('Button', function () {
it('Should output a button', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Button>
Title
</Button>
);
assert.equal(... |
yycomponent/input/Group.js | 77ircloud/yycomponent | import React from 'react';
import { Input } from 'antd';
class Group extends React.Component{
constructor(props){
super(props);
}
render(){
return (<Input.Group {...this.props}/>);
}
}
export default Group
|
ajax/libs/zeroclipboard/2.1.4/ZeroClipboard.js | voronianski/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.1.4
*/
(function(window, undefined) {
"use strict";... |
test/integration/image-component/default/pages/layout-responsive.js | azukaru/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Layout Responsive</p>
<Image
id="responsive1"
src="/wide.png"
width="1200"
height="700"
layout="responsive"
/>
<Image
id="responsive2"
sr... |
pootle/static/js/auth/components/AccountInactive.js | fabada/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { PureRen... |
src/svg-icons/communication/call-merge.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMerge = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
CommunicationCallMerge... |
src/pages/MoneyTrackingOverview.js | ShaunMcNamee/budget-app | import React, { Component } from 'react';
import MoneyTrackingTable from "../components/MoneyTrackingTable";
var data = [
{
category: 'Test',
notes: 'For something',
monthly: 600,
thisYear: 10000,
remaining: 125
}, {
category: 'Test2',
notes: 'For other stuff',
monthly: 400,
thi... |
src/svg-icons/content/gesture.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentGesture = (props) => (
<SvgIcon {...props}>
<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-1.4 3.... |
src/components/NotFoundPage/NotFoundPage.js | akrigline/dota2items | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
src/MenuItem.js | laran/react-bootstrap | import React from 'react';
import classnames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
export default class MenuItem extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
hand... |
js/react/JSXTransformer.js | chrishiestand/react-todo | /**
* JSXTransformer v0.12.0-alpha
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSXTransforme... |
app/App.js | SamyZ/Word-Dash | import React from 'react';
import Main from './src/Main';
const App = () => <Main />;
export default App;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.