File tree Expand file tree Collapse file tree 5 files changed +86
-1
lines changed Expand file tree Collapse file tree 5 files changed +86
-1
lines changed Original file line number Diff line number Diff line change 4
4
</b-container >
5
5
</template >
6
6
7
- <script setup lang="ts"></script >
7
+ <script setup lang="ts">
8
+ // This is a playground to simulate the environment of a user. Not for developing components
9
+ // (Since it uses /dist, it will not cause a rerender here, and main package must be built to see changes)
10
+ </script >
8
11
9
12
<style >
10
13
details .accordion-item summary {
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="">
3
+ < head >
4
+ < meta charset ="utf-8 " />
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6
+ < meta name ="viewport " content ="width=device-width,initial-scale=1.0 " />
7
+ < link rel ="icon " href ="/favicon.ico " />
8
+ < title > bootstrap-vue</ title >
9
+ </ head >
10
+ < body >
11
+ < noscript >
12
+ < strong >
13
+ We're sorry but this doesn't work properly without JavaScript enabled. Please enable it to
14
+ continue.
15
+ </ strong >
16
+ </ noscript >
17
+ < div id ="app "> </ div >
18
+ < script type ="module " src ="/src/main.ts "> </ script >
19
+ </ body >
20
+ </ html >
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <b-container >
3
+ <b-row >
4
+ <b-col > Hello world </b-col >
5
+ </b-row >
6
+ </b-container >
7
+ </template >
8
+
9
+ <script setup lang="ts">
10
+ // Implement things here
11
+ // TODO perhaps this should be more expanded like ./apps/playground
12
+ // Or it could be barebones for one a single component development cycle is required
13
+ // Create a discussion with your thoughts if you think it should be changed
14
+ </script >
Original file line number Diff line number Diff line change
1
+ import { createApp , h } from 'vue'
2
+ import App from './App.vue'
3
+ import BootstrapVue , { BToastPlugin } from './BootstrapVue'
4
+
5
+ import { createRouter , createWebHistory } from 'vue-router'
6
+
7
+ const router = createRouter ( {
8
+ history : createWebHistory ( ) ,
9
+ routes : [
10
+ {
11
+ path : '/' ,
12
+ name : 'Home' ,
13
+ component : {
14
+ name : 'Home' ,
15
+ render ( ) {
16
+ return h ( 'h1' , { } , 'Home page' )
17
+ } ,
18
+ } ,
19
+ } ,
20
+ {
21
+ path : '/test' ,
22
+ name : 'test' ,
23
+ component : {
24
+ name : 'Test' ,
25
+ render ( ) {
26
+ return h ( 'h1' , { } , 'test page' )
27
+ } ,
28
+ } ,
29
+ } ,
30
+ {
31
+ path : '/about/:id' ,
32
+ name : 'About' ,
33
+ component : {
34
+ name : 'About' ,
35
+ props : { id : [ Number , String ] } ,
36
+ render ( ) {
37
+ return h ( 'h1' , { } , `About page ${ this . props . id } ` )
38
+ } ,
39
+ } ,
40
+ props : true ,
41
+ } ,
42
+ ] ,
43
+ } )
44
+
45
+ import 'bootstrap/dist/css/bootstrap.min.css'
46
+ import './styles/styles.scss'
47
+
48
+ createApp ( App ) . use ( BootstrapVue ) . use ( BToastPlugin ) . use ( router ) . mount ( '#app' )
You can’t perform that action at this time.
0 commit comments