path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
components/Icon/Icon.js | scott-riley/loggins | import React, { Component } from 'react';
import invariant from 'invariant';
import styles from './Icon.css';
import icons from './icons';
export default class Icon extends Component {
constructor(props) {
super(props);
invariant(
icons[props.name],
`Icon(): No icon exists for "${props.name}"`
... |
ajax/libs/yasgui/1.1.11/yasgui.bundled.min.js | JimBobSquarePants/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.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
src/components/Photo.js | edwinwright/react-project | import React from 'react';
const Photo = ({ photo }) => (
<div>
<div>{photo.title}</div>
<img src={photo.thumbnailUrl} />
</div>
);
// TODO: Add propTypes
export default Photo
// TODO: This should be a nested route maybe
// but we could get the photo data from the store once we have Redux
|
js/jqwidgets/demos/react/app/datatable/columntemplate/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js';
class App extends React.Component {
render() {
let data = new Array();
let firstNames = ['Nancy', 'Andrew', 'Janet', 'Margaret', 'Steven', 'Michael', 'Robert', 'L... |
public/redux/wz-redux-provider.js | wazuh/wazuh-kibana-app | /*
* Wazuh app - React component for registering agents.
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* 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 2 of the License, or
* (at ... |
client/src/routes/index.js | Joysr/Koshien | import React from 'react';
import {Route, withRouter, Switch} from 'react-router-dom';
import Home from '../pages/home/containers/Home';
import Dashboard from '../pages/dashboard/containers/Dashboard';
const createRoutes = store => {
return withRouter(() => {
return (
<Switch>
<Route path="/dashboa... |
src/screens/components/SmallImage.js | jaynsw/easywrite-webapp | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import {
WEB_ROOT,
} from '../../Constants';
import '../../App.css';
import {log, LOG_ENABLED} from '../../Logger';
class SmallImage extends React.Component {
constructor(props : Object) {
super(props);
this.state = {width:'small',... |
src/Parser/Monk/Mistweaver/Modules/Talents/ChiBurst.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Wrapper from 'common/Wrapper';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
const debug = false;
... |
ajax/libs/angular-ui-select/0.9.1/select.js | sujonvidia/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.9.1 - 2014-12-03T16:41:44.798Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: ... |
packages/react-server-examples/styled-components/pages/hello-world.js | lidawang/react-server | import React from 'react';
import HelloWorld from '../components/hello-world';
export default class SimplePage {
getElements() {
return <HelloWorld/>;
}
getMetaTags() {
return [
{charset: 'utf8'},
{'http-equiv': 'x-ua-compatible', 'content': 'ie=edge'},
{name: 'viewport', content: 'width=device-width,... |
lan-steam-frontend/src/index.js | Hekku2/steam-group-dissector | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App/App';
import './index.css';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/utils/Link.js | tmsh/number-sequence-experimentor | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import invariant from 'react/lib/invariant';
import AppActions from '../actions/AppActions';
function handleClick(event) {
// If not left mouse click
if (event.button !== 0) {
return;
}
// If modified event
if (event.metaKey || e... |
ajax/libs/mobx-react/4.3.5/index.js | holtkamp/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mobx'), require('react'), require('react-dom')) :
typeof define === 'function' && define.amd ? define(['exports', 'mobx', 'react', 'react-dom'], factory) :
(factory((global.mobxReact = {}),global.mo... |
ajax/libs/highmaps/1.1.1/highmaps.src.js | hibrahimsafak/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.1.1 (2015-02-17)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi... |
src/components/video_list.js | nbreath/react-practice | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video} />
);
});
return (
<ul cl... |
web/src/js/__tests__/components/FlowView/MessagesSpec.js | mhils/mitmproxy | jest.mock('../../../components/ContentView', () => () => null)
import React from 'react'
import renderer from 'react-test-renderer'
import {ErrorView, Request, Response} from '../../../components/FlowView/Messages'
import {Provider} from 'react-redux'
import {TFlow, TStore} from '../../ducks/tutils'
import {updateEdit}... |
src/svg-icons/communication/phone.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61... |
ajax/libs/jquery.fancytree/2.8.0/jquery.fancytree-all.js | DDMAL/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.8.0
* @dat... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | vanloswang/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import classnames from 'classnames';
import VisibilitySensor from 'react-visibility-sensor';
import AvatarItem from 'components/common/AvatarItem.react';
import Text from './Text.react';
import Image from './Image.rea... |
src/components/FuelSavingsResults.spec.js | timcash/simplechat2 | import chai from 'chai';
import cheerio from 'cheerio';
import FuelSavingsResults from './FuelSavingsResults';
import React from 'react';
import ReactDOMServer from 'react/lib/ReactDOMServer';
chai.should();
/*This test file displays how to test a React component's HTML
outside of the browser. It uses Cheerio, whic... |
src/borrowing.js | Kennytian/learning-react-navigation | import React, { Component } from 'react';
import {
Text,
TouchableOpacity,
View
} from 'react-native';
import styles from './styles';
export default class Borrowing extends Component {
render() {
const {navigate} = this.props.navigation;
return (
<View style={styles.container}>
<Text sty... |
src/components/common/svg-icons/places/free-breakfast.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesFreeBreakfast = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/>
</SvgIcon>
);
PlacesFre... |
src/admin/client/modules/shared/deleteConfirmation/index.js | cezerin/cezerin | import React from 'react';
import messages from 'lib/text';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
export default class ConfirmationDialog extends React.Component {
constructor(props) {
super(props);
this.state = {
open: props.open
};
}
componentWillRecei... |
app/components/shared/FormInputLabel.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class FormInputLabel extends React.PureComponent {
static propTypes = {
label: PropTypes.node.isRequired,
children: PropTypes.node,
errors: PropTypes.bool,
required: PropTypes.bool
};
render() {
... |
src/front-end/js/components/CV/Education.js | aleksey-gonchar/iamamaze.me | import React from 'react'
import createFragment from 'react-addons-create-fragment'
import { isFetched } from '../../reducers/CVReducer.js'
import CVActions from '../../actions/CVActions.js'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import uuid from 'node-uuid'
import marked from ... |
src/components/UI/PrintBoardButton/PrintBoardButton.component.js | shayc/cboard | import React from 'react';
import PropTypes from 'prop-types';
import PrintBoardIcon from '@material-ui/icons/Print';
import IconButton from '../IconButton';
const PrintBoardButton = ({ label, disabled, onClick }) => (
<IconButton label={label} disabled={disabled} onClick={onClick}>
<PrintBoardIcon />
</IconB... |
example/App/Containers/RootContainer.js | ElekenAgency/react-native-touch-id-android | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ToastAndroid,
TouchableOpacity
} from 'react-native';
import Finger from 'react-native-touch-id-android'
import { Metrics, Colors,... |
src/universal/components/Fields/Switch/index.js | sanchitgangwar/remind-plus | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import Switch from 'material-ui/Switch';
import styles from './index.css';
class RFSwitch extends Component {
static propTypes = {
input: PropTypes.object,
label: PropTyp... |
src/svg-icons/action/favorite.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFavorite = (props) => (
<SvgIcon {...props}>
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6... |
src/renderers/shared/reconciler/__tests__/ReactMultiChildText-test.js | ianb/react | /**
* Copyright 2013-2015, 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.
*
* @emails react-co... |
packages/material-ui-icons/src/BatteryAlert.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="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 4zM13 18h-2v-2h2v2zm0... |
src/components/ToastNotifications.js | mareklibra/userportal | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { TimedToastNotification, ToastNotificationList } from 'patternfly-react'
import { setNotificationNotified } from '_/actions'
import style from './sharedStyle.css'
function normalizeType (theType) {
theType = ... |
ajax/libs/primereact/3.3.1/components/multiselect/MultiSelectHeader.js | cdnjs/cdnjs | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.MultiSelectHeader = void 0;
var _react = _interopRequireWildcard(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _InputText = require("../inputtext/InputText");
var _Checkbox = require("../... |
website/.eslintrc.js | ilkkao/mas | module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module'
},
extends: [
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:p... |
Libraries/NewAppScreen/components/DebugInstructions.js | exponent/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.
*
* @flow strict-local
* @format
*/
import type {Node} from 'react';
import {Platform, StyleSheet, Text} from 'react-native';
impo... |
src/components/Skills/SkillLevel.js | ICalvinG/icalving.github.io | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class SkillLevel extends Component {
createSkillLevelList = () => {
let skillLevelList = []
const { level } = this.props;
for (let i = 0; i < level; i++) {
skillLevelList.push(
<i
key={ Math.floor(Mat... |
client/domain/Home/Dashboard/components/DashboardItem.js | briefguo/learn-js | import React from 'react'
import { Spin } from 'antd'
import Styles from './DashboardItem.css'
export default class DashboardItem extends React.Component {
static propTypes = {
title: React.PropTypes.string,
data: React.PropTypes.object,
impactKey: React.PropTypes.string,
describe: React.PropTypes.a... |
frontend/src/app/containers/App.js | mozilla/testpilot | /* global ga */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { push as routerPush } from 'react-router-redux';
import cookies from 'js-cookie';
import Clipboard from 'clipboard';
import { getInstalled, isExperimentEnabled, isAfterCompletedDate, isInstalledLoaded } from '../... |
src/__tests__/optional-import-test.js | brigand/babel-plugin-flow-react-proptypes | const babel = require('babel-core');
const content = `
/* @flow */
import React from 'react'
import type { Values } from './values';
class MyComp extends React.Component {
props: {
values?: Values
}
render() {
return <div />;
}
}
`;
it('function-types', () => {
const res = babel.transform(content, {... |
src/app/js/icons/Search.js | AppSaloon/chrome-app_socket.io-tester | import React from 'react'
import TemplateIcon from './TemplateIcon'
const Search = ({size, color, customStyle}) =>
<TemplateIcon
size={size}
color={color}
customStyle={customStyle}
viewBox="6 6 12 12"
>
<path
d="M17.881,16.434l-2.747-2.746c0.487-0.757,0.774-1... |
src/browser/comments/__test__/CommentForm.js | nikolalosic/este-app--assignment | import {CommentForm} from '../CommentForm.react.js';
import { expect } from 'chai';
import { mount } from 'enzyme';
import React from 'react';
import { spy } from 'sinon';
import { Map } from 'immutable';
describe('Comment Form', () => {
const commentFormDefaultProps = {
addComment: ()=>{},
newCommentDetail... |
ajax/libs/forerunnerdb/1.3.554/fdb-all.js | dc-js/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... |
project/react/src/pages/index/index.js | water-wheel/generator-flash | //import base&&tool
import 'whatwg-fetch'
import 'scss_mixin/reset.scss' //reset 样式
import 'tools/polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import createHashHistory from 'history/lib/createHashHistory'
import { IndexRedirect,
Route,
Router,
Redirect } from 'react-router';
// import cont... |
src/svg-icons/av/fiber-manual-record.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberManualRecord = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="8"/>
</SvgIcon>
);
AvFiberManualRecord = pure(AvFiberManualRecord);
AvFiberManualRecord.displayName = 'AvFiberManualRecord';
... |
demos/toggles/demos/switchOn.js | isogon/styled-mdl-website | import React from 'react'
import { Switch } from 'styled-mdl'
const demo = () => <Switch defaultChecked />
const caption = 'Switch On'
const code = '<Switch defaultChecked />'
export default { demo, caption, code }
|
src/components/Home/SurahsList/index.js | hasibsahibzada/quran.com-frontend | import React from 'react';
import styled from 'styled-components';
import * as customPropTypes from 'customPropTypes';
import Link from 'react-router/lib/Link';
import { CHAPTERS_LIST_EVENTS } from '../../../events';
const Item = styled.li`
color: ${props => props.theme.brandPrimary};
&:hover {
background: #... |
src/elements/Header/HeaderSubheader.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* Headers may contain subheaders.
*/
function HeaderSubheader(props) {
const { child... |
src/svg-icons/device/location-disabled.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationDisabled = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5... |
examples/huge-apps/routes/Course/components/Nav.js | jwaltonmedia/react-router | import React from 'react'
import { Link } from 'react-router'
const styles = {}
styles.nav = {
borderBottom: '1px solid #aaa'
}
styles.link = {
display: 'inline-block',
padding: 10,
textDecoration: 'none'
}
styles.activeLink = {
...styles.link,
color: 'red'
}
class Nav extends React.Component {
rende... |
ajax/libs/yui/3.16.0/scrollview-base/scrollview-base-debug.js | abhi901abhi/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
*... |
packages/terra-icon/lib/icon/IconClock.js | windse7en/terra-core | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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]; } } }... |
src/svg-icons/av/call-to-action.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let 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 = pure(AvCallToAction);... |
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | cdlewis/react-native | import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
FlatList,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends Component {
s... |
node_modules/node_modules/react-smooth/demo/GroupAnimation/app.js | SerendpityZOEY/Solr-Search-React-UI | import React, { Component } from 'react';
import ReactDom from 'react-dom';
import update from 'react/lib/update';
import { AnimateGroup, configSpring } from 'react-smooth';
class GroupAnimation extends Component {
state = {
list: [{
text: 'first...',
}, {
text: 'second...',
}, {
text: ... |
examples/ReactNativeDemo/__tests__/index.android.js | rayshih/fun-react | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/svg-icons/notification/do-not-disturb-off.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbOff = (props) => (
<SvgIcon {...props}>
<path d="M17 11v2h-1.46l4.68 4.68C21.34 16.07 22 14.11 22 12c0-5.52-4.48-10-10-10-2.11 0-4.07.66-5.68 1.78L13.54 11H17zM2.27 2.27L1 3.54l2.78 2.78... |
components/Header.js | lesionsmusculars/lesionsmusculars.github.io | import React from 'react'
import Head from 'next/head'
import Link from 'next/link'
import NProgress from 'nprogress'
import Router from 'next/router'
Router.onRouteChangeStart = (url) => {
console.log(`Loading: ${url}`)
NProgress.start()
}
Router.onRouteChangeComplete = () => NProgress.done()
Router.onRouteChange... |
ajax/libs/react/15.0.0/react-dom-server.min.js | sreym/cdnjs | /**
* ReactDOMServer v15.0.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... |
examples/real-world/index.js | mjasinski5/redux | import 'babel-core/polyfill';
import React from 'react';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from './store/configureStore';
import App from './containers/App';
import UserPage fro... |
fixtures/ssr/server/render.js | AlmeroSteyn/react | import React from 'react';
import {renderToString} from 'react-dom/server';
import App from '../src/components/App';
let assets;
if (process.env.NODE_ENV === 'development') {
// Use the bundle from create-react-app's server in development mode.
assets = {
'main.js': '/static/js/bundle.js',
'main.css': '',... |
redux-saga-jaysoo/src/counter/Container.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react'
import { bindActionCreators } from 'redux'
import { createStructuredSelector } from 'reselect'
import { connect } from 'react-redux'
import { getModel } from './selectors'
import * as actions from './actions'
export const Component = ({ model, inc, dec }) => (
<div>
<button style={{ wi... |
ajax/libs/ag-grid/4.2.6/lib/utils.js | pvnr0082t/cdnjs | /**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v4.2.6
* @link http://www.ag-grid.com/
* @license MIT
*/
var FUNCTION_STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg;
var FUNCTION_ARGUMENT_NAMES = /([^\s,]+)/g;
var Utils = (function () {
... |
src/browser/components/Radio.js | TheoMer/este | // @flow
import type { CheckboxProps } from './Checkbox';
import Checkbox from './Checkbox';
import React from 'react';
export type RadioProps = CheckboxProps & {
selected: any,
};
const defaultSvgIconChecked = (
<svg viewBox="7 9 70 70">
<path
d="M45,24c11.579,0,21,9.42,21,21c0,11.579-9.421,21-21,21c-1... |
modules/gui/src/widget/buttonGroup.js | openforis/sepal | import {Widget} from './widget'
import {compose} from 'compose'
import {withContext} from 'context'
import PropTypes from 'prop-types'
import React from 'react'
import withForwardedRef from 'ref'
const Context = React.createContext()
export const withButtonGroupContext = withContext(Context, 'buttonGroupContext')
co... |
client/src/components/settings/ResetModal.js | jonathanihm/freeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { ButtonSpacer } from '../helpers';
import { Button, Modal } from '@freecodecamp/react-bootstrap';
const propTypes = {
onHide: PropTypes.func.isRequired,
reset: PropTypes.func.isRequired,
show: PropTypes.bool
};
function ResetModal(props) {
... |
src/components/ui/FormInput.js | OlivierVillequey/hackathon | /**
* Text Input
*
<FormInput></FormInput>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { FormInput } from 'react-native-elements';
// Consts and Libs
import { AppColors, AppFonts } ... |
examples/editable-data/src/App.js | react-tools/react-table | import React from 'react'
import styled from 'styled-components'
import { useTable, usePagination } from 'react-table'
import makeData from './makeData'
const Styles = styled.div`
padding: 1rem;
table {
border-spacing: 0;
border: 1px solid black;
tr {
:last-child {
td {
borde... |
src/modules/sabaki.js | yishn/Goban | import fs from 'fs'
import EventEmitter from 'events'
import {basename, extname} from 'path'
import {remote} from 'electron'
import {h} from 'preact'
import {v4 as uuid} from 'uuid'
import Board from '@sabaki/go-board'
import deadstones from '@sabaki/deadstones'
import gtp from '@sabaki/gtp'
import sgf from '@sabaki/s... |
ajax/libs/yui/3.13.0/event-focus/event-focus-coverage.js | JimBobSquarePants/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.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":0,"14":0,"15":0,"... |
src/Stepper/StepButton.spec.js | ichiohta/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {spy} from 'sinon';
import StepButton from './StepButton';
import StepLabel from './StepLabel';
import getMuiTheme from '../styles/getMuiTheme';
describe('<StepButton />', () => {
const muiTheme = ge... |
app/components/pipeline/teams/Index/chooser.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import shallowCompare from 'react-addons-shallow-compare';
import AutocompleteDialog from 'app/components/shared/Autocomplete/Dialog';
import Button from 'app/components/shared/Button';
import FlashesStore from 'ap... |
test/client/components/form/button.js | jedireza/aqua | 'use strict';
const Button = require('../../../../client/components/form/button.jsx');
const Code = require('code');
const Lab = require('lab');
const React = require('react');
const ReactTestUtils = require('react-dom/test-utils');
const lab = exports.lab = Lab.script();
lab.experiment('Button', () => {
lab.t... |
src/components/NavigationBar/styled.js | jesusGalan/fretboardApp | import React from 'react'
import styled from 'styled-components'
import {Link} from 'react-router-dom'
import theme from 'config/Theme'
import AppBar from 'material-ui/AppBar'
import MaterialIcon from 'components/common/MaterialIcon'
import FlatButton from 'material-ui/FlatButton'
import MenuItem from 'material-ui/Men... |
js/components/segment/SegmentHeader.js | bengaara/simbapp |
import React, { Component } from 'react';
import { StatusBar } from 'react-native';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body, Segment } from 'native-base';
import ... |
_site/assets/js/vendor/jquery-1.9.1.min.js | parkison/benandmarjorie | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
node_modules/nyc/node_modules/babel-traverse/lib/path/lib/hoister.js | tripodsan/cordova-osx | "use strict";
exports.__esModule = true;
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _babel... |
examples/huge-apps/components/App.js | clloyd/react-router | /*globals COURSES:true */
import React from 'react'
import Dashboard from './Dashboard'
import GlobalNav from './GlobalNav'
class App extends React.Component {
render() {
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={COURSES... |
Users/UserControl.js | nyc-fiery-skippers-2017/AwesomeProject | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Container,
TextInput,
Label,
Text,
View,
Button,
} from 'react-native';
import LoginScreen from './Login.js';
import RegisterScreen from './Register.js';
import { StackNavigator, TabNavigator } from 'react-navigation';
expo... |
template/admin/node_modules/rx/dist/rx.compat.js | glg-enterprises/Cms | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
frontend-app/welcome-app/header/welcome-app-bar.js | easybird/easyblog | import React from 'react';
import NavBarListElement from './navbar-list-element.js';
const LOGO_URL = "images/logo/easybird.png";
const WelcomeAppBar = ({navBarElements}) => {
const listElements = navBarElements.map(navBar =>
<NavBarListElement
key = {navBar.id}
listElement={navBar... |
web/src/configuration/sources/DeleteSourceButton.js | bolddp/pixerva | import React, { Component } from 'react';
export default class DeleteSourceButton extends Component {
render() {
return (
this.props.isVisible &&
<div className="dropdown">
<button className="btn btn-sm btn-outline-primary" type="button" data-toggle="dropdown">
Delete
</butt... |
app/assets/js/modules/inleggo/libs/highcharts/highcharts.src.js | inleggo/inleggo.io.offline | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.2.5 (2016-05-06)
*
* (c) 2009-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
(function (root, factory) {
if (typeof module === 'object' && module.exports) {
module.exports =... |
src/index.js | hongkheng/hdb-resale | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Redirect, IndexRedirect, browserHistory } from 'react-router';
import App from './components/App';
import Charts from './components/Charts';
import Maps from './components/Maps';
import About from './components/About';
import {ChartSe... |
client/react/entry/g/G.js | ed1d1a8d/macweb | import {mount} from 'react-mounter';
import React from 'react';
import Navbar from '../../Navbar.js';
let G = React.createClass({
render() {
return (
<div className="entryG container-fluid">
<Navbar />
<h2 className="text-center">Gentry</h2>
<h4 className="text-center">A place of la... |
fannie/batches/EndCapper/src/Shelf.js | FranklinCoop/IS4C |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DropTarget } from 'react-dnd';
import Item from './Item.js';
var moveItem = function(id, pos) {
};
const shelfTarget = {
canDrop(props) {
return true;
},
drop(props, monitor) {
// move the item
... |
src/components/nodes/NodeList.js | ahonn/v2exRN | import React, { Component } from 'react';
import {
Text,
View,
ListView,
StyleSheet
} from 'react-native';
class NodeList extends Component {
constructor(props) {
super(props);
let ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
this.state = {
ds: ds,
};
}
co... |
packages/material-ui-icons/src/AddBoxSharp.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="M21 3H3v18h18V3zm-4 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z" /></React.Fragment>
, 'AddBoxSharp');
|
vendor/jquery/jquery.js | vrodrigues18/vrodrigues18.github.io | /*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
(function( global, factory ) {
if ( typeof module =... |
ajax/libs/analytics.js/1.5.9/analytics.js | marxo/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
... |
lib/components/RemixDebugger/index.js | gmtcreators/atom-solidity | 'use babel'
// Copyright 2018 Etheratom Authors
// This file is part of Etheratom.
// Etheratom 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 your option) any la... |
ajax/libs/forerunnerdb/1.3.53/fdb-core+persist.min.js | keicheng/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/NewThread.js | jvallexm/message-board | import React from 'react';
export default class NewThread extends React.Component{
constructor(props)
{
super(props)
this.state = {
thread: {
_id: undefined,
name: "",
text: "",
delete_password: "",
replies: [],
bumped_on: 10,
posted_on: "1",
... |
src/svg-icons/notification/drive-eta.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDriveEta = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ... |
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/src/main/js-surface-react.js | mcjazzyfunky/js-surface | import adaptReactLikeRenderEngine from './adaption/adaptReactLikeRenderEngine';
import React from 'react';
import ReactDOM from 'react-dom';
function reactMount(content, targetNode) {
ReactDOM.render(content, targetNode);
return () => ReactDOM.unmountComponentAtNode(targetNode);
}
const {
createElement,... |
ajax/libs/6to5/3.3.12/browser-polyfill.js | icco/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... |
docs/public/static/examples/v43.0.0/tutorial/sharing-web-workaround.js | exponentjs/exponent | import React from 'react';
import { Image, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import * as ImagePicker from 'expo-image-picker';
import * as Sharing from 'expo-sharing';
import uploadToAnonymousFilesAsync from 'anonymous-files';
export default function App() {
let [selectedImage... |
js/jqwidgets/jqwidgets-react/react_jqxnavbar.js | luissancheza/sice | /*
jQWidgets v5.3.2 (2017-Sep)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxNavBar extends React.Component {
componentDidMount() {
let options = this.manageAtt... |
src/client/components/PageTitle.js | pgryko/meeting | import React from 'react'
import {Link, IndexLink, History} from 'react-router'
export default class PageTitle extends React.Component{
constructor(props, context, index){
super(props);
}
render() {
console.log(this.props);
return (
<div>
{/* <!-- Page Title -->*/}
{/* <!--Ad... |
src/svg-icons/action/lock-outline.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLockOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c... |
ajax/libs/vuex/2.2.0/vuex.esm.js | Piicksarn/cdnjs | /**
* vuex v2.2.0
* (c) 2017 Evan You
* @license MIT
*/
var applyMixin = function (Vue) {
var version = Number(Vue.version.split('.')[0]);
if (version >= 2) {
var usesInit = Vue.config._lifecycleHooks.indexOf('init') > -1;
Vue.mixin(usesInit ? { init: vuexInit } : { beforeCreate: vuexInit });
} else ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.