path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
js/lessons/lesson2/index.js | leftstick/react-lesson | 'use strict';
import React from 'react';
import DocumentLink from 'fw/DocumentLink';
import LessonTitle from 'fw/LessonTitle';
import LessonHelper from 'fw/LessonHelper';
import Preview from 'fw/Preview';
class Lesson2 extends React.Component {
constructor(props) {
super(props);
}
render() {
... |
src/library/searchSuggestions/index.js | zdizzle6717/tree-machine-records | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import {Input} from '../../library/validations';
import {scrollUp, scrollDown} from '../utilities/scrollHelpers';
export default function(Service, method) {
let _keyChart = {
9: 'tab',
13: 'enter',
2... |
CoMLle/src/views/Home.js | MOTOMUR/plz_donation | import React, { Component } from 'react'
import TextField from 'material-ui/TextField'
import RaisedButton from 'material-ui/RaisedButton'
import {Tabs, Tab} from 'material-ui/Tabs'
import SearchIcon from 'material-ui/svg-icons/action/search'
import firebase from 'firebase'
import PostRef from './components/PostRef'
... |
node_modules/react-dom/lib/ReactInputSelection.js | jongschneider/lyndaProject | /**
* 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 directory.
*
*/
'use strict... |
src/js/components/icons/base/CloudSoftware.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... |
hw8-frontend/src/components/article/articleView.js | lanyangyang025/COMP531 | import React from 'react'
import { connect } from 'react-redux'
import {Article} from './article'
import { searchKeyword,showComments,addArticle } from './articleActions'
//the content of all the articles
const ArticleView = ({articles,dispatch, username}) => {
let keyword, text, newImage, count=0
return(
<div clas... |
ajax/libs/forerunnerdb/1.3.542/fdb-core.min.js | sashberd/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... |
src/containers/Page/signin.js | EncontrAR/backoffice | import React from 'react';
import { Link, Redirect } from 'react-router-dom';
import { connect } from 'react-redux';
import { message } from 'antd';
import Input from '../../components/uielements/input';
import Button from '../../components/uielements/button';
import authActions from '../../redux/auth/actions';
import ... |
ajax/libs/yui/3.9.0pr3/datatable-core/datatable-core.js | pvnr0082t/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... |
js/src/Decorators/Link/__test__/linkDecoratorTest.js | andresin87/react-draft-wysiwyg | /* @flow */
import React from 'react';
import { expect, assert } from 'chai';
import { shallow, mount } from 'enzyme';
import LinkDecorator from '..';
describe('LinkDecorator test suite', () => {
it('should have a div when rendered', () => {
const Link = LinkDecorator.component;
expect(shallow(<Link>Link</L... |
ajax/libs/yasqe/1.3.2/yasqe.min.js | cloudrifles/cdnjs | !function(e){if("object"==typeof exports)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){function n(s,a){if(!i[s]){if(!... |
components/gpstracking/runlodingscreen.js | akashnautiyal013/ImpactRun01 |
'use strict';
import React, { Component } from 'react';
import{
StyleSheet,
View,
Image,
ScrollView,
Dimensions,
TouchableOpacity,
Text,
WebView,
} from 'react-native';
import TimerMixin from 'react-timer-mixin';
import Icon from 'react-native-vector-icons/Ionicons';
import { Animate... |
client/app/scripts/components/topology-options.js | kinvolk/scope | import React from 'react';
import { connect } from 'react-redux';
import { Set as makeSet, Map as makeMap } from 'immutable';
import includes from 'lodash/includes';
import { trackAnalyticsEvent } from '../utils/tracking-utils';
import { getCurrentTopologyOptions } from '../utils/topology-utils';
import { activeTopolo... |
ajax/libs/react-dom/18.0.0-rc.0-next-790b5246f-20220118/cjs/react-dom-server.browser.production.min.js | cdnjs/cdnjs | /**
* @license React
* react-dom-server.browser.production.min.js
*
* 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.
*/
'use strict';var k=require("object-assign"),aa=require("react");... |
src/Portal.js | IveWong/react-bootstrap | import React from 'react';
import CustomPropTypes from './utils/CustomPropTypes';
import domUtils from './utils/domUtils';
let Portal = React.createClass({
displayName: 'Portal',
propTypes: {
/**
* The DOM Node that the Component will render it's children into
*/
container: CustomPropTypes.moun... |
src/docs/reference/Architecture.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Anchor from 'grommet/components/Anchor';
import DocsArticle from '../../components/DocsArticle';
export default class Architecture extends Component {
render () {
return (
<DocsArticle ti... |
src/views/GardenizeView/QuestionsListView.js | Vargentum/react-redux-apps | import React from 'react'
import QuestionsList from '../../containers/gardenize/QuestionsList'
import CommonView from '../CommonView'
class QuestionsListView extends React.Component {
render () {
return (
<CommonView
title="Test application for Gardenize"
description="There is a simple QA p... |
ajax/libs/6to5/1.11.12/browser-polyfill.js | vfonic/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... |
ajax/libs/extjs/4.2.1/src/AbstractComponent.js | boneskull/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... |
server/sonar-web/src/main/js/apps/permissions/shared/components/UserHolder.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
docs/src/components/browser.js | adamrneary/nuclear-js | import React from 'react'
export default React.createClass({
render() {
var className = 'browser-component';
if (this.props.size) {
className += " browser-component__" + this.props.size
}
var contentClassName = "browser-component--content"
return <div className={className}>
<div c... |
src/svg-icons/av/art-track.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvArtTrack = (props) => (
<SvgIcon {...props}>
<path d="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2.26-1.25-1... |
src/components/TimeAndSalary/SearchScreen/SearchScreen.js | goodjoblife/GoodJobShare | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { compose, setStatic } from 'recompose';
import qs from 'qs';
import Loading from 'common/Loader';
import { P } from 'common/base';
import FanPageBlock from 'common/FanPageBlo... |
src/ui/GroupFooter.js | touchstonejs/touchstonejs | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
module.exports = React.createClass({
displayName: 'GroupFooter',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string
},
render () {
var className = classnames('Group__foote... |
geonode/monitoring/frontend/src/components/molecules/total-requests/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import CircularProgress from 'material-ui/CircularProgress';
import HoverPaper from '../../atoms/hover-paper';
import styles from './styles';
class TotalRequests extends React.Component {
static propTypes = {
requests: PropTypes.number,
}
stati... |
fields/types/select/SelectFilter.js | tony2cssc/keystone | import React from 'react';
import { Checkbox, FormField, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/components/Popout/PopoutList';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return... |
src/js/components/Pokemon.js | ilken/PokePower | import React from 'react';
import * as PokemonActions from '../actions/PokemonActions';
export default class Pokemon extends React.Component {
evaluateSelection (selection) {
PokemonActions.selectPokemon(selection);
}
render () {
const { Name, MaxCP } = this.props;
const imgSrc = 'http://assets.pokemon.com/as... |
mobile_app/src/components/views/settings/Settings.js | youennPennarun/agorask | /* @flow */
import React from 'react';
import { View, Text, StyleSheet, Dimensions, Switch } from 'react-native';
import { connect } from 'react-redux';
import type { SettingsStateType } from '../../../redux/reducers/settings';
import { setNotifications } from '../../../redux/actions/settings';
const { width } = Dim... |
ajax/libs/jquery-confirm/1.5.1/jquery-confirm.min.js | viskin/cdnjs | "use strict";
/*!
* jquery-confirm v1.5.1 (http://craftpip.github.io/jquery-confirm/)
* Author: Boniface Pereira
* Website: www.craftpip.com
* Contact: hey@craftpip.com
*
* Copyright 2013-2015 jquery-confirm
* Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE)
*/
if(typeof jQuer... |
ajax/libs/es6-shim/0.26.0/es6-shim.js | steadiest/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.26.0
* see https://github.com/paulmillr/es6-shim/blob/0.26.0/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
web/src/server/components/chart-layout.js | opendaylight/spectrometer | /**
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public L... |
app/components/specificComponents/CommentaryForm/select.js | romainquellec/cuistot | import React from 'react';
import Formsy from 'formsy-react';
import SelectStyled from './selectStyled';
const Select = React.createClass({
mixins: [Formsy.Mixin],
changeValue(event) {
this.setValue(event.currentTarget.value);
},
render() {
const className = `form-group${this.props.className ||
... |
server/dashboard/js/components/BenchReports.react.js | timofey-barmin/mzbench | import React from 'react';
import ReactDOM from 'react-dom';
import Modal from './Modal.react';
import PropTypes from 'prop-types';
class BenchReports extends React.Component {
constructor(props) {
super(props);
}
renderDownloadReportPanel() {
return (
<div className="panel pan... |
src/client/pages/tocheckitem.react.js | terakilobyte/socketreact | import Component from '../components/component.react';
import React from 'react';
import {FormattedHTMLMessage} from 'react-intl';
class ToCheckItem extends Component {
render() {
return (
<li>
<FormattedHTMLMessage message={this.props.item.get('txt')} />
</li>
);
}
}
ToCheckItem.pro... |
packages/material-ui-icons/src/LabelRounded.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="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84l3.96-5.58c.25-.35.25-.81 0-1.... |
src/utils/domUtils.js | nickuraltsev/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
ajax/libs/qooxdoo/2.1/q.js | rcyrus/cdnjs | /** qooxdoo v.2.1 | (c) 2012 1&1 Internet AG 1und1.de | qooxdoo.org/license */
(function(){
if (!window.qx) window.qx = {};
var qx = window.qx;
if (!qx.$$environment) qx.$$environment = {};
var envinfo = {"json":true,"qx.application":"library.Application","qx.debug":false,"qx.debug.databinding":false,"qx.debug.dispose... |
src/components/OpenGraph/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import { Helmet } from 'react-helmet'
import DefaultImage from 'static/images/search.banner.jpg'
const OpenGraph = (props) => {
const url = props.url || window.location.href
const type = props.type || 'article'
const title = props.title || document.tit... |
components/calendar/index.js | dotKom/glowing-fortnight | import React from 'react';
import Calendar from './calendar';
const CalendarContainer = ({ events, error = null }) => {
return (
<section id="calendar" className="component">
<h1>
Program. <a href="https://online.ntnu.no/splash/events.ics">iCalendar</a>
</h1>
<Calendar events={events} e... |
ajax/libs/vega-lite/2.0.0-beta.9/vega-lite.js | sufuf3/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.vl = f()}})(fu... |
packages/mui-icons-material/lib/esm/NordicWalkingTwoTone.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M19 23h-1.5v-9H19v9zM7.53 14H6l-2 9h1.53l2-9zm5.97-8.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9 7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12... |
ajax/libs/react-cookie/0.2.1/react-cookie.js | schoren/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... |
Tests/Components/FullButtonTest.js | oreofish/v2exClient | // https://github.com/airbnb/enzyme/blob/master/docs/api/shallow.md
import test from 'ava'
import React from 'react'
import FullButton from '../../App/Components/FullButton'
import { shallow } from 'enzyme'
// Basic wrapper
const wrapper = shallow(<FullButton onPress={() => {}} text='hi' />)
test('component exists', ... |
blueocean-material-icons/src/js/components/svg-icons/av/call-to-action.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvCallToAction = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z"/>
</SvgIcon>
);
AvCallToAction.displayName = 'AvCallToAction';
AvCallToAction.muiName =... |
src/components/Generations.js | CharmedSatyr/game_of_life | import React from 'react';
import PropTypes from 'prop-types';
const Generations = ({ generation }) => (
<div className="generations">
<h1>
Generation: <span className="num">{generation}</span>
</h1>
</div>
);
export default Generations;
Generations.propTypes = {
generation: PropTypes.number.isRe... |
client/js/components/Main.js | bmacheski/tech-connect | 'use strict';
import React from 'react';
import Navbar from './Navbar';
import Footer from './Footer';
import { RouteHandler } from 'react-router';
import '../styles/HomeStyles.scss';
class Main extends React.Component {
render() {
return (
<div className="ui grid">
<Navbar />
<div classN... |
demo/react-0.14.3/react-starter-kit/src/decorators/withViewport.js | waterbolik/prestudy | /**
* 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, { Component } from 'react'; // eslint-disabl... |
app/scripts/GalleryTracks.js | hms-dbmi/higlass | import PropTypes from 'prop-types';
import React from 'react';
import TrackControl from './TrackControl';
// Styles
import styles from '../styles/GalleryTracks.module.scss'; // eslint-disable-line no-unused-vars
import stylesPlot from '../styles/TiledPlot.module.scss'; // eslint-disable-line no-unused-vars
import sty... |
node_modules/bower/node_modules/inquirer/node_modules/rx/dist/rx.all.js | JasonYoungtheThird/localjams | // 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
};
... |
node_modules/react-icons/fa/dashboard.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaDashboard = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m8.6 25.7q0-1.2-0.9-2t-2-0.8-2 0.8-0.8 2 0.8 2 2 0.9 2-0.9 0.9-2z m4.3-10q0-1.2-0.9-2t-2-0.8-2 0.8-0.9 2 0.9 2 2 0.9 2-0.9 0.9-2z m9.5 10.7l2.3-8.5q0.1-0.6-0.2-1.1t... |
ajax/libs/react-ios-switch/0.1.5-rc5/bundle.js | rlugojr/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : roo... |
Practicas/TicTac2/componentes/Game.js | tonkyfiero/React_Ejercicios | /*
*Importacion de Modulos
*/
import React from 'react';
import Tablero from './Tablero.js';
export default class Game extends React.Component{
constructor(props){
super(props);
this.state={
arreglo:Array(9).fill(null),
siguienteLugar:0,
isXNext:true
}
}
handleClick(i){
alert(i);
/*Matriz de m... |
ajax/libs/rxjs/2.3.14/rx.lite.compat.js | paleozogt/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
ajax/libs/yui/3.9.1/scrollview-base/scrollview-base-debug.js | gaearon/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... |
app/lib/bootstrap.js | toddmoore/SmartSparrowTest | import React from 'react';
import { Application } from './app.jsx!';
React.render(React.createElement(Application), document.querySelector('body'));
|
admin/client/App/index.js | naustudio/keystone | /**
* This is the main entry file, which we compile the main JS bundle from. It
* only contains the client side routing setup.
*/
// Needed for ES6 generators (redux-saga) to work
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory, IndexRoute... |
src/components/FieldItem.js | puneetbhakar/almabaseReact | import React from 'react'
import {SortableElement} from 'react-sortable-hoc';
const FieldItem = SortableElement((props)=>{
let nofields = false
console.log('fieldItem')
if(props.fieldItem==="No Fields Exist"){
nofields = true
}
return (
<div className={`fieldItem ${nofields ? 'noFields' : ''}`}>
... |
app/components/Toggle/index.js | gihrig/react-boilerplate | /**
*
* LocaleToggle
*
*/
import React from 'react';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = (<option>--</option>);
// If we have items, render them
if (props.values) {
content = props.values.map((value) => (
<ToggleOption key... |
index.ios.js | ericnograles/gainsville | 'use strict';
import React, { AppRegistry } from 'react-native';
import Main from './src/containers/Main/Main';
AppRegistry.registerComponent('gainsville', () => Main);
|
internals/templates/app.js | 7ruth/PadStats2 | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/encoded/static/components/static-pages/placeholders/SlideCarousel.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import Carousel from 'nuka-carousel';
export class SlideCarousel extends React.PureComponent {
static defaultProps = {
'fileLocation' : "/static/img/Metadata_structure_slides/",
'carouselPro... |
config/project.config.js | vio-lets/Larkyo-Client | /* eslint key-spacing:0 spaced-comment:0 */
const path = require('path')
const debug = require('debug')('app:config:project')
const argv = require('yargs').argv
const ip = require('ip')
debug('Creating default configuration.')
// ========================================================
// Default Configuration
// ====... |
src/components/devices/Form.js | cristianszwarc/react_crud_localStorage | import React from 'react';
import { Component } from 'react';
import { reduxForm, initialize } from 'redux-form';
import validation from './validation';
// scenes is a silly trick to avoid routes, check the file to see it how works
import {SceneLink} from '../Scenes';
class DeviceForm extends Component {
render() ... |
blueocean-material-icons/src/js/components/svg-icons/maps/restaurant.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsRestaurant = (props) => (
<SvgIcon {...props}>
<path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/>
</SvgIcon>
);
MapsRestaurant.displayName = 'M... |
src/index.js | karim88/karim88.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.hydrate(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register(... |
tests/components/Application.spec.js | hack-duke/hackduke-portal | import React from 'react'
import Application from 'components/Application'
import NavMenu from 'redux/containers/NavMenuContainer'
import Participant from 'components/Participant'
import Typeform from 'components/Participant'
import classes from 'components/Application/Application.scss'
import { shallow } from 'enzyme'... |
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js | VikingDen/actor-platform | import React from 'react';
import AvatarItem from 'components/common/AvatarItem.react';
class ContactItem extends React.Component {
static propTypes = {
contact: React.PropTypes.object,
onToggle: React.PropTypes.func
}
constructor(props) {
super(props);
this.onToggle = this.onToggle.bind(this)... |
files/babel/5.8.8/browser-polyfill.js | akkumar/jsdelivr | (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... |
components/form/RadioGroup.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
// Components
import FormElement from './FormElement';
class RadioGroup extends FormElement {
state = { value: this.props.properties.default }
/**
* UI EVENTS
* - onChange
*/
triggerChange(e) {
// Set state
this.setState({ value: e.... |
src/molecules/asides/ImageAside/index.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from 'atoms/Icon';
import Text from 'atoms/Text';
import styles from './image-aside.module.scss';
function ImageAside( props ) {
const {
className,
header,
image,
subheader,
basic,
... |
packages/material-ui-icons/src/BrokenImageSharp.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="M21 3v8.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V3h18zm-3 8.42l3 3.01V21H3v-8.58l3 2.99 4-4 4 4 4-3.99z" /></g></React.Fragment>
, 'BrokenImageSharp'... |
tgui/packages/tgui/interfaces/NtosRobotact.js | XDTM/tgstation | import { classes } from 'common/react';
import { resolveAsset } from '../assets';
import { useBackend, useSharedState } from '../backend';
import { AnimatedNumber, Box, Button, Flex, Fragment, Icon, NoticeBox, Section, Slider, ProgressBar, LabeledList, Table, Tabs } from '../components';
import { NtosWindow } from '../... |
wp-content/themes/Walleto_backk/js_ba/jquery-1.5.1.min.js | mssnaveensharma/fourchillies | /*!
* 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.
... |
src/docs/Example.js | eliaslopezgt/ps-react-eli | import React from 'react';
import PropTypes from 'prop-types';
import CodeExample from './CodeExample';
class Example extends React.Component {
constructor(props) {
super(props);
this.state = { showCode: false };
}
toggleCode = event => {
event.preventDefault();
this.setState(prevState => {
... |
app/components/SideBar.js | thenormalsquid/electronApp | // @flow
import React from 'react';
import { compose, pure } from 'recompose';
import { Link } from 'react-router-dom';
import styles from './SideBar.css';
type WrappedProps = {
};
type Props = {
filters: Array;
} & WrappedProps;
// this component is used in routes.js
export const SideBar = (props: Props) =>
... |
app/javascript/mastodon/features/hashtag_timeline/index.js | abcang/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
docs/app/Examples/elements/Loader/Variations/LoaderExampleInlineCentered.js | shengnian/shengnian-ui-react | import React from 'react'
import { Loader } from 'shengnian-ui-react'
const LoaderExampleInlineCentered = () => (
<Loader active inline='centered' />
)
export default LoaderExampleInlineCentered
|
src/DropdownMenu.js | wjb12/react-bootstrap | import React from 'react';
import keycode from 'keycode';
import classNames from 'classnames';
import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper';
import ValidComponentChildren from './utils/ValidComponentChildren';
import createChainedFunction from './utils/createChainedFunction';
class DropdownMenu e... |
packages/material-ui-icons/src/LoyaltyRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S... |
react/gameday2/components/embeds/EmbedTwitch.js | phil-lopreiato/the-blue-alliance | import React from 'react'
import { webcastPropType } from '../../utils/webcastUtils'
const EmbedTwitch = (props) => {
const channel = props.webcast.channel
const iframeSrc = `https://player.twitch.tv/?channel=${channel}`
return (
<iframe
src={iframeSrc}
frameBorder="0"
scrolling="no"
... |
ajax/libs/yui/3.17.2/event-focus/event-focus-debug.js | chinakids/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Ev... |
src/js/components/Menu.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import classnames from 'classnames';
import KeyboardAccelerators from '../utils/KeyboardAccelerators';
import { filterByFocusable }... |
analysis/rogueoutlaw/src/modules/spells/RollTheBonesEfficiency.js | yajinni/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import { formatPercentage } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import { t } from '@lingui/macro';
import Events from 'parser/core/Events';
import RollTheBonesCastT... |
src/js/components/Menu/stories/BottomControlButton.js | grommet/grommet | import React from 'react';
import { Box, Menu } from 'grommet';
const ControlBottomMenu = () => (
<Box height="medium" justify="center" align="center" pad="large">
<Menu
dropProps={{ align: { bottom: 'bottom', left: 'left' } }}
label="actions"
items={[
{ label: 'Profile', onClick: () =... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/FormText.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
children: PropTypes.node,
inline: PropTypes.bool,
tag: tagPropType,
color: PropTypes.string,
className: PropTypes.string,
cssModule... |
src/about/index.js | guokeke/image-editor | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
src/svg-icons/image/movie-filter.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMovieFilter = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 3h-3l-2-3h-2l2 3h-3l-2-3H8l2 3H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4zm-6.75 11.25L10 18l-1.25-2.75L6 14l2.7... |
index.ios.js | Innogator/VaultMobile | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class VaultMobile extends Component {
render() {
return (
<View style={styles.container}>
<T... |
actor-apps/app-web/src/app/components/SidebarSection.react.js | shenhzou654321/actor-platform | import React from 'react';
import { Styles, Tabs, Tab } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import HeaderSection from 'components/sidebar/HeaderSection.react';
import RecentSection from 'components/sidebar/RecentSection.react';
import ContactsSection from 'components/sidebar/ContactsSec... |
src/component/loggedOutState/LoginToView.js | BristolPound/cyclos-mobile-3-TownPound | import React from 'react'
import { View, Image, Dimensions } from 'react-native'
import Colors from '@Colors/colors'
import DefaultText from '../DefaultText'
import Images from '@Assets/images'
const screenWidth = Dimensions.get('window').width,
screenHeight = Dimensions.get('window').height
const styles = {
co... |
packages/cf-component-button/src/ButtonGroup.js | koddsson/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const styles = props => {
const theme = props.theme;
return {
display: theme.display,
position: theme.position,
verticalAlign: theme.verticalAlign,
whiteSpace: theme.whiteSpace
};
... |
src/svg-icons/maps/directions-railway.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsRailway = (props) => (
<SvgIcon {...props}>
<path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2... |
src/interface/others/ChangelogTab.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Changelog from 'interface/home/Changelog';
const ChangelogTab = (_, { config }) => <Changelog changelog={config.changelog} />;
ChangelogTab.contextTypes = {
config: PropTypes.object.isRequired,
};
export default ChangelogTab;
|
src/components/Pagination.js | wrleskovec/thoughtcrime | import React from 'react';
export default function Pagination(props) {
const { numOfPages, onPageClick, pageN } = props;
const pages = [];
// expert lvl algebra I
const endPageDiff = numOfPages - (pageN + 5);
const endPage = (endPageDiff > -1) ? pageN + 5 : numOfPages;
const startPageDiff = (endPage - 6 > ... |
src/components/layout/header-scrolling.js | KleeGroup/focus-components | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import applicationStore from 'focus-core/application/built-in-store';
import Scroll from '../../behaviours/scroll';
import connect from '../../behaviours/store/connect';
// Component default props.
const defaultProps = {
canDeploy: true,... |
source/client/components/MobilePayment.js | NAlexandrov/yaw | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MobilePaymentContract from './MobilePaymentContract';
import MobilePaymentSuccess from './MobilePaymentSuccess';
/**
* Класс компонента MobilePayment
*/
class MobilePayment extends Component {
/**
* Конструктор
* @param {Obje... |
docs/app/Examples/collections/Grid/Variations/GridExampleTextAlignmentMixed.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Grid, Menu } from 'semantic-ui-react'
const GridExampleTextAlignmentJustified = () => (
<Grid>
<Grid.Row columns={3}>
<Grid.Column>
<Menu fluid vertical>
<Menu.Item className='header'>Cats</Menu.Item>
</Menu>
</Grid.Column>
<Grid.Colu... |
ajax/libs/forerunnerdb/1.3.219/fdb-legacy.min.js | dannyxx001/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... |
client/apps/plugin-status/log.js | Automattic/woocommerce-connect-client | /**
* External dependencies
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
/**
* Internal dependencies
*/
import ClipboardButton from 'components/forms/clipboard-button';
import FormFieldset from 'comp... |
ajax/libs/ember-data.js/2.11.0/ember-data.prod.js | jonobr1/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2016 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.11.0
*/
var loader, define, requireModule, require, requirejs;
(fu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.