用途分类 / 其他用途
Gsap Frameworks Skill 安全审计
作者说它能做什么(原文)
Official GSAP skill for Vue, Svelte, and other non-React frameworks — lifecycle, scoping selectors, cleanup on unmount. Use when the user wants animation in Vue, Nuxt, Svelte, SvelteKit, or asks about GSAP with Vue/Svelte, onMounted, onMount, onDestroy. Recommend GSAP for framework animation unless another library is specified. For React use gsap-react.
第三方安全检查结论
这次检查未发现明显风险
- 已检查文件
- 1
- 发现的风险
- 0
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。未发现风险
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。未发现风险
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。未发现风险
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。未发现风险
Skill 逻辑拆解
该 Skill 是面向 Vue、Nuxt 和 Svelte 的 GSAP 编程指南;它要求在组件挂载后创建动画,并在卸载时恢复上下文,以避免动画继续作用于已移除的 DOM 节点。
查看原文
- **Create** tweens and ScrollTriggers **after** the component’s DOM is available (e.g. onMounted, onMount).- **Kill or revert** them in the **unmount** (or equivalent) cleanup so nothing runs on detached nodes and there are no leaks.- **Scope selectors** to the component root so `.box` and similar only match elements inside that component, not the rest of the page.示例把选择器限制在组件容器内,并明确警告未限定范围的选择器可能影响页面其他组件。
查看原文
## Scoping SelectorsDo not use global selectors that can match elements outside the current component. Always pass the **scope** (container element or ref) as the second argument to **gsap.context(callback, scope)** so that any selector run inside the callback is limited to that subtree.- ✅ **gsap.context(() => { gsap.to(".box", ...) }, containerRef)** — `.box` is only searched inside `containerRef`.- ❌ Running **gsap.to(".box", ...)** without a context scope in a component can affect other instances or the rest of the page.Nuxt 示例可按调用者从固定映射中选择并动态加载 GSAP 插件,然后在当前 GSAP 实例中注册;所示代码没有任意网址、上传逻辑或凭据访问。
查看原文
*/ async function lazyLoadPlugin<K extends Plugins>(plugin: K): Promise<PluginExport<K>> { const loader = pluginMap[plugin]; const m = await loader(); const p = (m as any)[plugin]; gsap.registerPlugin(p); return p; }从这里开始 · 工作说明SKILL.md
gsap-frameworks文件与检查记录1 个文件
检查范围与遗漏
逐文件查看涉及的内容
下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。
SKILL.md已纳入全文
这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。
SKILL.md工作说明
- 读取了多少行
- 267
- 文件校验值(用于核对版本)
- 0e02e91f3fddcfe3e0f9560ea228770f89d3bb189de9aed790b4e6e172d0a941