Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
395 changes: 224 additions & 171 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@mdi/svg": "^7.4.47",
"@nextcloud/browserslist-config": "^3.1.2",
"@nextcloud/e2e-test-server": "^0.4.0",
"@nextcloud/eslint-config": "^9.0.0-rc.5",
"@nextcloud/eslint-config": "^9.0.0-rc.6",
"@nextcloud/prettier-config": "^1.2.0",
"@nextcloud/stylelint-config": "^3.1.1",
"@nextcloud/vite-config": "^1.7.2",
Expand Down
4 changes: 2 additions & 2 deletions src/components/OptionInputDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
size="normal"
@update:open="$emit('update:open', $event)">
<NcTextArea
:value.sync="enteredOptions"
v-model="enteredOptions"
:label="t('forms', 'Add multiple options (one per line)')"
:placeholder="t('forms', 'Add multiple options (one per line)')"
resize="vertical"
Expand All @@ -21,7 +21,7 @@
:input-label="t('forms', 'Options')"
multiple
disabled
:value="multipleOptions" />
:model-value="multipleOptions" />
</NcDialog>
</template>

Expand Down
2 changes: 1 addition & 1 deletion src/components/Questions/Question.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
:label="t('forms', 'Technical name of the question')"
:label-outside="false"
:show-trailing-button="false"
:value="name"
:model-value="name"
@input="onNameChange">
<template #icon>
<IconIdentifier :size="20" />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Questions/QuestionDate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
</template>
<div class="question__content">
<NcDateTimePicker
:value="time"
:model-value="time"
:disabled="!readOnly"
:format="stringify"
:placeholder="datetimePickerPlaceholder"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Questions/QuestionDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</template>
<NcSelect
v-if="readOnly"
:value="selectedOption"
:model-value="selectedOption"
:name="name || undefined"
:placeholder="selectOptionPlaceholder"
:multiple="isMultiple"
Expand Down Expand Up @@ -62,7 +62,7 @@
<AnswerInput
v-for="(answer, index) in sortedOptions"
:key="answer.local ? 'option-local' : answer.id"
ref="input"

Check warning on line 65 in src/components/Questions/QuestionDropdown.vue

View workflow job for this annotation

GitHub Actions / NPM lint

'input' is defined as ref, but never used
:answer="answer"
:form-id="formId"
is-dropdown
Expand Down
8 changes: 4 additions & 4 deletions src/components/Questions/QuestionFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
type="multiselect"
multiple
taggable
:value="extraSettings?.allowedFileExtensions || []"
:model-value="extraSettings?.allowedFileExtensions || []"
@option:created="onAllowedFileExtensionsAdded"
@option:deselected="onAllowedFileExtensionsDeleted" />

Expand All @@ -56,23 +56,23 @@
<template v-if="!allowedFileTypesDialogOpened">
<NcActionInput
type="number"
:value="maxAllowedFilesCount"
:model-value="maxAllowedFilesCount"
label-outside
:label="t('forms', 'Maximum number of files')"
:show-trailing-button="false"
@input="onMaxAllowedFilesCountInput($event.target.value)" />

<NcActionInput
type="number"
:value="maxFileSizeValue"
:model-value="maxFileSizeValue"
label-outside
:show-trailing-button="false"
:label="t('forms', 'Maximum file size')"
@input="onMaxFileSizeValueInput($event.target.value)" />

<NcActionInput
type="multiselect"
:value="maxFileSizeUnit"
:model-value="maxFileSizeUnit"
:options="availableUnits"
required
:clearable="false"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Questions/QuestionMultiple.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
:label="t('forms', 'Minimum options to be checked')"
:label-outside="false"
:show-trailing-button="false"
:value="extraSettings.optionsLimitMin"
:model-value="extraSettings.optionsLimitMin"
@update:value="onLimitOptionsMin" />

<!-- Allow setting a maximum -->
Expand All @@ -59,7 +59,7 @@
:label="t('forms', 'Maximum options to be checked')"
:label-outside="false"
:show-trailing-button="false"
:value="extraSettings.optionsLimitMax"
:model-value="extraSettings.optionsLimitMax"
@update:value="onLimitOptionsMax" />
</template>
<NcActionButton close-after-click @click="isOptionDialogShown = true">
Expand Down Expand Up @@ -138,7 +138,7 @@
<AnswerInput
v-for="(answer, index) in sortedOptions"
:key="answer.local ? 'option-local' : answer.id"
ref="input"

Check warning on line 141 in src/components/Questions/QuestionMultiple.vue

View workflow job for this annotation

GitHub Actions / NPM lint

'input' is defined as ref, but never used
:answer="answer"
:form-id="formId"
:index="index"
Expand Down
2 changes: 1 addition & 1 deletion src/components/Questions/QuestionShort.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
v-if="validationType === 'regex'"
ref="regexInput"
:label="t('forms', 'Regular expression for input validation')"
:value="validationRegex"
:model-value="validationRegex"
@input="onInputRegex"
@submit="onSubmitRegex">
<template #icon>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarTabs/SettingsSidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
:format="stringifyDate"
:minute-step="5"
:show-second="false"
:value="expirationDate"
:model-value="expirationDate"
type="datetime"
@change="onExpirationDateChange" />
<NcCheckboxRadioSwitch
Expand Down
2 changes: 1 addition & 1 deletion src/components/SidebarTabs/TransferOwnership.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
" />
<!-- eslint-enable vue/no-v-html -->
<NcTextField
v-model="confirmationInput"
:label="t('forms', 'Confirmation text')"
:value.sync="confirmationInput"
:success="confirmationInput === confirmationString" />

<br />
Expand Down
3 changes: 0 additions & 3 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@
*/

import { translate, translatePlural } from '@nextcloud/l10n'
import Tooltip from '@nextcloud/vue/directives/Tooltip'
import Vue from 'vue'
import Forms from './Forms.vue'
import router from './router.js'

import 'vite/modulepreload-polyfill'
import '@nextcloud/dialogs/style.css'

Vue.directive('tooltip', Tooltip)

Vue.prototype.t = translate
Vue.prototype.n = translatePlural

Expand Down
Loading