rubylouvre / avalon.bootstrap Goto Github PK
View Code? Open in Web Editor NEW基于avalon的bootstrap
基于avalon的bootstrap
格式: Q名-Q群
当前目录结构不利于多组件协作的开发和测试
比如grid增加button的支持,如果button进行调整,无法进行grid中增加button的测试
考虑到oniui中遇到的多组件协作的问题,建议对目录进行修改
-- dist 编译结果目录
---- css 编译后的bootstrap
---- fonts 编译后的图标字体文件
---- js 各种avalon.bootstrap组件
---- lib 引用的avalon框架
-- docs 组件文档,通过代码注释动态生成
-- fonts 图标字体源文件目录
-- grunt 命令行grunt,部分特殊操作需要通过api的形式调用grunt
-- js avalon.bootstrap组件源码目录
---- lib 引用框架目录
---- tests 测试框架目录
---- scss sass源码目录
-- RULES 代码规范说明
-- LICENSE 授权说明
-- README 项目说明
详见[https://github.com/scgy5555/avalon.bootstrap/tree/develop]
将源码统一放置同一层目录,便于多组件功能协作,并增加测试环境,每次提交必须通过测试
通过grunt部署开发环境,便于其他成员参与
通过travis-ci实现持续集成,有利于版本稳定性
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
</head>
<body ms-controller="test">
<script type="text/javascript" src="avalon.js"></script>
<script type="text/javascript">
avalon.component("ms:aB",{
$slot:"content",
$replace:"true",
$template:"<div>{{content|html}}</div>",
content: "",
$ready: function(vm, el){
avalon(el).addClass("xxx")
}
})
var a = avalon.define({
$id: "test"
})
</script>
<ms:a_b class="yyy"><span>111</span></ms:a_b>
</body>
</html>
$ npm init // 用于初始化项目的package.json
$ npm install webpack -g
$ npm install style-loader css-loader url-loader babel-loader sass-loader file-loader -g
然后每个子目录下 npm link webpack style-loader css-loader url-loader
功能:
1.启动
2.设定进度
3.停止
进度递增算法:
完成进度条为100%
0 ~ 25% :随机递增 3% ~ 6% 每秒
25% ~ 65%:随机递增 0.1% ~ 3% 每秒
65% ~ 90%:随机递增 0.1% ~ 2% 每秒
90% ~ 99%:固定递增 0.5% 每秒
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.