path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/task.js | saiteja/SvgWithReact | import React from 'react';
export default class Task extends React.Component {
prepareCords() {
let coords = {
x: this.props.x,
y: this.props.y,
width: this.props.width,
height: this.props.height,
fill: this.props.fill
}
return coo... |
src/components/audioTrack.js | ryu047/DBZ-Scouter-2.0 | import React from 'react';
import ReactDom from 'react-dom';
var AudioTrack = React.createClass({
componentDidUpdate: function(){
ReactDom.findDOMNode(this).play();
},
render: function(){
return <audio className="track" src={this.props.track}></audio>
}
});
module.exports = AudioTrack; |
src/js/components/icons/base/FormTrash.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/containers/user-center/CopyrightView.js | phodal/growth-ng | import React, { Component } from 'react';
import { ScrollView } from 'react-native';
import { List, ListItem } from 'react-native-elements';
import Label from '../../components/Label';
import Helper from '../../utils/helper';
class CopyrightView extends Component {
static componentName = 'CopyrightView';
render()... |
ajax/libs/yui/3.1.0/loader/loader-base-debug.js | sparkgeo/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
public/src/components/products/ProductGrid.js | andy1992/react-redux-crud | import React from 'react';
import ProductTable from '../../containers/products/ProductTable';
import Pagination from '../../containers/products/Pagination';
import SearchBar from '../../containers/products/SearchBar';
import TopActions from '../../containers/products/TopActions';
import Loader from './../layouts/Loader... |
components/KanbanList.js | bchoe/React-Kanban | import React from 'react';
import KanbanItem from './KanbanItem';
import KanbanNew from './KanbanNew';
class KanbanList extends React.Component{
render(){
const cards = this.props.queue.map((dataItem) => {
return(
<KanbanItem {...dataItem} key={dataItem.id} />
)
})
return(
<div... |
src/components/AboutPage.js | oded-soffrin/gkm_viewer | import React from 'react';
import {Link} from 'react-router';
import '../styles/about-page.css';
import Header from './Header';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div className="about-page">
<Header />
<h2 className="a... |
webpack/components/extensions/HostDetails/ActionsBar/index.js | Katello/katello | import React from 'react';
import { useSelector } from 'react-redux';
import { DropdownItem } from '@patternfly/react-core';
import { CubeIcon } from '@patternfly/react-icons';
import { translate as __ } from 'foremanReact/common/I18n';
import { foremanUrl } from 'foremanReact/common/helpers';
import { selectHostDeta... |
doc/asset/js/jquery.js | westsource/echarts | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
ajax/libs/survey-jquery/0.12.30/survey.jquery.min.js | joeyparrish/cdnjs | /*!
* surveyjs - Survey JavaScript library v0.12.30
* Copyright (c) 2015-2017 Devsoft Baltic OÜ - http://surveyjs.io/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define... |
sites/travellingchair.net/modules/jquery_update/replace/jquery/jquery.js | francisbyrne/tchair | /*!
* 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.
... |
docs/src/app/components/pages/get-started/Examples.js | xmityaz/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import examplesText from './examples.md';
const Examples = () => (
<div>
<Title render={(previousTitle) => `Examples - ${previousTitle}`} />
<MarkdownElement text={examplesText} />
</... |
examples/auth-with-shared-root/components/Landing.js | mattydoincode/react-router | import React from 'react'
const Landing = React.createClass({
render() {
return (
<div>
<h1>Landing Page</h1>
<p>This page is only shown to unauthenticated users.</p>
<p>Partial / Lazy loading. Open the network tab while you navigate. Notice that only the required components are do... |
app/components/home/Home.js | ykforerlang/my-react-redux | import React from 'react'
import { Link } from 'react-router'
import { connect } from 'react-redux'
import * as action from './modules/action'
import { dispatchToPropsHelper } from '../../utils'
const Home = ({ count, addCount, inputChange }) => (
<div>
<h5>{count}</h5>
<input
onChange=... |
ajax/libs/material-ui/4.9.4/esm/internal/svg-icons/ArrowDownward.js | cdnjs/cdnjs | import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(React.createElement("path", {
d: "M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"
}), 'ArrowDownward'); |
lib/components/ProgressBar.js | pquochoang/filepizza | import React from 'react'
import classnames from 'classnames'
function formatProgress(dec) {
return (dec * 100).toPrecision(3) + "%"
}
export default class ProgressBar extends React.Component {
render() {
const failed = this.props.value < 0;
const inProgress = this.props.value < 1 && this.props.value >= ... |
src/px-demo-helpers/device-view.js | jonniespratley/px-components-react | import React from 'react';
import classnames from 'classnames';
import stylesheet from './device-view.scss';
import BaseComponent from '../base-component';
/**
* px-example-component component
*/
export default class DeviewView extends BaseComponent {
constructor(props){
super(props, {name: 'DeviewView'});
}... |
test/specs/chart/LineChartSpec.js | scostaqb/recharts | import React from 'react';
import { expect } from 'chai';
import { LineChart, Line, Curve, XAxis, YAxis, Tooltip, Brush, Legend } from 'recharts';
import { mount, render } from 'enzyme';
import sinon from 'sinon';
describe('<LineChart />', () => {
const data = [
{ name: 'Page A', uv: 400, pv: 2400, amt: 2400 },
... |
src/svg-icons/content/drafts.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDrafts = (props) => (
<SvgIcon {...props}>
<path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>... |
src/svg-icons/device/usb.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceUsb = (props) => (
<SvgIcon {...props}>
<path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.... |
ext/packages/sencha-charts/src/chart/series/Radar.js | chris-schmitz/FeedReader | /**
* @class Ext.chart.series.Radar
* @extends Ext.chart.series.Polar
*
* Creates a Radar Chart. A Radar Chart is a useful visualization technique for comparing different quantitative values for
* a constrained number of categories.
* As with all other series, the Radar series must be appended in the *series* Cha... |
Realization/frontend/czechidm-core/src/content/request/RequestItemChangesTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import _ from 'lodash';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import {RequestItemManager } from '../../redux';
import ConceptRoleRequestOperationEnum from '../../enums/ConceptRoleRequestOp... |
packages/bulkhead/example/WithUpdates.js | nkbt/react-works | /* eslint no-console:0 */
import React from 'react';
import {ReactBulkhead} from '../src/Component';
const onCreate = ({element, value}) => {
console.log('WithUpdates: onCreate', {element, value});
const update = val => {
Object.assign(element, {
innerHTML: `Set with element.innerHTML${val ? `: "${val... |
ajax/libs/primereact/6.0.0/components/breadcrumb/BreadCrumb.js | cdnjs/cdnjs | "use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
ajax/libs/video.js/5.0.0-rc.47/video.js | menuka94/cdnjs | /**
* @license
* Video.js 5.0.0-rc.47 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/dist/plugins/Files.js | patel344/Mr.Miner | webpackJsonp([1],{10:function(e,t){e.exports=require("crypto")},101:function(e,t){e.exports=require("buffer")},102:function(e,t){e.exports=require("dgram")},103:function(e,t){e.exports=require("dns")},104:function(e,t){e.exports=require("events")},105:function(e,t){e.exports=require("string_decoder")},106:function(e,t)... |
ajax/libs/react/0.7.0/react.min.js | laffer1/cdnjs | // Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modi... |
src/core/components/types/PromiseType.js | remy/jsconsole | import React, { Component } from 'react';
import which from '../../lib/which-type';
class PromiseType extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
open: props.open,
promiseValue: undefined,
status: 'pending',
};
}
... |
src/components/modal/Modal.js | Gullskatten/react-seating-map-webapp | import React from 'react';
import './Modal.css';
import FontAwesome from 'react-fontawesome';
const Modal = ({ height, children, onExit }) => {
const customHeight = height ? height : '500px';
return (
<div>
<div className="overlay" onClick={onExit} />
<div
className="Modal animated fadeInD... |
src/component/app/index.js | arn1313/kritter-frontend | import React from 'react';
import './_app.scss';
import Navbar from '../navbar';
import { connect } from 'react-redux';
import * as utils from '../../lib/utils';
import { tokenSetRequest } from '../../action/auth-actions';
import LandingContainer from '../landing-container';
import { BrowserRouter, Route, Redirect } fr... |
ajax/libs/vee-validate/2.0.0-rc.10/vee-validate.js | holtkamp/cdnjs | /**
* vee-validate v2.0.0-rc.10
* (c) 2017 Abdelrahman Awad
* @license MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.VeeValidate = factory());
}(this, (functio... |
lib/yui/3.2.0/build/event/event-focus-min.js | tolarteh/moodle20 | /*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.2.0
build: 2676
*/
YUI.add("event-focus",function(e){var d=e.Event,c=e.Lang,a=c.isString,b=c.isFunction(e.DOM.create('<p onbeforeactivate=";">').onbeforeactivate);function ... |
src/js/pages/exam.js | daniel-madera/pijs | import React from 'react'
import { inject, observer } from 'mobx-react'
import { Grid, Row } from 'react-bootstrap'
import TestPage from '../components/exam/test-page'
import TestSelector from '../components/exam/test-selector'
@inject('examStore')
@observer
export default class Exam extends React.Component {
ren... |
examples/admin/pages/About.js | amazeui/amazeui-react | import React from 'react';
import PageContainer from '../components/PageContainer';
const About = React.createClass({
render() {
return (
<PageContainer
{...this.props}
>
<h2>系统信息</h2>
<hr />
<p>只是一个 Amaze UI React 后台模板骨架。欢迎完善。</p>
</PageContainer>
);
}
});... |
files/cignium-hypermedia-client/1.4.4/client.min.js | 2947721120/cuddly-fibula | var Cignium=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){"string"==typeof e&&(e=document.getElementById(e));var t=document.... |
files/jquery/1.4.4/jquery-1.4.4.min.js | MaxMillion/jsdelivr | /*!
* 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.
... |
node_modules/react-icons/ti/brush.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiBrush = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.6 6.4c-0.6-0.7-1.5-1-2.3-1-0.4 0-0.9 0.1-1.3 0.2-7.4 3-13 8-17.5 15.6-0.2 0.3-0.3 0.6-0.3 0.9-2.3 0.4-4.4 1.5-5.8 3.4-1.5 1.9-2.1 4.4-1.8 7l0.4 2.5 2.5 0.4c0.4 0 0.... |
src/pages/page-2.js | brickandgreens/bricks-and-greens-gatsby | import React from 'react'
import Link from 'gatsby-link'
const SecondPage = () => (
<div>
<h1>Hi from the second page</h1>
<p>Welcome to page 2</p>
<Link to="/">Go back to the homepage</Link>
</div>
)
export default SecondPage
|
pages/sass.js | frontendyteam/www.frontendy.com | import React from 'react'
import './example.scss'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
export default class Sass extends React.Component {
render () {
return (
<DocumentTitle title={`${config.siteTitle} | Hi sassy friends`}>
<div>
<h1
... |
src/components/WelcomeMat/components/WelcomeMatProgress.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import { ProgressBar } from '../../Progress';
import { stepType } from '../constants';
const WelcomeMatProgress = ({ steps }) => {
const len = steps.length;
if (len === 0) return null;
const completedSteps = steps.filter(({ isCompleted }) => isCompl... |
ReactNative/weathers/Section/list.js | AllanChen/WorkSample | import React, { Component } from 'react';
import * as mains from '../main.ios.js'
import {
AppRegistry,
StyleSheet,
Text,
View,
NavigatorIOS,
TouchableHighlight,
ListView,
Image
} from 'react-native';
let addressData = require('../Storage/storage.json');
let rowHeight;
export default class list extends ... |
test/fixtures-es6-react-project/public/app.js | herdemir/systemjs-hot-reloader | import React from 'react'
import ReactDOM from 'react-dom/server'
import injectTapEventPlugin from 'react-tap-event-plugin'
import Home from './routes/home'
// Needed for onTouchTap
// Can go away when react 1.0 release
// Check this repo:
// https://github.com/zilverline/react-tap-event-plugin
injectTapEventPlugin()
... |
src/svg-icons/action/question-answer.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionQuestionAnswer = (props) => (
<SvgIcon {...props}>
<path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/>
</SvgIcon>
);
... |
lib/mui/layout/Menu.js | epwqice/admin-on-rest-old-man | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _inflection = require('inflection');
var _inflection2 = _interopRequireDefault(_inflection);
var _MenuItem = require('material-ui/MenuItem');
var _Menu... |
blueocean-material-icons/src/js/components/svg-icons/notification/phone-locked.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationPhoneLocked = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45-1-1-1H4c-.55 ... |
app/renderer/main/components/DevTools.js | vincent/trippy | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
style={{ width:310 }}
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"... |
client/components/ForgotPasswordForm/ValidateVerificationCodeForm.js | CodeForSocialGood/calltocode.org | import React from 'react'
import styles from './ForgotPasswordForm.scss'
import PropTypes from 'prop-types'
import TextField from 'material-ui/TextField'
import Button from 'material-ui/Button'
import { actionButton } from './forgotPasswordJss'
import { withStyles } from 'material-ui/styles'
const ValidateVerificatio... |
client/index/components/login/index.js | sliwei/react16-koa2 | import QueueAnim from 'rc-queue-anim';
import React from 'react';
import {Axios, GetCookie} from 'Public'
import {Link} from 'react-router-dom'
import {Form, Icon, Input, Button, Checkbox, Carousel, message, Tooltip} from 'antd';
import css from './login.scss'
const FormItem = Form.Item;
import io from 'socket.io-clien... |
client/src/js/components/Home.js | brandon-pineda/BasedReviews | import React from 'react';
import { Link } from 'react-router';
const downloadLink = 'http://datpizz.com/2016/09/28/lil-b-the-basedgod-discography/';
const Home = () => (
<div className='home-container'>
<h2>Home</h2>
<p>Download all Lil B material
<br />
<a href={download... |
src/styles/CustomHeaderStyle.js | yoobi55/react-firebase-materialui-todowithlogin | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles, createStyleSheet } from 'material-ui/styles';
import Toolbar from 'material-ui/Toolbar';
import AppBar from 'material-ui/AppBar';
const styleSheet = createStyleSheet('CustomHeaderStyle', {
toolbar: {
color: 'white',
... |
ajax/libs/yui/3.2.0/event/event-focus-debug.js | sarmadsangi/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
ajax/libs/muicss/0.9.6/react/mui-react.js | sufuf3/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... |
app/components/ProgressBar/index.js | sasidharkanumuri/Lambda | import React from 'react';
import ProgressBar from './ProgressBar';
function withProgressBar(WrappedComponent) {
class AppWithProgressBar extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: -1,
loadedRoutes: props.location && [props.location.pathname]... |
src/js/components/chatInterface/interfaceFooter.js | ShiningZeng/EasyChat | import React, { Component } from 'react';
import {socket, NAME, PHOTO} from '../../main';
export class InterfaceFooter extends Component {
constructor(props) {
super(props);
}
componentDidMount() {
this.showFile();
this.hideEmoji();
this.initEmoji();
//初始化表情点击事件
const emoji = this.refs.emoji;
this.... |
user_guide/searchindex.js | pribbadi/SIBAMAKN | Search.setIndex({envversion:42,terms:{represent:[25,115,13,79],mybackup:75,yellow:[6,129],poorli:91,four:[149,87,53,135,54,125,121,130,124],prefix:[87,94,2,29],oldest:130,hate:131,optimize_databas:75,forget:[50,103],whose:29,accur:[0,29,114,151,41,93],aug:91,emailaddress:50,my_control:[101,110],site_url:[81,96,21,7,29]... |
dev/server/portal/assets/js/jquery.localscroll-1.2.7.js | desavera/medijour | /**
* jQuery.LocalScroll
* Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed under MIT and GPL.
* Date: 3/11/2009
*
* @projectDescription Animated scrolling navigation, using anchors.
* http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.h... |
packages/material-ui-icons/src/DirectionsRunSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2... |
blueprints/smart/files/__root__/containers/__name__.js | deevatech/frontend | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render() {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const ... |
packages/material-ui-icons/src/Tablet.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><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" /></React.Fragment>
, 'Tablet');
|
src/utils/autoprefixer.js | frnk94/material-ui | import InlineStylePrefixer from 'inline-style-prefixer';
import warning from 'warning';
let hasWarnedAboutUserAgent = false;
export default function(muiTheme) {
let userAgent = muiTheme.userAgent;
if (userAgent === undefined && typeof navigator !== 'undefined') {
userAgent = navigator.userAgent;
}
if (u... |
src/server/frontend/render.js | jaeh/este | import DocumentTitle from 'react-document-title';
import Html from './html.react';
import Promise from 'bluebird';
import React from 'react';
import Router from 'react-router';
import config from '../config';
import immutable from 'immutable';
import initialState from '../initialstate';
import routes from '../../client... |
frontend/Components/Tag/index.js | shoumma/ReForum | import React, { Component } from 'react';
import classnames from 'classnames';
import styles from './styles';
import Button from 'Components/Button';
class Tag extends Component {
render() {
const {
name,
withRemove,
removeAction,
} = this.props;
return (
<div className={classna... |
source/components/Template/index.js | everydayhero/impact-board | import React from 'react'
import { withRouter } from 'react-router'
import renderTemplate from '../../lib/renderTemplate'
const Template = ({
children = '',
location: { query }
}) => {
return (
<span>
{renderTemplate(children, query)}
</span>
)
}
export default withRouter(Template)
|
app/creation/detail.js | mannysys/imoocApp |
import React, { Component } from 'react';
import Icon from 'react-native-vector-icons/Ionicons';
import Video from 'react-native-video';
import Button from 'react-native-button';
import config from '../common/config';
import request from '../common/request';
import util from '../common/util';
import {
StyleSheet,
... |
lib/svg-icons/content/add-circle-outline.js | Cerebri/material-ui | 'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var ContentAddCircleOutline = React.createClass({
displayName: 'ContentAddCircleOutline',
mixins: [PureRenderMixin],
render: function render() {
return Reac... |
packages/cf-component-progress/example/basic/component.js | manatarms/cf-ui | import React from 'react';
import Progress from 'cf-component-progress';
class ProgressComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
activeStep: 'foo'
};
}
handleStepChange(step) {
this.setState({
activeStep: step
});
}
render() {
... |
bundle/ng-reactive-breadcrumb.js | mndholder/ng-reactive-breadcrumb | var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
src/components/Welcome/index.js | RodgerLai/nodejs-nedb-excel | import React from 'react';
import './index.less';
/**
* 展示欢迎界面
*/
class Welcome extends React.PureComponent {
render() {
return (
<div>
<h1 className="welcome-text">
欢迎进入媒体资源管理平台
<br />
</h1>
</div>
);
}
}
export default Welcome;
|
node_modules/react/dist/JSXTransformer.js | amydu703/quipsample | /**
* JSXTransformer v0.13.3
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g... |
news-app/src/components/Link.js | abhilashsajeev/news-app | import React from 'react';
import {Route} from 'react-router-dom';
import FlatButton from 'material-ui/FlatButton';
const buttonStyle = {
backgroundColor: 'transparent',
color: 'white'
};
export default ({label, location})=>(
<Route render={({ history }) => (
<FlatButton
label={label}
style={but... |
ajax/libs/jQRangeSlider/4.2.4/jQRangeSliderBar.min.js | emijrp/cdnjs | (function(a,b){a.widget("ui.rangeSliderBar",a.ui.rangeSliderDraggable,{options:{leftHandle:null,rightHandle:null,bounds:{min:0,max:100},type:"rangeSliderHandle",range:false,drag:function(){},stop:function(){},values:{min:0,max:20},wheelSpeed:4,wheelMode:null},_values:{min:0,max:20},_waitingToInit:2,_wheelTimeout:false,... |
client/app/components/HomePage/index.js | yanhao-li/menu-plus | import React from 'react';
import styled from 'styled-components';
import SearchBar from 'components/SearchBar';
import video from './video-bg.mp4';
import videobg from './bg.jpg';
import videooverlay from './movie-overlay.png';
const JumbotronDiv = styled.div`
box-sizing: border-box;
height: calc(100% - 60px);
... |
adminclient/_src/actions/output.js | typesettin/periodicjs.ext.reactapp | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _stringify = require('babel-runtime/core-js/json/stringify');
var _stringify2 = _interopRequireDefault(_stringify);
var _constants = require('../constants');
var _constants2 = _interopRequireDefault(_constants);
var _fileSaver = re... |
node_modules/react-dom/lib/ReactDebugTool.js | jongschneider/lyndaProject | /**
* Copyright 2016-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.
*
*
*/
'use st... |
examples/using-javascript-transforms/src/components/Layouts/insetPage.js | fk/gatsby | import React from "react"
import { graphql } from "gatsby"
import SiteSidebar from "../SiteSidebar"
import MasterLayout from "./master"
class InsetPageLayout extends React.Component {
render() {
return (
<div className="PageTemplate">
<MasterLayout {...this.props}>
<div className="section... |
app/components/Dash.js | scalegray/scalegray |
import React from 'react';
import AuthenticatedComponent from './AuthenticatedComponent'
export default AuthenticatedComponent(class Dash extends React.Component {
render() {
return (<h1>Hello user!!</h1>);
}
});
|
scripts/stores/AddBookStore.js | nverdhan/satticentre | import React from 'react';
import { register } from '../AppDispatcher';
import { createStore, mergeIntoBag, isInBag } from '../utils/StoreUtils';
import selectn from 'selectn';
var _book = {}
var _bookStatus = 'NA' // NA, OWN, WISH, LEND, RENT
var _showLoading = true;
const AddBookStore = createStore({
get(){
retur... |
node_modules/react-bootstrap/es/Fade.js | darklilium/Factigis_2 | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import classNames from 'classnames';
import React fr... |
files/rxjs/2.3.8/rx.lite.js | Asaf-S/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... |
corpus/JavaScript/jquery-1.4.2.min.js | polyrabbit/polyglot | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/javascript/mastodon/components/loading_indicator.js | verniy6462/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
tests/components/Counter/Counter.spec.js | TriPSs/react-esc-example | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'components/Counter/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
count : 5,
classes: {},... |
js/vendor/jquery-1.11.2.min.js | JamesDunlop/web-components-playground | /*! 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... |
example/src/client.js | jfairbank/react-classify | import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { bindActionCreators, createStore } from 'redux';
import { connect, Provider } from 'react-redux';
import NameTag from './NameTag';
const NameTagContainer = connect(props => props)(NameTag);
const store = createStore((state ... |
ajax/libs/webshim/1.15.0-RC1/dev/shims/moxie/js/moxie-swf.js | kiwi89/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 ... |
ajax/libs/forerunnerdb/1.3.371/fdb-core+views.min.js | wout/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... |
DateField/index.js | derniercri/react-components | import React from 'react'
import {
View,
DatePickerIOS,
Platform,
} from 'react-native'
import moment from 'moment'
import 'moment/locale/fr'
import DatePickerAndroid from './DatePickerAndroid'
moment.locale('fr')
const formatDateValue = rawDate => {
const dateValue = typeof rawDate === 'number'
? parseF... |
ajax/libs/material-ui/4.11.3-deprecations.1/esm/NativeSelect/NativeSelect.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import PropTypes from 'prop-types';
import NativeSelectInput from './NativeSelectInput';
import withStyles from '../styles/withStyles';
im... |
src/containers/Footer.js | cyrfer/firestarter | import React from 'react'
import FilterLink from './FilterLink'
const Footer = () => (
<p>
Show:
{' '}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{', '}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{', '}
<FilterLink filter="SHOW_COMPLETED">
Compl... |
src/containers/search_bar.js | jasancheg/ReduxSimpleStarter | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
this.onInputChange = this.onInpu... |
ajax/libs/backbone-react-component/0.6.1/backbone-react-component.js | pvoznenko/cdnjs | // Backbone React Component
// ========================
//
// Backbone.React.Component v0.6.1
//
// (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com>
// Backbone.React.Component can be freely distributed under the MIT license.
//
//
// `Backbone.React.Component` is a React.Component wrapper that serve... |
src/app/components/team/TeamBots.js | meedan/check-web | import React, { Component } from 'react';
import Relay from 'react-relay/classic';
import { FormattedMessage } from 'react-intl';
import Card from '@material-ui/core/Card';
import Box from '@material-ui/core/Box';
import Typography from '@material-ui/core/Typography';
import CardHeader from '@material-ui/core/CardHeade... |
gatsby-strapi-tutorial/cms/admin/admin/src/utils/injectSaga.js | strapi/strapi-examples | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './sagaInjectors';
/**
* Dynamically injects a saga, passes component's props as saga arguments
*
* @param {string} key A key of the saga
* @param {function} saga A r... |
assets/javascripts/kitten/components/graphics/icons-next/linkedin-icon-next/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const LinkedinIconNext = ({ color, title, ...props }) => (
<svg
width="22"
height="22"
viewBox="0 0 22 22"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}
<path
fi... |
ajax/libs/mobx/5.0.2/mobx.js | sufuf3/cdnjs | /** MobX - (c) Michel Weststrate 2015 - 2018 - MIT Licensed */
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, V... |
docs/src/examples/elements/Divider/Variations/DividerExampleClearing.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Divider, Header, Image, Segment } from 'semantic-ui-react'
const DividerExampleClearing = () => (
<Segment>
<Header as='h2' floated='right'>
Floated Content
</Header>
<Divider clearing />
<Image src='/images/wireframe/short-paragraph.png' />
</Segment>
)
e... |
src/index.js | cycgit/dva | import hashHistory from 'react-router/lib/hashHistory';
import {
routerMiddleware,
syncHistoryWithStore,
routerReducer as routing,
} from 'react-router-redux';
import createDva from './createDva';
export default createDva({
mobile: false,
initialReducer: {
routing,
},
defaultHistory: hashHistory,
r... |
src/svg-icons/image/panorama.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanorama = (props) => (
<SvgIcon {...props}>
<path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImagePanora... |
ajax/libs/extjs/4.2.1/src/AbstractComponent.js | mikesir87/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.