From 2d53a6ca33827b208a3fb20cc66c57409373b39b Mon Sep 17 00:00:00 2001 From: Vick Scarlet Date: Sun, 16 Aug 2026 19:52:03 +0800 Subject: [PATCH] feature: bili-toy cloud fallback local --- apps/web/src/Game.css | 15 ++++++-- apps/web/src/components/Github.tsx | 11 +++--- apps/web/src/containers/Summary.tsx | 1 - thirdparty/bili-toy/wrapper.ts | 56 ++++++++++++++++++++++++----- 4 files changed, 67 insertions(+), 16 deletions(-) diff --git a/apps/web/src/Game.css b/apps/web/src/Game.css index ed2b637..57b484e 100644 --- a/apps/web/src/Game.css +++ b/apps/web/src/Game.css @@ -40,6 +40,13 @@ width: 100%; > button { flex: 1 0; } } + &.loading { + display: flex; + justify-content: center; + align-items: center; + > * { width: auto; } + animation: pulse 1.8s ease-in-out infinite; + } } .saving { position: fixed; @@ -47,9 +54,11 @@ left: 0; opacity: 0; user-select: none; - transition: opacity 0.3s; &.active { - opacity: 1; - transition: opacity 0.1s; + animation: pulse 1.8s ease-in-out infinite; } +} +@keyframes pulse { + 0%, 100% { opacity: 0.5; } + 50% { opacity: 1; } } \ No newline at end of file diff --git a/apps/web/src/components/Github.tsx b/apps/web/src/components/Github.tsx index 5e55bfe..6648b55 100644 --- a/apps/web/src/components/Github.tsx +++ b/apps/web/src/components/Github.tsx @@ -1,10 +1,13 @@ +import { toastMsg } from '@/toast' import './Github.css' +const repo = 'https://github.com/VickScarlet/remake' export function Github() { + const handleClick = () => { + if (import.meta.env.VITE_CHANNEL === 'bili') toastMsg(repo, 'github') + else window.open(repo) + } return ( -