File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
import '@/libraries/fontawesome' ;
2
2
import App from './App.vue' ;
3
- import CodeBlock from '@wdns/vue-code-block' ;
3
+ import { createVCodeBlock } from '@wdns/vue-code-block' ;
4
4
import { createApp } from 'vue' ;
5
5
import { createPinia } from 'pinia' ;
6
6
import { registerPlugins } from './plugins' ;
@@ -10,7 +10,8 @@ import { VColorField } from './index';
10
10
11
11
const app = createApp ( App ) ;
12
12
13
- app . component ( 'CodeBlock' , CodeBlock ) ;
13
+ app . use ( createVCodeBlock ( ) ) ;
14
+
14
15
app . use ( createPinia ( ) ) ;
15
16
app . component ( 'font-awesome-icon' , FontAwesomeIcon ) ;
16
17
app . component ( 'FaIcon' , FontAwesomeIcon ) ;
Original file line number Diff line number Diff line change 1
1
import '@/libraries/fontawesome' ;
2
2
import PlaygroundApp from './PlaygroundApp.vue' ;
3
- import CodeBlock from '@wdns/vue-code-block' ;
4
3
import { createApp } from 'vue' ;
5
4
import { createPinia } from 'pinia' ;
6
5
import { registerPlugins } from '../../plugins' ;
7
6
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' ;
8
7
import VColorField from '../../index' ;
9
8
9
+
10
10
const app = createApp ( PlaygroundApp ) ;
11
- app . component ( 'CodeBlock' , CodeBlock ) ;
11
+
12
12
app . use ( createPinia ( ) ) ;
13
13
app . component ( 'font-awesome-icon' , FontAwesomeIcon ) ;
14
14
app . component ( 'FaIcon' , FontAwesomeIcon ) ;
You can’t perform that action at this time.
0 commit comments