From e3655d38f78b6a2a027c1f35f70ce4cbe29d101b Mon Sep 17 00:00:00 2001 From: dizzy Date: Wed, 17 Aug 2022 03:27:43 -0500 Subject: [Vue] remove use of angularjs from TwoFactorAuth plugin (#19382) * convert twig templates using directives to vue components, remove angularjs adapters and modify less styles that use directive attribute names * built vue files * move use of angularjs directives in TwoFactorAuth twig templates to new vue components and add vue component for Logins formErrors.twig template * built vue files * add missing translations * fixing UI tests * more UI test fixex * remove reference to nonexistant JS file * updated expected screenshots * fixing ui test failures * update expected screenshots * fixing ui test failures * fix select on focus use * fix placement of computed property * fixing ui test issues * prevent random failure * make sure Login plugin UMD is always loaded * formErrors is an object if supplied * compile vue entry components in reset API response and modify check for success * rebuild login * update expected screenshot * remove unneeded use of html_attr escape * remove use of html_attr and remove duplicate client side translation token entries * sort used js translations and remove duplicates * Update plugins/TwoFactorAuth/vue/src/LoginTwoFactorAuth/LoginTwoFactorAuth.vue Co-authored-by: Stefan Giehl * Update plugins/TwoFactorAuth/vue/src/UserSettings/UserSettings.vue Co-authored-by: Stefan Giehl * Update plugins/TwoFactorAuth/vue/src/ShowRecoveryCodes/ShowRecoveryCodesPage.vue Co-authored-by: Stefan Giehl * Update plugins/TwoFactorAuth/vue/src/SetupFinished/SetupFinished.vue Co-authored-by: Stefan Giehl * built vue files * adds missing sanitize * fix AssetManagerTest * try to fix issue with umd asset fetching if Login not loaded * cs * updates expected test files Co-authored-by: sgiehl --- tests/PHPUnit/Integration/AssetManagerTest.php | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/PHPUnit/Integration') diff --git a/tests/PHPUnit/Integration/AssetManagerTest.php b/tests/PHPUnit/Integration/AssetManagerTest.php index b08bcdc9a5..f158e08601 100644 --- a/tests/PHPUnit/Integration/AssetManagerTest.php +++ b/tests/PHPUnit/Integration/AssetManagerTest.php @@ -206,6 +206,7 @@ class AssetManagerTest extends IntegrationTestCase { $this->pluginManager->setPlugins( array( + new PluginMock('Login'), // PluginUmdAssetFetcher assumes Login is always available $this->getCoreTheme()->getPlugin(), $this->getNonCoreTheme()->getPlugin(), $this->getCorePlugin(), -- cgit v1.2.3