This commit is contained in:
NanGua-QWQ
2026-02-22 15:42:34 +08:00
parent 27e85b64a3
commit 7616a664a0
8 changed files with 27 additions and 31 deletions
@@ -569,7 +569,7 @@ export const AutoScoreManager: React.FC = () => {
/>
</Card>
<Card style={{ marginBottom: '24px', backgroundColor: 'var(--ss-card-bg)' }}>
<Card style={{ marginBottom: '24px' }}>
<Code
code={(() => {
if (editingRuleId !== null) {
-2
View File
@@ -3,8 +3,6 @@ import { useEffect } from 'react'
import Prism from 'prismjs'
import { useTheme } from '../contexts/ThemeContext'
// 预先导入所有主题
import 'prismjs/themes/prism-coy.min.css'
import 'prismjs/themes/prism-okaidia.min.css'
const Code = ({ code, language }) => {
@@ -43,7 +43,7 @@ const actionDefinitions: ActionDefinition[] = [
description: sendNotificationDescription,
component: SendNotificationAction,
hasReason: sendNotificationHasReason
},
}
]
actionDefinitions.forEach((def) => actionRegistry.register(def))
@@ -14,8 +14,4 @@ export { default as TriggerItemComponent } from './TriggerItem'
export { default as ActionItemComponent } from './ActionItem'
export { IntervalTimeTrigger, StudentTagTrigger, RandomTimeTrigger } from './triggers'
export {
AddScoreAction,
AddTagAction,
SendNotificationAction,
} from './actions'
export { AddScoreAction, AddTagAction, SendNotificationAction } from './actions'
@@ -36,8 +36,8 @@ const IntervalTimeTrigger: React.FC<TriggerComponentProps> = ({ value, onChange
numValue === undefined || isNaN(numValue)
? undefined
: unit === 'minutes'
? numValue
: Math.max(1, Math.round(numValue / 1440))
? numValue
: Math.max(1, Math.round(numValue / 1440))
return (
<Space>