Fixed openai and added plugin version.

This commit is contained in:
Edward Yang 2023-06-19 19:07:43 +08:00
parent f0058fa6b4
commit 5b262df391
6 changed files with 18 additions and 13 deletions

View File

@ -23,9 +23,9 @@ class Bootstrap
add_hook_filter('admin.sidebar.setting_routes', function ($data) {
$data[] = [
'route' => 'openai.index',
'route' => 'openai.index',
'prefixes' => ['openai'],
'title' => 'ChatGPT',
'title' => 'ChatGPT',
];
return $data;

View File

@ -9,7 +9,7 @@
"en": "Integration with OpenAI ChatGPT API"
},
"type": "feature",
"version": "v1.0.0",
"version": "v1.1.0",
"icon": "/image/logo.png",
"author": {
"name": "成都光大网络科技有限公司",

View File

@ -17,6 +17,7 @@
<thead>
<tr>
<th>{{ __('admin/plugin.plugin_code') }}</th>
<th>{{ __('admin/plugin.plugin_version') }}</th>
<th>{{ __('admin/plugin.plugin_type') }}</th>
<th width="50%">{{ __('admin/plugin.plugin_description') }}</th>
<th>{{ __('admin/common.status') }}</th>
@ -26,6 +27,7 @@
<tbody>
<tr v-for="plugin, index in plugins" :key="index">
<td>@{{ plugin.code }}</td>
<td>@{{ plugin.version }}</td>
<td>@{{ plugin.type_format }}</td>
<td>
<div class="plugin-describe d-flex align-items-center">

View File

@ -20,11 +20,12 @@ return [
'to_enable' => 'To Enable',
'uninstall_hint' => 'Uninstalling the plug-in will delete all related data of the plug-in, are you sure you want to uninstall? ',
'plugin_list' => 'Plugin List',
'plugin_code' => 'Code',
'plugin_type' => 'Type',
'plugin_description' => 'Description',
'plugin_upload' => 'Upload(Only for zip file)',
'plugin_list' => 'Plugin List',
'plugin_code' => 'Code',
'plugin_type' => 'Type',
'plugin_version' => 'Version',
'plugin_description' => 'Description',
'plugin_upload' => 'Upload(Only for zip file)',
'shipping' => 'Shipping',
'payment' => 'Payment',

View File

@ -20,11 +20,12 @@ return [
'to_enable' => '去启用',
'uninstall_hint' => '卸载插件会删除该插件的所有相关数据,确定要卸载吗?',
'plugin_list' => '插件设置',
'plugin_code' => '插件代码',
'plugin_type' => '插件类型',
'plugin_description' => '插件描述',
'plugin_upload' => '上传插件(仅支持 zip 文件)',
'plugin_list' => '插件设置',
'plugin_code' => '插件代码',
'plugin_type' => '插件类型',
'plugin_version' => '版本号',
'plugin_description' => '插件描述',
'plugin_upload' => '上传插件(仅支持 zip 文件)',
'shipping' => '配送方式',
'payment' => '支付方式',

View File

@ -23,6 +23,7 @@ return [
'plugin_list' => '插件設置',
'plugin_code' => '插件代碼',
'plugin_type' => '插件類型',
'plugin_version' => '版本號',
'plugin_description' => '插件描述',
'plugin_upload' => '上傳插件(僅支持 zip 文件)',