rewrite some fetch methods to use the useAxios hook

This commit is contained in:
geoffrey45
2022-06-16 14:18:45 +03:00
parent 600b267ce4
commit 92e2420174
17 changed files with 305 additions and 284 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
import useQStore from "@/stores/queue"
import useQStore from "@/stores/queue";
let key_down_fired = false;
@@ -9,12 +9,12 @@ function focusSearchBox() {
}
export default function (queue: typeof useQStore) {
const q = queue()
window.addEventListener("keydown", (e: any) => {
let target = e.target;
const q = queue();
window.addEventListener("keydown", (e: KeyboardEvent) => {
let target = e.target as HTMLElement;
let ctrlKey = e.ctrlKey;
function FocusedOnInput(target: any) {
function FocusedOnInput(target: HTMLElement) {
return target.tagName === "INPUT" || target.tagName === "TEXTAREA";
}