Skip to content

Commit

Permalink
[fix] some detail bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
TechQuery committed Dec 16, 2023
1 parent fcc9523 commit f980679
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion models/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HTTPClient } from 'koajax';
export const isServer = () => typeof window === 'undefined';

export const VercelHost = process.env.VERCEL_URL,
GithubToken = process.env.NEXT_PUBLIC_GITHUB_TOKEN,
GithubToken = process.env.GITHUB_TOKEN,
LarkBaseId = process.env.NEXT_PUBLIC_LARK_BASE!;

const API_Host = isServer()
Expand Down
4 changes: 2 additions & 2 deletions pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export default function Document() {

<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css"
href="https://npm.onmicrosoft.cn/[email protected]/dist/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/font/bootstrap-icons.css"
href="https://npm.onmicrosoft.cn/[email protected]/font/bootstrap-icons.css"
/>
</Head>

Expand Down
2 changes: 1 addition & 1 deletion pages/api/Lark/bitable/v1/[...slug].ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { proxyLark } from '../../core';

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

for (const { fields } of items)
for (const key of Object.keys(fields))
Expand Down
8 changes: 4 additions & 4 deletions pages/member/[nickname].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ export const getServerSideProps = compose<{ nickname: string }>(

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

<Row>
<Col xs={12} sm={4}>
<Col xs={12} md={4}>
<MemberCard
className="sticky-top"
style={{ top: '6.5rem' }}
{...member}
/>
</Col>
<Col xs={12} sm={8}>
<Tabs variant="pills" justify className="mt-4 mt-sm-0">
<Col xs={12} md={8}>
<Tabs variant="pills" justify className="mt-4 mt-md-0">
{Object.entries({
[t('projects_as_leader')]: leaderProjects,
[t('projects_as_member')]: memberProjects,
Expand Down

1 comment on commit f980679

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for idea2app ready!

✅ Preview
https://idea2app-66zb71gbl-techquery.vercel.app

Built with commit f980679.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.