2 Commits

Author SHA1 Message Date
44d89d3f35 1.3.1 2024-01-24 18:55:46 +01:00
eaf0adaf01 fix: sort legacy chord inputs 2024-01-24 18:55:31 +01:00
5 changed files with 9 additions and 6 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "charachorder-device-manager",
"version": "1.3.0",
"version": "1.3.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "charachorder-device-manager",
"version": "1.3.0",
"version": "1.3.1",
"hasInstallScript": true,
"license": "AGPL-3.0-or-later",
"devDependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "charachorder-device-manager",
"version": "1.3.0",
"version": "1.3.1",
"license": "AGPL-3.0-or-later",
"private": true,
"repository": {

View File

@@ -1,6 +1,6 @@
[package]
name = "app"
version = "1.3.0"
version = "1.3.1"
description = "A Tauri App"
authors = ["Thea Schöbl <dev@theaninova.de>"]
license = "AGPL-3"

View File

@@ -6,7 +6,7 @@
"devPath": "http://localhost:5173",
"distDir": "../build"
},
"package": { "productName": "amacc1ng", "version": "1.3.0" },
"package": { "productName": "amacc1ng", "version": "1.3.1" },
"tauri": {
"allowlist": { "all": false },
"bundle": {

View File

@@ -13,7 +13,10 @@ export function csvChordsToJson(csv: string): CharaChordFile {
.map(line => {
const [input, output] = line.split(/,(?=[^,]*$)/, 2)
return [
input.split("+").map(it => KEYMAP_IDS.get(it.trim())?.code ?? 0),
input
.split("+")
.map(it => KEYMAP_IDS.get(it.trim())?.code ?? 0)
.sort((a, b) => a - b),
output
.trim()
.split("")