GithubHelp home page GithubHelp logo

jzaaa / bjui Goto Github PK

View Code? Open in Web Editor NEW
10.0 0.0 9.0 10.37 MB

JQuery快速开发框架,提供主题美化

Home Page: https://jzaaa.github.io/BJUI/

License: Apache License 2.0

JavaScript 70.47% CSS 6.47% HTML 17.71% Batchfile 0.05% Less 5.30%
jquery html bjui b-jui admin-dashboard admin-template

bjui's Introduction

介绍

jQuery快速开发框架

原项目已不再维护,本项目仅提供项目演示与个人部分修改。

[TOC]

注意:由于演示项目不支持post请求,演示中的POST请求均会出现失败反馈。

主题

本项目新增了一个主题,点击右上方树形按钮选择 Teal

自定义主题

可以配置BJUI/themes/teal/variables.less @coreColor色值配置自己颜色风格的页面

使用

  • clone 项目
git clone [email protected]:JZaaa/BJUI.git 
  • 在服务器下访问index.html查看项目演示
  • BJUI目录为本项目生产文件

升级

本项目1.x版本与原bjui版本不兼容,请勿覆盖升级。 1.x版本一般情况下可直接覆盖升级,具体更新内容请查看更新日志。


兼容性

  • IE9.0+, Chrome[最佳], Firefox, Safari。
  • 本框架不适用于需要兼容IE8以下的开发者或使用者。

修改插件

修改B-JUI分模块并测试后,可通过 uglifyjs 压缩合并文件,以下为uglifyjs3压缩方法

注意:请备份原bjui-all.js文件

  • 全局安装uglifyjs
npm install uglify-js -g
  • 压缩BJUI插件

// 压缩(在BJUI/js目录下,请备份原bjui-all.js文件)
uglifyjs jquery.cookie.js bjui-core.js bjui-regional.zh-CN.js bjui-frag.js bjui-extends.js bjui-modulefixed.js bjui-basedrag.js bjui-slidebar.js bjui-layout.js bjui-contextmenu.js bjui-navtab.js bjui-dialog.js bjui-taskbar.js bjui-ajax.js bjui-alertmsg.js bjui-pagination.js bjui-util.date.js bjui-datepicker.js bjui-ajaxtab.js bjui-tablefixed.js bjui-tabledit.js bjui-spinner.js bjui-lookup.js bjui-upload.js bjui-theme.js bjui-initui.js bjui-plugins.js -c -m -o bjui-all.js

bjui's People

Contributors

jzaaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bjui's Issues

关闭当前标签并刷新列表页

protected function mtReturn($status,$info,$navTabId="",$closeCurrent=true) {

    $udata['id']=session('uid');
    $udata['update_time']=time();
    $Rs=M("user")->save($udata);
    $dat['username'] = session('username');
    $dat['content'] = $info;
	$dat['os']=$_SERVER['HTTP_USER_AGENT'];
    $dat['url'] = U();
    $dat['addtime'] = date("Y-m-d H:i:s",time());
    $dat['ip'] = get_client_ip();
    M("log")->add($dat);
   
    
    $result = array();
    $result['statusCode'] = $status; 
    $result['message'] = $info;
	$result['closeCurrent'] =$closeCurrent;
	if($navTabId!==''){
	 $result['tabid'] = strtolower($navTabId).'/index';	
	}else{
		$result['tabid'] = '';
	}
	
    $result['forward'] = '';
	$result['forwardConfirm']='';
    
    if (empty($type))
        $type = C('DEFAULT_AJAX_RETURN');
    if (strtoupper($type) == 'JSON') {
        // 返回JSON数据格式到客户端 包含状态信息
        header("Content-Type:text/html; charset=utf-8");
        exit(json_encode($result,true));
    } elseif (strtoupper($type) == 'XML') {
        // 返回xml格式数据
        header("Content-Type:text/xml; charset=utf-8");
        exit(xml_encode($result));
    } elseif (strtoupper($type) == 'EVAL') {
        // 返回可执行的js脚本
        header("Content-Type:text/html; charset=utf-8");
        exit($data);
    } else {
        // TODO 增加其它格式
    }
}

原版本操作成功直接关闭标签页。
当发送"closeCurrent" = true时关闭标签页,不起作用。

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.