Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a9ee8ac

Browse files
author
Lionel Bijaoui
committed
Project updated to vue-cli 3
1 parent d7196e3 commit a9ee8ac

File tree

21 files changed

+121
-79
lines changed

21 files changed

+121
-79
lines changed

‎app.vue

Lines changed: 25 additions & 0 deletions
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>

‎index.js

Lines changed: 6 additions & 0 deletions
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");

‎mixins/utils.js

Lines changed: 16 additions & 13 deletions
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
}

‎projects/basic/index.html

Lines changed: 13 additions & 12 deletions
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>

‎projects/basic/main.js

Lines changed: 1 addition & 1 deletion
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");

‎projects/checklist/index.html

Lines changed: 8 additions & 7 deletions
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>

‎projects/checklist/main.js

Lines changed: 2 additions & 2 deletions
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");

‎projects/custom/index.html

Lines changed: 3 additions & 2 deletions
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>

‎projects/custom/main.js

Lines changed: 1 addition & 1 deletion
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");

‎projects/full/dataTable.vue

Lines changed: 1 addition & 1 deletion
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
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /