mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-04 22:06:06 +02:00
Add user search by bio and sort results by last logged in (#39)
This commit is contained in:
+8
-2
@@ -833,8 +833,9 @@ console.log(`isLinux: ${LINUX}`);
|
||||
* n: number,
|
||||
* offset: number,
|
||||
* search: string,
|
||||
* sort: 'nuisanceFactor' | 'created' | '_created_at' | 'last_login',
|
||||
* sort: 'nuisanceFactor' | 'created' | '_created_at' | 'last_login' | 'relevance',
|
||||
* order: 'ascending', 'descending'
|
||||
* customFields: 'bio', 'displayName'
|
||||
}} GetUsersParameters */
|
||||
/**
|
||||
* Fetch multiple users from API.
|
||||
@@ -6671,7 +6672,9 @@ console.log(`isLinux: ${LINUX}`);
|
||||
this.searchUserParams = {
|
||||
n: 10,
|
||||
offset: 0,
|
||||
search: this.searchText
|
||||
search: this.searchText,
|
||||
customFields: this.searchUserByBio ? "bio" : "displayName",
|
||||
sort: this.searchUserSortByLastLoggedIn ? "last_login" : "relevance"
|
||||
};
|
||||
await this.moreSearchUser();
|
||||
};
|
||||
@@ -6704,6 +6707,9 @@ console.log(`isLinux: ${LINUX}`);
|
||||
|
||||
$app.data.searchWorldLabs = false;
|
||||
|
||||
$app.data.searchUserByBio = false;
|
||||
$app.data.searchUserSortByLastLoggedIn = false;
|
||||
|
||||
$app.methods.searchWorld = function (ref) {
|
||||
this.searchWorldOption = '';
|
||||
var params = {
|
||||
|
||||
Reference in New Issue
Block a user