path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
modules/pages/client/components/FaqGeneral.component.js | Trustroots/trustroots | import React from 'react';
import Faq from '@/modules/pages/client/components/Faq.component.js';
import { Trans, useTranslation } from 'react-i18next';
export default function FaqGeneral() {
const { t } = useTranslation('pages');
return (
<Faq category="general">
<div
className="faq-question"
... |
src/containers/Main.js | paulhoughton/remember | import React from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { calcDistances } from '../helpers/location';
import * as MainActions from '../reducers/main';
import LocationList from '../components/LocationList';
import... |
webpack/base.config.js | storeo/scaffolding | const WebpackNotifierPlugin = require('webpack-notifier');
module.exports = {
commons: {
module: {
loaders: [
{
test: /\.js$/,
loaders: ['react-hot'],
}, {
test: /\.js$/,
loader: 'babel',
query: {
cacheDirectory: '/tmp/',
... |
pages/_document.js | grraft/next-boilerplate | import React from 'react'
import Document, { Head, Main, NextScript } from 'next/document'
import stylesheet from '../styles/global.scss'
export default class MyDocument extends Document {
static getInitialProps ({ renderPage }) {
const {html, head} = renderPage()
return { html, head }
}
render () {
... |
app/javascript/mastodon/components/__tests__/autosuggest_emoji-test.js | h3zjp/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import AutosuggestEmoji from '../autosuggest_emoji';
describe('<AutosuggestEmoji />', () => {
it('renders native emoji', () => {
const emoji = {
native: '💙',
colons: ':foobar:',
};
const component = renderer.create(<Autos... |
src/app/components/List/List.js | Eric-Vandenberg/react-redux-weatherapp.io | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import moment from 'moment';
import _ from 'lodash';
import { List, ListItem, ListSubHeader, ListDivider } from 'react-toolbox/lib/list';
import ItemComponent from '../Item/Item';
import theme from './... |
ajax/libs/F2/1.3.3/f2.min.js | chinakids/cdnjs | /*! F2 - v1.3.3 - 04-07-2014 - See below for copyright and license */
!function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obt... |
client/modules/App/components/DevTools.js | mraq1234/mod11 | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
ajax/libs/react-slick/0.5.0/react-slick.js | drewfreyling/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["Slider"] = factory(... |
ajax/libs/react-intl/1.2.2/react-intl.min.js | dakshshah96/cdnjs | (function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)o.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d,e){this.id=a,this.useOrdinal=b,this.o... |
src/svg-icons/device/settings-system-daydream.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSettingsSystemDaydream = (props) => (
<SvgIcon {...props}>
<path d="M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1.... |
public/js/components/admin/users/userHome.react.js | IsuruDilhan/Coupley | /**
* Created by Isuru 1 on 25/01/2016.
*/
import React from 'react';
import GridList from 'material-ui/lib/grid-list/grid-list';
import GridTile from 'material-ui/lib/grid-list/grid-tile';
import FlatButton from 'material-ui/lib/flat-button';
//import StarBorder from 'material-ui/svg-icons/toggle/star-border';
impo... |
ajax/libs/jquery/1.8.3/jquery.js | me4502/cdnjs | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
src/Th.js | gkaran/react-bootstrap-tabular | import React from 'react';
import SortIndicator from './SortIndicator';
import { SORT_ASCENDING, SORT_DESCENDING } from './utils/data-helpers';
class Th extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
e.preventDefault()... |
src/svg-icons/image/exposure-neg-1.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureNeg1 = (props) => (
<SvgIcon {...props}>
<path d="M4 11v2h8v-2H4zm15 7h-2V7.38L14 8.4V6.7L18.7 5h.3v13z"/>
</SvgIcon>
);
ImageExposureNeg1 = pure(ImageExposureNeg1);
ImageExposureNeg1.displayName... |
reactrenderfunc.js | cmccallattu/projects | var React = require('react');
var ReactDOM = require('react-dom');
var QuoteMaker = React.createClass({
render: function () {
return (
<blockquote>
<p>
What is important now is to recover our senses.
</p>
<cite>
<a target="_blank"
href="http://bit.ly... |
src/components/Tea.js | MichailSmith/varietea | import React from 'react';
import { TimerContainer } from '../containers';
import { SteepCountSelector, SteepInstructions, TimerButton } from './';
const Tea = ({ tea, onStartClick, onPauseClick, onResetClick, timerRunning, steepCount, onChangeSteepCount }) => {
return(
<div style={{textAlign: 'center', color:'#... |
src/components/lists/stories/index.js | timludikar/component-library | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import { OrderedList, UnorderedList, ListItem } from '../index';
storiesOf('component.Lists', module)
.add('Unordered List', () => (
<UnorderedList>
<ListItem>Hello</ListItem>
<ListItem>World</ListItem>
</UnorderedList>
)... |
ajax/libs/vkui/4.19.0/cssm/hooks/useExternRef.min.js | cdnjs/cdnjs | import*as React from"react";import{setRef}from"../lib/utils";function useExternRef(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=React.useRef();return React.useMemo(function(){return{get current(){return n.current},set current(r){n.current=r,t.forEach(function(e){return setRef(r,e)})}}... |
shared/app/Demo/AsyncAboutRoute/AboutRoute.js | pebie/react-universally-node-config | import React from 'react';
import Helmet from 'react-helmet';
function AboutRoute() {
return (
<div style={{ textAlign: 'center' }}>
<Helmet>
<title>About</title>
</Helmet>
<p>
Produced with{' '}
<span aria-label="hearth" role="img">
❤️
</span>
<... |
ajax/libs/babel-core/4.6.6/browser-polyfill.js | dada0423/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/js/components/cart/app-cart-item.js | SteveHoggNZ/react-flux-shopping-cart | import React from 'react';
import CartButton from './app-cart-button';
import AppActions from '../../actions/app-actions';
export default (props) => {
return (
<tr>
<td>
<CartButton
txt="x"
handler={ AppActions.removeItem.bind(null, props.item) }
/>
</td>
<td... |
src/docs/Markdown.js | FredBoat/fredboat.com | import React, { Component } from 'react';
import Loading from 'react-loading-animation';
import marked from 'marked';
import hljs from 'highlight.js';
import "./css/Markdown.css";
import "highlight.js/styles/monokai-sublime.css";
import MobileHeader from "../common/MobileHeader";
import Footer from "../common/Footer";
... |
src/Pages/App.js | AnnaSu/todolist-pwa-demo-react | import React, { Component } from 'react';
import Header from '../Component/Header.jsx';
export default class App extends Component {
render() {
return (
<div>
{ /* 應用程式最外層的元件 */}
{ /* 把固定的版面放這裡 */}
<Header />
{ this.props.children }
... |
app/containers/LanguageProvider/index.js | prudhvisays/season | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-18/theme/context.js | Brandon-J-Campbell/codemash | import React from 'react';
export default React.createContext();
|
app/javascript/mastodon/features/compose/components/upload_progress.js | unarist/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadProgress extends React.PureComponent {
static propTypes = {
active: PropTypes... |
src/containers/__tests__/views/login-view-test.js | banovotz/WatchBug2 | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import FormView from '@containers/auth/Form/FormView';
// Login prop expects a promise
const mockPromise = new Promise(resolve => resolve());... |
app/components/List/index.js | bsherrill480/website-asd-init | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
cmd/elwinator/src/components/NewLabelView.js | 13scoobie/choices | import React from 'react';
import { Link } from 'react-router';
import NavSection from './NavSection';
import { namespaceURL } from '../urls';
import NewLabel from '../connectors/NewLabel';
const NewLabelView = ({ params }) => {
return (
<div className="container">
<div className="row"><h1>Create a new ex... |
pootle/static/js/admin/components/User/UserForm.js | translate/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import FormElement from 'compo... |
ajax/libs/yui/3.10.2/event-focus/event-focus-debug.js | RobLoach/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
src/react/JSONTree/JSONNumberNode.js | blackxored/redux-devtools | import React from 'react';
import reactMixin from 'react-mixin';
import { SquashClickEventMixin } from './mixins';
import hexToRgb from '../../utils/hexToRgb';
const styles = {
base: {
paddingTop: 3,
paddingBottom: 3,
paddingRight: 0,
marginLeft: 14
},
label: {
display: 'inline-block',
ma... |
pages/Settings.js | Jack3113/edtBordeaux | import React from 'react';
import { Dimensions, Keyboard, Platform, Text, TextInput, View, Picker } from 'react-native';
import PopupDialog, { DialogButton, DialogTitle, FadeAnimation } from 'react-native-popup-dialog';
import { connect } from 'react-redux';
import { SafeAreaView } from 'react-navigation';
import { se... |
node_modules/babel-core/node_modules/babel-runtime/node_modules/core-js/client/shim.js | yeshdev1/Everydays-project | /**
* core-js 2.4.1
* 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... |
dpxdt/server/static/release-config/src/ConfigSettings.js | bslatkin/dpxdt | /* @flow */
import React, { Component } from 'react';
import { Button, Collapse, ControlLabel } from 'react-bootstrap';
import FormGroupControl from './FormGroupControl.js';
type ConfigSettingsProps = {
buildID: string,
fields: Object,
};
type ConfigSettingsState = {
resourcesToIgnoreOpen: boolean,
};
export ... |
ajax/libs/redux-form/4.1.12/redux-form.js | emmy41124/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/client.js | dbertella/react-hot-reload-starter | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, IndexRoute, Route } from 'react-router';
import {
About,
App,
Home
} from 'containers';
ReactDOM.render(
<Router>
<Route path="/" component={App}>
<IndexRoute component={Home} />
<Route path="/about" component={About}... |
app/javascript/mastodon/features/community_timeline/index.js | summoners-riftodon/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
ajax/libs/jquery-footable/0.1.0/js/footable.js | wendal/cdnjs | /*!
* FooTable - Awesome Responsive Tables
* http://themergency.com/footable
*
* Requires jQuery - http://jquery.com/
*
* Copyright 2012 Steven Usher & Brad Vincent
* Released under the MIT license
* You are free to use FooTable in commercial projects as long as this copyright header is left intact.
*
* Date... |
ajax/libs/react-native-web/0.16.0/exports/LayoutAnimation/index.min.js | cdnjs/cdnjs | import LayoutAnimation from"../../vendor/react-native/LayoutAnimation";export default LayoutAnimation; |
teletobit/src/components/SinglePost/SinglePost.js | edenpark/teletobit | import React from 'react';
import Container from 'components/Common/Container';
import { Grid } from 'semantic-ui-react';
const SinglePost = ({children}) => {
return(
<Container className="main single">
<Grid columns="equal">
{children}
</Grid>
</Container>
... |
node_modules/native-base/__tests__/backward/Header.ios.js | tausifmuzaffar/bisApp | import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import { Header } from './../../src/backward/Widgets/Header';
import { Button } from './../../src/backward/Widgets/Button';
import { Icon } from './../../src/backward/Widgets/Icon';
import { Title } from './../../src/backward/... |
src/index.js | thomasdondorf/poke-level-calc | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import 'bootstrap/dist/css/bootstrap.css';
window.$ = window.jQuery=require('jquery');
window.Tether=require('tether');
require('bootstrap/dist/js/bootstrap');
import configureStore from './store/configureStore';
im... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | Arukas/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... |
lib/jquery-1.8.0.min.js | mahmed0715/swagger-ui | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
client/components/Matrix/Matrix.js | Elektro1776/Project_3 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Quadrants from './Quadrants';
import styles from './matrix.css';
class Matrix extends Component {
state = {}
render() {
return (
<div>
<Quadrants />
</div>
);
}
}
Matrix.propTypes = {
userStories: ... |
src/components/application.js | erik-sn/mslt | if (process.env.BROWSER) {
require('../sass/style.scss');
require('../sass/main.scss');
require('../sass/entry.scss');
}
import '../sass/articles.scss';
import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import axios from 'axios';
import marked from 'marked';
im... |
example/index.ios.js | netceteragroup/react-native-aol1 | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import { AdTechView } from 'react-native-adtech';
export default class example extends Component {
render() {... |
packages/material-ui-icons/src/TrafficTwoTone.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="M9 19h6V5H9v14zm3-13c.83 0 1.5.67 1.5 1.5S12.83 9 12 9s-1.5-.67-1.5-1.5S11.17 6 12 6zm0 4.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.... |
src/components/AirRandsButton/AirRandsButton.js | BankaiMikeH/HackWSU2017_AirRands | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
ajax/libs/boardgame-io/0.49.10/boardgameio.es.js | cdnjs/cdnjs | import { nanoid } from 'nanoid/non-secure';
import { applyMiddleware, compose, createStore } from 'redux';
import produce from 'immer';
import isPlainObject from 'lodash.isplainobject';
import { applyPatch, createPatch } from 'rfc6902';
import { stringify, parse } from 'flatted';
import 'setimmediate';
import React fro... |
blueprints/view/files/__test__/views/__name__View.spec.js | danieljwest/ExamGenerator | import React from 'react'
describe('(View) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
loggit-todomvc/loggit/renderers/naive_react_renderer.js | kevinrobinson/loggit | import React from 'react';
import Timer from '../timer';
// Starting super naive, no shouldComponentUpdate or any
// optimization.
export default class NaiveReactRenderer {
constructor(reactClass, el, loggit) {
this.reactClass = reactClass;
this.el = el;
this.loggit = loggit;
this.timer = new Timer... |
src/svg-icons/social/mood-bad.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMoodBad = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.... |
ajax/libs/material-ui/4.12.4/esm/Hidden/Hidden.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import HiddenJs from"./HiddenJs";import HiddenCss from"./HiddenCss";function Hidden(o){var e=o.implementation,p=... |
examples/js/sort/sort-hook-table.js | pvoznyuk/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
prod... |
src/parser/paladin/retribution/modules/features/Checklist/Component.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist';
import Rule from 'parser/shared/modules/features/Checklist/Rule';
import Requirement from 'parser/shared/modules... |
docs/app/Examples/elements/Input/Variations/InputExampleTransparent.js | clemensw/stardust | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleTransparent = () => (
<Input transparent placeholder='Search...' />
)
export default InputExampleTransparent
|
client/gatsby-ssr.js | otavioarc/freeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import headComponents from './src/head';
import { createStore } from './src/redux/createStore';
import GuideNavigationContextProvider from './src/contexts/GuideNavigationContext';
const store = createStore();
expo... |
ajax/libs/forerunnerdb/1.3.677/fdb-legacy.js | dakshshah96/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/jsx/shared/SpaceLeaderField.js | sfu/canvas-spaces | import React from 'react';
import PropTypes from 'prop-types';
import ICSelect from '../components/ICSelect';
const SpaceLeaderField = props => {
const options = props.users.map(user => {
return { value: user.id, name: user.name };
});
return (
<ICSelect
name="leader_id"
label="Leader"
... |
test/components/menu.spec.js | marcelobohn/react-app | // node
import path from 'path';
// vendors
import React from 'react';
// project
import Menu from 'components/menu';
import { shallow } from 'enzyme';
import { assert, expect } from 'chai';
const sandbox = sinon.sandbox.create();
describe('Testing', () => {
afterEach(() => {
sandbox.verifyAndRestore();
... |
packages/mui-icons-material/lib/WifiTetheringErrorTwoTone.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
examples/basic/app.js | revolunet/react-multiselect-revolunet | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import ReactMultiselect from '../../lib/index';
let defaultSelection = ['LDN', 'PAR'];
class App extends Component {
constructor(props) {
super(props);
this.state = {
selection: defaultSelection
}
}
onChange = selec... |
src/interface/report/Results/Character/Race.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
class Race extends React.PureComponent {
static propTypes = {
race: PropTypes.any.isRequired,
};
render() {
const race = this.props.race;
return (
<>
<div className="row">
<div className="col-md-12">
<... |
egghead.io/react_fundamentals/lessons/09-lifecycle-mounting-usage/App.js | andrisazens/learning_react | // https://jsbin.com/geveqe/edit?js,output
// Problematic in JSBin
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
constructor(){
super();
this.state = { val: 0 };
this.update = this.update.bind(this);
}
update(){
this.setState({val: this.state.val... |
src/server.js | OSDLabs/swd | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'isomorphic-fetch';
import path from 'path';
imp... |
src/index.js | sujkh85/react-router-webpack-babel-redux | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router,
//hashHistory,
browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './redux/store/confi... |
pootle/static/js/auth/components/SocialAuthError.js | garthylou/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { PureRen... |
examples/tree-view/index.js | doerme/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import Node from './containers/Node'
import configureStore from './store/configureStore'
import generateTree from './generateTree'
const tree = generateTree()
const store = configureStore(tree)
... |
client/app/scripts/components/node-details/node-details-relatives.js | alban/scope | import React from 'react';
import { Map as makeMap } from 'immutable';
import { NODE_DETAILS_DATA_ROWS_DEFAULT_LIMIT } from '../../constants/limits';
import NodeDetailsRelativesLink from './node-details-relatives-link';
export default class NodeDetailsRelatives extends React.Component {
constructor(props, context) ... |
static/Health Services (Dataset)_files/jquery.min.js | adamamyl/ckanpages | (function(window,undefined){var document=window.document,navigator=window.navigator,location=window.location;var jQuery=(function(){var jQuery=function(selector,context){return new jQuery.fn.init(selector,context,rootjQuery);},_jQuery=window.jQuery,_$=window.$,rootjQuery,quickExpr=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*... |
src/index.js | guzmonne/gux-d3-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './pages/App.js';
import './_styles/index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
client/containers/users/register.js | maodouio/meteor-react-redux-base | import React from 'react';
import {useDeps} from 'react-simple-di';
import {composeAll, withTracker} from 'react-komposer-plus';
import Register from '../../components/users/register';
function composer({context}, onData) {
onData(null, {
loggedIn: !!context.Meteor.user()
});
}
const depsToProps = (context, ... |
ajax/libs/material-ui/4.9.3/esm/test-utils/createRender.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import { render as enzymeRender } from 'enzyme';
import React from 'react';
import { RenderContext } from './RenderMode';
/**
* Generate a render to string function.
* ... |
ajax/libs/jquery.fancytree/2.5.1-0/jquery.fancytree.min.js | wenzhixin/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.5.0
* @dat... |
app/javascript/mastodon/features/notifications/components/column_settings.js | d6rkaiz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import SettingToggle from './setting_toggle';
export default class ColumnSettings extends Reac... |
src/components/viewer3d/viewer3d.js | cvdlab/react-planner | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import * as Three from 'three';
import { parseData, updateScene } from './scene-creator';
import { disposeScene } from './three-memory-cleaner';
import OrbitControls from './libs/orbit-controls';
import diff ... |
demo/src/Introduction.js | ev-ui/ev-ui | import React from 'react'
import {render} from 'react-dom'
import styled from 'styled-components'
import {Drawer,Loading} from 'ev-ui'
const Root=styled.div`
background:#fff;
display:flex;
flex-direction:column;
align-items:center;
font-weight:100;
.header{
font-size:20px;
paddi... |
Samples/AzureAD.RedisCacheUserProfile/AzureAD.RedisCacheUserProfile/Scripts/jquery-1.10.2.min.js | 8v060htwyc/PnP | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
src/svg-icons/av/music-video.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMusicVideo = (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 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0... |
docs/client/components/shared/TwitterButton/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
export default class TwitterButton extends Component {
componentDidMount() {
const twitterscript = document.createElement('script');
twitterscript.src = '//platform.twitter.com/widgets.js';
twitterscript.id = 'twitter-wjs';
twitterscript.onload = this.render... |
src/RadioButtonCatalog.js | material-components/material-components-web-catalog | import React, { Component } from 'react';
import classnames from 'classnames';
import ComponentCatalogPanel from './ComponentCatalogPanel.js';
import {withFormField} from './FormField';
import {MDCRadio} from '@material/radio/index';
import './styles/RadioButtonCatalog.scss';
const RadioButtonCatalog = () => {
retu... |
src/Modal.js | Terminux/react-bootstrap |
/* eslint-disable react/prop-types */
import classNames from 'classnames';
import React from 'react';
import ReactDOM from 'react-dom';
import tbsUtils, { bsClass, bsSizes } from './utils/bootstrapUtils';
import { Sizes } from './styleMaps';
import getScrollbarSize from 'dom-helpers/util/scrollbarSize';
import canUse... |
ajax/libs/react/0.13.0-rc1/react-with-addons.min.js | Showfom/cdnjs | /**
* React (with addons) v0.13.0-rc1
*
* 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 ... |
ajax/libs/material-ui/4.9.4/Hidden/HiddenCss.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
var _defin... |
src/routes/notFound/index.js | Tori1810/Task3 | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
__tests__/index.ios.js | Joel-Raju/SpaceExplorer | 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 />
);
});
|
app/components/NavTabs.js | oroszms/nhshd17 | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import { hashHistory } from 'react-router';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
};
export default class NavTabs extends React.Component {
constructor(props) {
... |
src/components/Share.js | gribnoysup/diy-dog-search | import React from 'react'
import styled from 'styled-components'
import {ShareButtons, generateShareIcon} from 'react-share'
import {FlexContainer} from './common/Flex'
const {FacebookShareButton, TwitterShareButton, VKShareButton} = ShareButtons
const FacebookIcon = generateShareIcon('facebook')
const TwitterIcon =... |
ajax/libs/react-modal/0.0.2/react-modal.min.js | emmy41124/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactModal=e()}}(function(){return function e(t,n,r){... |
node_modules/react-icons/md/directions-transit.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdDirectionsTransit = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30 18.4v-8.4h-8.4v8.4h8.4z m-2.5 10c1.4 0 2.5-1.1 2.5-2.5s-1.1-2.5-2.5-2.5-2.5 1.1-2.5 2.5 1.1 2.5 2.5 2.5z m-9.1-10v-8.4h-8.4v8.4h8.4z m-5.9 10c1.4 0 2.5-... |
samples/form/jquery-1.9.0.min.js | asual/jquery-address | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
app/javascript/flavours/glitch/features/compose/components/character_counter.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
resources/react/components/parts/Counter.js | fetus-hina/stat.ink | import Impl from './counter/Counter';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchCounter } from '../../actions/counter';
class Counter extends Component {
constructor (...args) {
super(...args);
this.state = {
timer... |
Samples/Office365Api.Overview/Office365Api.WebFormsDemo/Scripts/jquery-1.10.2.min.js | gautekramvik/PnP | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
fixtures/packaging/systemjs-builder/prod/input.js | aickin/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
ajax/libs/6to5/3.3.2/browser-polyfill.js | rteasdale/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... |
js/src/modals/VaultLock/vaultLock.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 lat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.