From 376c212bce531ad4411d8c64a1223a3a5c576535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michaela=20Br=C3=BCckner?= Date: Wed, 25 Jun 2025 17:29:35 +0200 Subject: re #5660 --- app/controllers/admin/plugin.php | 8 +- app/views/admin/plugin/unregistered.php | 47 ---------- resources/vue/apps/UnregisteredPlugins.vue | 140 +++++++++++++++++++++++++++++ 3 files changed, 146 insertions(+), 49 deletions(-) delete mode 100644 app/views/admin/plugin/unregistered.php create mode 100644 resources/vue/apps/UnregisteredPlugins.vue diff --git a/app/controllers/admin/plugin.php b/app/controllers/admin/plugin.php index 1be046d..b915f3b 100644 --- a/app/controllers/admin/plugin.php +++ b/app/controllers/admin/plugin.php @@ -509,8 +509,12 @@ class Admin_PluginController extends AuthenticatedController public function unregistered_action() { - $plugins = $this->plugin_admin->scanPluginDirectory(true); - $this->unknown_plugins = $plugins; + $this->render_vue_app( + Studip\VueApp::create('UnregisteredPlugins') + ->withProps([ + 'plugins' => $this->plugin_admin->scanPluginDirectory(true), + ]) + ); } /** diff --git a/app/views/admin/plugin/unregistered.php b/app/views/admin/plugin/unregistered.php deleted file mode 100644 index 800d247..0000000 --- a/app/views/admin/plugin/unregistered.php +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - $plugin): ?> - - - - - - - - - -
- -
- -
-
- - asInput([ - 'title' => _('Plugin registrieren'), - 'class' => 'middle', - 'name' => 'install', - ]) ?> -
-
diff --git a/resources/vue/apps/UnregisteredPlugins.vue b/resources/vue/apps/UnregisteredPlugins.vue new file mode 100644 index 0000000..bfa2ab5 --- /dev/null +++ b/resources/vue/apps/UnregisteredPlugins.vue @@ -0,0 +1,140 @@ + + + + -- cgit v1.0