mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 10:58:33 +00:00
feat: update seafile-js version
This commit is contained in:
14
frontend/package-lock.json
generated
14
frontend/package-lock.json
generated
@@ -41,7 +41,7 @@
|
|||||||
"react-select": "5.7.0",
|
"react-select": "5.7.0",
|
||||||
"react-transition-group": "4.4.5",
|
"react-transition-group": "4.4.5",
|
||||||
"reactstrap": "8.9.0",
|
"reactstrap": "8.9.0",
|
||||||
"seafile-js": "0.2.217",
|
"seafile-js": "0.2.218",
|
||||||
"socket.io-client": "^2.2.0",
|
"socket.io-client": "^2.2.0",
|
||||||
"svg-sprite-loader": "^6.0.11",
|
"svg-sprite-loader": "^6.0.11",
|
||||||
"svgo-loader": "^3.0.1",
|
"svgo-loader": "^3.0.1",
|
||||||
@@ -22233,9 +22233,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/seafile-js": {
|
"node_modules/seafile-js": {
|
||||||
"version": "0.2.217",
|
"version": "0.2.218",
|
||||||
"resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.217.tgz",
|
"resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.218.tgz",
|
||||||
"integrity": "sha512-lsXtLZFmLa+8hdI2MTE59hypF2Rd8fHiaG3qZHJ/NTCLdlBplgn8hsHML0SfH04iuC6xsjLQLd6YJCt4fut2ww==",
|
"integrity": "sha512-+3EFZIKxYUUU6+iImXFkc0k5wyRrPSdR9bQmB9NNTm1TTjFen5tmldt9nhZ1y/+7fyWjUS+k7JRBudF5YsOLOg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.6.0",
|
"axios": "^1.6.0",
|
||||||
"form-data": "4.0.0"
|
"form-data": "4.0.0"
|
||||||
@@ -43133,9 +43133,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"seafile-js": {
|
"seafile-js": {
|
||||||
"version": "0.2.217",
|
"version": "0.2.218",
|
||||||
"resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.217.tgz",
|
"resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.218.tgz",
|
||||||
"integrity": "sha512-lsXtLZFmLa+8hdI2MTE59hypF2Rd8fHiaG3qZHJ/NTCLdlBplgn8hsHML0SfH04iuC6xsjLQLd6YJCt4fut2ww==",
|
"integrity": "sha512-+3EFZIKxYUUU6+iImXFkc0k5wyRrPSdR9bQmB9NNTm1TTjFen5tmldt9nhZ1y/+7fyWjUS+k7JRBudF5YsOLOg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"axios": "^1.6.0",
|
"axios": "^1.6.0",
|
||||||
"form-data": "4.0.0"
|
"form-data": "4.0.0"
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
"react-select": "5.7.0",
|
"react-select": "5.7.0",
|
||||||
"react-transition-group": "4.4.5",
|
"react-transition-group": "4.4.5",
|
||||||
"reactstrap": "8.9.0",
|
"reactstrap": "8.9.0",
|
||||||
"seafile-js": "0.2.217",
|
"seafile-js": "0.2.218",
|
||||||
"socket.io-client": "^2.2.0",
|
"socket.io-client": "^2.2.0",
|
||||||
"svg-sprite-loader": "^6.0.11",
|
"svg-sprite-loader": "^6.0.11",
|
||||||
"svgo-loader": "^3.0.1",
|
"svgo-loader": "^3.0.1",
|
||||||
|
@@ -62,15 +62,16 @@ class SidePanel extends Component {
|
|||||||
const newHistoryGroups = oldHistoryGroups.slice(0);
|
const newHistoryGroups = oldHistoryGroups.slice(0);
|
||||||
histories.forEach(history => {
|
histories.forEach(history => {
|
||||||
const { date } = history;
|
const { date } = history;
|
||||||
const month = moment(date).format('YYYY-MM');
|
const momentDate = moment(date);
|
||||||
|
const month = momentDate.format('YYYY-MM');
|
||||||
const monthItem = newHistoryGroups.find(item => item.month === month);
|
const monthItem = newHistoryGroups.find(item => item.month === month);
|
||||||
if (monthItem) {
|
if (monthItem) {
|
||||||
monthItem.children.push({ day: moment(date).format('YYYY-MM-DD'), showDaily: false, children: [ history ] });
|
monthItem.children.push({ day: momentDate.format('YYYY-MM-DD'), showDaily: false, children: [ history ] });
|
||||||
} else {
|
} else {
|
||||||
newHistoryGroups.push({
|
newHistoryGroups.push({
|
||||||
month,
|
month,
|
||||||
children: [
|
children: [
|
||||||
{ day: moment(date).format('YYYY-MM-DD'), showDaily: false, children: [ history ] }
|
{ day: momentDate.format('YYYY-MM-DD'), showDaily: false, children: [ history ] }
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user