chore: format all frontend files (#430)

This commit is contained in:
tecvan
2025-07-31 23:15:48 +08:00
committed by GitHub
parent 8b078ff013
commit 6995cec404
8787 changed files with 11975 additions and 10924 deletions

View File

@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { RecallSlices } from './src';

View File

@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { RecallSlices, LLMOutput } from './plugins';

View File

@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export { RecallSlices, LLMOutput } from './recall-slices';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export const filterUnnecessaryContentFromSlice = (slice: string): string => {
let res = slice;
// Filter img tags

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React, { useEffect, useMemo, useRef, useState } from 'react';
import { DataNamespace, dataReporter } from '@coze-data/reporter';
@@ -64,14 +64,14 @@ const getSourceTypeDescription = (sourceType: number): string | undefined =>
),
[DocumentSource.Notion]: I18n.t('chat-area-knowledge-notion-data-source'),
[DocumentSource.LarkWeb]: I18n.t('Lark_00002'),
})[sourceType];
}[sourceType]);
const getFormatTypeDescription = (formatType: number): string | undefined =>
({
[FormatType.Table]: I18n.t('knowledge-dataset-type-table'),
[FormatType.Text]: I18n.t('knowledge-dataset-type-text'),
[FormatType.Image]: I18n.t('knowledge_photo_025'),
})[formatType];
}[formatType]);
function RecallSlice(props: { llmOutput: LLMOutput; index: number }) {
const { llmOutput, index } = props;

View File

@@ -13,5 +13,5 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/// <reference types='@coze-arch/bot-typings' />

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { DemoRecallSlices } from './demo';
export default {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable @typescript-eslint/no-explicit-any */
import { RecallSlices } from '../src';

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { defineConfig } from '@coze-arch/vitest-config';
export default defineConfig({