Coder Social home page Coder Social logo

ax5ui / ax5ui-kernel Goto Github PK

View Code? Open in Web Editor NEW
157.0 14.0 74.0 39.14 MB

Javascript UI Framework - AX5UI - Kernel Module

Home Page: http://ax5.io

License: MIT License

JavaScript 59.50% CSS 10.33% HTML 29.01% Shell 0.40% PHP 0.76%
ax5ui jquery bootstrap grid upload dialog menu modal javascriptui

ax5ui-kernel's Introduction

Build Status Backers on Open Collective Sponsors on Open Collective

ax5ui preview

What is it!!

AX5UI is HTML5 Web standard Javascript UI plug-ins to be used in conjunction with jQuery / Bootstrap. (http://ax5.io) In order to use the AX5UI, you need a basic knowledge of the "HTML, JS, CSS". Knowledge of the "HTML, JS, CSS," can be easily obtained by using a search engine.

jQuery

Faster development of the UI plug-in, in order to be more rational, we use the jQuery library. The role of the jQuery library in AX5UI is, the DOM Element "looking, erase, add to, to connect the events." It is used for. jQuery is, JS library that most of developers around the world are using (http://jquery.com/).

###Bootstrap Bootstrap is, various layouts, buttons, is a framework that has been created a design such as an input window in advance by CSS and Javascript. There was enough explosive reaction called the revolution of Web design, is one of the front-end framework that most used in the world. AX5UI theme of the system is made of SCSS code, has been designed as a final product structure is being created CSS file. SCSS variables within the code structure and is designed to be compatible with Bootstrap SCSS architecture, was developed and tested to optimize the use of CSS classes and input windows in structures such as Bootstrap.

AX5UI

AX5UI is a software that has been designed and developed with the development experience of AXISJ. It had the idea while offering numerous UI library users have tried to put in AX5UI.

  • How you can, or will be able to shorten the development time of developers?
  • How can, I wonder developers can happily development?
  • How you can, or will be able to share feel free to add at any time and the developer is required functionality?

In order to solve such a trouble, several new methods were required.

  • Not a framework, to add light and developed in the form of a plug-in must be convenient for use with other plug-ins.
  • While mutually compatible with each of the UI plug-in must be independent.
  • Convenient distribution system such as NPM and Bower there must be.
  • There must be to develop a plug-in from one of the repository, Each of the UI plug, be distributed to each of the repository.
  • All processes were automated, developer must be able to enjoy only coding.

In the future, growth in the UI plug-ins that can be used need more improvement and effort, but would be further, We hope to participate in the feeling that we make together.


How to Use

install

AX5UI is that you are ready to connect to the source code of a web page without the installation process. One of the following ways: You can download the source code.

  • Download directly from Github.
  • NPM
  • Bower
  • Git clone git clone https://github.com/ax5ui/ax5ui-kernel

If the source code download

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.min.js"></script>

<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/ax5ui/ax5ui-dialog/master/dist/ax5dialog.css" />
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5ui-dialog/master/dist/ax5dialog.min.js"></script>

Please AX5UI import the plug-in Web page, as shown above. If you can here a success. If this process is difficult to call right now if to the developer Stray around right now, close your browser.

Structure

When you add to your Web application AX5UI, AX5UI uses only variables that ax5 in your browser. ax5 object contained inside the keys, such as ax5.util, ax5.mustache, ax5.info, ax5.ui and down when ax5.ui Add to add the UI class of AX5UI It will be back.

ax5core

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.min.js"></script>
console.log(ax5);
// {guid: 1, info: Object, util: Object, ui: Object, mustache: Object}

add ax5ui-dialog

<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5core/master/dist/ax5core.min.js"></script>

<link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/ax5ui/ax5ui-dialog/master/dist/ax5dialog.css" />
<script type="text/javascript" src="https://cdn.rawgit.com/ax5ui/ax5ui-dialog/master/dist/ax5dialog.min.js"></script>
console.log(ax5.ui);
// {root: Function.., dialog: Function..}

When you add the UI plug-in, as shown above is a structure that is added to the sub-ax5.ui.

Customizing

You can modify the source code from the source in the src folder. More detailed information will be covered next time. For now, just ask.

Question


How to Play

  1. Fork this Origninal repository to your repository.
  2. Clone your repository to your desktop.
  3. Open Terminal
  4. Move to git folder (Folder Name : ax5ui-kernel)
  5. Type this instruction : npm install
  6. Run Gulp task
  7. Build a test environment (src/ax5ui-**/test) > bower install
  8. Coding & test

npm install

npm install

Installing npm(Node Package Modules) to manage the node.js modules. please refer to an Internet

  • Type this instruction : gulp default
    • cf1> or Type this instruction : gulp
    • cf2> current Location : ax5ui-kernel

Gulp

toms-mac:ax5ui-kernel tom$ gulp default
[13:25:56] Using gulpfile ~/Works-OSS/ax5ui/ax5ui-kernel/gulpfile.js
[13:25:56] Starting 'default'...
[13:25:57] Finished 'default' after 227 msa

if you success, you can see this screen. if you fail to run gulp, the reason is ['you don't have permission' or 'npm is not installed'] please refer to an Internet this keyword will help you :

  • npm init
  • npm install -g gulp
  • npm install --global gulp-cli
  • sudo npm install --global gulp-cli

Bower

In each of the UI folder there is a test folder. Test folder is, in the development of each of the UI, will be used for testing purposes. Bower.json is a file that manages the necessary plugins in thetest folder.

npm install -g bower
bower install

After the move in the test folder When you run the above command in a terminal, bower_components folder is created in the test folder, it will be downloaded the plug-ins required. Then, open the html file, you can test the code in development.

Structure

ax5ui-kernel/
├── build/
|   ├── jsdoc2md.sh (jsdoc to markdown shell script)
|   ├── split.sh (gitsubsplit shell script)
|   └── split_jenkins.sh (gitsubsplit shell script for jenkins)
├── dist/
├── src/
|   ├── ax5core/
|   |   ├── dist/
|   |   ├── src/
|   |   ├── test/
│   |   ├── API...
│   |   ├── bower.json
│   |   ├── deploy.sh
│   |   ├── package.json
│   |   └── README.md
|   ├── ax5ui-autocomplete/
|   |   ├── dist/
|   |   |   ├── ax5autocomplete.css
|   |   |   ├── ax5autocomplete.js
|   |   |   └── ax5autocomplete.min.js
|   |   ├── src/
|   |   |   ├── modules/
|   |   |   |   ├── ax5autocomplete-tmpl.js
|   |   |   |   └── ax5autocomplete-util.js
|   |   |   ├── scss/
|   |   |   |   ├── _ax5autocomplete.scss
|   |   |   |   └── _ax5autocomplete_variables.scss
|   |   |   ├── ax5autocomplete.js
|   |   |   └── ax5autocomplete.scss
|   |   ├── test/
|   |   |   ├── bower.json (you can run `$bower install` initialize test environment)
|   |   |   └── index.html
|   |   ├── bootstrap.min.js
│   |   ├── chartist.min.js
│   |   ├── demo.js
│   |   ├── jquery-1.10.2.js
│   |   └── light-bootstrap-dashboard.js
|   ├── ax5ui-.../
|   └── ax5ui-.../
|
├── .babelrc
├── .gitignore
├── gulpfile.js
├── LICENSE
├── package.json
├── README.md
└── README-kor.md

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]


ax5ui-kernel's People

Contributors

90majh avatar aeei avatar cemujax avatar derren-korean avatar dongyoung86 avatar geminikim avatar groovedk avatar hoksi avatar hyunjun19 avatar jayhun avatar koojunho avatar leehan0617 avatar mojosoeun avatar sera0731 avatar taeung avatar thomasjang avatar xdamman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ax5ui-kernel's Issues

bower 일괄 업데이트가 있나요?

커널 밑에 각각 모듈의 보워컴포넌트를 한번에 설치하거나 업데이트 할 수 있는 그런게 있나요?
각각 디렉토리에서 전부 해야하는지 뭔가 다른 설정이 가능할지 문의합니다.

ax5.util.toJson 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( 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 값이 다르게 나옵니다.

[ax5ui-modal] div[data-modal-els="body-frame"] 추가로 인한 사이트 이펙트

<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>&nbsp; 공유하기</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>

ax5.util.getType(null) 이 undefined를 반환합니다.

2016-09-28 9 43 21

제 생각에는 undefined는 변수나 프러퍼티가 선언된적이 없음을 의미하고 null은 값이 존재하지 않음을 의미하기 때문에 두 가지를 구분해서 처리해 주어야 한다고 생각합니다.

따라서 ax5.util.getType(null)은 "null"을 반환하는게 더 명확할 것 같습니다.

엑셀 다운로드 문의

그리드 엑셀 다운로드 동작은 잘되는데 백그라운드 색상과 같은 스타일은 못가져가는것 같습니다.

스타일까지 포함하여 엑셀을 다운로드하는 옵션이나 방법이 있을까요?

symbolic link problem

symbolic link files are not commit to github.
src/ax5core/dist -> src/ax5docs/_assets/lib/ax5core

Item on Click

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... } }); };

[ax5ui-modal] support resize

resize허용 옵션을 추가하고.

  • 8개의 방향으로 모달창을 크기 조절 할 수 있는 기능 구현.
  • alt, shift 지원

Don't match result

new Date("2016-09-25T11:59:07.379");
ax5.util.date("2016-09-25T11:59:07.379");

build.sh 명령어 문제 확인요망

#!/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 이 없는 상황이 나오고 있습니다.
도움이 필요합니다.

ax5.util.left function 이슈 사용성 혼동 & 원래 이런 사용법인가요?

원인 : 해당 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되었다고 판단하기 때문입니다.

`dialog.close()` 메서드 호출시 콜백이 호출되지 않습니다.

    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이 호출되지 않습니다.
이건 의도된 상황인가요?

전체 코드는 여기를 참고해 주세요.

dialog.alert ignorance on double call

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.

CI npm error

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

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.