Finished groups

This commit is contained in:
a-ill
2023-08-01 15:56:41 +03:00
parent 3bc8dd4239
commit 3b8cd8b9f7
70 changed files with 2033 additions and 18556 deletions

View File

@@ -1,12 +1,15 @@
import {getData, sendData} from "/js/libraries/serverTools.js"
export function getUser(user,callbackOuter) {
export function getUser(user,loaded,callbackOuter) {
let callback = function(response) {
Object.assign(user,JSON.parse(response))
if(callbackOuter!=undefined) {
callbackOuter()
}
loaded.update((val) => {
return val + 1
})
}
getData("/xx/get-user",callback)
}