mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 23:41:12 +08:00
Refactor: Remove unused API code (#13978)
### What problem does this PR solve? Refactor: Remove unused API code ### Type of change - [x] New Feature (non-breaking change which adds functionality) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Updated table header styling in dataset settings by removing a hard-coded background color class, allowing the header to use default or inherited component styling instead. * **Refactor** * Removed token management endpoints from the API service. Token creation, listing, and removal functions are no longer available. * Removed the statistics data endpoint from available API routes. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -222,7 +222,7 @@ export function TagTable() {
|
||||
)}
|
||||
</div>
|
||||
<Table rootClassName="rounded-none border max-h-80 overflow-y-auto">
|
||||
<TableHeader className="bg-[#39393b]">
|
||||
<TableHeader>
|
||||
{table.getHeaderGroups().map((headerGroup) => (
|
||||
<TableRow key={headerGroup.id}>
|
||||
{headerGroup.headers.map((header) => {
|
||||
|
||||
@@ -16,10 +16,6 @@ const {
|
||||
removeSessions,
|
||||
deleteMessage,
|
||||
thumbup,
|
||||
createToken,
|
||||
listToken,
|
||||
removeToken,
|
||||
getStats,
|
||||
chatsTts,
|
||||
ask,
|
||||
chatsMindmap,
|
||||
@@ -85,22 +81,6 @@ const methods = {
|
||||
url: thumbup,
|
||||
method: 'put',
|
||||
},
|
||||
createToken: {
|
||||
url: createToken,
|
||||
method: 'post',
|
||||
},
|
||||
listToken: {
|
||||
url: listToken,
|
||||
method: 'get',
|
||||
},
|
||||
removeToken: {
|
||||
url: removeToken,
|
||||
method: 'post',
|
||||
},
|
||||
getStats: {
|
||||
url: getStats,
|
||||
method: 'get',
|
||||
},
|
||||
chatsTts: {
|
||||
url: chatsTts,
|
||||
method: 'post',
|
||||
|
||||
@@ -150,11 +150,6 @@ export default {
|
||||
ask: `${restAPIv1}/chats/ask`,
|
||||
chatsMindmap: `${restAPIv1}/chats/mindmap`,
|
||||
chatsRelatedQuestions: `${restAPIv1}/chats/related_questions`,
|
||||
// chat for external
|
||||
createToken: `${webAPI}/api/new_token`,
|
||||
listToken: `${webAPI}/api/token_list`,
|
||||
removeToken: `${webAPI}/api/rm`,
|
||||
getStats: `${webAPI}/api/stats`,
|
||||
|
||||
// next chat
|
||||
fetchExternalChatInfo: (id: string) => `${restAPIv1}/chatbots/${id}/info`,
|
||||
|
||||
Reference in New Issue
Block a user