- Mail in a Box: comandi per aggiungere/modificare/rimuovere le caselle di posta

- aggiunto idMyGroup: ospiti siti di gruppi (AbitareGliIblei)
This commit is contained in:
Surya Paolo
2024-09-12 14:49:30 +02:00
parent 16ddb8095e
commit 791e18f167
39 changed files with 647 additions and 88 deletions

View File

@@ -362,8 +362,10 @@ export const useGlobalStore = defineStore('GlobalStore', {
return userStore.my.profile.friends
else if (table === 'friendsandme')
return [{ username: userStore.my.username }, ...userStore.my.profile.friends]
// else if (table === 'mygroups')
// return userStore.groups
else if (table === 'mygroups')
return userStore.groups
return state.mygroups
else if (table === 'sendmsgs')
return messageStore.last_msgs
else if (table === 'sendnotifs')
@@ -1923,12 +1925,16 @@ export const useGlobalStore = defineStore('GlobalStore', {
const newarr = []
for (const value of myarr) {
let label = value
if (table === 'mygroups')
label = value.descr
else if (table === 'circuits')
let valout = value
// if (table === 'mygroups') {
// label = value.descr
// valout = value.groupname
if (table === 'circuits') {
label = value.name
}
newarr.push({ value, label })
// console.log('value', value, 'label', label)
newarr.push({ value: valout, label })
}
myarr = newarr
@@ -2192,6 +2198,22 @@ export const useGlobalStore = defineStore('GlobalStore', {
})
},
async getMailInABox(cmd: string, record: any = undefined) {
const mydata = {
cmd,
tokcheck: "php8.1_version_762321HSD121nJDokq@?!aFS.tar.gz",
record,
}
return Api.SendReq('/admin/miab', 'POST', mydata)
.then((res) => {
return res.data
}).catch((error) => {
return false
})
},
}