path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
test/BadgeSpec.js | tannewt/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Badge from '../src/Badge';
describe('Badge', function () {
it('Should output a badge with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Badge>
<strong>Content</strong>
</Badge... |
app/javascript/mastodon/features/notifications/components/notification.js | dunn/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage, defineMessages } from 'react-intl';
import { HotKeys } from 'react-hotkeys';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { me ... |
sites/all/modules/ctools/js/dependent.js | Roma48/homework_drupal | /**
* @file
* Provides dependent visibility for form items in CTools' ajax forms.
*
* To your $form item definition add:
* - '#process' => array('ctools_process_dependency'),
* - '#dependency' => array('id-of-form-item' => array(list, of, values, that,
* make, this, item, show),
*
* Special considerations:
... |
app/javascript/mastodon/features/account_timeline/components/moved_note.js | koba-lab/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import AvatarOverlay from '../../../components/avatar_overlay';
import DisplayNam... |
examples/github-explorer/containers/app.js | hetmann/sass-redux-router | import React from 'react';
import { connect } from 'react-redux';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import Login from '../components/login';
import RepoList from './repos-list';
const AppTheme = () => getMuiTheme({
palette: {... |
node_modules/react-select/examples/src/components/Creatable.js | ivanhristov92/bookingCalendar | import React from 'react';
import Select from 'react-select';
var CreatableDemo = React.createClass({
displayName: 'CreatableDemo',
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string
},
getInitialState () {
return {
multi: true,
multiValue: [],
options: [
{ value: 'R', labe... |
src/svg-icons/image/colorize.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageColorize = (props) => (
<SvgIcon {...props}>
<path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3... |
app/javascript/mastodon/features/ui/index.js | Nyoho/mastodon | import classNames from 'classnames';
import React from 'react';
import { HotKeys } from 'react-hotkeys';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Redirect, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import NotificationsContai... |
react-router/components/Application.js | jeffreywescott/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import Nav from './Nav';
import Timestamp from './Timestamp';
import ApplicationStore from '../stores/ApplicationStore';
import {connectToStores, provideContex... |
src/parser/druid/guardian/modules/azeritetraits/MasterfulInstincts.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import { calculateAzeriteEffects } from 'common/stats';
import { formatPercentage } from 'common/format';
import StatTrack... |
src/alert/AlertMessage.spec.js | MeXaaR/mx-react-toaster | import React from 'react'
import renderer from 'react-test-renderer'
import {shallow} from 'enzyme'
import AlertMessage from './AlertMessage'
jest.useFakeTimers()
describe('AlertMessage', () => {
test('should render the given message', () => {
const props = {
message: 'Some important message'
}
c... |
ajax/libs/react-native-web/0.15.1/exports/KeyboardAvoidingView/index.js | cdnjs/cdnjs | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
src/components/main.js | Boughtmanatee5/webpack-example | import React from 'react';
import {RouteHandler, Link} from 'react-router';
class Main extends React.Component {
render() {
return (
<div>
<h1>Example</h1>
<Link to='example'>Go to the Example page...</Link>
<RouteHandler/>
</div>
);
}
}
export default Main;
|
app/slackbridge/server/SlackAPI.js | VoiSmart/Rocket.Chat | import { HTTP } from 'meteor/http';
export class SlackAPI {
constructor(apiToken) {
this.apiToken = apiToken;
}
getChannels(cursor = null) {
let channels = [];
const response = HTTP.get('https://slack.com/api/conversations.list', {
params: {
token: this.apiToken,
types: 'public_channel',
excl... |
ajax/libs/react-native-web/0.12.0/exports/Switch/index.js | cdnjs/cdnjs | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
App/Components/FullButton.story.js | GulfCoastCodeCamp/CodeCampApp | import React from 'react'
import { storiesOf } from '@storybook/react-native'
import FullButton from './FullButton'
storiesOf('FullButton')
.add('Default', () => (
<FullButton
text='A simple button'
/>
))
.add('Custom Style', () => (
<FullButton
text='Style Me Up!'
styles={{ backgr... |
src/static/scripts/react-map-gl/src/index.js | ecocitybuilders/urbinsight | // Copyright (c) 2015 Uber Technologies, Inc.
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, ... |
src/atoms/UserAlert/index.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Sticky from 'react-stickynode';
import Icon from 'atoms/Icon';
import Layout from 'atoms/Layout';
import Col from 'atoms/Layout/Col';
import colors from 'atoms/Color/colors.scss';
import styles from './user_alert... |
ajax/libs/analytics.js/2.2.2/analytics.js | jemmy655/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
ajax/libs/react/18.0.0-rc.0-next-9d4e8e84f-20220207/cjs/react-jsx-runtime.profiling.min.js | cdnjs/cdnjs | /**
* @license React
* react-jsx-runtime.profiling.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';require("object-assign");var f=require("react"),g=60103;exp... |
nailgun/static/views/cluster_page_tabs/nodes_tab_screens/edit_node_interfaces_screen.js | huntxu/fuel-web | /*
* Copyright 2015 Mirantis, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
examples/simple/index.js | tychotatitscheff/poseidon-ui | /* eslint-disable react/react-in-jsx-scope */
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/renderers/dom/client/ReactEventListener.js | andrewsokolov/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.
*
* @providesModule ... |
src/core/fetch/fetch.server.js | shafdanny/zikr-project-dev | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import fetch, { Request, Headers, Response } from 'node-fe... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleItemContent.js | clemensw/stardust | import React from 'react'
import { Dropdown, Header } from 'semantic-ui-react'
const options = [
{ text: 'Mobile',
value: 1,
content: <Header icon='mobile' content='Mobile' subheader='The smallest size' /> },
{ text: 'Tablet',
value: 2,
content: <Header icon='tablet' content='Tablet' subheader='The... |
src/components/RoutineTimerListItem.js | snsavage/timer-react | import React, { Component } from 'react';
import { displayTime } from './../utils/displayTime';
export class RoutineTimerListItem extends Component {
handleClick = (event) => {
const { routine, loadCurrentRoutine } = this.props;
loadCurrentRoutine(routine.id);
}
render() {
const { routine } = this.p... |
components/link.js | sgmap/inspire |
import React from 'react'
import PropTypes from 'prop-types'
import NextLink from 'next/link'
import {translate} from 'react-i18next'
const Link = ({
href,
as,
i18n: {language},
tReady, // Destructured so that it’s not included in ...props
t, // Destructured so that it’s not included in ...props
...prop... |
ajax/libs/yui/3.14.0/scrollview-base/scrollview-base.js | agraebe/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
packages/material-ui-icons/src/CheckRounded.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="M9 16.17L5.53 12.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.9959.9959 ... |
src/views/NotFoundView.js | tomek-f/tomekf | import React from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router-dom';
import styles from './NotFoundView.module.scss';
const propTypes = {
/** Location from React Router */
location: PropTypes.shape().isRequired,
};
const NotFoundView = ({ location }) => (
<div className... |
src/routes.js | AndrewKishino/react-playground | import React from 'react';
import Router from 'react-routing/src/Router';
import fetch from './core/fetch';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage';
import LoginPage from './components/LoginPage';
import RegisterPage from... |
node_modules/react-icons/fa/spotify.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaSpotify = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.2 27q0-0.7-0.7-1.1-4.3-2.6-10-2.6-3 0-6.4 0.8-0.9 0.2-0.9 1.1 0 0.5 0.3 0.8t0.8 0.3q0.1 0 0.8-0.2 2.9-0.6 5.4-0.6 5.1 0 8.9 2.3 0.4 0.3 0.7 0.3 0.4 0 0.7-0.3t0.4-... |
source/server/renderError.js | halt-hammerzeit/react-isomorphic-render | import { html } from 'print-error'
// Outputs an error page
export default function renderError(error, options)
{
// If the error is caught here it means that `catch`
// (error handler parameter) didn't resolve it
// (or threw it)
// Show error stack trace in development mode for easier debugging
if (process.env... |
tnoodle-ui/src/App.js | jfly/tnoodle | import React, { Component } from 'react';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import { Provider } from 'react-redux';
import { Route, Switch } from 'react-router';
import createHistory fro... |
src/renderers/shared/fiber/ReactFiberContext.js | joecritch/react | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... |
src/routes.js | HunorMarton/drag-and-drop | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/home/HomePage';
import AboutPage from './components/about/AboutPage';
import NotFoundPage from './components/NotFoundPage';
const rootPath = process.env.NODE_ENV === 'pro... |
assets/jqwidgets/demos/react/app/toolbar/toolevents/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxToolBar from '../../../jqwidgets-react/react_jqxtoolbar.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
import JqxNumberInput from '../../..... |
src/home/technology.component.js | CanopyTax/single-spa-examples | import React from 'react';
export default class Technology extends React.Component {
render() {
const {imgSrc, cardTitle, href, explanation, imgBackgroundColor} = this.props;
const imgStyles = {
height: '150px',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
};
... |
client/app/components/header.js | sirbrillig/voyageur-js | import React from 'react';
import { Link } from 'react-router';
import noop from 'lodash.noop';
export default React.createClass( {
propTypes: {
errors: React.PropTypes.array,
onClearNotices: React.PropTypes.func,
onLogOut: React.PropTypes.func,
isAdmin: React.PropTypes.bool,
},
getDefaultProps(... |
src/scenes/home/scholarship/scholarships.js | sethbergman/operationcode_frontend | import React, { Component } from 'react';
import { getScholarships } from 'shared/utils/apiHelper';
import Section from 'shared/components/section/section';
import Preview from './preview/preview.js';
import styles from './scholarships.css';
class Scholarships extends Component {
state = {
scholarships: null
}... |
app/javascript/mastodon/features/ui/components/column_header.js | clworld/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
example/WelcomeScreen.js | q6112345/react-native-location-picker | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
import reactNativeEmitter from './reactNativeEmitter';
import processColor from 'processColor';
export default class WelcomeScreen extends Component {
constructor(props) {
super(props);
... |
test/article.js | woshisbb43/coinMessageWechat | import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import WeUI from '../src/index';
const { Article } = WeUI;
describe('<ActionSheet></ActionSheet>', ()=> {
[undefined, null, '', 'custom_class'].map((clazz)=> {
describe('<Article className="${clazz}"></Article>', ()=... |
oerpub/js/jquery-ui-1.9.0.custom-aloha.js | oerpub/Aloha-Editor | define( 'jqueryui', [ 'jquery' ], function( jQuery ) {
/*! jQuery UI - v1.9.0 - 2012-10-18
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sorta... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | aovertus/goc_2016_front | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
ajax/libs/rxjs/2.2.10/rx.lite.js | TerryMooreII/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'u... |
fields/components/DateInput.js | ligson/keystone | import moment from 'moment';
import DayPicker from 'react-day-picker';
import React from 'react';
import Popout from '../../admin/src/components/Popout';
import { FormInput } from 'elemental';
function isSameDay(d1, d2) {
d1.setHours(0, 0, 0, 0);
d2.setHours(0, 0, 0, 0);
return d1.getTime() === d2.getTime();
}
m... |
packages/material-ui-icons/src/Close.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'Close');
|
webui/src/components/Profile/View.js | acetcom/cellwire | import PropTypes from 'prop-types';
import styled from 'styled-components';
import oc from 'open-color';
import { media } from 'helpers/style-utils';
import EditIcon from 'react-icons/lib/md/edit';
import DeleteIcon from 'react-icons/lib/md/delete';
import CloseIcon from 'react-icons/lib/md/close';
import SecurityIc... |
src/client/app/forms/project.properties.form.js | mapkiwiz/sectorisation | import React from 'react';
import LinkedStateMixin from 'react-addons-linked-state-mixin';
import template from './project.properties.form.rt';
import {saveProject} from '../shared/project';
let ProjectPropertiesForm = React.createClass({
mixins: [ LinkedStateMixin ],
contextTypes: {
store: React.PropTypes.o... |
app/components/Menu.js | qgadrian/enkodi-desktop | import React, { Component } from 'react';
import { Link, browserHistory } from 'react-router';
class Menu extends Component {
render() {
return (
<div className="main_menu">
<button className="back" onClick={browserHistory.goBack}>
<i className="menu_back" />
</button>
<L... |
packages/material-ui-icons/src/DataUsageSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-... |
examples/with-stencil/packages/web-app/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import { applyPolyfills, defineCustomElements } from 'test-component/loader'
export default class MyApp extends App {
componentDidMount() {
applyPolyfills().then(() => {
defineCustomElements(window)
})
}
render() {
const { Component, pagePr... |
ajax/libs/F2/1.3.2/f2.no-bootstrap.js | bollwyvl/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
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 obtaining a copy of this software and associated d... |
src/components/Menus/menus.js | Mesamo/dva-admin | import React from 'react'
import { Link } from 'dva/router'
import { Menu, Icon } from 'antd'
const { SubMenu } = Menu
const getMenus = (menuArray, currentLanguage, parentPath = '/') => {
return menuArray.map((menu) => {
const linkTo = parentPath + menu.key
if (menu.subMenu && menu.subMenu.length > 0) {
... |
grunt/tasks/npm-react-addons.js | BreemsEmporiumMensToiletriesFragrances/react | 'use strict';
var assign = require('object-assign');
var fs = require('fs');
var grunt = require('grunt');
var path = require('path');
var addons = {
CSSTransitionGroup: {
module: 'ReactCSSTransitionGroup',
name: 'css-transition-group',
},
LinkedStateMixin: {
module: 'LinkedStateMixin',
name: 'l... |
node_modules/react-bootstrap/es/Table.js | vietvd88/developer-crawler | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
web/src/components/Thumbnail.js | nokia/LearningStore | /*
@author Félix Fuin
Copyright Nokia 2017. All rights reserved.
*/
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Source from './data';
import '../css/Thumbnail.css';
export default class Thumbnail extends Component {
render() {
let lim = 45;
let data = this... |
tests/react/react.js | btmills/eslint-config-btmills | /* eslint-disable import/no-extraneous-dependencies, import/no-unresolved */
import PropTypes from 'prop-types';
import React from 'react';
/* eslint-enable import/no-extraneous-dependencies, import/no-unresolved */
export default class Foo extends React.Component {
render() {
const { name, ...props } = this.props... |
src/containers/jupyterlab-integration/menu-item.js | OpenChemistry/mongochemclient | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { isNil } from 'lodash-es';
import { auth } from '@openchemistry/girder-redux';
import { jupyterlab } from '@openchemistry/redux';
import JupyterMenuComponent from '../../components/jupyterlab-integration/menu-item';
class Jupyte... |
ajax/libs/clappr/0.0.72/clappr.js | WilliamRen/cdnjs | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)... |
src/pages/expense.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import ExpenseWithData from '../apps/expenses/components/ExpenseWithData';
import Header from '../components/Header';
import Body from '../components/Body';
import Footer from '../components/Footer';
import C... |
src/components/Section.js | kdesterik/koendirkvanesterik.com | import React from 'react';
export default class Cover extends React.Component {
render() {
return (
<section className='section'>
{ this.props.children }
</section>
);
}
} |
app/containers/CreatePage/index.js | fascinating2000/productFrontend | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import Input from './Input';
import { changeCost, changeFreight, changeName, changeSKU, addProduct } from './actio... |
dungeon-maker/src/components/DungeonMaker.js | sgottreu/dungeoneering | import React, { Component } from 'react';
import DungeonGrid from './DungeonGrid';
import TileOptions from '../lib/TileOptions';
import DungeonLoadDrawer from './DungeonLoadDrawer';
import TileDrawer from './TileDrawer';
import EntityTooltip from './EntityTooltip';
import Snackbar from 'material-ui/Snackbar';
import R... |
packages/mui-icons-material/lib/esm/MarkAsUnreadOutlined.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M16.23 7h2.6c-.06-.47-.36-.94-.79-1.17L10.5 2 2.8 5.83c-.48.26-.8.81-.8 1.34V15c0 1.1.9 2 2 2V7.4L10.5 4l5.73 3z"
}, "0"), /*#__PURE__*/_jsx("path", {
d: ... |
src/index.js | 4074/redux-react-demo | import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './containers/App'
import todoApp from './reducers'
let store = createStore(todoApp)
let rootElement = document.getElementById('root')
render(
<Provider store={s... |
src/components/transactions/transactions.js | slaweet/lisk-nano | import React from 'react';
import Waypoint from 'react-waypoint';
import tableStyle from 'react-toolbox/lib/table/theme.css';
import buttonStyle from 'react-toolbox/lib/button/theme.css';
import offlineStyle from '../offlineWrapper/offlineWrapper.css';
import RelativeLink from '../relativeLink';
import TransactionRow f... |
src/icons/DnsIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class DnsIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 26H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h32c1.1 0 2-.9 2-2V28c0-1.1-.9-2-2-2zM14 38c-2.21 0-4-1.79-4-4s1.79-4... |
ajax/libs/yui/3.8.1/event-focus/event-focus-min.js | chinakids/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(... |
ajax/libs/react/18.0.0-next-3e997fdba-20220329/cjs/react-jsx-runtime.production.min.js | cdnjs/cdnjs | /**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';var f=require("react"),k=Symbol.for("react.element"),l=Sym... |
example/src/components/ButtonList.js | martinandert/babel-plugin-css-in-js | import React from 'react';
import Button from './Button';
class ButtonList extends React.Component {
render() {
return (
<div>
<h2>Bootstrap´s buttons, realized with babel-plugin-css-in-js</h2>
<p>Enumerating Bootstrap-style buttons of all types and sizes.</p>
<ul className={style... |
app/blink.js | vijanny/react-native-DemoPrj | import React, { Component } from 'react';
import {View, AppRegistry, StyleSheet, Text,Image,Dimensions,TouchableHighlight,Alert,Animated,Easing,} from 'react-native';
import PercentageCircle from 'react-native-percentage-circle';
import Header from './header';
import WaveViewComponent from 'react-native-waveview-androi... |
src/shared/components/ProjectorButton/index.js | CharlesMangwa/Chloe | /* @flow */
import React from 'react'
import { Text, TouchableWithoutFeedback, View } from 'react-native'
import styles from './styles'
type Props = {
color: string,
onPress: Function,
title: string,
}
const ProjectorButton = (props: Props): React$Element<any> => {
const { color, onPress, title } = props
r... |
app/src/routes/LoginCallback.js | quiaro/chunches | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import { gql, graphql } from 'react-apollo';
import {
getIDToken,
setUserSession,
isLoggedIn,
} from '../common/AuthService';
import ErrorHandler from '../common/ErrorHandler';
class Callback extends Component {
constructor(... |
local-cli/generate-android.js | genome21/react-native | 'use strict';
var fs = require('fs');
var path = require('path');
var yeoman = require('yeoman-environment');
/**
* Simple utility for running the android yeoman generator.
*
* @param {String} projectDir root project directory (i.e. contains index.js)
* @param {String} name name of the root JS module for ... |
src/HstWbInstaller.Imager.GuiApp/ClientApp/src/components/ConfirmDialog.js | henrikstengaard/hstwb-installer | import { isNil } from 'lodash'
import React from 'react'
import Dialog from '@mui/material/Dialog'
import DialogActions from '@mui/material/DialogActions'
import DialogContent from '@mui/material/DialogContent'
import DialogContentText from '@mui/material/DialogContentText'
import DialogTitle from '@mui/material/Dialog... |
src/index.js | wavicles/fossasia-pslab-apps | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import { store } from './redux/store';
import { Provider } from 'react-redux';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<Provider store={store}>
<App />
</Provider>,
document.... |
src/components/video_list.js | hekgarcia/ReduxSimpleStarter | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map( (video) => {
return <VideoListItem key={video.etag} video={video}/>
});
return (
<ul className="col-md-4 list-group">
{vid... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js | tharakawj/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return [
{ id: 1, name: '1'... |
Tooltip.js | jsdir/react-bootstrap-npm | /** @jsx React.DOM */
var React = require('react');
var classSet = require('./utils/classSet');
var BootstrapMixin = require('./BootstrapMixin');
var Tooltip = React.createClass({displayName: 'Tooltip',
mixins: [BootstrapMixin],
propTypes: {
placement: React.PropTypes.oneOf(['top','right', 'bottom', 'left']... |
ajax/libs/yui/3.10.3/simpleyui/simpleyui.js | mikelambert/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
src/ui/settings.js | everywherebible/app | import React from 'react';
import {Link} from 'react-router-dom';
import type {StateProps, DispatchProps} from '../containers/settings';
type Props = StateProps & DispatchProps;
const ROW_HEIGHT = '3rem';
const GUTTER = '1rem';
export default ({
enableNightMode,
translation,
setNightModeEnabled,
... |
docs/app/Examples/views/Item/Content/ItemExampleContents.js | shengnian/shengnian-ui-react | import React from 'react'
import { Item } from 'shengnian-ui-react'
const ItemExampleContents = () => (
<Item.Group divided>
<Item>
<Item.Image size='tiny' src='/assets/images/wireframe/image.png' />
<Item.Content verticalAlign='middle'>Content A</Item.Content>
</Item>
<Item>
<Item.Ima... |
src/containers/WeatherWatchContainer.js | steve-sarcinella/stevensarcinella.com | import React, { Component } from 'react';
class WeatherWatchContainer extends Component {
constructor(props) {
super(props);
this.state = {
val: 'Nothing yet'
};
}
componentDidMount() {
fetch('http://api.wunderground.com/api/Your_Key/conditions/q/NC/Charlotte.json')
.then(result => {
... |
QuickGlanceAtReactAndRedux/hello/src/index.js | pauldoo/scratch | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
lib/svg-icons/notification/event-note.js | checkraiser/material-ui2 | 'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var NotificationEventNote = React.createClass({
displayName: 'NotificationEventNote',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M17 10H7v... |
tgui/packages/tgui/interfaces/IntegratedCircuit/Port.js | Bawhoppen/-tg-station | import {
Stack,
Box,
} from '../../components';
import { Component, createRef } from 'inferno';
import { DisplayName } from "./DisplayName";
import { classes } from 'common/react';
import { noop } from './constants';
export class Port extends Component {
constructor() {
super();
this.iconRef = createRef(... |
ajax/libs/forerunnerdb/1.3.560/fdb-core.js | CyrusSUEN/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/app/Examples/collections/Message/Variations/MessageExampleInfo.js | clemensw/stardust | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleInfo = () => (
<Message info>
<Message.Header>Was this what you wanted?</Message.Header>
<p>Did you know it's been a while?</p>
</Message>
)
export default MessageExampleInfo
|
examples/tutorial/step-3/src/main.js | akrumel/f.lux | import React from 'react';
import ReactDOM from 'react-dom';
import { Store } from "f.lux";
import TodoRootProperty from "./TodoRootProperty";
import Todos from "./Todos.react";
// Load the babel polyfill for es2015 support
require("babel-polyfill");
// create the store
const root = new TodoRootProperty();
const s... |
ajax/libs/yui/3.9.1/simpleyui/simpleyui-debug.js | tengyifei/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
html.js | alonsogodinez/AlamedaWebPageGatsby | import React from 'react'
import Helmet from 'react-helmet'
import {prefixLink} from 'gatsby-helpers'
import {TypographyStyle, GoogleFont} from 'react-typography'
import typography from './utils/typography'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
propTypes () {
return {
... |
src/components/submit-button.js | ScottDowne/donate.mozilla.org | import React from 'react';
import {ErrorListener} from './error.js';
var DonateButton = React.createClass({
contextTypes: {
intl: React.PropTypes.object
},
propTypes: {
onClick: React.PropTypes.func,
submitting: React.PropTypes.bool,
validate: React.PropTypes.array.isRequired,
submit: React.P... |
src/constants.js | denimar/denibudget | import React from 'react'
import FaTrashO from 'react-icons/lib/fa/trash-o';
import FaEdit from 'react-icons/lib/fa/edit';
import MdPlaylistAdd from 'react-icons/lib/md/playlist-add';
export const CRUD_ACTION_BUTTON_DELETE = (<FaTrashO name="FaTrashO" size="15" color="#ff704d" />);
export const CRUD_ACTION_BUTTON_EDIT... |
react-src/catalog/components/voyages/layouts/CatalogVoyageDetailsModalMinimalist.js | gabzon/experiensa | import React from 'react'
import { Button, Header, Image, Modal, Icon, Grid } from 'semantic-ui-react'
export default class CatalogVoyageDetailsModalMinimalist extends React.Component {
state = { modalOpen: false }
handleOpen = (e) => this.setState({
modalOpen: true,
})
handleClose = (e) => t... |
client/components/categories/index.js | ZeHiro/kresus | import React from 'react';
import { connect } from 'react-redux';
import { get, actions } from '../../store';
import { translate as $t } from '../../helpers';
import CategoryListItem from './item';
import { MODAL_SLUG as DELETE_UNUSED_MODAL_SLUG } from './delete-unused-modal';
import DisplayIf from '../ui/display-if... |
src/svg-icons/device/signal-cellular-off.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularOff = (props) => (
<SvgIcon {...props}>
<path d="M21 1l-8.59 8.59L21 18.18V1zM4.77 4.5L3.5 5.77l6.36 6.36L1 21h17.73l2 2L22 21.73 4.77 4.5z"/>
</SvgIcon>
);
DeviceSignalCellularOff = pure(... |
packages/material-ui-icons/src/SignalWifi3BarLockRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1... |
src/components/ListWork.js | fahmifachreza/fahmifachreza-portofolio |
import React, { Component } from 'react';
import { object, bool } from 'prop-types';
import { CSSTransitionGroup } from 'react-transition-group';
import LazyLoad from 'react-lazyload';
class ListWork extends Component {
static defaultProps = {
transitionAnimation: object,
isRead: false,
listWorkConten... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.