path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ui/src/stories/Spinner.stories.js | damianmoore/photo-manager | import React from 'react'
import Spinner from '../components/Spinner'
export default {
title: 'Photonix/Misc/Spinner',
component: Spinner,
}
const Template = (args) => (
<div
style={{
width: '100%',
height: '100%',
position: 'absolute',
top: 0,
left: 0,
display: 'flex',
... |
src/containers/Way.js | osoken/project-train-2016 | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
let Way = ( {dispatch, way} ) => (
<div>
<div>
<div>出発地</div>
<div>大岡山駅</div>
</div>
<img src="" alt=""/>
<div>
<div>目的地</div>
<div>劇団四季(大井町駅)</div>
</di... |
ajax/libs/angular-google-maps/2.1.0-X.1/angular-google-maps_dev_mapped.js | fredericksilva/cdnjs | /*! angular-google-maps 2.1.0-X.1 2015-03-09
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby grante... |
app/components/EyesProtect/EyesNotify.js | voz-living/chrome-extension-react | import React, { Component } from 'react';
import { unmountComponentAtNode } from 'react-dom';
import { setChromeLocalStore, getChromeLocalStore } from '../../utils/settings';
export default class EyesNotify extends Component {
constructor(props) {
super(props);
this.state = { timer: 30 };
this.notiInterva... |
icons/action/zoom-in.js | jinzhubaofu/melon-material-icons | 'use strict';
var React = require('react');
var mui = require('material-ui');
var SvgIcon = mui.SvgIcon;
var ActionZoomIn = React.createClass({
displayName: 'ActionZoomIn',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M15.5 1... |
components/DataPane/preview.js | srossross-tableau/hackathon | import React from 'react';
import Paper from 'material-ui/Paper';
import Vega from '../Vega';
const yourVlSpec = {
$schema: 'https://vega.github.io/schema/vega-lite/v2.0.json',
description: 'A simple bar chart with embedded data.',
data: {
values: [
{ a: 'A', b: 28 }, { a: 'B', b: 55 }, { a: 'C', b: 43... |
assets/js/jquery.js | simon4545/cff | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/Row.js | jesenko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import elementType from 'react-prop-types/lib/elementType';
const Row = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: elementType
},
getDefaultProps() {
return {
... |
src/Well.js | natlownes/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
test/components/panel-title.js | energy-data/market-opportunities | import React from 'react'
import test from 'ava'
import { shallow } from 'enzyme'
import sinon from 'sinon'
import classes from '../helpers/classes'
import PanelTitle from '../../app/assets/scripts/components/panel-title'
test('panel title test', t => {
const title = 'test title'
const subtitle = 'test subtitle'
... |
src/pages/app/signup.js | getinsomnia/website | import React from 'react';
import * as session from '../../lib/session';
import App from '../../lib/app-wrapper';
import Link from '../../components/link';
class SignUp extends React.Component {
state = {
step: 1,
agreeToTerms: false,
agreeToEmails: true,
loading: false,
firstName: '',
lastNa... |
src/components/Root.js | coryhouse/react-slingshot | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ConnectedRouter } from 'connected-react-router';
import { Provider } from 'react-redux';
import App from './App';
export default class Root extends Component {
render() {
const { store, history } = this.props;
return (
... |
source/src/components/Design/playground.js | vgudzhev/DiagramTool | import React from 'react';
import ReactDOM from 'react-dom';
import joint from 'jointjs/index';
import { connect } from 'react-redux'
import Shapes from 'jointjs-configuration/Shapes'
class Graph extends React.Component {
constructor(props) {
super(props);
this.graph = new joint.dia.Graph();
}... |
ajax/libs/orb/1.0.9/orb.js | amoyeh/cdnjs | /**
* orb v1.0.9, Pivot grid javascript library.
*
* Copyright (c) 2014-2015 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.9
* @link http://nnajm.github.io/orb/
* @license MIT
*/
/* global module, require, define, window, document, global, React */
/*jshint node: true, eqnull: true*/
'use strict';
!... |
webpack.config.js | jimini-js/jimini | var path = require('path');
var webpack = require('webpack');
module.exports = {
entry: [
'./client/App.js'
],
output: {
path: __dirname + '/client/components/',
filename: 'bundle.js'
},
debug: true,
devtool: 'source-map',
module: {
loaders: [
{
test: /\.js$/,
includ... |
build/event-custom-base/event-custom-base-debug.js | rednose-public/rednose-ui | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mod... |
src/components/Selection/SelectionView.native.js | ccfcheng/react-native-web-demo | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class SelectionView extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>SelectionView</Text>
</View>
);
}
}
const styl... |
test/test_helper.js | sumit12dec/instasleuth | 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/clairvoyance/src/components/Shortcodes/Pinterest/index.js | accosine/poltergeist | import React, { Component } from 'react';
import Button from '@material-ui/core/Button';
import IconButton from '@material-ui/core/IconButton';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import ... |
src/svg-icons/action/dashboard.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDashboard = (props) => (
<SvgIcon {...props}>
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/>
</SvgIcon>
);
ActionDashboard = pure(ActionDashboard);
ActionDashboard.displayName... |
client/src/components/Indice/index.js | mohandere/tukaram-gatha | import React, { Component } from 'react';
import { Table } from 'react-bootstrap';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
import axios from 'axios';
import NProgress from 'nprogress';
import Helpers from '../../helpers'
class Indice extends Component {
constructor(p... |
Libraries/Components/DatePicker/DatePickerIOS.ios.js | exponentjs/react-native | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict-local
*/
// This is a controlled component version of RCTDatePickerIOS.
'use strict';
import RCTDateP... |
ajax/libs/react/15.3.0/react-dom-server.min.js | redmunds/cdnjs | /**
* ReactDOMServer v15.3.0
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same d... |
ajax/libs/core-js/0.9.15/library.js | paleozogt/cdnjs | /**
* core-js 0.9.15
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/*****... |
packages/react-jsx-highstock-datepickers/src/index.js | AlexMayants/react-jsx-highcharts | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import Highcharts from 'highstock-release';
import { provideAxis } from 'react-jsx-highstock';
import '../styles/index.css';
const ONE_DAY = 86400000;
class DateRangePick... |
ajax/libs/yui/3.5.0pr1/event-focus/event-focus-debug.js | nareshs435/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/webshim/1.14.5-RC2/dev/shims/moxie/js/moxie.js | FaiblUG/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 ... |
plugins/af.scroller.js | teddy-lee/appframework | /**
* af.scroller
* created by Intel with modifications by Carlos Ouro @ Badoo and Intel
* Supports iOS native touch scrolling
* Optimizations and bug improvements by Intel
* @copyright Intel
*/
/* global numOnly*/
(function ($) {
"use strict";
var HIDE_REFRESH_TIME = 325; // hide animation of pull2ref ... |
ajax/libs/yui/3.13.0/datatable-core/datatable-core-coverage.js | vanderlee/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.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":0,"13"... |
app/components/Dashboard.js | ahang/ContentClub | // ----------------------------
// import dependencies
// ----------------------------
import React, {Component} from 'react';
import { Link } from "react-router-dom";
import helpers from "../utils/helpers";
import Board from './Board';
import Header from './layout/Header.js';
class Dashboard extends Component {
c... |
lib/yuilib/3.17.2/datatable-body/datatable-body.js | dogma/moodle | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base... |
ajax/libs/vkui/4.29.0/cssm/lib/jsxRuntime.js | cdnjs/cdnjs | import * as React from "react";
import { prefixClass } from "./prefixClass";
function processProps(props) {
var newProps = {};
for (var key in props) {
if (Object.prototype.hasOwnProperty.call(props, key) && key !== "vkuiClass") {
newProps[key] = props[key];
}
}
if (props.vkuiClass) {
var c... |
src/components/Project.js | GuoYongfeng/react-resume | import React from 'react'
import { Timeline, Modal } from 'antd'
import TimelineItem from './TimelineItem'
import { getGithubRepos } from '../utils/fetchHelper'
export default class Project extends React.Component {
constructor(props) {
super(props)
this.state = {
visible: false,
... |
src/routes/error/index.js | AntonyKwok/bookshelf | /**
* 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 ErrorPage from './ErrorP... |
docs/app/Examples/elements/Header/Content/HeaderExampleImageProp.js | ben174/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleImageProp = () => (
<Header
as='h2'
image='http://semantic-ui.com/images/icons/school.png'
content='Learn More'
/>
)
export default HeaderExampleImageProp
|
src/main/webapp/bower_components/swagger-ui/dist/lib/jquery-1.8.0.min.js | arhs-cube-gameofcode/gameofcode | /*! jQuery v@1.8.0 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==... |
react/liveevent/components/PowerupCount.js | bdaroz/the-blue-alliance | import React from 'react'
import PropTypes from 'prop-types'
const PowerupCount = (props) => {
const {
color,
type,
count,
played,
isCenter,
} = props
const tooltipTitle = type.charAt(0).toUpperCase() + type.slice(1)
return (
<div className={`powerupCountContainer ${isCenter ? 'powerupC... |
js/ExampleApp.js | ragingsquirrel3/sigma_graph_component | import React, { Component } from 'react';
import Graph from './graph';
class ExampleApp extends Component {
constructor(props) {
super(props);
this.state = {
data: optional_data,
i: 0
};
}
componentDidMount() {
setTimeout( () => {
let newData = this.state.data;
newData.n... |
client/react/panel/PanelLinksNavbar.js | uclaradio/uclaradio | // PanelLinksNavbar.js
import React from 'react';
import { Navbar, Nav, NavItem } from 'react-bootstrap';
const linksURL = '/panel/api/userlinks';
/**
* Navbar which loads links available to the current user logged
* into the DJ panel
*/
const PanelLinksNavbar = React.createClass({
getInitialState() {
return... |
vertex_ui/src/components/FloatGrid/Grid/Grid.js | zapcoop/vertex | import React from 'react';
import { PropTypes } from 'prop-types';
import classNames from 'classnames';
import { Grid as ReactGrid } from 'components';
import classes from './../Float.scss';
class Grid extends React.Component {
static propTypes = {
active: PropTypes.bool,
children: PropTypes.node,
flui... |
app/components/IssueIcon/index.js | mikejong0815/Temp | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
src/svg-icons/av/pause.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPause = (props) => (
<SvgIcon {...props}>
<path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/>
</SvgIcon>
);
AvPause = pure(AvPause);
AvPause.displayName = 'AvPause';
AvPause.muiName = 'SvgIcon';
export default AvP... |
packages/wix-style-react/src/Breadcrumbs/test/Breadcrumbs.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import Breadcrumbs from '../Breadcrumbs';
import { SIZES, THEMES } from '../constnats';
import { breadcrumbsTestkitFactory } from '../../../testkit';
import { Box } from 'wix-style-react';
const sizes = Object.values(SIZES);
const test = (it, pr... |
_site/js/jquery.min.js | ricardolpd/ricardolpd.github.io | /*! jQuery v1.11.3 | (c) 2005, 2015 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... |
ajax/libs/yui/3.9.1/datatable-core/datatable-core-debug.js | melvinsembrano/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
examples/query-params/app.js | hgezim/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
return (
<div className="User">
<h1>User id: {u... |
Samples/Workflow.CustomEvents/Workflow.CustomEvents/Scripts/jquery-1.9.1.js | rgueldenpfennig/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
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, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
src/showDevTools.js | barrystaes/react-trebuchet | import React from 'react';
import { render } from 'react-dom';
import DevTools from './containers/DevTools';
export default {
showDevTools: (store) => {
const popup = window.open(null, 'Redux DevTools', 'menubar=no,location=no,resizable=yes,scrollbars=no,status=no');
// Reload in case it already exists
p... |
ajax/libs/tinymce/4.1.7/plugins/legacyoutput/plugin.js | Download/cdnjs | /**
* plugin.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, align
* attributes and so... |
src/pages/graph/Floyd/Floyd.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Floyd extends React.Component {
render() {
return (
<div>Floyd</div>
)
}
}
export default Floyd |
src/svg-icons/av/library-books.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLibraryBooks = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1... |
ajax/libs/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.js | EragonJ/cdnjs | /*! X-editable - v1.5.1
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form tag!... |
app/containers/TrackPreview/index.js | sedubois/belong | import React from 'react';
import Relay from 'react-relay';
import NavLink from 'components/NavLink';
import styles from './styles.css';
import previewCardStyles from 'components/PreviewCard/styles.css';
class Track extends React.Component { // eslint-disable-line react/prefer-stateless-function
static propTypes =... |
src/browser/app/Header.js | sikhote/davidsinclair | // @flow
import type { State } from '../../common/types';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { Box } from '../../common/components';
import { FormattedMessage } from 'react-intl';
import { Link } from '../components';
import { compose } from 'ramda';
import { c... |
app/Components/Home/Home.js | martinvarelaaaa/tintina | import React from 'react';
import PropTypes from 'prop-types';
import { View, TouchableOpacity, StatusBar } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { TextSubTitle, TextButton, TextInfo } from '../Atoms/Text';
import { Button } from '../Atoms/Button';
import TintinaSlogan ... |
src/svg-icons/editor/format-clear.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatClear = (props) => (
<SvgIcon {...props}>
<path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/>
</SvgIcon... |
src/svg-icons/editor/title.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTitle = (props) => (
<SvgIcon {...props}>
<path d="M5 4v3h5.5v12h3V7H19V4z"/>
</SvgIcon>
);
EditorTitle = pure(EditorTitle);
EditorTitle.displayName = 'EditorTitle';
EditorTitle.muiName = 'SvgIcon';
ex... |
packages/frint-router-react/src/Link.spec.js | Travix-International/frint | /* eslint-disable import/no-extraneous-dependencies, func-names, no-unused-expressions */
/* global describe, it, before, resetDOM */
import { expect } from 'chai';
import React from 'react';
import { shallow, mount } from 'enzyme';
import { MemoryRouterService } from 'frint-router';
import Link from './Link';
functi... |
techCurriculum/ui/solutions/4.6/src/components/CardForm.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* 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 to... |
ajax/libs/inferno-compat/1.3.0-rc.9/inferno-compat.js | seogi1004/cdnjs |
/*!
* inferno-compat v1.3.0-rc.9
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno-component'), require('inferno')) :
typeof define === 'function' && define.amd ? define... |
src/svg-icons/image/leak-remove.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakRemove = (props) => (
<SvgIcon {...props}>
<path d="M10 3H8c0 .37-.04.72-.12 1.06l1.59 1.59C9.81 4.84 10 3.94 10 3zM3 4.27l2.84 2.84C5.03 7.67 4.06 8 3 8v2c1.61 0 3.09-.55 4.27-1.46L8.7 9.97C7.14 11.24... |
packages/material-ui-icons/src/AssessmentRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM8 17c-.55 0-1-.45-1-1v-5c0-.55.45-1 1-1s1 .45 1 1v5c0 .55-.45 1-1 1zm4 0c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .5... |
example/webpack-2/client/components/App.js | iansinnott/react-static-webpack-plugin | import React from 'react';
import { Link, IndexLink } from 'react-router';
import classnames from 'classnames/bind';
// Using CSS Modules so we assign the styles to a variable
import s from './App.styl';
const cx = classnames.bind(s);
import logo from './react-logo.png';
// Favicon link is in the template, this just ... |
docs/app/Examples/elements/Icon/States/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const IconStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Disabled'
description='An... |
browserify-buble-react-lite/index.js | zarjay/react-bundle-showdown | /* global document */
import React from 'react'
import { render } from 'react-dom'
render(<div>Hello World</div>, document.body)
|
src/client.js | marclar/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Location from 'react-router/lib/Location';
import queryString from 'query-string';
import cre... |
ajax/libs/x-editable/1.4.6/bootstrap-editable/js/bootstrap-editable.js | Assalaam/cdnjs | /*! X-editable - v1.4.6
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to for... |
src/scenes/dashboard/notifications/index.js | PowerlineApp/powerline-rn | //This is the Notifications Feed Tab
//It is loaded primarily from the API https://api-dev.powerli.ne/api-doc#get--api-v2-user-social-activities
//Social Activity Feed "You" tab on backend is the same thing as Notifications Feed on frontend
import React, { Component } from 'react';
import { connect } from 'react-redux... |
app/components/Dashboard/AssetBalancesPanel/index.js | hbibkrim/neon-wallet | // @flow
import React from 'react'
import { FormattedMessage } from 'react-intl'
import { compose } from 'recompose'
import { values, omit, get } from 'lodash-es'
import { withActions, withData } from 'spunky'
import AssetBalancesPanel from './AssetBalancesPanel'
import assetBalancesPanelActions from '../../../actions... |
src/Table.js | jontewks/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
src/neuralNetwork/networkModals/DigitModalChart.js | csenn/nn-visualizer | import _ from 'lodash';
import React from 'react';
import d3 from 'd3';
export default class extends React.Component {
componentDidMount() {
this._renderChart();
}
_renderChart() {
const { data } = this.props;
const width = 500;
const barHeight = 45;
const x = d3.scale.linear()
.range... |
src/index.js | ao-si-luo-ma-li/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import GalleryByReactApp from './components/Main';
// Render the main component into the dom
ReactDOM.render(<GalleryByReactApp />, document.getElementById('app')); |
src/svg-icons/action/flip-to-front.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlipToFront = (props) => (
<SvgIcon {...props}>
<path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c... |
src/old-client/test/components/ConnectionState_spec.js | ellis/QuVault | import React from 'react';
import {
renderIntoDocument,
findRenderedDOMComponentWithTag
} from 'react-addons-test-utils';
import {expect} from 'chai';
import {ConnectionState} from '../../src/components/ConnectionState';
describe('ConnectionState', () => {
it('is not visible when connected', () => {
const c... |
AHelloWorld/__tests__/index.ios.js | yueenen/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 />
);
});
|
examples/js/components/Home.js | dana2208/react-bootstrap-table | import React from 'react';
class Home extends React.Component {
render() {
return (
<div>
</div>
);
}
}
export default Home;
|
src/ui/components/views/Homescreen/Homescreen.js | belng/pure | /* @flow */
import React, { Component } from 'react';
import { StyleSheet } from 'react-native';
import RoomsContainer from '../../containers/RoomsContainer';
import MyActivityContainer from '../../containers/MyActivityContainer';
import TabView from '../Core/TabView';
const styles = StyleSheet.create({
container: {... |
client/src/components/billing/checkout-form.js | iNeedCode/mern-starter | import React, { Component } from 'react';
import CheckoutFields from './checkout-fields';
import { connect } from 'react-redux';
import * as actions from '../../actions/billing';
/* TODO:
* - Pass more information down with redux state (i.e., billing address initial val)
*/
class CheckoutForm extends Component {
... |
client/src/components/setup-workflow/index.js | safv12/trello-metrics | 'use strict';
import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import BoardList from './boards_list';
import ListConfiguration from './lists_configuration';
import MetricsControllers from './metrics_controllers';
class SetupWorkf... |
src/components/TagPickerPopover.js | LucasYuNju/leanote-desktop-ng | import classNames from 'classnames';
import debounce from 'lodash/debounce';
import React, { Component, PropTypes } from 'react';
import Icon from '../components/Icon';
class TagPickerPopover extends Component {
static propTypes = {
hide: PropTypes.func.isRequired,
addNoteTag: PropTypes.func.isRequired,
... |
ajax/libs/yui/3.6.0/event-custom-base/event-custom-base.js | bryantrobbins/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
src/lib/DatePickerComponent.android.js | MichaelCereda/react-native-form-generator | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
let { View, StyleSheet, TextInput, Text, DatePickerAndroid} = require('react-native');
import {Field} from './Field';
export class DatePickerComponent extends React.Component{
constructor(props){
super(props);
this.state ... |
src/components/task/taskForm.js | RobertHebel/ToDoList | import React from 'react';
import PropTypes from 'prop-types';
import TextInput from '../common/textInput';
import TextArea from '../common/textareaInput';
const newTaskForm = ({task, onSave, onChange, errors}) => {
return (
<form>
<div className="row justify-content-center">
<d... |
docs/src/app/components/pages/components/SvgIcon/ExampleSimple.js | IsenrichO/mui-with-arrows | import React from 'react';
import {blue500, red500, greenA200} from 'material-ui/styles/colors';
import SvgIcon from 'material-ui/SvgIcon';
const iconStyles = {
marginRight: 24,
};
const HomeIcon = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" />
</SvgIcon>
);
const SvgIco... |
client/components/__tests__/Team.spec.js | bjoberg/social-pulse | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Team } from '../Team/Team';
test('renders team members information correctly', t => {
const wrapper = shallow(
<Team />
);
t.is(wrapper.find('p').length, 7);
t.is(wrapper.find('h1').length, 1);
t.is(wrapper.fin... |
blueocean-material-icons/src/js/components/svg-icons/device/brightness-medium.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"/>
</SvgIcon>
);
DeviceBrig... |
antie/static/script-tests/api/jquery.js | hbbtvSenegal/siteDeVente | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBord... |
src/js/components/icons/base/Overview.js | linde12/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... |
node_modules/webpack-dev-server/client/overlay.js | ernieyang09/React-Todo | // The error overlay is inspired (and mostly copied) from Create React App (https://github.com/facebookincubator/create-react-app)
// They, in turn, got inspired by webpack-hot-middleware (https://github.com/glenjamin/webpack-hot-middleware).
var ansiHTML = require("ansi-html");
var Entities = require("html-entities... |
src/svg-icons/device/signal-wifi-1-bar-lock.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi1BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
test/views/object/link-buttons.spec.js | transmute-industries/monarch-portal | import {expect} from 'chai'
import {shallow} from 'enzyme'
import React from 'react'
import Path, {parse} from '../../../app/scripts/utils/path'
import LinkButtons from '../../../app/scripts/views/object/link-buttons'
describe('LinkButtons', () => {
it('renders', () => {
const path = parse('/ipfs/hello/world/d... |
src/svg-icons/navigation/first-page.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFirstPage = (props) => (
<SvgIcon {...props}>
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
</SvgIcon>
);
NavigationFirstPage = pure(NavigationFirstPage);
NavigationFirstPag... |
src/svg-icons/device/battery-std.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryStd = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/>
</SvgIcon>
);
D... |
packages/material-ui-icons/src/ViewCarouselOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M2 6h4v11H2zM7 19h10V4H7v15zM9 6h6v11H9V6zM18 6h4v11h-4z" /></g></React.Fragment>
, 'ViewCarouselOutlined');
|
ajax/libs/yui/3.7.1/event-custom-base/event-custom-base.js | tresni/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
ajax/libs/clappr/0.0.91/clappr.js | perdona/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/svg-icons/editor/drag-handle.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorDragHandle = (props) => (
<SvgIcon {...props}>
<path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/>
</SvgIcon>
);
EditorDragHandle = pure(EditorDragHandle);
EditorDragHandle.displayName = 'EditorDragHandle';
Edi... |
app/react-icons/fa/hand-grab-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaHandGrabO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m20.1 8.6q-1.1 0-2 0.8t-0.8 2v2.9h-0.7v-2.1q0-1.1-0.7-1.8t-1.8-0.8q-1.1 0-... |
admin/client/components/Toolbar.js | nickhsine/keystone | import React from 'react';
import { Container } from 'elemental';
module.exports = React.createClass({
displayName: 'Toolbar',
render () {
return (
<div {...this.props} className="Toolbar">
<Container clearfix >
{this.props.children}
</Container>
</div>
);
},
});
// expose the children to th... |
RNTester/js/TimePickerAndroidExample.js | cpunion/react-native | /**
* Copyright (c) 2015-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.
*
* @provides... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.