зеркало из https://github.com/nextcloud/spreed.git
Merge pull request #4350 from nextcloud/dependabot/npm_and_yarn/nextcloud/dialogs-3.0.0
Bump @nextcloud/dialogs from 2.0.1 to 3.0.0
This commit is contained in:
Коммит
674a944c24
|
@ -3196,14 +3196,24 @@
|
|||
}
|
||||
},
|
||||
"@nextcloud/dialogs": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/dialogs/-/dialogs-2.0.1.tgz",
|
||||
"integrity": "sha512-Bme8vcs8n4XT5spBgkDEv1z9zNOE23AIbr5jF1WJ1A2XNMNj5Zvy29RosIh0k7H+1lN0PlU38u+eMV1Ets3E4A==",
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/dialogs/-/dialogs-3.0.0.tgz",
|
||||
"integrity": "sha512-5FVP0RSxIpKTKdSUlQ4osDDz/oCx2/4+InliB5MX2EcrjDe6q3fZMabSGnFTnIAu0CXRTzBk7RpneaIFGv+d5A==",
|
||||
"requires": {
|
||||
"@nextcloud/l10n": "^1.3.0",
|
||||
"@nextcloud/typings": "^0.2.2",
|
||||
"@nextcloud/typings": "^1.0.0",
|
||||
"core-js": "^3.6.4",
|
||||
"toastify-js": "^1.9.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nextcloud/typings": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/typings/-/typings-1.0.0.tgz",
|
||||
"integrity": "sha512-r8SRvXszWTyKWEhVd3gx7eBAcCKwdoLlr+ZrR8hrSxs2nfH00de/QoGdo0n/Rcv/9mMtX/haJNd71KwODM2+uQ==",
|
||||
"requires": {
|
||||
"@types/jquery": "2.0.54"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@nextcloud/eslint-config": {
|
||||
|
@ -3343,6 +3353,19 @@
|
|||
"vue-multiselect": "^2.1.6",
|
||||
"vue-visible": "^1.0.2",
|
||||
"vue2-datepicker": "^3.6.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nextcloud/dialogs": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/dialogs/-/dialogs-2.0.1.tgz",
|
||||
"integrity": "sha512-Bme8vcs8n4XT5spBgkDEv1z9zNOE23AIbr5jF1WJ1A2XNMNj5Zvy29RosIh0k7H+1lN0PlU38u+eMV1Ets3E4A==",
|
||||
"requires": {
|
||||
"@nextcloud/l10n": "^1.3.0",
|
||||
"@nextcloud/typings": "^0.2.2",
|
||||
"core-js": "^3.6.4",
|
||||
"toastify-js": "^1.9.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"@nextcloud/vue-dashboard": {
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
"@nextcloud/auth": "^1.3.0",
|
||||
"@nextcloud/axios": "^1.4.0",
|
||||
"@nextcloud/browser-storage": "^0.1.1",
|
||||
"@nextcloud/dialogs": "^2.0.1",
|
||||
"@nextcloud/dialogs": "^3.0.0",
|
||||
"@nextcloud/event-bus": "^1.2.0",
|
||||
"@nextcloud/initial-state": "^1.2.0",
|
||||
"@nextcloud/l10n": "^1.4.1",
|
||||
|
|
|
@ -69,7 +69,11 @@ import Avatar from '@nextcloud/vue/dist/Components/Avatar'
|
|||
import LocalMediaControls from './LocalMediaControls'
|
||||
import Hex from 'crypto-js/enc-hex'
|
||||
import SHA1 from 'crypto-js/sha1'
|
||||
import { showInfo, showError } from '@nextcloud/dialogs'
|
||||
import {
|
||||
showError,
|
||||
showInfo,
|
||||
TOAST_PERMANENT_TIMEOUT,
|
||||
} from '@nextcloud/dialogs'
|
||||
import video from '../../../mixins/video.js'
|
||||
import VideoBackground from './VideoBackground'
|
||||
import { callAnalyzer } from '../../../utils/webrtc/index'
|
||||
|
@ -291,7 +295,7 @@ export default {
|
|||
handler: function(localStreamVideoError) {
|
||||
if (localStreamVideoError) {
|
||||
showError(t('spreed', 'Error while accessing camera'), {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import { showError, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs'
|
||||
import UAParser from 'ua-parser-js'
|
||||
|
||||
const browserCheck = {
|
||||
|
@ -31,7 +31,7 @@ const browserCheck = {
|
|||
showError(
|
||||
this.unsupportedWarning,
|
||||
{
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
}
|
||||
},
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import { showError, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs'
|
||||
|
||||
const talkHashCheck = {
|
||||
data() {
|
||||
|
@ -51,7 +51,7 @@ const talkHashCheck = {
|
|||
|
||||
this.reloadWarningShown = true
|
||||
showError(t('spreed', 'Nextcloud Talk was updated, please reload the page'), {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
},
|
||||
},
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
import axios from '@nextcloud/axios'
|
||||
import { generateOcsUrl } from '@nextcloud/router'
|
||||
import { CONVERSATION, SHARE } from '../constants'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import { showError, TOAST_PERMANENT_TIMEOUT } from '@nextcloud/dialogs'
|
||||
import store from '../store/index'
|
||||
|
||||
let maintenanceWarning = null
|
||||
|
@ -46,7 +46,7 @@ const fetchConversations = async function() {
|
|||
} catch (error) {
|
||||
if (error.response && error.response.status === 503 && !maintenanceWarning) {
|
||||
maintenanceWarning = showError(t('spreed', 'Nextcloud is in maintenance mode, please reload the page'), {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
}
|
||||
throw error
|
||||
|
@ -72,7 +72,7 @@ const fetchConversation = async function(token) {
|
|||
} catch (error) {
|
||||
if (error.response && error.response.status === 503 && !maintenanceWarning) {
|
||||
maintenanceWarning = showError(t('spreed', 'Nextcloud is in maintenance mode, please reload the page'), {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
}
|
||||
throw error
|
||||
|
|
|
@ -38,6 +38,7 @@ import {
|
|||
import {
|
||||
showError,
|
||||
showWarning,
|
||||
TOAST_PERMANENT_TIMEOUT,
|
||||
} from '@nextcloud/dialogs'
|
||||
|
||||
const Signaling = {
|
||||
|
@ -356,9 +357,7 @@ Signaling.Internal.prototype._sendMessageWithCallback = function(ev) {
|
|||
}.bind(this))
|
||||
.catch(function(err) {
|
||||
console.error(err)
|
||||
showError(t('spreed', 'Sending signaling message has failed.'), {
|
||||
timeout: 15,
|
||||
})
|
||||
showError(t('spreed', 'Sending signaling message has failed.'))
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -453,7 +452,7 @@ Signaling.Internal.prototype._startPullingMessages = function() {
|
|||
} else if (token) {
|
||||
if (this.pullMessagesFails === 1) {
|
||||
this.pullMessageErrorToast = showError(t('spreed', 'Lost connection to signaling server. Trying to reconnect.'), {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
}
|
||||
if (this.pullMessagesFails === 30) {
|
||||
|
@ -463,7 +462,7 @@ Signaling.Internal.prototype._startPullingMessages = function() {
|
|||
|
||||
// Giving up after 5 minutes
|
||||
this.pullMessageErrorToast = showError(t('spreed', 'Lost connection to signaling server. Try to reload the page manually.'), {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
return
|
||||
}
|
||||
|
@ -558,7 +557,7 @@ Signaling.Standalone.prototype.connect = function() {
|
|||
&& this.signalingConnectionWarning === null) {
|
||||
this.signalingConnectionTimeout = setTimeout(() => {
|
||||
this.signalingConnectionWarning = showWarning(t('spreed', 'Establishing signaling connection is taking longer than expected …'), {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
}, 2000)
|
||||
}
|
||||
|
@ -601,7 +600,7 @@ Signaling.Standalone.prototype.connect = function() {
|
|||
}
|
||||
if (this.signalingConnectionError === null) {
|
||||
this.signalingConnectionError = showError(t('spreed', 'Failed to establish signaling connection. Retrying …'), {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
}
|
||||
this.reconnect()
|
||||
|
|
|
@ -29,7 +29,10 @@
|
|||
import SimpleWebRTC from './simplewebrtc/simplewebrtc'
|
||||
import { PARTICIPANT } from '../../constants.js'
|
||||
import store from '../../store/index.js'
|
||||
import { showError } from '@nextcloud/dialogs'
|
||||
import {
|
||||
showError,
|
||||
TOAST_PERMANENT_TIMEOUT,
|
||||
} from '@nextcloud/dialogs'
|
||||
|
||||
let webrtc
|
||||
const spreedPeerConnectionTable = []
|
||||
|
@ -539,7 +542,7 @@ export default function initWebRTC(signaling, _callParticipantCollection, _local
|
|||
.replace('{linkstart}', '<a target="_blank" rel="noreferrer nofollow" class="external" href="https://nextcloud-talk.readthedocs.io/en/latest/TURN/">')
|
||||
.replace('{linkend}', ' ↗</a>'),
|
||||
{
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
isHTML: true,
|
||||
}
|
||||
)
|
||||
|
@ -819,7 +822,7 @@ export default function initWebRTC(signaling, _callParticipantCollection, _local
|
|||
// FIXME emit an event and handle it as needed instead of
|
||||
// calling UI code from here.
|
||||
localStreamRequestedTimeoutNotification = showError(t('spreed', 'This is taking longer than expected. Are the media permissions already granted (or rejected)? If yes please restart your browser, as audio and video are failing'), {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
}, 10000)
|
||||
})
|
||||
|
@ -865,7 +868,7 @@ export default function initWebRTC(signaling, _callParticipantCollection, _local
|
|||
}
|
||||
|
||||
showError(message, {
|
||||
timeout: -1,
|
||||
timeout: TOAST_PERMANENT_TIMEOUT,
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче