afc163
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with
40 additions and
49 deletions
-
biome.json
-
jest.config.ts
-
src/pages/account/settings/components/binding.tsx
-
src/pages/account/settings/components/notification.tsx
-
src/pages/profile/advanced/index.tsx
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
{ |
|
|
|
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json", |
|
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json", |
|
|
|
"files": { |
|
|
|
"ignoreUnknown": true, |
|
|
|
"includes": [ |
|
|
|
|
|
|
|
@ -1,7 +1,6 @@ |
|
|
|
import type { Config } from '@jest/types'; |
|
|
|
import { configUmiAlias, createConfig } from '@umijs/max/test'; |
|
|
|
|
|
|
|
export default async (): Promise<Config.InitialOptions> => { |
|
|
|
export default async (): Promise<any> => { |
|
|
|
const config = await configUmiAlias({ |
|
|
|
...createConfig({ |
|
|
|
target: 'browser', |
|
|
|
|
|
|
|
@ -4,7 +4,7 @@ import { |
|
|
|
TaobaoOutlined, |
|
|
|
} from '@ant-design/icons'; |
|
|
|
import { List } from 'antd'; |
|
|
|
import React, { Fragment } from 'react'; |
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
const BindingView: React.FC = () => { |
|
|
|
const getData = () => [ |
|
|
|
@ -29,21 +29,19 @@ const BindingView: React.FC = () => { |
|
|
|
]; |
|
|
|
|
|
|
|
return ( |
|
|
|
<Fragment> |
|
|
|
<List |
|
|
|
itemLayout="horizontal" |
|
|
|
dataSource={getData()} |
|
|
|
renderItem={(item) => ( |
|
|
|
<List.Item actions={item.actions}> |
|
|
|
<List.Item.Meta |
|
|
|
avatar={item.avatar} |
|
|
|
title={item.title} |
|
|
|
description={item.description} |
|
|
|
/> |
|
|
|
</List.Item> |
|
|
|
)} |
|
|
|
/> |
|
|
|
</Fragment> |
|
|
|
<List |
|
|
|
itemLayout="horizontal" |
|
|
|
dataSource={getData()} |
|
|
|
renderItem={(item) => ( |
|
|
|
<List.Item actions={item.actions}> |
|
|
|
<List.Item.Meta |
|
|
|
avatar={item.avatar} |
|
|
|
title={item.title} |
|
|
|
description={item.description} |
|
|
|
/> |
|
|
|
</List.Item> |
|
|
|
)} |
|
|
|
/> |
|
|
|
); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -1,5 +1,5 @@ |
|
|
|
import { List, Switch } from 'antd'; |
|
|
|
import React, { Fragment } from 'react'; |
|
|
|
import React from 'react'; |
|
|
|
|
|
|
|
type Unpacked<T> = T extends (infer U)[] ? U : T; |
|
|
|
|
|
|
|
@ -29,17 +29,15 @@ const NotificationView: React.FC = () => { |
|
|
|
|
|
|
|
const data = getData(); |
|
|
|
return ( |
|
|
|
<Fragment> |
|
|
|
<List<Unpacked<typeof data>> |
|
|
|
itemLayout="horizontal" |
|
|
|
dataSource={data} |
|
|
|
renderItem={(item) => ( |
|
|
|
<List.Item actions={item.actions}> |
|
|
|
<List.Item.Meta title={item.title} description={item.description} /> |
|
|
|
</List.Item> |
|
|
|
)} |
|
|
|
/> |
|
|
|
</Fragment> |
|
|
|
<List<Unpacked<typeof data>> |
|
|
|
itemLayout="horizontal" |
|
|
|
dataSource={data} |
|
|
|
renderItem={(item) => ( |
|
|
|
<List.Item actions={item.actions}> |
|
|
|
<List.Item.Meta title={item.title} description={item.description} /> |
|
|
|
</List.Item> |
|
|
|
)} |
|
|
|
/> |
|
|
|
); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
@ -27,7 +27,7 @@ import { |
|
|
|
} from 'antd'; |
|
|
|
import classNames from 'classnames'; |
|
|
|
import type { FC } from 'react'; |
|
|
|
import React, { Fragment, useState } from 'react'; |
|
|
|
import React, { useState } from 'react'; |
|
|
|
import type { AdvancedProfileData } from './data.d'; |
|
|
|
import { queryAdvancedProfile } from './service'; |
|
|
|
import useStyles from './style.style'; |
|
|
|
@ -187,28 +187,24 @@ const Advanced: FC = () => { |
|
|
|
); |
|
|
|
const desc1 = ( |
|
|
|
<div className={classNames(styles.stepDescription)}> |
|
|
|
<Fragment> |
|
|
|
曲丽丽 |
|
|
|
<DingdingOutlined |
|
|
|
style={{ |
|
|
|
marginLeft: 8, |
|
|
|
}} |
|
|
|
/> |
|
|
|
</Fragment> |
|
|
|
曲丽丽 |
|
|
|
<DingdingOutlined |
|
|
|
style={{ |
|
|
|
marginLeft: 8, |
|
|
|
}} |
|
|
|
/> |
|
|
|
<div>2016-12-12 12:32</div> |
|
|
|
</div> |
|
|
|
); |
|
|
|
const desc2 = ( |
|
|
|
<div className={styles.stepDescription}> |
|
|
|
<Fragment> |
|
|
|
周毛毛 |
|
|
|
<DingdingOutlined |
|
|
|
style={{ |
|
|
|
color: '#00A0E9', |
|
|
|
marginLeft: 8, |
|
|
|
}} |
|
|
|
/> |
|
|
|
</Fragment> |
|
|
|
周毛毛 |
|
|
|
<DingdingOutlined |
|
|
|
style={{ |
|
|
|
color: '#00A0E9', |
|
|
|
marginLeft: 8, |
|
|
|
}} |
|
|
|
/> |
|
|
|
<div> |
|
|
|
<a href="">催一下</a> |
|
|
|
</div> |
|
|
|
|