From 104bd53df9c5366bc9123ef86ed3bdfbad1d12dd Mon Sep 17 00:00:00 2001 From: KarielHalling Date: Mon, 6 Oct 2025 00:28:40 +0800 Subject: [PATCH 1/6] Pass context to plugins for deep integration Modified Extension.vue to pass i18n, API, and Cache context to plugins. This enables plugins to use main app's resources directly for seamless integration. - Import useI18n from vue-i18n and Cache from ./cache - Initialize i18n in component setup - Create context object with i18n, API, and Cache - Pass context as second parameter to plugin.mount() --- console/atest-ui/src/views/Extension.vue | 50 +++++++++++++++++++----- 1 file changed, 40 insertions(+), 10 deletions(-) diff --git a/console/atest-ui/src/views/Extension.vue b/console/atest-ui/src/views/Extension.vue index e8287a572..549aa45e5 100644 --- a/console/atest-ui/src/views/Extension.vue +++ b/console/atest-ui/src/views/Extension.vue @@ -1,12 +1,17 @@