- added csv import

- added somewhat real stats to dashboard
- basic search logic
This commit is contained in:
2023-05-02 18:23:47 +02:00
parent e869615ec7
commit d1d717a988
13 changed files with 270 additions and 29 deletions

12
static/js/searchBox.js Normal file
View File

@ -0,0 +1,12 @@
document.getElementById("SearchBox").addEventListener("keyup", handleSearchChange);
function handleSearchChange(e) {
console.log(e.target.value);
// Check if known prefix is used (either > or #)
if (e.target.value[0] == ">") {
// Search for commands
} else if (e.target.value[0] == "#") {
// Search for SKU
} else {
// Search for name
}
}