diff options
author | Joas Schilling <coding@schilljs.com> | 2021-08-30 15:49:13 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-08-30 15:49:13 +0300 |
commit | 98d679964a2352a4fa455c514944273a2b14b778 (patch) | |
tree | dd957b2a574d2a086a62e4a7518a4ffeced39ab2 /src | |
parent | 501fb5294dfee1d8a923846c7d92cf074c8486e6 (diff) |
Replace "int" type with "number"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ConversationSettings/NotificationsSettings.vue | 2 | ||||
-rw-r--r-- | src/components/LeftSidebar/ConversationsList/Conversation.vue | 2 | ||||
-rw-r--r-- | src/components/MessagesList/MessagesList.vue | 12 | ||||
-rw-r--r-- | src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue | 8 | ||||
-rw-r--r-- | src/services/callsService.js | 4 | ||||
-rw-r--r-- | src/services/conversationsService.js | 12 | ||||
-rw-r--r-- | src/services/messagesService.js | 4 | ||||
-rw-r--r-- | src/services/participantsService.js | 2 | ||||
-rw-r--r-- | src/services/settingsService.js | 2 | ||||
-rw-r--r-- | src/store/actorStore.js | 2 | ||||
-rw-r--r-- | src/store/messagesStore.js | 4 | ||||
-rw-r--r-- | src/store/participantsStore.js | 2 | ||||
-rw-r--r-- | src/store/settingsStore.js | 2 | ||||
-rw-r--r-- | src/store/tokenStore.js | 4 | ||||
-rw-r--r-- | src/utils/webrtc/analyzers/AverageStatValue.js | 4 | ||||
-rw-r--r-- | src/utils/webrtc/index.js | 2 |
16 files changed, 34 insertions, 34 deletions
diff --git a/src/components/ConversationSettings/NotificationsSettings.vue b/src/components/ConversationSettings/NotificationsSettings.vue index 2accbbeff..f814d0a99 100644 --- a/src/components/ConversationSettings/NotificationsSettings.vue +++ b/src/components/ConversationSettings/NotificationsSettings.vue @@ -134,7 +134,7 @@ export default { /** * Set the notification level for the conversation * - * @param {int} notificationLevel The notification level to set. + * @param {number} notificationLevel The notification level to set. */ async setNotificationLevel(notificationLevel) { await this.$store.dispatch('setNotificationLevel', { token: this.token, notificationLevel }) diff --git a/src/components/LeftSidebar/ConversationsList/Conversation.vue b/src/components/LeftSidebar/ConversationsList/Conversation.vue index a26177fb1..039068831 100644 --- a/src/components/LeftSidebar/ConversationsList/Conversation.vue +++ b/src/components/LeftSidebar/ConversationsList/Conversation.vue @@ -392,7 +392,7 @@ export default { /** * Set the notification level for the conversation * - * @param {int} level The notification level to set. + * @param {number} level The notification level to set. */ async setNotificationLevel(level) { await this.$store.dispatch('setNotificationLevel', { token: this.item.token, notificationLevel: level }) diff --git a/src/components/MessagesList/MessagesList.vue b/src/components/MessagesList/MessagesList.vue index 229e7719b..94db9a130 100644 --- a/src/components/MessagesList/MessagesList.vue +++ b/src/components/MessagesList/MessagesList.vue @@ -308,14 +308,14 @@ export default { * @param {string} message1.actorId Actor id of the new message * @param {string} message1.actorDisplayName Actor displayname of the new message * @param {string} message1.systemMessage System message content of the new message - * @param {int} message1.timestamp Timestamp of the new message + * @param {number} message1.timestamp Timestamp of the new message * @param {null|object} message2 The previous message * @param {string} message2.id The ID of the second message * @param {string} message2.actorType Actor type of the previous message * @param {string} message2.actorId Actor id of the previous message * @param {string} message2.actorDisplayName Actor display name of previous message * @param {string} message2.systemMessage System message content of the previous message - * @param {int} message2.timestamp Timestamp of the second message + * @param {number} message2.timestamp Timestamp of the second message * @return {boolean} Boolean if the messages should be grouped or not */ messagesShouldBeGrouped(message1, message2) { @@ -352,10 +352,10 @@ export default { * * @param {object} message1 The new message * @param {string} message1.id The ID of the new message - * @param {int} message1.timestamp Timestamp of the new message + * @param {number} message1.timestamp Timestamp of the new message * @param {null|object} message2 The previous message * @param {string} message2.id The ID of the second message - * @param {int} message2.timestamp Timestamp of the second message + * @param {number} message2.timestamp Timestamp of the second message * @return {boolean} Boolean if the messages have the same date */ messagesHaveDifferentDate(message1, message2) { @@ -368,7 +368,7 @@ export default { * * @param {object} message The message object * @param {string} message.id The ID of the message - * @param {int} message.timestamp Timestamp of the message + * @param {number} message.timestamp Timestamp of the message * @return {string} Translated string of "<Today>, <November 11th, 2019>", "<3 days ago>, <November 8th, 2019>" */ generateDateSeparator(message) { @@ -403,7 +403,7 @@ export default { * * @param {object} message The message object * @param {string} message.id The ID of the message - * @param {int} message.timestamp Timestamp of the message + * @param {number} message.timestamp Timestamp of the message * @return {object} MomentJS object */ getDateOfMessage(message) { diff --git a/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue b/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue index f8415f089..6e3827365 100644 --- a/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue +++ b/src/components/RightSidebar/Participants/CurrentParticipants/CurrentParticipants.vue @@ -121,19 +121,19 @@ export default { * - display name * * @param {object} participant1 First participant - * @param {int} participant1.participantType First participant type + * @param {number} participant1.participantType First participant type * @param {string} participant1.sessionId First participant session * @param {string} participant1.displayName First participant display name * @param {string} participant1.status First participant user status * @param {string} participant1.actorType First participant actor type - * @param {int} participant1.inCall First participant in call flag + * @param {number} participant1.inCall First participant in call flag * @param {object} participant2 Second participant - * @param {int} participant2.participantType Second participant type + * @param {number} participant2.participantType Second participant type * @param {string} participant2.sessionId Second participant session * @param {string} participant2.displayName Second participant display name * @param {string} participant2.actorType Second participant actor type * @param {string} participant2.status Second participant user status - * @param {int} participant2.inCall Second participant in call flag + * @param {number} participant2.inCall Second participant in call flag * @return {number} */ sortParticipants(participant1, participant2) { diff --git a/src/services/callsService.js b/src/services/callsService.js index 53650ed60..0a6361510 100644 --- a/src/services/callsService.js +++ b/src/services/callsService.js @@ -39,8 +39,8 @@ import { * example, if WITH_VIDEO is provided but the device does not have a camera. * * @param {string} token The token of the call to be joined. - * @param {int} flags The available PARTICIPANT.CALL_FLAG for this participants - * @return {int} The actual flags based on the available media + * @param {number} flags The available PARTICIPANT.CALL_FLAG for this participants + * @return {number} The actual flags based on the available media */ const joinCall = async function(token, flags) { try { diff --git a/src/services/conversationsService.js b/src/services/conversationsService.js index 690490f1f..203badd02 100644 --- a/src/services/conversationsService.js +++ b/src/services/conversationsService.js @@ -231,7 +231,7 @@ const removeFromFavorites = async function(token) { * Remove a conversation from the favorites * * @param {string} token The token of the conversation to be removed from favorites - * @param {int} level The notification level to set. + * @param {number} level The notification level to set. */ const setNotificationLevel = async function(token, level) { try { @@ -274,7 +274,7 @@ const makePrivate = async function(token) { * Change the SIP enabled * * @param {string} token The token of the conversation to be modified - * @param {int} newState The new SIP state to set + * @param {number} newState The new SIP state to set */ const setSIPEnabled = async function(token, newState) { return axios.put(generateOcsUrl('apps/spreed/api/v4/room/{token}/webinar/sip', { token }), { @@ -286,8 +286,8 @@ const setSIPEnabled = async function(token, newState) { * Change the lobby state * * @param {string} token The token of the conversation to be modified - * @param {int} newState The new lobby state to set - * @param {int} timestamp The UNIX timestamp (in seconds) to set, if any + * @param {number} newState The new lobby state to set + * @param {number} timestamp The UNIX timestamp (in seconds) to set, if any */ const changeLobbyState = async function(token, newState, timestamp) { try { @@ -305,7 +305,7 @@ const changeLobbyState = async function(token, newState, timestamp) { * Change the read-only state * * @param {string} token The token of the conversation to be modified - * @param {int} readOnly The new read-only state to set + * @param {number} readOnly The new read-only state to set */ const changeReadOnlyState = async function(token, readOnly) { try { @@ -322,7 +322,7 @@ const changeReadOnlyState = async function(token, readOnly) { * Change the listable scope * * @param {string} token The token of the conversation to be modified - * @param {int} listable The new listable scope to set + * @param {number} listable The new listable scope to set */ const changeListable = async function(token, listable) { const response = await axios.put(generateOcsUrl('apps/spreed/api/v4/room/{token}/listable', { token }), { diff --git a/src/services/messagesService.js b/src/services/messagesService.js index da5ccd963..cfbe4c28a 100644 --- a/src/services/messagesService.js +++ b/src/services/messagesService.js @@ -51,7 +51,7 @@ const fetchMessages = async function({ token, lastKnownMessageId, includeLastKno * * @param {string} token The conversation token; * @param {object} options options - * @param {int} lastKnownMessageId The id of the last message in the store. + * @param {number} lastKnownMessageId The id of the last message in the store. */ const lookForNewMessages = async ({ token, lastKnownMessageId }, options) => { return axios.get(generateOcsUrl('apps/spreed/api/v1/chat/{token}', { token }), Object.assign(options, { @@ -123,7 +123,7 @@ const postRichObjectToConversation = async function(token, { objectType, objectI * Updates the last read message id * * @param {string} token The token of the conversation to be removed from favorites - * @param {int} lastReadMessage id of the last read message to set + * @param {number} lastReadMessage id of the last read message to set */ const updateLastReadMessage = async function(token, lastReadMessage) { return axios.post(generateOcsUrl('apps/spreed/api/v1/chat/{token}/read', { token }), { diff --git a/src/services/participantsService.js b/src/services/participantsService.js index 3e0f0c573..df0d22022 100644 --- a/src/services/participantsService.js +++ b/src/services/participantsService.js @@ -151,7 +151,7 @@ const setGuestUserName = async (token, userName) => { * If no userId is set, send to all applicable participants. * * @param {string} token conversation token - * @param {int} attendeeId attendee id to target, or null for all + * @param {number} attendeeId attendee id to target, or null for all */ const resendInvitations = async (token, { attendeeId = null }) => { await axios.post(generateOcsUrl('apps/spreed/api/v4/room/{token}/participants/resend-invitations', { token }), { diff --git a/src/services/settingsService.js b/src/services/settingsService.js index 9cf273a8a..5e551d633 100644 --- a/src/services/settingsService.js +++ b/src/services/settingsService.js @@ -40,7 +40,7 @@ const setAttachmentFolder = async function(path) { /** * Sets the read status privacy setting for the user * - * @param {int} privacy The selected value, either 0 or 1 + * @param {number} privacy The selected value, either 0 or 1 * @return {object} The axios response */ const setReadStatusPrivacy = async function(privacy) { diff --git a/src/store/actorStore.js b/src/store/actorStore.js index 2295c458a..71fe1bc66 100644 --- a/src/store/actorStore.js +++ b/src/store/actorStore.js @@ -133,7 +133,7 @@ const actions = { * * @param {object} context default store context; * @param {object} participant The participant data - * @param {int} participant.participantType The type of the participant + * @param {number} participant.participantType The type of the participant * @param {string} participant.sessionId The session id of the participant * @param {string} participant.actorId The actor id of the participant */ diff --git a/src/store/messagesStore.js b/src/store/messagesStore.js index b7b4ff2d2..7fe426a49 100644 --- a/src/store/messagesStore.js +++ b/src/store/messagesStore.js @@ -416,7 +416,7 @@ const actions = { * @param {string} text message string; * @param {string} token conversation token; * @param {string} uploadId upload id; - * @param {int} index index; + * @param {number} index index; * @param {object} file file to upload; * @param {string} localUrl local URL of file to upload; * @return {object} temporary message @@ -684,7 +684,7 @@ const actions = { * @param {string} token The conversation token; * @param {string} requestId id to identify request uniquely * @param {object} requestOptions request options; - * @param {int} lastKnownMessageId The id of the last message in the store. + * @param {number} lastKnownMessageId The id of the last message in the store. */ async lookForNewMessages(context, { token, lastKnownMessageId, requestId, requestOptions }) { context.dispatch('cancelLookForNewMessages', { requestId }) diff --git a/src/store/participantsStore.js b/src/store/participantsStore.js index dbf4164dd..5fa13a44e 100644 --- a/src/store/participantsStore.js +++ b/src/store/participantsStore.js @@ -370,7 +370,7 @@ const actions = { * * @param {object} _ unused * @param {string} token conversation token - * @param {int} attendeeId attendee id to target, or null for all + * @param {number} attendeeId attendee id to target, or null for all */ async resendInvitations(_, { token, attendeeId }) { await resendInvitations(token, { attendeeId }) diff --git a/src/store/settingsStore.js b/src/store/settingsStore.js index 72d34e64a..889673cd0 100644 --- a/src/store/settingsStore.js +++ b/src/store/settingsStore.js @@ -50,7 +50,7 @@ const actions = { * Update the read status privacy for the user * * @param {object} context default store context; - * @param {int} privacy The new selected privacy + * @param {number} privacy The new selected privacy */ async updateReadStatusPrivacy(context, privacy) { await setReadStatusPrivacy(privacy) diff --git a/src/store/tokenStore.js b/src/store/tokenStore.js index 2dcb7164b..6276f708b 100644 --- a/src/store/tokenStore.js +++ b/src/store/tokenStore.js @@ -61,7 +61,7 @@ const mutations = { * * @param {object} state current store state * @param {string} newToken The token of the active conversation - * @param {int} newFileId The file ID of the active conversation + * @param {number} newFileId The file ID of the active conversation */ updateTokenAndFileIdForToken(state, { newToken, newFileId }) { state.token = newToken @@ -90,7 +90,7 @@ const actions = { * * @param {object} context default store context * @param {string} newToken The token of the active conversation - * @param {int} newFileId The file ID of the active conversation + * @param {number} newFileId The file ID of the active conversation */ updateTokenAndFileIdForToken(context, { newToken, newFileId }) { context.commit('updateTokenAndFileIdForToken', { newToken, newFileId }) diff --git a/src/utils/webrtc/analyzers/AverageStatValue.js b/src/utils/webrtc/analyzers/AverageStatValue.js index 8891f7515..a31093a35 100644 --- a/src/utils/webrtc/analyzers/AverageStatValue.js +++ b/src/utils/webrtc/analyzers/AverageStatValue.js @@ -58,9 +58,9 @@ const STAT_VALUE_TYPE = { * A string representation of the current relative values can be got by calling * "toString()". * - * @param {int} count the number of instances to take into account. + * @param {number} count the number of instances to take into account. * @param {STAT_VALUE_TYPE} type whether the value is cumulative or relative. - * @param {int} lastValueWeight the value to calculate the weights of all the + * @param {number} lastValueWeight the value to calculate the weights of all the * items, from the first (weight 1) to the last one. */ function AverageStatValue(count, type = STAT_VALUE_TYPE.CUMULATIVE, lastValueWeight = 3) { diff --git a/src/utils/webrtc/index.js b/src/utils/webrtc/index.js index 0e49f97a9..7bbb16125 100644 --- a/src/utils/webrtc/index.js +++ b/src/utils/webrtc/index.js @@ -163,7 +163,7 @@ async function signalingJoinConversation(token, sessionId) { * Join the call of the given conversation * * @param {string} token Conversation to join the call - * @param {int} flags Bitwise combination of PARTICIPANT.CALL_FLAG + * @param {number} flags Bitwise combination of PARTICIPANT.CALL_FLAG * @return {Promise<void>} Resolved with the actual flags based on the * available media */ |