Skip to content

Commit 8980a7f

Browse files
author
Lionel Bijaoui
committed
Project updated to vue-cli 3
1 parent e45d211 commit 8980a7f

Some content is hidden

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

76 files changed

+50103
-20158
lines changed

.babelrc

-18
This file was deleted.

.env.development

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VUE_APP_FULL_BUNDLE=true
2+
VUE_APP_DEV_PROJECT=["basic", "checklist", "custom", "full", "grouping", "multiselect", "multi", "picker"]

.env.test

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VUE_APP_FULL_BUNDLE=true

.eslintrc.js

-27
This file was deleted.

.gitignore

+19-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
.DS_Store
22
node_modules/
3-
docs/_book/
4-
npm-debug.log
5-
selenium-debug.log
3+
dist/*-report.html
64
test/unit/coverage
7-
test/e2e/reports
8-
stats.json
9-
typings/
10-
typings.json
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
15+
# Editor directories and files
16+
.idea
17+
.vscode
18+
*.suo
19+
*.ntvs*
20+
*.njsproj
21+
*.sln
22+
*.sw*

babel.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
presets: ["@vue/app"],
3+
plugins: ["lodash"]
4+
};

dev/app.vue

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<div class="container">
3+
<h1>Dev Project</h1>
4+
<ul>
5+
<li v-for="link in devProject" :key="link" >
6+
<a :href="'/' + link" v-text="link"></a>
7+
</li>
8+
</ul>
9+
</div>
10+
</template>
11+
12+
<script>
13+
export default {
14+
name: "index",
15+
data() {
16+
return {
17+
devProject: JSON.parse(process.env.VUE_APP_DEV_PROJECT)
18+
};
19+
}
20+
};
21+
</script>
22+
23+
<style lang="scss">
24+
@import "./style.scss";
25+
</style>

dev/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import Vue from "vue";
2+
import App from "./app.vue";
3+
4+
new Vue({
5+
render: (h) => h(App)
6+
}).$mount("#app");

dev/mixins/utils.js

+16-13
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,24 @@ export default {
1212
.replace(/&/g, "&amp;")
1313
.replace(/</g, "&lt;")
1414
.replace(/>/g, "&gt;");
15-
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g, function(match) {
16-
let cls = "number";
17-
if (/^"/.test(match)) {
18-
if (/:$/.test(match)) {
19-
cls = "key";
20-
} else {
21-
cls = "string";
15+
return json.replace(
16+
/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)/g,
17+
function(match) {
18+
let cls = "number";
19+
if (/^"/.test(match)) {
20+
if (/:$/.test(match)) {
21+
cls = "key";
22+
} else {
23+
cls = "string";
24+
}
25+
} else if (/true|false/.test(match)) {
26+
cls = "boolean";
27+
} else if (/null/.test(match)) {
28+
cls = "null";
2229
}
23-
} else if (/true|false/.test(match)) {
24-
cls = "boolean";
25-
} else if (/null/.test(match)) {
26-
cls = "null";
30+
return "<span class='" + cls + "'>" + match + "</span>";
2731
}
28-
return "<span class='" + cls + "'>" + match + "</span>";
29-
});
32+
);
3033
}
3134
}
3235
}

dev/projects/basic/index.html

+13-12
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,22 @@
22
<html lang="en">
33

44
<head>
5-
<meta charset="utf-8">
6-
<title>vue-form-generator development</title>
7-
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
5+
<meta charset="utf-8">
6+
<title>
7+
<%= htmlWebpackPlugin.options.title %>
8+
</title>
9+
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
810

9-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.js"></script>
10-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.min.js"></script>
11-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.min.js"></script>
12-
<!-- jQuery dependent -->
13-
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
11+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.js"></script>
12+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.15.1/moment.min.js"></script>
13+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.16.4/lodash.min.js"></script>
14+
<!-- jQuery dependent -->
15+
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
1416
</head>
1517

1618
<body>
17-
<div class="container-fluid"></div>
18-
<div id="app"></div>
19-
<script src="/basic.js"></script>
19+
<div class="container-fluid"></div>
20+
<div id="app"></div>
2021
</body>
2122

22-
</html>
23+
</html>

dev/projects/basic/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Vue.use(VueFormGenerator);
55
import App from "./app.vue";
66

77
new Vue({
8-
...App
8+
render: (h) => h(App)
99
}).$mount("#app");

dev/projects/checklist/index.html

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
<html lang="en">
33

44
<head>
5-
<meta charset="utf-8">
6-
<title>vue-form-generator multiselect demo</title>
7-
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
5+
<meta charset="utf-8">
6+
<title>
7+
<%= htmlWebpackPlugin.options.title %>
8+
</title>
9+
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
810
</head>
911

1012
<body>
11-
<div class="container-fluid"></div>
12-
<div id="app"></div>
13-
<script src="/checklist.js"></script>
13+
<div class="container-fluid"></div>
14+
<div id="app"></div>
1415
</body>
1516

16-
</html>
17+
</html>

dev/projects/checklist/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import Vue from "vue";
2-
import VueFormGenerator from "../../../src";
2+
import VueFormGenerator from "./../../../src";
33
Vue.use(VueFormGenerator);
44

55
import App from "./app.vue";
66

77
new Vue({
8-
...App
8+
render: (h) => h(App)
99
}).$mount("#app");

dev/projects/custom/index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
<head>
55
<meta charset="utf-8">
6-
<title>vue-form-generator multiple forms demo</title>
6+
<title>
7+
<%= htmlWebpackPlugin.options.title %>
8+
</title>
79
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU"
810
crossorigin="anonymous">
911
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css">
@@ -12,7 +14,6 @@
1214
<body>
1315
<div class="container-fluid"></div>
1416
<div id="app"></div>
15-
<script src="/custom.js"></script>
1617
</body>
1718

1819
</html>

dev/projects/custom/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Vue.use(VueFormGenerator);
55
import App from "./app.vue";
66

77
new Vue({
8-
...App
8+
render: (h) => h(App)
99
}).$mount("#app");

dev/projects/full/dataTable.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636
},
3737
3838
getRoleName(row) {
39-
let role = find(roles, role => role.id === row.role);
39+
let role = find(roles, (role) => role.id === row.role);
4040
return role ? role.name : "";
4141
}
4242
}

dev/projects/full/index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
<head>
55
<meta charset="utf-8">
6-
<title>vue-form-generator development</title>
6+
<title>
7+
<%= htmlWebpackPlugin.options.title %>
8+
</title>
79
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css">
810
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css">
911
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.11.2/css/bootstrap-select.min.css">
@@ -39,7 +41,6 @@
3941
<body>
4042
<div class="container-fluid"></div>
4143
<div id="app"></div>
42-
<script src="/full.js"></script>
4344
</body>
4445

4546
</html>

dev/projects/full/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Vue.use(VueFormGenerator);
55
import App from "./app.vue";
66

77
new Vue({
8-
...App
8+
render: (h) => h(App)
99
}).$mount("#app");

dev/projects/grouping/index.html

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22
<html lang="en">
33

44
<head>
5-
<meta charset="utf-8">
6-
<title>vue-form-generator multiple forms demo</title>
7-
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css">
5+
<meta charset="utf-8">
6+
<title>
7+
<%= htmlWebpackPlugin.options.title %>
8+
</title>
9+
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css">
810
</head>
911

1012
<body>
11-
<div class="container-fluid"></div>
12-
<div id="app"></div>
13-
<script src="/grouping.js"></script>
13+
<div class="container-fluid"></div>
14+
<div id="app"></div>
1415
</body>
1516

16-
</html>
17+
</html>

dev/projects/grouping/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Vue.use(VueFormGenerator);
55
import App from "./app.vue";
66

77
new Vue({
8-
...App
8+
render: (h) => h(App)
99
}).$mount("#app");

dev/projects/multi/index.html

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33

44
<head>
55
<meta charset="utf-8">
6-
<title>vue-form-generator development</title>
6+
<title>
7+
<%= htmlWebpackPlugin.options.title %>
8+
</title>
79
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
810

911
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.js"></script>
@@ -16,7 +18,6 @@
1618
<body>
1719
<div class="container-fluid"></div>
1820
<div id="app"></div>
19-
<script src="/multi.js"></script>
2021
</body>
2122

2223
</html>

dev/projects/multi/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Vue.use(VueFormGenerator);
55
import App from "./app.vue";
66

77
new Vue({
8-
...App
8+
render: (h) => h(App)
99
}).$mount("#app");

dev/projects/multiselect/index.html

+10-9
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
<html lang="en">
33

44
<head>
5-
<meta charset="utf-8">
6-
<title>vue-form-generator multiselect demo</title>
7-
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css">
8-
<link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/dist/vue-multiselect.min.css">
9-
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/vue-multiselect.min.js"></script>
5+
<meta charset="utf-8">
6+
<title>
7+
<%= htmlWebpackPlugin.options.title %>
8+
</title>
9+
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.css">
10+
<link rel="stylesheet" type="text/css" href="https://unpkg.com/[email protected]/dist/vue-multiselect.min.css">
11+
<script type="text/javascript" src="https://unpkg.com/[email protected]/dist/vue-multiselect.min.js"></script>
1012
</head>
1113

1214
<body>
13-
<div class="container-fluid"></div>
14-
<div id="app"></div>
15-
<script src="/mselect.js"></script>
15+
<div class="container-fluid"></div>
16+
<div id="app"></div>
1617
</body>
1718

18-
</html>
19+
</html>

dev/projects/multiselect/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Vue.use(VueFormGenerator);
55
import App from "./app.vue";
66

77
new Vue({
8-
...App
8+
render: (h) => h(App)
99
}).$mount("#app");

0 commit comments

Comments
 (0)