mirror of
https://github.com/openvk/openvk
synced 2025-03-04 00:29:57 +03:00
Merge branch 'master' into static-analysis
This commit is contained in:
commit
6f722bbb43
3 changed files with 19 additions and 5 deletions
|
@ -38,7 +38,6 @@ body.dimmed > .dimmer #absolute_territory {
|
|||
}
|
||||
|
||||
.ovk-diag-head {
|
||||
height: 25%;
|
||||
padding: 5px;
|
||||
background-color: #757575;
|
||||
border-bottom: 1px solid #3e3e3e;
|
||||
|
@ -49,11 +48,12 @@ body.dimmed > .dimmer #absolute_territory {
|
|||
|
||||
.ovk-diag-body {
|
||||
padding: 20px;
|
||||
overflow-y: auto;
|
||||
max-height: 80vh
|
||||
}
|
||||
|
||||
.ovk-diag-action {
|
||||
padding: 10px;
|
||||
height: 25%;
|
||||
background-color: #d4d4d4;
|
||||
text-align: right;
|
||||
}
|
||||
|
|
|
@ -42,8 +42,22 @@ window.OVKAPI = new class {
|
|||
return
|
||||
}
|
||||
|
||||
const url = `/method/${method}?auth_mechanism=roaming&${new URLSearchParams(params).toString()}&v=5.200`
|
||||
const res = await fetch(url)
|
||||
const form_data = new FormData
|
||||
Object.entries(params).forEach(fd => {
|
||||
form_data.append(fd[0], fd[1])
|
||||
})
|
||||
|
||||
const __url_params = new URLSearchParams
|
||||
__url_params.append("v", "5.200")
|
||||
if(window.openvk.current_id != 0) {
|
||||
__url_params.append("auth_mechanism", "roaming")
|
||||
}
|
||||
|
||||
const url = `/method/${method}?${__url_params.toString()}`
|
||||
const res = await fetch(url, {
|
||||
method: "POST",
|
||||
body: form_data,
|
||||
})
|
||||
const json_response = await res.json()
|
||||
|
||||
if(json_response.response) {
|
||||
|
|
|
@ -318,7 +318,7 @@
|
|||
"follower" = "Follower";
|
||||
"friends_add" = "Add to friends";
|
||||
"friends_delete" = "Remove from friends";
|
||||
"friends_reject" = "Reject request";
|
||||
"friends_reject" = "Cancel request";
|
||||
"friends_accept" = "Accept request";
|
||||
"friends_leave_in_flw" = "Leave in followers";
|
||||
"friends_add_msg" = "Now you're friends.";
|
||||
|
|
Loading…
Reference in a new issue