Browse Source
chore: fix biome check formatting issues (#11689)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
pull/11690/head
afc163
6 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with
26 additions and
13 deletions
-
cloudflare-worker/src/data/user.ts
-
cloudflare-worker/src/routes/settings.ts
-
src/pages/account/center/_mock.ts
-
src/pages/account/settings/_mock.ts
-
src/pages/dashboard/monitor/components/Map/index.tsx
-
src/pages/list/basic-list/_mock.ts
-
src/pages/list/card-list/_mock.ts
-
src/pages/list/search/projects/index.tsx
|
|
|
@ -14,4 +14,4 @@ export const userList = [ |
|
|
|
}, |
|
|
|
{ key: '2', name: 'Jim Green', age: 42, address: 'London No. 1 Lake Park' }, |
|
|
|
{ key: '3', name: 'Joe Black', age: 32, address: 'Sidney No. 1 Lake Park' }, |
|
|
|
]; |
|
|
|
]; |
|
|
|
|
|
|
|
@ -10,4 +10,4 @@ app.get('/accountSettingCurrentUser', (c) => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
export default app; |
|
|
|
export default app; |
|
|
|
|
|
|
|
@ -1,5 +1,11 @@ |
|
|
|
import type { Request, Response } from 'express'; |
|
|
|
import { fakeList, defaultUser, titles, avatars, desc } from '../../../../mock/utils'; |
|
|
|
import { |
|
|
|
avatars, |
|
|
|
defaultUser, |
|
|
|
desc, |
|
|
|
fakeList, |
|
|
|
titles, |
|
|
|
} from '../../../../mock/utils'; |
|
|
|
|
|
|
|
function getProjectNotice() { |
|
|
|
return titles.slice(0, 6).map((title, i) => ({ |
|
|
|
@ -8,7 +14,14 @@ function getProjectNotice() { |
|
|
|
logo: avatars[i], |
|
|
|
description: desc[i % desc.length], |
|
|
|
updatedAt: i % 2 === 0 ? new Date() : new Date('2017-07-24'), |
|
|
|
member: ['科学搬砖组', '全组都是吴彦祖', '中二少女团', '程序员日常', '高逼格设计天团', '骗你来学计算机'][i], |
|
|
|
member: [ |
|
|
|
'科学搬砖组', |
|
|
|
'全组都是吴彦祖', |
|
|
|
'中二少女团', |
|
|
|
'程序员日常', |
|
|
|
'高逼格设计天团', |
|
|
|
'骗你来学计算机', |
|
|
|
][i], |
|
|
|
href: '', |
|
|
|
memberLink: '', |
|
|
|
})); |
|
|
|
@ -39,4 +52,4 @@ function getCurrentUser(_req: Request, res: Response) { |
|
|
|
export default { |
|
|
|
'GET /api/fake_list_Detail': getFakeList, |
|
|
|
'GET /api/currentUserDetail': getCurrentUser, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
@ -27,4 +27,4 @@ export default { |
|
|
|
'GET /api/accountSettingCurrentUser': getCurrentUse, |
|
|
|
'GET /api/geographic/province': getProvince, |
|
|
|
'GET /api/geographic/city/:province': getCity, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
@ -20,7 +20,10 @@ export default function MonitorMap() { |
|
|
|
}>({ |
|
|
|
queryKey: ['map-data'], |
|
|
|
queryFn: async () => { |
|
|
|
const [geoData, gridData] = await Promise.all([queryMapGeo(), queryMapGrid()]); |
|
|
|
const [geoData, gridData] = await Promise.all([ |
|
|
|
queryMapGeo(), |
|
|
|
queryMapGrid(), |
|
|
|
]); |
|
|
|
return { geoData, grid: gridData }; |
|
|
|
}, |
|
|
|
}); |
|
|
|
|
|
|
|
@ -54,4 +54,4 @@ function postFakeList(req: Request, res: Response) { |
|
|
|
export default { |
|
|
|
'GET /api/get_list': getFakeList, |
|
|
|
'POST /api/post_fake_list': postFakeList, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
@ -16,4 +16,4 @@ function getFakeList(req: Request, res: Response) { |
|
|
|
|
|
|
|
export default { |
|
|
|
'GET /api/card_fake_list': getFakeList, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
@ -23,10 +23,7 @@ const Projects: FC = () => { |
|
|
|
category?: (string | number)[]; |
|
|
|
author?: string; |
|
|
|
}>({}); |
|
|
|
const { |
|
|
|
data, |
|
|
|
isLoading: loading, |
|
|
|
} = useQuery({ |
|
|
|
const { data, isLoading: loading } = useQuery({ |
|
|
|
queryKey: ['search-projects', filters], |
|
|
|
queryFn: () => |
|
|
|
queryFakeList({ count: 8, ...filters }).then((res) => res.data), |
|
|
|
|