feat(search): Added app embedding functionality and optimized search page #3221 (#9499)

### What problem does this PR solve?
feat(search): Added app embedding functionality and optimized search
page #3221

- Added an Embed App button and related functionality
- Optimized the layout and interaction of the search settings interface
- Adjusted the search result display method
- Refactored some code to support new features
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
chanx
2025-08-15 18:25:00 +08:00
committed by GitHub
parent 99df0766fe
commit f9e5caa8ed
24 changed files with 1299 additions and 493 deletions

View File

@ -38,6 +38,7 @@ const {
listTagByKnowledgeIds,
setMeta,
getMeta,
retrievalTestShare,
} = api;
const methods = {
@ -164,6 +165,10 @@ const methods = {
url: getMeta,
method: 'get',
},
retrievalTestShare: {
url: retrievalTestShare,
method: 'post',
},
};
const kbService = registerServer<keyof typeof methods>(methods, request);

View File

@ -8,6 +8,10 @@ const {
deleteSearch,
getSearchDetail,
updateSearchSetting,
askShare,
mindmapShare,
getRelatedQuestionsShare,
getSearchDetailShare,
} = api;
const methods = {
createSearch: {
@ -27,6 +31,23 @@ const methods = {
url: updateSearchSetting,
method: 'post',
},
askShare: {
url: askShare,
method: 'post',
},
mindmapShare: {
url: mindmapShare,
method: 'post',
},
getRelatedQuestionsShare: {
url: getRelatedQuestionsShare,
method: 'post',
},
getSearchDetailShare: {
url: getSearchDetailShare,
method: 'get',
},
} as const;
const searchService = registerServer<keyof typeof methods>(methods, request);