rework ws responses to user, send events to user via ws
This commit is contained in:
@@ -73,7 +73,6 @@
|
||||
<button onclick="showForm('mod-user-appearance')">POST /mod/user/appearence</button>
|
||||
<button onclick="showForm('mod-user-about')">POST /mod/user/about</button>
|
||||
<button onclick="showForm('accept-connection')">POST /mod/connection/accept</button>
|
||||
<button onclick="showForm('delete-connection')" class="warn">POST /mod/connection/delete</button>
|
||||
<button onclick="showForm('add-users')">POST /mod/group/addusers</button>
|
||||
<button onclick="showForm('remove-users')">POST /mod/group/removeusers</button>
|
||||
<button onclick="showForm('group-color')">POST /mod/group/color</button>
|
||||
@@ -81,6 +80,7 @@
|
||||
<button onclick="showForm('get-groups')">POST /get/groups</button>
|
||||
<button onclick="showForm('get-connections')">POST /get/connections</button>
|
||||
<button onclick="showForm('get-members')">POST /get/group/members</button>
|
||||
<button onclick="showForm('del-user')" class="warn">POST /del/user</button>
|
||||
<button onclick="showForm('del-group')" class="warn">POST /del/group</button>
|
||||
<button onclick="showForm('del-connection')" class="warn">POST /del/connection</button>
|
||||
<button onclick="showForm('get-connection-messages')">POST /get/connection/messages</button>
|
||||
@@ -164,14 +164,6 @@
|
||||
],
|
||||
submit: () => httpPost('/mod/connection/accept', { token:'ca-token', connectionid:'ca-connectionid' })
|
||||
},
|
||||
'delete-connection': {
|
||||
title: 'POST /mod/connection/delete — delete connection',
|
||||
fields: [
|
||||
{ id: 'cd-token', label: 'token', ph: '' },
|
||||
{ id: 'cd-connectionid', label: 'connectionid', ph: 'UUID' },
|
||||
],
|
||||
submit: () => httpPost('/mod/connection/delete', { token:'cd-token', connectionid:'cd-connectionid' })
|
||||
},
|
||||
'add-users': {
|
||||
title: 'POST /mod/group/addusers — add users (owner only)',
|
||||
fields: [
|
||||
@@ -230,6 +222,13 @@
|
||||
],
|
||||
submit: () => httpPost('/get/group/members', { token:'gm-token', group:'gm-group' })
|
||||
},
|
||||
'del-user': {
|
||||
title: 'POST /del/user — delete own account',
|
||||
fields: [
|
||||
{ id: 'du-token', label: 'token', ph: '' },
|
||||
],
|
||||
submit: () => httpPost('/del/user', { token:'du-token' })
|
||||
},
|
||||
'del-group': {
|
||||
title: 'POST /del/group — delete group (owner only)',
|
||||
fields: [
|
||||
|
||||
Reference in New Issue
Block a user