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

Configurable featured performance settings #13874

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Prev Previous commit
Merge branch 'develop' into choose-featured-performance-settings
Sayamame-beans authored Jul 17, 2024
commit ef5ef29a04f64401a84a71154bfaccb0e4496c63
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -10,7 +10,6 @@
- Fix: 配信停止したインスタンス一覧が見れなくなる問題を修正
- Fix: Dockerコンテナの立ち上げ時に`pnpm`のインストールで固まることがある問題
- Fix: デフォルトテーマに無効なテーマコードを入力するとUIが使用できなくなる問題を修正
- Enhance: Allow negative delay for MFM animation elements (`tada`, `jelly`, `twitch`, `shake`, `spin`, `jump`, `bounce`, `rainbow`)
- Enhance: featured(見つける・トレンド) のランキング更新比率を調整できるように

### Client

Unchanged files with check annotations Beta

import tsParser from '@typescript-eslint/parser';
import sharedConfig from '../shared/eslint.config.js';
export default [

Check warning on line 4 in packages/misskey-js/eslint.config.js

GitHub Actions / lint (misskey-js)

Prefer named exports
...sharedConfig,
{
ignores: [
};
export function parse(acct: string): Acct {
if (acct.startsWith('@')) acct = acct.substring(1);

Check warning on line 7 in packages/misskey-js/src/acct.ts

GitHub Actions / lint (misskey-js)

Assignment to function parameter 'acct'
const split = acct.split('@', 2);
return { username: split[0], host: split[1] || null };
}
code: string;
message: string;
kind: 'client' | 'server';
info: Record<string, any>;

Check warning on line 17 in packages/misskey-js/src/api.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
};
export function isAPIError(reason: Record<PropertyKey, unknown>): reason is APIError {
headers: { [key in string]: string }
}) => Promise<{
status: number;
json(): Promise<any>;

Check warning on line 32 in packages/misskey-js/src/api.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
}>;
export class APIClient {
this.fetch = opts.fetch ?? ((...args) => fetch(...args));
}
private assertIsRecord<T>(obj: T): obj is T & Record<string, any> {

Check warning on line 52 in packages/misskey-js/src/api.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
return obj !== null && typeof obj === 'object' && !Array.isArray(obj);
}
type IsCaseMatched<E extends keyof Endpoints, P extends Endpoints[E]['req'], C extends number> =
Endpoints[E]['res'] extends SwitchCase
? IsNeverType<StrictExtract<Endpoints[E]['res']['$switch']['$cases'][C], [P, any]>> extends false ? true : false

Check warning on line 31 in packages/misskey-js/src/api.types.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
: false
type GetCaseResult<E extends keyof Endpoints, P extends Endpoints[E]['req'], C extends number> =
Endpoints[E]['res'] extends SwitchCase
? StrictExtract<Endpoints[E]['res']['$switch']['$cases'][C], [P, any]>[1]

Check warning on line 36 in packages/misskey-js/src/api.types.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
: never
export type SwitchCaseResponseType<E extends keyof Endpoints, P extends Endpoints[E]['req']> = Endpoints[E]['res'] extends SwitchCase
export type ModerationLogPayloads = {
updateServerSettings: {
before: any | null;

Check warning on line 140 in packages/misskey-js/src/consts.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
after: any | null;

Check warning on line 141 in packages/misskey-js/src/consts.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
};
suspend: {
userId: string;
};
addCustomEmoji: {
emojiId: string;
emoji: any;

Check warning on line 162 in packages/misskey-js/src/consts.ts

GitHub Actions / lint (misskey-js)

Unexpected any. Specify a different type
};
updateCustomEmoji: {
emojiId: string;
You are viewing a condensed version of this merge commit. You can view the full changes here.