Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/files/src/composables/useNavigation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe('Composables: useNavigation', () => {

describe('currentView', () => {
beforeEach(() => {
// eslint-disable-next-line import/namespace
navigation = new nextcloudFiles.Navigation()
spy.mockImplementation(() => navigation)
})
Expand All @@ -39,6 +40,7 @@ describe('Composables: useNavigation', () => {
})

it('should return already active navigation', async () => {
// eslint-disable-next-line import/namespace
const view = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-1', name: 'My View 1', order: 0 })
navigation.register(view)
navigation.setActive(view)
Expand All @@ -48,6 +50,7 @@ describe('Composables: useNavigation', () => {
})

it('should be reactive on updating active navigation', async () => {
// eslint-disable-next-line import/namespace
const view = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-1', name: 'My View 1', order: 0 })
navigation.register(view)
const wrapper = mount(TestComponent)
Expand All @@ -63,6 +66,7 @@ describe('Composables: useNavigation', () => {

describe('views', () => {
beforeEach(() => {
// eslint-disable-next-line import/namespace
navigation = new nextcloudFiles.Navigation()
spy.mockImplementation(() => navigation)
})
Expand All @@ -73,6 +77,7 @@ describe('Composables: useNavigation', () => {
})

it('should return already registered views', () => {
// eslint-disable-next-line import/namespace
const view = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-1', name: 'My View 1', order: 0 })
// register before mount
navigation.register(view)
Expand All @@ -82,7 +87,9 @@ describe('Composables: useNavigation', () => {
})

it('should be reactive on registering new views', () => {
// eslint-disable-next-line import/namespace
const view = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-1', name: 'My View 1', order: 0 })
// eslint-disable-next-line import/namespace
const view2 = new nextcloudFiles.View({ getContents: () => Promise.reject(new Error()), icon: '<svg></svg>', id: 'view-2', name: 'My View 2', order: 1 })

// register before mount
Expand Down
1 change: 1 addition & 0 deletions apps/files/src/views/favorites.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { action } from '../actions/favoriteAction'
import * as favoritesService from '../services/Favorites'
import { registerFavoritesView } from './favorites'

// eslint-disable-next-line import/namespace
const { Folder, getNavigation } = filesUtils

vi.mock('@nextcloud/axios')
Expand Down
6 changes: 3 additions & 3 deletions dist/1656-1656.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SPDX-FileCopyrightText: @nextcloud/dialogs developers

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand All @@ -57,7 +57,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/files
- version: 3.11.0
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
Expand All @@ -75,7 +75,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/upload
- version: 1.10.0
Expand Down
4 changes: 2 additions & 2 deletions dist/1820-1820.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ This file is generated from multiple sources. Included packages:
- version: 0.2.1
- license: BSD-2-Clause
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand Down Expand Up @@ -89,7 +89,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue-select
- version: 3.25.1
Expand Down
2 changes: 1 addition & 1 deletion dist/2474-2474.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ SPDX-FileCopyrightText: @nextcloud/dialogs developers

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand Down
6 changes: 3 additions & 3 deletions dist/3485-3485.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SPDX-FileCopyrightText: @nextcloud/dialogs developers

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand All @@ -57,7 +57,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/files
- version: 3.11.0
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
Expand All @@ -75,7 +75,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/upload
- version: 1.10.0
Expand Down
2 changes: 1 addition & 1 deletion dist/3920-3920.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ SPDX-FileCopyrightText: @nextcloud/dialogs developers

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand Down
2 changes: 1 addition & 1 deletion dist/4040-4040.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SPDX-FileCopyrightText: Anthony Fu <https://github.com/antfu>

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand Down
4 changes: 2 additions & 2 deletions dist/4508-4508.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ This file is generated from multiple sources. Included packages:
- version: 0.2.1
- license: BSD-2-Clause
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand Down Expand Up @@ -89,7 +89,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue-select
- version: 3.25.1
Expand Down
2 changes: 1 addition & 1 deletion dist/4965-4965.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SPDX-FileCopyrightText: Anthony Fu <https://github.com/antfu>

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand Down
6 changes: 3 additions & 3 deletions dist/519-519.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ SPDX-FileCopyrightText: @nextcloud/dialogs developers

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand All @@ -60,7 +60,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/files
- version: 3.11.0
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
Expand All @@ -78,7 +78,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
Expand Down
4 changes: 2 additions & 2 deletions dist/5258-5258.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ This file is generated from multiple sources. Included packages:
- version: 0.2.1
- license: BSD-2-Clause
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand Down Expand Up @@ -93,7 +93,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue-select
- version: 3.25.1
Expand Down
6 changes: 3 additions & 3 deletions dist/5771-5771.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SPDX-FileCopyrightText: @nextcloud/dialogs developers

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/browser-storage
- version: 0.4.0
Expand All @@ -48,7 +48,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/files
- version: 3.11.0
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
Expand All @@ -66,7 +66,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
Expand Down
4 changes: 2 additions & 2 deletions dist/5792-5792.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/5792-5792.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ This file is generated from multiple sources. Included packages:
- version: 0.2.5
- license: MIT
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand All @@ -80,7 +80,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/files
- version: 3.11.0
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
Expand All @@ -101,7 +101,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue-select
- version: 3.25.1
Expand Down
2 changes: 1 addition & 1 deletion dist/5792-5792.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/5810-5810.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/5810-5810.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SPDX-FileCopyrightText: Alkemics

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/browser-storage
- version: 0.4.0
Expand All @@ -37,7 +37,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/files
- version: 3.11.0
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
Expand All @@ -55,7 +55,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- base64-js
- version: 1.5.1
Expand Down
2 changes: 1 addition & 1 deletion dist/5810-5810.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/7383-7383.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SPDX-FileCopyrightText: @nextcloud/dialogs developers

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand All @@ -57,7 +57,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/files
- version: 3.11.0
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
Expand All @@ -75,7 +75,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/upload
- version: 1.10.0
Expand Down
6 changes: 3 additions & 3 deletions dist/7432-7432.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This file is generated from multiple sources. Included packages:
- version: 7.4.47
- license: Apache-2.0
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand All @@ -78,7 +78,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/files
- version: 3.11.0
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
Expand All @@ -96,7 +96,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue-select
- version: 3.25.1
Expand Down
6 changes: 3 additions & 3 deletions dist/7457-7457.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This file is generated from multiple sources. Included packages:
- version: 7.4.47
- license: Apache-2.0
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/browser-storage
- version: 0.4.0
Expand All @@ -48,7 +48,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/files
- version: 3.11.0
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
Expand All @@ -66,7 +66,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.4
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
Expand Down
2 changes: 1 addition & 1 deletion dist/7462-7462.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ SPDX-FileCopyrightText: @nextcloud/dialogs developers

This file is generated from multiple sources. Included packages:
- @nextcloud/auth
- version: 2.5.1
- version: 2.5.2
- license: GPL-3.0-or-later
- @nextcloud/axios
- version: 2.5.1
Expand Down
Loading
Loading