ax5ui / ax5ui-kernel Goto Github PK
View Code? Open in Web Editor NEWJavascript UI Framework - AX5UI - Kernel Module
Home Page: http://ax5.io
License: MIT License
Javascript UI Framework - AX5UI - Kernel Module
Home Page: http://ax5.io
License: MIT License
I am trying to find how to create item on click function out but i could not what am i missing? Can you please give an example how to do it? I tried something like this:
menu.onLoad = function(){ $(this).find("[data-menu-item-index]").on('click', function(){
var index = $(this).getAttribute("data-menu-item-index");
if(index == 0){ do something.... }
else if(index == 1){ do another thing }
else if(index ==2){ do etc... } }); };
#!/usr/bin/env bash
LOG=`git log --pretty=oneline --abbrev-commit -1`
rm -rf .subsplit
case "$LOG" in
*MAJOR@*) echo "Major Version"; VERSION_TYPE="MAJOR";;
*MINOR@*) echo "Minor version"; VERSION_TYPE="MINOR";;
*PATCH@*) echo "Patch Version"; VERSION_TYPE="PATCH";;
esac
if [ $VERSION_TYPE ]
then
git checkout master
git pull origin master
case "$VERSION_TYPE" in
*MAJOR*) VERSION=$(npm version major --force);;
*MINOR*) VERSION=$(npm version minor --force);;
*PATCH*) VERSION=$(npm version patch --force);;
esac
VERSION=$(echo $VERSION | cut -c 2-)
echo "VERSION : " $VERSION
echo "START VERSION UP PROCESS"
npm install && gulp version
git add *
echo "Git Commit & Push"
git commit -m "$VERSION RELEASED" && git pull origin master && git push origin master
fi
에서 VERSION_TYPE 이 없는 상황이 나오고 있습니다.
도움이 필요합니다.
npm WARN using --force I sure hope you know what you are doing.
VERSION : 1.4.11
START VERSION UP PROCESS
npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN engine [email protected]: wanted: {"node":">=4"} (current: {"node":"0.12.5","npm":"2.11.2"})
> [email protected] postinstall /data/deploy/.jenkins/jobs/AX5-KERNEL/workspace/node_modules/opencollective-postinstall
> ./bin/setup.js
/data/deploy/.jenkins/jobs/AX5-KERNEL/workspace/node_modules/opencollective-postinstall/bin/setup.js:38
debug(`Parent dir (${parentDir}) is not "node_modules", exiting`);
^
SyntaxError: Unexpected token ILLEGAL
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3
npm ERR! Linux 2.6.32-573.22.1.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `./bin/setup.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script './bin/setup.js'.
npm ERR! This is most likely a problem with the opencollective-postinstall package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./bin/setup.js
npm ERR! You can get their info via:
npm ERR! npm owner ls opencollective-postinstall
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /data/deploy/.jenkins/jobs/AX5-KERNEL/workspace/npm-debug.log
symbolic link files are not commit to github.
src/ax5core/dist -> src/ax5docs/_assets/lib/ax5core
<div data-modal-els="body-frame" style="position: absolute;left:0;top:0;width:100%;height:100%;"></div>
위 div가 추가되면서 기존에 구현된 컨텐츠가 해당 div에 가려져서 클릭이 안되는 이슈가 발생하고 있습니다.
div[data-modal-els="body-frame"]는 왜 추가된건가요?
<div id="ax5-modal-38" data-modal-els="root" class="ax5modal default " style="width: 300px; height: 215px; left: 37.5px; top: 226px;">
<div class="ax-modal-body" data-modal-els="body">
<div data-modal-els="body-frame" style="position: absolute;left:0;top:0;width:100%;height:100%;"></div>
<div class="side-gap modal-gajago-share"><div class="DH20"></div><h4 class="text-left"><i class="icon-gajago-share text-danger"></i> 공유하기</h4><div class="DH20"></div><a class="btn gajago-share " id="btn-share-kakao"><img alt="" src="https://s3.ap-northeast-2.amazonaws.com/production-gajago-static/images/ico-like-kakao.png"><div>카카오톡</div></a><a class="btn gajago-share" data-share-type="facebook"><img alt="" src="https://s3.ap-northeast-2.amazonaws.com/production-gajago-static/images/ico-like-facebook.png"><div>페이스북</div></a><a class="btn gajago-share " data-share-type="sms"><img alt="" src="https://s3.ap-northeast-2.amazonaws.com/production-gajago-static/images/ico-like-sms.png"><div>SMS문자</div></a><div class="DH10"></div><div class="cx-row no-padding"><div class="cx-col-9"><input id="shareLink" type="input" class="form-control lg WP100" value="https://www.thegajago.com/deals/19763"></div><button type="button" data-clipboard-target="#shareLink" class="cx-col-3 btn btn-copyurl">URL복사</button></div></div><a style="position:absolute; top:15px; right:16px;" data-btn-control="cancel"><i class="icon-gajago-close"></i></a></div>
<div data-ax5modal-resizer="top"></div>
<div data-ax5modal-resizer="right"></div>
<div data-ax5modal-resizer="bottom"></div>
<div data-ax5modal-resizer="left"></div>
<div data-ax5modal-resizer="top-left"></div>
<div data-ax5modal-resizer="top-right"></div>
<div data-ax5modal-resizer="bottom-left"></div>
<div data-ax5modal-resizer="bottom-right"></div>
</div>
var filObject = {
a : 1,
s : "string",
oa : {pickup:true, name:"AXISJ"},
os : {pickup:true, name:"AX5"}
};
var result = ax5.util.filter( filObject, function(){
return this.pickup;
});
console.log( ax5.util.toJson(result) );
> [{"pickup": , "name": "AXISJ"}, {"pickup": , "name": "AX5"}] // true 값이 보이지 않습니다.
var filObject = {
a : 1,
s : "string",
oa : {pickup:true, name:"AXISJ"},
os : {pickup:true, name:"AX5"}
};
var result = ax5.util.filter( filObject, function(){
return this.pickup;
});
console.log( JSON.stringify(result) );
> [{"pickup": true, "name": "AXISJ"}, {"pickup":true , "name": "AX5"}] // true 값이 보입니다.
ax5.util.toJson 과 JSON.stringify의 true 값이 다르게 나옵니다.
it('Basic Alert expect open, close', function(done){
dialog.alert('Alert message', function(){
checkClose(dialog, 'dialog close fail.', done);
});
// open check
dialog.activeDialog.attr('data-ax5-ui').should.equal('dialog', 'dialog open fail.');
dialog.close();
});
위 코드에서 dialog.close();
메서드가 호출되면 dialog.alert
에서 정의한 callback이 호출되지 않습니다.
이건 의도된 상황인가요?
전체 코드는 여기를 참고해 주세요.
http://ax5.io/ax5core/util/ax5-util.html#doc-ax5-util-left-16
내용 : final이 finall로 적힘 (l이 중복되어 적혀있음.) - 단순 오타
해당 내용을 볼드, 이텔릭으로 표시하였습니다.
Return string from first index to finall index of original data.
Argument 01 : Original Data.
Argument 02 : finall index || finall character.
Usage : ax5.util.left(Argument01, Argument02)
Output
dialog.alert([...] , function() {
dialog.alert([...] , [...]);
});
위와 같이 dialog.alert 의 callback에서 다시 한번 dialog.alert 이 호출되면 두번째 alert 은 무시됩니다.
As a snippet above, when dialog.alert is called in a callback function of another dialog.alert, it does not work.
new Date("2016-09-25T11:59:07.379");
ax5.util.date("2016-09-25T11:59:07.379");
아래 같은 경우 true
, false
는 @thomasJang 이 정하면 될꺼 같아요.
정하시면 테스트 코드도 수정하겠습니다.
ax5.util.isDateFormat("201601011200")
ax5.util.isDateFormat("2016-01-01T12:00+09:00")
그리드 엑셀 다운로드 동작은 잘되는데 백그라운드 색상과 같은 스타일은 못가져가는것 같습니다.
스타일까지 포함하여 엑셀을 다운로드하는 옵션이나 방법이 있을까요?
커널 밑에 각각 모듈의 보워컴포넌트를 한번에 설치하거나 업데이트 할 수 있는 그런게 있나요?
각각 디렉토리에서 전부 해야하는지 뭔가 다른 설정이 가능할지 문의합니다.
원인 : 해당 str에 찾고자 하는 문자가 없을때 문자열 전체를 반환하기 때문에 발생한 이슈 입니다.
원인 코드 : ax5.core.js 의 1038Line
if (isString(pos)) {
return (str.indexOf(pos) > -1) ? str.substr(0, str.indexOf(pos)) : str;
}
재현 방법 :
var testString = "abcd3efd";
입력값 -> 출력값
ax5.util.left('testString',3); -> 'abc' ==== expectable
ax5.util.left('testString,' "3"); -> 'abcd' ==== expectable
ax5.util.left('testString,' "4"); -> 'abcd3efd' ==== X
질의 : 대상 str에 반환값이 없으면 "" 을 반환해야 할 것 같습니다.
재현 방법에서 나온 것처럼, 문자열이 없는 것이라면 없다고 반환해주어야 합니다.
그렇지 않을 경우, 사용자에겐 해당 문자열이 있기때문에 left되었다고 판단하기 때문입니다.
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.