feat: weakup tweet
This commit is contained in:
@@ -113,6 +113,24 @@ class TerminalResource extends Resource
|
||||
])
|
||||
->columns(2),
|
||||
|
||||
Forms\Components\Section::make('语音唤醒')
|
||||
->schema([
|
||||
Forms\Components\Toggle::make('voice_wakeup_enabled')
|
||||
->label('启用语音唤醒')
|
||||
->default(false)
|
||||
->live()
|
||||
->helperText('开启后终端将启用语音唤醒功能'),
|
||||
|
||||
Forms\Components\TextInput::make('voice_wakeup_word')
|
||||
->label('唤醒词')
|
||||
->maxLength(100)
|
||||
->placeholder('例如: 你好小智')
|
||||
->helperText('终端语音唤醒使用的唤醒词')
|
||||
->visible(fn(Forms\Get $get): bool => (bool) $get('voice_wakeup_enabled')),
|
||||
])
|
||||
->columns(2)
|
||||
->description('配置终端的语音唤醒能力'),
|
||||
|
||||
Forms\Components\Section::make('知识库关联')
|
||||
->schema([
|
||||
Forms\Components\Repeater::make('knowledgeBaseAssociations')
|
||||
|
||||
@@ -79,6 +79,21 @@ class ViewTerminal extends ViewRecord
|
||||
])
|
||||
->collapsible(),
|
||||
|
||||
Infolists\Components\Section::make('语音唤醒')
|
||||
->schema([
|
||||
Infolists\Components\IconEntry::make('voice_wakeup_enabled')
|
||||
->label('语音唤醒')
|
||||
->boolean()
|
||||
->trueIcon('heroicon-o-check-circle')
|
||||
->falseIcon('heroicon-o-x-circle')
|
||||
->trueColor('success')
|
||||
->falseColor('danger'),
|
||||
Infolists\Components\TextEntry::make('voice_wakeup_word')
|
||||
->label('唤醒词')
|
||||
->placeholder('未设置'),
|
||||
])
|
||||
->columns(2),
|
||||
|
||||
Infolists\Components\Section::make('状态信息')
|
||||
->schema([
|
||||
Infolists\Components\IconEntry::make('is_online')
|
||||
|
||||
Reference in New Issue
Block a user