path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
ajax/libs/yui/3.4.0pr2/yui/yui.js | blairvanderhoof/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
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
* The YUI global names... |
src/routes.js | DarkLicornor/personalWebsite | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Router from 'react-routi... |
admin/client/App/components/Navigation/Mobile/index.js | jstockwin/keystone | /**
* The mobile navigation, displayed on screens < 768px
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import MobileSectionItem from './SectionItem';
const ESCAPE_KEY_CODE = 27;
const MobileNavigation = React.createClass({
displayName: 'MobileNavigation',
propTypes: ... |
ajax/libs/jquery-footable/0.1.0/js/footable.js | ahocevar/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... |
definitions/npm/react-redux_v5.x.x/flow_v0.30.x-v0.52.x/test_Provider.js | echenley/flow-typed | // @flow
import React from 'react'
import { Provider } from 'react-redux'
// $ExpectError
<Provider />; // missing store
|
src/components/books/preview/BookPreviewFooter.js | great-design-and-systems/cataloguing-app | import { FontAwesome, ResponsiveButton } from '../../common/';
import { LABEL_ADD_BOOK, LABEL_CLOSE } from '../../../labels/';
import PropTypes from 'prop-types';
import React from 'react';
export const BookPreviewFooter = ({ closeDialog, addBook, readOnly }) => {
return (<div className="btn-group btn-md">
{!re... |
src/svg-icons/file/cloud-download.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDownload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-... |
src/templates/project-page.js | michaeltmiller/michaelmiller.io | import React from 'react';
import Carousel from '../components/carousel';
import Iphone from '../components/iphone';
import Macbook from '../components/macbook';
import OutboundLink from '../components/outbound-link';
import Wrapper from '../components/wrapper';
import { ProjectDescription, ProjectIntro, ProjectPage }... |
indico/web/client/js/jquery/widgets/jinja/permissions_widget.js | pferreir/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import React from 'react';
import ReactDOM from 'react-dom';
import {GroupSearch, UserSearch} from ... |
vibe-ui/src/components/__tests__/Message.js | 3ll3d00d/vibe | import React from 'react';
import ReactDOM from 'react-dom';
import Message from '../Message';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<Message />, div);
}); |
fields/types/embedly/EmbedlyField.js | Yaska/keystone | import React from 'react';
import Field from '../Field';
import { FormField, FormInput } from 'elemental';
import ImageThumbnail from '../../components/ImageThumbnail';
import NestedFormField from '../../components/NestedFormField';
module.exports = Field.create({
displayName: 'EmbedlyField',
statics: {
type: 'Em... |
node_modules/react-scripts/template/src/index.js | soniacq/LearningReact | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/routes.js | cdiezmoran/AlphaStage-desktop | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import BrowsePage from './containers/BrowsePage';
import CreateGamePage from './containers/CreateGamePage';
import DashboardPage from './containers/DashboardPage';
im... |
app/jsx/grading/AccountTabContainer.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - 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... |
src/client/activity/Activity.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { injectIntl } from 'react-intl';
import Affix from '../components/Utils/Affix';
import LeftSidebar from '../app/Sidebar/LeftSidebar';
import UserActivity from './UserActivity';
import RightSidebar from '../app/Side... |
frontend/src/Settings/MediaManagement/Naming/NamingOption.js | geogolem/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Link from 'Components/Link/Link';
import { sizes } from 'Helpers/Props';
import styles from './NamingOption.css';
class NamingOption extends Component {
//
// Listeners
onPress = () => {
... |
app/client/src/routes/privacySecurity/index.js | uprisecampaigns/uprise-app | import React from 'react';
import PrivacySecurity from 'scenes/PrivacySecurity';
import Layout from 'components/Layout';
export default {
path: '/settings/privacy-security',
async action() {
const privacyContent = await import(/* webpackChunkName: "privacy" */ 'content/privacy.md');
return {
titl... |
client/landing/components/donate/index.js | bryanph/Geist | import React from 'react'
import ReactDom from 'react-dom'
class Landing extends React.Component {
constructor(props) {
super(props)
}
render() {
return (
<div>
</div>
)
}
}
export default Landing
|
packages/material-ui-icons/src/CardMembershipRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V5c0-.55.45-1 1-1h14c... |
src/app.js | chrisk8er/Simple-Electron-React-Boilerplate | import './main.css';
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
<h1>Hello World!</h1>,
document.getElementById('root')
); |
JS Web/ReactJS/Event and Forms/src/components/form/formFields/Input.js | mitaka00/SoftUni | import React from 'react'
import Valid from './../validationComponents/Valid'
import Invalid from './../validationComponents/Invalid'
let Input = props => {
return (
<div>
<label htmlFor={props.data}>{props.name}</label>
<div>
<input
style={{ width: '300px' }}
onChange... |
src/routes.js | lyef/lyef-redux-boilerplate | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import HelloWorld from 'views/HelloWorld';
// This is a class-based component because the current
// version of hot reloading won't hot reload a stateless
// component at the top-level.
/* eslint-disable react/prefer-stateless-function */
cl... |
addons/themes/story/layouts/Single.js | rendact/rendact | import React from 'react';
import Header from '../includes/Header';
import Footer from '../includes/Footer';
import FooterWidgets from '../includes/FooterWidgets';
class Single extends React.Component {
componentDidMount(){
require('../assets/css/main.css')
}
render(){
let {
postData,
theCon... |
test/unit/testHelper.js | ChrisBauer/codenames-frontend | import jq from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import createHistory from 'react-router/lib/browserHistory';
import { Provider... |
src/routes/catalog/Panel/Panel.js | pustovitDmytro/maysternya | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Panel.css';
import cx from 'classnames';
//function returns width of the i-th picture
let elemW = function(n,i, prob=0.05,kof=1.3){
if (n==1) return 100;
if (n>4) kof = 1.1;
return 100*Math.pow(kof,i)*((k... |
src/containers/flash/tests.js | thinktopography/reframe | import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import * as actions from './actions'
import reducer from './reducer'
import Flash from './flash'
describe('flash component', () => {
describe('actions', () => {
it('can dispatch set', () => {
const expected = {
... |
src/shared/utils/render-routes.js | rvboris/finalytics | import React from 'react';
import { Route, Switch, Redirect } from 'react-router-dom';
import uuid from 'uuid';
const checkAuth = (store, route, props) => {
if (!route.auth) {
return <route.component {...props} route={route} />;
}
const { isAuthenticated } = store.getState().auth;
const { required, redire... |
ajax/libs/rxjs/2.4.6/rx.lite.compat.js | maxklenk/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
... |
app/javascript/mastodon/features/ui/components/column.js | sylph-sin-tyaku/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
src/components/common/svg-icons/action/home.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHome = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</SvgIcon>
);
ActionHome = pure(ActionHome);
ActionHome.displayName = 'ActionHome';
ActionHome.muiName = 'SvgIcon... |
app/javascript/mastodon/features/video/index.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { fromJS } from 'immutable';
import { throttle } from 'lodash';
import classNames from 'classnames';
import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/uti... |
react-sass-webpack/src/index.js | mypixel/web-starters | import React from 'react';
// just one method 'render' from react-dom rather than whole thing
import { render } from 'react-dom';
import { BrowserRouter, Match, Miss } from 'react-router';
// styles
import './styles/css/styles.css';
// components
import App from './components/App';
import About from './components/Ab... |
Realization/frontend/czechidm-acc/src/content/rolecatalogue/RoleCatalogueAccounts.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import _ from 'lodash';
//
import { Basic, Advanced, Domain, Managers, Utils } from 'czechidm-core';
import { RoleCatalogueAccountManager, AccountManager } from '../../redux';
import ... |
app/components/TTWindSection/index.js | j921216063/chenya | import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import Section1 from 'components/Section1';
import Container from 'components/Container';
import H1 from 'components/H1';
import Img from 'components/Img';
import Icon from './10kw.png';
import messages fro... |
ajax/libs/angular.js/1.0.0rc10/angular-scenario.js | nareshs435/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* 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.
... |
stories/containers/channels/channels-header.stories.js | LN-Zap/zap-desktop | import React from 'react'
import { storiesOf } from '@storybook/react'
import ChannelsHeader from 'containers/Channels/ChannelsHeader'
import { Provider } from '../../Provider'
storiesOf('Containers.Channels', module)
.addDecorator(story => <Provider story={story()} />)
.addWithChapters('ChannelsHeader', {
cha... |
src/components/TextInput.js | hairmot/REACTModuleTest | import React from 'react';
import Quill from 'react-quill';
export default class TextInput extends React.Component {
constructor(props) {
super(props);
this.state = {enlarged:'notEnlarged'};
}
render() {
var templateItem = this.props.inputsTemplate.find(a => a.fieldName === this.props.propertyname);
var i... |
Paths/React/05.Building Scalable React Apps/6-react-boilerplate-building-scalable-apps-m6-exercise-files/After/app/components/Navigation/index.js | phiratio/Pluralsight-materials | /**
*
* Navigation
*
*/
import React from 'react';
import AppBar from '../AppBar';
import styles from './styles.css';
import Drawer from '../Drawer';
function Navigation({ topics, selectTopic, toggleDrawer, isDrawerOpen }) {
return (
<div className={styles.navigation}>
<AppBar
toggleDrawer={toggl... |
src/components/calendar.js | thipokKub/Clique-WebFront-Personnal | import React, { Component } from 'react';
import $ from 'jquery';
import './style/calendar.css';
Date.prototype.addDays = function(days) {
var dat = new Date(this.valueOf());
dat.setDate(dat.getDate() + days);
return dat;
}
Date.prototype.getMonthName = function(index) {
const i = (!index) ? this.getM... |
client/test/containers/DraggableStickerContainer.spec.js | marlonbernardes/coding-stickers | import React from 'react';
import { expect } from 'chai';
import { List as ImmutableList, Map } from 'immutable';
import { shallow } from 'enzyme';
import { DraggableStickerContainer } from '../../src/containers/DraggableStickerContainer';
import DraggableSticker from '../../src/components/DraggableSticker';
describe(... |
ajax/libs/babel-core/5.5.0/browser-polyfill.js | terrymun/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... |
packages/mui-icons-material/lib/esm/SortSharp.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"
}), 'SortSharp'); |
packages/core/email/admin/src/pages/Settings/components/EmailHeader.js | wistityhq/strapi | import React from 'react';
import { useIntl } from 'react-intl';
import { SettingsPageTitle } from '@strapi/helper-plugin';
import { HeaderLayout } from '@strapi/design-system/Layout';
import getTrad from '../../../utils/getTrad';
const EmailHeader = () => {
const { formatMessage } = useIntl();
return (
<>
... |
chrome/extension/todoapp.js | meth-makers/dolphin | import React from 'react';
import ReactDOM from 'react-dom';
import Root from '../../app/containers/Root';
import './todoapp.css';
chrome.storage.local.get('state', obj => {
const { state } = obj;
const initialState = JSON.parse(state || '{}');
const createStore = require('../../app/store/configureStore');
Re... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-calendar/es/month/MonthPanel.js | bhathiya/test | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import YearPanel from '../year/YearPanel';
import MonthTable from './MonthTable';
function goYear(direction) {
var next = this.state.value.clone();
next.add(direction, 'year');
this.setAndChangeValue... |
src/svg-icons/device/screen-lock-rotation.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockRotation = (props) => (
<SvgIcon {...props}>
<path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59... |
src/utils/messageParser.js | svmn/ace-fnd | 'use strict';
import React from 'react';
import replacer from 'react-string-replace';
import {
LINK_REGEXP,
REPLY_REGEXP,
MARKUP_STRONG_REGEXP,
MARKUP_EMPH_REGEXP,
MARKUP_STRIKE_REGEXP,
MARKUP_SPOILER_REGEXP,
MARKUP_QUOTE_REGEXP,
MARKUP_ADM_REGEXP,
MARKUP_MOD_REGEXP,
YOUTUBE_REPLACE_REGEXP,
PRIVA... |
__tests__/index.android.js | Blacktoviche/RNChat | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
nailgun/static/views/cluster_page_tabs/healthcheck_tab.js | eayunstack/fuel-web | /*
* Copyright 2014 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/src/components/CustomRenderField.js | katienreed/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var CustomRenderField = React.createClass({
displayName: 'CustomRenderField',
propTypes: {
delimiter: React.PropTypes.st... |
features/hocs/withLayout.js | nlambert/checkin | import React from 'react';
import * as layouts from '../layouts';
const withLayout = (layoutName = 'Main') => Body => {
const Layout = layouts[layoutName];
const WithLayout = props => (
<Layout { ...props }>
<Body { ...props } />
</Layout>
);
return WithLayout;
};
export default withLayout;
|
entry_types/scrolled/package/spec/frontend/MotifArea-spec.js | codevise/pageflow | import React from 'react';
import '@testing-library/jest-dom/extend-expect'
import {renderInEntry} from 'support';
import {useFile} from 'entryState';
import {useBackgroundFile} from 'frontend/useBackgroundFile';
import {MotifArea, MotifAreaVisibilityProvider} from 'frontend/MotifArea';
import styles from 'frontend/M... |
app/javascript/mastodon/features/ui/components/confirmation_modal.js | lindwurm/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
export default @injectIntl
class ConfirmationModal extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
... |
app/containers/AboutPage.js | luismreis/bootstrap-starter-template-react | import React, { Component } from 'react';
export default class AboutPage extends Component {
render() {
return (
<div className="about">
<h1>About</h1>
</div>
);
}
} |
app/javascript/mastodon/features/blocks/index.js | dunn/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
ext/tilt-react.js | jphastings/tilt-react | import React from 'react';
import ReactDOM from 'react-dom';
class TiltReactClass {
constructor() {
this.components = {};
}
bind() {
this.reactContainers().forEach(container => {
const componentName = container.dataset.reactClass;
const propsContainer = container.nextElementSibling;
co... |
node_modules/react-navigation/src/views/CardStack/CardStack.js | jiangqizheng/ReactNative-BookProject | /* @flow */
import React, { Component } from 'react';
import clamp from 'clamp';
import {
Animated,
StyleSheet,
PanResponder,
Platform,
View,
I18nManager,
Easing,
} from 'react-native';
import Card from './Card';
import Header from '../Header/Header';
import NavigationActions from '../../NavigationActi... |
app/client/components/map/Story.js | breakfast-mimes/cyber-mimes | import React from 'react';
export default class Story extends React.Component {
constructor(props) {
super(props);
this.state = {
}
}
render(){
const { row, col, messages} = this.props;
return(
<div className='noSelect'>
{messages[row] ? messages[row][col] : "No Messages"}
... |
src/client/components/common/component.header.js | thamht4190/elearning | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import MultilangStrings from '../../languages';
class Header extends Component {
render() {
return (
<div className="page-header">
<div className="logo page... |
client/ButtonBar.js | npasserini/redux-workshop | import React from 'react';
export default class ButtonBar extends React.Component {
render() {
let buttons = this.props.buttons.map( (btn, index) =>
<button key={index} className={btn.className}
onClick={(e) => this.props.onButtonClicked(btn.data) }>
{btn.label}
</button>
);
r... |
vendor/miloschuman/yii2-highcharts-widget/src/assets/highcharts.src.js | tskmatrix/yiicomm | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.0.4 (2014-09-02)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear... |
src/components/search-page/SearchForm.js | AnisaIshmail/IdeaZone | // Using inline searchform instead
// import React, { Component } from 'react';
// class SearchForm extends Component {
// render() {
// return (
// <div>
// <header className="text-center clearfix">
// <h1>Find Project Ideas or Add an Idea<i className="fa fa-plus-circle float-right" dat... |
App/node_modules/metro-bundler/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | Dagers/React-Native-Differential-Updater | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
ajax/libs/onsen/1.3.11/js/onsenui.js | dannyxx001/cdnjs | /*! onsenui - v1.3.11 - 2015-09-28 */
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// JavaScript Dynamic Content shim for Windows Store apps
(function () {
if (window.MSApp && ... |
framework/react/react-tutorials/src/demo/app/App.js | yhtml5/YHTML5-Tutorial | import React, { Component } from 'react';
import logo from '../../static/logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h... |
Redux-BookList/src/containers/bookList.js | vivekbharatha/ModernReactWithReduxCourseUdemy | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { selectBook } from './../actions/index';
class BookList extends Component {
renderList() {
return this.props.books.map((book) => {
return (
<li onClick={() => this... |
internals/templates/utils/injectReducer.js | andyzeli/Bil | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './reducerInjectors';
/**
* Dynamically injects a reducer
*
* @param {string} key A key of the reducer
* @param {function} reducer A reducer that will be injected
*
... |
src/modules/persisted/components/Request-persisted.js | otissv/graphql-guru-ide | import React from 'react';
import autobind from 'class-autobind';
import styled from 'styled-components';
import CodeMirror from 'react-codemirror';
import '../../../../node_modules/codemirror/lib/codemirror.css';
require('codemirror/mode/javascript/javascript');
require('codemirror/addon/fold/foldgutter');
require('co... |
app/client/src/routes.js | oriondean/foosball-pyramid | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
front/app/app/rh-components/rh-BlockLinks.js | nudoru/React-Starter-2-app | import React from 'react';
export const BlockLinkHGroup = ({style = 'white', children}) => <ul
className={'block-links-' + style + ' block-links-horizontal'}>{children}</ul>;
export const BlockLinkVGroup = ({style = 'white', children}) => <ul
className={'block-links-' + style + ' block-links-vertical'}>{children}... |
ajax/libs/angular-google-maps/2.0.7/angular-google-maps.js | sympmarc/cdnjs | /*! angular-google-maps 2.0.7 2014-11-04
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
(function() {
String.prototype.contains = function(value, fromIndex) {
return this.indexOf(value, fromIndex) !== -1;
};
String.prototype.flare = function(flare)... |
src/mui/input/NullableBooleanInput.js | RestUI/rest-ui | import React from 'react';
import PropTypes from 'prop-types';
import SelectInput from './SelectInput';
import { translate } from '../../i18n';
export const NullableBooleanInput = ({ input, meta: { touched, error }, label, source, elStyle, resource, translate }) => (
<SelectInput
input={input}
labe... |
src/svg-icons/image/burst-mode.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBurstMode = (props) => (
<SvgIcon {...props}>
<path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/... |
src/components/icons/ChevronUpIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const ChevronUpIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 100 100">
{props.title && <title>{props.title}</title>}
<polygon points="28.79 67.68 50 46.46 71.21 67.68 78.28 60.61 50 32.32 21.72 60.61 28.79 67.68" />
</svg>
);
... |
website/irulez/src/components/Login.js | deklungel/iRulez | import React, { Component } from 'react';
import './Login.css';
import AuthService from './AuthService';
class Login extends Component {
constructor() {
super();
this.handleChange = this.handleChange.bind(this);
this.handleFormSubmit = this.handleFormSubmit.bind(this);
this.Auth = n... |
blueocean-material-icons/src/js/components/svg-icons/content/clear.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentClear = (props) => (
<SvgIcon {...props}>
<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"/>
</SvgIcon>
);
ContentClear.displayName = 'ContentClear';
ContentClear.muiName ... |
WebRoot/plugin/jquery-scrollup/js/lib/jquery-1.9.1.min.js | panxiaochao/BPMIS | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
javascripts/jquery-1.10.2.min.js | nakamuraapp/nakamuraapp.github.io | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
blueprints/dumb/files/__root__/components/__name__/__name__.js | bhoomit/formula-editor | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
src/docs/examples/TextInput/ExampleOptional.js | tlraridon/ps-react-train-tlr | import React from 'react';
import TextInput from 'ps-react-train-tlr/TextInput';
/** Optional Textbox */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInput
htmlId="excample-optional"
label="First Name"
na... |
src/components/NotFoundPage.js | dvwzj-smcl/schedule | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
packages/bonde-styleguide/src/content/Icon/svg/DoubleArrowLeft.js | ourcities/rebu-client | import React from 'react'
const Icon = ({ className, color, size }) => (
<svg
className={className}
width={size || '16'}
height={size || '13'}
viewBox='0 0 16 13'
xmlns='http://www.w3.org/2000/svg'
>
<g fill='none' fillRule='evenodd'>
<g transform='translate(-1116 -11655)' fill={color... |
quiz.js | qiwenmin/HamExam | import React, { Component } from 'react';
import {
Alert,
StyleSheet,
TouchableHighlight,
Text,
Image,
View,
ScrollView
} from 'react-native';
import NavigationBar from 'react-native-navbar';
import _ from 'lodash';
import Libs from './libs';
import quizImgs from './quizimgs';
import studyRecord from '... |
public/assets/js/node_modules/babel-core/lib/transformation/transformers/validation/react.js | ngocson8b/6jar | "use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj;... |
app/containers/NotFoundPage/index.js | MaleSharker/Qingyan | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
export default function NotFound() {
return (
<article>
... |
ajax/libs/angular-data/1.5.1/angular-data.js | AlexisArce/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 1.5.1 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js.... |
RN HotUpdate/SmartHomeII/main.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,
Image,
Platform,
Navigator,
TouchableHighlight,
TouchableOpacity
} from 'react-native';
import Constanst from '.... |
client/app/components/contact.js | poddarh/nectarine | import {sendContactEmail} from '../server.js';
import React from 'react';
export default class Contact extends React.Component {
constructor(props) {
super(props);
this.state = {
//input fields
name: "",
email: "",
typeOfIssue: "",
question: "",
data: [],
message: ""
}
}
handleSubmit(e){... |
ajax/libs/rx-player/1.4.1/rx-player.js | extend1994/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["RxPlayer"] = factory();
else
root["RxPl... |
test/setup.js | vladovidiu/soundcloud | import React from 'react';
import { expect } from 'chai';
import jsdom from 'jsdom';
const doc = jsdom.jsdom('<!doctype html><html><body></body></html>');
const win = doc.defaultView;
global.document = doc;
global.window = win;
Object.keys(window).forEach((key) => {
if (!(key in global)) {
global[key] = window... |
ajax/libs/material-ui/5.0.0-alpha.30/modern/ImageList/ImageListContext.js | cdnjs/cdnjs | import * as React from 'react';
/**
* @ignore - internal component.
* @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
*/
const ImageListContext = /*#__PURE__*/React.createContext({});
if (process.env.NODE_ENV !== 'production') {
ImageListContext.displayName = 'ImageListCont... |
examples/huge-apps/components/Dashboard.js | kurayama/react-router | import React from 'react'
import { Link } from 'react-router'
class Dashboard extends React.Component {
render() {
const { courses } = this.props
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
you... |
app/javascript/mastodon/features/ui/components/report_modal.js | dwango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { expandAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pro... |
app/containers/PlacesPage/index.js | joeysherman/noodle-time | /*
*
* PlacesPage
*
*/
// Dependencies
import React from 'react';
import { connect } from 'react-redux';
import { compose } from 'redux';
import injectSaga from 'utils/injectSaga';
import saga from './saga';
import reducer from './reducer';
import { push } from 'connected-react-router';
import { Link } from 'react-... |
ajax/libs/IndexedDBShim/3.0.0-rc.3/indexeddbshim-noninvasive.js | joeyparrish/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.setGlobalVars ... |
ajax/libs/onsen/1.3.13/js/onsenui.min.js | dhenson02/cdnjs | /*! onsenui - v1.3.13 - 2015-11-10 */
!function(){function getAttributes(element){return Node_get_attributes.call(element)}function setAttribute(element,attribute,value){try{Element_setAttribute.call(element,attribute,value)}catch(e){}}function removeAttribute(element,attribute){Element_removeAttribute.call(element,att... |
app/components/RDialog.js | qinfuji/vpt | import React from 'react';
import styles from '../styles/dialog.less';
import {Motion, spring} from 'react-motion';
import classnames from 'classnames';
import {$view} from './utils';
const ZINDEX = 1100;
export default class RDialog extends React.Component {
close(){
let {close} = this.props;
cl... |
src/react.js | malte-wessel/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
app/components/sign/operations/types/vote.js | soosgit/vessel | // @flow
import React, { Component } from 'react';
import { Redirect } from 'react-router';
import { Accordion, Button, Card, Checkbox, Divider, Dropdown, Form, Grid, Header, Icon, Image, Input, Label, Message, Radio, Segment, Statistic, Select, TextArea } from 'semantic-ui-react'
import AccountAvatar from '../../../... |
src/HstWbInstaller.Imager.GuiApp/ClientApp/src/pages/Optimize.js | henrikstengaard/hstwb-installer | import React from 'react'
import Box from "@mui/material/Box";
import Title from "../components/Title";
import {get, isNil, set} from "lodash";
import Grid from "@mui/material/Grid";
import TextField from "../components/TextField";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import BrowseOpenDialog ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.