unnecessary exports

This commit is contained in:
Miodec 2023-08-10 18:55:17 +02:00
parent 0b69b2e1e3
commit 08bc000cf2
16 changed files with 23 additions and 24 deletions

View file

@ -49,7 +49,7 @@ function showInput(
}
}
export function isSingleListCommandLineActive(): boolean {
function isSingleListCommandLineActive(): boolean {
return state["usingSingleList"];
}
@ -223,7 +223,7 @@ function updateSuggested(): void {
updateActiveEntry();
}
export let show = (): void => {
let show = (): void => {
themeChosen = false;
activeIndex = 0;
commandLineMouseMode = false;

View file

@ -1,6 +1,6 @@
import * as UpdateConfig from "../../config";
export const subgroup: MonkeyTypes.CommandsSubgroup = {
const subgroup: MonkeyTypes.CommandsSubgroup = {
title: "Custom theme",
configKey: "customTheme",
list: [

View file

@ -3,7 +3,7 @@ import { Auth } from "../../firebase";
import * as DB from "../../db";
import * as ThemeController from "../../controllers/theme-controller";
export const subgroup: MonkeyTypes.CommandsSubgroup = {
const subgroup: MonkeyTypes.CommandsSubgroup = {
title: "Custom themes list...",
// configKey: "customThemeId",
beforeList: (): void => update(),

View file

@ -1,6 +1,6 @@
import * as UpdateConfig from "../../config";
export const subgroup: MonkeyTypes.CommandsSubgroup = {
const subgroup: MonkeyTypes.CommandsSubgroup = {
title: "Set enable ads...",
configKey: "ads",
list: [

View file

@ -2,7 +2,7 @@ import * as UpdateConfig from "../../config";
import * as TestLogic from "../../test/test-logic";
import { capitalizeFirstLetterOfEachWord } from "../../utils/misc";
export const subgroup: MonkeyTypes.CommandsSubgroup = {
const subgroup: MonkeyTypes.CommandsSubgroup = {
title: "Change keymap layout...",
configKey: "keymapLayout",
list: [

View file

@ -3,7 +3,7 @@ import * as ChallengeController from "../../controllers/challenge-controller";
import * as TestLogic from "../../test/test-logic";
import { capitalizeFirstLetterOfEachWord } from "../../utils/misc";
export const subgroup: MonkeyTypes.CommandsSubgroup = {
const subgroup: MonkeyTypes.CommandsSubgroup = {
title: "Load challenge...",
list: [],
};

View file

@ -56,4 +56,3 @@ function update(): void {
}
export default commands;
export { update };

View file

@ -2,7 +2,7 @@ import Config, * as UpdateConfig from "../../config";
import { capitalizeFirstLetterOfEachWord } from "../../utils/misc";
import * as ThemeController from "../../controllers/theme-controller";
export const subgroup: MonkeyTypes.CommandsSubgroup = {
const subgroup: MonkeyTypes.CommandsSubgroup = {
title: "Theme...",
configKey: "theme",
list: [],

View file

@ -14,11 +14,11 @@ type PossibleType =
type PossibleTypeAsync = "layoutfluid";
export function isConfigKeyValid(name: string): boolean {
if (name === null || name === undefined || name === "") return false;
if (name.length > 30) return false;
return /^[0-9a-zA-Z_.\-#+]+$/.test(name);
}
// function isConfigKeyValid(name: string): boolean {
// if (name === null || name === undefined || name === "") return false;
// if (name.length > 30) return false;
// return /^[0-9a-zA-Z_.\-#+]+$/.test(name);
// }
function invalid(key: string, val: unknown, customMessage?: string): void {
if (customMessage === undefined) {

View file

@ -23,7 +23,7 @@ const wrapperId = "googleSignUpPopupWrapper";
let signedInUser: UserCredential | undefined = undefined;
export function show(credential: UserCredential): void {
function show(credential: UserCredential): void {
Skeleton.append(wrapperId);
if (!isPopupVisible(wrapperId)) {
@ -45,7 +45,7 @@ export function show(credential: UserCredential): void {
}
}
export async function hide(): Promise<void> {
async function hide(): Promise<void> {
if (isPopupVisible(wrapperId)) {
if (signedInUser !== undefined) {
Notifications.add("Sign up process canceled", 0, {

View file

@ -13,7 +13,7 @@ const wrapperId = "mobileTestConfigPopupWrapper";
const el = $("#mobileTestConfigPopup");
export function update(): void {
function update(): void {
el.find(".button").removeClass("active");
el.find(`.modeGroup .button[mode='${Config.mode}']`).addClass("active");

View file

@ -6,7 +6,7 @@ const wrapperId = "newResultFilterPresetPopupWrapper";
// the function to call after name is inputed by user
let callbackFunc: ((name: string) => void) | null = null;
export function show(): void {
function show(): void {
Skeleton.append(wrapperId);
if (!isPopupVisible(wrapperId)) {
@ -22,7 +22,7 @@ export function show(): void {
}
}
export function hide(): void {
function hide(): void {
if (isPopupVisible(wrapperId)) {
$("#newResultFilterPresetPopupWrapper")
.stop(true, true)

View file

@ -10,7 +10,7 @@ import { getSnapshot, setSnapshot } from "../db";
const wrapperId = "streakHourOffsetPopupWrapper";
export function show(): void {
function show(): void {
if (!ConnectionState.get()) {
Notifications.add("You are offline", 0, {
duration: 2,

View file

@ -38,7 +38,7 @@ interface Input {
let activePopup: SimplePopup | null = null;
export const list: { [key: string]: SimplePopup } = {};
const list: { [key: string]: SimplePopup } = {};
class SimplePopup {
parameters: string[];
wrapper: JQuery;
@ -239,7 +239,7 @@ class SimplePopup {
}
}
export function hide(): void {
function hide(): void {
if (activePopup) return activePopup.hide();
$("#simplePopupWrapper")
.stop(true, true)

View file

@ -4,7 +4,7 @@ import * as Skeleton from "./skeleton";
const wrapperId = "versionHistoryWrapper";
export function show(): void {
function show(): void {
Skeleton.append(wrapperId);
$("#versionHistory").html(`
<div class="preloader">

View file

@ -9,7 +9,7 @@ import * as TestUI from "./test/test-ui";
import { get as getActivePage } from "./states/active-page";
import { isLocalhost } from "./utils/misc";
export function updateKeytips(): void {
function updateKeytips(): void {
const modifierKey = window.navigator.userAgent.toLowerCase().includes("mac")
? "cmd"
: "ctrl";