mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-19 18:43:53 +08:00
update: remove debug log
This commit is contained in:
@@ -69,7 +69,6 @@ export function Alloc() {
|
|||||||
if (left != 0) return toastMsg('还有剩余点数未分配', 'alloc-toast')
|
if (left != 0) return toastMsg('还有剩余点数未分配', 'alloc-toast')
|
||||||
const achievements = start()
|
const achievements = start()
|
||||||
toastAchvs(achievements)
|
toastAchvs(achievements)
|
||||||
console.log('Achievements', achievements)
|
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className="screen point-allocation">
|
<div className="screen point-allocation">
|
||||||
|
|||||||
@@ -155,13 +155,11 @@ export function Play() {
|
|||||||
if (ended) return
|
if (ended) return
|
||||||
const achievements = next()
|
const achievements = next()
|
||||||
toastAchvs(achievements)
|
toastAchvs(achievements)
|
||||||
console.debug('Achievements:', achievements)
|
|
||||||
}, [ended, next])
|
}, [ended, next])
|
||||||
const handleGotoSummary = useCallback(() => {
|
const handleGotoSummary = useCallback(() => {
|
||||||
if (!ended) return
|
if (!ended) return
|
||||||
const achievements = gotoSummary()
|
const achievements = gotoSummary()
|
||||||
toastAchvs(achievements)
|
toastAchvs(achievements)
|
||||||
console.debug('Achievements:', achievements)
|
|
||||||
}, [ended, gotoSummary])
|
}, [ended, gotoSummary])
|
||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ export function ToastAchvContainer() {
|
|||||||
reverseOrder: true,
|
reverseOrder: true,
|
||||||
gutter: 8,
|
gutter: 8,
|
||||||
})
|
})
|
||||||
console.log('toast offset', toast.id, offset)
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`}
|
className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`}
|
||||||
@@ -24,7 +23,6 @@ export function ToastAchvContainer() {
|
|||||||
ref={el => {
|
ref={el => {
|
||||||
if (el && typeof toast.height !== 'number') {
|
if (el && typeof toast.height !== 'number') {
|
||||||
const height = el.getBoundingClientRect().height
|
const height = el.getBoundingClientRect().height
|
||||||
console.log('toast height', toast.id, height)
|
|
||||||
updateHeight(toast.id, height)
|
updateHeight(toast.id, height)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ export function ToastMsgContainer() {
|
|||||||
reverseOrder: true,
|
reverseOrder: true,
|
||||||
gutter: 8,
|
gutter: 8,
|
||||||
})
|
})
|
||||||
console.log('toast offset', toast.id, offset)
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`}
|
className={`toast-item ${toast.visible ? 'visible' : 'hidden'}`}
|
||||||
@@ -24,7 +23,6 @@ export function ToastMsgContainer() {
|
|||||||
ref={el => {
|
ref={el => {
|
||||||
if (el && typeof toast.height !== 'number') {
|
if (el && typeof toast.height !== 'number') {
|
||||||
const height = el.getBoundingClientRect().height
|
const height = el.getBoundingClientRect().height
|
||||||
console.log('toast height', toast.id, height)
|
|
||||||
updateHeight(toast.id, height)
|
updateHeight(toast.id, height)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|||||||
Vendored
+1
-1
@@ -20,7 +20,7 @@ export async function init() {
|
|||||||
window.ToyCloudSaveCore =
|
window.ToyCloudSaveCore =
|
||||||
coreModule.ToyCloudSaveCore || coreModule.default || coreModule
|
coreModule.ToyCloudSaveCore || coreModule.default || coreModule
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Failed to load Bili Toy SDK:', error)
|
throw new Error('Failed to load Bili Toy SDK', { cause: error })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user