Skip to content

Commit

Permalink
added peppu bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
hannydevelop committed Jan 26, 2024
1 parent 6a96bbe commit 07a4d1f
Show file tree
Hide file tree
Showing 4 changed files with 2,155 additions and 2,161 deletions.
15 changes: 13 additions & 2 deletions main/public/assets/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Home = {
`,
mounted() {
// initialize grapesjs
grapesjs.init({
var editor = grapesjs.init({
container: '#gjs',
height: '100vh',
showOffsets: true,
Expand Down Expand Up @@ -209,12 +209,23 @@ const Home = {
],
},
// Add peppu and other plugins.
plugins: ['peppu-sidebar', 'peppu-panel', "gjs-blocks-basic", "grapesjs-plugin-forms", 'grapesjs-style-bg'],
plugins: ['peppu-sidebar', 'peppu-bootstrap', 'peppu-panel', "gjs-blocks-basic", "grapesjs-plugin-forms", 'grapesjs-style-bg'],
pluginsOpts: {
'peppu-sidebar': { /* Test here your options */ },
'peppu-bootstrap': {},
'gjs-blocks-basic': { flexGrid: true },
},
canvas: {
styles: [
"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
],
scripts: [
"https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
],
}
});
editor.setComponents();
editor.setStyle();
}
}
const Auth = {
Expand Down
3 changes: 3 additions & 0 deletions main/public/assets/js/peppu-bootstrap.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions main/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
</div>
<script src="./assets/js/peppu-panel.js"></script>
<script src="./assets/js/peppu-sidebar.js"></script>
<script src="./assets/js/peppu-bootstrap.js"></script>
<script src="./assets/js/blocks.js"></script>
<script src="./assets/js/forms.js"></script>
<script src="https://unpkg.com/grapesjs-style-bg"></script>
Expand Down
Loading

0 comments on commit 07a4d1f

Please sign in to comment.