mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #54340 from nextcloud/fix/ai-settings
feat(settings): Improve AI settings task list and rename to Assistant
This commit is contained in:
commit
f5c90b2f3d
6 changed files with 22 additions and 12 deletions
|
|
@ -282,7 +282,7 @@ SPDX-License-Identifier = "OFL-1.1"
|
|||
[[annotations]]
|
||||
path = "apps/settings/img/ai.svg"
|
||||
precedence = "aggregate"
|
||||
SPDX-FileCopyrightText = "2019 GreenTurtwig <https://pictogrammers.com/contributor/GreenTurtwig/>"
|
||||
SPDX-FileCopyrightText = "2018-2024 Google LLC"
|
||||
SPDX-License-Identifier = "Apache-2.0"
|
||||
|
||||
[[annotations]]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12,2A2,2 0 0,1 14,4C14,4.74 13.6,5.39 13,5.73V7H14A7,7 0 0,1 21,14H22A1,1 0 0,1 23,15V18A1,1 0 0,1 22,19H21V20A2,2 0 0,1 19,22H5A2,2 0 0,1 3,20V19H2A1,1 0 0,1 1,18V15A1,1 0 0,1 2,14H3A7,7 0 0,1 10,7H11V5.73C10.4,5.39 10,4.74 10,4A2,2 0 0,1 12,2M7.5,13A2.5,2.5 0 0,0 5,15.5A2.5,2.5 0 0,0 7.5,18A2.5,2.5 0 0,0 10,15.5A2.5,2.5 0 0,0 7.5,13M16.5,13A2.5,2.5 0 0,0 14,15.5A2.5,2.5 0 0,0 16.5,18A2.5,2.5 0 0,0 19,15.5A2.5,2.5 0 0,0 16.5,13Z" /></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19,1L17.74,3.75L15,5L17.74,6.26L19,9L20.25,6.26L23,5L20.25,3.75M9,4L6.5,9.5L1,12L6.5,14.5L9,20L11.5,14.5L17,12L11.5,9.5M19,15L17.74,17.74L15,19L17.74,20.25L19,23L20.25,20.25L23,19L20.25,17.74" /></svg>
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 513 B After Width: | Height: | Size: 272 B |
|
|
@ -29,7 +29,7 @@ class ArtificialIntelligence implements IIconSection {
|
|||
}
|
||||
|
||||
public function getName(): string {
|
||||
return $this->l->t('Artificial Intelligence');
|
||||
return $this->l->t('Assistant');
|
||||
}
|
||||
|
||||
public function getPriority(): int {
|
||||
|
|
|
|||
|
|
@ -11,16 +11,17 @@
|
|||
@update:modelValue="saveChanges">
|
||||
{{ t('settings', 'Allow AI usage for guest users') }}
|
||||
</NcCheckboxRadioSwitch>
|
||||
<h3>{{ t('settings', 'Provider for Task types') }}</h3>
|
||||
<template v-for="type in taskProcessingTaskTypes">
|
||||
<div :key="type">
|
||||
<h3>{{ t('settings', 'Task:') }} {{ type.name }}</h3>
|
||||
<p>{{ type.description }}</p>
|
||||
<div :key="type" class="tasktype-item">
|
||||
<p class="tasktype-name">
|
||||
{{ type.name }}
|
||||
</p>
|
||||
<NcCheckboxRadioSwitch v-model="settings['ai.taskprocessing_type_preferences'][type.id]"
|
||||
type="switch"
|
||||
@update:modelValue="saveChanges">
|
||||
{{ t('settings', 'Enable') }}
|
||||
</NcCheckboxRadioSwitch>
|
||||
<NcSelect v-model="settings['ai.taskprocessing_provider_preferences'][type.id]"
|
||||
</NcCheckboxRadioSwitch><NcSelect v-model="settings['ai.taskprocessing_provider_preferences'][type.id]"
|
||||
class="provider-select"
|
||||
:clearable="false"
|
||||
:disabled="!settings['ai.taskprocessing_type_preferences'][type.id]"
|
||||
|
|
@ -33,7 +34,6 @@
|
|||
{{ taskProcessingProviders.find(p => p.id === label)?.name }}
|
||||
</template>
|
||||
</NcSelect>
|
||||
<p> </p>
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="!hasTaskProcessing">
|
||||
|
|
@ -244,4 +244,14 @@ export default {
|
|||
.provider-select {
|
||||
min-width: 350px !important;
|
||||
}
|
||||
|
||||
.tasktype-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
.tasktype-name {
|
||||
flex: 1;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
4
dist/settings-vue-settings-admin-ai.js
vendored
4
dist/settings-vue-settings-admin-ai.js
vendored
File diff suppressed because one or more lines are too long
2
dist/settings-vue-settings-admin-ai.js.map
vendored
2
dist/settings-vue-settings-admin-ai.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue