diff --git a/icons.config.ts b/icons.config.ts index 5038add1..759d7fe9 100644 --- a/icons.config.ts +++ b/icons.config.ts @@ -90,6 +90,10 @@ const config: IconsConfig = { "timer", "target", "download", + "download_2", + "upload_2", + "stat_minus_2", + "stat_2", ], codePoints: { speed: "e9e4", @@ -104,6 +108,10 @@ const config: IconsConfig = { upload_file: "e9fc", no_sound: "e710", sentiment_extremely_dissatisfied: "f194", + download_2: "f523", + upload_2: "ff52", + stat_minus_2: "e69c", + stat_2: "e699", }, } diff --git a/package-lock.json b/package-lock.json index a886c5a9..660a168c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "charachorder-device-manager", - "version": "0.6.5", + "version": "0.7.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "charachorder-device-manager", - "version": "0.6.5", + "version": "0.7.0", "hasInstallScript": true, "license": "AGPL-3.0-or-later", "devDependencies": { @@ -15,8 +15,8 @@ "@codemirror/lang-javascript": "^6.2.1", "@codemirror/language": "^6.9.0", "@codemirror/state": "^6.2.1", - "@fontsource-variable/material-symbols-rounded": "^5.0.11", - "@fontsource-variable/noto-sans-mono": "^5.0.12", + "@fontsource-variable/material-symbols-rounded": "^5.0.16", + "@fontsource-variable/noto-sans-mono": "^5.0.17", "@material/material-color-utilities": "^0.2.7", "@modyfi/vite-plugin-yaml": "^1.0.4", "@sveltejs/adapter-static": "^2.0.3", @@ -2417,15 +2417,15 @@ } }, "node_modules/@fontsource-variable/material-symbols-rounded": { - "version": "5.0.11", - "resolved": "https://registry.npmjs.org/@fontsource-variable/material-symbols-rounded/-/material-symbols-rounded-5.0.11.tgz", - "integrity": "sha512-WelrZz3MJErCcMPFPJBWS8mL2dY80lnS/eKYisiiUp9dW2rsU/yULQ/ihf4fBtPc5v9PA/1Uh7gW/X/Bll6CuQ==", + "version": "5.0.16", + "resolved": "https://registry.npmjs.org/@fontsource-variable/material-symbols-rounded/-/material-symbols-rounded-5.0.16.tgz", + "integrity": "sha512-HtH/bpUBj/9irIouf2uPaB+qf6HKpR0JFxSDK2HGaqOLsJqIxs4RJB2Y9IXASwTN50FBd1g8KZ6O5vNYEsU94A==", "dev": true }, "node_modules/@fontsource-variable/noto-sans-mono": { - "version": "5.0.12", - "resolved": "https://registry.npmjs.org/@fontsource-variable/noto-sans-mono/-/noto-sans-mono-5.0.12.tgz", - "integrity": "sha512-OMDL6elwLMSEOdmWyRkA4ETGLyXv84LAtFPoZFj+N1pUy0L1om9Qz5f7DzwxdRA0HbciuJKRBa7XQGkMLjQZUg==", + "version": "5.0.17", + "resolved": "https://registry.npmjs.org/@fontsource-variable/noto-sans-mono/-/noto-sans-mono-5.0.17.tgz", + "integrity": "sha512-EpK1L28ZahAschdLmCCjHVoYNAystRlx/eduGKt9F6m4zln7x+CleAVWwqgAXOp/GDuTgVWwr1aPqcRFzwjQbg==", "dev": true }, "node_modules/@isaacs/cliui": { diff --git a/package.json b/package.json index 84f98b4b..e65b2462 100644 --- a/package.json +++ b/package.json @@ -35,8 +35,8 @@ "@codemirror/lang-javascript": "^6.2.1", "@codemirror/language": "^6.9.0", "@codemirror/state": "^6.2.1", - "@fontsource-variable/material-symbols-rounded": "^5.0.11", - "@fontsource-variable/noto-sans-mono": "^5.0.12", + "@fontsource-variable/material-symbols-rounded": "^5.0.16", + "@fontsource-variable/noto-sans-mono": "^5.0.17", "@material/material-color-utilities": "^0.2.7", "@modyfi/vite-plugin-yaml": "^1.0.4", "@sveltejs/adapter-static": "^2.0.3", diff --git a/src/lib/assets/keymaps/keyboard.yml b/src/lib/assets/keymaps/keyboard.yml index 52863b94..8c61a08b 100644 --- a/src/lib/assets/keymaps/keyboard.yml +++ b/src/lib/assets/keymaps/keyboard.yml @@ -51,3 +51,11 @@ actions: id: "RELEASE_KEYS" title: Release all keys, but not keyboard modifiers icon: text_rotate_up + 523: + id: "PRESS_NEXT" + title: "Press and do not release the next key/action" + icon: download + 524: + id: "RELEASE_NEXT" + title: "Release the next key/action in the sequence" + icon: upload diff --git a/src/tools/minify-icon-font.ts b/src/tools/minify-icon-font.ts index 542d15cb..998c3fb4 100644 --- a/src/tools/minify-icon-font.ts +++ b/src/tools/minify-icon-font.ts @@ -62,15 +62,13 @@ for (const icon of icons) { .flatMap(it => [...it]) .map(it => it.codePointAt(0).toString(16)) - if (codePoints.length === 0) { - const codePoint = config.codePoints[icon] - if (config.codePoints?.[icon]) { - glyphs.push(config.codePoints[icon]) - } else { - console.log() - console.error(`${icon} code point could not be determined. Add it to config.codePoints.`) - process.exit(-1) - } + const codePoint = config.codePoints[icon] + if (codePoint) { + glyphs.push(codePoint) + } else if (codePoints.length === 0) { + console.log() + console.error(`${icon} code point could not be determined. Add it to config.codePoints.`) + process.exit(-1) } glyphs.push(...codePoints)