Skip to content

Commit

Permalink
recompose package not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarasova committed Sep 15, 2020
1 parent 446998e commit 6e048c1
Show file tree
Hide file tree
Showing 69 changed files with 203 additions and 199 deletions.
6 changes: 3 additions & 3 deletions server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ passport.deserializeUser((obj, done) => {

const HOSTNAME = 'http://localhost:3000';
config.callback_url = 'http://localhost:3001/api/auth/facebook/callback';
config.facebook_api_secret = '8f891ee90229fd861d4c71bdf648ad14';
config.facebook_api_key = '2640133479605924';
config.facebook_api_secret = '28d6d64b25d647d30f08f3e9c489eb04';
config.facebook_api_key = '3606748869337149';

// let HOSTNAME = 'https://opexflow.com';

Expand Down Expand Up @@ -69,7 +69,7 @@ function replaceHost(host) {
}

app.use(bodyParser.urlencoded({ extended: false }));
app.use(session({ secret: 'secret123', key: 'sid' }));
app.use(session({ secret: 'secret123', key: 'sid', resave: false, saveUninitialized: false }));
app.use(passport.initialize());
app.use(passport.session());

Expand Down
6 changes: 4 additions & 2 deletions server/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module.exports = {
facebook_api_key: '2969806906408505',
facebook_api_secret: '4e4c8607d69bec65298a406838026b89',
// facebook_api_key: '2969806906408505',
// facebook_api_secret: '4e4c8607d69bec65298a406838026b89',
facebook_api_key: '3606748869337149',
facebook_api_secret: '28d6d64b25d647d30f08f3e9c489eb04',
// 'http://localhost:3001/api/auth/facebook/callback',
callback_url: 'https://opexflow.com/api/auth/facebook/callback',
host: '78.24.216.16',
Expand Down
1 change: 0 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import { IntlProvider } from 'react-intl';
import AppLocale from './lang';
// import ColorSwitcher from './components/common/ColorSwitcher';
import NotificationContainer from './components/common/react-notifications/NotificationContainer';
import { isMultiColorActive } from './constants/defaultValues';
import { getDirection } from './helpers/Utils';

const ViewMain = React.lazy(() => import(/* webpackChunkName: "views" */ './views'));
Expand Down
2 changes: 1 addition & 1 deletion src/components/DatatablePagination.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import {
Pagination, PaginationItem, PaginationLink,
UncontrolledDropdown, DropdownMenu, DropdownToggle, DropdownItem,
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReactSiema/ReactSiemaCarousel.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import ReactSiema from './lib';

export default class ReactSiemaCarousel extends Component {
Expand Down
2 changes: 1 addition & 1 deletion src/components/applications/ChatHeading.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';

const ChatHeading = ({ name, thumb, lastSeenDate }) => (
<>
Expand Down
2 changes: 1 addition & 1 deletion src/components/applications/MessageCard.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';
import { Card, CardBody } from 'reactstrap';

const MessageCard = ({ sender, item, currentUserid }) => (
Expand Down
2 changes: 1 addition & 1 deletion src/components/charts/SmallLine.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';
import ChartComponent, { Chart } from 'react-chartjs-2';

import { smallLineChartOptions } from './config';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class NotificationContainer extends React.Component {
notifications: [],
};

componentWillMount = () => {
UNSAFE_componentWillMount = () => {
NotificationManager.addChangeListener(this.handleStoreChange);
};

Expand Down
6 changes: 3 additions & 3 deletions src/components/common/react-notifications/Notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class Notifications extends React.Component {
return (
<div className={className}>
<CSSTransitionGroup
transitionName="notification"
transitionEnterTimeout={enterTimeout}
transitionLeaveTimeout={leaveTimeout}
transitionname="notification"
transitionentertimeout={enterTimeout}
transitionleavetimeout={leaveTimeout}
>
{notifications.map(notification => {
const key = notification.id || new Date().getTime();
Expand Down
4 changes: 2 additions & 2 deletions src/containers/applications/ChatApplicationMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class ChatApplicationMenu extends Component {
>
<TabPane tabId="messages" className="chat-app-tab-pane">
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
<div className="pt-2 pr-4 pl-4 pb-2">
{loadingContacts &&
Expand Down Expand Up @@ -180,7 +180,7 @@ class ChatApplicationMenu extends Component {
</TabPane>
<TabPane tabId="contacts" className="chat-app-tab-pane">
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
<div className="pt-2 pr-4 pl-4 pb-2">
{loadingContacts &&
Expand Down
2 changes: 1 addition & 1 deletion src/containers/applications/SurveyApplicationMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class SurveyApplicationMenu extends Component {
return (
<ApplicationMenu>
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
<div className="p-4">
<p className="text-muted text-small">
Expand Down
2 changes: 1 addition & 1 deletion src/containers/applications/SurveyDetailApplicationMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ApplicationMenu from '../../components/common/ApplicationMenu';
const SurveyDetailApplicationMenu = () => (
<ApplicationMenu>
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
<div className="p-4">
<p className="text-muted text-small">Status</p>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/applications/TodoApplicationMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TodoApplicationMenu extends Component {
return (
<ApplicationMenu>
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
<div className="p-4">
<p className="text-muted text-small">
Expand Down
3 changes: 1 addition & 2 deletions src/containers/dashboards/Logs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import PerfectScrollbar from 'react-perfect-scrollbar';
import { Card, CardBody, CardTitle } from 'reactstrap';

import IntlMessages from '../../helpers/IntlMessages';
import data from '../../data/logs';

const Logs = (params = [{ logsData: []}]) => (
<div>
Expand All @@ -14,7 +13,7 @@ const Logs = (params = [{ logsData: []}]) => (
</CardTitle>
<div className="dashboard-logs">
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
<table className="table table-sm table-borderless">
<tbody>
Expand Down
2 changes: 1 addition & 1 deletion src/containers/dashboards/NewComments.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const NewComments = ({ className = '', displayRate = false }) => (
</CardTitle>
<div className="dashboard-list-with-user">
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
{comments.map((item, index) => (
<div
Expand Down
2 changes: 1 addition & 1 deletion src/containers/dashboards/RecentOrders.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function RecentOrders() {
</CardTitle>
<div className="scroll dashboard-list-with-thumbs">
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
{data.slice(0, 6).map((order, index) => (
<div key={index} className="d-flex flex-row mb-3">
Expand Down
2 changes: 1 addition & 1 deletion src/containers/dashboards/Tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Tickets = () => (
</CardTitle>
<div className="dashboard-list-with-user">
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
{data.map((ticket, index) => (
<div
Expand Down
2 changes: 1 addition & 1 deletion src/containers/navs/Breadcrumb.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Fragment } from 'react';
import React from 'react';
import { Breadcrumb, BreadcrumbItem } from 'reactstrap';
import { NavLink } from 'react-router-dom';
import IntlMessages from '../../helpers/IntlMessages';
Expand Down
6 changes: 3 additions & 3 deletions src/containers/navs/Sidebar.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import ReactDOM from 'react-dom';
import { Nav, NavItem, UncontrolledCollapse } from 'reactstrap';
Expand Down Expand Up @@ -292,7 +292,7 @@ class Sidebar extends Component {
<div className="main-menu">
<div className="scroll">
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
<Nav vertical className="list-unstyled">
{menuItems &&
Expand Down Expand Up @@ -337,7 +337,7 @@ class Sidebar extends Component {
<div className="sub-menu">
<div className="scroll">
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
{menuItems &&
menuItems.map(item => (
Expand Down
2 changes: 1 addition & 1 deletion src/containers/navs/Topnav.Notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const TopnavNotifications = () => (
id="notificationDropdown"
>
<PerfectScrollbar
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
{notifications.map((notification, index) => <NotificationItem key={index} {...notification} />)}
</PerfectScrollbar>
Expand Down
8 changes: 1 addition & 7 deletions src/containers/navs/Topnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ import {
DropdownItem,
DropdownToggle,
DropdownMenu,
Input,
} from 'reactstrap';

import { NavLink } from 'react-router-dom';
import { connect } from 'react-redux';

import IntlMessages from '../../helpers/IntlMessages';
import {
setContainerClassnames,
clickOnMobileMenu,
Expand All @@ -22,14 +20,11 @@ import {
import {
menuHiddenBreakpoint,
searchPath,
localeOptions,
isDarkSwitchActive,
} from '../../constants/defaultValues';

import { MobileMenuIcon, MenuIcon } from '../../components/svg';
import TopnavEasyAccess from './Topnav.EasyAccess';
import TopnavNotifications from './Topnav.Notifications';
import TopnavDarkSwitch from './Topnav.DarkSwitch';

import { getDirection, setDirection } from '../../helpers/Utils';

Expand Down Expand Up @@ -200,8 +195,7 @@ class TopNav extends Component {
};

render() {
const { containerClassnames, menuClickCount, locale } = this.props;
const { messages } = this.props.intl;
const { containerClassnames, menuClickCount } = this.props;
const { user, finance } = this.props.authUser;

return (
Expand Down
2 changes: 1 addition & 1 deletion src/containers/ui/ReactTableCards.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import data from '../../data/products';

const CustomTbodyComponent = props => (
<div {...props} className={classnames('rt-tbody', props.className || [])}>
<PerfectScrollbar option={{ suppressScrollX: true }}>
<PerfectScrollbar options={{ suppressScrollX: true }}>
{props.children}
</PerfectScrollbar>
</div>
Expand Down
15 changes: 15 additions & 0 deletions src/lang/locales/en_US.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Table of Contents
07.18.Sortable
07.19.Maps
07.20.Tables
08.Indicators
*/

module.exports = {
Expand All @@ -55,7 +56,13 @@ module.exports = {
/* 03.Menu */
'menu.app': 'Home',
'menu.dashboards': 'Dashboards',
'menu.gogo': 'Gogo',
'menu.start': 'Start',
'menu.second-menu': 'Second menu',
'menu.second': 'Second',
'menu.default': 'Default',
'menu.bots': 'Bots',
'menu.sber': 'Sber',
'menu.analytics': 'Analytics',
'menu.ecommerce': 'Ecommerce',
'menu.content': 'Content',
Expand Down Expand Up @@ -574,4 +581,12 @@ module.exports = {
'table.react-scrollable': 'Scrollable',
'table.react-advanced': 'Filter, Length and Jump',


/* 08.Indicators */
'Balance': 'Balance',
'Balance with stocks': 'Balance with stocks',
'Stocks delta': 'Stocks delta',
'Current price': 'Current price',
'Stocks count': 'Stocks count',
'Commission': 'Commission',
};
2 changes: 1 addition & 1 deletion src/layout/UserLayout.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';

class UserLayout extends Component {
componentDidMount() {
Expand Down
4 changes: 2 additions & 2 deletions src/views/app/applications/chat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import PerfectScrollbar from 'react-perfect-scrollbar';
Expand Down Expand Up @@ -128,7 +128,7 @@ class ChatApp extends Component {
this._scrollBarRef = ref;
}}
containerRef={ref => {}}
option={{ suppressScrollX: true, wheelPropagation: false }}
options={{ suppressScrollX: true, wheelPropagation: false }}
>
{selectedConversation.messages.map((item, index) => {
const sender = allContacts.find(x => x.id === item.sender);
Expand Down
2 changes: 1 addition & 1 deletion src/views/app/applications/survey-detail.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import { connect } from 'react-redux';

import {
Expand Down
2 changes: 1 addition & 1 deletion src/views/app/applications/survey.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { injectIntl } from 'react-intl';
import {
Expand Down
2 changes: 1 addition & 1 deletion src/views/app/applications/todo.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import {
Row,
Button,
Expand Down
2 changes: 1 addition & 1 deletion src/views/app/blank-page.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component} from 'react';
import { Row } from 'reactstrap';
import IntlMessages from '../../helpers/IntlMessages';
import { Colxx, Separator } from '../../components/common/CustomBootstrap';
Expand Down
5 changes: 2 additions & 3 deletions src/views/app/bots/sber.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React, { PureComponent, Component } from 'react';
import React, { Component } from 'react';
import { Row, Button } from 'reactstrap';
import Chart from 'react-apexcharts';
import ApexCharts from 'apexcharts';
import IntlMessages from '../../../helpers/IntlMessages';
import { Colxx, Separator } from '../../../components/common/CustomBootstrap';
import Breadcrumb from '../../../containers/navs/Breadcrumb';
import IconCard from '../../../components/cards/IconCard';
Expand Down Expand Up @@ -113,7 +112,7 @@ export default class Sber extends Component {
}

if (!tick[2] || !tick[3]) {
return;
return false;
}

// console.log(`${tick[2]} ${tick[3]}`, [parseFloat(tick[4]), parseFloat(tick[5]), parseFloat(tick[6]), parseFloat(tick[7])]);
Expand Down
2 changes: 1 addition & 1 deletion src/views/app/dashboards/analytics.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import { injectIntl } from 'react-intl';
import { Row } from 'reactstrap';

Expand Down
2 changes: 1 addition & 1 deletion src/views/app/dashboards/content.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component } from 'react';
import { injectIntl } from 'react-intl';
import { Row } from 'reactstrap';

Expand Down
4 changes: 1 addition & 3 deletions src/views/app/dashboards/default.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Component, Fragment } from 'react';
import React, { Component} from 'react';
import { injectIntl } from 'react-intl';
import { Row } from 'reactstrap';

Expand All @@ -10,12 +10,10 @@ import RecentOrders from '../../../containers/dashboards/RecentOrders';
import Logs from '../../../containers/dashboards/Logs';
import Tickets from '../../../containers/dashboards/Tickets';
import Calendar from '../../../containers/dashboards/Calendar';
import BestSellers from '../../../containers/dashboards/BestSellers';
import ProfileStatuses from '../../../containers/dashboards/ProfileStatuses';
import GradientCardContainer from '../../../containers/dashboards/GradientCardContainer';
import Cakes from '../../../containers/dashboards/Cakes';
import GradientWithRadialProgressCard from '../../../components/cards/GradientWithRadialProgressCard';
import SortableStaticticsRow from '../../../containers/dashboards/SortableStaticticsRow';
import AdvancedSearch from '../../../containers/dashboards/AdvancedSearch';
import SmallLineCharts from '../../../containers/dashboards/SmallLineCharts';
import SalesChartCard from '../../../containers/dashboards/SalesChartCard';
Expand Down

1 comment on commit 6e048c1

@jtarasova
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Осталась одно предупреждение в консоли: Warning: React.createFactory() is deprecated and will be removed in a future major release.
Этот баг находится в коде пакета recompose, они его ещё не починили. Ссылка на issue: acdlite/recompose#806

Please sign in to comment.