chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -13,13 +13,13 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
// eslint-disable-next-line @coze-arch/no-batch-import-or-export, @typescript-eslint/consistent-type-imports
|
||||
import * as zustand from 'zustand';
|
||||
import { act } from '@testing-library/react';
|
||||
|
||||
const { create: actualCreate, createStore: actualCreateStore } =
|
||||
// @ts-expect-error -- UT 忽略
|
||||
// @ts-expect-error -- UT ignored
|
||||
await vi.importActual<typeof zustand>('zustand');
|
||||
|
||||
// a variable to hold reset functions for all stores declared in the app
|
||||
|
||||
@@ -27,7 +27,7 @@ vi.mock('@coze-arch/bot-error', () => ({
|
||||
CustomError: vi.fn(),
|
||||
}));
|
||||
|
||||
// FIXME 改为按需 mock
|
||||
// FIXME changed to mock on demand
|
||||
vi.mock('@coze-arch/bot-api', () => ({
|
||||
DeveloperApi: {
|
||||
GetUserAuthList: vi
|
||||
@@ -50,7 +50,7 @@ vi.mock('@coze-arch/bot-api', () => ({
|
||||
// .mockResolvedValueOnce({ code: 1 })
|
||||
// .mockResolvedValueOnce({ code: 0 })
|
||||
// .mockResolvedValueOnce({ code: 0 })
|
||||
// mock 缺失 personal store && 轮询失败
|
||||
// Mock missing personal store & & poll failed
|
||||
.mockResolvedValueOnce({ code: 0 })
|
||||
.mockResolvedValueOnce({ code: 0 })
|
||||
.mockResolvedValueOnce({ code: 0 })
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
export enum ReportEventNames {
|
||||
EmptySpaceList = 'empty_space_List', // 空间列表为空
|
||||
PollingSpaceList = 'polling_space_list', // 轮训空间列表
|
||||
EmptySpaceList = 'empty_space_List', // Space list is empty
|
||||
PollingSpaceList = 'polling_space_list', // Rotation space list
|
||||
}
|
||||
|
||||
|
||||
@@ -39,9 +39,9 @@ interface SpaceStoreState {
|
||||
recentlyUsedSpaceList: BotSpace[];
|
||||
loading: false | Promise<SpaceInfo | undefined>;
|
||||
inited?: boolean;
|
||||
createdTeamSpaceNum: number; // 个人创建的团队空间计数
|
||||
createdTeamSpaceNum: number; // Count of team spaces created by individuals
|
||||
maxTeamSpaceNum: number;
|
||||
/** @deprecated 使用 spaceList & maxTeamSpaceNum */
|
||||
/** @deprecated spaceList & maxTeamSpaceNum */
|
||||
spaces: {
|
||||
bot_space_list: BotSpace[];
|
||||
has_personal_space: boolean;
|
||||
@@ -56,7 +56,7 @@ interface SpaceStoreAction {
|
||||
getSpaceId: () => string;
|
||||
getPersonalSpaceID: () => string | undefined;
|
||||
checkSpaceID: (spaceID: string) => boolean;
|
||||
/** @deprecated 通过 id 索引 */
|
||||
/** @deprecated by id index */
|
||||
setSpace: (spaceId?: string, isBotDetailIframe?: boolean) => void | never;
|
||||
createSpace: (
|
||||
request: SaveSpaceV2Request,
|
||||
|
||||
Reference in New Issue
Block a user