Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Commit 2d89141

Browse files
authored
Merge pull request #21 from dbssman/feature/20-update-packagejson-repository-and-homepage
🔗 Add necessary config and links
2 parents 4469396 + 2ff0894 commit 2d89141

File tree

10 files changed

+51
-6
lines changed

10 files changed

+51
-6
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ const successFn = (form: Record<string,any>) => {console.log({form})}
9595

9696
### For a more advanced usage visit the [Docs](https://vue-form-handler.com)
9797

98+
## 📈 Project activity
99+
---
100+
![Alt](https://repobeats.axiom.co/api/embed/d0da4b79bde282068c5f3da3505091b1447a1f6c.svg "Repobeats analytics image")
101+
98102
## 💜 Thanks
99103
---
100104
This project is heavily inspired by other awesome projects like:

docs/.vitepress/config.cts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ export default defineConfig({
1818
pattern: 'https://github.com/dbssman/vue-form-handler/edit/master/docs/:path',
1919
text: 'Edit this page on GitHub',
2020
},
21+
socialLinks: [
22+
{ icon: 'github', link: 'https://github.com/dbssman/vue-form-handler' }
23+
],
24+
footer: {
25+
message: 'Released under the MIT License.',
26+
copyright: 'Copyright © 2022-present Dennis R. Bosmans',
27+
},
2128
nav: [
2229
{ text: 'Home', link: '/' },
2330
{ text: 'Get started', link: '/get-started/introduction' },

docs/guides/custom-components.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# Custom components
1+
# Custom components
2+
3+
## Utilities
4+
5+
## Examples

docs/guides/form-submission.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/guides/material-libraries.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Material libraries
2+
3+
## Support
4+
5+
## How it works
6+
7+
## Examples

docs/guides/native-support.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# Native support
1+
# Native support
2+
3+
## Why ?
4+
5+
## Supported features

docs/guides/typescript.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# Typescript
1+
# Typescript
2+
3+
## Type support
4+
5+
## Examples

docs/guides/validation.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
# Validation
1+
# Validation
2+
3+
## Form-level Validation
4+
5+
## Field-level Validation
6+
7+
## Manually Trigger Validation
8+
9+
## When do Validations run?
10+
11+
## Display error messages

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
"author": "Dennis R. Bosmans",
33
"name": "vue-form-handler",
44
"description": "Vue 3 form handler, with validation, error handling, and more.",
5+
"repository": {
6+
"type":"git",
7+
"url":"https://github.com/dbssman/vue-form-handler"
8+
},
9+
"homepage": "https://www.vue-form-handler.com/",
510
"license": "MIT",
611
"private": false,
712
"version": "0.0.2",

src/core/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ export const BaseInputProps = {
66
name: { type: String, required: true },
77
isDirty: { type: Boolean, default: () => false },
88
isTouched: { type: Boolean, default: () => false },
9-
errors: { type: Object, default: () => { } },
9+
disabled: { type: Boolean, default: () => false },
10+
error: { type: String, default: () => '' },
1011
onBlur: { type: Function, required: true },
1112
onClear: { type: Function, default: () => null },
1213
modelValue: { type: [String, Object, Array, Number, Boolean, null], required: true },

0 commit comments

Comments
 (0)