Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.4.x #739

Open
wants to merge 80 commits into
base: master
Choose a base branch
from
Open

1.4.x #739

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
833aa79
prepare 1.4.1
yiminghe Dec 2, 2013
baf3b31
update #510
yiminghe Dec 2, 2013
ae23944
update #510
yiminghe Dec 2, 2013
57920b7
fix dialog
yiminghe Dec 2, 2013
08f0b5b
fix require scan
yiminghe Dec 2, 2013
e6e16bd
update 1.4.1
yiminghe Dec 4, 2013
d43c71a
update escape
yiminghe Dec 5, 2013
b992501
update base
yiminghe Dec 6, 2013
2118dc0
release 1.4.1
yiminghe Dec 6, 2013
c725464
fix old ie bugs. Fixes #528
yiminghe Dec 9, 2013
adc1404
fix svg class. Fixes #532
yiminghe Dec 13, 2013
fdd55f9
fix #533
yiminghe Dec 13, 2013
0d6170f
update version
yiminghe Dec 13, 2013
219c3c8
rebuild
yiminghe Dec 19, 2013
4ec557b
update ts logic
yiminghe Dec 19, 2013
6a8caf5
update tc
yiminghe Dec 19, 2013
06b432a
update tc
yiminghe Dec 19, 2013
a9c5984
fix anim
yiminghe Dec 23, 2013
fc71220
fix bugs
yiminghe Jan 6, 2014
6cdd5d5
add picker css
yiminghe Jan 6, 2014
94ccc2c
up
yiminghe Jan 13, 2014
b46e81a
rebuild editor
yiminghe Jan 13, 2014
957287c
anti-alias for scroll-view.Fixes #554
yiminghe Jan 21, 2014
7d1a38d
adjust cacheFile for xtemplate/nodejs
yiminghe Feb 10, 2014
693ec5c
update xtemplate cli
yiminghe Feb 10, 2014
b19549d
return array for query
yiminghe Feb 11, 2014
fe06c24
fix scroll-view
yiminghe Feb 14, 2014
acc663e
update import-style
yiminghe Feb 19, 2014
834e817
for 1.4.2
yiminghe Feb 25, 2014
263d542
update version
yiminghe Feb 25, 2014
7db9536
for 1.4.2
yiminghe Feb 25, 2014
bbbf5f9
update
yiminghe Feb 25, 2014
60438ca
update scrollbar
yiminghe Feb 25, 2014
5874098
update scrollbar
yiminghe Feb 25, 2014
747c3c5
rebuild
yiminghe Feb 25, 2014
7a27d9d
update
yiminghe Feb 26, 2014
0687b40
fix #571
yiminghe Feb 26, 2014
6bcdf94
update tc
yiminghe Feb 26, 2014
523bd8d
rebuild
yiminghe Feb 27, 2014
a4aa3b9
fix word-filter
yiminghe Feb 27, 2014
7b8f1eb
update scroll-view
yiminghe Feb 28, 2014
1e07aeb
update
yiminghe Feb 28, 2014
3634fbb
fix data-picker
yiminghe Mar 3, 2014
35a88cd
update build
yiminghe Mar 3, 2014
1de9643
fix #574
yiminghe Mar 6, 2014
fa272d4
fix xtemplate
yiminghe Mar 7, 2014
84acb7a
1.4.3
yiminghe May 14, 2014
9caf8d3
1.4.3
yiminghe May 14, 2014
e867019
1.4.3
yiminghe May 14, 2014
7540e88
update dom for 1.4.3
yiminghe May 14, 2014
ef5ee01
fix #618
yiminghe May 14, 2014
b796be1
fix #627
yiminghe May 16, 2014
5b7581a
do not make menu focus on mouseenter
yiminghe May 16, 2014
0571ef5
rebuild for #630
yiminghe May 22, 2014
bfdc7f7
fix touch on wind8 chrome
yiminghe May 27, 2014
aa7cacb
update menubutton
yiminghe May 27, 2014
986862b
throw error in io-debug
yiminghe May 27, 2014
4fdf6fa
update watcher
yiminghe Jun 3, 2014
1f37a5a
fix #563 for display none iframe
yiminghe Jun 10, 2014
3e2d00c
update version
yiminghe Jun 26, 2014
b13470a
1.4.5
yiminghe Jul 23, 2014
49a54ee
update version
yiminghe Jul 23, 2014
7152b46
add 1.4.6. Fixes #675 #674
yiminghe Aug 18, 2014
7a6dc3e
update 1.4.6
yiminghe Aug 18, 2014
23b757b
fix anim/transition
yiminghe Aug 18, 2014
a57a5c7
1.4.7
yiminghe Aug 18, 2014
761528d
fix ie11 pointer event. Fixes #574
yiminghe Aug 20, 2014
c5e2b4a
add domEvent for tree
yiminghe Aug 20, 2014
6f2853e
update version
yiminghe Aug 22, 2014
19b0f67
1.4.8
yiminghe Aug 28, 2014
f35e49c
1.4.8
yiminghe Aug 28, 2014
b8325cf
update #677
yiminghe Aug 28, 2014
abb58de
update #677
yiminghe Aug 28, 2014
18274cc
update #677
yiminghe Aug 28, 2014
9a4b49e
update version
yiminghe Aug 28, 2014
44bb6b1
prepare 1.4.9
yiminghe Sep 4, 2014
21b29da
update 1.4.9
yiminghe Sep 4, 2014
b97f6d9
update loader
yiminghe Sep 4, 2014
1f1e2b9
fix menubutton. Fixes #673
yiminghe Sep 4, 2014
d0d6a05
fix combobox enter.Fixes #686
yiminghe Sep 12, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
src/
build/editor/
build/editor.js
*-min.*
tools/
docs/
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@

### 最简用例

当出现问题时,请精简出错代码到最简,避免和具体业务相关联,避免其他无关的代码执行
当出现问题时,请精简出错代码到最简,避免和具体业务相关联,避免其他无关的代码执行,并提交到 jsfidder.


## 如何提交 patch

### 代码规范

patch 代码格式请参考 [KISSY 源码规范](http://docs.kissyui.com/docs/html/tutorials/style-guide/kissy-source-style.html)
patch 代码格式请参考 [KISSY 源码规范](http://docs.kissyui.com/1.4/docs/html/tutorials/style-guide/kissy-source-style.html),
并在提交前对代码执行 jshint,确保 pass.

### 环境: Node/Ant/Java

Expand Down
27 changes: 14 additions & 13 deletions bin/kissy-kison.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
var program = require('./lib/commander');
program
.option('-g, --grammar <grammar>', 'Set kison grammar file')
.option('-p, --path <path>', 'Set generated file path')
.option('-e, --encoding [encoding]', 'Set grammar file encoding', 'utf-8')
.option('-w, --watch', 'Watch grammar file change')
// defaults bool true
Expand All @@ -16,9 +15,9 @@ program
.parse(process.argv);

var S = require('../build/kissy-nodejs'),
/*jshint camelcase:false*/
js_beautify = require('js-beautify').js_beautify,
fs = require('fs'),
m_path = program.path,
path = require('path'),
grammar = path.resolve(program.grammar),
encoding = program.encoding;
Expand All @@ -38,13 +37,9 @@ var grammarBaseName = path.basename(grammar, '-grammar.kison');

var modulePath;

if (m_path) {
// S.log('*********** m_path:');
m_path = path.resolve(m_path) + '/';
modulePath = m_path + grammarBaseName + '.js';
} else {
modulePath = path.resolve(grammar, '../' + grammarBaseName + '.js');
}

modulePath = path.resolve(grammar, '../' + grammarBaseName + '.js');


// S.log('*********** modulePath:');
// S.log(modulePath);
Expand All @@ -54,14 +49,20 @@ var codeTemplate = '' +
' Generated by kissy-kison.' +
'*/\n' +
'KISSY.add(function(_, undefined){\n' +
'/*jshint quotmark:false, loopfunc:true, indent:false, unused:false, asi:true, boss:true*/\n' +
'{code}\n' +
'});';

function my_js_beautify(str) {
//return str;
var opts = {"indent_size": "4", "indent_char": " ",
"preserve_newlines": true, "brace_style": "collapse",
"keep_array_indentation": false, "space_after_anon_function": true};
var opts = {
'indent_size': '4',
'indent_char': ' ',
'preserve_newlines': true,
'brace_style': 'collapse',
'keep_array_indentation': false,
'space_after_anon_function': true
};
return js_beautify(str, opts);
}

Expand All @@ -73,7 +74,7 @@ S.use('kison', function (S, KISON) {

console.info('start generate grammar module: ' + modulePath + '\n');
var start = S.now();

/*jshint evil:true*/
var code = new KISON.Grammar(eval(grammarContent)).genCode(kisonCfg);

var moduleCode = my_js_beautify(S.substitute(codeTemplate, {
Expand Down
7 changes: 3 additions & 4 deletions bin/kissy-xtemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ S.use('xtemplate/compiler', function (S, XTemplateCompiler) {
var moduleCode = myJsBeautify(
'/** Compiled By kissy-xtemplate */\n' +
'KISSY.add(function(S,require,exports,module){\n' +
'/*jshint quotmark: false, unused:false, indent:false*/\n' +
'/*jshint quotmark:false, loopfunc:true, indent:false, asi:true, unused:false, boss:true*/\n' +
'return ' + XTemplateCompiler.compileToStr(tplContent)) + ';\n' +
'});';
fs.writeFileSync(modulePath, moduleCode, encoding);
Expand All @@ -60,8 +60,8 @@ S.use('xtemplate/compiler', function (S, XTemplateCompiler) {

function process(filePath) {
var modulePath;
if (S.endsWith(filePath, '.xtpl.html')) {
modulePath = filePath.replace(/\.xtpl\.html$/, '-xtpl.js');
if (S.endsWith(filePath, '.xtpl.html')||S.endsWith(filePath, '-xtpl.html')) {
modulePath = filePath.replace(/[.-]xtpl\.html$/, '-xtpl.js');
compile(filePath, modulePath);
} else if (S.endsWith(filePath, '.tpl.html')) {
modulePath = filePath.replace(/\.tpl\.html$/, '-tpl.js');
Expand All @@ -81,7 +81,6 @@ S.use('xtemplate/compiler', function (S, XTemplateCompiler) {
if (program.watch) {
var watcher = chokidar.watch(packagePath, {ignored: /^\./, persistent: true});
watcher.on('add', process).on('change', process);
watcher.close();
} else {
var walk = require('walk');
//noinspection JSUnresolvedFunction
Expand Down
8 changes: 4 additions & 4 deletions build/anim-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/anim.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright 2013, KISSY v1.50dev
Copyright 2014, KISSY v1.49.10
MIT Licensed
build time: Dec 2 15:11
build time: May 22 12:15
*/
/*
Combined processedModules by KISSY Module Compiler:
Expand Down
16 changes: 8 additions & 8 deletions build/anim/base-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 9 additions & 10 deletions build/anim/base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright 2013, KISSY v1.50dev
Copyright 2014, KISSY v1.49.10
MIT Licensed
build time: Dec 2 15:10
build time: May 22 12:15
*/
/*
Combined processedModules by KISSY Module Compiler:
Expand Down Expand Up @@ -227,15 +227,14 @@ KISSY.add("anim/base", ["dom", "./base/utils", "./base/queue", "promise"], funct
_backupProps[prop] = Dom.style(node, prop);
if(val === "toggle") {
val = hidden ? "show" : "hide"
}
if(val === "hide") {
_propData.value = 0;
_backupProps.display = "none"
}else {
if(val === "hide") {
_propData.value = 0;
_backupProps.display = "none"
}else {
_propData.value = Dom.css(node, prop);
Dom.css(node, prop, 0);
Dom.show(node)
}
_propData.value = Dom.css(node, prop);
Dom.css(node, prop, 0);
Dom.show(node)
}
}
return undefined
Expand Down
Loading