target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/components/MoneyTrackingTable.js | ShaunMcNamee/budget-app | import React from 'react';
import PropTypes from 'prop-types';
import { CurrencyTableCell, PositiveNegativeCurrencyTableCell, CurrencyTableCellHeader } from './CurrencyCells';
class MoneyTrackingTable extends React.Component {
render() {
var totalMonthly = 0;
var totalYear = 0;
var totalRemaining = 0;
... |
server/sonar-web/src/main/js/apps/background-tasks/header.js | abbeyj/sonarqube | import React from 'react';
export default React.createClass({
render() {
return (
<header className="page-header">
<h1 className="page-title">{window.t('background_tasks.page')}</h1>
<p className="page-description">{window.t('background_tasks.page.description')}</p>
</header>
... |
src/components/SurveyForm/SurveyForm.js | hirzanalhakim/testKumparan | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { reduxForm, Field } from 'redux-form';
import { connect } from 'react-redux';
import { isValidEmail } from 'redux/modules/survey';
import surveyValidation from './surveyValidation';
function asyncValidate(data, dispatch) {
if (!dat... |
ajax/libs/rxjs/2.3.16/rx.lite.js | rigdern/cdnjs | // 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... |
frontend/src/components/layout/loggedOrg/loggedOrg.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Typography from 'material-ui/Typography';
import { ROLES } from '../../../helpers/constants';
import GridColumn from '../../common/grid/gridColumn';
import PartnerSwitch from './partnerSwitch';
import AgencySwit... |
app/javascript/mastodon/features/standalone/community_timeline/index.js | honpya/taketodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import {
refreshCommunityTimeline,
expandCommunityTimeline,
} from '../../../actions/timelines';
import Column from '../../../components/... |
DaiJiale-Front-End/FE_Templates/带注册脚本的Passion/js/jquery.min.js | daijiale/DaiJiale-ProfessionalNotes | /*! jQuery v@1.8.1 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
src/svg-icons/device/signal-cellular-4-bar.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular4Bar = (props) => (
<SvgIcon {...props}>
<path d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar);
DeviceSignalCellular4Bar.displayName = 'DeviceSign... |
src/svg-icons/toggle/star-half.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStarHalf = (props) => (
<SvgIcon {...props}>
<path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.... |
app/src/routes/dashboard/components/poll-table/poll-table.spec.js | sproogen/itsgoingto.be | import React from 'react'
import {
render, fireEvent, screen, waitForElementToBeRemoved, act
} from '@testing-library/react'
import { map } from 'ramda'
import PollTable from './poll-table'
jest.mock('./poll-table-row', () => () => <tr><td>Mocked PollTableRow</td></tr>)
jest.mock('components/paginator', () => () => ... |
ajax/libs/vue/2.1.2/vue.runtime.common.min.js | tonytomov/cdnjs | "use strict";function _toString(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function toNumber(e){var t=parseFloat(e,10);return t||0===t?t:e}function makeMap(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o<r.length;o++)n[r[o]]=!0;return t?function(e){return n[e.toLowerCase()]}:func... |
sites/default/files/js/js_kax3ryf_Ar24gpB4jScNcy0gh6AZEbseCtcs7JD5W3E.js | mollyklecompte/receipt | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
examples/full-width-resizable-table-grid-layout/src/index.js | react-tools/react-table | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
ReactDOM.render(<App />, document.getElementById('root'))
|
packages/material-ui-icons/src/SatelliteTwoTone.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="M5 19h14V5H5v14zM6 6h2.57c0 1.42-1.15 2.58-2.57 2.58V6zm0 4.29c2.37 0 4.28-1.93 4.28-4.29H12c0 3.31-2.68 6-6 6v-1.71zm3 2.86l2.14 2.58 3-3.86L18... |
src/components/auth/Import.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer, PropTypes as MobxPropTypes } from 'mobx-react';
import { defineMessages, intlShape } from 'react-intl';
import { Link } from 'react-router';
import classnames from 'classnames';
import Form from '../../lib/Form';
import To... |
packages/node_modules/@webex/react-container-activity-list/src/formatters/at-mention.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {constructHydraId} from '@webex/react-component-utils';
import styles from './at-mention.css';
const EVENT_NAME_MENTION_CLICKED = 'mention:clicked';
const propTypes = {
content: PropTypes.string,
onEvent: P... |
app/components/Stats.js | xiamu14/newdenfaces | import React from 'react';
import StatsStore from '../stores/StatsStore';
import StatsActions from '../actions/StatsActions';
class Stats extends React.Component {
constructor(props) {
super(props);
this.state = StatsStore.getState();
this.onChange = this.onChange.bind(this);
}
com... |
src/Resume/About.js | bogdanpetru/resume | import React from 'react'
import parseText from '../utils/parseText';
const About = ({ about }) => <div className="about">
<h2>About</h2>
<div className="about-content" children={about.map((text) => <p children={parseText(text)} />)} />
</div>
export default About |
packages/material-ui-icons/src/Grade.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z" />
, 'Grade');
|
docs/src/Routes.js | collinwu/react-bootstrap | import React from 'react';
import Root from './Root';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import GettingStartedPage from './GettingStartedPage';
import ComponentsPage from './ComponentsPage';
import SupportPage from './SupportPage';
import NotFoundPage from './NotFound... |
src/svg-icons/maps/local-hotel.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
ajax/libs/yui/3.4.1/loader/loader.js | ruslanas/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
sites/default/files/js/js_H-i3lf-uvTS7Rf_WAUY7Rt56jDb5wtfA0WQz5UCWiKU.js | vertisirvine/tnet | (function($){
Drupal.behaviors.contextReactionBlock = {attach: function(context) {
$('form.context-editor:not(.context-block-processed)')
.addClass('context-block-processed')
.each(function() {
var id = $(this).attr('id');
Drupal.contextBlockEditor = Drupal.contextBlockEditor || {};
$(this).... |
blueprints/view/files/__root__/views/__name__View/__name__View.js | attdona/bota | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
src/client/components/Navigation.js | DimitriMikadze/isomorphic-react-webapp | import React from 'react';
import { Link, IndexLink } from 'react-router';
class Navigation extends React.Component {
constructor(props) {
super(props);
this.state = {
mobileNav: false
};
}
toggleMobileNav() {
this.setState({ mobileNav: !this.state.mobileNav })... |
src/views/Home/index.js | coolday4me/react-starter-kit | import React from 'react';
const Home = () => <h1>Home</h1>;
export default Home;
|
website/src/pages/404.js | honnibal/spaCy | import React from 'react'
import { window } from 'browser-monads'
import { graphql } from 'gatsby'
import Template from '../templates/index'
import { LandingHeader, LandingTitle } from '../components/landing'
import Button from '../components/button'
export default ({ data, location }) => {
const { nightly, legac... |
components/datasets/metadata/form/SourcesContentModal.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
import { toastr } from 'react-redux-toastr';
// redux
import { connect } from 'react-redux';
// redactions
import { setTmpSources, setSources } from 'redactions/admin/sources';
// components
import ContentGroup from 'components/ui/ContentGroup';
import S... |
src/pages/Tables/index.js | JSLancerTeam/crystal-dashboard | import React from 'react';
import { Route } from 'react-router-dom';
import RegularTables from './RegularTables';
import ExtendedTables from './ExtendedTables';
import ReactBootstrapTable from './ReactBootstrapTable';
const Tables = ({match}) => (
<div className="content">
<Route path={`${match.url}/regular-tabl... |
index.ios.js | lizhaobomb/RNNYT | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry
} from 'react-native';
import App from './src/App'
AppRegistry.registerComponent('RNNYT', () => App);
|
ajax/libs/react-instantsearch/4.2.0/Dom.js | sufuf3/cdnjs | /*! ReactInstantSearch UNRELEASED | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && de... |
ajax/libs/yui/3.17.1-rc-1/scrollview-base/scrollview-base-coverage.js | iamJoeTaylor/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":... |
src/component/QuestionItem.js | ChinaCEO/React-Qa | import React, { Component } from 'react';
class QuestionItem extends Component {
constructor(props) {
super(props);
this.VoteUp = () => {
let newCount = parseInt(this.props.voteCount, 10) + 1;
this.props.onVote(this.props.questionKey, newCount);
}
this.VoteDo... |
src/components/Breadcrumb/Breadcrumb.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
const Breadcrumb = (props) => {
const { children, className, ...rest } = props;
let filtered = children;
if (!Array.isArray(children)) {
filtered = [children];
}
const sldsClasses = [
'slds-breadcrumb',
... |
ajax/libs/react-native-web/0.0.0-80dae21e2/exports/TextInput/index.min.js | cdnjs/cdnjs | import{forwardRef,useRef}from"react";import createElement from"../createElement";import css from"../StyleSheet/css";import pick from"../../modules/pick";import setAndForwardRef from"../../modules/setAndForwardRef";import useElementLayout from"../../modules/useElementLayout";import useLayoutEffect from"../../modules/use... |
ajax/libs/react-native-web/0.14.9/modules/UnimplementedView/index.js | cdnjs/cdnjs | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENS... |
src/routes/UIElement/iconfont/index.js | liangchunlang/Exhitec-center | import React from 'react'
import { Iconfont } from '../../../components'
import { Table, Row, Col } from 'antd'
import styles from './index.less'
const iconlist = ['Cherry', 'Cheese', 'Bread', 'Beer', 'Beet', 'Bacon', 'Banana', 'Asparagus', 'Apple']
const IcoPage = () => <div className="content-inner">
{/*<ul class... |
src/RaisedButton/RaisedButton.spec.js | ArcanisCz/material-ui | /* eslint-env mocha */
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import {mount, shallow} from 'enzyme';
import {assert} from 'chai';
import RaisedButton from './RaisedButton';
import ActionAndroid from '../svg-icons/action/android';
import getMuiTheme... |
antd-dva/dva-study-demo/src/index.js | JianmingXia/StudyTest | import dva, { connect } from 'dva';
import { Router, Route } from 'dva/router';
import React from 'react';
import styles from './index.less';
// import key from 'keymaster';
const app = dva();
app.model({
namespace: 'count',
state: {
record: 0,
current: 0,
},
reducers: {
add(state) {
console... |
packages/material-ui-icons/src/SettingsBackupRestore.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SettingsBackupRestore = props =>
<SvgIcon {...props}>
<path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.... |
src/svg-icons/editor/border-clear.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderClear = (props) => (
<SvgIcon {...props}>
<path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v... |
InputToText/saveInput.js | jennselby/ReactNativeExamples | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TextInput,
Button,
View
} from 'react-native';
export default class SaveInput extends Component {
constructor(props) {
super(props... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsUninitialized.js | mroch/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<DefaultProps, Props> {
static defaultProps: DefaultProps;
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component<DefaultProps, Props... |
packages/material-ui/src/FormGroup/FormGroup.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = {
/* Styles applied to the root element. */
root: {
display: 'flex',
flexDirection: 'column',
flexWrap: 'wrap',
},
/* Styles appli... |
fields/types/code/CodeField.js | lojack/keystone | import _ from 'underscore';
import CodeMirror from 'codemirror';
import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
// See CodeMirror docs for API:
// http://codemirror.net/doc/manual.html
module.exports = Field.create... |
src/routes.js | xaevir/brasiliausa | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import {
App,
Home,
Widgets,
Survey,
NotFound,
Support,
Technology,
Team,
History,
Products
} from 'containers';
export default () => {
/**
* Please keep routes in alphabetical order
*/
retur... |
src/parser/demonhunter/vengeance/modules/talents/SpiritBombSoulsConsume.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import { formatPercentage } ... |
src/Components/LatestArticles.js | Zangriev/Kentico | import React, { Component } from 'react';
import ArticleStore from '../Stores/Article';
import { Link } from 'react-router'
import dateFormat from 'dateformat';
const articleCount = 5;
let getState = (props) => {
return {
articles: ArticleStore.getArticles(articleCount)
};
};
class LatestArticles extends Com... |
src/lib/components/Footer.js | constantoduol/Sprd | import React from 'react';
import {merge} from 'lodash';
import PropTypes from 'prop-types';
import {FOOTER_HEIGHT} from '../Constants';
export default class Footer extends React.Component {
static propTypes = {
width: PropTypes.number,
content: PropTypes.string
};
render(){
let {width, content} =... |
test/test_helper.js | jdiep79/TribalUser | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
test/NavSpec.js | JimiHFord/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Nav from '../src/Nav';
import NavItem from '../src/NavItem';
import Button from '../src/Button';
describe('Nav', function () {
it('Should set the correct item active', function () {
let instance = ReactTestUtils.renderIntoDo... |
test/test_helper.js | sean-m-mccullough/ReduxSimpleStarter | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
helred/app/app.js | ekepes/reactplay | import React from 'react';
function getRandomInt(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
var GuessBox = React.createClass({
getInitialState: function() {
return {
answer: getRandomInt(1, 10),
guess: 0,
message: ""
};
},
handleChange: function(event) ... |
frontend/src/pages/register/register.js | petar-prog91/go-bank-web | import React from 'react';
import { connect } from 'react-redux';
import { LoginForm } from '../../components';
const Register = () => (
<div className="registerPage__base">
<LoginForm />
</div>
);
export default connect()(Register);
|
src/components/icons/EmailIcon.js | austinknight/ui-components | import React from 'react';
const EmailIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 100 100">
{props.title && <title>{props.title}</title>}
<path d="M75.5,29h-51C22,29,20,31,20,33.5v33c0,2.5,2,4.5,4.5,4.5h51c2.5,0,4.5-2,4.5-4.5v-33C80,31,78,29,75.5,29z M7... |
blueprints/componentOLD/files/src/components/__name__/__name__.js | simonghales/mapping | import React from 'react'
import classes from './<%= pascalEntityName %>.scss'
export const <%= pascalEntityName %> = () => (
<div className={classes['<%= pascalEntityName %>']}>
<h1><%= pascalEntityName %></h1>
</div>
)
export default <%= pascalEntityName %>
|
packages/material-ui-icons/src/Tablet.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Tablet = props =>
<SvgIcon {...props}>
<path d="M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2zm-2 14H5V6h14v12z" />
</SvgIcon>;
Tablet = pure(Tablet);
Tablet.muiN... |
sites/all/modules/jquery_update/replace/jquery/1.7/jquery.js | ShiyiShen/dance-website | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
containers/App.js | praveenith31/react-boilerplate- | import React, { Component } from 'react';
import SomeApp from './SomeApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import * as reducers from '../reducers';
const reducer = combineReducers(reducers);
const store = createStore(reducer);
export default class App exte... |
src/admin_components/ImportRaceForm.js | chiefwhitecloud/running-man-frontend | import React from 'react';
export default class ImportRaceForm extends React.Component {
constructor(props) {
super(props);
this.handleSubmit = this.handleSubmit.bind(this);
this.handleInputChange = this.handleInputChange.bind(this);
this.state = {
url: '',
error: false,
};
}
han... |
rd_login_pages_legacy/desktop/CoovaChilli/build/CoovaLogin/production/all-classes.js | smartwifi/stores-rd | var CoovaLogin=CoovaLogin||{};if(!CoovaLogin.controller){CoovaLogin.controller={}}if(!CoovaLogin.view){CoovaLogin.view={}}var Ext=Ext||{};if(!Ext.Direct){Ext.Direct={}}if(!Ext.Toolbar){Ext.Toolbar={}}if(!Ext.app){Ext.app={}}if(!Ext.button){Ext.button={}}if(!Ext.chart){Ext.chart={}}if(!Ext.chart.axis){Ext.chart.axis={}}... |
src/components/forms/Work.js | GelaniNijraj/Hovert | import React from 'react';
import BaseForm from './Base';
import Highlights from './Highlights';
class Work extends BaseForm {
constructor(props){
super(props);
}
save(){
let company = this.refs.company.value;
let position = this.refs.position.value;
let website = this.refs.website.value;
l... |
node_modules/material-ui/lib/svg-icons/image/nature.js | dominikgar/flask-search-engine | 'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var ImageNature = React.createClass({
displayName: 'ImageNature',
mixins: [PureRenderMixin],
render: function render() {
return React.createElement(
S... |
packages/icons/src/md/file/FileUpload.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFileUpload(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M18 33h12V21h8L24 7 10 21h8v12zm-8 4h28v4H10v-4z" />
</IconBase>
);
}
export default MdFileUpload;
|
core/src/plugins/gui.ajax/res/js/ui/HOCs/size/providers.js | pydio/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio 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 License, o... |
client/components/SearchResult.js | MusicConnectionMachine/VisualizationG6 | import React from 'react'
export default class SearchResult extends React.Component {
constructor (props) {
super(props)
this.clickHandler = this.clickHandler.bind(this)
}
clickHandler (event) {
event.preventDefault()
let myData = this.props.myData
this.context.router.transition... |
firstapp/app/app.js | ekepes/reactplay | import React from 'react';
var TweetBox = React.createClass({
getInitialState: function() {
return {
text: "",
photoAdded: false
};
},
handleChange: function(event) {
this.setState({ text: event.target.value });
},
togglePhoto: function(event) {
this.setState({ photoAdded: !this.s... |
web-server/v0.4/src/components/Button/index.js | k-rister/pbench | import React from 'react';
import { Button as AntdButton } from 'antd';
const Button = props => {
const { name, type, disabled, onClick } = props;
return (
<AntdButton type={type} disabled={disabled} onClick={onClick} {...props}>
{name}
</AntdButton>
);
};
export default Button;
|
packages/material-ui-icons/src/AddBoxRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.... |
examples/count-react/src/index.js | rematch/rematch | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { init } from '@rematch/core'
import * as models from './models'
import App from './App'
const store = init({
models,
})
ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
<App />
</Provider>
<... |
src/index.js | faalsh/react-materialize-demo | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, browserHistory, IndexRoute } from 'react-router'
import {Provider} from 'react-redux'
import store from './store'
import Layout from './containers/Layout/Layout.jsx'
import Matches from './containers/Matches/Matches.jsx'
import Repos ... |
src/components/Modal/Modal.js | jmlweb/paskman | import React from 'react';
import PT from 'prop-types';
import styled, { css } from 'styled-components';
import styledMap from 'styled-map';
import Heading from '../Heading/Heading';
import ModalBtn from './ModalBtn/ModalBtn';
import colors from '../../styles/colors';
import spacing from '../../styles/spacing';
import ... |
src/routes/app/routes/ui/routes/cards/components/Cards.js | ahthamrin/kbri-admin2 | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import APPCONFIG from 'constants/Config';
import QueueAnim from 'rc-queue-anim';
const ExpandableCards = () => (
<article className="article">
... |
docs/radios/2.0.5/tests/BOM/assets/js/gui.js | WestpacCXTeam/GUI-source | /*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
packages/material-ui-icons/src/WorkOff.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M23 21.74l-1.46-1.46L7.21 5.95 3.25 1.99 1.99 3.25l2.7 2.7h-.64c-1.11 0-1.99.89-1.99 2l-.01 11c0 1.11.89 2 2 2h15.64L21.74 23 23 21.74zM22 7.95c.05-1.11-.84-2-1.95-1.95h-4V3.95c0-1.11-.89-2-2-1.95h-4c... |
node_modules/react-navigation/lib-rn/navigators/createNavigator.js | gunaangs/Feedonymous | import React from 'react';
var babelPluginFlowReactPropTypes_proptype_NavigationRouteConfigMap = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_NavigationRouteConfigMap || require('prop-types').any;
var babelPluginFlowReactPropTypes_proptype_NavigationNavigatorProps = require('../TypeDefinition')... |
packages/material-ui-icons/src/HotelRounded.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="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-6c-1.1 0-2 .9-2 2v5H3V6c0-.55-.45-1-1-1s-1 .45-1 1v13c0 .55.45 1 1 1s1-.45 1-1v... |
ajax/libs/jquery-jcrop/0.9.12/js/jquery.min.js | awreece/cdnjs | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
lib/Sae.js | halilb/react-native-textinput-effects | import React from 'react';
import PropTypes from 'prop-types';
import {
Animated,
TextInput,
TouchableWithoutFeedback,
View,
StyleSheet,
} from 'react-native';
import BaseInput from './BaseInput';
export default class Sae extends BaseInput {
static propTypes = {
height: PropTypes.number,
/*
*... |
ajax/libs/6to5/2.6.1/browser-polyfill.js | F2X/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... |
test/app/components/TodoTextInput.spec.js | harijoe/oh-hi-mark | import { expect } from 'chai';
import sinon from 'sinon';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import TodoTextInput from '../../../app/components/TodoTextInput';
import style from '../../../app/components/TodoTextInput.css';
function setup(propOverrides) {
const props = {
o... |
src/Html.js | geminiyellow/react-redux-universal-hot-example | import React, {Component, PropTypes} from 'react';
import serialize from 'serialize-javascript';
import DocumentMeta from 'react-document-meta';
const cdn = '//cdnjs.cloudflare.com/ajax/libs/';
/**
* Wrapper component containing HTML metadata and boilerplate tags.
* Used in server-side code only to wrap the string o... |
src/components/Btns/BtnCancel.js | hahoocn/hahoo-admin | import React from 'react';
import Tap from '../hahoo/Tap';
import styles from './Btn.css';
class BtnCancel extends React.Component {
static defaultProps = {
title: '取消'
}
static propTypes = {
title: React.PropTypes.string,
className: React.PropTypes.string,
onItemClick: React.PropTypes.func
}
... |
ajax/libs/rxjs/2.2.20/rx.lite.js | dada0423/cdnjs | // 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... |
src/__tests__/components/header/RadioButtonsGroup.js | alexeyvax/on-line-library | import React from 'react';
import { mount } from 'enzyme';
import RadioButtonsGroup from '../../../components/header/RadioButtonsGroup.jsx';
import langList from '../../../../mocks/langList';
import { DEFAULT_LANG, TEST_GROUP } from '../../../../mocks/variables';
describe('RadioButtonsGroup', () => {
const className... |
app/react-icons/fa/html5.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaHtml5 extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m29.7 13.3l0.4-3.9h-19.8l1.1 11.9h13.7l-0.5 5.1-4.4 1.2-4.4-1.2-0.3-3.1h-3.9l0... |
packages/material-ui-icons/src/Streetview.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="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z" /><circle cx="18" cy="6" r="5" /><... |
examples/async/index.js | eraviart/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
src/Snackbar/Snackbar.spec.js | pancho111203/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Snackbar from './Snackbar';
import SnackbarBody from './SnackbarBody';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Snackbar />', () => {
const muiTheme = getMuiTheme();
const shallo... |
test/test_helper.js | dushyant/ReactWeatherApp | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
packages/material-ui-icons/src/LocalActivityOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M22 10V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-... |
src/index.js | tkaetzel/sympho.net | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
lib/components/TenDay.js | hmorri32/Weathrly | import React from 'react';
const TenDay = ({ weatherText, weatherSimple, notFound }) => {
if (notFound) {
return (
<div></div>
);
}
if (!weatherText.forecastday) {
return (
<div></div>
);
} else {
return (
<section>
<h2
className='ten-day-title'
... |
wisewit_front_end/node_modules/react-router/modules/Lifecycle.js | emineKoc/WiseWit | import warning from './routerWarning'
import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On standard ... |
docroot/js/en_map_labels.js | danielrhodeswarp/Mapanese | /**
* @package Mapanese (https://github.com/danielrhodeswarp/Mapanese)
* @copyright Copyright (c) 2007 - 2011 Warp Asylum Ltd (UK).
* @license see LICENCE file in source code root folder New BSD License
*/
//CAN COMPRESS SAFELY WITH http://dynamic-tools.net/toolbox/javascript_compressor/
//------------... |
sites/all/themes/lifeecho/js/jquery-ui.js | pradip-theanuswara/lifeechotest | /*! jQuery UI - v1.9.2 - 2012-11-23
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js... |
ajax/libs/highmaps/5.0.5/highcharts.src.js | extend1994/cdnjs | /**
* @license Highcharts JS v5.0.5 (2016-11-29)
*
* (c) 2009-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function(root, factory) {
if (typeof module === 'object' && module.exports) {
module.exports = root.document ?
factory(root) :
factory;
... |
ajax/libs/jquery-mobile/1.4.2/jquery.mobile.js | nesk/cdnjs | /*!
* jQuery Mobile 1.4.2
* Git HEAD hash: 9d9a42a27d0c693e8b5569c3a10d771916af5045 <> Date: Fri Feb 28 2014 17:32:01 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
src/components/antd/layout/layout.js | hyd378008136/olymComponents | var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ... |
app/containers/LanguageProvider/index.js | gitlab-classroom/classroom-web | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.