Skip to content

Commit fc4cd79

Browse files
Merge pull request #2279 from appbaseio/fix/vue/prop-types-warnings
fix(vue): prop-types console warnings
2 parents 385447c + 3f4ce11 commit fc4cd79

File tree

44 files changed

+1340
-1357
lines changed

Some content is hidden

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

44 files changed

+1340
-1357
lines changed

packages/vue/.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"es6": true,
66
"node": true
77
},
8-
"extends": ["airbnb-base", "plugin:vue/recommended", "prettier"],
8+
"extends": ["airbnb-base", "plugin:vue/vue3-recommended", "prettier"],
99
"parserOptions": {
1010
"parser": "babel-eslint",
1111
"ecmaVersion": 2017,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
chainWebpack: config => {
3+
if (process.env.NODE_ENV === 'development') {
4+
config
5+
.output
6+
.filename('[name].[hash].js')
7+
.end()
8+
}
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
chainWebpack: config => {
3+
if (process.env.NODE_ENV === 'development') {
4+
config
5+
.output
6+
.filename('[name].[hash].js')
7+
.end()
8+
}
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
chainWebpack: config => {
3+
if (process.env.NODE_ENV === 'development') {
4+
config
5+
.output
6+
.filename('[name].[hash].js')
7+
.end()
8+
}
9+
}
10+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>AI Answer Simple</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>
Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
11
{
22
"name": "vue-search-showcase-ai-answer-simple",
3-
"version": "0.1.0",
43
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
6-
"serve": "vue-cli-service serve",
7-
"build": "vue-cli-service build",
8-
"lint": "vue-cli-service lint"
7+
"serve": "volar-preview-vite",
8+
"build": "vue-tsc && vite build",
9+
"preview": "vite preview"
910
},
1011
"dependencies": {
1112
"@appbaseio/reactivesearch-vue": "3.3.4",
12-
"vue": "^3.2.5"
13+
"vue": "^3.3.9",
14+
"vuejs-paginate": "^2.1.0"
1315
},
1416
"devDependencies": {
15-
"@vue/cli-plugin-babel": "^5.0.8",
16-
"@vue/cli-service": "^5.0.8",
17-
"@vue/compiler-sfc": "^3.1.0"
18-
},
19-
"eslintConfig": {
20-
"root": true,
21-
"env": {
22-
"node": true
23-
},
24-
"extends": [
25-
"plugin:vue/essential",
26-
"eslint:recommended"
27-
],
28-
"rules": {},
29-
"parserOptions": {
30-
"parser": "babel-eslint"
31-
}
32-
},
33-
"browserslist": [
34-
"> 1%",
35-
"last 2 versions",
36-
"not ie <= 8"
37-
]
17+
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
18+
"@vitejs/plugin-vue": "^4.0.0",
19+
"@vitejs/plugin-vue-jsx": "^3.1.0",
20+
"@vue/babel-preset-app": "^5.0.8",
21+
"vite": "^5.0.4"
22+
}
3823
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-disable import/no-extraneous-dependencies */
2+
import vue from '@vitejs/plugin-vue';
3+
import vueJsx from '@vitejs/plugin-vue-jsx';
4+
5+
export default {
6+
plugins: [vue(), vueJsx()],
7+
optimizeDeps: {
8+
include: [
9+
'@appbaseio/reactivecore',
10+
'@appbaseio/reactivesearch-vue',
11+
'fast-deep-equal',
12+
],
13+
},
14+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>search-box-autosuggestions</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>
Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,23 @@
11
{
22
"name": "search-box-autosuggestions",
3-
"version": "0.1.0",
43
"private": true,
4+
"version": "0.0.0",
5+
"type": "module",
56
"scripts": {
6-
"serve": "vue-cli-service serve",
7-
"build": "vue-cli-service build",
8-
"lint": "vue-cli-service lint"
7+
"serve": "volar-preview-vite",
8+
"build": "vue-tsc && vite build",
9+
"preview": "vite preview"
910
},
1011
"dependencies": {
1112
"@appbaseio/reactivesearch-vue": "3.3.4",
12-
"vue": "^3.2.5"
13+
"vue": "^3.3.9",
14+
"vuejs-paginate": "^2.1.0"
1315
},
1416
"devDependencies": {
15-
"@vue/cli-plugin-babel": "^5.0.8",
16-
"@vue/cli-service": "^5.0.8",
17-
"@vue/compiler-sfc": "^3.1.0"
18-
},
19-
"eslintConfig": {
20-
"root": true,
21-
"env": {
22-
"node": true
23-
},
24-
"extends": [
25-
"plugin:vue/essential",
26-
"eslint:recommended"
27-
],
28-
"rules": {},
29-
"parserOptions": {
30-
"parser": "babel-eslint"
31-
}
32-
},
33-
"browserslist": [
34-
"> 1%",
35-
"last 2 versions",
36-
"not ie <= 8"
37-
]
17+
"@codesandbox/vue-preview": "^0.1.1-alpha.16",
18+
"@vitejs/plugin-vue": "^4.0.0",
19+
"@vitejs/plugin-vue-jsx": "^3.1.0",
20+
"@vue/babel-preset-app": "^5.0.8",
21+
"vite": "^5.0.4"
22+
}
3823
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* eslint-disable import/no-extraneous-dependencies */
2+
import vue from '@vitejs/plugin-vue';
3+
import vueJsx from '@vitejs/plugin-vue-jsx';
4+
5+
export default {
6+
plugins: [vue(), vueJsx()],
7+
optimizeDeps: {
8+
include: [
9+
'@appbaseio/reactivecore',
10+
'@appbaseio/reactivesearch-vue',
11+
'fast-deep-equal',
12+
],
13+
},
14+
};

0 commit comments

Comments
 (0)