Giter Site home page Giter Site logo

bubblefront's Introduction

Bubble

葡萄后台开发框架,基于angularjs,bootstrap开发

Build

npm run build

Install

npm install

Start

npm start The app will be hosted at http://localhost:3000

directory

目录结构

页面组成

框架由路由驱动 页面由 模板 | 控制器 | 样式组成

路由配置

配置于public/js/bubble/routerConfig.js
获取一级路由
bubbleFrame.router()

设置多级路由,支持链式操作,详见routerConfig.js

配置demo

parent.add(demo(路由名称), 控制器, 依赖, 模板);
parent = router.setParent(demo, demoFile);  新增子路由demo,文件夹名称为demoFile
parent.add("wechat");                       demo子路由新增wechat路由
parent.add("demo1")();                       demo子路由新增demo1路由
parent.add("demo2","123")("123");                       demo子路由新增demo1路由

wechat页面文件存于
public/js/controller/demoFile/wecahtController.js
public/tpl/demoFile/wecaht.html

demo1页面文件则存于
public/js/controller/demoFile/demo1Controller.js
public/tpl/demoFile/demo1.html
public/style/demoFile/demo1.css

demo2页面文件则存于
public/js/controller/demoFile/123Controller.js
public/tpl/demoFile/demo2.html
public/style/demoFile/123.css

页面配置方法

parent.add(路由名称,控制器名称(若不填写则使用路由名称,null表示无控制器), [依赖项,详见public/js/bubble/lazyloadConfig.js])(页面子样式,若未填写名称则使用路由名称,框架会到style中寻找样式文件);

bubblefront's People

Contributors

putao520 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.