Skip to content

Commit

Permalink
fix: types error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuoni committed Dec 11, 2023
1 parent e96b5d3 commit 9cda25a
Show file tree
Hide file tree
Showing 85 changed files with 149 additions and 56 deletions.
2 changes: 1 addition & 1 deletion AccountCenter/src/components/Applications/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
EllipsisOutlined,
ShareAltOutlined,
} from '@ant-design/icons';
import { useRequest } from 'umi';
import { useRequest } from '@umijs/max';
import { Avatar, Card, Dropdown, List, Menu, Tooltip } from 'antd';
import React from 'react';
import numeral from 'numeral';
Expand Down
2 changes: 1 addition & 1 deletion AccountCenter/src/components/Articles/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { StarTwoTone, LikeOutlined, MessageFilled } from '@ant-design/icons';
import { useRequest } from 'umi';
import { useRequest } from '@umijs/max';
import { List, Tag } from 'antd';
import ArticleListContent from '../ArticleListContent';
import type { ListItemDataType } from '../../data.d';
Expand Down
2 changes: 1 addition & 1 deletion AccountCenter/src/components/Projects/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Card, List } from 'antd';
import { useRequest } from 'umi';
import { useRequest } from '@umijs/max';
import React from 'react';
import moment from 'moment';
import { queryFakeList } from '../../service';
Expand Down
1 change: 1 addition & 0 deletions AccountCenter/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Avatar, Card, Col, Divider, Input, Row, Tag, InputRef } from 'antd';
import React, { useState, useRef } from 'react';
import { GridContent } from '@ant-design/pro-components';
import { Link, useRequest } from '@umijs/max';
// @ts-ignore
import type { RouteChildrenProps } from 'react-router';
import Projects from './components/Projects';
import Articles from './components/Articles';
Expand Down
2 changes: 1 addition & 1 deletion AccountCenter/src/service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { request } from 'umi';
import { request } from '@umijs/max';
import type { CurrentUser, ListItemDataType } from './data.d';

export async function queryCurrent(): Promise<{ data: CurrentUser }> {
Expand Down
2 changes: 1 addition & 1 deletion AccountSettings/src/components/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
ProFormText,
ProFormTextArea,
} from '@ant-design/pro-components';
import { useRequest } from 'umi';
import { useRequest } from '@umijs/max';
import { queryCurrent } from '../service';
import { queryProvince, queryCity } from '../service';

Expand Down
2 changes: 1 addition & 1 deletion AccountSettings/src/service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { request } from 'umi';
import { request } from '@umijs/max';
import type { CurrentUser, GeographicItemType } from './data';

export async function queryCurrent(): Promise<{ data: CurrentUser }> {
Expand Down
3 changes: 2 additions & 1 deletion DashboardAnalysis/src/components/Charts/Pie/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Chart, Coord, Geom, Tooltip } from 'bizcharts';
import React, { Component } from 'react';

// @ts-ignore
import { DataView } from '@antv/data-set';
import Debounce from 'lodash.debounce';
import { Divider } from 'antd';
// @ts-ignore
import ReactFitText from 'react-fittext';
import classNames from 'classnames';
import autoHeight from '../autoHeight';
Expand Down
4 changes: 4 additions & 0 deletions DashboardAnalysis/src/components/Charts/TagCloud/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,17 @@ class TagCloud extends Component<TagCloudProps, TagCloudState> {
type: 'tag-cloud',
fields: ['name', 'value'],
imageMask: this.imageMask,
// @ts-ignore
font: 'Verdana',
// @ts-ignore
size: [w, h], // 宽高设置最好根据 imageMask 做调整
padding: 0,
timeInterval: 5000, // max execute time
// @ts-ignore
rotate() {
return 0;
},
// @ts-ignore
fontSize(d: { value: number }) {
const size = ((d.value - min) / (max - min)) ** 2;
return size * (17.5 - 5) + 5;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Axis, Chart, Geom, Legend, Tooltip } from 'bizcharts';

import DataSet from '@antv/data-set';
import React from 'react';
// @ts-ignore
import Slider from 'bizcharts-plugin-slider';
import autoHeight from '../autoHeight';
// import useStyles from './index.style';
Expand Down
2 changes: 1 addition & 1 deletion DashboardAnalysis/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { FC } from 'react';
import { useRequest } from 'umi';
import { useRequest } from '@umijs/max';
import { Suspense, useState } from 'react';
import { EllipsisOutlined } from '@ant-design/icons';
import { Col, Dropdown, Menu, Row } from 'antd';
Expand Down
2 changes: 1 addition & 1 deletion DashboardAnalysis/src/service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { request } from 'umi';
import { request } from '@umijs/max';
import type { AnalysisData } from './data';

export async function fakeChartData(): Promise<{ data: AnalysisData }> {
Expand Down
2 changes: 1 addition & 1 deletion DashboardMonitor/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Card, Col, Row, Statistic } from 'antd';
import { useRequest } from 'umi';
import { useRequest } from '@umijs/max';
import type { FC } from 'react';
import { Gauge, WordCloud, Liquid, RingProgress } from '@ant-design/charts';
import { GridContent } from '@ant-design/pro-components';
Expand Down
2 changes: 1 addition & 1 deletion DashboardMonitor/src/service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { request } from 'umi';
import { request } from '@umijs/max';
import type { TagType } from './data';

export async function queryTags(): Promise<{ data: { list: TagType[] } }> {
Expand Down
2 changes: 1 addition & 1 deletion DashboardWorkplace/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { FC } from 'react';
import { Avatar, Card, Col, List, Skeleton, Row, Statistic } from 'antd';
import { Radar } from '@ant-design/charts';
import { Link, useRequest } from 'umi';
import { Link, useRequest } from '@umijs/max';
import { PageContainer } from '@ant-design/pro-components';
import moment from 'moment';
import EditableLinkGroup from './components/EditableLinkGroup';
Expand Down
2 changes: 1 addition & 1 deletion DashboardWorkplace/src/service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { request } from 'umi';
import { request } from '@umijs/max';
import type { NoticeType, ActivitiesType, AnalysisData } from './data';

export async function queryProjectNotice(): Promise<{ data: NoticeType[] }> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasMenu, ContextMenu, EdgeMenu, GroupMenu, MultiMenu, NodeMenu } from 'gg-editor';

import MenuItem from './MenuItem';
import useStyles from './index.style';

Expand Down
1 change: 1 addition & 0 deletions EditorFlow/src/components/EditorContextMenu/MenuItem.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { Command } from 'gg-editor';
import React from 'react';
import IconFont from '../../common/IconFont';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasMenu, ContextMenu, NodeMenu } from 'gg-editor';

import MenuItem from './MenuItem';
import useStyles from './index.style';

Expand Down
1 change: 1 addition & 0 deletions EditorFlow/src/components/EditorDetailPanel/DetailForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { Card, Input, Select, Form } from 'antd';
// @ts-ignore
import { withPropsAPI } from 'gg-editor';

const upperFirst = (str: string) =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasPanel, DetailPanel, EdgePanel, GroupPanel, MultiPanel, NodePanel } from 'gg-editor';

import { Card } from 'antd';
import DetailForm from './DetailForm';
import useStyles from './index.style';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasPanel, DetailPanel, NodePanel } from 'gg-editor';

import { Card } from 'antd';
import DetailForm from './DetailForm';
import useStyles from './index.style';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { Item, ItemPanel } from 'gg-editor';

import { Card } from 'antd';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { Item, ItemPanel } from 'gg-editor';

import { Card } from 'antd';
Expand Down
1 change: 1 addition & 0 deletions EditorFlow/src/components/EditorMinimap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Card } from 'antd';
// @ts-ignore
import { Minimap } from 'gg-editor';

const EditorMinimap = () => (
Expand Down
1 change: 1 addition & 0 deletions EditorFlow/src/components/EditorToolbar/FlowToolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Divider } from 'antd';
// @ts-ignore
import { Toolbar } from 'gg-editor';
import ToolbarButton from './ToolbarButton';
import useStyles from './index.style';
Expand Down
1 change: 1 addition & 0 deletions EditorFlow/src/components/EditorToolbar/MindToolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Divider } from 'antd';
// @ts-ignore
import { Toolbar } from 'gg-editor';
import ToolbarButton from './ToolbarButton';
import useStyles from './index.style';
Expand Down
1 change: 1 addition & 0 deletions EditorFlow/src/components/EditorToolbar/ToolbarButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { Command } from 'gg-editor';
import React from 'react';
import { Tooltip } from 'antd';
Expand Down
2 changes: 1 addition & 1 deletion EditorFlow/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Col, Row } from 'antd';
// @ts-ignore
import GGEditor, { Flow } from 'gg-editor';

import { PageContainer } from '@ant-design/pro-components';
import EditorMinimap from './components/EditorMinimap';
import { FlowContextMenu } from './components/EditorContextMenu';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasMenu, ContextMenu, EdgeMenu, GroupMenu, MultiMenu, NodeMenu } from 'gg-editor';

import MenuItem from './MenuItem';
import useStyles from './index.style';

Expand Down
1 change: 1 addition & 0 deletions EditorKoni/src/components/EditorContextMenu/MenuItem.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { Command } from 'gg-editor';
import React from 'react';
import IconFont from '../../common/IconFont';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasMenu, ContextMenu, NodeMenu } from 'gg-editor';

import MenuItem from './MenuItem';
import useStyles from './index.style';

Expand Down
1 change: 1 addition & 0 deletions EditorKoni/src/components/EditorDetailPanel/DetailForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { Card, Input, Select, Form } from 'antd';
// @ts-ignore
import { withPropsAPI } from 'gg-editor';

const upperFirst = (str: string) =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { CanvasPanel, DetailPanel, EdgePanel, GroupPanel, MultiPanel, NodePanel } from 'gg-editor';

import { Card } from 'antd';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasPanel, DetailPanel, NodePanel } from 'gg-editor';

import { Card } from 'antd';
import DetailForm from './DetailForm';
import useStyles from './index.style';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { Item, ItemPanel } from 'gg-editor';

import { Card } from 'antd';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { Item, ItemPanel } from 'gg-editor';

import { Card } from 'antd';
import useStyles from './index.style';

Expand Down
1 change: 1 addition & 0 deletions EditorKoni/src/components/EditorMinimap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Card } from 'antd';
// @ts-ignore
import { Minimap } from 'gg-editor';

const EditorMinimap = () => (
Expand Down
1 change: 1 addition & 0 deletions EditorKoni/src/components/EditorToolbar/FlowToolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Divider } from 'antd';
// @ts-ignore
import { Toolbar } from 'gg-editor';
import ToolbarButton from './ToolbarButton';
import useStyles from './index.style';
Expand Down
1 change: 1 addition & 0 deletions EditorKoni/src/components/EditorToolbar/MindToolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Divider } from 'antd';
// @ts-ignore
import { Toolbar } from 'gg-editor';
import ToolbarButton from './ToolbarButton';
import useStyles from './index.style';
Expand Down
1 change: 1 addition & 0 deletions EditorKoni/src/components/EditorToolbar/ToolbarButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { Command } from 'gg-editor';
import React from 'react';
import { Tooltip } from 'antd';
Expand Down
1 change: 1 addition & 0 deletions EditorKoni/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Col, Row } from 'antd';
// @ts-ignore
import GGEditor, { Koni } from 'gg-editor';
import { PageContainer } from '@ant-design/pro-components';
import EditorMinimap from './components/EditorMinimap';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasMenu, ContextMenu, EdgeMenu, GroupMenu, MultiMenu, NodeMenu } from 'gg-editor';

import MenuItem from './MenuItem';
import useStyles from './index.style';

Expand Down
1 change: 1 addition & 0 deletions EditorMind/src/components/EditorContextMenu/MenuItem.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { Command } from 'gg-editor';
import React from 'react';
import IconFont from '../../common/IconFont';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasMenu, ContextMenu, NodeMenu } from 'gg-editor';

import MenuItem from './MenuItem';
import useStyles from './index.style';

Expand Down
1 change: 1 addition & 0 deletions EditorMind/src/components/EditorDetailPanel/DetailForm.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import { Card, Input, Select, Form } from 'antd';
// @ts-ignore
import { withPropsAPI } from 'gg-editor';

const upperFirst = (str: string) =>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasPanel, DetailPanel, EdgePanel, GroupPanel, MultiPanel, NodePanel } from 'gg-editor';

import { Card } from 'antd';
import DetailForm from './DetailForm';
import useStyles from './index.style';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { CanvasPanel, DetailPanel, NodePanel } from 'gg-editor';

import { Card } from 'antd';
import DetailForm from './DetailForm';
import useStyles from './index.style';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { Item, ItemPanel } from 'gg-editor';

import { Card } from 'antd';
import useStyles from './index.style';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @ts-ignore
import { Item, ItemPanel } from 'gg-editor';

import { Card } from 'antd';
import useStyles from './index.style';

Expand Down
1 change: 1 addition & 0 deletions EditorMind/src/components/EditorMinimap/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Card } from 'antd';
// @ts-ignore
import { Minimap } from 'gg-editor';

const EditorMinimap = () => (
Expand Down
1 change: 1 addition & 0 deletions EditorMind/src/components/EditorToolbar/FlowToolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Divider } from 'antd';
// @ts-ignore
import { Toolbar } from 'gg-editor';
import ToolbarButton from './ToolbarButton';
import useStyles from './index.style';
Expand Down
1 change: 1 addition & 0 deletions EditorMind/src/components/EditorToolbar/MindToolbar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Divider } from 'antd';
// @ts-ignore
import { Toolbar } from 'gg-editor';
import ToolbarButton from './ToolbarButton';
import useStyles from './index.style';
Expand Down
1 change: 1 addition & 0 deletions EditorMind/src/components/EditorToolbar/ToolbarButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import { Command } from 'gg-editor';
import React from 'react';
import { Tooltip } from 'antd';
Expand Down
1 change: 1 addition & 0 deletions EditorMind/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Col, Row } from 'antd';
// @ts-ignore
import GGEditor, { Mind } from 'gg-editor';

import { PageContainer } from '@ant-design/pro-components';
Expand Down
2 changes: 1 addition & 1 deletion Exception403/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link } from 'umi';
import { Link } from '@umijs/max';
import { Result, Button } from 'antd';

export default () => (
Expand Down
2 changes: 1 addition & 1 deletion Exception404/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link } from 'umi';
import { Link } from '@umijs/max';
import { Result, Button } from 'antd';

export default () => (
Expand Down
2 changes: 1 addition & 1 deletion Exception500/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link } from 'umi';
import { Link } from '@umijs/max';
import { Result, Button } from 'antd';

export default () => (
Expand Down
2 changes: 1 addition & 1 deletion FormAdvancedForm/src/service.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { request } from 'umi';
import { request } from '@umijs/max';

export async function fakeSubmitForm(params: any) {
return request('/api/advancedForm', {
Expand Down
Loading

0 comments on commit 9cda25a

Please sign in to comment.