Compare commits

..

4 Commits

Author SHA1 Message Date
renovate[bot]
bf852dd383
⬆️ Update dependency release-it to v15.1.1 (#158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-12 22:34:58 +02:00
renovate[bot]
a9e6effc4f
⬆️ Update dependency winston to v3.8.1 (#159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-12 22:34:58 +02:00
renovate[bot]
03c9ed5925
⬆️ Update dependency luxon to v3 (#162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-07-12 22:34:57 +02:00
a3f92e4744
🚑 Fix issue with new api addon shema #160 2022-07-12 22:34:31 +02:00
5 changed files with 216 additions and 417 deletions

View File

@ -19,10 +19,10 @@
"got": "12.1.0", "got": "12.1.0",
"http-errors": "2.0.0", "http-errors": "2.0.0",
"jquery": "3.6.0", "jquery": "3.6.0",
"luxon": "2.4.0", "luxon": "3.0.1",
"morgan": "1.10.0", "morgan": "1.10.0",
"webdav": "4.10.0", "webdav": "4.10.0",
"winston": "3.8.0" "winston": "3.8.1"
}, },
"packageManager": "yarn@3.2.1" "packageManager": "yarn@3.2.1"
} }

View File

@ -61,18 +61,12 @@ function getAddonList() {
statusTools.setStatus(status); statusTools.setStatus(status);
} }
let addons = result.body.data.addons; let addons = result.body.data.addons;
let installed = []; addons.sort((a, b) => {
for (let current of addons) {
if (current.installed === true) {
installed.push({ slug: current.slug, name: current.name })
}
}
installed.sort((a, b) => {
let textA = a.name.toUpperCase(); let textA = a.name.toUpperCase();
let textB = b.name.toUpperCase(); let textB = b.name.toUpperCase();
return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; return (textA < textB) ? -1 : (textA > textB) ? 1 : 0;
}); });
resolve(installed); resolve(addons);
}) })
.catch((error) => { .catch((error) => {
statusTools.setError(`Fail to fetch addons list (${error.message})`, 1); statusTools.setError(`Fail to fetch addons list (${error.message})`, 1);

View File

@ -938,10 +938,10 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"luxon@npm:2.4.0": "luxon@npm:3.0.1":
version: 2.4.0 version: 3.0.1
resolution: "luxon@npm:2.4.0" resolution: "luxon@npm:3.0.1"
checksum: 6071028d65cc3d3bdab5e6a3995dd97411c92bb3b3163a02deb7b7014318ad3a6fd750ae77131c42141b717c14aef8880d3130f265281d500ef2365f7265b3f3 checksum: aa966eb919bf95b1bd819cda784d1f6f66e3fb65bd9ec7bf68b6a978eeb4e3e14f7e2275021b473f93b15b6b7ba2e5a30471e53add3929a7e695fcfd6dd40ec8
languageName: node languageName: node
linkType: hard linkType: hard
@ -1105,10 +1105,10 @@ __metadata:
got: 12.1.0 got: 12.1.0
http-errors: 2.0.0 http-errors: 2.0.0
jquery: 3.6.0 jquery: 3.6.0
luxon: 2.4.0 luxon: 3.0.1
morgan: 1.10.0 morgan: 1.10.0
webdav: 4.10.0 webdav: 4.10.0
winston: 3.8.0 winston: 3.8.1
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -1528,9 +1528,9 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"winston@npm:3.8.0": "winston@npm:3.8.1":
version: 3.8.0 version: 3.8.1
resolution: "winston@npm:3.8.0" resolution: "winston@npm:3.8.1"
dependencies: dependencies:
"@dabh/diagnostics": ^2.0.2 "@dabh/diagnostics": ^2.0.2
async: ^3.2.3 async: ^3.2.3
@ -1542,7 +1542,7 @@ __metadata:
stack-trace: 0.0.x stack-trace: 0.0.x
triple-beam: ^1.3.0 triple-beam: ^1.3.0
winston-transport: ^4.5.0 winston-transport: ^4.5.0
checksum: a091fe4959c04cdab5be823b702c5231a9e5eaec2a892e865dae8cb296e5ab0ac4bba004714b3e48e1efc5679355bbbad2f9fc4db1a23d8ebb22f9025831be2d checksum: 14637222a4239f1ee7e629dbbf0c65161abe95eeb7acd275caf210c5d47d93254fdb007291ea75b5e241d4bb6dd3c29d000bd04ae5420a347711ae7cd0b2da88
languageName: node languageName: node
linkType: hard linkType: hard

View File

@ -3,7 +3,7 @@
"packageManager": "yarn@3.2.1", "packageManager": "yarn@3.2.1",
"devDependencies": { "devDependencies": {
"auto-changelog": "2.4.0", "auto-changelog": "2.4.0",
"release-it": "15.1.0" "release-it": "15.1.1"
}, },
"scripts": { "scripts": {
"release": "release-it" "release": "release-it"

597
yarn.lock

File diff suppressed because it is too large Load Diff