boss-pagebuilder 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -0
- package/dist/boss-pagebuilder.css +1 -0
- package/dist/boss-pagebuilder.js +41740 -0
- package/dist/index.d.ts +70 -0
- package/dist/vite.svg +1 -0
- package/package.json +60 -0
package/README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Boss Page Builder
|
|
2
|
+
|
|
3
|
+
A Vue 3 Page Builder library with Bootstrap 5 support.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install the package in your Vue project:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# Using npm with a local tarball (for testing)
|
|
11
|
+
npm install ./path/to/boss-pagebuilder-0.0.1.tgz
|
|
12
|
+
|
|
13
|
+
# Or if published to a registry
|
|
14
|
+
npm install boss-pagebuilder
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Setup
|
|
18
|
+
|
|
19
|
+
In your `main.ts` or `main.js`:
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { createApp } from 'vue'
|
|
23
|
+
import App from './App.vue'
|
|
24
|
+
import BossPageBuilder from 'boss-pagebuilder'
|
|
25
|
+
import 'boss-pagebuilder/style.css' // Import styles
|
|
26
|
+
|
|
27
|
+
const app = createApp(App)
|
|
28
|
+
|
|
29
|
+
app.use(BossPageBuilder) // Registers all components globally
|
|
30
|
+
|
|
31
|
+
app.mount('#app')
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Usage
|
|
35
|
+
|
|
36
|
+
### Full Page Builder
|
|
37
|
+
|
|
38
|
+
To use the full page builder interface (Layout, Sidebar, Canvas, Properties):
|
|
39
|
+
|
|
40
|
+
```vue
|
|
41
|
+
<template>
|
|
42
|
+
<div class="page-builder-wrapper">
|
|
43
|
+
<BossPageBuilder />
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
|
|
47
|
+
<style>
|
|
48
|
+
.page-builder-wrapper {
|
|
49
|
+
height: 100vh; /* Ensure container has height */
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
</style>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Individual Components
|
|
56
|
+
|
|
57
|
+
You can also use individual components like the Rich Text Editor:
|
|
58
|
+
|
|
59
|
+
```vue
|
|
60
|
+
<script setup lang="ts">
|
|
61
|
+
import { ref } from 'vue'
|
|
62
|
+
import { Editor } from 'boss-pagebuilder'
|
|
63
|
+
|
|
64
|
+
const content = ref('<p>Hello World</p>')
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<template>
|
|
68
|
+
<Editor v-model="content" :chars-per-sms="160" />
|
|
69
|
+
</template>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Requirements
|
|
73
|
+
|
|
74
|
+
- **Vue**: ^3.3.0
|
|
75
|
+
- **Bootstrap**: ^5.3.0 (Styles are included)
|