Compare commits

..

No commits in common. "bf852dd3836fb720ef6764da1c7a2b33f57f1f18" and "9de8584a5e84e21f96b49f9c51c91313199f826a" have entirely different histories.

5 changed files with 417 additions and 216 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": "3.0.1", "luxon": "2.4.0",
"morgan": "1.10.0", "morgan": "1.10.0",
"webdav": "4.10.0", "webdav": "4.10.0",
"winston": "3.8.1" "winston": "3.8.0"
}, },
"packageManager": "yarn@3.2.1" "packageManager": "yarn@3.2.1"
} }

View File

@ -61,12 +61,18 @@ function getAddonList() {
statusTools.setStatus(status); statusTools.setStatus(status);
} }
let addons = result.body.data.addons; let addons = result.body.data.addons;
addons.sort((a, b) => { let installed = [];
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(addons); resolve(installed);
}) })
.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:3.0.1": "luxon@npm:2.4.0":
version: 3.0.1 version: 2.4.0
resolution: "luxon@npm:3.0.1" resolution: "luxon@npm:2.4.0"
checksum: aa966eb919bf95b1bd819cda784d1f6f66e3fb65bd9ec7bf68b6a978eeb4e3e14f7e2275021b473f93b15b6b7ba2e5a30471e53add3929a7e695fcfd6dd40ec8 checksum: 6071028d65cc3d3bdab5e6a3995dd97411c92bb3b3163a02deb7b7014318ad3a6fd750ae77131c42141b717c14aef8880d3130f265281d500ef2365f7265b3f3
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: 3.0.1 luxon: 2.4.0
morgan: 1.10.0 morgan: 1.10.0
webdav: 4.10.0 webdav: 4.10.0
winston: 3.8.1 winston: 3.8.0
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.1": "winston@npm:3.8.0":
version: 3.8.1 version: 3.8.0
resolution: "winston@npm:3.8.1" resolution: "winston@npm:3.8.0"
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: 14637222a4239f1ee7e629dbbf0c65161abe95eeb7acd275caf210c5d47d93254fdb007291ea75b5e241d4bb6dd3c29d000bd04ae5420a347711ae7cd0b2da88 checksum: a091fe4959c04cdab5be823b702c5231a9e5eaec2a892e865dae8cb296e5ab0ac4bba004714b3e48e1efc5679355bbbad2f9fc4db1a23d8ebb22f9025831be2d
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.1" "release-it": "15.1.0"
}, },
"scripts": { "scripts": {
"release": "release-it" "release": "release-it"

597
yarn.lock

File diff suppressed because it is too large Load Diff