Skip to content

Commit

Permalink
Merge pull request #10821 from nextcloud/feat/noid/upgrade-dialogs-to…
Browse files Browse the repository at this point in the history
…-5-beta

feat(deps): Bump @nextcloud/dialogs to 5.0.0-beta
  • Loading branch information
nickvergessen authored Nov 2, 2023
2 parents 6fea609 + 9fc0477 commit 6c0d57a
Show file tree
Hide file tree
Showing 20 changed files with 1,502 additions and 2,599 deletions.
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const { resolve } = require('node:path')
// Listed packages will be transformed with babel-jest
// TODO: find a way to consolidate this in one place, with webpack.common.js
const ignorePatterns = [
'@mdi/svg',
'bail',
'comma-separated-tokens',
'decode-named-character-reference',
Expand Down Expand Up @@ -76,6 +77,7 @@ module.exports = {

moduleNameMapper: {
'\\.(css|scss)$': 'jest-transform-stub',
'^.+\\.svg(\\?raw)?$': '<rootDir>/src/__mocks__/svg.js',
'vendor/tflite/(.*).wasm$': '<rootDir>/src/utils/media/effects/virtual-background/vendor/tflite/$1.js',
},

Expand Down
4,047 changes: 1,477 additions & 2,570 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@nextcloud/axios": "^2.4.0",
"@nextcloud/browser-storage": "^0.3.0",
"@nextcloud/capabilities": "^1.1.0",
"@nextcloud/dialogs": "^4.2.1",
"@nextcloud/dialogs": "^5.0.0-beta.6",
"@nextcloud/event-bus": "^3.1.0",
"@nextcloud/files": "^3.0.0-beta.26",
"@nextcloud/initial-state": "^2.1.0",
Expand Down
3 changes: 0 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ import { EventBus } from './services/EventBus.js'
import { leaveConversationSync } from './services/participantsService.js'
import { signalingKill } from './utils/webrtc/index.js'

// Styles
import '@nextcloud/dialogs/dist/index.css'

export default {
name: 'App',
components: {
Expand Down
3 changes: 0 additions & 3 deletions src/FilesSidebarCallViewApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ import participant from './mixins/participant.js'
import sessionIssueHandler from './mixins/sessionIssueHandler.js'
import talkHashCheck from './mixins/talkHashCheck.js'

// Styles
import '@nextcloud/dialogs/dist/index.css'

export default {

name: 'FilesSidebarCallViewApp',
Expand Down
3 changes: 0 additions & 3 deletions src/FilesSidebarTabApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ import {
import CancelableRequest from './utils/cancelableRequest.js'
import { signalingKill } from './utils/webrtc/index.js'

// Styles
import '@nextcloud/dialogs/dist/index.css'

export default {

name: 'FilesSidebarTabApp',
Expand Down
3 changes: 0 additions & 3 deletions src/PublicShareAuthRequestPasswordButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import browserCheck from './mixins/browserCheck.js'
import { getPublicShareAuthConversationToken } from './services/publicShareAuthService.js'

// Styles
import '@nextcloud/dialogs/dist/index.css'

export default {

name: 'PublicShareAuthRequestPasswordButton',
Expand Down
3 changes: 0 additions & 3 deletions src/PublicShareSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ import {
} from './services/participantsService.js'
import { signalingKill } from './utils/webrtc/index.js'

// Styles
import '@nextcloud/dialogs/dist/index.css'

export default {

name: 'PublicShareSidebar',
Expand Down
22 changes: 22 additions & 0 deletions src/__mocks__/svg.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* @copyright Copyright (c) 2023 John Molakvoæ <[email protected]>
*
* @author John Molakvoæ <[email protected]>
*
* @license AGPL-3.0-or-later
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
export default '<svg>SvgMock</svg>'
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ const VALID_MIME_TYPES = ['image/png', 'image/jpeg']
const picker = getFilePickerBuilder(t('spreed', 'Choose your conversation picture'))
.setMultiSelect(false)
.setMimeTypeFilter(VALID_MIME_TYPES)
.setModal(true)
.setType(1)
.allowDirectories(false)
.build()
Expand Down
1 change: 0 additions & 1 deletion src/components/MediaSettings/VideoBackgroundEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export default {
// Create picker
picker = getFilePickerBuilder(t('spreed', 'File to share'))
.setMultiSelect(false)
.setModal(true)
.startAt(relativeBackgroundsFolderPath)
.setType(1)
.allowDirectories(false)
Expand Down
1 change: 0 additions & 1 deletion src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ import { isDarkTheme } from '../../utils/isDarkTheme.js'

const picker = getFilePickerBuilder(t('spreed', 'File to share'))
.setMultiSelect(false)
.setModal(true)
.setType(1)
.allowDirectories()
.build()
Expand Down
1 change: 0 additions & 1 deletion src/components/NewMessage/NewMessageAttachments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ import { shareFile } from '../../services/filesSharingServices.js'

const picker = getFilePickerBuilder(t('spreed', 'File to share'))
.setMultiSelect(false)
.setModal(true)
.setType(1)
.allowDirectories()
.build()
Expand Down
1 change: 0 additions & 1 deletion src/components/SettingsDialog/SettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ export default {
selectAttachmentFolder() {
const picker = getFilePickerBuilder(t('spreed', 'Select location for attachments'))
.setMultiSelect(false)
.setModal(true)
.setType(1)
.addMimeTypeFilter('httpd/unix-directory')
.allowDirectories()
Expand Down
1 change: 0 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ import './init.js'
import router from './router/router.js'
import store from './store/index.js'

import '@nextcloud/dialogs/dist/index.css'
// Leaflet icon patch
import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.webpack.css' // Re-uses images from ~leaflet package
import 'leaflet/dist/leaflet.css'
Expand Down
3 changes: 0 additions & 3 deletions src/mainAdminSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ import Vue from 'vue'

import AdminSettings from './views/AdminSettings.vue'

// Styles
import '@nextcloud/dialogs/dist/index.css'

Vue.prototype.t = t
Vue.prototype.n = n
Vue.prototype.OC = OC
Expand Down
1 change: 0 additions & 1 deletion src/mainFilesSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import FilesSidebarTabApp from './FilesSidebarTabApp.vue'
import './init.js'
import store from './store/index.js'

import '@nextcloud/dialogs/dist/index.css'
// Leaflet icon patch
import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.webpack.css' // Re-uses images from ~leaflet package
import 'leaflet/dist/leaflet.css'
Expand Down
1 change: 0 additions & 1 deletion src/mainPublicShareAuthSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import PublicShareAuthSidebar from './PublicShareAuthSidebar.vue'
import './init.js'
import store from './store/index.js'

import '@nextcloud/dialogs/dist/index.css'
// Leaflet icon patch
import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.webpack.css' // Re-uses images from ~leaflet package
import 'leaflet/dist/leaflet.css'
Expand Down
1 change: 0 additions & 1 deletion src/mainPublicShareSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import PublicShareSidebarTrigger from './PublicShareSidebarTrigger.vue'
import './init.js'
import store from './store/index.js'

import '@nextcloud/dialogs/dist/index.css'
// Leaflet icon patch
import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.webpack.css' // Re-uses images from ~leaflet package
import 'leaflet/dist/leaflet.css'
Expand Down
1 change: 0 additions & 1 deletion src/mainRecording.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ import {
signalingKill,
} from './utils/webrtc/index.js'

import '@nextcloud/dialogs/dist/index.css'
// Leaflet icon patch
import 'leaflet-defaulticon-compatibility/dist/leaflet-defaulticon-compatibility.webpack.css' // Re-uses images from ~leaflet package
import 'leaflet/dist/leaflet.css'
Expand Down

0 comments on commit 6c0d57a

Please sign in to comment.