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
Next Next commit
feat: update image
xuliwenwenwen committed Jan 7, 2025
commit 1e8731a634d3fc1db31fa306415f3da84e409121
Binary file removed src/pages/regional-meetup/data/20250107-114931.jpeg
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/pages/regional-meetup/data/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ReactNode } from 'react';
import type { StaticImageData } from 'next/image';
import _4 from './20250107-114926.jpeg';
import _3 from './20250107-114931.jpeg';
import _3 from './20250107-180714.png';
import _2 from './20250107-114938.jpeg';
import _1 from './20250107-114946.jpeg';
import _0 from './20250107-115038.jpeg';

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) {