hard drop rotation

This commit is contained in:
2026-03-16 13:30:20 +01:00
parent 4320b46e37
commit 81b243bd85
2 changed files with 9 additions and 1 deletions

View File

@@ -370,7 +370,7 @@ stylesheetSelect.oninput = function (event) {
.then((json) => {
json = json.filter((item) => (item.type == "skin" && item.format == "tetrioraster" && /\.(?:png|jpg|jpeg|gif|bmp|webp|svg)$/i.test(item.path)))
const groups = Map.groupBy(json, (skin) => skin.author)
const data = groups.entries().map(([author, skins]) => {
var data = groups.entries().map(([author, skins]) => {
return {
text: author,
children: skins.map((skin) => {
@@ -388,6 +388,7 @@ stylesheetSelect.oninput = function (event) {
text: "A forest"
}]
})
data.sort((group1, group2) => group1.text > group2.text)
$('#skinURLSelect').select2({data: data});
})
break;