mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-12-05 23:39:28 +08:00
feat(market): 准入 10 项技能,补齐 AI 日报与高德完整安装包 (#350)
- 准入 10 项 installable 技能:agent-reach、dingtalk-api、follow-builders、humanizer-zh、karpathy-guidelines、marketingskills、netease-skills、wecom-cli(原 pin 不变),以及完整 MIT 本地版 ai-news-radar(LearnPrompt/ai-news-radar@689395109cc962a27c369bdd6fa50d1e090eb319)和 ClawHub 1.1.1 完整 ZIP 的 amap-jsapi-skill(sha256 9468743ee18dbe1704e8a98f47f6628d6a4e6acec30a05f0b8f59a07603d011f)。 - 瑞幸、MiniMax 图片/语音、LumaRescue、美团跑腿、Ian 小黑、女娲 继续 listing-only。 - 高德许可按 SKILL.md 的 MIT 声明保守记录,skill-card/ClawHub 写 MIT-0 的差异已在 ADMISSION.md 披露。 - validate、translate 通过;CodeQL 对上游原样 update_news.py 的 5 条告警经 mashagua 确认忽略。
This commit is contained in:
1 parent
8006ad8518
commit
91563b4695
62 files changed
+23030
-98
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,63 @@
|
||||
(function () {
|
||||
if (!window.gsap) return;
|
||||
|
||||
const mm = gsap.matchMedia();
|
||||
|
||||
mm.add("(prefers-reduced-motion: no-preference)", function () {
|
||||
gsap.defaults({ duration: 0.55, ease: "power3.out" });
|
||||
|
||||
// Stats and section tabs are data-driven. Wait until app.js has rendered
|
||||
// them so GSAP never tries to animate missing targets on first load.
|
||||
document.addEventListener("aiRadar:ready", function () {
|
||||
const tl = gsap.timeline();
|
||||
const addFrom = function (selector, vars, position) {
|
||||
if (document.querySelector(selector)) tl.from(selector, vars, position);
|
||||
};
|
||||
// Keep the identity header stationary across view switches. The update
|
||||
// time and view control live inside `.hero-headline`, so animating that
|
||||
// container makes the control visibly jump after navigation.
|
||||
addFrom(".stat", { autoAlpha: 0, y: 14, scale: 0.98, stagger: 0.06, duration: 0.45 });
|
||||
addFrom(".section-tab", { autoAlpha: 0, y: 10, stagger: 0.045, duration: 0.4 }, "-=0.2");
|
||||
addFrom(".section-summary", { autoAlpha: 0, y: 8, duration: 0.35 }, "-=0.25");
|
||||
addFrom(".primary-controls", { autoAlpha: 0, y: 8, duration: 0.4 }, "-=0.15");
|
||||
addFrom(".advanced-panel", { autoAlpha: 0, y: 8, duration: 0.4 }, "-=0.3");
|
||||
}, { once: true });
|
||||
|
||||
// Top stories render after data loads; keep legacy selectors for old data views.
|
||||
document.addEventListener("aiRadar:briefRendered", function () {
|
||||
const brief = document.querySelector(".bole-picks-wrap");
|
||||
const cards = Array.from(document.querySelectorAll(".top-story-card, .story-row, .bole-row")).slice(0, 24);
|
||||
if (brief) {
|
||||
gsap.fromTo(brief, { y: 12 }, { y: 0, duration: 0.35, clearProps: "transform" });
|
||||
}
|
||||
if (!cards.length) return;
|
||||
gsap.killTweensOf(cards);
|
||||
gsap.set(cards, { clearProps: "transform" });
|
||||
gsap.from(cards, { autoAlpha: 0, stagger: 0.035, duration: 0.28, clearProps: "opacity,visibility" });
|
||||
});
|
||||
|
||||
// List: animate first 30 visible cards on render/mode switch
|
||||
document.addEventListener("aiRadar:listRendered", function () {
|
||||
const cards = Array.from(document.querySelectorAll(".intel-card, .news-card")).slice(0, 30);
|
||||
if (!cards.length) return;
|
||||
gsap.from(cards, { autoAlpha: 0, y: 12, stagger: 0.03, duration: 0.4, clearProps: "transform,opacity,visibility" });
|
||||
});
|
||||
|
||||
// Section scroll reveal via IntersectionObserver. Keep sections visible:
|
||||
// hiding whole content blocks can leave blank viewports after responsive
|
||||
// reflow or rapid mobile scrolling.
|
||||
const revealEls = document.querySelectorAll(".bole-picks-wrap, .waytoagi-wrap, .list-wrap");
|
||||
if (revealEls.length && window.IntersectionObserver) {
|
||||
gsap.set(revealEls, { y: 14 });
|
||||
const observer = new IntersectionObserver(function (entries) {
|
||||
entries.forEach(function (entry) {
|
||||
if (entry.isIntersecting) {
|
||||
gsap.to(entry.target, { y: 0, duration: 0.45, clearProps: "transform" });
|
||||
observer.unobserve(entry.target);
|
||||
}
|
||||
});
|
||||
}, { threshold: 0.08 });
|
||||
revealEls.forEach(function (el) { observer.observe(el); });
|
||||
}
|
||||
});
|
||||
}());
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user