- 将所有图片路径从绝对路径改为使用 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>
15 lines
738 B
JavaScript
15 lines
738 B
JavaScript
export var fromCodePoint = String.fromCodePoint ||
|
|
function (astralCodePoint) {
|
|
return String.fromCharCode(Math.floor((astralCodePoint - 0x10000) / 0x400) + 0xd800, ((astralCodePoint - 0x10000) % 0x400) + 0xdc00);
|
|
};
|
|
// @ts-expect-error - String.prototype.codePointAt might not exist in older node versions
|
|
export var getCodePoint = String.prototype.codePointAt
|
|
? function (input, position) {
|
|
return input.codePointAt(position);
|
|
}
|
|
: function (input, position) {
|
|
return (input.charCodeAt(position) - 0xd800) * 0x400 + input.charCodeAt(position + 1) - 0xdc00 + 0x10000;
|
|
};
|
|
export var highSurrogateFrom = 0xd800;
|
|
export var highSurrogateTo = 0xdbff;
|
|
//# sourceMappingURL=surrogate-pairs.js.map
|