mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 20:08:19 +00:00
Upgrade webpack 2 (#4748)
* update webpack to version 4 * repair build bug * update package code * optimize package script * update seafile-editor version * repair code bug
This commit is contained in:
@@ -2,8 +2,8 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { gettext } from '../../utils/constants';
|
||||
import { seafileAPI } from '../../utils/seafile-api';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import { Modal, ModalHeader, ModalBody, ModalFooter, Input, Button } from 'reactstrap';
|
||||
import Utils from '../../utils/utils';
|
||||
import toaster from '../toast';
|
||||
|
||||
class RenameGroupDialog extends React.Component {
|
||||
|
@@ -389,7 +389,7 @@ class MarkdownEditor extends React.Component {
|
||||
return;
|
||||
case 'update_users':
|
||||
for (var prop in data.users) {
|
||||
if (data.users.hasOwnProperty(prop)) {
|
||||
if (Object.prototype.hasOwnProperty.call(data.users, prop)) {
|
||||
if (prop === this.socket_id) {
|
||||
data.users[prop]['myself'] = true;
|
||||
break;
|
||||
@@ -625,7 +625,7 @@ class MarkdownEditor extends React.Component {
|
||||
setTimeout(() => {
|
||||
let url = new URL(window.location.href);
|
||||
if (url.hash) {
|
||||
window.location.href = window.location.href;
|
||||
window.location.href = url;
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
|
||||
import { siteRoot, gettext, orgID } from '../../utils/constants';
|
||||
import { seafileAPI } from '../../utils/seafile-api';
|
||||
import { Utils } from '../../utils/seafile-api';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import toaster from '../../components/toast';
|
||||
import OrgGroupInfo from '../../models/org-group';
|
||||
import MainPanelTopbar from './main-panel-topbar';
|
||||
|
Reference in New Issue
Block a user