path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/modules/auth/components/PWDSignupForm/PWDSignupForm.js | cltk/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Field, reduxForm, SubmissionError } from 'redux-form';
import '../PWDLoginForm/PWDLoginForm.css';
// actions
import { toggleAuthModal, setUser } from '../../actions';
const wrapSubmit = signup => async (values, dispatch) => {
try {
const use... |
server/boot/a-react.js | mubassirhayat/freecodecamp | import React from 'react';
import Router from 'react-router';
import Fetchr from 'fetchr';
import Location from 'react-router/lib/Location';
import debugFactory from 'debug';
import { app$ } from '../../common/app';
import { RenderToString } from 'thundercats-react';
const debug = debugFactory('freecc:react-server');
... |
CollectionView/index.ios1.js | HarrisLee/React-Native-Express | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
ActivityIndicator,
Image
} from 'react-native';
var API_KEY = '7waqfqbprs7pajbz28mqf6vz';
var API_URL = 'http://api.ro... |
src/parser/druid/feral/modules/features/checklist/Module.js | FaideWW/WoWAnalyzer | import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist2/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist2/Preparati... |
webpack.config.js | heartpoints-org/heartpoints.org | const webpack = require("webpack");
const path = require('path');
const localDir = d => path.join(__dirname, d)
module.exports = {
entry: "./src/frontEnd",
output: {
filename: "bundle.js",
path: path.join(__dirname, "./dist"),
publicPath: '/'
},
mode: 'development',
// Ena... |
GreenLeafProjectSite/src/main/webapp/resources/scripts/JQuery.js | icotting/The-GreenLeaf-Project | /*!
* jQuery JavaScript Library v1.4.1
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/parser/demonhunter/havoc/CONFIG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Mamtooth, Yajinni } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If some... |
src/client/story_list.js | xieyunzi/hacker-menu | import React from 'react'
import Story from './story.js'
import _ from 'lodash'
export default class StoryList extends React.Component {
render () {
var onUrlClick = this.props.onUrlClick
var onMarkAsRead = this.props.onMarkAsRead
var storyNodes = _.map(this.props.stories, function (story, index) {
... |
ajax/libs/material-ui/4.9.14/Menu/Menu.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _int... |
Magistrate/client/components/mainMenu.js | Pondidum/Magistrate | import React from 'react'
import { connect } from 'react-redux'
import { routeActions } from 'react-router-redux'
import PlateSizeSelector from './PlateSizeSelector'
const mapDispatchToProps = (dispatch) => {
return {
navigate: (area) => {
dispatch(routeActions.push("/" + area + "/"));
}
}
}
const... |
test/specs/views/Comment/CommentAvatar-test.js | Semantic-Org/Semantic-UI-React | import faker from 'faker'
import _ from 'lodash'
import React from 'react'
import { htmlImageProps } from 'src/lib'
import CommentAvatar from 'src/views/Comment/CommentAvatar'
import * as common from 'test/specs/commonTests'
describe('CommentAvatar', () => {
common.isConformant(CommentAvatar)
describe('src', () ... |
src/docs/examples/TextInputBEM/ExampleError.js | patchygreen/ps-react-patchygreen | import React from 'react';
import TextInputBEM from "ps-react/TextInputBEM";
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInputBEM
htmlId='example-required'
label='First Name'
name='firstname'
onChang... |
src/Parser/Core/Modules/Items/Legion/TombOfSargeras/TomeOfUnravelingSanity.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { calculateSecondaryStatDefault } from 'common/stats';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import Abilities from 'Parser/Core/Modules/Abilities';
im... |
src/svg-icons/image/nature-people.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNaturePeople = (props) => (
<SvgIcon {...props}>
<path d="M22.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H6v-3h1v-4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v4h1v5h16v-2h-3v-3.88c3.47-.41 ... |
components/Welcome.js | RomainInnocent/tpdevops | /**
* Created by Adrien on 30/06/2017.
*/
import React from 'react';
const style = {
textAlign: 'center'
}
const Welcome = (props) => (
<div style={style}>
<h1>{props.title}</h1>
<p>{props.msg}</p>
</div>
);
export default Welcome; |
src/svg-icons/action/announcement.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAnnouncement = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/>
</SvgIcon>
);
ActionAnnouncement = pu... |
ajax/libs/yasgui/1.1.4/yasgui.min.js | x112358/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/render-react.js | abramz/gulp-react-render | /*! Gulp Render React | MIT License */
import gutil from 'gulp-util';
import through from 'through2';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
/**
* Requires a file containing a React component and create an instance of it
* @param {String} filePath file path to the React component... |
docs/src/app/components/pages/components/IconMenu/Page.js | kasra-co/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconMenuReadmeText from './README';
import IconMenuExampleSimple from './... |
demos/buttons/demos/fab-colored.js | isogon/styled-mdl-website | import React from 'react'
import { Button, Icon } from 'styled-mdl'
const demo = () => (
<Button fab primary>
<Icon name="add" />
</Button>
)
const caption = 'Primary Colored Fab'
const code = `
<Button fab primary>
<Icon name="add" />
</Button>
`
export default { demo, caption, code }
|
app/components/map/info-banner/index.js | Vizzuality/forest-watcher | // @flow
import type { Alert } from 'types/alerts.types';
import type { MapItemFeatureProperties } from 'types/common.types';
import type { ViewStyle } from 'types/reactElementStyles.types';
import React, { Component } from 'react';
import { Image, Platform, Text, TouchableHighlight, TouchableNativeFeedback, View } fr... |
src/router.js | IssaTan1990/antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Router } from 'dva/router'
import App from './routes/app'
const registerModel = (app, model) => {
if (!(app._models.filter(m => m.namespace === model.namespace).length === 1)) {
app.model(model)
}
}
const Routers = function ({ history, app ... |
_site/webgl-globe/polymer-globe/polymer/polymer-all/web-animations-js/test/coverage/escodegen/test/3rdparty/jquery-1.6.4.js | passiweinberger/passiweinberger.github.io | /*!
* jQuery JavaScript Library v1.6.4
* 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.
... |
app/node_modules/fbjs/node_modules/core-js/client/core.js | tpucci/jira-scrumblize | /**
* core-js 1.2.7
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
RNTester/js/RNTesterApp.android.js | cdlewis/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
ajax/libs/material-ui/5.0.0-alpha.15/modern/styles/useTheme.js | cdnjs/cdnjs | import { useTheme as useThemeWithoutDefault } from '@material-ui/styles';
import React from 'react';
import defaultTheme from './defaultTheme';
export default function useTheme() {
const theme = useThemeWithoutDefault() || defaultTheme;
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line r... |
pages/_document.js | tgrecojs/tgrecojs-static | // @flow
import React from 'react';
import Document, { Head, Main, NextScript } from 'next/document';
import { ServerStyleSheet } from 'styled-components';
import styledNormalize from 'styled-normalize';
export default class MyDocument extends Document {
render() {
const sheet = new ServerStyleSheet();
cons... |
docs/src/modules/components/AppContent.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from '@material-ui/core/styles';
const styles = theme => ({
root: {
paddingTop: 80,
flex: '1 1 100%',
maxWidth: '100%',
margin: '0 auto',
paddingLeft: theme.spacing.unit * 2,
... |
src/js/components/help/mender-hub.js | michaelatmender/gui | import React from 'react';
import hubLogo from '../../../assets/img/mender-hub-logo.png';
import { Launch as LaunchIcon } from '@mui/icons-material';
const MenderHub = () => (
<div>
<h3>Find technical help at Mender Hub</h3>
<a href="https://hub.mender.io" target="_blank" rel="noopener noreferrer">
<sp... |
src/svg-icons/editor/format-bold.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatBold = (props) => (
<SvgIcon {...props}>
<path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1... |
docs/pages/material/customization/theme-components.js | oliviertassinari/material-ui | import * as React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import {
demos,
docs,
demoComponents,
} from 'docs/data/material/customization/theme-components/theme-components.md?@mui/markdown';
export default function Page() {
return <MarkdownDocs demos={demos} docs={docs... |
ajax/libs/material-ui/5.0.0-alpha.35/node/RadioGroup/RadioGroup.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/help... |
src/components/auth/require_auth.js | RaulEscobarRivas/client | import React, { Component } from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authentication extends Component {
static contextTypes = {
router: React.PropTypes.object
}
componentWillMount() {
if (!this.props.aut... |
ajax/libs/cyclejs-core/0.2.0/cycle.min.js | jonobr1/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... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | pinfort/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
ajax/libs/react-virtualized/6.2.0/react-virtualized.min.js | keicheng/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("react"),require("react-dom")):e.ReactVirtualized=t(e.React,e.ReactDO... |
node_modules/react-bootstrap/amd/lib/Grid.js | gitoneman/react-soc | define(["exports", "module", "react", "classnames"], function (exports, module, _react, _classnames) {
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var... |
ajax/libs/vkui/4.25.2/components/SplitCol/SplitCol.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/extends";import _objectSpread from"@babel/runtime/helpers/objectSpread2";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["children","width","maxWidth","minWidth","spaced","animate","fixed","style"];import{createScopedElement... |
client/layout.js | YocketList/YocketList | import React from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';
/**
* Layout is the react-router component that defines the structure of the page.
* this.props.children changes based on the current route.
*/
class Layout extends React.Component {
render() {
return (
<div... |
src/index.js | jthoms1/react-ionic-conference-app | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import conferenceApp from './reducers';
import App from './App';
import { loadState, saveState } from './utils/loadState';
import * as locations from './data/locations.json';
import... |
src/components/PicIndex.js | BinaryCool/LaceShop | import React from 'react';
import { connect } from 'react-redux';
import { Modal, Button } from 'react-bootstrap';
import Overbooking from './Overbooking.js';
import { ajaxRequest, changHandle ,getPics} from '../actions';
import { browserHistory,router,hashHistory, } from 'react-router';
import ShowPic from './Sh... |
demo/js/tooltip.js | bebeanan/monkey-ui | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import MonkeyUi from '../../lib/monkeyui.js';
const {Tooltip,Button} = MonkeyUi;
export default class Toolt extends Component {
render() {
return (
<div>
<Tooltip placement="topLeft" title="Prompt Text... |
src/components/Common/DropDown.js | MattMcFarland/tw-client | import React from 'react';
export default class DropDown extends React.Component {
constructor(props) {
super(props);
this.state = {
expanded: false
};
}
static displayName = "DropDown";
toggle = () => {
this.setState({expanded: !this.state.expanded});
};
render () {
var options... |
src/svg-icons/notification/disc-full.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDiscFull = (props) => (
<SvgIcon {...props}>
<path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>
... |
spec/javascripts/jsx/blueprint_courses/components/AssociationsTableSpec.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
third_party/blink/perf_tests/speedometer/resources/todomvc/architecture-examples/react-redux/src/components/MainSection.spec.js | nwjs/chromium.src | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import MainSection from './MainSection'
import TodoItem from './TodoItem'
import Footer from './Footer'
import { SHOW_ALL, SHOW_COMPLETED } from '../constants/TodoFilters'
const setup = propOverrides => {
const props = Object.assign({
todo... |
src/__tests__/components/item.js | Kilix/selectless | /* global it, expect, jest */
import React from 'react'
import {mount} from 'enzyme'
import toJson from 'enzyme-to-json'
import {Item} from '../../components/'
it('Item', () => {
const fn = jest.fn()
const ctx = {onSelectValue: fn}
const tree = mount(<Item data={{value: 'paris', label: 'Paris'}} />, {
cont... |
client/ui/header.js | RSG-Group/website | // Get React and Head to populate <head />
import React from 'react'
import Head from 'next/head'
// Import material-ui and all icons.
import {
AppBar, Toolbar, Typography as Text, IconButton, Button, Drawer, List, ListItem, ListItemText
} from '@material-ui/core'
import GitHubLogo from './github-logo'
import { stri... |
src/svg-icons/av/branding-watermark.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (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 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
test/AlertSpec.js | yuche/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Alert from '../src/Alert';
describe('Alert', function () {
it('Should output a alert with message', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Alert>
<strong>Message</strong>
</Alert... |
src/mui/field/ReferenceManyField.spec.js | epwqice/admin-on-rest-old-man | import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import { ReferenceManyField } from './ReferenceManyField';
import TextField from './TextField';
import SingleFieldList from '../list/SingleFieldList';
describe('<ReferenceManyField />', () => {
it('should render a loading ind... |
src/client/auth/login.js | r3dDoX/geekplanet | import React from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { SubmissionError } from 'redux-form';
import withRouter from 'react-router-dom/withRouter';
import Redirect from 'react-rout... |
__tests__/index.ios.js | YeisonGomez/RNAmanda | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
docs/src/app/components/pages/components/Tabs/ExampleIcon.js | ruifortes/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import FontIcon from 'material-ui/FontIcon';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
const TabsExampleIcon = () => (
<Tabs>
<Tab icon={<FontIcon className="muidocs-icon-action-home" />} />
<Tab icon=... |
ajax/libs/react-virtualized/4.0.2/react-virtualized.js | ahocevar/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("react")) : "function" == typeof define && define.amd ? define([ "react" ], factory) : "object" == typeof exports ? exports["react-virtualized"] = factory(require("react")) : root["react-virtualized... |
ajax/libs/mobx-react/2.0.1/index.min.js | sashberd/cdnjs | !function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&c.set(t,e),m.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(e,t){var n=e[t],o=d[t];e[t]=function(){n&&n.apply(this,argume... |
stories/selecty/index.js | QuietOmen/ui-elements | import { storiesOf } from '@storybook/react';
import React from 'react'
|
ajax/libs/extjs/3.4.1-1/ext-all.js | iamJoeTaylor/cdnjs | /*
This file is part of Ext JS 3.4
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... |
src/modules/CommentList/index.js | Kikoku/react-transform-boilerplate | import React from 'react';
import Comment from '../Comment';
const CommentList = ({messages}) => (
<ul>
{
messages.map((message, i) => (
<Comment user={message.user} msg={message.msg} key={i} />
))
}
</ul>
)
export default CommentList;
|
src/plugins/help-text-placement.js | zapier/formatic | // # help-text-placement plugin
/*
The help-text-placement plugin lets you control whether each input's help
text is placed before or after the input itself.
The valid `placement` options are 'before' and 'after'
*/
'use strict';
import React from 'react';
export default placement => (/* config */) => {
return {... |
src/svg-icons/action/settings-phone.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPhone = (props) => (
<SvgIcon {...props}>
<path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-... |
src/app/modals/selectOils.js | webcoding/reactui-starter | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import Griddle from 'griddle-react';
import cx from 'classnames';
import ga from 'react-ga';
import oilsStore from 'stores/oils';
import GriddlePager from 'components/griddlePager';
import Spinner from 'components/spinner';
let recipeOil... |
frontend/modules/recipe/components/IngredientButtons.js | rustymyers/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import Spinner from 'react-spinkit';
import { DropdownButton, MenuItem } from 'react-bootstrap'
import {
injectIntl,
defineMessages,
} from 'react-intl'
import RecipeListStatusConstants from '../constants/RecipeListStatusConstants'
const IngredientB... |
files/vue/2.0.8/vue.runtime.common.js | Asaf-S/jsdelivr | /*!
* Vue.js v2.0.7
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
'use strict';
/* */
/**
* Convert a value to a string that is actually rendered.
*/
function _toString (val) {
return val == null
? ''
: typeof val === 'object'
? JSON.stringify(val, null, 2)
: String(val)
}... |
packages/cf-component-card/test/CardDrawers.js | jroyal/cf-ui | import React from 'react';
import { felaSnapshot } from 'cf-style-provider';
import {
CardDrawers,
CardToolbar,
CardToolbarLink
} from '../../cf-component-card/src/index';
test('should render when given all the props', () => {
const snapshot = felaSnapshot(
<CardDrawers
onClick={() => {}}
activ... |
src/Parser/Druid/Feral/Modules/ComboPoints/ComboPointDetails.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Tab from 'Main/Tab';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import { formatPercentage } from 'common/format';
import ComboPointBreakdown from './ComboPointBreakdown';
import ComboPointTracker from './ComboPointT... |
src/app/__tests__/App-test.js | preeminence/react-redux-skeleton | import React from 'react';
import App from '../AppContainer';
import TestUtils from 'react-dom/test-utils';
import { store, history } from '../../store';
describe('App', () => {
it('renders', () => {
const element = TestUtils.renderIntoDocument(<App store={store} history={history} />);
expect(element).toBeT... |
ajax/libs/redux-form/6.0.0-alpha.3/redux-form.js | extend1994/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["ReduxForm"] = facto... |
src/components/adopters/comments/CommentsHeader.js | pisgrupo9/ash_web | import React from 'react';
const CommentsHeader = () => {
return (
<div className="section-title-comments">
<p>COMENTARIOS</p>
</div>
);
};
export default CommentsHeader;
|
src/widgets/Avatar.js | Sekhmet/busy | import React from 'react';
import { formatter } from 'steem';
import './Avatar.scss';
const Avatar = ({
username,
reputation,
xs,
sm,
md,
lg,
xl,
className = '',
}) => {
let size = '';
let s = '';
size = (xs) ? 'Avatar--xs' : size;
size = (sm) ? 'Avatar--sm' : size;
size = (md) ? 'Avatar--md... |
app/javascript/mastodon/features/favourites/index.js | TootCat/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourites } from '../../actions/interactions';
import { ScrollContainer } fr... |
ajax/libs/react-virtualized/8.0.0-rc.2/react-virtualized.js | emmy41124/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("React"), require("React.addons.shallowCompare"), require("ReactDOM")) : "function" == typeof define && define.amd ? define([ "React", "React.addons.shallowCompare", "ReactDOM" ], factory) : "object... |
packages/material-ui-icons/src/PersonPinRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l2.29 2.29c.39.39 1.02.39 1.41 0L15 20h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 ... |
src/components/Layout.js | holderdeord/hdo-blog | import React from 'react';
import PropTypes from 'prop-types';
import '../styles/hdo.scss';
import '../styles/syntax.scss'; // FIXME: Replace with remark thing
import Footer from './Footer';
import Header from './Header';
import siteMetadata from '../siteMetadata';
const Layout = ({ children, location }) => (
<div... |
packages/spacebars-tests/package.js | meteor-velocity/meteor | Package.describe({
summary: "Additional tests for Spacebars",
version: '1.0.4'
});
// These tests are in a separate package to avoid a circular dependency
// between the `spacebars` and `templating` packages.
Package.onTest(function (api) {
api.use([
'es5-shim',
'underscore',
'spacebars',
'tinyte... |
examples/todomvc/index.js | chibicode/redux-devtools | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
jquery-ui-1.10.3/tests/jquery-1.7.js | GeorgeYan/Drag_Drop | /*!
* jQuery JavaScript Library v1.7
* 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/components/WidgetSettings/WidgetSettings.js | rocket-internet-berlin/RocketDashboard | /* eslint-disable jsx-a11y/no-static-element-interactions */
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ReactModal from 'react-modal';
import WidgetListItems from './WidgetListItems';
import { closeWidgetModal } from '../../actions';
import './WidgetSet... |
.eslintrc.js | lycophron/lycophron | module.exports = {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
... |
example/__tests__/index.ios.js | ttdung11t2/react-native-password-strength-checker | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
assets/DataTables/extras/ColVis/media/docs/media/js/jquery.js | jordiromero/codeigniter | /*!
* 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/common/animations/Animation.js | husa/e-clock | import React from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
const TRANSITION_DURATION = 500;
const Animation = ({ name, timeout, children }) => (
<ReactCSSTransitionGroup
transitionName={name}
transitionAppear={true}
transitionAppearTimeout={timeout[0] || TRANSITI... |
src/index.js | stephengao666/react-gallery | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/GalleryByReactApp';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app')); |
packages/material-ui-icons/src/TitleSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M5 4v3h5.5v12h3V7H19V4H5z" /></React.Fragment>
, 'TitleSharp');
|
ajax/libs/vega/3.0.0-beta.26/vega.js | extend1994/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.vega = global.vega || {})));
}(this, (function (exports) { 'use strict';
var version = "3.0.0-beta.26";
fun... |
dva/src/components/Users/Users.js | alcat2008/web-demo | import React from 'react';
import { connect } from 'dva';
import { Table, Pagination, Popconfirm, Button } from 'antd';
import { routerRedux } from 'dva/router';
import styles from './Users.css';
import { PAGE_SIZE } from '../../constants';
import UserModal from './UserModal';
function Users({ dispatch, list: dataSour... |
docs/pages/SelectField/index.js | collegepulse/material-react-components | import Grid, {GridItem} from '../../../src/Grid';
import Page from '../Page';
import React from 'react';
import SelectField from '../../../src/SelectField';
import Switch from '../../../src/Switch';
import TextField from '../../../src/TextField';
class SelectFieldDocs extends React.Component {
constructor(props) {
... |
app/desktop/Loaders/JsonConfig/index.js | christianalfoni/webpack-bin | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import styles from '../styles.css';
import currentLoader from '../../../computed/currentLoader';
@Cerebral({
loader: currentLoader
})
class JsonConfig extends React.Component {
render() {
const loader = this.props.loader;
... |
commands/admin/recent_msg.js | ddlr/WishBot | const util = require('util')
, moment = require('moment')
, utils = require('../../utils/utils.js')
, MESSAGES_DEFAULT = 5
, MESSAGES_MAX = 10
, FILE_NAME = 'recent_msg';
module.exports =
{ usage:
`Get **recent messages of a channel** or **information on a server**.
If passed with both server ID ... |
packages/react-router-native/index.android.js | DelvarWorld/react-router | import React from 'react'
import { AppRegistry, StyleSheet, Text, View } from 'react-native'
import { NativeRouter, Route, Link, DeepLinking, BackButton, Prompt } from './main'
export default class ReactRouterNative extends React.Component {
render() {
return (
<NativeRouter>
<View style={styles.c... |
js/jquery-1.5.1.min.js | ekojs/Ujian-Online | /*!
* 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/index.js | Rub21/to-fix | 'use strict';
window.React = require('react');
var Reflux = require('reflux');
var qs = require('querystring');
var Router = require('react-router');
var Routes = require('./routes');
var config = require('./config');
var auth = require('./mixins/auth');
var Raven = require('raven-js');
var userStore = require('./s... |
pollard/components/SongInput.js | spencerliechty/pollard | import React, { Component } from 'react';
import classNames from 'classnames';
import mergeStyles from '../lib/mergeStyles';
export default class SongInput extends Component {
handleChange(event) {
this.props.updateSong({
idx: this.props.songIdx,
key: this.props.label,
val: event.target.value... |
ajax/libs/forerunnerdb/1.3.585/fdb-all.min.js | BitsyCode/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... |
examples/official-storybook/stories/hooks.stories.js | kadirahq/react-storybook | import React from 'react';
import { useEffect, useRef, useState } from '@storybook/client-api';
export default {
title: 'Core/Hooks',
};
export const Checkbox = () => {
const [on, setOn] = useState(false);
return (
<label>
<input type="checkbox" checked={on} onChange={(e) => setOn(e.target.checked)} /... |
components/ArticleTitle.js | feedreaderco/app | import React from 'react';
import styled from 'styled-components/native';
import articleTitle from '../styles/articleTitle';
const Title = styled.Text`${articleTitle}`;
const Loading = styled.View`
background-color: grey;
`;
export default ({ article }) => {
if (!article) {
return <Loading />;
}
return <T... |
ajax/libs/react-widgets/3.4.4/react-widgets-simple-number.js | BenjaminVanRyseghem/cdnjs | /*! (c) 2016 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check ... |
node_modules/material-ui/svg-icons/action/input.js | jotamaggi/react-calendar-app | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
app/javascript/flavours/glitch/features/hashtag_timeline/components/column_settings.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import AsyncSelect from 'react-select/async';
import { NonceProvider } from 'react-sele... |
src/components/pages/votingPage/statusBlocks.js | bshevchenko/ChronoMint | import React from 'react'
import globalStyles from '../../../styles'
export const ongoingStatusBlock = <div style={globalStyles.item.status.block}>
<div style={globalStyles.item.status.orange}>
ONGOING<br />
</div>
</div>
export const closedStatusBlock = <div style={globalStyles.item.status.block}>
<div sty... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.