Skip to content

Commit

Permalink
chore: replace :value.sync by v-model
Browse files Browse the repository at this point in the history
  • Loading branch information
vitormattos committed Nov 15, 2024
1 parent 7232e88 commit 4ff27b4
Show file tree
Hide file tree
Showing 18 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/Components/Draw/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="actions">
<NcColorPicker ref="colorPicker"
v-model="color"
:value.sync="color"
v-model="color"

Check failure on line 10 in src/Components/Draw/Editor.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Parsing error: duplicate-attribute
:palette="customPalette"
:palette-only="true"
@input="refresh">
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Draw/TextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<NcTextField id="text"
ref="input"
:label="t('libresign', 'Enter your Full Name or Initials to create Signature')"
:value.sync="value" />
v-model="value" />

Check warning on line 16 in src/Components/Draw/TextInput.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before ":label"
</div>
<div class="action-buttons">
<NcButton :disabled="!isValid" type="primary" @click="confirmSignature">
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Request/IdentifySigner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<label for="name-input">{{ t('libresign', 'Signer name') }}</label>
<NcTextField aria-describedby="name-input"
autocapitalize="none"
:value.sync="displayName"
v-model="displayName"

Check warning on line 17 in src/Components/Request/IdentifySigner.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before "autocapitalize"
:label="t('libresign', 'Signer name')"
:required="true"
:error="nameHaveError"
Expand Down
6 changes: 3 additions & 3 deletions src/views/CreateAccount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</NcNoteCard>
<fieldset class="create-account__fieldset">
<NcTextField :label="t('libresign', 'Email')"
:value.sync="email"
v-model="email"

Check warning on line 23 in src/views/CreateAccount.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before ":label"
autocapitalize="none"
:spellchecking="false"
autocomplete="off"
Expand All @@ -30,7 +30,7 @@
required>
<EmailIcon :size="20" />
</NcTextField>
<NcPasswordField :value.sync="password"
<NcPasswordField v-model="password"
:label="t('libresign', 'Password')"
:spellchecking="false"
autocapitalize="none"
Expand All @@ -39,7 +39,7 @@
:helper-text="passwordError"
:error="passwordError.length > 0"
required />
<NcPasswordField :value.sync="passwordConfirm"
<NcPasswordField v-model="passwordConfirm"
:label="t('libresign', 'Confirm password')"
:spellchecking="false"
autocapitalize="none"
Expand Down
2 changes: 1 addition & 1 deletion src/views/CreatePassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<NcPasswordField :disabled="hasLoading"
:label="t('libresign', 'Enter a password')"
:placeholder="t('libresign', 'Enter a password')"
:value.sync="password" />
v-model="password" />

Check warning on line 13 in src/views/CreatePassword.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before ":placeholder"
<template #actions>
<NcButton :disabled="hasLoading" @click="send">
<template #icon>
Expand Down
2 changes: 1 addition & 1 deletion src/views/FilesList/FilesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
{{ message }}
</NcNoteCard>
<NcTextField :label="t('libresign', 'URL of a PDF file')"
:value.sync="pdfUrl">
v-model="pdfUrl">

Check warning on line 94 in src/views/FilesList/FilesList.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before ":label"
<LinkIcon :size="20" />
</NcTextField>
<template #actions>
Expand Down
2 changes: 1 addition & 1 deletion src/views/ReadCertificate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<NcPasswordField :disabled="hasLoading"
:label="t('libresign', 'Certificate password')"
:placeholder="t('libresign', 'Certificate password')"
:value.sync="password" />
v-model="password" />

Check warning on line 80 in src/views/ReadCertificate.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before ":placeholder"
</div>
</div>
<template v-if="Object.keys(certificateData).length === 0" #actions>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Request.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
{{ message }}
</NcNoteCard>
<NcTextField :label="t('libresign', 'URL of a PDF file')"
:value.sync="pdfUrl">
v-model="pdfUrl">

Check warning on line 66 in src/views/Request.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before ":label"
<LinkIcon :size="20" />
</NcTextField>
<template #actions>
Expand Down
6 changes: 3 additions & 3 deletions src/views/ResetPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
<div class="container">
<div class="input-group">
<label for="new-password">{{ t('libresign', 'Current password') }}</label>
<NcPasswordField :value.sync="currentPassword" type="password" />
<NcPasswordField v-model="currentPassword" type="password" />
</div>
<div class="input-group">
<label for="new-password">{{ t('libresign', 'New password') }}</label>
<NcPasswordField :value.sync="newPassword" type="password" />
<NcPasswordField v-model="newPassword" type="password" />
</div>
<div class="input-group">
<label for="repeat-password">{{ t('libresign', 'Repeat password') }}</label>
<NcPasswordField :value.sync="rPassword" :has-error="!validNewPassord" type="password" />
<NcPasswordField v-model="rPassword" :has-error="!validNewPassord" type="password" />
</div>
</div>
<template #actions>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Settings/CertificateCustonOptions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class="item">
<NcTextField v-if="certificate"
:id="certificate.id"
:value.sync="certificate.value"
v-model="certificate.value"
:success="typeof certificate.error === 'boolean' && !certificate.error"
:error="certificate.error"
:maxlength="certificate.max ? certificate.max : undefined"
Expand Down
2 changes: 1 addition & 1 deletion src/views/Settings/DefaultUserFolder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</NcCheckboxRadioSwitch>
<div v-if="customUserFolder">
<NcTextField :placeholder="t('libresign', 'Customize default user folder')"
:value.sync="value"
v-model="value"

Check warning on line 14 in src/views/Settings/DefaultUserFolder.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before ":placeholder"
@update:value="saveDefaultUserFolder" />
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/views/Settings/ExpirationRules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class="sharing__input"
:label="t('libresign', 'Maximum validity')"
:placeholder="t('libresign', 'Maximum validity')"
:value.sync="maximumValidity"
v-model="maximumValidity"

Check warning on line 21 in src/views/Settings/ExpirationRules.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before ":placeholder"
@update:value="saveMaximumValidity" />
</fieldset>
<NcCheckboxRadioSwitch type="switch"
Expand All @@ -32,7 +32,7 @@
class="sharing__input"
:label="t('libresign', 'Renewal interval')"
:placeholder="t('libresign', 'Renewal interval')"
:value.sync="renewalInterval"
v-model="renewalInterval"

Check warning on line 35 in src/views/Settings/ExpirationRules.vue

View workflow job for this annotation

GitHub Actions / NPM lint

Attribute "v-model" should go before ":placeholder"
@update:value="saveRenewalInterval" />
</fieldset>
</NcSettingsSection>
Expand Down
6 changes: 3 additions & 3 deletions src/views/Settings/RootCertificateCfssl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<label for="commonName" class="form-heading--required">{{ t('libresign', 'Name (CN)') }}</label>
<NcTextField id="commonName"
ref="commonName"
:value.sync="certificate.rootCert.commonName"
v-model="certificate.rootCert.commonName"
:helper-text="t('libresign', 'Full name of the main company or main user of this instance')"
:minlength="1"
:success="certificate.rootCert.commonName !== ''"
Expand All @@ -70,15 +70,15 @@
<div v-if="customData" class="form-group">
<label for="cfsslUri">{{ t('libresign', 'CFSSL API URI') }}</label>
<NcTextField id="cfsslUri"
:value.sync="certificate.cfsslUri"
v-model="certificate.cfsslUri"
:label-outside="true"
:placeholder="t('libresign', 'Not mandatory, don\'t fill to use default value.')"
:disabled="formDisabled" />
</div>
<div v-if="customData" class="form-group">
<label for="configPath">{{ t('libresign', 'Config path') }}</label>
<NcTextField id="configPath"
:value.sync="certificate.configPath"
v-model="certificate.configPath"
:label-outside="true"
:placeholder="t('libresign', 'Not mandatory, don\'t fill to use default value.')"
:disabled="formDisabled" />
Expand Down
4 changes: 2 additions & 2 deletions src/views/Settings/RootCertificateOpenSsl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<label for="commonName" class="form-heading--required">{{ t('libresign', 'Name (CN)') }}</label>
<NcTextField id="commonName"
ref="commonName"
:value.sync="certificate.rootCert.commonName"
v-model="certificate.rootCert.commonName"
:helper-text="t('libresign', 'Full name of the main company or main user of this instance')"
:minlength="1"
:success="certificate.rootCert.commonName !== ''"
Expand All @@ -66,7 +66,7 @@
<div v-if="customData" class="form-group">
<label for="configPath">{{ t('libresign', 'Config path') }}</label>
<NcTextField id="configPath"
:value.sync="certificate.configPath"
v-model="certificate.configPath"
:label-outside="true"
:placeholder="t('libresign', 'Not mandatory, don\'t fill to use default value.')"
:disabled="formDisabled" />
Expand Down
2 changes: 1 addition & 1 deletion src/views/Settings/Validation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<p v-if="addFooter && isExtraSettingsEnabled">
<NcTextArea label="Footer template"
placeholder="A twig template to be used at footer of PDF. Will be rendered by mPDF."
:value.sync="footerTemplate"
v-model="footerTemplate"
@update:value="saveFooterTemplate" />
</p>
</NcSettingsSection>
Expand Down
4 changes: 2 additions & 2 deletions src/views/SignPDF/_partials/ModalEmailManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div v-if="signMethodsStore.settings.emailToken.hasConfirmCode">
{{ t('libresign', 'Enter the code you received') }}
<NcTextField maxlength="6"
:value.sync="token"
v-model="token"
:disabled="loading"
:label="t('libresign', 'Enter your code')"
:placeholder="t('libresign', 'Enter your code')"
Expand All @@ -28,7 +28,7 @@
:placeholder="t('libresign', 'Email')"
:helper-text="errorMessage"
:error="errorMessage.length > 0"
:value.sync="sendTo"
v-model="sendTo"
@input="onChangeEmail">
<EmailIcon :size="20" />
</NcTextField>
Expand Down
2 changes: 1 addition & 1 deletion src/views/SignPDF/_partials/Sign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
:name="t('libresign', 'Confirm your signature')"
@closing="onCloseConfirmPassword">
{{ t('libresign', 'Subscription password.') }}
<NcPasswordField :value.sync="signPassword" type="password" />
<NcPasswordField v-model="signPassword" type="password" />
<a id="lost-password" @click="toggleManagePassword">{{ t('libresign', 'Forgot password?') }}</a>
<ManagePassword v-if="showManagePassword" />
<template #actions>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Validation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div id="dataUUID">
<form v-show="!hasInfo" @submit="(e) => e.preventDefault()">
<h1>{{ title }}</h1>
<NcTextField :value.sync="myUuid" :label="legend" />
<NcTextField v-model="myUuid" :label="legend" />
<NcButton type="primary"
@click.prevent="validate(myUuid)">
<template #icon>
Expand Down

0 comments on commit 4ff27b4

Please sign in to comment.