拖动页面构建器JavaScript库。
由没有依赖项或构建工具和bootstrap 5的香草JS构建
网站|文档|论坛|叽叽喳喳
对于完整的特色开源CMS,使用VVVEBJS页面构建器检查VVVEB CMS
使用VVVEB登录页面模板进行演示页面和Bootstrap 5个部分和块。
默认情况下,编辑器带有Bootstrap 5和小部件组件,可以使用任何类型的组件和输入扩展。
# git 2.13+
git clone --recurse-submodules https://github.com/givanz/VvvebJs
# older git versions
git clone --recursive https://github.com/givanz/VvvebJsgit pull --recurse-submodules克隆存储库或下载版本,然后打开editor.html
由于浏览器IFRAME安全性,您需要使用网络服务器,例如Apache/XAMPP并打开http://localhost/editor.html
要使用图像上传或页面保存功能,您需要安装PHP。
从vvvebjs文件夹运行
docker-compose up或运行图像
docker run -p 8080:80 vvveb/vvvebjs打开http:// localhost:8080/editor.php或http:// localhost:8080/editor.html
保存页面功能需要PHP或节点
如果您使用Docker,则XAMPP或共享托管帐户PHP应该无需任何更改。
保存是使用save.php完成的
对于节点,请转到VVVEBJS文件夹并运行
npm install express
node save.js打开http:// localhost:8080/editor.html
保存是使用save.js完成的
要更改模板文件或部分从demo/landing文件夹运行以下命令
npm i模板HTML部分位于demo/landing/src文件夹中。
npm run gulpnpm run gulp watchhtml文件的部分位于demo/landing/src/sections文件夹中,该文件夹中的文件夹中的部分组组名称。
npm run gulp sections块HTML文件位于demo/landing/src/blocks文件夹中,该文件夹在带有块组名称的文件夹中分组。
npm run gulp blocksnpm run gulp screenshots<!-- bootstrap-->
< script src = "js/popper.min.js" > </ script >
< script src = "js/bootstrap.min.js" > < / script >
<!-- builder code-->
< script src = "libs/builder/builder.js" > </ script >
<!-- undo manager-->
< script src = "libs/builder/undo.js" > </ script >
<!-- inputs-->
< script src = "libs/builder/inputs.js" > </ script >
<!-- components-->
< script src = "libs/builder/components-bootstrap5.js" > </ script >
< script src = "libs/builder/components-widgets.js" > </ script >
< script >
let pages = [
{
name : "narrow-jumbotron" ,
title : "Jumbotron" ,
url : "demo/narrow-jumbotron/index.html" ,
file : "demo/narrow-jumbotron/index.html"
} ,
{ name : "landing-page" , title : "Landing page" , url : "demo/landing/index.html" , file : "demo/landing/index.html" } ,
];
let firstPage = Object.keys(pages)[0];
Vvveb.Builder.init(pages[firstPage]["url"], function() {
//load code after page is loaded here
} );
Vvveb.Gui.init();
Vvveb.FileManager.init();
Vvveb.SectionList.init();
Vvveb.Breadcrumb.init();
Vvveb.FileManager.addPages(pages);
Vvveb.FileManager.loadPage(pages[firstPage]["name"]);
Vvveb.Gui.toggleRightColumn(false);
Vvveb.Breadcrumb.init();
< script >对于编辑器html和组件/输入JavaScript模板编辑编辑编辑编辑器.html
用于CSS更改编辑SCSS/EDITOR.SCSS和SCSS/_BUILDER.SCSS
将SCSS编译到CSS首先安装Gulp
npm i那你可以运行
npm run gulp或使用手表来编译文件更改。
npm run gulp watch用于文档检查Wiki
如果您喜欢该项目,则可以通过贝宝(Paypal
Apache 2.0