Files
KQL ce6aa207e9 fix: 修复图片路径以适配GitHub Pages base path
- 将所有图片路径从绝对路径改为使用 process.env.PUBLIC_URL
- 修复 HomePage.tsx 中所有图片引用
- 修复 CoursePage.tsx 中所有图片引用
- 确保图片在 GitHub Pages 上正确加载

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-04 09:24:45 +08:00

49 lines
1.3 KiB
TypeScript

import type { ModuleName, Target, TargetVersion } from "./shared";
type StringOrRegExp = string | RegExp;
type Modules = StringOrRegExp | readonly StringOrRegExp[];
type BrowserslistQuery = string | ReadonlyArray<string>;
type Environments = {
[target in Target]?: string | number;
};
type Targets = Environments & {
browsers?: Environments | BrowserslistQuery,
esmodules?: boolean | 'intersect',
};
type CompatOptions = {
/** entry / module / namespace / an array of them, by default - all `core-js` modules */
modules?: Modules,
/** a blacklist, entry / module / namespace / an array of them, by default - empty list */
exclude?: Modules,
/** optional browserslist or core-js-compat format query */
targets?: Targets | BrowserslistQuery,
/** used `core-js` version, by default the latest */
version?: string,
/** inverse of the result, shows modules that are NOT required for the target environment */
inverse?: boolean,
/**
* @deprecated use `modules` instead
*/
filter?: Modules
};
type CompatOutput = {
/** array of required modules */
list: ModuleName[],
/** object with targets for each module */
targets: {
[module: ModuleName]: {
[target in Target]?: TargetVersion
}
}
}
declare function compat(options?: CompatOptions): CompatOutput;
export = compat;