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
parent
commit
788fcf6f03
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      cloudflare-worker/src/data/user.ts
  2. 2
      cloudflare-worker/src/routes/settings.ts
  3. 19
      src/pages/account/center/_mock.ts
  4. 2
      src/pages/account/settings/_mock.ts
  5. 5
      src/pages/dashboard/monitor/components/Map/index.tsx
  6. 2
      src/pages/list/basic-list/_mock.ts
  7. 2
      src/pages/list/card-list/_mock.ts
  8. 5
      src/pages/list/search/projects/index.tsx

2
cloudflare-worker/src/data/user.ts

@ -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' },
];
];

2
cloudflare-worker/src/routes/settings.ts

@ -10,4 +10,4 @@ app.get('/accountSettingCurrentUser', (c) => {
});
});
export default app;
export default app;

19
src/pages/account/center/_mock.ts

@ -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,
};
};

2
src/pages/account/settings/_mock.ts

@ -27,4 +27,4 @@ export default {
'GET /api/accountSettingCurrentUser': getCurrentUse,
'GET /api/geographic/province': getProvince,
'GET /api/geographic/city/:province': getCity,
};
};

5
src/pages/dashboard/monitor/components/Map/index.tsx

@ -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 };
},
});

2
src/pages/list/basic-list/_mock.ts

@ -54,4 +54,4 @@ function postFakeList(req: Request, res: Response) {
export default {
'GET /api/get_list': getFakeList,
'POST /api/post_fake_list': postFakeList,
};
};

2
src/pages/list/card-list/_mock.ts

@ -16,4 +16,4 @@ function getFakeList(req: Request, res: Response) {
export default {
'GET /api/card_fake_list': getFakeList,
};
};

5
src/pages/list/search/projects/index.tsx

@ -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),

Loading…
Cancel
Save