Skip to content

Commit a019920

Browse files
Updating loading components
1 parent 48ef471 commit a019920

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

src/main.ts

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,20 @@ import { createApp } from 'vue';
55
import { createPinia } from 'pinia';
66
import { registerPlugins } from './plugins';
77
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';
1510

11+
makeServer({ environment: 'demo' });
1612

1713
const app = createApp(App);
1814
app.use(CodeBlock);
1915
app.use(createPinia());
2016
app.component('font-awesome-icon', FontAwesomeIcon);
2117
app.component('FaIcon', FontAwesomeIcon);
2218

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+
}
2822

2923
registerPlugins(app);
3024

0 commit comments

Comments
 (0)