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
8 changes: 3 additions & 5 deletions apps/files/src/utils/filesViews.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ describe('hasPersonalFilesView', () => {
})

describe('defaultView', () => {
beforeEach(() => {
document.querySelectorAll('input[type="hidden"]').forEach((el) => {
el.remove()
})
})
beforeEach(removeInitialState)

test('Returns files view if set', () => {
mockInitialState('files', 'config', { default_view: 'files' })
Expand All @@ -57,6 +53,8 @@ function removeInitialState(): void {
document.querySelectorAll('input[type="hidden"]').forEach((el) => {
el.remove()
})
// clear the cache
delete globalThis._nc_initial_state
}

/**
Expand Down
5 changes: 5 additions & 0 deletions cypress/support/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ Cypress.Commands.add('mockInitialState', (app: string, key: string, value: unkno
})

Cypress.Commands.add('unmockInitialState', (app?: string, key?: string) => {
cy.window().then(($window) => {
// @ts-expect-error internal value
delete $window._nc_initial_state
})

cy.document().then(($document) => {
$document.querySelectorAll('body > input[type="hidden"]' + (app ? `[id="initial-state-${app}-${key}"]` : ''))
.forEach((node) => $document.body.removeChild(node))
Expand Down
4 changes: 2 additions & 2 deletions dist/1023-1023.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/1023-1023.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This file is generated from multiple sources. Included packages:
- version: 7.4.47
- license: Apache-2.0
- @nextcloud/initial-state
- version: 2.2.0
- version: 3.0.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
Expand Down
2 changes: 1 addition & 1 deletion dist/1023-1023.js.map

Large diffs are not rendered by default.

9 changes: 6 additions & 3 deletions dist/1656-1656.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/browser-storage
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.0
- license: GPL-3.0-or-later
Expand All @@ -59,9 +62,6 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/files
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
- license: GPL-3.0-or-later
Expand All @@ -74,6 +74,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.5
- license: GPL-3.0-or-later
Expand Down
4 changes: 2 additions & 2 deletions dist/1820-1820.js

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions dist/1820-1820.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/browser-storage
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.0
- license: GPL-3.0-or-later
Expand All @@ -76,9 +79,6 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/event-bus
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
- license: GPL-3.0-or-later
Expand All @@ -88,12 +88,18 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue-select
- version: 3.25.1
- license: MIT
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
- license: AGPL-3.0-or-later
Expand Down
2 changes: 1 addition & 1 deletion dist/1820-1820.js.map

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion dist/2911-2911.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/browser-storage
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.0
- license: GPL-3.0-or-later
Expand All @@ -63,7 +66,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- version: 3.0.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
Expand All @@ -77,9 +80,15 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
- license: AGPL-3.0-or-later
Expand Down
9 changes: 6 additions & 3 deletions dist/3485-3485.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/browser-storage
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.0
- license: GPL-3.0-or-later
Expand All @@ -59,9 +62,6 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/files
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
- license: GPL-3.0-or-later
Expand All @@ -74,6 +74,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.5
- license: GPL-3.0-or-later
Expand Down
2 changes: 2 additions & 0 deletions dist/3580-3580.js

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions dist/7432-7432.js.license → dist/3580-3580.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/browser-storage
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.0
- license: GPL-3.0-or-later
Expand All @@ -80,9 +83,6 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/files
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
- license: GPL-3.0-or-later
Expand All @@ -95,12 +95,18 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue-select
- version: 3.25.1
- license: MIT
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
- license: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions dist/3580-3580.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/3580-3580.js.map.license
4 changes: 2 additions & 2 deletions dist/3596-3596.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/3596-3596.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- version: 3.0.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
Expand All @@ -88,6 +88,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
- license: AGPL-3.0-or-later
Expand Down
2 changes: 1 addition & 1 deletion dist/3596-3596.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion dist/3920-3920.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/browser-storage
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.0
- license: GPL-3.0-or-later
Expand All @@ -81,7 +84,7 @@ This file is generated from multiple sources. Included packages:
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- version: 3.0.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
Expand Down
6 changes: 3 additions & 3 deletions dist/4040-4040.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/event-bus
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
- license: GPL-3.0-or-later
Expand All @@ -50,6 +47,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
- license: AGPL-3.0-or-later
Expand Down
12 changes: 9 additions & 3 deletions dist/4508-4508.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/browser-storage
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.0
- license: GPL-3.0-or-later
Expand All @@ -76,9 +79,6 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/event-bus
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
- license: GPL-3.0-or-later
Expand All @@ -88,12 +88,18 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue-select
- version: 3.25.1
- license: MIT
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
- license: AGPL-3.0-or-later
Expand Down
4 changes: 2 additions & 2 deletions dist/459-459.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/459-459.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ This file is generated from multiple sources. Included packages:
- version: 7.4.47
- license: Apache-2.0
- @nextcloud/initial-state
- version: 2.2.0
- version: 3.0.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
Expand Down
2 changes: 1 addition & 1 deletion dist/459-459.js.map

Large diffs are not rendered by default.

12 changes: 9 additions & 3 deletions dist/5258-5258.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/browser-storage
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.0
- license: GPL-3.0-or-later
Expand All @@ -80,9 +83,6 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/event-bus
- version: 3.3.2
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
- license: GPL-3.0-or-later
Expand All @@ -92,12 +92,18 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.5
- license: GPL-3.0-or-later
- @nextcloud/vue-select
- version: 3.25.1
- license: MIT
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 8.28.0
- license: AGPL-3.0-or-later
Expand Down
9 changes: 6 additions & 3 deletions dist/5771-5771.js.license
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/browser-storage
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/capabilities
- version: 1.2.0
- license: GPL-3.0-or-later
Expand All @@ -50,9 +53,6 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/files
- version: 3.12.0
- license: AGPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.0
- license: GPL-3.0-or-later
Expand All @@ -65,6 +65,9 @@ This file is generated from multiple sources. Included packages:
- @nextcloud/router
- version: 3.0.1
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 2.2.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.2.5
- license: GPL-3.0-or-later
Expand Down
Loading
Loading