ページビルダーJavaScriptライブラリをドラッグアンドドロップします。
依存関係やビルドツールとブートストラップを伴わないバニラJSで構築
ウェブサイト|ドキュメント|フォーラム|ツイッター
vvvebjsページビルダーを使用した完全な注目のオープンソースCMSをチェックするvvveb cms
デモページとブートストラップ5セクションとブロックにVVVEBランディングページテンプレートを使用します。
デフォルトでは、エディターにはブートストラップ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やOpen http://localhost/editor.htmlなどのWebサーバーを使用する必要があります。
画像のアップロードまたはページ保存機能を使用するには、PHPをインストールする必要があります。
VVVEBJSフォルダーの実行から
docker-compose upまたは画像を実行します
docker run -p 8080:80 vvveb/vvvebjshttp:// localhost:8080/editor.phpまたはhttp:// localhost:8080/editor.htmlを開きます
ページ関数を保存するには、PHPまたはノードのいずれかが必要です
Dockerを使用する場合、XAMPPまたは共有ホスティングアカウントPHPは、変更せずに機能するはずです。
保存はsave.phpを使用して行われます
ノードの場合は、vvvebjsフォルダーに移動して実行します
npm install express
node save.jshttp:// localhost:8080/editor.htmlを開きます
Save.jsを使用して保存が行われます
テンプレートファイルまたはセクションに変更を加えるにはdemo/landingフォルダーから次のコマンドを実行します
npm iテンプレートHTMLパーティシャルはdemo/landing/srcフォルダーにあります。
npm run gulpnpm run gulp watchセクションHTMLファイルは、セクショングループ名のあるフォルダーにグループ化された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テンプレート編集editor.html
CSSの変更の場合、edit scss/editor.scssおよびscss/_builder.scssを変更します
SCSSをCSSにコンパイルするには、最初にGULPをインストールします
npm iその後、実行できます
npm run gulpまたは、Watchを使用してファイルの変更をコンパイルします。
npm run gulp watchドキュメントについては、wikiを確認してください
プロジェクトが好きなら、PayPalの寄付でサポートするか、Open Collective経由で支援者/スポンサーになることができます
Apache 2.0