feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
5
frontend/packages/data/common/e2e/.stylelintrc.js
Normal file
5
frontend/packages/data/common/e2e/.stylelintrc.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const { defineConfig } = require('@coze-arch/stylelint-config');
|
||||
|
||||
module.exports = defineConfig({
|
||||
extends: [],
|
||||
});
|
||||
16
frontend/packages/data/common/e2e/README.md
Normal file
16
frontend/packages/data/common/e2e/README.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# @coze-data/e2e
|
||||
|
||||
> Project template for react component with storybook.
|
||||
|
||||
## Features
|
||||
|
||||
- [x] eslint & ts
|
||||
- [x] esm bundle
|
||||
- [x] umd bundle
|
||||
- [x] storybook
|
||||
|
||||
## Commands
|
||||
|
||||
- init: `rush update`
|
||||
- dev: `npm run dev`
|
||||
- build: `npm run build`
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"operationSettings": [
|
||||
{
|
||||
"operationName": "ts-check",
|
||||
"outputFolderNames": ["./dist"]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"codecov": {
|
||||
"coverage": 0,
|
||||
"incrementCoverage": 0
|
||||
}
|
||||
}
|
||||
7
frontend/packages/data/common/e2e/eslint.config.js
Normal file
7
frontend/packages/data/common/e2e/eslint.config.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const { defineConfig } = require('@coze-arch/eslint-config');
|
||||
|
||||
module.exports = defineConfig({
|
||||
packageRoot: __dirname,
|
||||
preset: 'web',
|
||||
rules: {},
|
||||
});
|
||||
21
frontend/packages/data/common/e2e/package.json
Normal file
21
frontend/packages/data/common/e2e/package.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "@coze-data/e2e",
|
||||
"version": "0.0.1",
|
||||
"description": "e2e打标",
|
||||
"license": "Apache-2.0",
|
||||
"author": "wangyan.yoki@bytedance.com",
|
||||
"maintainers": [],
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"build": "exit 0",
|
||||
"lint": "eslint ./ --cache"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@coze-arch/eslint-config": "workspace:*",
|
||||
"@coze-arch/stylelint-config": "workspace:*",
|
||||
"@coze-arch/ts-config": "workspace:*",
|
||||
"stylelint": "^15.11.0"
|
||||
}
|
||||
}
|
||||
|
||||
98
frontend/packages/data/common/e2e/src/bot-e2e.ts
Normal file
98
frontend/packages/data/common/e2e/src/bot-e2e.ts
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export enum BotE2e {
|
||||
BotTab = 'bot.tab',
|
||||
BotListSearch = 'bot.list.search.input',
|
||||
BotListCreateBtn = 'bot.list.create.btn',
|
||||
BotListIcon = 'bot.list.icon',
|
||||
BotListIconDel = 'bot.list.delete.icon',
|
||||
BotListIconEdit = 'bot.list.edit.icon',
|
||||
BotKnowledgeAutoMaticBtn = 'bot.knowledge.auto_matic.btn',
|
||||
/** 知识库设置弹框 */
|
||||
BotKnowledgeSettingModalTitle = 'bot.knowledge.setting.modal.title.text',
|
||||
BotKnowledgeSettingModalAutoRadio = 'bot.knowledge.setting.modal.auto.radio',
|
||||
BotKnowledgeSettingModalManualRadio = 'bot.knowledge.setting.modal.manual.radio',
|
||||
BotKnowledgeSettingNoRecallReplyModeDefaultRadio = 'bot.knowledge.setting.reply.mode.default.radio',
|
||||
BotKnowledgeSettingNoRecallReplyModeCustomizePromptRadio = 'bot.knowledge.setting.reply.mode.customizeprompt.radio',
|
||||
BotKnowledgeSettingShowSourceDisplayTitle = 'bot.knowledge.setting.show.source.display.title.text',
|
||||
BotKnowledgeSettingShowSourceDisplaySwitch = 'bot.knowledge.setting.show.source.display.switch',
|
||||
BotKnowledgeSettingShowSourceModeCardRadio = 'bot.knowledge.setting.show.source.mode.cardlist.radio',
|
||||
BotKnowledgeSettingShowSourceModeTextRadio = 'bot.knowledge.setting.show.source.mode.replybottom.radio',
|
||||
/** 选择知识库列表 */
|
||||
BotKnowledgeSelectListModalCreateBtn = 'bot.knowledge.select.list.modal.create.btn',
|
||||
BotKnowledgeSelectListModalCreateDateSelect = 'bot.knowledge.select.list.modal.create.date.select',
|
||||
BotKnowledgeSelectListModalAllTab = 'bot.knowledge.select.list.modal.all.tab',
|
||||
BotKnowledgeSelectListModalTextTab = 'bot.knowledge.select.list.modal.text.tab',
|
||||
BotKnowledgeSelectListModalTableTab = 'bot.knowledge.select.list.modal.table.tab',
|
||||
BotKnowledgeSelectListModalPhotoTab = 'bot.knowledge.select.list.modal.photo.tab',
|
||||
BotKnowledgeSelectListModalName = 'bot.knowledge.select.list.modal.name.text',
|
||||
BotKnowledgeSelectListModalAddBtn = 'bot.knowledge.select.list.modal.add.btn',
|
||||
/** variable */
|
||||
BotVariableAddModalNameInput = 'bot.variable.add.modal.name.input',
|
||||
BotVariableAddModalDefaultValueInput = 'bot.variable.add.modal.default_value.input',
|
||||
BotVariableAddModalDescInput = 'bot.variable.add.modal.desc.input',
|
||||
BotVariableAddModalDelBtn = 'bot.variable.add.modal.del.btn',
|
||||
BotVariableAddModalSwitch = 'bot.variable.add.modal.switch',
|
||||
BotVariableAddModalNameText = 'bot.variable.add.modal.name.text',
|
||||
BotVariableAddModalDefaultValueText = 'bot.variable.add.modal.default_value.text',
|
||||
BotVariableAddModalDescText = 'bot.variable.add.modal.desc.text',
|
||||
BotVariableAddModalAddBtn = 'bot.variable.add.modal.add.btn',
|
||||
BotVariableAddModalSaveBtn = 'bot.variable.add.modal.save.btn',
|
||||
BotVariableAddModalCancelBtn = 'bot.variable.add.modal.cancel.btn',
|
||||
/** variable-debug */
|
||||
BotVariableDebugModalNameText = 'bot.variable.debug.modal.name.text',
|
||||
BotVariableDebugModalValueInput = 'bot.variable.debug.modal.value.input',
|
||||
BotVariableDebugModalEditDateText = 'bot.variable.debug.modal.edit_date.text',
|
||||
BotVariableDebugModalNameTitleText = 'bot.variable.debug.modal.name.title.text',
|
||||
BotVariableDebugModalValueTitleText = 'bot.variable.debug.modal.value.title.text',
|
||||
BotVariableDebugModalEditDateTitleText = 'bot.variable.debug.modal.edit_date.title.text',
|
||||
BotVariableDebugModalResetBtn = 'bot.variable.debug.modal.reset.btn',
|
||||
/** Ltm-debug */
|
||||
BotLtmDebugModalResetBtn = 'bot.ltm.debug.modal.reset.btn',
|
||||
/** database */
|
||||
BotDatabaseAddModalTitle = 'bot.database.add.modal.title.text',
|
||||
BotDatabaseAddModalTitleCreateAiBtn = 'bot.database.add.modal.title.create_ai.btn',
|
||||
BotDatabaseAddModalTitleCreateAiModalTitle = 'bot.database.add.modal.title.create_ai.modal.title.text',
|
||||
BotDatabaseAddModalTitleCreateAiModalDesc = 'bot.database.add.modal.title.create_ai.modal.desc.input',
|
||||
BotDatabaseAddModalTitleCreateAiModalCreateBtn = 'bot.database.add.modal.title.create_ai.modal.create.btn',
|
||||
BotDatabaseAddModalTitleCloseIcon = 'bot.database.add.modal.title.close.icon',
|
||||
BotDatabaseAddModalAddCustomBtn = 'bot.database.add.modal.add_custom.btn',
|
||||
BotDatabaseAddModalTemplateTitle = 'bot.database.add.modal.template.title.text',
|
||||
BotDatabaseAddModalUseTemplateBtn = 'bot.database.add.modal.use_template.btn',
|
||||
BotDatabaseAddModalPreviewTemplateBtn = 'bot.database.add.modal.preview_template.btn',
|
||||
BotDatabaseAddModalTableNameInput = 'bot.database.add.modal.table_name.input',
|
||||
BotDatabaseAddModalTableDescInput = 'bot.database.add.modal.table_desc.input',
|
||||
BotDatabaseAddModalTableQueryModeSelect = 'bot.database.add.modal.table_query_mode.select',
|
||||
BotDatabaseAddModalFieldNameInput = 'bot.database.add.modal.field_name.input',
|
||||
BotDatabaseAddModalFieldDescInput = 'bot.database.add.modal.field_desc.input',
|
||||
BotDatabaseAddModalFieldTypeSelect = 'bot.database.add.modal.field_type.select',
|
||||
BotDatabaseAddModalFieldRequiredSwitch = 'bot.database.add.modal.field_required.switch',
|
||||
BotDatabaseAddModalFieldDelBtn = 'bot.database.add.modal.field_del.btn',
|
||||
BotDatabaseAddModalAddBtn = 'bot.database.add.modal.add.btn',
|
||||
BotDatabaseAddModalSubmitBtn = 'bot.database.add.modal.submit.btn',
|
||||
BotDatabaseEditTableStructureBtn = 'bot.database.edit_table_structure.btn',
|
||||
/** database-debug */
|
||||
BotDatabaseDebugModalTableNameTab = 'bot.database.debug.modal.table_name.tab',
|
||||
BotDatabaseDebugModalResetBtn = 'bot.database.debug.modal.reset.btn',
|
||||
/** memory */
|
||||
BotMemoryDebugBtn = 'bot.memory_debug.btn',
|
||||
BotMemoryDebugDropdownItem = 'bot.memory_debug.dropdown',
|
||||
BotMemoryDebugModalTab = 'bot.memory_debug.modal.tab',
|
||||
// BotMemoryModalVariableTab = 'bot.memory.modal.variable.tab',
|
||||
// BotMemoryModalDatabaseTab = 'bot.memory.modal.database.tab',
|
||||
// BotMemoryModalLtmTab = 'bot.memory.modal.ltm.tab',
|
||||
}
|
||||
22
frontend/packages/data/common/e2e/src/common-e2e.ts
Normal file
22
frontend/packages/data/common/e2e/src/common-e2e.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export enum CommonE2e {
|
||||
PictureUpload = 'common.picture.upload',
|
||||
CommonFilePicker = 'common.file.picker',
|
||||
CommonDataTypeSelect = 'common.data_type.select',
|
||||
CommonTableViewTextRender = 'common.table_view.text_render',
|
||||
}
|
||||
20
frontend/packages/data/common/e2e/src/index.ts
Normal file
20
frontend/packages/data/common/e2e/src/index.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export { KnowledgeE2e } from './knowledge-e2e';
|
||||
export { BotE2e } from './bot-e2e';
|
||||
export { CommonE2e } from './common-e2e';
|
||||
export { VariableE2e } from './variable-e2e';
|
||||
186
frontend/packages/data/common/e2e/src/knowledge-e2e.ts
Normal file
186
frontend/packages/data/common/e2e/src/knowledge-e2e.ts
Normal file
@@ -0,0 +1,186 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export enum KnowledgeE2e {
|
||||
KnowledgeTab = 'knowledge.tab',
|
||||
// 知识库列表
|
||||
// KnowledgeSearch = 'ui.search_input',
|
||||
KnowledgeSearchType = 'knowledge.list.search.type.select',
|
||||
KnowledgeSearchFounder = 'knowledge.list.search.founder.select',
|
||||
KnowledgeCreateBtn = 'knowledge.list.create.btn',
|
||||
/** 以ui前缀开头的是原来就打过的标,列表页需要根据index去定位 */
|
||||
// KnowledgeListName = 'knowledge.list.name.text',
|
||||
// KnowledgeListIcon = 'ui.table-meta',
|
||||
// KnowledgeListIconDel = 'ui.table-action.delete',
|
||||
// KnowledgeListIconEdit = 'ui.table-action.edit',
|
||||
KnowledgeListSwitch = 'knowledge.list.switch',
|
||||
KnowledgeListAllTab = 'knowledge.list.all.tab',
|
||||
KnowledgeListTextTab = 'knowledge.list.text.tab',
|
||||
KnowledgeListTableTab = 'knowledge.list.table.tab',
|
||||
KnowledgeEditModalDescInput = 'knowledge.edit.modal.desc.input',
|
||||
KnowledgeEditModalNameInput = 'knowledge.edit.modal.name.input',
|
||||
// 创建知识库弹框
|
||||
CreateKnowledgeModal = 'knowledge.create.modal',
|
||||
CreateKnowledgeModalTitle = 'knowledge.create.modal.title.text',
|
||||
CreateKnowledgeModalTextRadioGroup = 'knowledge.create.modal.text.RadioGroup',
|
||||
CreateKnowledgeModalTableRadioGroup = 'knowledge.create.modal.table.RadioGroup',
|
||||
CreateKnowledgeModalPhotoRadioGroup = 'knowledge.create.modal.photo.RadioGroup',
|
||||
CreateKnowledgeModalNameInput = 'knowledge.create.modal.name.input',
|
||||
CreateKnowledgeModalDescInput = 'knowledge.create.modal.desc.input',
|
||||
CreateKnowledgeModalAvatarUploader = 'knowledge.create.modal.avatar.uploader',
|
||||
CreateKnowledgeModalTextLocalRadio = 'knowledge.create.modal.text.local.radio',
|
||||
CreateKnowledgeModalTextOnlineRadio = 'knowledge.create.modal.text.online.radio',
|
||||
CreateKnowledgeModalTextNotionRadio = 'knowledge.create.modal.text.notion.radio',
|
||||
CreateKnowledgeModalTextGoogleRadio = 'knowledge.create.modal.text.google.radio',
|
||||
CreateKnowledgeModalTextFeishuRadio = 'knowledge.create.modal.text.feishu.radio',
|
||||
CreateKnowledgeModalTextWechatRadio = 'knowledge.create.modal.text.wechat.radio',
|
||||
CreateKnowledgeModalTextCustomRadio = 'knowledge.create.modal.text.custom.radio',
|
||||
CreateKnowledgeModalTableLocalRadio = 'knowledge.create.modal.table.local.radio',
|
||||
CreateKnowledgeModalTableApiRadio = 'knowledge.create.modal.table.api.radio',
|
||||
CreateKnowledgeModalTableGoogleRadio = 'knowledge.create.modal.table.google.radio',
|
||||
CreateKnowledgeModalTableFeishuRadio = 'knowledge.create.modal.table.feishu.radio',
|
||||
CreateKnowledgeModalTableCustomRadio = 'knowledge.create.modal.table.custom.radio',
|
||||
CreateKnowledgeModalPhotoImgRadio = 'knowledge.create.modal.photo.img.radio',
|
||||
CreateKnowledgeModalTextLarkRadio = 'knowledge.create.modal.text.lark.radio',
|
||||
CreateKnowledgeModalTableLarkRadio = 'knowledge.create.modal.table.lark.radio',
|
||||
CreateKnowledgeModalSubmitAndImportButton = 'knowledge.create.modal.submit_and_import.button',
|
||||
// 创建文本类型
|
||||
CreateTextUploadNav = 'knowledge.create.text.upload.nav.text',
|
||||
/** 创建知识库步骤条 */
|
||||
// CreateKnowledgeStepUploadFile = 'knowledge.create.step.upload',
|
||||
// CreateKnowledgeStepSegment = 'knowledge.create.step.segment',
|
||||
// CreateKnowledgeStepProcess = 'knowledge.create.step.process',
|
||||
UploadUnitFile = 'knowledge.create.upload.unit.file.upload',
|
||||
UploadUnitNextBtn = 'knowledge.create.unit.next.btn',
|
||||
UploadUnitUpBtn = 'knowledge.create.unit.up.btn',
|
||||
UploadUnitAddBtn = 'knowledge.create.unit.add.btn',
|
||||
UploadUnitCancelBtn = 'knowledge.create.unit.cancel.btn',
|
||||
CreateUnitConfirmBtn = 'knowledge.create.unit.confirm.btn',
|
||||
/** 本地上传列表 */
|
||||
LocalUploadListName = 'knowledge.upload.list.name.input',
|
||||
LocalUploadListNameView = 'knowledge.upload.list.name.text',
|
||||
LocalUploadListStatus = 'knowledge.upload.list.status.text',
|
||||
LocalUploadListFileSize = 'knowledge.upload.list.file_size.text',
|
||||
LocalUploadListFrequency = 'knowledge.create.text.upload.list.frequency.text',
|
||||
LocalUploadListDelete = 'ui.table-action.delete',
|
||||
CreateUnitResegmentAutoRadio = 'knowledge.create.unit.resegment.auto.radio',
|
||||
CreateUnitResegmentCustomRadio = 'knowledge.create.unit.resegment.custom.radio',
|
||||
ResegmentCustomIdentifierSelect = 'knowledge.create.unit.resegment.custom.identifier.select',
|
||||
ResegmentCustomMaxLenInput = 'knowledge.create.unit.resegment.custom.max_len.input',
|
||||
ResegmentCustomRuleText = 'knowledge.create.unit.resegment.custom.rule.text',
|
||||
CreateUnitProgressTitle = 'knowledge.create.unit.progress.title.text',
|
||||
CreateUnitListProgressSuccessIcon = 'knowledge.create.unit.progress.success.icon',
|
||||
CreateUnitListProgressName = 'knowledge.create.unit.progress.name.text',
|
||||
CreateUnitListProgressPercent = 'knowledge.create.unit.progress.percent.text',
|
||||
|
||||
/** 创建text-online类型(url) */
|
||||
OnlineUploadAutoBtn = 'knowledge.create.text.online.auto.btn',
|
||||
OnlineUploadManualBtn = 'knowledge.create.text.online.manual.btn',
|
||||
OnlineUploadModal = 'knowledge.create.text.online.upload.modal',
|
||||
OnlineUploadModalAddTypeSelect = 'knowledge.create.text.online.upload.modal.add_type.select',
|
||||
OnlineUploadModalFrequencySelect = 'knowledge.create.text.online.upload.modal.frequency.select',
|
||||
OnlineUploadModalExampleUrlSelect = 'knowledge.create.text.online.upload.modal.example_url.input',
|
||||
/** 创建text-custom类型 */
|
||||
CustomUploadNameInput = 'knowledge.create.custom.upload.name.input',
|
||||
SegmentEditor = 'knowledge.segment.editor',
|
||||
SegmentEditorInsertImgBtn = 'knowledge.segment.editor.insert_img.btn',
|
||||
/** feishu */
|
||||
FeishuUploadCountText = 'knowledge.create.feishu.upload.count.text',
|
||||
FeishuUploadAccountText = 'knowledge.create.feishu.upload.account.text',
|
||||
FeishuUploadListName = 'knowledge.create.feishu.upload.list.name.text',
|
||||
FeishuUploadSourceSpaceMine = 'knowledge.create.feishu.upload.source.space.mine',
|
||||
FeishuUploadSourceSpaceWiki = 'knowledge.create.feishu.upload.source.space.wiki',
|
||||
FeishuUploadUpdateFrequencyValue = 'knowledge.create.feishu.upload.update.frequency.value',
|
||||
FeishuUploadAppendFrequencyValue = 'knowledge.create.feishu.upload.append.frequency.value',
|
||||
/** table-doc */
|
||||
TableLocalTableConfigurationDataSheet = 'knowledge.create.table.local.table_configuration.data_sheet.select',
|
||||
TableLocalTableConfigurationSheetHeader = 'knowledge.create.table.local.table_configuration.sheet_header.select',
|
||||
TableLocalTableConfigurationStarRow = 'knowledge.create.table.local.table_configuration.star_row.select',
|
||||
TableLocalTableConfigurationIndex = 'knowledge.create.table.local.table_configuration.index.text',
|
||||
TableLocalTableConfigurationColumnName = 'knowledge.create.table.local.table_configuration.column_name.text',
|
||||
TableLocalTableConfigurationDesc = 'knowledge.create.table.local.table_configuration.desc.text',
|
||||
TableLocalTableConfigurationType = 'knowledge.create.table.local.table_configuration.type.text',
|
||||
TableLocalTableConfigurationAction = 'knowledge.create.table.local.table_configuration.action.text',
|
||||
TableLocalPreviewTitle = 'knowledge.create.table.local.preview.title.text',
|
||||
TableLocalPreviewSemantic = 'knowledge.create.table.local.preview.semantic.tag',
|
||||
TableLocalPreviewFooterTotal = 'knowledge.create.table.local.preview.footer.total.text',
|
||||
TableLocalTableStructureTitle = 'knowledge.create.table.local.table_structure.title.text',
|
||||
/** table-api */
|
||||
TableApiAddUrlModalWebInput = 'knowledge.create.table.api.modal.web.input',
|
||||
TableApiAddUrlModalFrequency = 'knowledge.create.table.api.modal.frequency.select',
|
||||
/** table-custom */
|
||||
TableCustomUAddFieldBtn = 'knowledge.create.table.custom.add_field.btn',
|
||||
TableStructureIndexCheckbox = 'knowledge.create.table.table_structure.index.checkbox',
|
||||
|
||||
/** image */
|
||||
ImageAnnotationAiRadio = 'knowledge.create.image.annotation.ai.radio',
|
||||
ImageAnnotationManualRadio = 'knowledge.create.image.annotation.manual.radio',
|
||||
ImageAnnotationAllTab = 'knowledge.create.image.annotation.all.tab',
|
||||
ImageAnnotationUnAnnotationTab = 'knowledge.create.image.annotation.un_annotation.tab',
|
||||
ImageAnnotationAnnotationedTab = 'knowledge.create.image.annotation.annotationed.tab',
|
||||
/** 增量 */
|
||||
IncrementTableUploadStructureTitle = 'knowledge.increment.table.upload.structure_title.text',
|
||||
IncrementTableUploadStructureColumnName = 'knowledge.increment.table.upload.structure_column_name.input',
|
||||
IncrementTableUploadStructureAddBtn = 'knowledge.increment.table.upload.structure_add.btn',
|
||||
|
||||
// CreateKnowledgeModalCancelBtn = 'knowledge.create.modal.cancel.btn',
|
||||
// CreateKnowledgeModalNextBtn = 'knowledge.create.modal.next.btn',
|
||||
/** segment详情页 */
|
||||
SegmentDetailUpdateBtn = 'knowledge.segment.detail.update.btn',
|
||||
SegmentDetailTitle = 'knowledge.segment.detail.title.text',
|
||||
SegmentDetailTitleEditIcon = 'knowledge.segment.detail.title.edit.icon',
|
||||
SegmentDetailResetBtn = 'knowledge.segment.detail.reset.btn',
|
||||
SegmentDetailAddBtn = 'knowledge.segment.detail.add.btn',
|
||||
SegmentDetailSystemBtn = 'knowledge.segment.detail.system.btn',
|
||||
SegmentDetailSystemDropdownMenu = 'knowledge.segment.detail.system.dropdown_menu',
|
||||
SegmentDetailSystemWebUrlDropdownMenu = 'knowledge.segment.detail.system.web_url.dropdown_menu',
|
||||
SegmentDetailTableConfigBtn = 'knowledge.segment.detail.table_config.btn',
|
||||
SegmentDetailDropdownItem = 'knowledge.segment.detail.dropdown.item',
|
||||
SegmentDetailLocalFileItem = 'knowledge.segment.detail.dropdown.item.text_doc',
|
||||
SegmentDetailContentItemEditIcon = 'knowledge.segment.detail.content.edit.icon',
|
||||
SegmentDetailContentItemFrequencyIcon = 'knowledge.segment.detail.content.frequency.icon',
|
||||
SegmentDetailContentItemAddTopIcon = 'knowledge.segment.detail.content.add_top.icon',
|
||||
|
||||
SegmentDetailContentItemAddBottomIcon = 'knowledge.segment.detail.content.add_bottom.icon',
|
||||
SegmentDetailContentItemFetchSliceIcon = 'knowledge.segment.detail.content.fetch_slice.icon',
|
||||
SegmentDetailContentItemFetchSliceModalSaveBtn = 'knowledge.segment.detail.content.fetch_slice.modal.save.btn',
|
||||
SegmentDetailContentItemWebUrlIcon = 'knowledge.segment.detail.content.web_url.icon',
|
||||
SegmentDetailContentDeleteIcon = 'knowledge.segment.detail.content.delete.icon',
|
||||
SegmentDetailContentAddRowBtn = 'knowledge.segment.detail.content.add_row.btn',
|
||||
SegmentDetailContentSelectTrigger = 'knowledge.segment.detail.content.select.trigger',
|
||||
SegmentDetailContentSelectTriggerEditIcon = 'knowledge.segment.detail.content.select.trigger.edit.icon',
|
||||
// SegmentDetailContentDeleteSliceModalDeleteBtn = 'knowledge.segment.detail.content.delete_slice.modal.delete.btn',
|
||||
// SegmentDetailContentDeleteSliceModalCancelBtn = 'knowledge.segment.detail.content.delete_slice.modal.cancel.btn',
|
||||
SegmentDetailBatchFrequencyModalSelect = 'knowledge.segment.detail.batch_frequency.modal.select',
|
||||
SegmentDetailBatchFrequencyModalcheckboxAll = 'knowledge.segment.detail.batch_frequency.modal.checkbox_all',
|
||||
SegmentDetailBatchFrequencyModalcheckboxItem = 'knowledge.segment.detail.batch_frequency.modal.checkbox_item',
|
||||
/** segment详情页重新分段流程页 */
|
||||
ResegmentUploadUnitNextBtn = 'knowledge.resegment.unit.next.btn',
|
||||
ResegmentUnitConfirmBtn = 'knowledge.resegment.unit.confirm.btn',
|
||||
/** knowledge通用 */
|
||||
UnitDetailTags = 'knowledge.unit.detail.tags',
|
||||
UnitDetailTagsProcessing = 'knowledge.unit.detail.tags.processing.tag',
|
||||
UnitDetailTagsFailed = 'knowledge.unit.detail.tags.failed.tag',
|
||||
KnowledgeAddContentNavBar = 'knowledge.unit.add.content.navbar',
|
||||
}
|
||||
/** 底层组件 */
|
||||
export const UIE2E = [
|
||||
'ui.select.option',
|
||||
'ui.table-action.delete',
|
||||
'ui.table-action.edit',
|
||||
'ui.table-meta',
|
||||
'ui.search_input',
|
||||
];
|
||||
19
frontend/packages/data/common/e2e/src/variable-e2e.ts
Normal file
19
frontend/packages/data/common/e2e/src/variable-e2e.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright 2025 coze-dev Authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
export enum VariableE2e {
|
||||
VariableTreeDeleteBtn = 'variable.tree.delete.btn',
|
||||
}
|
||||
24
frontend/packages/data/common/e2e/tsconfig.build.json
Normal file
24
frontend/packages/data/common/e2e/tsconfig.build.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "@coze-arch/ts-config/tsconfig.web.json",
|
||||
"compilerOptions": {
|
||||
"types": [],
|
||||
"strictNullChecks": true,
|
||||
"noImplicitAny": true,
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist",
|
||||
"tsBuildInfoFile": "./dist/tsconfig.build.tsbuildinfo"
|
||||
},
|
||||
"include": ["src"],
|
||||
"references": [
|
||||
{
|
||||
"path": "../../../../config/eslint-config/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../../../../config/stylelint-config/tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "../../../../config/ts-config/tsconfig.build.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
15
frontend/packages/data/common/e2e/tsconfig.json
Normal file
15
frontend/packages/data/common/e2e/tsconfig.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"compilerOptions": {
|
||||
"composite": true
|
||||
},
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.build.json"
|
||||
},
|
||||
{
|
||||
"path": "./tsconfig.misc.json"
|
||||
}
|
||||
],
|
||||
"exclude": ["**/*"]
|
||||
}
|
||||
18
frontend/packages/data/common/e2e/tsconfig.misc.json
Normal file
18
frontend/packages/data/common/e2e/tsconfig.misc.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"extends": "@coze-arch/ts-config/tsconfig.web.json",
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"include": ["__tests__", "stories", "vitest.config.ts", "tailwind.config.ts"],
|
||||
"exclude": ["./dist"],
|
||||
"references": [
|
||||
{
|
||||
"path": "./tsconfig.build.json"
|
||||
}
|
||||
],
|
||||
"compilerOptions": {
|
||||
"rootDir": "./",
|
||||
"outDir": "./dist",
|
||||
"types": ["vitest/globals"],
|
||||
"strictNullChecks": true,
|
||||
"noImplicitAny": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user