Skip to content

Commit d2f0dbd

Browse files
committed
chore: lint
1 parent b60178e commit d2f0dbd

File tree

10 files changed

+147
-155
lines changed

10 files changed

+147
-155
lines changed

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
# Contributor Covenant Code of Conduct
32

43
## Our Pledge
@@ -43,4 +42,4 @@ Project maintainers who do not follow or enforce the Code of Conduct in good fai
4342

4443
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org), version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
4544

46-
For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq
45+
For answers to common questions about this code of conduct, see https://www.contributor-covenant.org/faq

CONTRIBUTING.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
21
# Contributing
32

43
Thank you for your valuable contribution and dedication to improving this project! We greatly appreciate your involvement. To ensure a smooth and cohesive collaboration, we have provided some guidelines to help you get started. Kindly take a moment to review them before submitting your contributions. Your efforts will undoubtedly make this project even better, and we look forward to working together on its success!.
5-
4+
65
## Code of Conduct
7-
6+
87
This project is governed by the [Contributor Covenant Code of Conduct](./CODE_OF_CONDUCT.md). By participating, you are expected to adhere to it.
9-
8+
109
## Open Development
11-
10+
1211
All work happens directly on GitHub. Both core team members and external contributors send pull requests which go through the same code review process.
13-
12+
1413
## Semantic Versioning
1514

1615
This project follows semantic versioning. We release patch versions for bug fixes or other changes that do not change the behavior of the API, minor versions for new features that are backward-compatible, and major versions for any breaking changes.
@@ -43,7 +42,6 @@ Commit messages are required to follow the [conventional-changelog standard](htt
4342
[optional footer(s)]
4443
```
4544

46-
4745
👉 [Commit example](https://github.com/unocss/unocss/releases/tag/v0.39.0)
4846

4947
### Commit types
@@ -71,4 +69,3 @@ The following is a list of commit types:
7169
## License
7270

7371
By contributing your code to the repository, you agree to license your contribution under the [MIT license](./LICENSE).
74-

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
</h1>
55
</p>
66

7-
87
A Vue 3 based smooth signature drawing component.
98

109
## Installation
@@ -13,7 +12,7 @@ A Vue 3 based smooth signature drawing component.
1312
npm install @selemondev/vue3-signature-pad
1413
```
1514

16-
## Usage
15+
## Usage
1716

1817
```ts
1918
<script setup lang="ts">
@@ -103,8 +102,7 @@ const handleAddWaterMark = () => {
103102
</template>
104103
```
105104

106-
## Props
107-
105+
## Props
108106

109107
| name | type | default | description |
110108
|:-------------:|:-------------:|:-------------------------:| :-----------------: |
@@ -134,10 +132,8 @@ const handleAddWaterMark = () => {
134132
| handleBeforeUpdateStroke | | Emits `Signature before update` before the drawing gets updated on the canvas.
135133
| handleAfterUpdateStroke | | Emits `Signature after update` after the drawing gets updated on the canvas.
136134

137-
138135
## Credits go to these amazing projects
139136

140137
- [Signature Pad](https://github.com/szimek/signature_pad)
141138

142139
- [Vue 3 Signature](https://github.com/WangShayne/vue3-signature) - Vue 3 Signature Pad is an enhanced version of Vue 3 Signature with type safety and more options.
143-

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"type": "module",
44
"version": "1.1.0",
55
"private": false,
6+
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee",
67
"description": "Vue 3 based smooth signature drawing",
78
"author": "Selemondev",
89
"homepage": "https://github.com/selemondev/vue3-signature-pad#readme",
@@ -60,6 +61,5 @@
6061
"unplugin-vue": "^5.0.5",
6162
"vue": "^3.4.21",
6263
"vue-tsc": "^1.8.25"
63-
},
64-
"packageManager": "pnpm@9.12.3+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
64+
}
6565
}

website/postcss.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
2-
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
5-
},
6-
}
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}
Lines changed: 112 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,117 @@
11
<template>
22
<div class="overflow-x-auto">
33
<table class="bg-white border table-auto">
4-
<thead>
5-
<tr>
6-
<th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider">
7-
Name
8-
</th>
9-
<th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider">
10-
Params
11-
</th>
12-
<th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider">
13-
Description
14-
</th>
15-
</tr>
16-
</thead>
17-
<tbody class="bg-white">
18-
<tr>
19-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
20-
saveSignature
21-
</td>
22-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
23-
format (() / image/jpeg / image/svg)
24-
</td>
25-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
26-
Save image as PNG/JPEG or SVG
27-
</td>
28-
</tr>
29-
<tr>
30-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
31-
clearCanvas
32-
</td>
33-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
34-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
35-
Clear canvas
36-
</td>
37-
</tr>
38-
<tr>
39-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
40-
isCanvasEmpty
41-
</td>
42-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
43-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
44-
Returns true if the canvas is empty, otherwise it returns false
45-
</td>
46-
</tr>
47-
<tr>
48-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
49-
undo
50-
</td>
51-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
52-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
53-
Remove the last drawing
54-
</td>
55-
</tr>
56-
<tr>
57-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
58-
addWaterMark
59-
</td>
60-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
61-
{}
62-
</td>
63-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
64-
Add waterMark
65-
</td>
66-
</tr>
67-
<tr>
68-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
69-
fromDataURL
70-
</td>
71-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
72-
(url)
73-
</td>
74-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
75-
Draw signature image from data URL
76-
</td>
77-
</tr>
78-
<tr>
79-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
80-
handleBeginStroke
81-
</td>
82-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
83-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
84-
Emits `Signature started` when the user starts drawing on the canvas
85-
</td>
86-
</tr>
87-
<tr>
88-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
89-
handleEndStroke
90-
</td>
91-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
92-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
93-
Emits `Signature ended` when the user stops drawing on the canvas
94-
</td>
95-
</tr>
96-
<tr>
97-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
98-
handleBeforeUpdateStroke
99-
</td>
100-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
101-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
102-
Emits `Signature before update` before the drawing gets updated on the canvas
103-
</td>
104-
</tr>
105-
<tr>
106-
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
107-
handleAfterUpdateStroke
108-
</td>
109-
<td class="px-6 py-4 whitespace-no-wrap" />
110-
<td class="px-6 py-4 whitespace-no-wrap">
111-
Emits `Signature after update` after the drawing gets updated on the canvas
112-
</td>
113-
</tr>
114-
</tbody>
115-
</table>
4+
<thead>
5+
<tr>
6+
<th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider">
7+
Name
8+
</th>
9+
<th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider">
10+
Params
11+
</th>
12+
<th class="px-6 py-3 border-b font-sans border-gray-300 text-left leading-4 tracking-wider">
13+
Description
14+
</th>
15+
</tr>
16+
</thead>
17+
<tbody class="bg-white">
18+
<tr>
19+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
20+
saveSignature
21+
</td>
22+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
23+
format (() / image/jpeg / image/svg)
24+
</td>
25+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
26+
Save image as PNG/JPEG or SVG
27+
</td>
28+
</tr>
29+
<tr>
30+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
31+
clearCanvas
32+
</td>
33+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
34+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
35+
Clear canvas
36+
</td>
37+
</tr>
38+
<tr>
39+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
40+
isCanvasEmpty
41+
</td>
42+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
43+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
44+
Returns true if the canvas is empty, otherwise it returns false
45+
</td>
46+
</tr>
47+
<tr>
48+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
49+
undo
50+
</td>
51+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
52+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
53+
Remove the last drawing
54+
</td>
55+
</tr>
56+
<tr>
57+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
58+
addWaterMark
59+
</td>
60+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
61+
{}
62+
</td>
63+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
64+
Add waterMark
65+
</td>
66+
</tr>
67+
<tr>
68+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
69+
fromDataURL
70+
</td>
71+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
72+
(url)
73+
</td>
74+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
75+
Draw signature image from data URL
76+
</td>
77+
</tr>
78+
<tr>
79+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
80+
handleBeginStroke
81+
</td>
82+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
83+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
84+
Emits `Signature started` when the user starts drawing on the canvas
85+
</td>
86+
</tr>
87+
<tr>
88+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
89+
handleEndStroke
90+
</td>
91+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
92+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
93+
Emits `Signature ended` when the user stops drawing on the canvas
94+
</td>
95+
</tr>
96+
<tr>
97+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
98+
handleBeforeUpdateStroke
99+
</td>
100+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300" />
101+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
102+
Emits `Signature before update` before the drawing gets updated on the canvas
103+
</td>
104+
</tr>
105+
<tr>
106+
<td class="px-6 py-4 whitespace-no-wrap border-b border-gray-300">
107+
handleAfterUpdateStroke
108+
</td>
109+
<td class="px-6 py-4 whitespace-no-wrap" />
110+
<td class="px-6 py-4 whitespace-no-wrap">
111+
Emits `Signature after update` after the drawing gets updated on the canvas
112+
</td>
113+
</tr>
114+
</tbody>
115+
</table>
116116
</div>
117117
</template>

website/tsconfig.app.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
22
"extends": "@vue/tsconfig/tsconfig.dom.json",
3-
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
4-
"exclude": ["src/**/__tests__/*"],
53
"compilerOptions": {
64
"composite": true,
75
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
@@ -10,5 +8,7 @@
108
"paths": {
119
"@/*": ["./src/*"]
1210
}
13-
}
11+
},
12+
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
13+
"exclude": ["src/**/__tests__/*"]
1414
}

website/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"files": [],
32
"references": [
43
{
54
"path": "./tsconfig.node.json"
65
},
76
{
87
"path": "./tsconfig.app.json"
98
}
10-
]
9+
],
10+
"files": []
1111
}

0 commit comments

Comments
 (0)