feat: enhance configuration and environment setup for SSH sandbox and Creators Platform; update local excludes and improve component logic in the web app

This commit is contained in:
Novice
2026-03-24 17:05:56 +08:00
parent a844936759
commit d594365a45
29 changed files with 208 additions and 194 deletions

View File

@ -18,7 +18,6 @@ export const useAnthropicCheckPay = () => {
useEffect(() => {
if (providerName === 'anthropic' && (paymentResult === 'succeeded' || paymentResult === 'cancelled')) {
// eslint-disable-next-line react-hooks-extra/no-direct-set-state-in-use-effect
setConfirm({
type: paymentResult === 'succeeded' ? 'info' : 'warning',
title: paymentResult === 'succeeded' ? t('actionMsg.paySucceeded', { ns: 'common' }) : t('actionMsg.payCancelled', { ns: 'common' }),
@ -38,7 +37,6 @@ export const useBillingPay = () => {
useEffect(() => {
if (paymentType === 'billing' && (paymentResult === 'succeeded' || paymentResult === 'cancelled')) {
// eslint-disable-next-line react-hooks-extra/no-direct-set-state-in-use-effect
setConfirm({
type: paymentResult === 'succeeded' ? 'info' : 'warning',
title: paymentResult === 'succeeded' ? t('actionMsg.paySucceeded', { ns: 'common' }) : t('actionMsg.payCancelled', { ns: 'common' }),
@ -66,14 +64,12 @@ export const useCheckNotion = () => {
useEffect(() => {
if (type === 'notion') {
if (notionError) {
// eslint-disable-next-line react-hooks-extra/no-direct-set-state-in-use-effect
setConfirm({
type: 'warning',
title: notionError,
})
}
else if (notionCode) {
// eslint-disable-next-line react-hooks-extra/no-direct-set-state-in-use-effect
setCanBinding(true)
}
}