path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/redux.js | Mahi22/MedTantra | // Component that demonstrates using a part of the Redux store
// outside of Apollo. We can use config.addReducer(key, reducer) in `src/app.js`
// to add custom Redux reducers
// ----------------------
// IMPORTS
/* NPM */
import React from 'react';
import PropTypes from 'prop-types';
// HOC/decorator to listen to ... |
screens/SettingsScreen/index.js | React-Native-Warehouse/TabBasicExtension | import React from 'react';
import { ScrollView, StyleSheet } from 'react-native';
export default class SettingsScreen extends React.Component {
static navigationOptions = {
title: 'app.json',
};
render() {
return (
<ScrollView style={styles.container}>
</ScrollView>
);
}
}
const st... |
src/routes/BarmenOrder/components/BarOrdersView/BarOrdersView.js | hrnik/roofbar | import React from 'react'
import classNames from 'classnames'
import BarOrdersList from '../BarOrdersList'
import './BarOrdersView.scss'
export class BarOrdersView extends React.Component {
componentWillReceiveProps (nextProps) {
const {
isNeedDingDong,
notNeedDingDong
} = nextProps
if (i... |
node_modules/react-router/es6/Link.js | SlateRobotics/slate-website | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
js/profile/home/PreferredGenderScreen.js | kilimondjaro/react-native-couchsurfing-app | // @flow
import React from 'react';
import {
View,
ScrollView,
StyleSheet,
Navigator
} from 'react-native';
import {connect} from 'react-redux';
import {CSHeader} from '../../components/CSHeader';
import CSInputList from '../../components/CSInputList';
import CSCheckCell from '../../components/CSCheckCell';
imp... |
src/components/GlobalSearchFilters.js | FiviumAustralia/RNSH-Pilot | import React, { Component } from 'react';
import styles from './GlobalSearchFilters.scss';
export default class GlobalSearchFilters extends Component {
render () {
var prostateFilterClass = this.props.tumorFilter === 'Prostate' ? this.props.selectedClass : '';
var cnsFilterClass = this.props.tumorFilter ===... |
src/components/Editor/Editor.js | chuntielin/Blog_Yeoman_Fullstack | import React from 'react';
const Editor = React.createClass({
render(){
return(
<h2> This is Editor page. </h2>
)
}
});
module.exports=Editor;
|
ajax/libs/babel-core/4.2.0/browser-polyfill.js | sreym/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/containers/Map/GoogleMap/maps/geoLoacations.js | EncontrAR/backoffice | import React, { Component } from 'react';
export default class extends Component {
constructor(props) {
super(props);
}
render() {
return <div>geo</div>;
}
}
|
blueocean-material-icons/src/js/components/svg-icons/device/gps-not-fixed.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceGpsNotFixed = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7.94-7.94H23v-2h-2.06zM12 19c-3.87... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | ruikong/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
node_modules/react-icons/io/android-arrow-dropright-circle.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidArrowDroprightCircle = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.8 36.3c-9 0-16.3-7.3-16.3-16.3s7.3-16.2 16.3-16.2 16.2 7.2 16.2 16.2-7.3 16.3-16.2 16.3z m-2.5-8.8l7.5-7.5-7.5-7.5v15z"/></g>
</Icon>
)
e... |
ajax/libs/yui/3.11.0pr1/event-custom-base/event-custom-base.js | honestree/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... |
__tests__/Style-16.js | buildbreakdo/scoped-css | import React from 'react';
import { findDOMNode, render } from 'react-dom';
import TestUtils from 'react-addons-test-utils';
const removeNewlines = (string) => (string.replace(/(\r\n|\n|\r)/gm, ''))
import Style from '../src/index.js';
describe('Style-16', () => {
it('does not produce an error when root element ch... |
app/javascript/trading_app/components/account/AccountBalance.js | zooliet/Rekcle | import React from 'react'
import { observer, inject } from 'mobx-react';
import NumberFormat from 'react-number-format';
@inject('kiwoomStore') @observer
class AccountBalance extends React.Component {
constructor(props) {
super(props)
this.handleCheckBalance = this.handleCheckBalance.bind(this)
}
compo... |
Agenda/src/components/agenda.js | interlegis/agenda-evento | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import BigCalendar from 'react-big-calendar';
import moment from 'moment';
import 'moment/locale/pt-br';
import _ from 'lodash';
import { getAgendaPedidos } from '../actions/pedido-evento/pedido';
import { getUsuario } from '../actions';
impo... |
dist/1.11.0/jquery-css-deprecated.min.js | jgallen23/jquery-builder | /*! jQuery v1.11.0 -css,-css/addGetHookIf,-css/curCSS,-css/defaultDisplay,-css/hiddenVisibleSelectors,-css/support,-css/swap,-css/var/cssExpand,-css/var/isHidden,-css/var/rmargin,-css/var/rnumnonpx,-effects,-effects/Tween,-effects/animatedSelector,-effects/support,-dimensions,-offset,-deprecated | (c) 2005, 2014 jQuery... |
test/client/pages/admin/admins/search/index.js | dangsonbk/YASH | 'use strict';
const Constants = require('../../../../../../client/pages/admin/admins/search/constants');
const Lab = require('lab');
const Proxyquire = require('proxyquire');
const React = require('react');
const ReactDOM = require('react-dom');
const ReactTestUtils = require('react-addons-test-utils');
const Store = r... |
packages/playground/stories/Modal.story.js | appearhere/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, boolean } from '@storybook/addon-knobs';
import { Modal, Modifiers as m } from '@appearhere/bloom';
const stories = storiesOf('Modal', module);
stories.addDecorator(withKnobs)... |
resources/docstrap-master/template/static/scripts/jquery.min.js | caryanne/phaser | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e, t) {
function _(e) {
var t = M[e] = {};
return v.each(e.split(y), function(e, n) {
t[n] = !0
}), t
}
function H(e, n, r) {
if (r === t && e.nodeType === 1) {
var i = "data-" + n.replace(P, "-$1").toLowerCase();
r ... |
src/js/containers/app/main-header.js | frontendbr/eventos | 'use strict'
import React from 'react'
const MainHeader = () => (
<header className='header' role='banner'>
<a className='logo' href='./' role='logo'>
<img src='svg/logo.svg' />
</a>
<a
className='btn-link'
href='https://github.com/frontendbr/eventos'
title='Anuncie seu evento'>
... |
ajax/libs/react-router/0.12.3/ReactRouter.js | dhowe/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
WebContent/js/ext-js-3.4.0/widgets/form/Form.js | regestaexe/OD | /*!
* Ext JS Library 3.4.0
* Copyright(c) 2006-2011 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
/**
* @class Ext.form.FormPanel
* @extends Ext.Panel
* <p>Standard form container.</p>
*
* <p><b><u>Layout</u></b></p>
* <p>By default, FormPanel is configured with <tt>layout:'form'</tt>... |
src/js/components/home/Banner.js | mmmigalll/react-starter | import React, { Component } from 'react';
import Button from './Button';
export default () => (
<div className="banner">
<h1>
Intelligence Reports
</h1>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.... |
src/svg-icons/image/grid-on.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOn = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | cferreirasuazo/pokedex | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/message/MessageListLoading.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { StyleSheet, View } from 'react-native';
import MessageLoading from '../message/MessageLoading';
const styles = StyleSheet.create({
list: {
flexGrow: 1,
justifyContent: 'space-around',
},
});
export default () => (
<View style={styles.list}>
<MessageLo... |
ajax/libs/clappr/0.0.78/clappr.js | wallin/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/components/jobs/CardLogos.js | jackson-/hireblack.io | import React from 'react'
const CardLogos = props => (
<ul className="credit-card-list clearfix">
<li><i data-brand="visa" className="fa fa-cc-visa cc-logo"></i></li>
<li><i data-brand="amex" className="fa fa-cc-amex cc-logo"></i></li>
<li><i data-brand="mastercard" className="fa fa-cc-mastercard cc-logo... |
src/App.js | jasonaowen/recurse-faces | import React, { Component } from 'react';
import './App.css';
import 'bootstrap/dist/css/bootstrap.css';
import { CardContainer } from './components/card';
import { HintContainer } from './components/hint';
import { GuessContainer } from './components/guess';
import { NextContainer } from './components/next';
import { ... |
ajax/libs/yui/3.4.0pr3/event-custom-base/event-custom-base-debug.js | emmy41124/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... |
files/vue/2.0.7/vue.js | sancospi/jsdelivr | /*!
* Vue.js v2.0.7
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function... |
styleguide/components/Specimen/Specimen.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import cx from 'classnames';
import refractor from 'refractor/core.js';
import jsxLang from 'refractor/lang/jsx';
import rehype from 'rehype';
import mergeObjectStrings from '../../../utils/mergeObjectStrings/mergeObjectStrings';
import css ... |
ajax/libs/forerunnerdb/1.3.844/fdb-core+persist.js | him2him2/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... |
examples/huge-apps/routes/Grades/components/Grades.js | keathley/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
packages/material-ui-icons/src/RadioTwoTone.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="M20 13H4v7h16v-7zM8 18.98c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" opacity=".3" /><path d="M2 20c0 1.1.89 2... |
dist/js/vendor/jquery-1.11.1.min.js | Samalamabanana/bp5 | /*! jQuery v1.11.1 | (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... |
index.js | caTUstrophy/frontend | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import Root from './containers/meta/Root'
import configureStore from './store/configureStore'
const store = configureStore()
const... |
src/routes/login/Login.js | Frenzzy/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 PropTypes from 'prop-... |
src/routes/content/index.js | quasicrial/quasicrial | /**
* 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 Layout from '../../compo... |
demo/components/TodosList.js | bradparks/cerebral__web_app_state_with_debugger | import React from 'react';
import Todo from './Todo.js';
import {Decorator as Cerebral} from 'cerebral-react';
@Cerebral({
todos: ['visibleTodos'],
isAllChecked: ['isAllChecked']
})
class TodosList extends React.Component {
renderTodo(todo, index) {
return <Todo key={index} index={index} todo={todo}/>
}
... |
src/Survey/Complex/Plant/Edit/Main/components/SpeciesList/components/SubSample/index.js | NERC-CEH/irecord-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import {
IonItemOption,
IonItemOptions,
IonItem,
IonItemSliding,
} from '@ionic/react';
import './styles.scss';
function showGallery() {}
@observer
class index extends Component {
static prop... |
public/components/font-awesome/src/assets/js/jquery-1.7.1.min.js | stefina/pokemon | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
App/components/shared/EventPage/Detail.spec.js | araneforseti/caretaker-app | import React from 'react';
import renderer from 'react-test-renderer';
import Detail from './Detail';
describe('<EventPage.Detail />', () => {
let props;
const detail = () => renderer.create(<Detail {...props} />);
beforeEach(() => {
props = {
text: 'The text',
icon: 'icon',
center: true
... |
client/cypress/support/commands.js | alexanderlz/redash | /* global Cypress */
import "@percy/cypress"; // eslint-disable-line import/no-extraneous-dependencies, import/no-unresolved
import "@testing-library/cypress/add-commands";
const { each } = Cypress._;
Cypress.Commands.add("login", (email = "admin@redash.io", password = "password") => {
let csrf;
cy.visit("/logi... |
src/Timer/TimerNewForm.js | PremiseWP/premise-time-track-chrome-extension-node | import React, { Component } from 'react';
import PTT from '../PTT';
import TimerFetch from './TimerFetch';
import LoadingIcon from '../LoadingIcon';
import TimerDB from './TimerDB';
import $ from 'jquery'; // Import jQuery.
/**
* New Timer form
*/
class TimerNewForm extends Component {
constructor(props) {
sup... |
ajax/libs/cyclejs-core/0.16.1/cycle.js | rlugojr/cdnjs | (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=self}else{g=this}g.Cycle = f()}})... |
ajax/libs/yui/3.7.0/event-custom-base/event-custom-base-debug.js | maxklenk/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/yui/3.9.1/scrollview-base/scrollview-base.js | jdanyow/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
ajax/libs/inferno-redux/1.0.0-beta25/inferno-redux.js | sashberd/cdnjs | /*!
* inferno-redux v1.0.0-beta25
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component'), require('./inferno-create-element')) :
typeof define === 'functio... |
packages/cf-component-table/example/basic/component.js | koddsson/cf-ui | import React from 'react';
import {
Table,
TableHead,
TableBody,
TableFoot,
TableRow,
TableHeadCell,
TableCell
} from 'cf-component-table';
const data = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
const TableComponent = () => (
<Table>
<TableHead>
<TableRow>
<TableHeadCell>One</TableHeadCell>... |
ajax/libs/rxjs/2.2.7/rx.js | geta6/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
extension/vue.js | WillAvudim/secure_vault | /*!
* Vue.js v2.0.3
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function... |
test/client/components/App.spec.js | toomastahves/react-gulp-starter | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { expect } from 'chai';
import { App } from 'client/components/App';
import Hello from 'client/components/Hello';
const setup = () => {
const renderer = TestUtils.createRenderer();
renderer.render(<App />);
const output = renderer... |
ajax/libs/reactive-coffee/0.0.4/reactive-coffee.js | js-data/cdnjs | (function() {
var DepArray, DepCell, DepMap, DepMgr, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, ev, events, firstWhere, lagBind, maybe, mkMap, mktag, mkuid, nextUid, nthWhere, popKey, prop, propSet, props, recorder, rx, rxt, setProp, specialAttrs, tag, t... |
client/modules/members/components/edit_dialog.js | freiraumpetersburg/mitgliederverwaltung | import React from 'react';
import PropTypes from 'prop-types';
import autobind from 'autobind-decorator';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import Checkbox from 'material-ui/Checkbox';
import CircularProgress from 'ma... |
ajax/libs/angular.js/0.10.3/angular.js | extend1994/cdnjs | /**
* @license AngularJS v0.10.3
* (c) 2010-2011 AngularJS http://angularjs.org
* License: MIT
*/
'use strict';
(function(window, document, undefined){
////////////////////////////////////
if (typeof document.getAttribute == $undefined)
document.getAttribute = function() {};
/**
* @ngdoc function
* @name ang... |
app/javascript/mastodon/features/compose/components/warning.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
src/js/components/Projects/Index.js | appdev-academy/appdev.academy-react | import React from 'react'
import { Link } from 'react-router'
import { inject, observer } from 'mobx-react'
import TableBody from './TableBody'
@inject('projectsStore')
@observer
export default class Index extends React.Component {
componentDidMount() {
this.props.projectsStore.fetchIndex()
}
moveProj... |
src/client/main.js | alihalabyah/hacker-menu | import React from 'react'
import StoryBox from './story_box.js'
React.render(
<StoryBox />,
document.getElementById('container')
)
|
sites/all/modules/views/js/dependent.js | pplegend/drupal | /**
* @file dependent.js
*
* Written by dmitrig01 (Dmitri Gaskin) for Views; this provides dependent
* visibility for form items in Views' ajax forms.
*
* To your $form item definition add:
* - '#process' => array('views_process_dependency'),
* - Add '#dependency' => array('id-of-form-item' => array(list, of, v... |
src/routes.js | badT/Chatson | import React from 'react';
import { Route, IndexRoute } from 'react-router';
/* containers */
import { App } from './components/App';
import { Home } from './components/Home';
import { About } from './components/About';
import { ChatChannelDisplay } from './components/ChatChannelDisplay';
// import { List } from 'cont... |
public/src/index.js | alexisbellido/node-tests | // let's go!
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter, Match, Miss } from 'react-router';
import './css/style.css';
import StorePicker from './components/StorePicker';
import App from './components/App';
import NotFound from './components/NotFound';
const Root = () => {
... |
src/scripts/components/checkbox/Checkbox.component.js | kodokojo/kodokojo-ui-commons | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... |
src/components/RegisterReminder.js | jenkoian/hacktoberfest-checker | import React from 'react';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faInfoCircle as infoIcon } from '@fortawesome/free-solid-svg-icons';
const RegisterReminder = () => (
<div className="flex flex-none items-center justify-center p-2 pl-4 bg-hack-alt-bg light-mode:bg-hack-alt-bg text... |
ajax/libs/angular-google-maps/1.1.8/angular-google-maps.js | yogeshsaroya/cdnjs | /*! angular-google-maps 1.1.8 2014-07-10
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... |
packages/mineral-ui-icons/src/IconAddToPhotos.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconAddToPhotos(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPr... |
src/components/header.js | guruganeshm/react-js-sample | import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
export default class Header extends Component {
render () {
return (
<section>
<header className="mdl-layout__header mdl-layout__header--scroll mdl-color--primary">
<div className="mdl-layout--large-scre... |
src/svg-icons/action/pets.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPets = (props) => (
<SvgIcon {...props}>
<circle cx="4.5" cy="9.5" r="2.5"/><circle cx="9" cy="5.5" r="2.5"/><circle cx="15" cy="5.5" r="2.5"/><circle cx="19.5" cy="9.5" r="2.5"/><path d="M17.34 14.86c-.8... |
Examples/Movies/MovieCell.js | barakcoh/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
packages/react-error-overlay/src/iframeScript.js | ontruck/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import './utils/pollyfills.js';
import React from 'react';
import ReactDOM from 'react-dom';
import CompileErrorContainer from './contai... |
web-ui/src/account_recovery/page.js | pixelated-project/pixelated-user-agent | /*
* Copyright (c) 2017 ThoughtWorks, Inc.
*
* Pixelated 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, or
* (at your option) any later version.
*
* Pixelated i... |
geonode/contrib/monitoring/frontend/src/pages/home/index.js | ingenieroariel/geonode | import React from 'react';
import HoverPaper from '../../components/atoms/hover-paper';
import Map from '../../components/atoms/map';
import Header from '../../components/organisms/header';
import Stats from '../../components/organisms/stats';
import SoftwarePerformance from '../../components/organisms/software-perform... |
redux-serial-effects/src/randomGifPairOfPair/Container.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react'
import relocatableGif from '../relocatableGif/Container'
const Container = mountPoint => ({ topics, onNewRequested }) => {
const RandomGifPairOne = relocatableGif(mountPoint, [0, 1])
const RandomGifPairTwo = relocatableGif(mountPoint, [2, 3])
return (
<div style={{ display: 'flex',... |
plugins/Terminal/js/components/commandline.js | rivine/rivine-UI | import React from 'react'
import CommandHistoryList from '../containers/commandhistorylist.js'
import CommandInput from '../containers/commandinput.js'
import WalletPasswordPrompt from '../containers/walletpasswordprompt.js'
import WalletSeedPrompt from '../containers/seedprompt.js'
const CommandLine = ({showCommandOv... |
webpack/JobWizard/steps/form/FormHelpers.js | theforeman/foreman_remote_execution | import React from 'react';
import { Popover } from '@patternfly/react-core';
import { HelpIcon } from '@patternfly/react-icons';
import { translate as __ } from 'foremanReact/common/I18n';
export const helpLabel = (text, id) => {
if (!text) return null;
return (
<Popover id={`${id}-help`} bodyContent={text} ar... |
src/routes.js | atryx/node-rest-api | import React from 'react';
import { Router, Route } from 'react-router'
import App from './components/App';
import About from './components/About';
import NotFound from './components/NotFound';
import Bookmark from './components/Bookmark';
const Routes = (props) => (
<Router {...props}>
<Route path="/" componen... |
ajax/libs/forerunnerdb/1.3.404/fdb-all.min.js | Amomo/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... |
public/js/jquery.min.js | willvrd/zfdos-ejm | /*! 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... |
ajax/libs/highcharts/3.0.9/highcharts.src.js | Stavrakakis/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.9 (2014-01-15)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
ReactComponent/node_modules/react-native/jestSupport/preprocessor.js | xuchengcheng/RNAPPDemo | /**
* 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.
*/
'use strict... |
src/utils/universalRouter.js | zachallaun/archive.gg | import _ from 'lodash';
import React from 'react';
import Router from 'react-router';
import routes from 'views/routes';
import { Provider } from 'react-redux';
const getFetchData = (component) => {
return component.fetchData || (component.DecoratedComponent && component.DecoratedComponent.fetchData);
};
export fun... |
packages/reactor-kitchensink/src/examples/DragAndDrop/Groups/Groups.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel } from '@extjs/ext-react';
import './styles.css';
Ext.require(['Ext.drag.*']);
export default class Groups extends Component {
render() {
return (
<Panel
ref="mainPanel"
padding={5}
s... |
client/src/components/Menu.js | galiarmero/draft-buddy | import React from 'react';
const Menu = ({ selectedMenu, selectedRankBy, onSelect, onChangeRankBy }) => {
return (
<div className="tabs is-boxed">
<ul>
<li className={ selectedMenu == 'proj' ? 'is-active' : '' }
onClick={() => onSelect('proj')}>
... |
src/components/event_page/chat/message.js | decaster3/hikester_redux | import React from 'react';
import FontAwesome from 'react-fontawesome';
export default class Message extends React.Component {
constructor(props) {
super(props);
}
render() {
let active_message = this.props.active ? ' active flex-row-reverse text-right' : '';
return (
<div className={"message... |
src/components/Card/CardLayoutFill.js | sk-iv/iva-app | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Buttress from '../Buttress';
import Image from '../Image';
function CardLayoutFill(props: Props) {
const {
children,
className,
layout,
imgWidth,
imgHeight,
blend,
image,
alt,
... |
src/svg-icons/editor/format-size.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatSize = (props) => (
<SvgIcon {...props}>
<path d="M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z"/>
</SvgIcon>
);
EditorFormatSize = pure(EditorFormatSize);
EditorFormatSize.displayName = 'EditorFo... |
frontend/src/routes/index.js | swistak35/symmetrical-chainsaw | import React from 'react'
import { Route, IndexRoute } from 'react-router'
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardless... |
ajax/libs/yasqe/2.2.6/yasqe.bundled.min.js | dryajov/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
frontend/tests/navbar-dropdown.js | 1905410/Misago | import assert from 'assert';
import React from 'react'; // jshint ignore:line
import store from 'misago/services/store';
import { MobileNavbarDropdown } from 'misago/services/mobile-navbar-dropdown';
import * as testUtils from 'misago/utils/test-utils';
var dropdown = null;
class TestComponentA extends React.Componen... |
src/js/components/Grommet.js | primozs/grommet | // (C) Copyright 2016 Hewlett Packard Enterprise Development LP
import React from 'react';
const CLASS_ROOT = "grommet";
export default props => {
return (
<div className={CLASS_ROOT}>
{props.children}
</div>
);
};
|
node_modules/react-icons/fa/close.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaClose = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.5 29.5q0 0.9-0.7 1.5l-3 3.1q-0.6 0.6-1.5 0.6t-1.5-0.6l-6.6-6.6-6.5 6.6q-0.7 0.6-1.6 0.6t-1.5-0.6l-3-3.1q-0.6-0.6-0.6-1.5t0.6-1.5l6.5-6.6-6.5-6.5q-0.6-0.7-0.6-1.6t0.... |
techCurriculum/ui/solutions/5.1/src/components/Title.js | jennybkim/engineeringessentials | /**
* 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... |
Demo/StarRatingViewDemo/SimpleDemo.js | ksti/react-native-star-rating-view | /**
* Created by GJS on 2017/3/23.
*/
// 导入所需的包
import React from 'react';
import {
StyleSheet,
Text,
TextInput,
View,
Image,
TouchableHighlight,
TouchableOpacity,
Platform,
Dimensions,
InteractionManager,
ScrollView,
FlatList,
TouchableWithoutFeedback, Keyboard,
}... |
www/js/ionic.js | driftyco/chatroom-cordova-ionic-angularjs-firebase | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.20-alpha
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/;
// Create namespaces
window... |
packages/cf-component-modal/src/ModalClose.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { Icon } from 'cf-component-icon';
class ModalClose extends React.Component {
render() {
return (
<span className="cf-modal__close" onClick={this.props.onClick}>
<Icon type="remove" label={this.props.label} />
</span>
)... |
app/javascript/components/provider-dashboard-charts/servers-pie-chart/serversAvailablePieChart.js | ManageIQ/manageiq-ui-classic | import React from 'react';
import PropTypes from 'prop-types';
import { PieChart } from '@carbon/charts-react';
import EmptyChart from '../emptyChart';
const ServersAvailablePieChart = ({ data, config }) => {
const pieChartData = [
{
group: config.usageDataName,
value: data.data.columns.used,
},
... |
src/parser/shared/modules/features/RaidHealthTab/TabComponent/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Panel from 'interface/others/Panel';
import Graph from './Graph';
const Mana = ({ parser }) => (
<Panel
title="Raid health"
explanation="The stacked health of your raid to give an idea of the healing intensity. Most progression raid figh... |
app/components/WindowMinimizeButton/index.js | FilipPyrek/school-project-match-generator | // @flow
import React from 'react';
import WindowControlButton from '../WindowControlButton';
import icon from './minimize.png';
type WindowMinimizeButtonType = {
size: string
};
export default function WindowMimimizeButton(props: WindowMinimizeButtonType) {
return <WindowControlButton {...props} icon={icon} />;
... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | mxw0417/actor-platform | import _ from 'lodash';
import React from 'react';
import ActorClient from 'utils/ActorClient';
import { KeyCodes } from 'constants/ActorAppConstants';
import InviteUserActions from 'actions/InviteUserActions';
import ContactStore from 'stores/ContactStore';
import InviteUserStore from 'stores/InviteUserStore';
im... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.