From 9b8aaa1d31495b7ec173386ffeb433d2cd35124d Mon Sep 17 00:00:00 2001 From: Lex Lim Date: Sat, 18 May 2024 08:22:30 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- includes/Special/SpecialAIToolbox.php | 68 +++++++++++++-------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/includes/Special/SpecialAIToolbox.php b/includes/Special/SpecialAIToolbox.php index a70cf93..d3ed26f 100644 --- a/includes/Special/SpecialAIToolbox.php +++ b/includes/Special/SpecialAIToolbox.php @@ -1,4 +1,5 @@ setHeaders(); - $this->outputHeader(); + $this->outputHeader(); $this->showForm(); } protected function showForm() { - $user = $this->getUser(); $out = $this->getOutput(); $out->setPageTitle($this->msg('special-isekai-ai-toolbox')); $out->addModuleStyles([ - 'mediawiki.special', - 'mediawiki.interface.helpers.styles', - ]); - $out->addModules([ + 'mediawiki.special', + 'mediawiki.interface.helpers.styles', + ]); + $out->addModules([ 'mediawiki.misc-authed-ooui', 'ext.isekai.ai-toolbox.launcher', ]); $out->enableOOUI(); - $fields = []; + $fields = []; $fields[] = new \OOUI\FieldLayout( - new \OOUI\LabelWidget([ - 'label' => $this->msg('isekai-ai-toolbox-label-continue-curaccount')->text(), - 'align' => 'top', - ]) - ); + new \OOUI\LabelWidget([ + 'label' => $this->msg('isekai-ai-toolbox-label-continue-curaccount')->text(), + 'align' => 'top', + ]) + ); $fields[] = new \OOUI\FieldLayout( - new \OOUI\ButtonWidget( [ + new \OOUI\ButtonWidget([ 'id' => 'btn-enter-ai-toolbox', - 'label' => $this->msg('ok')->text(), - 'flags' => ['primary', 'progressive'], - 'type' => 'button', - ]), - [ - 'align' => 'top', - ] - ); + 'label' => $this->msg('ok')->text(), + 'flags' => ['primary', 'progressive'], + 'type' => 'button', + ]), + [ + 'align' => 'top', + ] + ); - $fieldset = new \OOUI\FieldsetLayout( [ - 'label' => $this->msg('isekai-ai-toolbox-enter-toolbox')->text(), - 'id' => 'mw-aitoolbox-table', - 'items' => $fields, - ] ); + $fieldset = new \OOUI\FieldsetLayout([ + 'label' => $this->msg('isekai-ai-toolbox-enter-toolbox')->text(), + 'id' => 'mw-aitoolbox-table', + 'items' => $fields, + ]); $out->addHTML( - new \OOUI\PanelLayout([ - 'classes' => ['movepage-wrapper', 'aitoolbox-wrapper'], - 'expanded' => false, - 'padded' => true, - 'framed' => true, - 'content' => $fieldset, - ]) - ); + new \OOUI\PanelLayout([ + 'classes' => ['movepage-wrapper', 'aitoolbox-wrapper'], + 'expanded' => false, + 'padded' => true, + 'framed' => true, + 'content' => $fieldset, + ]) + ); } } \ No newline at end of file