gitlab_monitor/script/mr/changes.json
zhaoyingbo 92fa30ef3d
All checks were successful
CI Monitor MIflow / build-image (push) Successful in 2m42s
feat: 支持初步的CR
2024-08-12 12:24:45 +00:00

1388 lines
102 KiB
JSON

{
"id": 2353231,
"iid": 484,
"project_id": 139032,
"title": "eslint: 代码格式化",
"description": "@jiangtong @wujiali5",
"state": "merged",
"created_at": "2024-08-09T11:35:35.066+08:00",
"updated_at": "2024-08-09T15:40:53.840+08:00",
"merged_by": {
"id": 18608,
"username": "jiangtong",
"name": "姜通",
"state": "active",
"avatar_url": "https://git.n.xiaomi.com/uploads/-/system/user/avatar/18608/avatar.png",
"web_url": "https://git.n.xiaomi.com/jiangtong"
},
"merged_at": "2024-08-09T15:40:53.860+08:00",
"closed_by": null,
"closed_at": null,
"target_branch": "preview",
"source_branch": "feat/wt-lint",
"user_notes_count": 0,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 30382,
"username": "wuting7",
"name": "吴婷",
"state": "active",
"avatar_url": "https://git.n.xiaomi.com/uploads/-/system/user/avatar/30382/avatar.png",
"web_url": "https://git.n.xiaomi.com/wuting7"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 139032,
"target_project_id": 139032,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"sha": "f73a20e843d8cd35caa83f05e6187a9f9c6fd95d",
"merge_commit_sha": "a270a2e160683cad99ce2d769b314ddca9af6e58",
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": null,
"force_remove_source_branch": true,
"reference": "!484",
"references": {
"short": "!484",
"relative": "!484",
"full": "cloudml-visuals/fe/cloud-ml-fe!484"
},
"web_url": "https://git.n.xiaomi.com/cloudml-visuals/fe/cloud-ml-fe/-/merge_requests/484",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"subscribed": false,
"changes_count": "125",
"latest_build_started_at": "2024-08-09T15:35:12.623+08:00",
"latest_build_finished_at": "2024-08-09T15:37:31.604+08:00",
"first_deployed_to_production_at": null,
"pipeline": {
"id": 8949606,
"project_id": 139032,
"sha": "f73a20e843d8cd35caa83f05e6187a9f9c6fd95d",
"ref": "refs/merge-requests/484/head",
"status": "success",
"source": "merge_request_event",
"created_at": "2024-08-09T15:34:50.429+08:00",
"updated_at": "2024-08-09T15:37:31.611+08:00",
"web_url": "https://git.n.xiaomi.com/cloudml-visuals/fe/cloud-ml-fe/-/pipelines/8949606"
},
"head_pipeline": {
"id": 8949606,
"project_id": 139032,
"sha": "f73a20e843d8cd35caa83f05e6187a9f9c6fd95d",
"ref": "refs/merge-requests/484/head",
"status": "success",
"source": "merge_request_event",
"created_at": "2024-08-09T15:34:50.429+08:00",
"updated_at": "2024-08-09T15:37:31.611+08:00",
"web_url": "https://git.n.xiaomi.com/cloudml-visuals/fe/cloud-ml-fe/-/pipelines/8949606",
"before_sha": "0000000000000000000000000000000000000000",
"tag": false,
"yaml_errors": null,
"user": {
"id": 30382,
"username": "wuting7",
"name": "吴婷",
"state": "active",
"avatar_url": "https://git.n.xiaomi.com/uploads/-/system/user/avatar/30382/avatar.png",
"web_url": "https://git.n.xiaomi.com/wuting7"
},
"started_at": "2024-08-09T15:35:12.623+08:00",
"finished_at": "2024-08-09T15:37:31.604+08:00",
"committed_at": null,
"duration": 139,
"queued_duration": 22,
"coverage": null,
"detailed_status": {
"icon": "status_success",
"text": "passed",
"label": "passed",
"group": "success",
"tooltip": "passed",
"has_details": true,
"details_path": "/cloudml-visuals/fe/cloud-ml-fe/-/pipelines/8949606",
"illustration": null,
"favicon": "/assets/ci_favicons/favicon_status_success-8451333011eee8ce9f2ab25dc487fe24a8758c694827a582f17f42b0a90446a2.png"
}
},
"diff_refs": {
"base_sha": "cb3989df09db0e74fd14838c078fe30558673b51",
"head_sha": "f73a20e843d8cd35caa83f05e6187a9f9c6fd95d",
"start_sha": "cb3989df09db0e74fd14838c078fe30558673b51"
},
"merge_error": null,
"user": {
"can_merge": true
},
"changes": [
{
"old_path": "src/pages/DataSet/DataList/components/Header/index.tsx",
"new_path": "src/pages/DataSet/DataList/components/Header/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -3,6 +3,7 @@ import { history } from '@umijs/max';\n import { Affix, Button, Typography } from 'antd';\n import classnames from 'classnames';\n import React, { memo, useCallback } from 'react';\n+\n import style from './index.less';\n function Header({\n showBack = true,\n"
},
{
"old_path": "src/pages/DataSet/DataList/components/CreateModal.tsx",
"new_path": "src/pages/DataSet/DataList/components/CreateModal.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,5 +1,10 @@\n /* eslint-disable no-unused-expressions */\n /* eslint-disable react/require-default-props */\n+import { QuestionCircleOutlined } from '@ant-design/icons';\n+import { useModel } from '@umijs/max';\n+import { Button, Form, Input, message, Radio, Select, Space, Spin, Tooltip } from 'antd';\n+import { useEffect, useState } from 'react';\n+\n import Drawer from '@/components/Drawer';\n import {\n data_property,\n@@ -11,10 +16,6 @@ import {\n StarFS,\n } from '@/pages/AssetManagement/Storage/constants';\n import { queryCreateDataSource, queryCreateNas, queryCreateStarfs } from '@/services/storage';\n-import { QuestionCircleOutlined } from '@ant-design/icons';\n-import { useModel } from '@umijs/max';\n-import { Button, Form, Input, message, Radio, Select, Space, Spin, Tooltip } from 'antd';\n-import { useEffect, useState } from 'react';\n export default ({\n storages,\n open,\n"
},
{
"old_path": "src/pages/DataSet/DataList/hooks/useSecret.ts",
"new_path": "src/pages/DataSet/DataList/hooks/useSecret.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n-import { queryStarfsList } from '@/services/storage';\n import { useModel } from '@umijs/max';\n import { useEffect, useState } from 'react';\n+\n+import { queryStarfsList } from '@/services/storage';\n export default () => {\n const { initialState } = useModel('@@initialState');\n const [secret, setSecret] = useState([]);\n"
},
{
"old_path": "src/pages/DataSet/DataList/pages/Create/CreateFds.tsx",
"new_path": "src/pages/DataSet/DataList/pages/Create/CreateFds.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,11 @@\n+import { history, useModel } from '@umijs/max';\n+import { Form, Input, message,Radio, Select } from 'antd';\n+import { useEffect } from 'react';\n+\n import reminder from '@/components/reminder';\n import { fdsOptions } from '@/pages/DataSet/DataList/constants';\n import { validDataSetName } from '@/pages/DataSet/DataList/constants/utils';\n import { queryCreateDataSet } from '@/services/dataList';\n-import { history, useModel } from '@umijs/max';\n-import { Form, Input, Radio, Select, message } from 'antd';\n-import { useEffect } from 'react';\n const CreateFds = ({ onRef }: { onRef: (o: {}) => void }) => {\n const { TextArea } = Input;\n const [form] = Form.useForm();\n"
},
{
"old_path": "src/pages/DataSet/DataList/pages/Create/CreateLocal.tsx",
"new_path": "src/pages/DataSet/DataList/pages/Create/CreateLocal.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,11 +1,12 @@\n /* eslint-disable no-param-reassign */\n+import { history, useModel } from '@umijs/max';\n+import { Button, Form, Input, message, notification,Radio, Select, Upload } from 'antd';\n+import { useEffect } from 'react';\n+\n import reminder from '@/components/reminder';\n import { layout } from '@/pages/DataSet/DataList/constants';\n import { validDataSetName } from '@/pages/DataSet/DataList/constants/utils';\n import { queryCreateDataSet, queryUploadDataSet } from '@/services/dataList';\n-import { history, useModel } from '@umijs/max';\n-import { Button, Form, Input, Radio, Select, Upload, message, notification } from 'antd';\n-import { useEffect } from 'react';\n const CreateLocal = ({\n onRef,\n formItemLayout = layout,\n"
},
{
"old_path": "src/pages/DataSet/DataList/pages/Create/CreateNas.tsx",
"new_path": "src/pages/DataSet/DataList/pages/Create/CreateNas.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,11 @@\n+import { history, useModel } from '@umijs/max';\n+import { Form, Input, message,Radio, Select } from 'antd';\n+import { useEffect, useState } from 'react';\n+\n import reminder from '@/components/reminder';\n import { validDataSetName, validPathStart } from '@/pages/DataSet/DataList/constants/utils';\n import { queryCreateDataSet } from '@/services/dataList';\n import { queryNasList } from '@/services/storage';\n-import { history, useModel } from '@umijs/max';\n-import { Form, Input, Radio, Select, message } from 'antd';\n-import { useEffect, useState } from 'react';\n const CreateNas = ({ onRef }: { onRef: (o: {}) => void }) => {\n const { TextArea } = Input;\n const [secretOptions, setSecretOptions] = useState([]);\n"
},
{
"old_path": "src/pages/DataSet/DataList/pages/Create/CreateStarFS.tsx",
"new_path": "src/pages/DataSet/DataList/pages/Create/CreateStarFS.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,12 +1,14 @@\n+import { history, useModel } from '@umijs/max';\n+import { Button, Form, Input, message, Radio, Select } from 'antd';\n+import { useEffect, useState } from 'react';\n+\n import reminder from '@/components/reminder';\n import CreateModal from '@/pages/AssetManagement/Storage/components/CreateModal';\n import { StarFSLabel } from '@/pages/AssetManagement/Storage/constants';\n import { StarFS } from '@/pages/DataSet/DataList/constants';\n import useSecret from '@/pages/DataSet/DataList/hooks/useSecret';\n import { queryCreateDataSet } from '@/services/dataList';\n-import { history, useModel } from '@umijs/max';\n-import { Button, Form, Input, message, Radio, Select } from 'antd';\n-import { useEffect, useState } from 'react';\n+\n import { validDataSetName, validPathStart } from '../../constants/utils';\n \n const CreateStarFS = ({ onRef }: { onRef: (o: {}) => void }) => {\n"
},
{
"old_path": "src/pages/DataSet/DataList/pages/Create/index.tsx",
"new_path": "src/pages/DataSet/DataList/pages/Create/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,3 +1,8 @@\n+import { history } from '@umijs/max';\n+import { Button, Card, Space, Spin, Tabs } from 'antd';\n+import classnames from 'classnames';\n+import React, { useMemo, useRef, useState } from 'react';\n+\n import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n import useTrack from '@/hooks/useTrack';\n import useCreateTabs from '@/pages/DataSet/DataList/hooks/useCreateTabs';\n@@ -5,10 +10,7 @@ import CreateFds from '@/pages/DataSet/DataList/pages/Create/CreateFds';\n import CreateLocal from '@/pages/DataSet/DataList/pages/Create/CreateLocal';\n import CreateNas from '@/pages/DataSet/DataList/pages/Create/CreateNas';\n import CreateStarFS from '@/pages/DataSet/DataList/pages/Create/CreateStarFS';\n-import { history } from '@umijs/max';\n-import { Button, Card, Space, Spin, Tabs } from 'antd';\n-import classnames from 'classnames';\n-import React, { useMemo, useRef, useState } from 'react';\n+\n import styles from '../../assets/styles/index.less';\n import { TrackEnum } from '../../constants/track';\n \n"
},
{
"old_path": "src/pages/DataSet/DataList/pages/Manage/create/index.tsx",
"new_path": "src/pages/DataSet/DataList/pages/Manage/create/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,9 +1,11 @@\n-import reminder from '@/components/reminder';\n-import { queryChangeAccess, queryCreateAccess } from '@/services/dataList';\n import { useModel } from '@umijs/max';\n import { Form, Input, message, Modal, Select } from 'antd';\n import { cloneDeep } from 'lodash';\n import { useEffect, useState } from 'react';\n+\n+import reminder from '@/components/reminder';\n+import { queryChangeAccess, queryCreateAccess } from '@/services/dataList';\n+\n import { accessFilter, personAccessOptions, teamAccessOptions } from '../../../constants';\n const CreateAccess = ({\n open,\n"
},
{
"old_path": "src/pages/DataSet/DataList/pages/Manage/index.tsx",
"new_path": "src/pages/DataSet/DataList/pages/Manage/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,4 @@\n /* eslint-disable prefer-destructuring */\n-import ContentLayout from '@/components/ContentLayout';\n-import reminder from '@/components/reminder';\n-import styles from '@/pages/DataSet/DataList/assets/styles/index.less';\n-import { queryAccessList, queryDataList, queryDeleteAccess } from '@/services/dataList';\n import { useLocation, useModel } from '@umijs/max';\n import { useAntdTable } from 'ahooks';\n import {\n@@ -24,6 +20,12 @@ import { ColumnsType } from 'antd/es/table';\n import classnames from 'classnames';\n import dayjs from 'dayjs';\n import { useEffect, useRef, useState } from 'react';\n+\n+import ContentLayout from '@/components/ContentLayout';\n+import reminder from '@/components/reminder';\n+import styles from '@/pages/DataSet/DataList/assets/styles/index.less';\n+import { queryAccessList, queryDataList, queryDeleteAccess } from '@/services/dataList';\n+\n import CreateAccess from './create';\n \n const AccessManage = () => {\n"
},
{
"old_path": "src/pages/DataSet/DataList/index.tsx",
"new_path": "src/pages/DataSet/DataList/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,3 @@\n-import ContentLayout from '@/components/ContentLayout';\n-import reminder from '@/components/reminder';\n-import useTrack from '@/hooks/useTrack';\n-import styles from '@/pages/DataSet/DataList/assets/styles/index.less';\n-import ExpandDetail from '@/pages/DataSet/DataList/components/ExpandDetail';\n-import { createTypeFilter, statusList } from '@/pages/DataSet/DataList/constants';\n-import { queryDataList, queryDeleteDataList } from '@/services/dataList';\n import { ReloadOutlined } from '@ant-design/icons';\n import { history, useModel } from '@umijs/max';\n import { useAntdTable } from 'ahooks';\n@@ -15,19 +8,28 @@ import {\n Checkbox,\n Form,\n Input,\n+ message,\n PaginationProps,\n Popconfirm,\n Space,\n Table,\n Tooltip,\n Typography,\n- message,\n } from 'antd';\n import { PresetStatusColorType } from 'antd/es/_util/colors';\n import { ColumnsType } from 'antd/es/table';\n import classnames from 'classnames';\n import dayjs from 'dayjs';\n import { useState } from 'react';\n+\n+import ContentLayout from '@/components/ContentLayout';\n+import reminder from '@/components/reminder';\n+import useTrack from '@/hooks/useTrack';\n+import styles from '@/pages/DataSet/DataList/assets/styles/index.less';\n+import ExpandDetail from '@/pages/DataSet/DataList/components/ExpandDetail';\n+import { createTypeFilter, statusList } from '@/pages/DataSet/DataList/constants';\n+import { queryDataList, queryDeleteDataList } from '@/services/dataList';\n+\n import { TrackEnum } from './constants/track';\n \n export default () => {\n"
},
{
"old_path": "src/pages/Develop/Config/components/CreateInfoForm/Resource/index.tsx",
"new_path": "src/pages/Develop/Config/components/CreateInfoForm/Resource/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,9 @@\n+import { Form } from 'antd';\n+import { memo, useMemo } from 'react';\n+\n import SingleNode from '@/components/ResourceInstance/SingleNode';\n import useTeamResource from '@/hooks/useTeamResource';\n import type { ResourceInstanceList } from '@/types/global';\n-import { Form } from 'antd';\n-import { memo, useMemo } from 'react';\n \n export default memo(\n ({\n"
},
{
"old_path": "src/pages/Develop/Config/components/CreateInfoForm/index.tsx",
"new_path": "src/pages/Develop/Config/components/CreateInfoForm/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,21 +1,3 @@\n-import { isResourceInstance } from '@/cluster';\n-import SelectDataset from '@/components/SelectDataset';\n-import useInitialState from '@/hooks/useInitialState';\n-import useLink from '@/hooks/useLink';\n-import { NAS, StarFS } from '@/pages/AssetManagement/Storage/constants';\n-import { isNoPrivate } from '@/pages/Develop/cluster';\n-import { getStorageMount } from '@/pages/Develop/Config/util';\n-import { Gi } from '@/pages/ModelService/constants';\n-import { Option } from '@/pages/Tensorboard/typings';\n-import {\n- queryCreateDebugDev,\n- queryCreateDevService,\n- queryDevDetail,\n- queryEditDevService,\n-} from '@/services/develop';\n-import { querySecretImages } from '@/services/tensorboard';\n-import { isJSONString } from '@/utils/utils';\n-import { validPathStart } from '@/utils/validate';\n import { QuestionCircleOutlined } from '@ant-design/icons';\n import { useParams } from '@umijs/max';\n import {\n@@ -34,6 +16,26 @@ import {\n } from 'antd';\n import _ from 'lodash';\n import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useState } from 'react';\n+\n+import { isResourceInstance } from '@/cluster';\n+import SelectDataset from '@/components/SelectDataset';\n+import useInitialState from '@/hooks/useInitialState';\n+import useLink from '@/hooks/useLink';\n+import { NAS, StarFS } from '@/pages/AssetManagement/Storage/constants';\n+import { isNoPrivate } from '@/pages/Develop/cluster';\n+import { getStorageMount } from '@/pages/Develop/Config/util';\n+import { Gi } from '@/pages/ModelService/constants';\n+import { Option } from '@/pages/Tensorboard/typings';\n+import {\n+ queryCreateDebugDev,\n+ queryCreateDevService,\n+ queryDevDetail,\n+ queryEditDevService,\n+} from '@/services/develop';\n+import { querySecretImages } from '@/services/tensorboard';\n+import { isJSONString } from '@/utils/utils';\n+import { validPathStart } from '@/utils/validate';\n+\n import {\n c5,\n c5Preview,\n"
},
{
"old_path": "src/pages/Develop/Config/components/EventList/index.tsx",
"new_path": "src/pages/Develop/Config/components/EventList/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,8 @@\n-import EventInfo, { EventType } from '@/components/EventInfo';\n-import { queryDevEvent } from '@/services/develop';\n import { useModel, useParams } from '@umijs/max';\n import { useCallback, useEffect, useState } from 'react';\n+\n+import EventInfo, { EventType } from '@/components/EventInfo';\n+import { queryDevEvent } from '@/services/develop';\n export default () => {\n const { initialState } = useModel('@@initialState');\n const {\n"
},
{
"old_path": "src/pages/Develop/Config/components/LoginModal/index.tsx",
"new_path": "src/pages/Develop/Config/components/LoginModal/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,9 @@\n-import { queryDevDetail } from '@/services/develop';\n import { useModel } from '@umijs/max';\n import { Alert, Button, Divider, Modal, Space, Spin, Typography } from 'antd';\n import { useEffect, useState } from 'react';\n+\n+import { queryDevDetail } from '@/services/develop';\n+\n import styles from '../../assets/styles/index.less';\n export default ({\n item,\n"
},
{
"old_path": "src/pages/Develop/Config/components/Logs/index.tsx",
"new_path": "src/pages/Develop/Config/components/Logs/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,11 @@\n+import { useParams } from '@umijs/max';\n+import { useCallback } from 'react';\n+\n import Log from '@/components/LogInfo/Log';\n import { LOGS_LINES } from '@/constants/global';\n import useInitialState from '@/hooks/useInitialState';\n import { queryDevlLog } from '@/services/develop';\n import downloadFile from '@/utils/downloadFile';\n-import { useParams } from '@umijs/max';\n-import { useCallback } from 'react';\n export default () => {\n const {\n dev_name,\n"
},
{
"old_path": "src/pages/Develop/Config/components/SaveEnvModal/index.tsx",
"new_path": "src/pages/Develop/Config/components/SaveEnvModal/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,10 @@\n /* eslint-disable react/react-in-jsx-scope */\n-import { querySaveEnvService } from '@/services/develop';\n import { useModel } from '@umijs/max';\n import { Form, Input, message, Modal } from 'antd';\n import { useEffect } from 'react';\n+\n+import { querySaveEnvService } from '@/services/develop';\n+\n import { ICreateHeder } from '../../typings';\n export default ({\n visible,\n"
},
{
"old_path": "src/pages/Develop/Config/components/StorageMode/index.tsx",
"new_path": "src/pages/Develop/Config/components/StorageMode/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,11 +1,13 @@\n import { QuestionCircleOutlined } from '@ant-design/icons';\n+import { useModel } from '@umijs/max';\n import { Button, Form, Input, Select, Space, Tooltip } from 'antd';\n import { useEffect, useMemo, useState } from 'react';\n+\n // @ts-ignore\n import { FDS, NAS, PAI, StarFS } from '@/pages/AssetManagement/Storage/constants';\n import { queryTaskList } from '@/services/paidlc';\n import { queryFdsList, queryNasList, queryStarfsList } from '@/services/storage';\n-import { useModel } from '@umijs/max';\n+\n import CreateModal from '../../../../AssetManagement/Storage/components/CreateModal';\n import styles from '../../assets/styles/index.less';\n import useStorageTypes from '../../hooks/useStorageTypes';\n"
},
{
"old_path": "src/pages/Develop/Config/hooks/useDevActiveTab.ts",
"new_path": "src/pages/Develop/Config/hooks/useDevActiveTab.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,4 +1,5 @@\n import { useModel } from '@umijs/max';\n+\n import { c5, c5Preview, c5Staging, tj5 } from '../../../../../config/cluster';\n export default () => {\n const { initialState } = useModel('@@initialState');\n"
},
{
"old_path": "src/pages/Develop/Config/hooks/useEnvImage.ts",
"new_path": "src/pages/Develop/Config/hooks/useEnvImage.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n+import { useEffect, useState } from 'react';\n+\n import useInitialState from '@/hooks/useInitialState';\n import { queryEnvList } from '@/services/develop';\n-import { useEffect, useState } from 'react';\n \n export default () => {\n const { cluster, teamId, userName } = useInitialState();\n"
},
{
"old_path": "src/pages/Develop/Config/hooks/useGpus.ts",
"new_path": "src/pages/Develop/Config/hooks/useGpus.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,9 +1,11 @@\n import { useModel } from '@umijs/max';\n import { useEffect, useMemo, useState } from 'react';\n+\n /* eslint-disable no-restricted-syntax */\n import { RESOURCE_CLUSTERS } from '@/cluster';\n import { resourceQuery } from '@/services/resource';\n import { queryRestQuota } from '@/services/space';\n+\n import {\n c5,\n c5Preview,\n"
},
{
"old_path": "src/pages/Develop/Config/hooks/useImage.ts",
"new_path": "src/pages/Develop/Config/hooks/useImage.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n-import { queryImageList } from '@/services/develop';\n import { useModel } from '@umijs/max';\n import { useEffect, useState } from 'react';\n+\n+import { queryImageList } from '@/services/develop';\n export default (activeKey: string) => {\n const { initialState } = useModel('@@initialState');\n const [images, setImages] = useState([]);\n"
},
{
"old_path": "src/pages/Develop/Config/hooks/useStorageTypes.ts",
"new_path": "src/pages/Develop/Config/hooks/useStorageTypes.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,8 @@\n-import { RESOURCE_CLUSTERS } from '@/cluster';\n import { useModel } from '@umijs/max';\n import { useMemo } from 'react';\n+\n+import { RESOURCE_CLUSTERS } from '@/cluster';\n+\n import {\n c5,\n c5Preview,\n"
},
{
"old_path": "src/pages/Develop/Config/pages/Create.tsx",
"new_path": "src/pages/Develop/Config/pages/Create.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,12 +1,14 @@\n+import { history, useModel } from '@umijs/max';\n+import { useAsyncEffect } from 'ahooks';\n+import { Button, Space, Tabs } from 'antd';\n+import { useEffect, useMemo, useRef, useState } from 'react';\n+\n import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n import useLink from '@/hooks/useLink';\n import useTrack from '@/hooks/useTrack';\n import useDevActiveTab from '@/pages/Develop/Config/hooks/useDevActiveTab';\n import { queryTrainWhiteList } from '@/services/develop';\n-import { history, useModel } from '@umijs/max';\n-import { useAsyncEffect } from 'ahooks';\n-import { Button, Space, Tabs } from 'antd';\n-import { useEffect, useMemo, useRef, useState } from 'react';\n+\n import { TrackEnum } from '../../track';\n import CreateInfoForm from '../components/CreateInfoForm';\n import { createTabs, enableDevObj } from '../constants';\n"
},
{
"old_path": "src/pages/Develop/Config/pages/Detail.tsx",
"new_path": "src/pages/Develop/Config/pages/Detail.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,3 +1,8 @@\n+import { history, useModel, useParams } from '@umijs/max';\n+import { Button, Card, message, Modal, Popconfirm, Space, Spin, Tabs, Typography } from 'antd';\n+import _ from 'lodash';\n+import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\n+\n import { isResourceInstance } from '@/cluster';\n import Collapse from '@/components/Collapse';\n import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n@@ -7,10 +12,7 @@ import { INSTANCE_TYPE_MAP, RESOURCE_MONITORING_LINK } from '@/constants/global'\n import useLink from '@/hooks/useLink';\n import useTrack from '@/hooks/useTrack';\n import { queryDeleteDev, queryDevDetail, queryRestartDev, queryStopDev } from '@/services/develop';\n-import { history, useModel, useParams } from '@umijs/max';\n-import { Button, Card, message, Modal, Popconfirm, Space, Spin, Tabs, Typography } from 'antd';\n-import _ from 'lodash';\n-import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\n+\n import { TrackEnum } from '../../track';\n import EventList from '../components/EventList';\n import LoginModal from '../components/LoginModal';\n"
},
{
"old_path": "src/pages/Develop/Config/index.tsx",
"new_path": "src/pages/Develop/Config/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,3 @@\n-import { IInitialState } from '@/app';\n-import TableTooltipItem from '@/components/TableTooltipItem';\n-import { pagination, RESOURCE_MONITORING_LINK } from '@/constants/global';\n-import useSearchStorage from '@/hooks/useSearchStorage';\n-import useTrack from '@/hooks/useTrack';\n-import { queryDeleteDev, queryDevList, queryRestartDev, queryStopDev } from '@/services/develop';\n-import { queryGroupImpl } from '@/services/global';\n import { EllipsisOutlined, ReloadOutlined } from '@ant-design/icons';\n import { history, useModel } from '@umijs/max';\n import { useAntdTable } from 'ahooks';\n@@ -23,6 +16,15 @@ import {\n Table,\n } from 'antd';\n import { useEffect, useRef, useState } from 'react';\n+\n+import { IInitialState } from '@/app';\n+import TableTooltipItem from '@/components/TableTooltipItem';\n+import { pagination, RESOURCE_MONITORING_LINK } from '@/constants/global';\n+import useSearchStorage from '@/hooks/useSearchStorage';\n+import useTrack from '@/hooks/useTrack';\n+import { queryDeleteDev, queryDevList, queryRestartDev, queryStopDev } from '@/services/develop';\n+import { queryGroupImpl } from '@/services/global';\n+\n import { TrackEnum } from '../track';\n import LoginModal from './components/LoginModal';\n import SaveEnvModal from './components/SaveEnvModal';\n"
},
{
"old_path": "src/pages/Develop/Image/constants/index.tsx",
"new_path": "src/pages/Develop/Image/constants/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,10 @@\n /* eslint-disable react/react-in-jsx-scope */\n-import { getPopupContainer } from '@/utils/utils';\n import { InfoCircleOutlined } from '@ant-design/icons';\n import { Tooltip, Typography } from 'antd';\n import dayjs from 'dayjs';\n+\n+import { getPopupContainer } from '@/utils/utils';\n+\n import styles from '../../index.less';\n \n const { Paragraph } = Typography;\n"
},
{
"old_path": "src/pages/Develop/Image/index.tsx",
"new_path": "src/pages/Develop/Image/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,11 +1,13 @@\n-import TableTooltipItem from '@/components/TableTooltipItem';\n-import { pagination } from '@/constants/global';\n-import useTrack from '@/hooks/useTrack';\n-import { deleteEnv, queryEnvList } from '@/services/develop';\n import { ReloadOutlined } from '@ant-design/icons';\n import { history, useModel } from '@umijs/max';\n import { useAntdTable } from 'ahooks';\n import { Button, Card, Checkbox, Form, Input, message, Popconfirm, Table } from 'antd';\n+\n+import TableTooltipItem from '@/components/TableTooltipItem';\n+import { pagination } from '@/constants/global';\n+import useTrack from '@/hooks/useTrack';\n+import { deleteEnv, queryEnvList } from '@/services/develop';\n+\n import styles from '../index.less';\n import { TrackEnum } from '../track';\n import { columns } from './constants';\n"
},
{
"old_path": "src/pages/Develop/index.tsx",
"new_path": "src/pages/Develop/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,9 +1,11 @@\n+import { Button, Tabs } from 'antd';\n+import { useCallback, useMemo, useState } from 'react';\n+\n import { isResourceInstance } from '@/cluster';\n import ContentLayout from '@/components/ContentLayout';\n import useInitialState from '@/hooks/useInitialState';\n import useTrack from '@/hooks/useTrack';\n-import { Button, Tabs } from 'antd';\n-import { useCallback, useMemo, useState } from 'react';\n+\n import Config from './Config';\n import Image from './Image';\n import styles from './index.less';\n"
},
{
"old_path": "src/pages/KnowledgeBase/components/Actions/index.tsx",
"new_path": "src/pages/KnowledgeBase/components/Actions/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,11 +1,13 @@\n-import reminder from '@/components/reminder';\n-import useInitialState from '@/hooks/useInitialState';\n-import useTrack from '@/hooks/useTrack';\n import { history } from '@umijs/max';\n-import { Button, Popconfirm, Space, message } from 'antd';\n+import { Button, message,Popconfirm, Space } from 'antd';\n import { SpaceSize } from 'antd/es/space';\n import { ButtonSize, ButtonType } from 'antd/lib/button';\n import { memo, useCallback } from 'react';\n+\n+import reminder from '@/components/reminder';\n+import useInitialState from '@/hooks/useInitialState';\n+import useTrack from '@/hooks/useTrack';\n+\n import { deleteKnowledgeBase } from '../../service';\n import { TrackEnum } from '../../track';\n import style from './index.less';\n"
},
{
"old_path": "src/pages/KnowledgeBase/components/Card/index.tsx",
"new_path": "src/pages/KnowledgeBase/components/Card/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n import { Card } from 'antd';\n import { CardProps } from 'antd/lib/card';\n import React, { memo } from 'react';\n+\n import style from './index.module.less';\n \n function CardCom({\n"
},
{
"old_path": "src/pages/KnowledgeBase/components/Header/index.tsx",
"new_path": "src/pages/KnowledgeBase/components/Header/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -3,6 +3,7 @@ import { history } from '@umijs/max';\n import { Affix, Button, Typography } from 'antd';\n import classnames from 'classnames';\n import React, { memo, useCallback } from 'react';\n+\n import style from './index.module.less';\n function Header({\n showBack = true,\n"
},
{
"old_path": "src/pages/KnowledgeBase/hooks/usePlayground.ts",
"new_path": "src/pages/KnowledgeBase/hooks/usePlayground.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,9 @@\n-import useInitialState from '@/hooks/useInitialState';\n-import { ragQueryTrack } from '@/utils/track';\n import { useParams } from '@umijs/max';\n import { useCallback, useState } from 'react';\n+\n+import useInitialState from '@/hooks/useInitialState';\n+import { ragQueryTrack } from '@/utils/track';\n+\n import { LANGUAGE_MODEL, LANGUAGE_MODEL_PROMPT } from '../constant';\n import { getAnswer } from '../service';\n import { getRandomNum } from '../utils';\n"
},
{
"old_path": "src/pages/KnowledgeBase/pages/Create/index.tsx",
"new_path": "src/pages/KnowledgeBase/pages/Create/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,10 @@\n /* eslint-disable consistent-return */\n-import useInitialState from '@/hooks/useInitialState';\n import { Form, Input, Select } from 'antd';\n import _ from 'lodash';\n import { forwardRef, memo, useCallback, useImperativeHandle } from 'react';\n+\n+import useInitialState from '@/hooks/useInitialState';\n+\n import { KNOWLEDGE_SOURCE } from '../../constant';\n import { createKnowledgeBase } from '../../service';\n \n"
},
{
"old_path": "src/pages/KnowledgeBase/pages/Detail/index.tsx",
"new_path": "src/pages/KnowledgeBase/pages/Detail/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,12 +1,14 @@\n+import { history, useParams } from '@umijs/max';\n+import { Button, Divider, Input, message,Popconfirm, Space, Spin, Table, Typography } from 'antd';\n+import dayjs from 'dayjs';\n+import { memo, useCallback, useMemo, useState } from 'react';\n+\n import ContentLayout from '@/components/ContentLayout';\n import Info, { DATA_TYPE, INFO_TYPE } from '@/components/Info';\n import reminder from '@/components/reminder';\n import useInitialState from '@/hooks/useInitialState';\n import useRequestData from '@/hooks/useRequestData';\n-import { history, useParams } from '@umijs/max';\n-import { Button, Divider, Input, Popconfirm, Space, Spin, Table, Typography, message } from 'antd';\n-import dayjs from 'dayjs';\n-import { memo, useCallback, useMemo, useState } from 'react';\n+\n import Actions from '../../components/Actions';\n import { DOC_TYPE, STATUS, UPLOAD_TYPE } from '../../constant';\n import {\n"
},
{
"old_path": "src/pages/KnowledgeBase/pages/Playground/SendInput/index.tsx",
"new_path": "src/pages/KnowledgeBase/pages/Playground/SendInput/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n /* eslint-disable consistent-return */\n import { Input } from 'antd';\n import { useEffect, useRef, useState } from 'react';\n+\n import sendIcon from '../../../assets/sendIcon.png';\n import styles from './index.less';\n \n"
},
{
"old_path": "src/pages/KnowledgeBase/pages/Playground/index.tsx",
"new_path": "src/pages/KnowledgeBase/pages/Playground/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,5 +1,4 @@\n /* eslint-disable react/no-children-prop */\n-import ContentLayout from '@/components/ContentLayout';\n import { useParams } from '@umijs/max';\n import { Button, Select, Space, Spin } from 'antd';\n import classnames from 'classnames';\n@@ -8,6 +7,9 @@ import ReactJsonView from 'react-json-view';\n import Markdown from 'react-markdown';\n import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter';\n import remarkGrm from 'remark-gfm';\n+\n+import ContentLayout from '@/components/ContentLayout';\n+\n import miIcon from '../../assets/miIcon.png';\n import userIcon from '../../assets/userIcon.png';\n import { LANGUAGE_MODEL } from '../../constant';\n"
},
{
"old_path": "src/pages/KnowledgeBase/pages/Upload/FeishuFile/index.tsx",
"new_path": "src/pages/KnowledgeBase/pages/Upload/FeishuFile/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -2,6 +2,7 @@\n import { QuestionCircleOutlined } from '@ant-design/icons';\n import { Alert, Button, Form, Input, Table, Tooltip } from 'antd';\n import { memo } from 'react';\n+\n import img from '../../../assets/image.png';\n \n const FeishuFile = ({ urls = [] }: { urls: any[] }) => {\n"
},
{
"old_path": "src/pages/KnowledgeBase/pages/Upload/LocalUpload/index.tsx",
"new_path": "src/pages/KnowledgeBase/pages/Upload/LocalUpload/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,12 @@\n /* eslint-disable prefer-promise-reject-errors */\n-import reminder from '@/components/reminder';\n import { InboxOutlined } from '@ant-design/icons';\n import { Form, Radio, Upload } from 'antd';\n import { UploadProps } from 'antd/es/upload';\n import _ from 'lodash';\n import { memo, useMemo } from 'react';\n+\n+import reminder from '@/components/reminder';\n+\n import { ACCEPT_FILE_TYPE, LOCAL_UPLOAD_LISTS, LOCAL_UPLOAD_TYPE } from '../../../constant';\n \n const { Dragger } = Upload;\n"
},
{
"old_path": "src/pages/KnowledgeBase/pages/Upload/index.tsx",
"new_path": "src/pages/KnowledgeBase/pages/Upload/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,9 +1,11 @@\n-import ContentLayout from '@/components/ContentLayout';\n-import reminder from '@/components/reminder';\n-import useInitialState from '@/hooks/useInitialState';\n import { history, useParams } from '@umijs/max';\n import { Alert, Button, Form, message, notification, Radio, Space, Spin, Typography } from 'antd';\n import { memo, useCallback, useMemo, useState } from 'react';\n+\n+import ContentLayout from '@/components/ContentLayout';\n+import reminder from '@/components/reminder';\n+import useInitialState from '@/hooks/useInitialState';\n+\n import { UPLOAD_LISTS, UPLOAD_TYPE } from '../../constant';\n import useCnName from '../../hooks/useCnName';\n import { uploadFile } from '../../service';\n"
},
{
"old_path": "src/pages/KnowledgeBase/index.tsx",
"new_path": "src/pages/KnowledgeBase/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,15 +1,17 @@\n-import ContentLayout from '@/components/ContentLayout';\n-import Drawer from '@/components/Drawer';\n-import reminder from '@/components/reminder';\n-import useInitialState from '@/hooks/useInitialState';\n-import useRequestData from '@/hooks/useRequestData';\n-import useTrack from '@/hooks/useTrack';\n import { ReloadOutlined } from '@ant-design/icons';\n import { history } from '@umijs/max';\n import { Button, Input, message, Space, Spin, Switch, Table, Typography } from 'antd';\n import dayjs from 'dayjs';\n import _ from 'lodash';\n import { useCallback, useMemo, useRef, useState } from 'react';\n+\n+import ContentLayout from '@/components/ContentLayout';\n+import Drawer from '@/components/Drawer';\n+import reminder from '@/components/reminder';\n+import useInitialState from '@/hooks/useInitialState';\n+import useRequestData from '@/hooks/useRequestData';\n+import useTrack from '@/hooks/useTrack';\n+\n import Actions from './components/Actions';\n import { KNOWLEDGE_SOURCE } from './constant';\n import style from './index.less';\n"
},
{
"old_path": "src/pages/KnowledgeBase/utils.ts",
"new_path": "src/pages/KnowledgeBase/utils.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n /* eslint-disable no-restricted-properties */\n // 上传文档数据处理\n import _ from 'lodash';\n+\n import { UPLOAD_TYPE } from './constant';\n \n const getFileName = (fileName = '') => {\n"
},
{
"old_path": "src/pages/ModelSquare/components/ApiInfo/index.tsx",
"new_path": "src/pages/ModelSquare/components/ApiInfo/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,5 +1,6 @@\n import { Card, Typography } from 'antd';\n import React from 'react';\n+\n import CodeMirror from '../CodeMirror';\n import styles from './index.less';\n \n"
},
{
"old_path": "src/pages/ModelSquare/components/CodeMirror/index.tsx",
"new_path": "src/pages/ModelSquare/components/CodeMirror/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,15 +1,17 @@\n-import { CopyOutlined } from '@ant-design/icons';\n-import { useFullscreen } from 'ahooks';\n-import { Space, Typography } from 'antd';\n-import classnames from 'classnames';\n import 'codemirror/addon/edit/closebrackets';\n import 'codemirror/lib/codemirror.css';\n import 'codemirror/mode/javascript/javascript.js';\n import 'codemirror/mode/shell/shell';\n import 'codemirror/mode/yaml/yaml';\n import 'codemirror/theme/base16-light.css';\n+\n+import { CopyOutlined } from '@ant-design/icons';\n+import { useFullscreen } from 'ahooks';\n+import { Space, Typography } from 'antd';\n+import classnames from 'classnames';\n import { CSSProperties, useRef } from 'react';\n import { Controlled as CodeMirror } from 'react-codemirror2';\n+\n import styles from './styles/index.less';\n \n const { Paragraph } = Typography;\n"
},
{
"old_path": "src/pages/ModelSquare/components/ModelIntro/index.tsx",
"new_path": "src/pages/ModelSquare/components/ModelIntro/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n import { Button, Space, Tag, Typography } from 'antd';\n import classnames from 'classnames';\n import { memo } from 'react';\n+\n import ChatGLM from '../../assets/ChatGLM.png';\n import inner from '../../assets/inner.png';\n import Llama from '../../assets/Llama.png';\n"
},
{
"old_path": "src/pages/ModelSquare/pages/Detail/ModelInfo/index.tsx",
"new_path": "src/pages/ModelSquare/pages/Detail/ModelInfo/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n import { InfoCircleOutlined } from '@ant-design/icons';\n import { Space, Typography } from 'antd';\n import { memo } from 'react';\n+\n import styles from './index.less';\n \n type Props = {\n"
},
{
"old_path": "src/pages/ModelSquare/pages/Detail/ModelList/index.tsx",
"new_path": "src/pages/ModelSquare/pages/Detail/ModelList/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,12 @@\n-import useInitialState from '@/hooks/useInitialState';\n-import useTrack from '@/hooks/useTrack';\n-import { TrackEnum } from '@/pages/ModelSquare/constants/track';\n import { CloseOutlined } from '@ant-design/icons';\n import { history } from '@umijs/max';\n import { Button, Space, Table, Tooltip, Typography } from 'antd';\n import { memo, useCallback, useMemo, useState } from 'react';\n+\n+import useInitialState from '@/hooks/useInitialState';\n+import useTrack from '@/hooks/useTrack';\n+import { TrackEnum } from '@/pages/ModelSquare/constants/track';\n+\n import ApiInfo from '../../../components/ApiInfo';\n type Props = {\n data: {\n"
},
{
"old_path": "src/pages/ModelSquare/pages/Detail/OpenModelInfo/index.tsx",
"new_path": "src/pages/ModelSquare/pages/Detail/OpenModelInfo/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,5 +1,6 @@\n import { Space, Typography } from 'antd';\n import { memo } from 'react';\n+\n import styles from './index.less';\n \n type Props = {\n"
},
{
"old_path": "src/pages/ModelSquare/pages/Detail/index.tsx",
"new_path": "src/pages/ModelSquare/pages/Detail/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,9 @@\n-import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n import { useParams } from '@umijs/max';\n import { Button, Card, Divider, Space, Tabs, Tag } from 'antd';\n import { useMemo, useState } from 'react';\n+\n+import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n+\n import { MODEL_ITEMS, MODEL_ITEMS_MAP } from '../../constant';\n import style from './index.less';\n import ModelInfo from './ModelInfo';\n"
},
{
"old_path": "src/pages/ModelSquare/index.tsx",
"new_path": "src/pages/ModelSquare/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,9 +1,11 @@\n-import ContentLayout from '@/components/ContentLayout';\n-import useInitialState from '@/hooks/useInitialState';\n-import useTrack from '@/hooks/useTrack';\n import { history } from '@umijs/max';\n import { Empty, Input, Space } from 'antd';\n import { useCallback, useMemo, useState } from 'react';\n+\n+import ContentLayout from '@/components/ContentLayout';\n+import useInitialState from '@/hooks/useInitialState';\n+import useTrack from '@/hooks/useTrack';\n+\n import ModelIntro from './components/ModelIntro';\n import { MODEL_ITEMS } from './constant';\n import { TrackEnum } from './constants/track';\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/components/Actions/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/components/Actions/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,14 +1,16 @@\n-import { RESOURCE_MONITORING_LINK } from '@/constants/global';\n-import useInitialState from '@/hooks/useInitialState';\n-import useTrack from '@/hooks/useTrack';\n-import { deleteTask, pauseTask, rerunTask } from '@/services/modelTrain';\n import { EllipsisOutlined } from '@ant-design/icons';\n import { history } from '@umijs/max';\n-import { Button, Popconfirm, Popover, Space, message } from 'antd';\n+import { Button, message,Popconfirm, Popover, Space } from 'antd';\n import { SpaceSize } from 'antd/es/space';\n import { ButtonSize, ButtonType } from 'antd/lib/button';\n import { memo, useCallback } from 'react';\n-import { STATUS, getApi } from '../../constant';\n+\n+import { RESOURCE_MONITORING_LINK } from '@/constants/global';\n+import useInitialState from '@/hooks/useInitialState';\n+import useTrack from '@/hooks/useTrack';\n+import { deleteTask, pauseTask, rerunTask } from '@/services/modelTrain';\n+\n+import { getApi,STATUS } from '../../constant';\n import { TrackEnum } from '../../track';\n import styles from './index.less';\n \n"
},
{
"old_path": "src/pages/ModelTrain/CRH/hooks/useGitSecret.ts",
"new_path": "src/pages/ModelTrain/CRH/hooks/useGitSecret.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,8 @@\n-import type { Option } from '@/pages/Tensorboard/typings';\n-import { queryGitList } from '@/services/trainJob';\n import { useModel } from '@umijs/max';\n import { useEffect, useState } from 'react';\n+\n+import type { Option } from '@/pages/Tensorboard/typings';\n+import { queryGitList } from '@/services/trainJob';\n export default () => {\n const { initialState } = useModel('@@initialState');\n const [gitList, setGitList] = useState<Option[]>([]);\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/hooks/usePlatformOptions.ts",
"new_path": "src/pages/ModelTrain/CRH/hooks/usePlatformOptions.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,8 @@\n-import useInitialState from '@/hooks/useInitialState';\n import _ from 'lodash';\n import { useEffect, useState } from 'react';\n \n+import useInitialState from '@/hooks/useInitialState';\n+\n export default ({ ignore = false } = {}) => {\n const { platformOption } = useInitialState();\n const [data, setData] = useState();\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/hooks/useProjectLists.ts",
"new_path": "src/pages/ModelTrain/CRH/hooks/useProjectLists.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,8 @@\n-import useInitialState from '@/hooks/useInitialState';\n import { useAsyncEffect } from 'ahooks';\n import { useCallback, useState } from 'react';\n+\n+import useInitialState from '@/hooks/useInitialState';\n+\n import { getProjectLists } from '../../../../services/modelTrain';\n \n export default ({ ignore = false } = {}) => {\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/hooks/useStorageTypes.ts",
"new_path": "src/pages/ModelTrain/CRH/hooks/useStorageTypes.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,8 @@\n-import { NAS, StarFS, StarFSLabel } from '@/pages/AssetManagement/Storage/constants';\n import { useModel } from '@umijs/max';\n import { useMemo } from 'react';\n+\n+import { NAS, StarFS, StarFSLabel } from '@/pages/AssetManagement/Storage/constants';\n+\n import { cloudMlCrh, kceTj5, nc4Crh, ningxiaCrh, tj5Crh } from '../../../../../config/cluster';\n export default () => {\n const { initialState } = useModel('@@initialState');\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Create/Task/Dataset/Dataset.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Create/Task/Dataset/Dataset.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,5 +1,3 @@\n-import useRequestData from '@/hooks/useRequestData';\n-import { getDataset } from '@/services/modelTrain';\n import { Alert, Button, Form, Input, Space, Spin, Table, Typography } from 'antd';\n import _ from 'lodash';\n import {\n@@ -12,6 +10,9 @@ import {\n useState,\n } from 'react';\n \n+import useRequestData from '@/hooks/useRequestData';\n+import { getDataset } from '@/services/modelTrain';\n+\n interface DataSource {\n datasetId: number;\n datasetName: string;\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Create/Task/Dataset/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Create/Task/Dataset/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,8 @@\n-import Drawer from '@/components/Drawer';\n import { Button, Input, Space } from 'antd';\n import { memo, useCallback, useRef, useState } from 'react';\n+\n+import Drawer from '@/components/Drawer';\n+\n import DatasetInfo from './Dataset';\n \n interface Ref {\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Create/Task/Resource/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Create/Task/Resource/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,9 +1,11 @@\n-import useInitialState from '@/hooks/useInitialState';\n-import { getPackageLists } from '@/services/modelTrain';\n import { ReloadOutlined } from '@ant-design/icons';\n import { useAsyncEffect } from 'ahooks';\n import { Button, Spin, Table, Tooltip } from 'antd';\n import React, { memo, useCallback, useMemo, useState } from 'react';\n+\n+import useInitialState from '@/hooks/useInitialState';\n+import { getPackageLists } from '@/services/modelTrain';\n+\n import style from './index.module.less';\n \n const columns = [\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Create/Task/ResourceInstance/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Create/Task/ResourceInstance/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,10 @@\n+import { Form, InputNumber, Table } from 'antd';\n+import { memo, useMemo } from 'react';\n+\n import SingleNode from '@/components/ResourceInstance/SingleNode';\n import useTeamResource from '@/hooks/useTeamResource';\n import type { ResourceInstanceList } from '@/types/global';\n-import { Form, InputNumber, Table } from 'antd';\n-import { memo, useMemo } from 'react';\n+\n import styles from './index.less';\n \n const RESOURCE_INSTANCE = [\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Create/Task/Storage/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Create/Task/Storage/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,9 +1,11 @@\n+import { Button, Form, Input, Select, Table } from 'antd';\n+import { memo, useEffect, useMemo, useState } from 'react';\n+\n import useInitialState from '@/hooks/useInitialState';\n import { StarFSLabel } from '@/pages/AssetManagement/Storage/constants';\n import { getNasSecrets, getStarFsSecrets } from '@/services/modelTrain';\n import { validMountPath } from '@/utils/validate';\n-import { Button, Form, Input, Select, Table } from 'antd';\n-import { memo, useEffect, useMemo, useState } from 'react';\n+\n import { CLUSTER_STORAGE_TYPE_MAP, STORAGE_TYPE } from '../../../../constant';\n \n const REQUESTS = {\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Create/Task/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Create/Task/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,11 +1,4 @@\n /* eslint-disable prefer-promise-reject-errors */\n-import { isResourceInstance } from '@/cluster';\n-import Image from '@/components/Image';\n-import MultiNode from '@/components/ResourceInstance/MultiNode';\n-import useInitialState from '@/hooks/useInitialState';\n-import CodeConfig from '@/pages/ModelTrain/components/CodeConfig';\n-import CodeMirror from '@/pages/ModelTrain/components/CodeMirrorNew';\n-import { getTaskDetail } from '@/services/modelTrain';\n import { useParams } from '@umijs/max';\n import { Card, Checkbox, Form, Input, InputNumber, Select, Space, Spin } from 'antd';\n import { cloneDeep } from 'lodash';\n@@ -18,7 +11,16 @@ import {\n useMemo,\n useState,\n } from 'react';\n-import { NEED_MODEL_TYPE, getApi } from '../../../constant';\n+\n+import { isResourceInstance } from '@/cluster';\n+import Image from '@/components/Image';\n+import MultiNode from '@/components/ResourceInstance/MultiNode';\n+import useInitialState from '@/hooks/useInitialState';\n+import CodeConfig from '@/pages/ModelTrain/components/CodeConfig';\n+import CodeMirror from '@/pages/ModelTrain/components/CodeMirrorNew';\n+import { getTaskDetail } from '@/services/modelTrain';\n+\n+import { getApi,NEED_MODEL_TYPE } from '../../../constant';\n import usePlatformOptions from '../../../hooks/usePlatformOptions';\n import { str2Object } from '../../../util';\n import Dataset from './Dataset';\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Create/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Create/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,12 @@\n+import { history } from '@umijs/max';\n+import { Button, message, Space } from 'antd';\n+import { memo, useCallback, useRef, useState } from 'react';\n+\n import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n import useInitialState from '@/hooks/useInitialState';\n import useTrack from '@/hooks/useTrack';\n import { createTask } from '@/services/modelTrain';\n-import { history } from '@umijs/max';\n-import { Button, message, Space } from 'antd';\n-import { memo, useCallback, useRef, useState } from 'react';\n+\n import { getApi } from '../../constant';\n import { TrackEnum } from '../../track';\n import { formatTaskParams } from '../../util';\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Detail/Event/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Detail/Event/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,10 @@\n+import { useParams } from '@umijs/max';\n+\n import EventInfo from '@/components/EventInfo';\n import useInitialState from '@/hooks/useInitialState';\n import useRequestData from '@/hooks/useRequestData';\n import { getTaskEvents } from '@/services/modelTrain';\n-import { useParams } from '@umijs/max';\n+\n import { getApi } from '../../../constant';\n export default () => {\n const { cluster } = useInitialState();\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Detail/Logs/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Detail/Logs/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,12 @@\n+import { message } from 'antd';\n+import dayjs from 'dayjs';\n+import { useCallback, useMemo } from 'react';\n+\n import Logs from '@/components/LogInfo';\n import { RESOURCE_MONITORING_LINK } from '@/constants/global';\n import useInitialState from '@/hooks/useInitialState';\n import { queryDownloadPodLogs, queryPodLogs } from '@/services/modelTrain';\n-import { message } from 'antd';\n-import dayjs from 'dayjs';\n-import { useCallback, useMemo } from 'react';\n+\n import { formatLogs } from '../../../../utils';\n import { getApi } from '../../../constant';\n \n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/Detail/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/Detail/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,3 +1,10 @@\n+import { useParams } from '@umijs/max';\n+import { Button, Card, Space, Spin, Tabs } from 'antd';\n+import classnames from 'classnames';\n+import _, { isEmpty } from 'lodash';\n+import { memo, useMemo, useState } from 'react';\n+import ReactJson from 'react-json-view';\n+\n import { isResourceInstance } from '@/cluster';\n import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n import { DATA_TYPE } from '@/components/Info';\n@@ -13,12 +20,7 @@ import TaskTimeLine from '@/pages/ModelTrain/components/TaskTimeLine';\n import { taskCreateTimeIsAfter } from '@/pages/ModelTrain/utils';\n import { getTaskDetail } from '@/services/modelTrain';\n import { calcTimeInterval } from '@/utils/calcTimeInterval';\n-import { useParams } from '@umijs/max';\n-import { Button, Card, Space, Spin, Tabs } from 'antd';\n-import classnames from 'classnames';\n-import _, { isEmpty } from 'lodash';\n-import { memo, useMemo, useState } from 'react';\n-import ReactJson from 'react-json-view';\n+\n import Actions from '../../components/Actions';\n import { getApi } from '../../constant';\n import { formatJobLogs } from '../../util';\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/ProjectList/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/ProjectList/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,12 @@\n+import { ReloadOutlined } from '@ant-design/icons';\n+import { Button, Input, message, Popconfirm, Space, Table, Typography } from 'antd';\n+import { memo, useCallback, useMemo, useState } from 'react';\n+\n import { pagination } from '@/constants/global';\n import useInitialState from '@/hooks/useInitialState';\n import useTrack from '@/hooks/useTrack';\n import { deleteProject } from '@/services/modelTrain';\n-import { ReloadOutlined } from '@ant-design/icons';\n-import { Button, Input, message, Popconfirm, Space, Table, Typography } from 'antd';\n-import { memo, useCallback, useMemo, useState } from 'react';\n+\n import useProjectLists from '../../hooks/useProjectLists';\n import { TrackEnum } from '../../track';\n import { formatTime } from '../../util';\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/pages/TaskList/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/pages/TaskList/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,3 +1,9 @@\n+import { ReloadOutlined } from '@ant-design/icons';\n+import { history, useModel } from '@umijs/max';\n+import { useAntdTable } from 'ahooks';\n+import { Button, Checkbox, Form, Input, Space, Table, Tag, Typography } from 'antd';\n+import { memo, useCallback, useEffect, useMemo } from 'react';\n+\n import { isResourceInstance } from '@/cluster';\n import ResourceItem from '@/components/ResourceInstance/ResourceItem';\n import TableTooltipItem from '@/components/TableTooltipItem';\n@@ -10,13 +16,9 @@ import ListTimeLine from '@/pages/ModelTrain/components/TaskTimeLine/ListTimeLin\n import { taskCreateTimeIsAfter } from '@/pages/ModelTrain/utils';\n import { getTaskLists } from '@/services/modelTrain';\n import { calcTimeInterval } from '@/utils/calcTimeInterval';\n-import { ReloadOutlined } from '@ant-design/icons';\n-import { history, useModel } from '@umijs/max';\n-import { useAntdTable } from 'ahooks';\n-import { Button, Checkbox, Form, Input, Space, Table, Tag, Typography } from 'antd';\n-import { memo, useCallback, useEffect, useMemo } from 'react';\n+\n import Actions from '../../components/Actions';\n-import { STATUS, getApi } from '../../constant';\n+import { getApi,STATUS } from '../../constant';\n import { TrackEnum } from '../../track';\n import { formatTime } from '../../util';\n import style from './index.module.less';\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/index.tsx",
"new_path": "src/pages/ModelTrain/CRH/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,10 +1,12 @@\n+import { Button, Space, Tabs } from 'antd';\n+import { useCallback, useMemo, useState } from 'react';\n+\n import { isResourceInstance } from '@/cluster';\n import ContentLayout from '@/components/ContentLayout';\n import useInitialState from '@/hooks/useInitialState';\n import useTrack from '@/hooks/useTrack';\n import { linkToExperiment } from '@/pages/ModelTrain/utils';\n-import { Button, Space, Tabs } from 'antd';\n-import { useCallback, useMemo, useState } from 'react';\n+\n import style from './index.less';\n import ProjectList from './pages/ProjectList';\n import TaskList from './pages/TaskList';\n"
},
{
"old_path": "src/pages/ModelTrain/CRH/util.ts",
"new_path": "src/pages/ModelTrain/CRH/util.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n /* eslint-disable consistent-return */\n import dayjs from 'dayjs';\n import _ from 'lodash';\n+\n import { STORAGE_TYPE } from './constant';\n import type { JobState, PodState } from './type';\n \n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/components/DocumentView/index.tsx",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/components/DocumentView/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,10 @@\n import { Card } from 'antd';\n import React, { memo } from 'react';\n+import Draggable from 'react-draggable';\n+\n // eslint-disable-next-line import/no-extraneous-dependencies\n import CodeMirror from '@/pages/ModelSquare/components/CodeMirror';\n-import Draggable from 'react-draggable';\n+\n import styles from './index.less';\n \n interface DocumentViewProps {\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/components/CodeEditor.tsx",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/components/CodeEditor.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,5 +1,6 @@\n import 'codemirror/lib/codemirror.css';\n import 'codemirror/mode/shell/shell';\n+\n import { UnControlled as CodeMirror } from 'react-codemirror2';\n \n export default ({ value, onChange }: any) => {\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/components/StorageMode.tsx",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/components/StorageMode.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,10 @@\n-import { validMountPath } from '@/utils/validate';\n import { MinusCircleOutlined } from '@ant-design/icons';\n import { Form, Input, Select } from 'antd';\n import { FormInstance } from 'antd/lib/form';\n import { useMemo } from 'react';\n+\n+import { validMountPath } from '@/utils/validate';\n+\n import styles from '../assets/styles/index.less';\n import { checkFdsStatus, FDS, HDFS, SpaceSize, StarFS, storageTypes } from '../constants';\n \n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useContainerImage.ts",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useContainerImage.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,8 @@\n-import type { Option } from '@/pages/Tensorboard/typings';\n-import { queryImageList } from '@/services/trainJob';\n import { useModel } from '@umijs/max';\n import { useEffect, useRef, useState } from 'react';\n+\n+import type { Option } from '@/pages/Tensorboard/typings';\n+import { queryImageList } from '@/services/trainJob';\n export default (framework: string) => {\n const { initialState } = useModel('@@initialState');\n const imageRef = useRef<Option[]>([]);\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useFramework.ts",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useFramework.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n-import type { Option } from '@/pages/Tensorboard/typings';\n import { useModel } from '@umijs/max';\n import { useCallback, useEffect, useRef, useState } from 'react';\n+\n+import type { Option } from '@/pages/Tensorboard/typings';\n export default (form: any, gpu_type: any, framework: any) => {\n const { initialState } = useModel('@@initialState');\n const [frameworks, setFrameworks] = useState<any>([]);\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useGitSecret.ts",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useGitSecret.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,8 @@\n-import type { Option } from '@/pages/Tensorboard/typings';\n-import { queryGitList } from '@/services/trainJob';\n import { useModel } from '@umijs/max';\n import { useEffect, useState } from 'react';\n+\n+import type { Option } from '@/pages/Tensorboard/typings';\n+import { queryGitList } from '@/services/trainJob';\n export default () => {\n const { initialState } = useModel('@@initialState');\n const [gitList, setGitList] = useState<Option[]>([]);\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useQuota.ts",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useQuota.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,8 @@\n-import type { Option } from '@/pages/Tensorboard/typings';\n-import { queryQuota } from '@/services/trainJob';\n import { useModel } from '@umijs/max';\n import { useEffect, useState } from 'react';\n+\n+import type { Option } from '@/pages/Tensorboard/typings';\n+import { queryQuota } from '@/services/trainJob';\n export default () => {\n const { initialState } = useModel('@@initialState');\n const [priorities, setPriorities] = useState<Option[]>([]);\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useSecretImage.ts",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useSecretImage.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,8 @@\n-import type { Option } from '@/pages/Tensorboard/typings';\n-import { querySecretImages } from '@/services/trainJob';\n import { useModel } from '@umijs/max';\n import { useEffect, useState } from 'react';\n+\n+import type { Option } from '@/pages/Tensorboard/typings';\n+import { querySecretImages } from '@/services/trainJob';\n export default () => {\n const { initialState } = useModel('@@initialState');\n const [imageSecret, setImageSecret] = useState<Option[]>([]);\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useStorageList.ts",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/hooks/useStorageList.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,8 @@\n-import type { Option } from '@/pages/Tensorboard/typings';\n-import { queryFdsList, queryHdfsList, queryStarfsList } from '@/services/storage';\n import { useModel } from '@umijs/max';\n import { useEffect, useState } from 'react';\n+\n+import type { Option } from '@/pages/Tensorboard/typings';\n+import { queryFdsList, queryHdfsList, queryStarfsList } from '@/services/storage';\n export default () => {\n const { initialState } = useModel('@@initialState');\n const [fdsList, setFdsList] = useState<Option[]>([]);\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Create/index.tsx",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Create/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,19 +1,6 @@\n /* eslint-disable no-restricted-syntax */\n /* eslint-disable no-unused-expressions */\n /* eslint-disable no-undef */\n-import { useCallback, useEffect, useMemo, useState } from 'react';\n-// @ts-ignore\n-import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n-import Image from '@/components/Image';\n-import useInitialState from '@/hooks/useInitialState';\n-import useTrack from '@/hooks/useTrack';\n-import useGpus from '@/pages/ModelFinetuning/hooks/useGpus';\n-import { Gi } from '@/pages/ModelService/constants';\n-import { notShow } from '@/pages/ModelTrain/cluster';\n-import CodeConfig from '@/pages/ModelTrain/components/CodeConfig';\n-import CodeMirror from '@/pages/ModelTrain/components/CodeMirrorNew';\n-import DocumentView from '@/pages/ModelTrain/TrainJob/pages/Create/components/DocumentView';\n-import { getTaskDetails, queryCreateTask } from '@/services/trainJob';\n import { CloseOutlined, PlusOutlined } from '@ant-design/icons';\n import { history, useModel, useParams } from '@umijs/max';\n import {\n@@ -31,6 +18,21 @@ import {\n Switch,\n } from 'antd';\n import _ from 'lodash';\n+import { useCallback, useEffect, useMemo, useState } from 'react';\n+\n+// @ts-ignore\n+import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n+import Image from '@/components/Image';\n+import useInitialState from '@/hooks/useInitialState';\n+import useTrack from '@/hooks/useTrack';\n+import useGpus from '@/pages/ModelFinetuning/hooks/useGpus';\n+import { Gi } from '@/pages/ModelService/constants';\n+import { notShow } from '@/pages/ModelTrain/cluster';\n+import CodeConfig from '@/pages/ModelTrain/components/CodeConfig';\n+import CodeMirror from '@/pages/ModelTrain/components/CodeMirrorNew';\n+import DocumentView from '@/pages/ModelTrain/TrainJob/pages/Create/components/DocumentView';\n+import { getTaskDetails, queryCreateTask } from '@/services/trainJob';\n+\n import { TrackEnum } from '../../track';\n import { formatTrainJobDetails } from '../../util';\n import styles from './assets/styles/index.less';\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Detail/EventList.tsx",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Detail/EventList.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,9 @@\n+import { history } from '@umijs/max';\n+\n import Event from '@/components/EventInfo';\n import useInitialState from '@/hooks/useInitialState';\n import useRequestData from '@/hooks/useRequestData';\n import { detailsTaskEvent } from '@/services/trainJob';\n-import { history } from '@umijs/max';\n export default () => {\n const { userName } = useInitialState();\n const { loading, data, queryData } = useRequestData({\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Detail/LogInstance.tsx",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Detail/LogInstance.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,11 +1,13 @@\n-import Logs from '@/components/LogInfo';\n-import useInitialState from '@/hooks/useInitialState';\n-import { getLogs } from '@/services/trainJob';\n import { useLocation } from '@umijs/max';\n import { useCallback, useMemo } from 'react';\n+\n+import Logs from '@/components/LogInfo';\n // import { RESOURCE_MONITORING_LINK } from '@/constants/global';\n import { LOGS_LINES } from '@/constants/global';\n+import useInitialState from '@/hooks/useInitialState';\n+import { getLogs } from '@/services/trainJob';\n import downloadFile from '@/utils/downloadFile';\n+\n import { formatLogs } from '../../../utils';\n export default ({\n data,\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/pages/Detail/index.tsx",
"new_path": "src/pages/ModelTrain/TrainJob/pages/Detail/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,12 @@\n /* eslint-disable no-plusplus */\n /* eslint-disable guard-for-in */\n /* eslint-disable no-restricted-syntax */\n-import { Button, Card, Popconfirm, Space, Spin, Tabs, message } from 'antd';\n+import { history, useLocation, useModel } from '@umijs/max';\n+import { Button, Card, message,Popconfirm, Space, Spin, Tabs } from 'antd';\n+import _, { isEmpty } from 'lodash';\n import { useEffect, useMemo, useState } from 'react';\n+import ReactJson from 'react-json-view';\n+\n // @ts-ignore\n import ContentLayout, { TypeEnum } from '@/components/ContentLayout';\n import { DATA_TYPE } from '@/components/Info';\n@@ -17,9 +21,7 @@ import { formatJobLogs } from '@/pages/ModelTrain/CRH/util';\n import { changeResource, changeUpdateTime } from '@/pages/ModelTrain/TrainJob/util';\n import { taskCreateTimeIsAfter } from '@/pages/ModelTrain/utils';\n import { isJSONString } from '@/utils/utils';\n-import { history, useLocation, useModel } from '@umijs/max';\n-import _, { isEmpty } from 'lodash';\n-import ReactJson from 'react-json-view';\n+\n import {\n deleteTask,\n getTaskDetails,\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/index.tsx",
"new_path": "src/pages/ModelTrain/TrainJob/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,12 +1,3 @@\n-import ContentLayout from '@/components/ContentLayout';\n-import TableTooltipItem from '@/components/TableTooltipItem';\n-import { HERA_LINK, pagination, RESOURCE_MONITORING_LINK } from '@/constants/global';\n-import useAdmin from '@/hooks/useAdmin';\n-import useSearchStorage from '@/hooks/useSearchStorage';\n-import useTrack from '@/hooks/useTrack';\n-import { notShow } from '@/pages/ModelTrain/cluster';\n-import ListTimeLine from '@/pages/ModelTrain/components/TaskTimeLine/ListTimeLine';\n-import { linkToExperiment, taskCreateTimeIsAfter } from '@/pages/ModelTrain/utils';\n import { CloseOutlined, EllipsisOutlined, ReloadOutlined } from '@ant-design/icons';\n import { history, useModel } from '@umijs/max';\n import { useAntdTable } from 'ahooks';\n@@ -27,6 +18,17 @@ import {\n import type { ColumnsType } from 'antd/es/table';\n import dayjs from 'dayjs';\n import { useEffect, useMemo, useState } from 'react';\n+\n+import ContentLayout from '@/components/ContentLayout';\n+import TableTooltipItem from '@/components/TableTooltipItem';\n+import { HERA_LINK, pagination, RESOURCE_MONITORING_LINK } from '@/constants/global';\n+import useAdmin from '@/hooks/useAdmin';\n+import useSearchStorage from '@/hooks/useSearchStorage';\n+import useTrack from '@/hooks/useTrack';\n+import { notShow } from '@/pages/ModelTrain/cluster';\n+import ListTimeLine from '@/pages/ModelTrain/components/TaskTimeLine/ListTimeLine';\n+import { linkToExperiment, taskCreateTimeIsAfter } from '@/pages/ModelTrain/utils';\n+\n import {\n deleteTask,\n delProjects,\n"
},
{
"old_path": "src/pages/ModelTrain/TrainJob/util.ts",
"new_path": "src/pages/ModelTrain/TrainJob/util.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,8 @@\n /* eslint-disable no-restricted-syntax */\n-import { isJSONString } from '@/utils/utils';\n import { cloneDeep } from 'lodash';\n \n+import { isJSONString } from '@/utils/utils';\n+\n export function formatTrainJobDetails(res: Record<string, any>) {\n const request_body = isJSONString(res?.request_body) ? JSON.parse(res?.request_body) : null;\n const data = cloneDeep(request_body);\n"
},
{
"old_path": "src/pages/ModelTrain/components/CodeConfig/BranchSelect.tsx",
"new_path": "src/pages/ModelTrain/components/CodeConfig/BranchSelect.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,5 +1,7 @@\n-import SearchSelect from '@/components/SearchSelect';\n import { Input, Space } from 'antd';\n+\n+import SearchSelect from '@/components/SearchSelect';\n+\n import styles from './index.less';\n \n const BranchSelect = (props: any) => {\n"
},
{
"old_path": "src/pages/ModelTrain/components/CodeConfig/index.tsx",
"new_path": "src/pages/ModelTrain/components/CodeConfig/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,3 +1,7 @@\n+import { Button, Form, Input, Select } from 'antd';\n+import { SelectProps } from 'antd/es/select';\n+import { useCallback, useEffect, useMemo, useState } from 'react';\n+\n import useInitialState from '@/hooks/useInitialState';\n import useRequestData from '@/hooks/useRequestData';\n import GitVersion from '@/pages/AssetManagement/Code/components/GitVersion';\n@@ -5,9 +9,7 @@ import CreateModal from '@/pages/AssetManagement/Code/pages/CreateModal';\n import BranchSelect from '@/pages/ModelTrain/components/CodeConfig/BranchSelect';\n import { queryTrainCodeList } from '@/services/code';\n import { getGitlabBranch } from '@/services/global';\n-import { Button, Form, Input, Select } from 'antd';\n-import { SelectProps } from 'antd/es/select';\n-import { useCallback, useEffect, useMemo, useState } from 'react';\n+\n import style from './index.less';\n \n const CodeConfig = ({ form, detailData }: any) => {\n"
},
{
"old_path": "src/pages/ModelTrain/components/CodeMirrorNew/index.tsx",
"new_path": "src/pages/ModelTrain/components/CodeMirrorNew/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,13 +1,14 @@\n /* eslint-disable react/no-unknown-property */\n-import { CopyOutlined, FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons';\n-import { useFullscreen } from 'ahooks';\n-import { Space, Typography } from 'antd';\n-import classnames from 'classnames';\n import 'codemirror/addon/edit/closebrackets';\n import 'codemirror/lib/codemirror.css';\n import 'codemirror/mode/javascript/javascript.js';\n import 'codemirror/mode/shell/shell';\n import 'codemirror/theme/eclipse.css';\n+\n+import { CopyOutlined, FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons';\n+import { useFullscreen } from 'ahooks';\n+import { Space, Typography } from 'antd';\n+import classnames from 'classnames';\n import { CSSProperties, useCallback, useRef, useState } from 'react';\n import { Controlled as CodeMirror } from 'react-codemirror2';\n \n"
},
{
"old_path": "src/pages/ModelTrain/components/TaskTimeLine/ListTimeLine.tsx",
"new_path": "src/pages/ModelTrain/components/TaskTimeLine/ListTimeLine.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -2,6 +2,7 @@ import { InfoCircleOutlined, SyncOutlined } from '@ant-design/icons';\n import { Popover, Tag, Timeline } from 'antd';\n import dayjs from 'dayjs';\n import { memo, useMemo } from 'react';\n+\n import { KEYS, TASK_MAP, TaskTimeLineProps } from './constant';\n import useDefaultParams from './hooks';\n import styles from './index.less';\n"
},
{
"old_path": "src/pages/ModelTrain/components/TaskTimeLine/hooks.ts",
"new_path": "src/pages/ModelTrain/components/TaskTimeLine/hooks.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,5 +1,6 @@\n import _ from 'lodash';\n import { useCallback, useMemo } from 'react';\n+\n import { KEYS, TaskTimeLineProps } from './constant';\n \n export default (props: TaskTimeLineProps) => {\n"
},
{
"old_path": "src/pages/ModelTrain/components/TaskTimeLine/index.tsx",
"new_path": "src/pages/ModelTrain/components/TaskTimeLine/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,9 +1,11 @@\n-import calcTimeInterval from '@/utils/calcTimeInterval';\n import { SyncOutlined } from '@ant-design/icons';\n import { Tag, Timeline } from 'antd';\n import classnames from 'classnames';\n import dayjs from 'dayjs';\n import { memo } from 'react';\n+\n+import calcTimeInterval from '@/utils/calcTimeInterval';\n+\n import { KEYS, TASK_MAP, TaskTimeLineProps } from './constant';\n import useDefaultParams from './hooks';\n import styles from './index.less';\n"
},
{
"old_path": "src/pages/ModelTrain/utils/index.ts",
"new_path": "src/pages/ModelTrain/utils/index.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n // 格式化日志信息\n import dayjs from 'dayjs';\n import _ from 'lodash';\n+\n import { kceTj5 } from '../../../../config/cluster';\n \n export function formatLogs(logs: any) {\n"
},
{
"old_path": "src/pages/Overview/components/DocumentView/index.tsx",
"new_path": "src/pages/Overview/components/DocumentView/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n import { CloseOutlined, LinkOutlined } from '@ant-design/icons';\n import { Button, Card, Space, Typography } from 'antd';\n import { useMemo } from 'react';\n+\n import styles from './index.less';\n \n const DocumentView = ({ onRef, link }: { onRef: any; link: string }) => {\n"
},
{
"old_path": "src/pages/Overview/components/Flowchart/index.tsx",
"new_path": "src/pages/Overview/components/Flowchart/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,7 +1,9 @@\n-import { IInitialState } from '@/app';\n-import useSetTour from '@/components/Tour/useSetTour';\n import { history, useModel } from '@umijs/max';\n import React from 'react';\n+\n+import { IInitialState } from '@/app';\n+import useSetTour from '@/components/Tour/useSetTour';\n+\n import code from '../../assets/imgs/code.png';\n import code_active from '../../assets/imgs/code_active.png';\n import image from '../../assets/imgs/image.png';\n"
},
{
"old_path": "src/pages/Overview/components/MenuModules/index.tsx",
"new_path": "src/pages/Overview/components/MenuModules/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,8 +1,10 @@\n+import { history, useModel } from '@umijs/max';\n+import { Card } from 'antd';\n+\n import { IInitialState } from '@/app';\n import useSetTour from '@/components/Tour/useSetTour';\n import useTrack from '@/hooks/useTrack';\n-import { history, useModel } from '@umijs/max';\n-import { Card } from 'antd';\n+\n import { MENU_MAP } from '../../constants';\n import { TrackEnum } from '../../constants/track';\n import styles from './index.less';\n"
},
{
"old_path": "src/pages/Overview/pages/NoEntry/index.tsx",
"new_path": "src/pages/Overview/pages/NoEntry/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,6 +1,7 @@\n-import styles from '@/pages/Overview/pages/TeamSelect/index.less';\n import { history, useModel } from '@umijs/max';\n import { Button, Typography } from 'antd';\n+\n+import styles from '@/pages/Overview/pages/TeamSelect/index.less';\n const NoEntry = ({ routeProps }: { routeProps: Record<string, any> }) => {\n const { initialState } = useModel('@@initialState');\n return (\n"
},
{
"old_path": "src/pages/Overview/pages/TeamSelect/index.tsx",
"new_path": "src/pages/Overview/pages/TeamSelect/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,4 +1,8 @@\n /* eslint-disable no-nested-ternary */\n+import { history, useModel } from '@umijs/max';\n+import { Button, Select, Space, Typography } from 'antd';\n+import { useEffect, useState } from 'react';\n+\n import { IInitialState } from '@/app';\n import NoFoundContent from '@/components/NoFoundContent';\n import WorkSpaceCreate from '@/components/WorkSpaceCreate';\n@@ -6,9 +10,7 @@ import OldWorkSpaceCreate from '@/components/WorkSpaceCreate/OldWorkSpaceCreate'\n import useTrack from '@/hooks/useTrack';\n import { isNewTeamList } from '@/pages/WorkSpace/cluster';\n import { queryTeamList } from '@/services/team';\n-import { history, useModel } from '@umijs/max';\n-import { Button, Select, Space, Typography } from 'antd';\n-import { useEffect, useState } from 'react';\n+\n import { TrackEnum } from '../../constants/track';\n import styles from './index.less';\n const TeamSelect = ({ routeProps }: { routeProps: Record<string, any> }) => {\n"
},
{
"old_path": "src/pages/Overview/index.tsx",
"new_path": "src/pages/Overview/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,3 +1,8 @@\n+import { CloseOutlined, LinkOutlined } from '@ant-design/icons';\n+import { history, useModel } from '@umijs/max';\n+import { Button, Card, Space, Tour, Typography } from 'antd';\n+import React, { useContext, useMemo, useState } from 'react';\n+\n import DocumentView from '@/components/DocumentView';\n import useLocalStorage from '@/hooks/useLocalStorage';\n import useTrack from '@/hooks/useTrack';\n@@ -6,10 +11,7 @@ import { Overview__Tour__Key } from '@/layouts/constants';\n import styles from '@/pages/Overview/assets/styles/index.less';\n import Flowchart from '@/pages/Overview/components/Flowchart';\n import MenuModules from '@/pages/Overview/components/MenuModules';\n-import { CloseOutlined, LinkOutlined } from '@ant-design/icons';\n-import { history, useModel } from '@umijs/max';\n-import { Button, Card, Space, Tour, Typography } from 'antd';\n-import React, { useContext, useMemo, useState } from 'react';\n+\n import { TrackEnum } from './constants/track';\n const Overview = () => {\n const { trackClickHandle } = useTrack(TrackEnum.PageName);\n"
},
{
"old_path": "src/pages/PAIDLC/components/BaseCodeMirror/CodeMoirror.tsx",
"new_path": "src/pages/PAIDLC/components/BaseCodeMirror/CodeMoirror.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -2,9 +2,10 @@\n import 'codemirror/lib/codemirror.css';\n import 'codemirror/mode/shell/shell';\n import 'codemirror/theme/material.css';\n-import { UnControlled as CodeMirror } from 'react-codemirror2';\n import './styles/index.less';\n \n+import { UnControlled as CodeMirror } from 'react-codemirror2';\n+\n export default ({ data }: { data: string[] }) => {\n return (\n <CodeMirror\n"
},
{
"old_path": "src/pages/PAIDLC/components/BaseCodeMirror/index.tsx",
"new_path": "src/pages/PAIDLC/components/BaseCodeMirror/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,11 +1,11 @@\n /* eslint-disable import/no-extraneous-dependencies */\n+import 'xterm/css/xterm.css';\n+import '../../assets/styles/index.less';\n+\n import { useEffect, useRef } from 'react';\n import { Terminal } from 'xterm';\n import { FitAddon } from 'xterm-addon-fit';\n \n-import 'xterm/css/xterm.css';\n-import '../../assets/styles/index.less';\n-\n export default ({ data }: { data: string[] }) => {\n const terminalDomRef = useRef<HTMLDivElement | null>(null);\n const xtermRef = useRef<Terminal>();\n"
},
{
"old_path": "src/pages/PAIDLC/components/Container/WebTerm.tsx",
"new_path": "src/pages/PAIDLC/components/Container/WebTerm.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": "@@ -1,13 +1,13 @@\n /* eslint-disable no-inner-declarations */\n /* eslint-disable no-console */\n+import 'xterm/css/xterm.css';\n+\n import { forwardRef, memo, useEffect, useImperativeHandle, useRef } from 'react';\n import { Terminal } from 'xterm';\n import { FitAddon } from 'xterm-addon-fit';\n import { SearchAddon } from 'xterm-addon-search';\n import { WebLinksAddon } from 'xterm-addon-web-links';\n \n-import 'xterm/css/xterm.css';\n-\n const WebTerm = forwardRef(({ wssUrl }: { wssUrl: string }, ref) => {\n const terminalDomRef = useRef<HTMLDivElement | null>(null);\n const xtermRef = useRef<Terminal>();\n"
},
{
"old_path": "src/pages/PAIDLC/components/Container/index.tsx",
"new_path": "src/pages/PAIDLC/components/Container/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/components/Dataset/index.tsx",
"new_path": "src/pages/PAIDLC/components/Dataset/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/components/Events/index.old.tsx",
"new_path": "src/pages/PAIDLC/components/Events/index.old.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/components/Events/index.tsx",
"new_path": "src/pages/PAIDLC/components/Events/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/components/Instance/index.tsx",
"new_path": "src/pages/PAIDLC/components/Instance/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/components/LogsModal/Event.tsx",
"new_path": "src/pages/PAIDLC/components/LogsModal/Event.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/components/LogsModal/Instance.tsx",
"new_path": "src/pages/PAIDLC/components/LogsModal/Instance.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/components/LogsModal/index.tsx",
"new_path": "src/pages/PAIDLC/components/LogsModal/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/components/SourceView/index.tsx",
"new_path": "src/pages/PAIDLC/components/SourceView/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/constants/downloadCsv.ts",
"new_path": "src/pages/PAIDLC/constants/downloadCsv.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/constants/index.tsx",
"new_path": "src/pages/PAIDLC/constants/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/hooks/useClusters.ts",
"new_path": "src/pages/PAIDLC/hooks/useClusters.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/hooks/useCodeSelect.ts",
"new_path": "src/pages/PAIDLC/hooks/useCodeSelect.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/hooks/useFramework.ts",
"new_path": "src/pages/PAIDLC/hooks/useFramework.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/hooks/useQuota.ts",
"new_path": "src/pages/PAIDLC/hooks/useQuota.ts",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/pages/Create/index.tsx",
"new_path": "src/pages/PAIDLC/pages/Create/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/pages/Detail/index.tsx",
"new_path": "src/pages/PAIDLC/pages/Detail/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/pages/webTerm/index.tsx",
"new_path": "src/pages/PAIDLC/pages/webTerm/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/PAIDLC/index.tsx",
"new_path": "src/pages/PAIDLC/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/Tensorboard/components/Create.tsx",
"new_path": "src/pages/Tensorboard/components/Create.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/Tensorboard/components/CreateModal.tsx",
"new_path": "src/pages/Tensorboard/components/CreateModal.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/Tensorboard/constants/index.tsx",
"new_path": "src/pages/Tensorboard/constants/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/Tensorboard/pages/Detail/Event.tsx",
"new_path": "src/pages/Tensorboard/pages/Detail/Event.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/Tensorboard/pages/Detail/index.tsx",
"new_path": "src/pages/Tensorboard/pages/Detail/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
},
{
"old_path": "src/pages/Tensorboard/index.tsx",
"new_path": "src/pages/Tensorboard/index.tsx",
"a_mode": "100644",
"b_mode": "100644",
"new_file": false,
"renamed_file": false,
"deleted_file": false,
"diff": ""
}
],
"overflow": false
}