mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 01:15:49 +08:00
fixed lint warninsg
This commit is contained in:
parent
46b1975be6
commit
f99b36c2b6
1 changed files with 26 additions and 26 deletions
|
@ -26,6 +26,10 @@ function showInput(command, placeholder, defaultValue = "") {
|
|||
}
|
||||
}
|
||||
|
||||
export function isSingleListCommandLineActive() {
|
||||
return $("#commandLine").hasClass("allCommands");
|
||||
}
|
||||
|
||||
function showFound() {
|
||||
$("#commandLine .suggestions").empty();
|
||||
let commandsHTML = "";
|
||||
|
@ -143,6 +147,28 @@ function updateSuggested() {
|
|||
showFound();
|
||||
}
|
||||
|
||||
export let show = () => {
|
||||
if (!$(".page.pageLoading").hasClass("hidden")) return;
|
||||
Focus.set(false);
|
||||
$("#commandLine").removeClass("hidden");
|
||||
$("#commandInput").addClass("hidden");
|
||||
if ($("#commandLineWrapper").hasClass("hidden")) {
|
||||
$("#commandLineWrapper")
|
||||
.stop(true, true)
|
||||
.css("opacity", 0)
|
||||
.removeClass("hidden")
|
||||
.animate(
|
||||
{
|
||||
opacity: 1,
|
||||
},
|
||||
100
|
||||
);
|
||||
}
|
||||
$("#commandLine input").val("");
|
||||
updateSuggested();
|
||||
$("#commandLine input").focus();
|
||||
};
|
||||
|
||||
function hide() {
|
||||
UpdateConfig.previewFontFamily(Config.fontFamily);
|
||||
// applyCustomThemeColors();
|
||||
|
@ -204,28 +230,6 @@ function trigger(command) {
|
|||
}
|
||||
}
|
||||
|
||||
export let show = () => {
|
||||
if (!$(".page.pageLoading").hasClass("hidden")) return;
|
||||
Focus.set(false);
|
||||
$("#commandLine").removeClass("hidden");
|
||||
$("#commandInput").addClass("hidden");
|
||||
if ($("#commandLineWrapper").hasClass("hidden")) {
|
||||
$("#commandLineWrapper")
|
||||
.stop(true, true)
|
||||
.css("opacity", 0)
|
||||
.removeClass("hidden")
|
||||
.animate(
|
||||
{
|
||||
opacity: 1,
|
||||
},
|
||||
100
|
||||
);
|
||||
}
|
||||
$("#commandLine input").val("");
|
||||
updateSuggested();
|
||||
$("#commandLine input").focus();
|
||||
};
|
||||
|
||||
function addChildCommands(
|
||||
unifiedCommands,
|
||||
commandItem,
|
||||
|
@ -284,10 +288,6 @@ function generateSingleListOfCommands() {
|
|||
};
|
||||
}
|
||||
|
||||
export function isSingleListCommandLineActive() {
|
||||
return $("#commandLine").hasClass("allCommands");
|
||||
}
|
||||
|
||||
function useSingleListCommandLine(sshow = true) {
|
||||
let allCommands = generateSingleListOfCommands();
|
||||
// if (Config.singleListCommandLine == "manual") {
|
||||
|
|
Loading…
Reference in a new issue