Giter Site home page Giter Site logo

zen-li / pagurian Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hypers/pagurian

0.0 1.0 0.0 21.22 MB

:alarm_clock: 一个管理系统的前端框架

Home Page: http://www.pagurian.com

License: Other

JavaScript 75.80% Smarty 0.10% CSS 8.63% HTML 15.25% Shell 0.05% PHP 0.18%

pagurian's Introduction

Pagurian

npm version Build Status devDependency Status License Built with Grunt

一个管理系统的前端框架

Pagurian早期是Hypers前端团队为 服务于公司的产品搭建的一套前端框架, 已经在多个产品中使用,逐渐成熟,并开源出来。

Pagurian

快速开始

以下是一段演示代码,页面引入一个 pagurian.js 文件,然后载入 modules/user/app 模块, 最后初始化改模块下 index 页面的内容。

<script src="pagurian.js" ></script>
<script type="text/javascript">
    pagurian.call("modules/user/app",function(app) {
        app.page.index();
    });
</script>

开发及构建

开发者可以在 Pagrian 的基础上进行二次开发, Pagurian由Grunt构建及发布, 你需要安装Grunt以及所依赖的Node.js环境。

首先安装 Grunt

npm install -g grunt-cli

Clone 项目文件:

git clone https://github.com/hypers/pagurian.git

安装grunt插件:

cd pagurian
npm install

接下来,执行 grunt

grunt

目录结构

Pagurian
├── [.] .build
├── dist/                   //发布目录
│   ├── lib/
│   ├── modules/
│   ├── plugins/
│   ├── resources/
│   └── templates/
├── docs/                   //开发文档
│   ├── api-datatable.md
│   └── api-*.md
├── [.] node_modules/           //Grunt依赖的NodeJs 模块
├── src/                    //开发目录
│   ├── lib/                //框架依赖的基础库
│   ├── modules/            //业务模块
│   ├── plugins/            //插件
│   ├── widgets/            //组件
│   ├── resources/          //css,images,fonts
│   └── templates/          //handlebars 模版文件
├── test/                   //测试
├── Gruntfile.js
├── package.json
└── pagurian.js

谁在用?

参考、使用的项目

pagurian's People

Contributors

simonguo avatar hiyangguo avatar cjex avatar godferyyoung avatar

Watchers

Zen Li 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.