Initial commit.

This commit is contained in:
2025-06-21 17:51:07 +01:00
commit 6fd3a23aa7
296 changed files with 29154 additions and 0 deletions

24
static/js/lib/utils.js Normal file
View File

@@ -0,0 +1,24 @@
// Utility functions
/*
function $(selector) {
return document.querySelector(selector);
}
function $$(selector) {
return document.querySelectorAll(selector);
}
*/
export default class Utils {
static getListFromDict(dict) {
let list = [];
for (let key in dict) {
list.push(dict[key]);
}
return list;
}
static consoleLogIfNotProductionEnvironment(message) {
if (!environment.is_production) {
console.log(message);
}
}
}