Skip to content

Commit f980679

Browse files
committed
[fix] some detail bugs
1 parent fcc9523 commit f980679

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

models/Base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { HTTPClient } from 'koajax';
33
export const isServer = () => typeof window === 'undefined';
44

55
export const VercelHost = process.env.VERCEL_URL,
6-
GithubToken = process.env.NEXT_PUBLIC_GITHUB_TOKEN,
6+
GithubToken = process.env.GITHUB_TOKEN,
77
LarkBaseId = process.env.NEXT_PUBLIC_LARK_BASE!;
88

99
const API_Host = isServer()

pages/_document.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ export default function Document() {
1111

1212
<link
1313
rel="stylesheet"
14-
href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css"
14+
href="https://npm.onmicrosoft.cn/[email protected]/dist/css/bootstrap.min.css"
1515
/>
1616
<link
1717
rel="stylesheet"
18-
href="https://unpkg.com/[email protected]/font/bootstrap-icons.css"
18+
href="https://npm.onmicrosoft.cn/[email protected]/font/bootstrap-icons.css"
1919
/>
2020
</Head>
2121

pages/api/Lark/bitable/v1/[...slug].ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { proxyLark } from '../../core';
55

66
export default proxyLark((path, data) => {
77
if (path.split('?')[0].endsWith('/records')) {
8-
const { items } = (data as TableRecordList<DataObject>).data;
8+
const { items = [] } = (data as TableRecordList<DataObject>).data;
99

1010
for (const { fields } of items)
1111
for (const key of Object.keys(fields))

pages/member/[nickname].tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,19 @@ export const getServerSideProps = compose<{ nickname: string }>(
4040

4141
const MemberDetailPage: FC<MemberDetailPageProps> = observer(
4242
({ member, leaderProjects, memberProjects }) => (
43-
<Container className="mt-5">
43+
<Container className="mt-5 pb-4">
4444
<PageHead title={member.nickname as string} />
4545

4646
<Row>
47-
<Col xs={12} sm={4}>
47+
<Col xs={12} md={4}>
4848
<MemberCard
4949
className="sticky-top"
5050
style={{ top: '6.5rem' }}
5151
{...member}
5252
/>
5353
</Col>
54-
<Col xs={12} sm={8}>
55-
<Tabs variant="pills" justify className="mt-4 mt-sm-0">
54+
<Col xs={12} md={8}>
55+
<Tabs variant="pills" justify className="mt-4 mt-md-0">
5656
{Object.entries({
5757
[t('projects_as_leader')]: leaderProjects,
5858
[t('projects_as_member')]: memberProjects,

0 commit comments

Comments
 (0)