mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/general: replace direct API with models
This commit is contained in:
@ -22,6 +22,15 @@ class Api extends events.EventTarget {
|
||||
'administrator',
|
||||
'nobody',
|
||||
];
|
||||
this.rankNames = new Map([
|
||||
['anonymous', 'Anonymous'],
|
||||
['restricted', 'Restricted user'],
|
||||
['regular', 'Regular user'],
|
||||
['power', 'Power user'],
|
||||
['moderator', 'Moderator'],
|
||||
['administrator', 'Administrator'],
|
||||
['nobody', 'Nobody'],
|
||||
]);
|
||||
}
|
||||
|
||||
get(url, options) {
|
||||
|
Reference in New Issue
Block a user