File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -5,26 +5,20 @@ import { createApp } from 'vue';
5
5
import { createPinia } from 'pinia' ;
6
6
import { registerPlugins } from './plugins' ;
7
7
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' ;
8
- import {
9
- VInlineCheckbox ,
10
- VInlineSelect ,
11
- VInlineSwitch ,
12
- VInlineTextField ,
13
- VInlineTextarea ,
14
- } from './index' ;
8
+ import * as VInlineFields from './index' ;
9
+ import { makeServer } from './server' ;
15
10
11
+ makeServer ( { environment : 'demo' } ) ;
16
12
17
13
const app = createApp ( App ) ;
18
14
app . use ( CodeBlock ) ;
19
15
app . use ( createPinia ( ) ) ;
20
16
app . component ( 'font-awesome-icon' , FontAwesomeIcon ) ;
21
17
app . component ( 'FaIcon' , FontAwesomeIcon ) ;
22
18
23
- app . component ( 'VInlineCheckbox' , VInlineCheckbox ) ;
24
- app . component ( 'VInlineSelect' , VInlineSelect ) ;
25
- app . component ( 'VInlineSwitch' , VInlineSwitch ) ;
26
- app . component ( 'VInlineTextField' , VInlineTextField ) ;
27
- app . component ( 'VInlineTextarea' , VInlineTextarea ) ;
19
+ for ( const prop in VInlineFields ) {
20
+ app . component ( prop , VInlineFields [ prop ] ) ;
21
+ }
28
22
29
23
registerPlugins ( app ) ;
30
24
You can’t perform that action at this time.
0 commit comments