- 将所有图片路径从绝对路径改为使用 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
3.4 KiB
JSON
1 line
3.4 KiB
JSON
{"ast":null,"code":"import { transformProps } from 'motion-dom';\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10\n};\nconst criticallyDampedSpring = target => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3\n};\nconst getDefaultTransition = (valueKey, _ref) => {\n let {\n keyframes\n } = _ref;\n if (keyframes.length > 2) {\n return keyframesTransition;\n } else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\") ? criticallyDampedSpring(keyframes[1]) : underDampedSpring;\n }\n return ease;\n};\nexport { getDefaultTransition };","map":{"version":3,"names":["transformProps","underDampedSpring","type","stiffness","damping","restSpeed","criticallyDampedSpring","target","Math","sqrt","keyframesTransition","duration","ease","getDefaultTransition","valueKey","_ref","keyframes","length","has","startsWith"],"sources":["/Users/apple/Documents/cursor/Web课件/AI课/education_web_多Agent协作系统/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs"],"sourcesContent":["import { transformProps } from 'motion-dom';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n"],"mappings":"AAAA,SAASA,cAAc,QAAQ,YAAY;AAE3C,MAAMC,iBAAiB,GAAG;EACtBC,IAAI,EAAE,QAAQ;EACdC,SAAS,EAAE,GAAG;EACdC,OAAO,EAAE,EAAE;EACXC,SAAS,EAAE;AACf,CAAC;AACD,MAAMC,sBAAsB,GAAIC,MAAM,KAAM;EACxCL,IAAI,EAAE,QAAQ;EACdC,SAAS,EAAE,GAAG;EACdC,OAAO,EAAEG,MAAM,KAAK,CAAC,GAAG,CAAC,GAAGC,IAAI,CAACC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;EAC/CJ,SAAS,EAAE;AACf,CAAC,CAAC;AACF,MAAMK,mBAAmB,GAAG;EACxBR,IAAI,EAAE,WAAW;EACjBS,QAAQ,EAAE;AACd,CAAC;AACD;AACA;AACA;AACA;AACA,MAAMC,IAAI,GAAG;EACTV,IAAI,EAAE,WAAW;EACjBU,IAAI,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;EAC1BD,QAAQ,EAAE;AACd,CAAC;AACD,MAAME,oBAAoB,GAAGA,CAACC,QAAQ,EAAAC,IAAA,KAAoB;EAAA,IAAlB;IAAEC;EAAU,CAAC,GAAAD,IAAA;EACjD,IAAIC,SAAS,CAACC,MAAM,GAAG,CAAC,EAAE;IACtB,OAAOP,mBAAmB;EAC9B,CAAC,MACI,IAAIV,cAAc,CAACkB,GAAG,CAACJ,QAAQ,CAAC,EAAE;IACnC,OAAOA,QAAQ,CAACK,UAAU,CAAC,OAAO,CAAC,GAC7Bb,sBAAsB,CAACU,SAAS,CAAC,CAAC,CAAC,CAAC,GACpCf,iBAAiB;EAC3B;EACA,OAAOW,IAAI;AACf,CAAC;AAED,SAASC,oBAAoB","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |