path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/src/components/NoAccess.js | JasonProcka/venos |
// --- Imports ----
// >>> React
import React from 'react';
// Show a Page that says that you have no access to the current area
export default class NoAccess extends React.Component {
render() {
return (
<div>
{`You do not have access for here`}
</div>
);... |
src/components/PXBottomSheetCancelButton.js | alphasp/pxview | import React from 'react';
import { View, StyleSheet } from 'react-native';
import { withTheme, Text } from 'react-native-paper';
import IonicIcon from 'react-native-vector-icons/Ionicons';
import PXTouchable from './PXTouchable';
const styles = StyleSheet.create({
bottomSheetListItem: {
flexDirection: 'row',
... |
spec/javascripts/jsx/assignments/GradeSummary/components/GradersTableSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - 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/Main/News/Articles/2017-01-31-About/index.js | enragednuke/WoWAnalyzer | import React from 'react';
import RegularArticle from 'Main/News/RegularArticle';
import MasteryRadiusImage from 'Main/Images/mastery-radius.png';
export const title = "About WoWAnalyzer the World of Warcraft analyzer";
export default (
<RegularArticle title={title} published="2017-01-31">
<img src={MasteryRad... |
packages/docs/components/Examples/hashtag/gettingStarted.js | nikgraf/draft-js-plugin-editor | // It is important to import the Editor which accepts plugins.
import Editor from '@draft-js-plugins/editor';
import createHashtagPlugin from '@draft-js-plugins/hashtag';
import React from 'react';
// Creates an Instance. At this step, a configuration object can be passed in
// as an argument.
const hashtagPlugin = cr... |
client/components/Shared/LoadingScreen/index.js | vcu-lcc/nomad | /*
Copyright (C) 2017 Darren Chan
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 ... |
src/modules/client/routes.js | belng/pure | /* @flow */
import fs from 'fs';
import path from 'path';
import handlebars from 'handlebars';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import ServerHTML from './ServerHTML';
import RichText from '../../ui/components/views/Core/RichText';
import promisify from '../../lib/promisify';
im... |
src/containers/AttributesPanel.js | eveafeline/D3-ID3-Naomi | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { getScatterPlot, updateWidth } from '../actions/ScatterPlotActions';
import { getD3ParserObj, updateValue } from '../actions/D3ParserActions';
import { ScatterPlotReducer, D3ParserReducer... |
src/svg-icons/device/bluetooth.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46... |
node_modules/react-router/es6/RoutingContext.js | cylcharles/webpack | 'use strict';
var _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; };
function _classCallCheck(instance, Constructor... |
src/Parser/Monk/Mistweaver/Modules/Items/T20_4set.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveH... |
src/index.js | millerman86/CouponProject | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
import {Provider} from 'react-redux';
import {createStore} from 'redux';
import rootReducer from './Redux';
... |
src/components/todoFooter.js | mweststrate/mobservable-react-todomvc | import React from 'react';
import PropTypes from 'prop-types';
import {observer} from 'mobx-react';
import {action} from 'mobx';
import {pluralize} from '../utils';
import { ALL_TODOS, ACTIVE_TODOS, COMPLETED_TODOS } from '../constants';
@observer
export default class TodoFooter extends React.Component {
render() {
... |
javascript/react-skill-verification-test/react-top-and-newest-articles/src/index.js | rootulp/hackerrank | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
const ARTICLES = [
{
title: "A message to our customers",
upvotes: 12,
date: "2020-01-24",
},
{
title: "Alphabet earnings",
... |
src/containers/ServiceBookingCaledarPage.js | onlinebooking/booking-frontend | import React from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
import BookingCalendar from '../components/BookingCalendar';
import ErrorAlert from '../components/ErrorAlert';
import BookingSteps from '../components/BookingSteps';
import { getBookingAvailblesCalendarDates } from '../selec... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | LJ-Solutions/lj-tools2 | 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'));
|
examples/todomvc/containers/TodoApp.js | jackielii/redux-devtools | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
class TodoApp extends Component {
render(... |
frontend/jqwidgets/jqwidgets-react/react_jqxexpander.js | liamray/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxExpander extends React.Component {
componentDidMount() {
let options = this.manag... |
Example/index.ios.js | SudoPlz/react-native-amplitude-analytics | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import Amplitude from 'react-native-amplitude-analytics';
export default class Example extends Component {
re... |
share/components/Common/ErrorMessages.js | caojs/password-manager-server | import React from 'react';
import FaExclamation from 'react-icons/lib/fa/exclamation-triangle';
import { injectProps } from '../../helpers/decorators';
import style from './errorMessages.css';
export default class ErrorMessages extends React.Component {
@injectProps
render({ errors }) {
return (
<ul cla... |
test/test_helper.js | merry75/ReduxBookLibrary | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/app.js | codingkapoor/technology-jukebox | import React, { Component } from 'react';
import _ from 'lodash';
import UltimatePagination from 'react-ultimate-pagination-bootstrap-4';
import Projects from '../../projects.json';
import SearchBar from './search-bar';
import ProjectList from './project-list';
export default class App extends Component {
construc... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | fengchenlianlian/actor-platform | import React from 'react';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import GroupStore from 'stores/GroupStore';
import InviteUserActions from 'actions/InviteUserA... |
src/client/main.js | alihalabyah/hacker-menu | import React from 'react'
import StoryBox from './story_box.js'
React.render(
<StoryBox />,
document.getElementById('container')
)
|
src/mui/input/ReferenceInput.js | RestUI/rest-ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import debounce from 'lodash.debounce';
import Labeled from './Labeled';
import { crudGetOne as crudGetOneAction, crudGetMatching as crudGetMatchingAction } from '../../redux/actions/dataActions';
import... |
src/components/Help/InfoBanner/index.js | ProteinsWebTeam/interpro7-client | import React from 'react';
import T from 'prop-types';
import { foundationPartial } from 'styles/foundation';
import style from './style.css';
import ipro from 'styles/interpro-new.css';
const f = foundationPartial(style, ipro);
const infoTopics = {
InterProScan: {
text:
'InterProScan is a sequence analy... |
node_modules/eslint-config-airbnb/test/test-react-order.js | DigixGlobal/truffle-lightwallet-provider | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
rules: {
// It is okay to import devDependencies in tests.... |
src/components/antd/badge/index.js | hyd378008136/olymComponents | var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ... |
src/svg-icons/image/adjust.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAdjust = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.3... |
app/Routes.js | antoligy/healthbeacon | import React from 'react';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import App from './App';
import HomePage from './pages/HomePage';
import DashboardPage from './pages/DashboardPage';
import DetailsPage from './pages/DetailsPage';
import Login from './pages/Login';
import Logout from './p... |
components/NewRecord.js | praida/admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import '../styles/new-record.scss'
class NewRecord extends React.Component {
constructor (props) {
super(props)
this.addNewRecord = this.addNewRecord.bind(this)
this.changeOldField = this.changeOldField.b... |
rojak-ui-web/src/app/candidate/Candidate.js | pyk/rojak | import React from 'react'
import { connect } from 'react-redux'
import { fetchCandidate } from './actions'
import Card from '../kit/Card'
import SocialMedia from '../kit/SocialMedia'
class Candidate extends React.Component {
static propTypes = {
id: React.PropTypes.number.isRequired,
candidate: React.PropTyp... |
src/svg-icons/navigation/expand-less.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationExpandLess = (props) => (
<SvgIcon {...props}>
<path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/>
</SvgIcon>
);
NavigationExpandLess = pure(NavigationExpandLess);
NavigationExpandLess.displa... |
packages/ringcentral-widgets-docs/src/app/pages/Components/LocalePicker/Demo.js | ringcentral/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import LocalePicker from 'ringcentral-widgets/components/LocalePicker';
const props = {};
props.value = 'test string';
props.options = ['test string'];
props.onChange = () => null;
/**
* A example of `LocalePicker`
*/
const LocalePickerDemo = () => <LocalePicke... |
staticfiles/js/components/Culprit/Culprit.a38d08dcbdb9.js | alemneh/negativity-purger | import React from 'react';
import styles from './Culprit.css';
const Culprit = ({ culprit }) => {
return (
<li className={styles.culprit}>
<div><img src={culprit.pic_url} /></div>
<div>
<h3>{ culprit.name }</h3>
<small><b>Negative tweets:</b> {culprit.number_of_tweets}</small>
... |
server.js | JigneshRaval/React_Webpack_Express_ES6 | // server.js
// Example of React.js + Express.js Server-side rendering ( Isomorphic JS Example )
// SERVER
//==================================================
import express from 'express';
const app = express();
// SETUP REACT
//==================================================
import React from 'react';
import {... |
actor-apps/app-web/src/app/components/Login.react.js | gale320/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
dva/dva-quickstart/src/routes/Products.js | imuntil/React | import React from 'react'
import { connect } from 'dva'
import ProductList from '../components/ProductList'
const Products = ({ dispatch, products }) => {
function handleDelete(id) {
dispatch({
type: 'products/delete',
payload: id
})
}
return (
<div>
<h2>List of Products</h2>
... |
src/svg-icons/communication/call-end.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallEnd = (props) => (
<SvgIcon {...props}>
<path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-.... |
src/Parser/Shaman/Enhancement/Modules/ShamanCore/FuryOfAir.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import StatisticBox, { STATISTIC_ORDER } from 'Main/Statistic... |
redux-demo/todomvc/src/index.js | zhangjunhd/react-examples | import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './containers/App'
import reducer from './reducers'
import 'todomvc-app-css/index.css'
const store = createStore(reducer)
render(
<Provider store={store}>
<App ... |
src/components/DiscussionInput/DiscussionInput.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import withStyles from 'isomorphic-style-loader/withStyles';
import MarkdownIt from 'markdown-it';
import { defineMessages, FormattedMessage } from 'react-intl';
// import Calendar from '../Calendar';
import { createD... |
es2015plus/react/src/components/Select/index.js | lshig/forms-challenge | import React from 'react';
import PropTypes from 'prop-types';
export default function Select({ name, label, onChange, options }) {
return (
<div className="select">
<select id={name} name={name} onChange={onChange}>
<option key={label} value="">
{label}
</option>
{options... |
docs/src/PageFooter.js | deerawan/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className="bs-docs-footer" role="contentinfo">
<div c... |
ui/src/frontend/component/Home.js | Virtustream-OSS/packrat | import React from 'react';
const Home = ( { match } ) => (
<div><h1>Packrat</h1></div>
);
export default Home
|
app/components/Icons/icons/icon-twitter.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
function LogoTwitter() {
return (
<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fillRule="evenodd" clipRule="evenodd" strokeLinejoin="round" strokeMiterlimit="1.414">
<path d="M16 3.038c-.59.26-1.22.437-1.885.517.677-.407 1.198-1.05 1.443-1.816-.634.375-1.337.648-2.... |
src/containers/Home/Home.js | bamtron5/ReactRedux | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
const logoImage = ... |
fields/types/select/SelectFilter.js | andreufirefly/keystone | import React from 'react';
import { Checkbox, FormField, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/components/Popout/PopoutList';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return... |
src/svg-icons/maps/directions.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirections = (props) => (
<SvgIcon {...props}>
<path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.... |
wwwroot/app/src/components/App/App.js | AlinCiocan/PlanEatSave | import React, { Component } from 'react';
import '../../utils/WindowResizeEventOptimized';
import './App.css';
class App extends Component {
render() {
var _this = this;
return (
<div className="full-height">
{React.Children.map(this.props.children, (child => React.cloneElement(child, { router... |
pages/contacts.js | xzin/homepage | import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Helmet from 'react-helmet'
import { config } from 'config'
const styles={
link:{
fontFamily:'Ubuntu',
color:'black',
textDecoration:'none'
}
}
export default class Index extends React.Compo... |
app/containers/PostHousePage/index.js | coocooooo/webapp | /**
* House Page -- the detail of the House
*
* copyright(c) coocooooo
*/
import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import cx from 'classnames';
import { Form, Container } from 'semantic-ui-react';
import WrappedRegistrationForm from './Form';
const Art... |
src/articles/2018-01-31-1st-Anniversary/Timeline.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import './Timeline.css';
const Timeline = ({ children }) => (
<div className="timeline year-recap">
{children}
</div>
);
Timeline.propTypes = {
children: PropTypes.node.isRequired,
};
export default Timeline;
|
app/react-icons/fa/angle-left.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaAngleLeft extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m26.5 12.1q0 0.3-0.2 0.6l-8.8 8.7 8.8 8.8q0.2 0.2 0.2 0.5t-0.2 0.5l-1.1 1.... |
src/components/Thead.js | ua-oira/react-super-responsive-table | import React from 'react';
import T from 'prop-types';
import allowed from '../utils/allowed';
const Thead = (props) => {
const { children } = props;
return (
<thead data-testid="thead" {...allowed(props)}>
{React.cloneElement(children, { inHeader: true })}
</thead>
);
};
Thead.propTypes = {
c... |
src/ReactBoilerplate/Scripts/containers/Register/Register.js | theonlylawislove/react-dot-net | import React, { Component } from 'react';
import { RegisterForm } from 'components';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
class Register extends Component {
componentWillReceiveProps(nextProps) {
if (!this.props.user && nextProps.user) {
this.props.pushState('/'... |
src/containers/toast.js | ThatCrazyIrishGuy/less-to-palette | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Snackbar } from 'react-toolbox/lib/snackbar';
export class Toast extends Component {
constructor(props) {
super(props);
this.state = {
active: false,
message: ''
};
this.handleSnackbarClick = this.h... |
src/components/Home.js | billie66/demo2 | import React, { Component } from 'react';
class Home extends Component {
render() {
return (
<div className="home">
<div className="slogan">
welcome to stage two
</div>
</div>
);
}
}
export default Home;
|
docs/src/PageFooter.js | andrew-d/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className='bs-docs-footer' role='contentinfo'>
<div c... |
geonode/monitoring/frontend/monitoring/src/components/organisms/geonode-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
# ... |
react-youtube-adaptive-loading/src/containers/Search/Search.js | GoogleChromeLabs/adaptive-loading | import React from 'react';
import './Search.scss';
import {getYoutubeLibraryLoaded} from '../../store/reducers/api';
import {getSearchNextPageToken, getSearchResults} from '../../store/reducers/search';
import * as searchActions from '../../store/actions/search';
import {bindActionCreators} from 'redux';
import {connec... |
examples/expo/App.js | kimxogus/react-native-version-check | import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import VersionCheck from 'react-native-version-check-expo';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
text... |
examples/real-world/index.js | cornedor/redux | import 'babel-core/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from './store/configureStore';
import App from './containers/App';
import UserPage from './co... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/visibility-off.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionVisibilityOff = (props) => (
<SvgIcon {...props}>
<path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 ... |
src/components/EditForm/index.js | Apozhidaev/terminal.mobi | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { back } from 'store/services/history/actions';
import { security } from 'config';
import { encrypt, getPBKDF2 } from 'helpers/crypto';
import Content from './Content';
import Resources from './Resources';
import Attachments from '.... |
jsx/app/MyAwesomeReactComponent.js | NickTaporuk/webpack_starterkit_project | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
const MyAwesomeReactComponent = () => (
<RaisedButton label="Default" />
); |
dashboard-ui/app/components/footer/footer.js | CloudBoost/cloudboost | 'use strict';
import React from 'react';
import Footerlist from './footerlist';
const Footer = React.createClass({
render: function () {
return (
<div className='footer navbar-fixed-bottom'>
<div className='container'>
<Footerlist />
</div>
</div>
);
}
});
export def... |
app/Georgism-Medium.js | bullines/wwgs | import React from 'react';
import GeorgismRepo from './georgism-repo.js'
import styles from './App.css';
export default class GeorgismMedium extends React.Component {
constructor(props) {
super(props);
this. handleGetWisdomButtonClick = this. handleGetWisdomButtonClick.bind(this);
this.state = { g... |
react/features/base/react/components/web/MultiSelectAutocomplete.js | jitsi/jitsi-meet | // @flow
import AKInlineDialog from '@atlaskit/inline-dialog';
import { MultiSelectStateless } from '@atlaskit/multi-select';
import _debounce from 'lodash/debounce';
import React, { Component } from 'react';
import logger from '../../logger';
import InlineDialogFailure from './InlineDialogFailure';
/**
* The type... |
src/components/util/Terminate.js | mailvelope/mailvelope | /**
* Copyright (C) 2019 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import './Terminate.scss';
export default function Terminate() {
return (
<div className="terminate">
<div className="backdrop"></div>
<div className="symbol"><... |
assets/jqwidgets/demos/react/app/passwordinput/righttoleftlayout/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxPasswordInput from '../../../jqwidgets-react/react_jqxpasswordinput.js';
class App extends React.Component {
render() {
let localization = {
showPasswordString: "צג סיסמא",
hidePasswordString: "סתר סיסמא",
... |
frontend/components/CurrentSearch.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import styles from './CurrentSearch.less';
const CurrentSearch = ({query, legend}) => (
<div className={styles.main}><span className={styles.legend}>{legend}</span> {query}</div>
);
CurrentSearch.propTypes = {
query: PropTypes.string.isRequired,
... |
app/javascript/mastodon/features/ui/components/column.js | narabo/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
const easingOutQuint = (x, t, b, c, d) => c*((t=t/d-1)*t*t*t*t + 1) + b;
const scrollTop = (node) => {
const startTime = Date.now();
const offset = node.scrollTop;
con... |
app/javascript/mastodon/features/public_timeline/index.js | danhunsaker/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
test/helpers/shallowRenderHelper.js | codemonkey-victor/snakes | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
components/Markdown/Markdown.story.js | rdjpalmer/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import Markdown from './Markdown';
import guide from './markdown-guide.md';
storiesOf('Markdown', module)
.add('<Markdown />', () => (
<Markdown>{ guide }</Markdown>
));
|
frontend/src/Routes.js | tdv-casts/website | // @flow
import React from 'react';
import { Switch, Route } from 'react-router-dom';
import SearchCastByDate from './components/pages/SearchCastByDate';
import ListOfShows from './components/pages/ListOfShows';
import SubmitCast from './components/pages/SubmitCast';
import Error404 from './components/pages/Error404'... |
fields/types/geopoint/GeoPointField.js | ratecity/keystone | import Field from '../Field';
import React from 'react';
import {
FormInput,
Grid,
} from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'GeopointField',
statics: {
type: 'Geopoint',
},
focusTargetRef: 'lat',
handleLat (event) {
const { value = [], path, onChange } = ... |
RNDemo/RNComment/node_modules/react-native/local-cli/templates/HelloNavigation/views/MainNavigator.js | 995996812/Web | 'use strict';
/**
* This is an example React Native app demonstrates ListViews, text input and
* navigation between a few screens.
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import HomeScreenTabNavigator from './HomeS... |
app/javascript/mastodon/features/ui/components/columns_area.js | palon7/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { links, getIndex, get... |
app/javascript/mastodon/features/compose/components/character_counter.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
src/components/structures/LeftPanel.js | aperezdc/matrix-react-sdk | /*
Copyright 2015, 2016 OpenMarket Ltd
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 to in writing, sof... |
src/app.js | phnz/kitematic | require.main.paths.splice(0, 0, process.env.NODE_PATH);
import remote from 'remote';
var Menu = remote.require('menu');
import React from 'react';
import SetupStore from './stores/SetupStore';
import ipc from 'ipc';
import machine from './utils/DockerMachineUtil';
import metrics from './utils/MetricsUtil';
import templ... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/Nav.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
tabs: PropTypes.bool,
pills: PropTypes.bool,
vertical: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
horizontal: PropTypes.s... |
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/network-check.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationNetworkCheck = (props) => (
<SvgIcon {...props}>
<path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5-.5zM1 9l2 2c2.88-2.88 ... |
components/card/CardTitle.js | showings/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { CARD } from '../identifiers';
import InjectAvatar from '../avatar/Avatar';
const factory = (Avatar) => {
const CardTitle = ({ avatar, children, className, subtitle, th... |
packages/lore-hook-dialogs-bootstrap/src/blueprints/destroy/Wizard/forms/Confirmation.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
export default createReactClass({
displayName: 'Confirmation',
propTypes: {
callbacks: PropTypes.object
},
render: function() {
const { modelName } = this.props;
const {
title =... |
src/containers/pages/decks/deck/right-container/sections/comments/section-footer-commentbox.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import SectionFooterHeader from './section-footer-header';
import TextEditor from '../../../../../../../components/text-editor/text-editor';
const SectionFooterCommentBox = ({deckCommentControlled, handleTextEditorBBcodeClick, previewIsActive, deckCommentP... |
V2-Node/esquenta.v2/UI/src/views/Users/User.js | leandrocristovao/esquenta | import React, { Component } from 'react';
import { Card, CardBody, CardHeader, Col, Row, Table } from 'reactstrap';
import usersData from './UsersData'
class User extends Component {
render() {
const user = usersData.find( user => user.id.toString() === this.props.match.params.id)
const userDetails = use... |
src/popup/components/Message/index.js | fluany/fluany | /**
* @fileOverview A component to show messages/feedback to the user
* @name index.js<Message>
* @license GNU General Public License v3.0
*/
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { changeMessage } from 'actions/flags'
const Message = ({ onChange... |
Self/FlexDemo2.js | CoderJJMa/React-native-learn | import React, { Component } from 'react';
import { View,Text } from 'react-native';
/**
* 弹性(Flex)宽高
在组件样式中使用flex可以使其在可利用的空间中动态地扩张或收缩。
一般而言我们会使用flex:1来指定某个组件扩张以撑满所有剩余的空间。
如果有多个并列的子组件使用了flex:1,则这些子组件会平分父容器中剩余的空间。如果这些并列的子组件的flex值不一样,则谁的值更大,
谁占据剩余空间的比例就更大(即占据剩余空间的比等于并列组件间flex值的比)。
组件能够撑满剩余空间的前提是其父容器的尺寸不为零。
如果父容器既没有固定的... |
comment-app/src/CommentApp.js | kcf5521/Web-front-end-Demo | import React, { Component } from 'react';
import CommentInput from './CommentInput'
import CommentList from './CommentList'
class CommentApp extends Component {
constructor () {
super()
this.state = {
comments: []
}
}
//加载评论
componentWillMount () {
this._loadComments()
}
//将评论放到this.st... |
ki1st-xtqb/src/main/webapp/front/app/components/App.js | chosenki/chosenki-2016 | import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
</div>
)
export default App
|
js/components/pages/NotFound.react.js | beiciye/login-flow | import React, { Component } from 'react';
import { Link } from 'react-router';
class NotFound extends Component {
render() {
return(
<article>
<h1>Page not found.</h1>
<Link to="/" className="btn">Home</Link>
</article>
);
}
}
export default NotFound;
|
src/index.js | dyegolara/sismo-frontend | import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, Redirect, browserHistory } from 'react-router'
import './index.css'
import './bulma.css'
import App from './App'
import NewReport from './newReport'
import registerServiceWorker from './registerServiceWorker'
const $app = document.getE... |
src/js/components/ui/UserTopData/UserTopData.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './UserTopData.scss';
export default class UserTopData extends Component {
static propTypes = {
username : PropTypes.string.isRequired,
usernameColor: PropTypes.string,
location : PropT... |
lib/Navigation/Tabs/tabFour/views/TabFourScreenTwo.js | Ezeebube5/Nairasense | import React from 'react';
import { View, Text } from 'react-native';
export default class TabFourScreenTwo extends React.Component {
static navigationOptions = {
tabBarLabel: 'Audio'}
render() {
return (
<View
style={{
flex: 1,
backgroundColor: 'white',
alignItems: 'center',
... |
mob5/src/components/Contacts/ContactList/Footer.js | leGoupil/mob5 | import React from 'react';
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
padding: 8,
alignItems: 'center',
justifyContent: 'center',
},
button: {
borderColor: '#8E8E8E',
borderWidth: StyleSheet.hairlineWid... |
src/svg-icons/alert/error.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertError = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
</SvgIcon>
);
AlertError = pure(AlertError);
AlertEr... |
src/decorators/withViewport.js | jmattfong/jmattfong.com | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.