Skip to content

Commit 6fca061

Browse files
authored
Merge pull request #504 from VividLemon/dev
revert: add back in app.vue in /package/bootstrap*
2 parents b38ec28 + 9e80d24 commit 6fca061

File tree

5 files changed

+86
-1
lines changed

5 files changed

+86
-1
lines changed

apps/playground/src/App.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
</b-container>
55
</template>
66

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>
811

912
<style>
1013
details.accordion-item summary {

packages/bootstrap-vue-3/index.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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>
14.7 KB
Binary file not shown.

packages/bootstrap-vue-3/src/App.vue

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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>

packages/bootstrap-vue-3/src/main.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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')

0 commit comments

Comments
 (0)