mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
1 line
No EOL
1 KiB
Text
1 line
No EOL
1 KiB
Text
{"version":3,"file":"encryption-encryption.mjs","sources":["../build/frontend/apps/encryption/src/encryption.ts"],"sourcesContent":["/*!\n * SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\nimport { getCurrentUser } from '@nextcloud/auth'\nimport axios from '@nextcloud/axios'\nimport { showWarning } from '@nextcloud/dialogs'\nimport { generateUrl } from '@nextcloud/router'\n\nwindow.addEventListener('DOMContentLoaded', async function() {\n\tif (getCurrentUser() === null) {\n\t\t// skip for public pages\n\t\treturn\n\t}\n\n\tconst { data } = await axios.get(generateUrl('/apps/encryption/ajax/getStatus'))\n\tif (data.status === 'interactionNeeded') {\n\t\tshowWarning(data.data.message)\n\t}\n})\n"],"names":["getCurrentUser","data","axios","generateUrl","showWarning"],"mappings":"gjBAUA,OAAO,iBAAiB,mBAAoB,gBAAiB,CAC5D,GAAIA,EAAA,IAAqB,KAExB,OAGD,KAAM,CAAE,KAAAC,GAAS,MAAMC,EAAM,IAAIC,EAAY,iCAAiC,CAAC,EAC3EF,EAAK,SAAW,qBACnBG,EAAYH,EAAK,KAAK,OAAO,CAE/B,CAAC"} |