Skip to content

Commit 4a62493

Browse files
authored
v2
1 parent 043ca96 commit 4a62493

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+13371
-9545
lines changed

.babelrc

Lines changed: 0 additions & 29 deletions
This file was deleted.

.editorconfig

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,8 @@ root = true
22

33
[*]
44
indent_style = space
5-
indent_size = 4
5+
indent_size = 2
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
10-
11-
[*.md]
12-
trim_trailing_whitespace = false
13-
14-
[*.{vue,js,json,html,scss,md,blade.php}]
15-
indent_style = space
16-
indent_size = 2

.eslintrc

Lines changed: 0 additions & 12 deletions
This file was deleted.

.eslintrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true
6+
},
7+
extends: [
8+
'@nuxtjs/eslint-config-typescript',
9+
'plugin:vue/vue3-recommended'
10+
],
11+
plugins: [
12+
],
13+
rules: {
14+
'vue/no-v-html': 'off',
15+
'vue/max-attributes-per-line': 'off'
16+
}
17+
}

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Use Node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: '14.x'
19+
20+
- name: Get npm cache directory
21+
id: npm-cache-dir
22+
run: |
23+
echo "::set-output name=dir::$(npm config get cache)"
24+
- uses: actions/cache@v2
25+
id: npm-cache
26+
with:
27+
path: ${{ steps.npm-cache-dir.outputs.dir }}
28+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-node-
31+
32+
- name: Install dependencies
33+
run: npm install
34+
35+
- name: Build lib
36+
run: npm run build:lib
37+
38+
- name: Run tests
39+
run: npm run test

.gitignore

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
/tmp
12
/dist
2-
node_modules
3+
/public
4+
/.vercel
5+
/site/tmp
6+
/node_modules
37
npm-debug.log*
4-
yarn-debug.log*
5-
yarn-error.log*
8+
*.code-workspace

.travis.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## 2.0.0 - 2021-04-29
4+
5+
- New site [vform.vercel.app](https://vform.vercel.app)!
6+
- Added support for Vue 3.
7+
- Added support for TypeScript.
8+
- Added new `Button` component.
9+
- Added Boostrap 5 and Tailwind CSS components.
10+
- Added `Form.prototype.update`.
11+
- Fixed params for GET requests.
12+
- Dropped support for Boostrap 3 components.
13+
- The components are no longer bundled. Replace `import { HasError } from 'vform'` with `import { HasError } from 'vform/components/bootstrap5'`.
14+
315
## 1.0.1 - 2019-06-01
416

517
- Added `Form.axios` to allow using a custom axios instance (`Form.axios = customAxiosInstance`).
@@ -21,7 +33,7 @@
2133

2234
## 0.8.0 - 2017-08-15
2335

24-
- Merged Bootstrap component `HasError4` into `HasError`.
36+
- Merged Bootstrap component `HasError4` into `HasError`.
2537
- Added `Errors.prototype.getAll(field)` to get all the errors for a field.
2638

2739
## 0.7.8 - 2017-08-09

0 commit comments

Comments
 (0)