Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update regional meetup #527

Merged
merged 5 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
feat: update header component
xuliwenwenwen committed Jan 8, 2025
commit d1fe81bd7135d285c73b1760225049db9fcb4ed9
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@
"devDependencies": {
"@babel/eslint-parser": "~7.17.0",
"@pingcap-inc/tidb-community-editor": "0.6.7",
"@pingcap-inc/tidb-community-site-components": "1.8.24",
"@pingcap-inc/tidb-community-site-components": "1.8.25",
"@pingcap-inc/tidb-community-ui": "^1.3.3",
"@sentry/webpack-plugin": "~1.18.8",
"@svgr/webpack": "~6.2.1",

Unchanged files with check annotations Beta

}
};
const parseJsonString = <T>(params: any): T => {

Check warning on line 143 in src/api/asktug/index.ts

GitHub Actions / verify / verify

Unexpected any. Specify a different type
if (typeof params === 'string') params = tryJson(params);
return params;
};
}
async function getAllBadges(ssrCtx?: GetServerSidePropsContext): Promise<Map<IRawBadges['id'], IRawBadges>> {
const result: { badges: any[] } = await asktugClient.get(

Check warning on line 92 in src/api/asktug/profile.ts

GitHub Actions / verify / verify

Unexpected any. Specify a different type
`${askTugApiDomain}/badges.json`,
withAccountsCookies(
{
): Promise<IRawBadges[]> {
const { username } = input;
const badgesMap = await getAllBadges();
const result: { badges: any[] } = await asktugClient.get(

Check warning on line 112 in src/api/asktug/profile.ts

GitHub Actions / verify / verify

Unexpected any. Specify a different type
`${askTugApiDomain}/user-badges/${encodeURIComponent(username)}.json`,
withAccountsCookies(
{
} else {
const url = `${askTugApiDomain}/user_actions.json`;
const offset = (page - 1) * per_page;
const params: any = { username, offset };

Check warning on line 369 in src/api/asktug/profile.ts

GitHub Actions / verify / verify

Unexpected any. Specify a different type
if (solved === ESolved.solved) {
params.filter = EUserActionFilter.SOLVED;
} else if (solved === ESolved.unsolved) {
}
export const dispatchApiError: (detail: AxiosResponse) => void;
export const useApiErrorListener: (listener: ApiErrorListener, ...rest: any[]) => void;

Check warning on line 8 in src/api/clients/events/index.d.ts

GitHub Actions / verify / verify

Unexpected any. Specify a different type
export interface AxiosRequestConfig {
isDispatchApiError?(res: AxiosResponse): boolean;
isReturnErrorResponse?: boolean;
fallbackResponse?: any;

Check warning on line 10 in src/api/clients/index.ts

GitHub Actions / verify / verify

Unexpected any. Specify a different type
}
}
import * as api from './api';
import * as R from 'ramda';
const fetcher: Fetcher<any> = async (key: string, ...params: any[]) => {

Check warning on line 5 in src/api/fetcher.ts

GitHub Actions / verify / verify

Unexpected any. Specify a different type

Check warning on line 5 in src/api/fetcher.ts

GitHub Actions / verify / verify

Unexpected any. Specify a different type
if (process.env.NEXT_PUBLIC_RUNTIME_ENV !== 'production') {
console.debug('[api.v2] fetch', key, ...params);

Check warning on line 7 in src/api/fetcher.ts

GitHub Actions / verify / verify

Unexpected console statement
}
try {
const result = R.path(key.split('.'), api)(...params);
if (process.env.NEXT_PUBLIC_RUNTIME_ENV !== 'production') {
console.debug('[api.v2] fetch', key, ...params, ' => ', await result);

Check warning on line 13 in src/api/fetcher.ts

GitHub Actions / verify / verify

Unexpected console statement
}
return result;
} catch (e) {