From fb25932a312f6d63dc5a5011e02bbc6d4bbba1bb Mon Sep 17 00:00:00 2001 From: wangzemei Date: Tue, 30 Sep 2025 14:46:24 +0800 Subject: [PATCH] - [misc] remove the useless file. --- .../ai/view/editminiprogramcategory.html.php | 55 ---- module/ai/view/miniprograms.html.php | 248 ------------------ module/ai/view/prompts.html.php | 217 --------------- module/ai/view/promptview.html.php | 220 ---------------- 4 files changed, 740 deletions(-) delete mode 100644 module/ai/view/editminiprogramcategory.html.php delete mode 100644 module/ai/view/miniprograms.html.php delete mode 100644 module/ai/view/prompts.html.php delete mode 100644 module/ai/view/promptview.html.php diff --git a/module/ai/view/editminiprogramcategory.html.php b/module/ai/view/editminiprogramcategory.html.php deleted file mode 100644 index a6ed550b5f..0000000000 --- a/module/ai/view/editminiprogramcategory.html.php +++ /dev/null @@ -1,55 +0,0 @@ - - - -
-
-
-
-
-
- ai->miniPrograms->categoryList as $key => $value) : ?> -
-
-
- -
-
- - $value) : ?> -
-
-
- - -
-
- -
-
- - goback; ?> -
-
-
-
-
-
- diff --git a/module/ai/view/miniprograms.html.php b/module/ai/view/miniprograms.html.php deleted file mode 100644 index dcd95646f5..0000000000 --- a/module/ai/view/miniprograms.html.php +++ /dev/null @@ -1,248 +0,0 @@ -ai->miniPrograms->allCategories); -$isNotOpen = $config->edition != 'open'; -?> - - - - - -
- -
- -
-

- ai->miniPrograms->emptyList;?> - createLink('ai', 'createMiniProgram'), " " . $lang->ai->miniPrograms->create, '', "class='btn btn-info'");?> -

-
- -
- - - - recTotal}&recPerPage={$pager->recPerPage}"; ?> - - - - - - - - - - - - - - - createLink('ai', 'miniProgramView', "id={$miniProgram->id}") : null; ?> - - - - - - - - - - -
prompt->name; ?>prompt->status; ?>prompt->module; ?>prompt->createdBy; ?>prompt->createdDate); ?>ai->miniPrograms->latestPublishedDate); ?>actions; ?>
id; ?>name : "{$miniProgram->name}" ?>publishedLabel; ?>categoryLabel; ?>createdByLabel; ?>createdDate; ?>published === '1' ? $miniProgram->publishedDate : ''; ?> - published === '1'; - $isBuiltIn = $miniProgram->builtIn === '1'; - ?> - ai->prompts->action->edit}'>" - : "id")}'>"; - } - ?> - - - - - - - - - - - - -
- -
- -
-
- diff --git a/module/ai/view/prompts.html.php b/module/ai/view/prompts.html.php deleted file mode 100644 index e64ca52fac..0000000000 --- a/module/ai/view/prompts.html.php +++ /dev/null @@ -1,217 +0,0 @@ - - * @package ai - * @link https://www.zentao.net - */ -?> - -ai->isExecutable($prompt); - $published = $prompt->status == 'active'; - - if($this->config->edition != 'open') - { - /* Design button. */ - if(common::hasPriv('ai', 'promptassignrole')) $html .= html::a(helper::createLink('ai', 'promptassignrole', "prompt=$prompt->id"), '', '', "class='btn" . ($published ? ' disabled' : '') . "' title='{$lang->ai->prompts->action->design}'"); - - /* Test / audit button. */ - if(common::hasPriv('ai', 'promptaudit')) $html .= html::a($executable ? $this->ai->getTestingLocation($prompt) : '#', '', '', "id='prompt-audit-button-$prompt->id' class='prompt-audit-btn btn" . ($executable && !$published ? '' : ' disabled') . "' title='{$lang->ai->prompts->action->test}'" . ($executable ? '' : " data-toggle='modal' data-target='#designConfirmModal'")); - - /* Edit button. */ - if(common::hasPriv('ai', 'promptedit')) $html .= html::a(helper::createLink('ai', 'promptedit', "prompt=$prompt->id"), '', '', "class='btn' title='{$lang->ai->prompts->action->edit}'"); - - /* Divider. */ - if(common::hasPriv('ai', 'promptpublish') || common::hasPriv('ai', 'promptunpublish')) $html .= '
'; - } - /* Publish button. */ - if(common::hasPriv('ai', 'promptpublish')) $html .= html::a(!$published && $executable ? "javascript:togglePromptStatus($prompt->id)" : '#', '', '', "class='btn" . (!$published && $executable ? '' : ' disabled') . "' title='{$lang->ai->prompts->action->publish}'" . ($executable ? '' : " data-toggle='modal' data-target='#designConfirmModal'")); - - /* Unpublish button. */ - if(common::hasPriv('ai', 'promptunpublish')) $html .= html::a('#', '', '', "class='btn" . (!$published || !$executable ? ' disabled' : '') . "' title='{$lang->ai->prompts->action->unpublish}'" . (!$published ? '' : " data-toggle='modal' data-target='#draftConfirmModal'")); - - echo $html; - } -?> - -
- -
- -
-

- ai->prompts->emptyList;?> - config->edition != 'open' && common::hasPriv('ai', 'createprompt')) echo html::a($this->createLink('ai', 'createprompt'), " " . $lang->ai->prompts->create, '', "class='btn btn-info iframe'");?> -

-
- -
- - - - recTotal}&recPerPage={$pager->recPerPage}";?> - - - - - - - - - - - - - - - - - - - - - - - - - - -
ai->prompts->id);?>ai->prompts->name);?>ai->prompts->stage);?>ai->prompts->createdBy);?>ai->prompts->createdDate);?>ai->prompts->targetForm);?>actions;?>
id;?>id"), $prompt->name, '_self', "title='$prompt->name'") : $prompt->name;?>ai->prompts->statuses[$prompt->status];?>createdBy);?>createdDate;?> - targetForm) - { - $targetFormPath = explode('.', $prompt->targetForm); - if(count($targetFormPath) == 2) echo $lang->ai->targetForm[$targetFormPath[0]]['common'] . ' / ' . $lang->ai->targetForm[$targetFormPath[0]][$targetFormPath[1]]; - } - ?> - - -
- -
- -
-
- - - - - - diff --git a/module/ai/view/promptview.html.php b/module/ai/view/promptview.html.php deleted file mode 100644 index bb67d30815..0000000000 --- a/module/ai/view/promptview.html.php +++ /dev/null @@ -1,220 +0,0 @@ - - * @package ai - * @link https://www.zentao.net - */ -?> - - - - -
-
-
-
-
ai->prompts->role;?>
-
role;?>
-
ai->prompts->characterization;?>
-
characterization;?>
-
-
-
ai->prompts->object;?>
-
module ? $this->lang->ai->dataSource[$prompt->module]['common'] : ''; ?>
-
ai->prompts->field;?>
-
-
-
-
ai->prompts->setPurpose;?>
-
purpose;?>
-
ai->prompts->elaboration;?>
-
elaboration;?>
-
-
-
ai->prompts->selectTargetForm;?>
-
- targetForm)) echo ''; - else - { - $targetForm = explode('.', $prompt->targetForm); - echo $this->lang->ai->targetForm[$targetForm[0]][$targetForm[1]]; - } - ?>
-
-
-
- config->edition != 'open'): ?> -
-
- ' . $lang->goback, '', "class='btn'"); ?> - deleted): ?> - status == 'draft' && (common::hasPriv('ai', 'promptassignrole') || common::hasPriv('ai', 'promptaudit') || common::hasPriv('ai', 'publish'))) || ($prompt->status != 'draft' && common::hasPriv('ai', 'unpublish'))): ?> -
- status == 'draft') echo html::a(helper::createLink('ai', 'promptassignrole', "prompt=$prompt->id"), ' ' . $lang->ai->prompts->action->design, '', "class='btn'"); ?> - status == 'draft' && $this->ai->isExecutable($prompt)) echo html::a($this->ai->getTestingLocation($prompt), ' ' . $lang->ai->prompts->action->test, '', "class='btn prompt-audit-btn'"); ?> - status == 'draft' && $this->ai->isExecutable($prompt)) echo html::a(helper::createLink('ai', 'promptpublish', "id={$prompt->id}"), ' ' . $lang->ai->prompts->action->publish, '', "class='btn'"); ?> - status == 'active') echo html::a(helper::createLink('ai', 'promptunpublish', "id={$prompt->id}"), ' ' . $lang->ai->prompts->action->unpublish, '', "class='btn' id='unpublish-btn'"); ?> - -
- id"), '', '', "class='btn' title='{$lang->ai->prompts->action->edit}'"); ?> - id"), '', '', "class='btn deleter' title='{$lang->ai->prompts->action->delete}'"); ?> - -
-
- -
-
-
- -
-
- - - - - - - - - - - - - - - - - - - -
prompt->module; ?>module ? $this->lang->ai->dataSource[$prompt->module]['common'] : ''; ?>
prompt->desc; ?>desc; ?>
prompt->status; ?>ai->prompts->statuses[$prompt->status]; ?>
prompt->model; ?>
-
-
- - - - - - - action, array('published', 'unpublished'))) $lastPublishAction = $action; - break; - } - ?> - status == 'active'):?> - - - - - - - - - - - - - - - -
prompt->createdBy; ?>createdBy) . $lang->at . $prompt->createdDate;?>
ai->prompts->publishedBy; ?>createdBy : $lastPublishAction->actor);?>
ai->prompts->publishedBy : $lang->ai->prompts->draftedBy;?>actor);?>
prompt->editedBy; ?>editedBy ? zget($users, $prompt->editedBy) . $lang->at . $prompt->editedDate : '';?>
-
-
-
-
- - - -