File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
5+ import { getCSPNonce } from '@nextcloud/auth'
56
67import './share.js'
78import './sharebreadcrumbview.js'
89import './style/sharebreadcrumb.scss'
910import './collaborationresourceshandler.js'
1011
1112// eslint-disable-next-line camelcase
12- __webpack_nonce__ = btoa ( OC . requestToken )
13+ __webpack_nonce__ = getCSPNonce ( )
1314
1415window . OCA . Sharing = OCA . Sharing
Original file line number Diff line number Diff line change 22 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
5+ import { getCSPNonce } from '@nextcloud/auth'
56
67// eslint-disable-next-line camelcase
7- __webpack_nonce__ = btoa ( OC . requestToken )
8+ __webpack_nonce__ = getCSPNonce ( )
89
910window . OCP . Collaboration . registerType ( 'file' , {
1011 action : ( ) => {
Original file line number Diff line number Diff line change 22 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
5-
5+ import { getCSPNonce } from '@nextcloud/auth'
66import Vue from 'vue'
77
88import ArtificialIntelligence from './components/AdminAI.vue'
99
1010// eslint-disable-next-line camelcase
11- __webpack_nonce__ = btoa ( OC . requestToken )
11+ __webpack_nonce__ = getCSPNonce ( )
1212
1313Vue . prototype . t = t
1414
Original file line number Diff line number Diff line change 22 * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
5-
5+ import { getCSPNonce } from '@nextcloud/auth'
66import { loadState } from '@nextcloud/initial-state'
77import Vue from 'vue'
88
@@ -11,7 +11,7 @@ import EncryptionSettings from './components/Encryption/EncryptionSettings.vue'
1111import store from './store/admin-security.js'
1212
1313// eslint-disable-next-line camelcase
14- __webpack_nonce__ = btoa ( OC . requestToken )
14+ __webpack_nonce__ = getCSPNonce ( )
1515
1616Vue . prototype . t = t
1717
Original file line number Diff line number Diff line change 22 * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
5+ import { getCSPNonce } from '@nextcloud/auth'
6+ import { t , n } from '@nextcloud/l10n'
57
68import Vue from 'vue'
7-
89import PasswordSection from './components/PasswordSection.vue'
9- import { translate as t , translatePlural as n } from '@nextcloud/l10n'
1010
1111// eslint-disable-next-line camelcase
12- __webpack_nonce__ = btoa ( OC . requestToken )
12+ __webpack_nonce__ = getCSPNonce ( )
1313
1414Vue . prototype . t = t
1515Vue . prototype . n = n
Original file line number Diff line number Diff line change 22 * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
33 * SPDX-License-Identifier: AGPL-3.0-or-later
44 */
5-
6- import Vue from 'vue'
5+ import { getCSPNonce } from '@nextcloud/auth'
76import { loadState } from '@nextcloud/initial-state'
7+ import Vue from 'vue'
88
99import WebAuthnSection from './components/WebAuthn/Section.vue'
1010
1111// eslint-disable-next-line camelcase
12- __webpack_nonce__ = btoa ( OC . requestToken )
12+ __webpack_nonce__ = getCSPNonce ( )
1313
1414Vue . prototype . t = t
1515
You can’t perform that action at this time.
0 commit comments