eslint fix

This commit is contained in:
pa
2026-03-10 22:42:22 +09:00
parent 699bf620e5
commit 4877010006
124 changed files with 980 additions and 1121 deletions

View File

@@ -66,7 +66,6 @@ const avatarReq = {
* @returns {Promise<{json: any, params}>}
*/
selectAvatar(params) {
return request(`avatars/${params.avatarId}/select`, {
method: 'PUT',
params
@@ -98,7 +97,6 @@ const avatarReq = {
* @returns { Promise<{json: any, params}> }
*/
selectFallbackAvatar(params) {
return request(`avatars/${params.avatarId}/selectfallback`, {
method: 'PUT',
params

View File

@@ -14,7 +14,7 @@ const avatarModerationReq = {
/**
* @param {{ avatarModerationType: string, targetAvatarId: string }} params
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
sendAvatarModeration(params) {
return request('auth/user/avatarmoderations', {
@@ -31,7 +31,7 @@ const avatarModerationReq = {
/**
* @param {{ avatarModerationType: string, targetAvatarId: string }} params
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
deleteAvatarModeration(params) {
return request(

View File

@@ -23,7 +23,6 @@ const friendReq = {
* @type {import('../types/api/friend').GetFriends}
*/
getFriends(params) {
return request('auth/user/friends', {
method: 'GET',
params

View File

@@ -2,7 +2,8 @@ import { request } from '../services/request';
import { useGalleryStore } from '../stores';
const notificationReq = {
/** @typedef {{
/**
* @typedef {{
* n: number,
* offset: number,
* sent: boolean,
@@ -89,7 +90,7 @@ const notificationReq = {
* rsvp?: boolean,
* }} params
* @param receiverUserId
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
sendInvite(params, receiverUserId) {
return request(`invite/${receiverUserId}`, {
@@ -180,7 +181,7 @@ const notificationReq = {
/**
* @param {{ notificationId: string }} params
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
acceptFriendRequestNotification(params) {
return request(
@@ -199,7 +200,7 @@ const notificationReq = {
/**
* @param {{ notificationId: string }} params
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
hideNotification(params) {
return request(
@@ -218,7 +219,7 @@ const notificationReq = {
/**
* @param {{ notificationId: string }} params
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
seeNotification(params) {
return request(`auth/user/notifications/${params.notificationId}/see`, {
@@ -234,7 +235,7 @@ const notificationReq = {
/**
* @param {{ notificationId: string }} params
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
seeNotificationV2(params) {
return request(`notifications/${params.notificationId}/see`, {
@@ -254,7 +255,7 @@ const notificationReq = {
* responseType: string,
* responseData: string
* }} params
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
sendNotificationResponse(params) {
return request(`notifications/${params.notificationId}/respond`, {

View File

@@ -14,7 +14,7 @@ const playerModerationReq = {
/**
* @param {{ moderated: string, type: string }} params
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
// old-way: POST auth/user/blocks {blocked:userId}
sendPlayerModeration(params) {
@@ -32,7 +32,7 @@ const playerModerationReq = {
/**
* @param {{ moderated: string, type: string }} params
* @return { Promise<{json: any, params}> }
* @returns { Promise<{json: any, params}> }
*/
// old-way: PUT auth/user/unblocks {blocked:userId}
deletePlayerModeration(params) {

View File

@@ -17,7 +17,6 @@ const userReq = {
* @type {import('../types/api/user').GetUser}
*/
getUser(params) {
return request(`users/${params.userId}`, {
method: 'GET'
}).then((json) => {
@@ -57,7 +56,6 @@ const userReq = {
* @returns {Promise<{json: any, params: {tags: string[]}}>}
*/
addUserTags(params) {
return request(`users/${getCurrentUserId()}/addTags`, {
method: 'POST',
params
@@ -76,7 +74,6 @@ const userReq = {
* @returns {Promise<{json: any, params: {tags: string[]}}>}
*/
removeUserTags(params) {
return request(`users/${getCurrentUserId()}/removeTags`, {
method: 'POST',
params
@@ -114,7 +111,6 @@ const userReq = {
* @type {import('../types/api/user').GetCurrentUser}
*/
saveCurrentUser(params) {
return request(`users/${getCurrentUserId()}`, {
method: 'PUT',
params