- 将所有图片路径从绝对路径改为使用 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>
28 lines
802 B
JavaScript
28 lines
802 B
JavaScript
var _setup = require('./_setup.js');
|
|
|
|
// If Underscore is called as a function, it returns a wrapped object that can
|
|
// be used OO-style. This wrapper holds altered versions of all functions added
|
|
// through `_.mixin`. Wrapped objects may be chained.
|
|
function _(obj) {
|
|
if (obj instanceof _) return obj;
|
|
if (!(this instanceof _)) return new _(obj);
|
|
this._wrapped = obj;
|
|
}
|
|
|
|
_.VERSION = _setup.VERSION;
|
|
|
|
// Extracts the result from a wrapped and chained object.
|
|
_.prototype.value = function() {
|
|
return this._wrapped;
|
|
};
|
|
|
|
// Provide unwrapping proxies for some methods used in engine operations
|
|
// such as arithmetic and JSON stringification.
|
|
_.prototype.valueOf = _.prototype.toJSON = _.prototype.value;
|
|
|
|
_.prototype.toString = function() {
|
|
return String(this._wrapped);
|
|
};
|
|
|
|
module.exports = _;
|