Просмотр исходного кода

Merge pull request #2404 from visuddhinanda/development

Development
visuddhinanda 5 дней назад
Родитель
Сommit
4730a998a1

+ 1 - 1
api-v13/app/Http/Api/MdRender.php

@@ -337,7 +337,7 @@ class MdRender
                 return trim($html);
                 break;
             case 'unity':
-                if ($tplProps) {
+                if (isset($tplProps) && is_array($tplProps)) {
                     return "{{" . "{$tplProps['tpl']}|{$tplProps['props']}" . "}}";
                 } else {
                     return '';

+ 23 - 12
api-v13/documents/ai-test.md

@@ -1,16 +1,27 @@
 # 服务器端测试和运行的项目
 
-| 序列号 | 项目 | 代码完成| 功能测试  | 可重入 | 运行中 |结束|
-|--------|------|-------------|--------|--------|--------|--------|
-| 1 | 三藏全文搜索 |✅ |✅ |✅ |✅ |✅ |
-| 2 | 百科全文搜索 |✅ | | | | |
-| 3 | 注疏穿插 |✅ |✅ |✅ |✅ |
-| 4 | 汉译 nissaya |✅ |✅ |✅ |
-| 5 | ai 译文(deepseek) |✅ | | |
-| 6 | ai 译文(claude) | | | |
-| 7 | 第三方译文导入 |✅ | | |
-| 8 | 五大册-AI 汉译 |✅ | | |
-| 9 | AI 百科 |✅ | | |
-| 10 | AI wbw | | | |
+| 序列号 | 项目              | 代码完成 | 功能测试 | 可重入 | 运行中 | 结束 |
+| ------ | ----------------- | -------- | -------- | ------ | ------ | ---- |
+| 1      | 三藏全文搜索      |       |       |     |     |    |
+| 2      | 百科全文搜索      |       |          |        |        |      |
+| 3      | 注疏穿插          |       |       |     |      |      |
+| 4      | 汉译 nissaya      |       |       |      |        |      |
+| 5      | ai 译文(deepseek) |       |          |        |        |      |
+| 6      | ai 译文(claude)   |          |          |        |        |      |
+| 7      | 第三方译文导入    |       |          |        |        |      |
+| 8      | 五大册-AI 汉译    |       |          |        |        |      |
+| 9      | AI 百科           |       |          |        |        |      |
+| 10     | AI wbw            |          |          |        |        |      |
 
 > 功能测试 是指在wikipali server上功能测试通过
+
+```bash
+# 注疏穿插
+php artisan upgrade:sys.commentary --model=a31d2036-2643-485c-8f3a-3471800cbb72 --thinking=false --skip='abhi*'
+
+# 汉译 nissaya
+php artisan upgrade:ai.translation nissaya 93cd528e-6539-11f0-808a-1f00186e84a7 --model=14c61827-54e7-463a-94eb-c06b538e199f
+
+# 五大册-AI 汉译
+php artisan app:ai-article-translate --anthology=22ae16b4-68b3-4403-b155-ede40c509c7e --model=a31d2036-2643-485c-8f3a-3471800cbb72 --channel=877ae5ee-4a92-11f0-808a-6b8433850072
+```

+ 1 - 1
api-v13/resources/views/components/ui/search-input.blade.php

@@ -1,6 +1,6 @@
 {{-- resources/views/components/ui/search-input.blade.php --}}
 @props([
-'action',
+'action' => route('library.search', [], false),
 'value' => '',
 'placeholder' => '搜索…',
 'buttonText' => '搜索',

+ 0 - 1
api-v13/resources/views/library/anthology/index.blade.php

@@ -54,7 +54,6 @@
                 {{-- 搜索 --}}
                 <div class="sb-card" style="padding: .85rem 1.1rem; margin-bottom: 1.1rem;">
                     <x-ui.search-input
-                        :action="route('library.search')"
                         :placeholder="__('library.search_anthology')"
                         :hidden-fields="['resource_type' => 'anthology']" />
                 </div>

+ 0 - 1
api-v13/resources/views/library/index.blade.php

@@ -20,7 +20,6 @@
         <p class="hero-subtitle">{{ __('library.portal_hero_subtitle') }}</p>
         <div class="search-box">
             <x-ui.search-input
-                :action="route('library.search')"
                 :placeholder="__('library.search_placeholder_home')"
                 size="lg" />
         </div>

+ 0 - 1
api-v13/resources/views/library/search.blade.php

@@ -14,7 +14,6 @@
 {{-- 搜索框 --}}
 <div class="wiki-search-bar-wrap">
     <x-ui.search-input
-        :action="route('library.search')"
         :value="$query"
         :placeholder="__('library.search_placeholder')"
         :autofocus="true"

+ 0 - 1
api-v13/resources/views/library/tipitaka/category.blade.php

@@ -72,7 +72,6 @@
             {{-- 搜索框 --}}
             <div>
                 <x-ui.search-input
-                    :action="route('library.search')"
                     :value="request('q')"
                     :placeholder="__('library.search_tipitaka')"
                     :hidden-fields="['resource_type' => 'tipitaka']" />

+ 0 - 1
api-v13/resources/views/library/tipitaka/index.blade.php

@@ -14,7 +14,6 @@
         <p class="hero-subtitle">{{ __('library.portal_hero_subtitle') }}</p>
         <div class="search-box">
             <x-ui.search-input
-                :action="route('library.search')"
                 :placeholder="__('library.search_tipitaka')"
                 size="lg"
             />

+ 0 - 1
api-v13/resources/views/library/wiki/home.blade.php

@@ -26,7 +26,6 @@
     {{-- 搜索框 --}}
     <div class="wiki-home-search">
         <x-ui.search-input
-            :action="route('library.search')"
             :value="request('q')"
             :placeholder="__('library.wiki_search_placeholder')"
             size="lg"

+ 0 - 1
api-v13/resources/views/library/wiki/index.blade.php

@@ -7,7 +7,6 @@
 {{-- 搜索框组件 --}}
 <div class="wiki-search-wrapper">
     <x-ui.search-input
-        :action="route('library.search')"
         :value="request('q')"
         :placeholder="__('library.wiki_search_placeholder')"
         size="lg"

+ 0 - 1
api-v13/resources/views/library/wiki/show.blade.php

@@ -7,7 +7,6 @@
 {{-- 搜索框组件 --}}
 <div class="wiki-search-wrapper">
     <x-ui.search-input
-        :action="route('library.search')"
         :value="request('q')"
         :placeholder="__('library.wiki_search_placeholder')"
         size="lg"