#19, added tags, and tags filtering

This commit is contained in:
2026-02-13 22:02:31 +02:00
parent 5c934e0ad2
commit b11e763fd9
11 changed files with 90 additions and 23 deletions
+1
View File
@@ -39,6 +39,7 @@ export default {
engine.clearScene();
engine.stop();
engine.tm?.setGame(null);
engine.destroy();
},
computed:{
+13 -1
View File
@@ -1,5 +1,7 @@
import { useAppStore } from '@/stores/app';
const debounceData = [];
export default {
data(){
return {
@@ -56,6 +58,16 @@ export default {
if (this.store?.prefs?.debug){
console.log(...args);
}
}
},
debounce(fn){
let f = debounceData.find(f=>f.fn == fn);
if (f){
clearTimeout(f.to);
}else{
f = {fn};
debounceData.push(f);
}
f.to = setTimeout(...arguments);
},
}
}