mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 00:03:44 +08:00
Add minAccGrace to command line
This commit is contained in:
parent
97affb1206
commit
b57cbcc359
1 changed files with 33 additions and 5 deletions
|
@ -627,7 +627,6 @@ let commandsPaceCaret = {
|
|||
],
|
||||
};
|
||||
|
||||
|
||||
let commandsMinWpm = {
|
||||
title: "Change min wpm mode...",
|
||||
list: [
|
||||
|
@ -672,6 +671,26 @@ let commandsMinAcc = {
|
|||
],
|
||||
};
|
||||
|
||||
let commandsMinAccGrace = {
|
||||
title: "Change min accuracy grace option...",
|
||||
list: [
|
||||
{
|
||||
id: "setMinAccGraceOff",
|
||||
display: "off",
|
||||
exec: () => {
|
||||
UpdateConfig.setMinAccGrace("off");
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "setMinAccGraceOn",
|
||||
display: "on",
|
||||
exec: () => {
|
||||
UpdateConfig.setMinAccGrace("on");
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
let commandsKeymapStyle = {
|
||||
title: "Change keymap style...",
|
||||
list: [
|
||||
|
@ -1533,6 +1552,16 @@ export let defaultCommands = {
|
|||
Commandline.show();
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "changeMinAccGrace",
|
||||
display: "Change min accuracy grace option...",
|
||||
alias: "mingrace",
|
||||
subgroup: true,
|
||||
exec: () => {
|
||||
current.push(commandsMinAccGrace);
|
||||
Commandline.show();
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "changeOppositeShiftMode",
|
||||
display: "Change opposite shift mode...",
|
||||
|
@ -2019,7 +2048,7 @@ export let defaultCommands = {
|
|||
UpdateConfig.apply(JSON.parse(input));
|
||||
UpdateConfig.saveToLocalStorage();
|
||||
Settings.update();
|
||||
Notifications.add("Done",1);
|
||||
Notifications.add("Done", 1);
|
||||
} catch (e) {
|
||||
Notifications.add(
|
||||
"An error occured while importing settings: " + e,
|
||||
|
@ -2032,9 +2061,8 @@ export let defaultCommands = {
|
|||
id: "exportSettingsJSON",
|
||||
display: "Export settings JSON",
|
||||
input: true,
|
||||
defaultValue:"",
|
||||
exec: (input) => {
|
||||
},
|
||||
defaultValue: "",
|
||||
exec: (input) => {},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue