- 将所有图片路径从绝对路径改为使用 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>
1 line
4.1 KiB
JSON
1 line
4.1 KiB
JSON
{"ast":null,"code":"import { memo } from 'motion-utils';\nimport { isHTMLElement } from '../../../utils/is-html-element.mjs';\n\n/**\n * A list of values that can be hardware-accelerated.\n */\nconst acceleratedValues = new Set([\"opacity\", \"clipPath\", \"filter\", \"transform\"\n// TODO: Could be re-enabled now we have support for linear() easing\n// \"background-color\"\n]);\nconst supportsWaapi = /*@__PURE__*/memo(() => Object.hasOwnProperty.call(Element.prototype, \"animate\"));\nfunction supportsBrowserAnimation(options) {\n var _motionValue$owner;\n const {\n motionValue,\n name,\n repeatDelay,\n repeatType,\n damping,\n type\n } = options;\n if (!isHTMLElement(motionValue === null || motionValue === void 0 || (_motionValue$owner = motionValue.owner) === null || _motionValue$owner === void 0 ? void 0 : _motionValue$owner.current)) {\n return false;\n }\n const {\n onUpdate,\n transformTemplate\n } = motionValue.owner.getProps();\n return supportsWaapi() && name && acceleratedValues.has(name) && (name !== \"transform\" || !transformTemplate) &&\n /**\n * If we're outputting values to onUpdate then we can't use WAAPI as there's\n * no way to read the value from WAAPI every frame.\n */\n !onUpdate && !repeatDelay && repeatType !== \"mirror\" && damping !== 0 && type !== \"inertia\";\n}\nexport { supportsBrowserAnimation };","map":{"version":3,"names":["memo","isHTMLElement","acceleratedValues","Set","supportsWaapi","Object","hasOwnProperty","call","Element","prototype","supportsBrowserAnimation","options","_motionValue$owner","motionValue","name","repeatDelay","repeatType","damping","type","owner","current","onUpdate","transformTemplate","getProps","has"],"sources":["/Users/apple/Documents/cursor/Web课件/AI课/education_web_多Agent协作系统/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs"],"sourcesContent":["import { memo } from 'motion-utils';\nimport { isHTMLElement } from '../../../utils/is-html-element.mjs';\n\n/**\n * A list of values that can be hardware-accelerated.\n */\nconst acceleratedValues = new Set([\n \"opacity\",\n \"clipPath\",\n \"filter\",\n \"transform\",\n // TODO: Could be re-enabled now we have support for linear() easing\n // \"background-color\"\n]);\nconst supportsWaapi = /*@__PURE__*/ memo(() => Object.hasOwnProperty.call(Element.prototype, \"animate\"));\nfunction supportsBrowserAnimation(options) {\n const { motionValue, name, repeatDelay, repeatType, damping, type } = options;\n if (!isHTMLElement(motionValue?.owner?.current)) {\n return false;\n }\n const { onUpdate, transformTemplate } = motionValue.owner.getProps();\n return (supportsWaapi() &&\n name &&\n acceleratedValues.has(name) &&\n (name !== \"transform\" || !transformTemplate) &&\n /**\n * If we're outputting values to onUpdate then we can't use WAAPI as there's\n * no way to read the value from WAAPI every frame.\n */\n !onUpdate &&\n !repeatDelay &&\n repeatType !== \"mirror\" &&\n damping !== 0 &&\n type !== \"inertia\");\n}\n\nexport { supportsBrowserAnimation };\n"],"mappings":"AAAA,SAASA,IAAI,QAAQ,cAAc;AACnC,SAASC,aAAa,QAAQ,oCAAoC;;AAElE;AACA;AACA;AACA,MAAMC,iBAAiB,GAAG,IAAIC,GAAG,CAAC,CAC9B,SAAS,EACT,UAAU,EACV,QAAQ,EACR;AACA;AACA;AAAA,CACH,CAAC;AACF,MAAMC,aAAa,GAAG,aAAcJ,IAAI,CAAC,MAAMK,MAAM,CAACC,cAAc,CAACC,IAAI,CAACC,OAAO,CAACC,SAAS,EAAE,SAAS,CAAC,CAAC;AACxG,SAASC,wBAAwBA,CAACC,OAAO,EAAE;EAAA,IAAAC,kBAAA;EACvC,MAAM;IAAEC,WAAW;IAAEC,IAAI;IAAEC,WAAW;IAAEC,UAAU;IAAEC,OAAO;IAAEC;EAAK,CAAC,GAAGP,OAAO;EAC7E,IAAI,CAACV,aAAa,CAACY,WAAW,aAAXA,WAAW,gBAAAD,kBAAA,GAAXC,WAAW,CAAEM,KAAK,cAAAP,kBAAA,uBAAlBA,kBAAA,CAAoBQ,OAAO,CAAC,EAAE;IAC7C,OAAO,KAAK;EAChB;EACA,MAAM;IAAEC,QAAQ;IAAEC;EAAkB,CAAC,GAAGT,WAAW,CAACM,KAAK,CAACI,QAAQ,CAAC,CAAC;EACpE,OAAQnB,aAAa,CAAC,CAAC,IACnBU,IAAI,IACJZ,iBAAiB,CAACsB,GAAG,CAACV,IAAI,CAAC,KAC1BA,IAAI,KAAK,WAAW,IAAI,CAACQ,iBAAiB,CAAC;EAC5C;AACR;AACA;AACA;EACQ,CAACD,QAAQ,IACT,CAACN,WAAW,IACZC,UAAU,KAAK,QAAQ,IACvBC,OAAO,KAAK,CAAC,IACbC,IAAI,KAAK,SAAS;AAC1B;AAEA,SAASR,wBAAwB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |