File tree 11 files changed +408
-17
lines changed
11 files changed +408
-17
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " vue-app-starterkit-test " ,
2
+ "name" : " vue-app-starterkit" ,
3
3
"version" : " 0.1.0" ,
4
- "private" : true ,
4
+ "private" : false ,
5
5
"scripts" : {
6
6
"serve" : " vue-cli-service serve" ,
7
7
"build" : " vue-cli-service build" ,
8
8
"lint" : " vue-cli-service lint"
9
9
},
10
10
"dependencies" : {
11
+ "bootstrap-sass" : " ^3.4.1" ,
12
+ "bootswatch" : " ^3.4.1" ,
11
13
"core-js" : " ^2.6.5" ,
12
14
"vue" : " ^2.6.10" ,
13
15
"vue-class-component" : " ^7.0.2" ,
16
+ "vue-formio" : " ^4.0.0" ,
14
17
"vue-property-decorator" : " ^8.1.0" ,
15
18
"vue-router" : " ^3.0.3" ,
16
19
"vuex" : " ^3.0.1"
Original file line number Diff line number Diff line change 6
6
< meta name ="viewport " content ="width=device-width,initial-scale=1.0 ">
7
7
< link rel ="icon " href ="<%= BASE_URL %>favicon.ico ">
8
8
< title > vue-app-starterkit-test</ title >
9
+ < link rel ="
stylesheet "
href ="
https://unpkg.com/[email protected] /dist/formio.full.min.css "
>
9
10
</ head >
10
11
< body >
11
12
< noscript >
Original file line number Diff line number Diff line change 2
2
<div id =" app" >
3
3
<div id =" nav" >
4
4
<router-link to =" /" >Home</router-link > |
5
- <router-link to =" /about" >About</router-link >
5
+ <router-link to =" /about" >About</router-link > |
6
+ <router-link to =" /form" >Form</router-link > |
7
+ <router-link to =" /builder" >Form Builder</router-link >
6
8
</div >
7
9
<router-view />
8
10
</div >
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import Vue from 'vue';
2
2
import App from './App.vue' ;
3
3
import router from './router' ;
4
4
import store from './store' ;
5
+ import './styles.scss' ;
5
6
6
7
Vue . config . productionTip = false ;
7
8
Original file line number Diff line number Diff line change 1
1
import Vue from 'vue' ;
2
2
import Router from 'vue-router' ;
3
3
import Home from './views/Home.vue' ;
4
+ import Form from './views/Form.vue' ;
5
+ import Builder from './views/Builder.vue' ;
4
6
5
7
Vue . use ( Router ) ;
6
8
@@ -21,5 +23,15 @@ export default new Router({
21
23
// which is lazy-loaded when the route is visited.
22
24
component : ( ) => import ( /* webpackChunkName: "about" */ './views/About.vue' ) ,
23
25
} ,
26
+ {
27
+ path : '/form' ,
28
+ name : 'form' ,
29
+ component : Form ,
30
+ } ,
31
+ {
32
+ path : '/builder' ,
33
+ name : 'builder' ,
34
+ component : Builder ,
35
+ } ,
24
36
] ,
25
37
} ) ;
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ declare module '*.vue' {
2
2
import Vue from 'vue' ;
3
3
export default Vue ;
4
4
}
5
+
6
+ declare module 'formiojs/Formio' ;
Original file line number Diff line number Diff line change
1
+ $icon-font-path : " ../node_modules/bootstrap-sass/assets/fonts/bootstrap/" ;
2
+ @import " ../node_modules/bootswatch/yeti/_variables.scss" ;
3
+ @import " ../node_modules/bootstrap-sass/assets/stylesheets/_bootstrap.scss" ;
4
+ @import " ../node_modules/bootswatch/yeti/_bootswatch.scss" ;
5
+
6
+ .footer {
7
+ margin-top : 10px ;
8
+ width : 100% ;
9
+ height : 60px ;
10
+ line-height : 60px ;
11
+ background-color : #f5f5f5 ;
12
+ text-align : center ;
13
+ }
14
+
15
+ .hero-image {
16
+ display : inline ;
17
+ height : 2em ;
18
+ }
19
+
20
+ .text-blue {
21
+ color : #127ABF ;
22
+ }
23
+
24
+ .text-green {
25
+ color : #449414 ;
26
+ }
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" home" >
3
+ <img alt =" Vue logo" src =" ../assets/logo.png" >
4
+ <FormBuilder v-bind:form =" form" />
5
+ </div >
6
+ </template >
7
+
8
+ <script lang="ts">
9
+ import { Component , Vue } from ' vue-property-decorator' ;
10
+ import { FormBuilder } from ' vue-formio' ;
11
+
12
+ @Component ({
13
+ components: {
14
+ FormBuilder ,
15
+ },
16
+ data : () => {
17
+ return {
18
+ form: {},
19
+ };
20
+ },
21
+ })
22
+ export default class Home extends Vue {}
23
+ </script >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <div class =" home" >
3
+ <Form src =" https://examples.form.io/example" />
4
+ </div >
5
+ </template >
6
+
7
+ <script lang="ts">
8
+ import { Component , Vue } from ' vue-property-decorator' ;
9
+ import { Form } from ' vue-formio' ;
10
+
11
+ @Component ({
12
+ components: {
13
+ Form ,
14
+ },
15
+ })
16
+ export default class Home extends Vue {}
17
+ </script >
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "target" : " esnext " ,
3
+ "target" : " es5 " ,
4
4
"module" : " esnext" ,
5
5
"strict" : true ,
6
6
"jsx" : " preserve" ,
You can’t perform that action at this time.
0 commit comments