Skip to content

Commit f8d95dd

Browse files
author
Conan Crawford
committed
0.23.3
1 parent d7c841e commit f8d95dd

9 files changed

Lines changed: 208 additions & 248 deletions

File tree

.eslintrc

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

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 75 additions & 117 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"name": "@vuex-orm/plugin-search",
33
"description": "Fuzzy search plugin for vuex-orm",
4-
"version": "0.23.2",
4+
"version": "0.23.3",
55
"author": "Conan Crawford <cj@cjcrawford.com>",
66
"license": "MIT",
77
"scripts": {
88
"dev": "vue-build dev",
9-
"build": "vue-build prod"
9+
"build": "vue-build prod",
10+
"test": "NODE_ENV=test vue-build unit",
11+
"test:watch": "NODE_ENV=test vue-build unit --watch"
1012
},
1113
"dependencies": {
1214
"fuse.js": "^3.2.0"
1315
},
1416
"devDependencies": {
1517
"@vuex-orm/core": "^0.23.2",
16-
"eslint-plugin-html": "^4.0.2",
1718
"vue": "^2.5.16",
1819
"vue-build": "^3.0.0-beta.2",
1920
"vuex": "^3.0.1"

src/common/models/User.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { Model } from '@vuex-orm/core'
2+
3+
export default class User extends Model {
4+
static entity = 'users'
5+
6+
static fields () {
7+
return {
8+
id: this.attr(null),
9+
name: this.attr(''),
10+
email: this.attr(''),
11+
phone: this.attr('')
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)