From 53174ffdd7f8023089c6af34acb6af9c6c7612de Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sun, 14 Dec 2025 02:01:26 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=E9=A6=96=E9=A1=B5=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E7=AD=BE=E5=88=B0=E7=BB=84=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=A1=A5=E7=AD=BE=20(#182)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Initial plan * Add sign-in card component to homepage Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Fix v-icon usage in sign-in card buttons Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Fix: Merge new home components into existing localStorage Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Refactor: Remove redundant code in getShowItems Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Add error handling for localStorage parsing Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Redesign sign-in card to show multiple game accounts with compact UI Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Fix reward item spacing with flex properties Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Redesign sign-in card: grid layout, account switching, light mode fixes Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Add forceReload parameter to prevent unnecessary API calls Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Show multiple game accounts with grid layout and MiHoYo account in append Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Use unique keys and concurrent API requests for better performance Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Refactor sign-in component: split into reusable parts with user switcher Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Fix sign-in logic: highlight based on count not date, enable resign button Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Remove duplicate code and fix comment Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Add reward cell component, extra rewards support, and improved visual distinction Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * 🏷️ 添加Store类型,调整首页选项框宽度 * 🏷️签到 → 游戏签到 * ♻️ 首页组件重构,支持组件分享 * ♻️ 调整组件UI * 💄 调整loading标题文本大小 * 💄 微调样式 * Refactor sign-in component: sequential loading, progress bar, internal data processing Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * Fix code review issues: correct gameInfo reference and add refresh event Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * 🎨 调整逻辑 * Refactor: self-contained data updates and numeric state enums Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * 🚸 调整排序逻辑 * 🚸 调整loading文本 * ✏️ 调整类型,修复打包失败 * ♻️ 添加补签相关请求 * 💄 调整脚本页布局 * 💄 调整首页布局 * Implement resign feature with local data updates and confirmation dialog Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * ✏️ 补充类型描述 * Fix resign logic: check is_sub, optimize resign info loading, improve success message Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * 🎨 调整逻辑,微调样式 * 🎨 调整唤起位置 * Add click handlers to reward cells for sign-in and resign actions Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * 🐛 对ID进行限制 * 💄 微调顶部gameNav样式 * Fix resign logic: only first missed day is clickable Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> * 🎨 放宽补签限制 * 🐛 修正删除逻辑判断 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: BTMuli <72692909+BTMuli@users.noreply.github.com> Co-authored-by: BTMuli --- src/components/app/t-gameNav.vue | 1 + src/components/func/loading.vue | 14 +- src/components/pageHome/ph-comp-calendar.vue | 14 +- src/components/pageHome/ph-comp-card.vue | 27 +- src/components/pageHome/ph-comp-pool.vue | 18 +- src/components/pageHome/ph-comp-position.vue | 17 +- src/components/pageHome/ph-comp-sign.vue | 184 ++++++ src/components/pageHome/ph-sign-item.vue | 606 ++++++++++++++++++ .../pageHome/ph-sign-reward-cell.vue | 217 +++++++ src/components/pageHome/ph-user-switch.vue | 102 +++ src/components/userScripts/tus-sign.vue | 6 +- src/data/schema/uigf4-schema.json | 4 +- src/pages/User/Scripts.vue | 54 +- src/pages/common/PageHome.vue | 50 +- src/plugins/Sqlite/modules/userAccount.ts | 17 +- src/request/lunaReq.ts | 119 +++- src/store/modules/home.ts | 65 +- src/types/BBS/Sign.d.ts | 58 +- src/types/Store/Home.d.ts | 19 + src/utils/TGShare.ts | 4 +- 20 files changed, 1475 insertions(+), 121 deletions(-) create mode 100644 src/components/pageHome/ph-comp-sign.vue create mode 100644 src/components/pageHome/ph-sign-item.vue create mode 100644 src/components/pageHome/ph-sign-reward-cell.vue create mode 100644 src/components/pageHome/ph-user-switch.vue create mode 100644 src/types/Store/Home.d.ts diff --git a/src/components/app/t-gameNav.vue b/src/components/app/t-gameNav.vue index 163e547a..b8222be0 100644 --- a/src/components/app/t-gameNav.vue +++ b/src/components/app/t-gameNav.vue @@ -188,6 +188,7 @@ async function toBBS(link: URL): Promise { color: var(--common-text-title); font-family: var(--font-title); font-size: 16px; + white-space: nowrap; } &:hover span { diff --git a/src/components/func/loading.vue b/src/components/func/loading.vue index 378a5ff7..096dd225 100644 --- a/src/components/func/loading.vue +++ b/src/components/func/loading.vue @@ -1,22 +1,24 @@ +