mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 18:29:23 +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-transition-group": "4.4.5",
|
||||
"reactstrap": "8.9.0",
|
||||
"seafile-js": "0.2.217",
|
||||
"seafile-js": "0.2.218",
|
||||
"socket.io-client": "^2.2.0",
|
||||
"svg-sprite-loader": "^6.0.11",
|
||||
"svgo-loader": "^3.0.1",
|
||||
@@ -22233,9 +22233,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/seafile-js": {
|
||||
"version": "0.2.217",
|
||||
"resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.217.tgz",
|
||||
"integrity": "sha512-lsXtLZFmLa+8hdI2MTE59hypF2Rd8fHiaG3qZHJ/NTCLdlBplgn8hsHML0SfH04iuC6xsjLQLd6YJCt4fut2ww==",
|
||||
"version": "0.2.218",
|
||||
"resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.218.tgz",
|
||||
"integrity": "sha512-+3EFZIKxYUUU6+iImXFkc0k5wyRrPSdR9bQmB9NNTm1TTjFen5tmldt9nhZ1y/+7fyWjUS+k7JRBudF5YsOLOg==",
|
||||
"dependencies": {
|
||||
"axios": "^1.6.0",
|
||||
"form-data": "4.0.0"
|
||||
@@ -43133,9 +43133,9 @@
|
||||
}
|
||||
},
|
||||
"seafile-js": {
|
||||
"version": "0.2.217",
|
||||
"resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.217.tgz",
|
||||
"integrity": "sha512-lsXtLZFmLa+8hdI2MTE59hypF2Rd8fHiaG3qZHJ/NTCLdlBplgn8hsHML0SfH04iuC6xsjLQLd6YJCt4fut2ww==",
|
||||
"version": "0.2.218",
|
||||
"resolved": "https://registry.npmjs.org/seafile-js/-/seafile-js-0.2.218.tgz",
|
||||
"integrity": "sha512-+3EFZIKxYUUU6+iImXFkc0k5wyRrPSdR9bQmB9NNTm1TTjFen5tmldt9nhZ1y/+7fyWjUS+k7JRBudF5YsOLOg==",
|
||||
"requires": {
|
||||
"axios": "^1.6.0",
|
||||
"form-data": "4.0.0"
|
||||
|
@@ -36,7 +36,7 @@
|
||||
"react-select": "5.7.0",
|
||||
"react-transition-group": "4.4.5",
|
||||
"reactstrap": "8.9.0",
|
||||
"seafile-js": "0.2.217",
|
||||
"seafile-js": "0.2.218",
|
||||
"socket.io-client": "^2.2.0",
|
||||
"svg-sprite-loader": "^6.0.11",
|
||||
"svgo-loader": "^3.0.1",
|
||||
|
@@ -62,15 +62,16 @@ class SidePanel extends Component {
|
||||
const newHistoryGroups = oldHistoryGroups.slice(0);
|
||||
histories.forEach(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);
|
||||
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 {
|
||||
newHistoryGroups.push({
|
||||
month,
|
||||
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