mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-22 18:02:42 +00:00
feat: compound chording actions
This commit is contained in:
@@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
20
package-lock.json
generated
20
package-lock.json
generated
@@ -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": {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -62,16 +62,14 @@ 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 {
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user