path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/lib/reactors/Legend/PolylineSymbol.js
EsriJapan/photospot-finder
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // 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 us...
fields/types/azurefile/AzureFileColumn.js
Freakland/keystone
import React from 'react'; var AzureFileColumn = React.createClass({ renderValue () { var value = this.props.data.fields[this.props.col.path]; if (!value) return; return <a href={value.url} target='_blank'>{value.url}</a>; }, render () { return ( <td className="ItemList__col"> <div className="ItemLis...
src/components/MediaListPage.js
n1207n/react-like-or-not
import React from 'react'; import Dialog from 'material-ui/Dialog'; import {GridList, GridTile} from 'material-ui/GridList'; import FontIcon from 'material-ui/FontIcon'; import IconButton from 'material-ui/IconButton'; import Star from 'material-ui/svg-icons/toggle/star'; import ListIcon from 'material-ui/svg-icons/ac...
src/modules/browse/components/BrowsePage/BrowsePage.js
cltk/cltk_frontend
import React from 'react'; import { withRouter } from 'react-router'; import SearchToolsContainer from '../../../search/containers/SearchToolsContainer'; import SearchResultsContainer from '../../../search/containers/SearchResultsContainer'; import './BrowsePage.css'; class BrowsePage extends React.Component { ren...
ajax/libs/react-dom/16.8.5/cjs/react-dom-unstable-fire.production.min.js
cdnjs/cdnjs
/** @license React v16.8.5 * react-dom-unstable-fire.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. */ /* Modernizr 3.0.0pre (Custom Build) | MIT */ 'use strict'...
js/JSCompilePanelContainer.react.js
Sable/McLab-Web
import {Container} from 'flux/utils'; import JSCompilePanel from './JSCompilePanel.react'; import OpenFileStore from './stores/OpenFileStore'; import FileTreeStore from './stores/FileTreeStore'; import OnLoadActions from './actions/OnLoadActions'; import React from 'react'; const { Component } = React; class JSCompil...
packages/material-ui/src/Backdrop/Backdrop.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import Fade from '../Fade'; export const styles = { /* Styles applied to the root element. */ root: { zIndex: -1, position: 'fixed', right: 0, bottom: 0...
App/Views/Themes/native-base-theme/components/CardItem.js
Chandler-Sun/react-native-app-template
import { Platform } from 'react-native'; import _ from 'lodash'; import variable from './../variables/platform'; export default (variables = variable) => { const platformStyle = variables.platformStyle; const platform = variables.platform; const cardItemTheme = { 'NativeBase.Left': { 'NativeBase....
test/BootstrapMixinSpec.js
BespokeInsights/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import BootstrapMixin from '../src/BootstrapMixin'; import styleMaps from '../src/styleMaps'; import { shouldWarn } from './helpers'; let Component; describe('BootstrapMixin', function () { beforeEach(function() { Component = Reac...
ajax/libs/firebase/7.23.0-202096215419/firebase.js
cdnjs/cdnjs
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).firebase=e()}(this,function(){"use strict";function r(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))...
ajax/libs/webshim/1.15.2/dev/shims/moxie/js/moxie-swf.js
zhangbg/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...
src/Weekday.js
saenglert/react-day-picker
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class Weekday extends Component { static propTypes = { weekday: PropTypes.number, className: PropTypes.string, locale: PropTypes.string, localeUtils: PropTypes.object, weekdaysLong: PropTypes.arrayOf(Pro...
docs/src/app/components/pages/discover-more/RelatedProjects.js
rscnt/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import relatedProjectsText from './related-projects.md'; const RelatedProjects = () => ( <div> <Title render={(previousTitle) => `Related Projects - ${previousTitle}`} /> <MarkdownEleme...
test/components/File.spec.js
cozy/cozy-files-v3
'use strict' import React from 'react' import renderer from 'react-test-renderer' import { I18n } from 'cozy-ui/transpiled/react/I18n' import File from '../../src/components/File' describe('File component', () => { it('should render a folder correctly', () => { const attrs = { id: '1234', name: 'Fo...
src/components/form/preview_footer.js
n7best/react-weui
//1.0.0 components import React from 'react'; import classNames from '../../utils/classnames'; /** * Footer of Preview, consists of actions * */ const PreviewFooter = (props) => { const { className, children, ...others } = props; const cls = classNames({ 'weui-form-preview__ft': true, [cla...
build/react_test.js
Celsius273/react_test
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
src/renderer/components/MapFilter/FilterPanel/index.js
digidem/ecuador-map-editor
import React from 'react' import AppBar from '@material-ui/core/AppBar' import MuiToolbar from '@material-ui/core/Toolbar' import FilterPanel from './FilterPanel' import { defineMessages, FormattedMessage } from 'react-intl' import { makeStyles } from '@material-ui/core/styles' import Typography from '@material-ui/cor...
packages/material-ui-icons/src/Battery60TwoTone.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z" /><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V11H7z" /></React...
App/components/shared/EventModal/index.js
araneforseti/caretaker-app
import React, {Component} from 'react'; import { Button, FlatList, Modal, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import {ContainerFor} from './container.js'; import EventPage from '../EventPage'; class EventModal extends Component { _renderModalContent = () => ...
app/javascript/mastodon/features/ui/components/video_modal.js
masarakki/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from '../../video'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class VideoModal extends ImmutablePureComponent { static propTypes = { m...
src/js/components/icons/base/FormDown.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
index.ios.js
lukewalt/buzzpoint
'use strict'; import React, { Component } from 'react'; import { AppRegistry, Text, View, NavigatorIOS, } from 'react-native'; import styles from './styles/styles' import LoginRegister from './components/signInRegister' import Rating from './components/rating' export default class buzzpoint extends Component...
library_js/src/components/ListBooks.js
HoldYourBreath/Library
import React from 'react'; import BookList from './BookList/'; import LocationSelector from './LocationSelector'; import locationStore from '../stores/LocationStore'; import { observer } from 'mobx-react'; const request = require('superagent'); class ListBooks extends React.Component { constructor(props) { ...
src/parser/druid/feral/modules/talents/BrutalSlashHitCount.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import HitCountAoE from '../core/HitCountAoE'; /** * If the player has taken the Brutal Slash talent it should be used even if there's only one * ...
client/components/Comment/index.js
abinavseelan/restobook
import React from 'react'; import cn from 'classnames'; import { Link } from 'react-router-dom'; import distanceInWordsToNow from 'date-fns/distance_in_words_to_now'; import Replies from '../Replies'; import styles from './index.scss'; const Comment = ({ username, id, createdAt, text, handleReplyRequest, replies, n...
src/event_table/Table.js
loomismeister/projio
import React from 'react'; import AltContainer from 'alt-container'; import TableStore from './TableStore'; import TableActions from './TableActions'; var win = require('electron').remote; var Cell = React.createClass({ render() { var className = ""; if(this.props.cellData.isSelected) { className = ...
src/demo/index.js
jfcaiceo/react-lightbox-component
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
ajax/libs/yui/2.9.0/yuiloader/yuiloader-debug.js
laurenceHR/cdnjs
/* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.9.0 */ /** * The YAHOO object is the single global object used by YUI Library. It * contains utility function for setting up namespaces, inheritance, and * logging. YA...
app/javascript/mastodon/features/compose/components/navigation_bar.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ActionBar from './action_bar'; import Avatar from '../../../components/avatar'; import Permalink from '../../../components/permalink'; import IconButton from '../../../components/icon_button...
app/javascript/mastodon/features/compose/components/text_icon_button.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.s...
src/screens/docs/index.js
etsfactory/spectacle-docs-ets
import React from "react"; import Page from "../../components/page"; import TitleMeta from "../../components/title-meta"; import Markdown from "./components/markdown"; class Docs extends React.Component { constructor() { super(); this.state = { tocArray: [] }; } updateTocArray(tocArray) { ...
components/org.wso2.carbon.siddhi.editor.core/src/main/resources/web/commons/lib/jquery-ui_v1.12.1/external/jquery/jquery.js
Anoukh/carbon-analytics
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module =...
test/ListGroupSpec.js
AlexKVal/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ListGroup from '../src/ListGroup'; import ListGroupItem from '../src/ListGroupItem'; describe('ListGroup', function () { it('Should output a "div" with the class "list-group"', function () { let instance = ReactTestUtils.re...
EduChainApp/js/comments/Comment.js
bkrem/educhain
/** * Created by BK on 25/06/16. * * @flow */ 'use strict'; import React from 'react'; import { View, StyleSheet, Text, Image, } from 'react-native'; import GlobalStyles from '../common/GlobalStyles'; type Props = { author: string, thumbURI: string, children?: any, } expor...
geonode/monitoring/frontend/monitoring/src/components/organisms/geoserver-status/index.js
tomkralidis/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # ...
examples/jenarMine/test/components/TodoTextInput.spec.js
tatsuhino/reactPractice
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import TodoTextInput from '../../components/TodoTextInput' function setup(propOverrides) { const props = Object.assign({ onSave: expect.createSpy(), text: 'Use Redux', placeholder: 'What needs to be done...
ajax/libs/yui/3.4.0pr2/event-focus/event-focus.js
honestree/cdnjs
YUI.add('event-focus', function(Y) { /** * 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, useActivate = YLang.isFunction( Y.DOM.create('<p onbeforeactivate="...
ajax/libs/material-ui/4.9.3/esm/internal/svg-icons/Person.js
cdnjs/cdnjs
import React from 'react'; import createSvgIcon from './createSvgIcon'; /** * @ignore - internal component. */ export default createSvgIcon(React.createElement("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" }), 'Person');
app/javascript/mastodon/components/autosuggest_input.js
clworld/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import Im...
src/website/app/demos/Flex/common/DemoFlex.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import _Flex from '../../../../../library/Flex'; import type { StyledComponent } from '@emotion/styled-base/src/utils'; type Props = { gutterWidth?: number | string, theme: Object }; export const containerStyles = ({ theme }: Props) => (...
blueocean-material-icons/src/js/components/svg-icons/editor/format-list-numbered.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatListNumbered = (props) => ( <SvgIcon {...props}> <path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/> </SvgIcon> ); EditorFormatLis...
src/index.js
dustin520/ReduxSimpleStarter
import React from 'react'; import ReactDOM from 'react-dom'; import SearchBar from './components/search_bar'; const API_KEY = 'AIzaSyCi3gFMRkmDNmtpIx8wBjd_O6KVDVSe06g'; // Create new component, should produce html const App = () => { return ( <div> <SearchBar /> </div> ); } // Take component's HT...
src/svg-icons/image/filter-tilt-shift.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterTiltShift = (props) => ( <SvgIcon {...props}> <path d="M11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.11-.86 2.44-1.44 3.9-1.62zm7.32.19C16.84 3.05 15.01 2.25 13 2.05v2.02c1.46.18 2.79.76 3.9 1.62...
lib/layouts/sidebar-layout.js
conveyal/analysis-ui
import {Box, Flex} from '@chakra-ui/react' import React from 'react' import Sidebar from '../components/sidebar' import useRouteChanging from '../hooks/use-route-changing' import withAuth from '../with-auth' import withRedux from '../with-redux' export default withAuth( withRedux(function SidebarLayout(p) { con...
examples/todomvc/components/Header.js
loggur/react-redux-provide
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class Header extends Component { static propTypes = { pushTodoItem: PropTypes.func.isRequired }; pushTodoItem = () => { const { input } = this.refs; const value = input.value.trim(); if (value) { ...
src/js/components/icons/base/SocialTumblr.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/client/depcy-injection/node-modules.js
boris91/hype
import React from 'react'; import ReactDom from 'react-dom'; import * as ReactRedux from 'react-redux'; import * as ReactRouter from 'react-router'; import * as Redux from 'redux'; import ReduxThunk from 'redux-thunk'; import ReduxLogger from 'redux-logger'; export default { React, ReactDom, ReactRedux, ReactRoute...
views/main.js
rob3ns/black-screen
import React from 'react'; import _ from 'lodash'; import Rx from 'rx'; import ApplicationView from './compiled/src/views/ApplicationView.js'; var keys = { goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38, goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ...
packages/node_modules/@webex/react-component-audio/src/index.js
ciscospark/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; const propTypes = { srcObject: PropTypes.object.isRequired }; function Audio({srcObject}) { // Need autoPlay to start the video automagically if (!srcObject) { return null;...
client/components/Routing/HighlightedLink.js
LetAmericaVote/strikeout
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Link from './Link'; import './highlightedLink.scss'; const HighlightedLink = (props) => { const { label, link, highlightStyle, alwaysHighlighted, isActive } = props; c...
client/app/shared/NotFound.js
prilutskiy/hackathon
import React, { Component } from 'react'; class NotFound extends Component { constructor(props) { super(props); } render() { return ( <div>Page not found</div> ); } } export default NotFound;
fixtures/packaging/rjs/prod/config.js
yiminghe/react
module.exports = { baseUrl: '.', name: 'input', out: 'output.js', optimize: 'none', paths: { react: '../../../../build/node_modules/react/umd/react.production.min', 'react-dom': '../../../../build/node_modules/react-dom/umd/react-dom.production.min', schedule: '../../../../build/dist/schedul...
front-end/app/containers/incidents/add_incident_container.js
akumbhani66/cantaloupe
import { connect } from 'react-redux'; import AddIncidents from '../../components/incidents/Add_incident_component'; import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import * as Actions from '../../actions/actions'; function mapStateToProps(state) { return { props: state }; } ...
packages/bonde-admin-canary/src/scenes/Auth/scenes/ResetPassword/InvalidToken.js
ourcities/rebu-client
import React from 'react' import { Trans } from 'react-i18next' import { Flexbox2 as Flexbox, Title } from 'bonde-styleguide' import Link, { ButtonLink } from 'components/Link' export default ({ t }) => ( <Flexbox vertical> <Title.H2 margin={{ bottom: 20 }}>{t('resetPassword.invalidToken.title')}</Title.H2> ...
src/ModalDialog.js
collinwu/react-bootstrap
/*eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ModalDialog = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * A Callback fired when the header closeButton or non-static backdrop ...
node_modules/sockjs-client/dist/sockjs.js
akh000/YoutubeApp
/* sockjs-client v1.1.2 | http://sockjs.org | MIT license */ (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(t...
src/App.js
looshi/wavetable-synth-2
/* global AudioContext */ import axios from 'axios' import React from 'react' import Actions from './data/Actions' import OscillatorView from './views/Oscillator/OscillatorView.js' import FilterView from './views/Filter/FilterView.js' import EffectsView from './views/Effects/EffectsView.js' import AmpView from './views...
src/index.js
moxun33/react-mobx-antd-boilerplate
import React from 'react'; import ReactDom from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import { BrowserRouter as Router } from 'react-router-dom'; import { Provider } from 'mobx-react'; import * as stores from 'stores'; import App from 'components/App'; import { LocaleProvider } from 'antd'; imp...
client/views/admin/settings/inputs/MultiSelectSettingInput.stories.js
VoiSmart/Rocket.Chat
import { Field } from '@rocket.chat/fuselage'; import { action } from '@storybook/addon-actions'; import React from 'react'; import MultiSelectSettingInput from './MultiSelectSettingInput'; export default { title: 'admin/settings/inputs/MultiSelectSettingInput', component: MultiSelectSettingInput, decorators: [(st...
ajax/libs/backbone-react-component/0.6.2/backbone-react-component-min.js
lobbin/cdnjs
"use strict";!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module&&module.exports){var c=require("react"),d=require("backbone"),e=require("underscore");module.exports=b(c,d,e)}else b(a.React,a.Backbone,a._)}(this,function(a,b,c){function ...
lib/PullToRefreshView.ios.js
moschan/react-native-pull-to-refresh
'use strict' import Indicator from './Indicator' import React from 'react' import PropTypes from 'prop-types' import { View, ScrollView } from 'react-native' const INDICATOR_HEIGHT = 40 export default class PTRViewiOS extends React.Component { constructor () { super() this.state = { expand: -INDICATO...
src/components/dom3d.js
DarklyLabs/LaserWeb4
// Copyright 2016 Todd Fleming // // This program 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, either version 3 of the License, or // (at your option) any later version. // // This program is dist...
node_modules/react-native-router-flux/src/navigationStore.js
gunaangs/Feedonymous
import React from 'react'; import { observable, action } from 'mobx'; import * as ActionConst from './ActionConst'; import { OnEnter, OnExit, assert } from './Util'; import { View } from 'react-native'; import { TabNavigator, DrawerNavigator, StackNavigator, NavigationActions } from 'react-navigation'; import { LeftBut...
frontend/src/index.js
VitaC123/YouTube-Mixtape
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import { Provider } from 'react-redux'; import store from './redux/store'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, ...
client/app/scripts/auth0-lock/support/design/index.js
Zeus-HatersGonaHate/Zeus-HatersGonaHate
import React from 'react'; import ReactDOM from 'react-dom'; import Immutable from 'immutable'; import _ from '../../src/browser'; import Control, { store } from './control'; import * as ClientSettings from '../../src/core/client/settings'; import webAPI from '../../src/core/web_api'; const WebAPI = webAPI.constructor;...
ajax/libs/vue/2.5.18/vue.runtime.esm.js
sufuf3/cdnjs
/*! * Vue.js v2.5.18 * (c) 2014-2018 Evan You * Released under the MIT License. */ /* */ var emptyObject = Object.freeze({}); // These helpers produce better VM code in JS engines due to their // explicitness and function inlining. function isUndef (v) { return v === undefined || v === null } function isDef (...
ui/src/js/ranking/ButtonBar.js
Dica-Developer/weplantaforest
import counterpart from 'counterpart'; import React, { Component } from 'react'; import CircleButton from '../common/components/CircleButton'; export default class ButtonBar extends Component { constructor(props) { super(props); this.state = { clickedIndex: 0 }; } loadAllUser() { this.stat...
src/containers/Charts/recharts/charts/simpleLineCharts.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; export default class extends Component { render() { const { datas, width, height, colors } = this.props; // <div className="isoChartWrapper"> return ( <div> <LineCha...
src/components/App/table.js
hackoregon/housing-frontend
/* eslint-disable import/no-extraneous-dependencies */ // This should probably be the core component, containing, nav etc import React from 'react'; function Table({ rows }) { return ( <table> <tbody> {rows.map(row => ( <tr> {row.map(record => ( <td>{record}</td...
src/pages/graph-amounts.js
Hurtak/finances
// @flow import React from 'react' import * as graph from '../utils/graph.js' import * as data from '../data/data.js' import './graph.css' class Graph extends React.Component { state = { data: data.transactionsGroupedAndAggregated, charts: [] } idPrefix = 'graph-' render () { return ( <sect...
ajax/libs/yui/3.11.0/event-custom-base/event-custom-base.js
kave/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
frontend/src/components/petals/petals.js
desihub/qlf
import React, { Component } from 'react'; import { VictoryPie, Slice } from 'victory'; import PropTypes from 'prop-types'; import _ from 'lodash'; export default class Petals extends Component { static propTypes = { size: PropTypes.number.isRequired, selected: PropTypes.array, onClick: PropTypes.func.isR...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
samwhiteiv/sevenlevelsmusic.com_frontend_2016
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'));
app/packs/src/components/research_plan/ResearchPlanDetailsBody.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ControlLabel, Row, Col } from 'react-bootstrap'; import ResearchPlanDetailsAddField from './ResearchPlanDetailsAddField'; import ResearchPlanDetailsDropTarget from './ResearchPlanDetailsDropTarget'; import Field from './ResearchPlanD...
assets/js/pages/App.js
chocoelho/twitter-activities-monitor
import React from 'react'; import ReactDOM from 'react-dom'; import TweetTimelineContainer from '../containers/TweetTimelineContainer' export default class App extends React.Component { constructor(props) { super(props); this.twitterApiUrl = '/timeline/'; } render() { const twitterApiUrl = this.twit...
src/FormGroup.js
roderickwang/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class FormGroup extends React.Component { render() { let classes = { 'form-group': !this.props.standalone, 'form-group-lg': !this.props.standalone && this.props.bsSize === 'large', 'form-group-sm': !this.props.standalone && this.pr...
server/src/pages/shot/server.js
mozilla-services/screenshots
const express = require("express"); const { Shot } = require("../../servershot"); const { notFound } = require("../../pages/not-found/server"); const reactrender = require("../../reactrender"); const mozlog = require("../../logging").mozlog("shot"); const app = express(); exports.app = app; app.get("/:id/:domain", f...
client/src/javascript/components/icons/SettingsIcon.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class SettingsIcon extends BaseIcon { render() { return ( <svg className={`icon icon--settings ${this.props.className}`} viewBox={this.getViewBox()}> <path d="M55.63,33.77a1.28,1.28,0,0,1-.93,1.2l-6.17.93a18.92,18.92,0,0,...
actor-apps/app-web/src/app/components/JoinGroup.react.js
Jaeandroid/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
node-life/build/build/react-native-life/ReactNativeLife/js/Components/View/ViewExample.js
CaMnter/front-end-life
/** * @author CaMnter */ import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import TouchableWithoutFeedback from 'TouchableWithoutFeedback'; class ViewBorderStyleExample extends React.Component { state = { showBorder: true }; render() { return...
ajax/libs/reactable/0.7.0/reactable.min.js
paleozogt/cdnjs
Reactable=(function(){if(!Array.prototype.map){Array.prototype.map=function(m){if(this===void 0||this===null){throw new TypeError()}var p=Object(this);var k=p.length>>>0;if(typeof m!=="function"){throw new TypeError()}var o=new Array(k);var l=arguments.length>=2?arguments[1]:void 0;for(var n=0;n<k;n++){if(n in p){o[n]=...
js/jqwidgets/demos/react/app/rangeselector/righttoleftlayout/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js'; class App extends React.Component { componentDidMount() { this.refs.myRangeSelector.setRange(30, 60); } render() { return ( <JqxRangeS...
src/main.js
Shroder/essential-javascript-links
import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'cerebral-module-router'; import Controller from 'cerebral'; import Model from 'cerebral-model-baobab'; import {Container} from 'cerebral-view-react'; import List from './modules/List'; import LinkList from './modules/List/components/LinkLi...
src/js/components/icons/base/VolumeLow.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/icons/SocialHtml5Outline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SocialHtml5Outline extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M64,32l34.936,403.301L255.769,480l157.245-44.705L448,32H64z M383.041,410.51l-127.262,36.187l-126.867-36.1...
examples/todomvc/src/components/Header.spec.js
jhwgnu/redux
import React from 'react' import TestUtils from 'react-addons-test-utils' import Header from './Header' import TodoTextInput from './TodoTextInput' const setup = () => { const props = { addTodo: jest.fn() } const renderer = TestUtils.createRenderer() renderer.render(<Header {...props} />) const output =...
packages/telescope-lib/package.js
bharatjilledumudi/india-shop
Package.describe({ name: 'telescope:lib', summary: 'Telescope libraries.', version: '0.25.2', git: "https://github.com/TelescopeJS/Telescope.git" }); Package.onUse(function (api) { api.versionsFrom(['METEOR@1.0']); var packages = [ 'meteor-base@1.0.1', 'mongo', 'blaze-html-templates@1.0.1',...
src/routes/TicTacToe/components/TicTacToe.js
dimitrisafendras/multiGame
import React from 'react' import Square from '../containers/Square'; import Bot from '../containers/bot'; import styles from './styles.scss' const TicTacToe = ({victory, newGame}) =>{ function displayWinner() { if (victory) { if (victory == 'tie') { return <div className='victory-message'>Its a {v...
ajax/libs/reactive-coffee/1.2.1/reactive-coffee.js
calebmer/cdnjs
(function() { var rxFactory, __slice = [].slice, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = ne...
src/svg-icons/social/mood-bad.js
xmityaz/material-ui
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....
app/javascript/mastodon/features/ui/components/block_modal.js
5thfloor/ichiji-social
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../../../selectors'; import Button from '../../../components/button'; import { closeModal } from '../../../actions/modal'; impo...
ajax/libs/forerunnerdb/1.3.652/fdb-core+views.min.js
redmunds/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
packages/react-ui-core/src/Button/__tests__/ApplyButton-tests.js
rentpath/react-ui
import React from 'react' import { shallow } from 'enzyme' import Button from '../Button' import ThemedApplyButton from '../ApplyButton' const ApplyButton = ThemedApplyButton.WrappedComponent describe('ag/Buttons/ApplyButton', () => { it('does not render a button with no handleClick function', () => { const wr...
src/components/Result.js
tnRaro/nokori
import React from "react"; import Item from "./Item"; class Result extends React.Component { render(){ const { nokori, holding, lang } = this.props; return ( <div className="result"> <h1>Result</h1> <Item description={lang.AVERAGE} middleware={() => { const d = new Date(); const today = d.getDa...
src/utils/CustomPropTypes.js
xsistens/react-bootstrap
import React from 'react'; import warning from 'react/lib/warning'; import childrenToArray from './childrenToArray'; const ANONYMOUS = '<<anonymous>>'; /** * Create chain-able isRequired validator * * Largely copied directly from: * https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9...
frontend/src/main.js
cheijken/stonepaperscissors
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
ajax/libs/react-instantsearch/4.4.0/Dom.js
extend1994/cdnjs
/*! ReactInstantSearch 4.4.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
src/app/common/UserInterface/components/Button.js
toxzilla/app
import React from 'react'; import shallowCompare from 'react-addons-shallow-compare'; import {classNames, compose as composeStyle} from 'react-dom-stylesheet'; import * as KeyCodes from './../constants/keyCodes'; import Control from './Control'; import TouchRipple from './ripples/TouchRipple'; export default class Bu...
src/js/components/deployments/deploymentstatus.js
michaelatmender/gui
import React from 'react'; import { Tooltip } from '@mui/material'; import successImage from '../../../assets/img/success_status.png'; import errorImage from '../../../assets/img/error_status.png'; import pendingImage from '../../../assets/img/pending_status.png'; import inprogressImage from '../../../assets/img/progr...
src/containers/ui/NavbarMenuButton/NavbarMenuButtonView.js
BrownEPTech/brown-ep-startup-ideas-app
/** * Navbar Menu Button * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import PropTypes from 'prop-types'; import { TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; /* Component =======================...