Giter Club home page Giter Club logo

cboard-v's Introduction

CBoard-v

CBoard-v 是个人项目,目的是使用 Vue 2.0 重写 CBoard 的前端部分。

CBoard 是一个他人开源的 BI 工具,用于生成可视化报表。(项目原地址)

因为 CBoard 的前端是由 AngularJs(1.4.x)构建的,考虑到目前的前端生态,为了方便以后的二次开发和维护,因此决定用 Vue 重写。

账号:admin
密码:root123

技术栈

Vue + Vue Router + Vuex + Element-UI

新的特性

根据业务的需要,新增了一些特性;
如可以定制更复杂的布局、调整背景色:
image

部署

(前提)Step 0:部署 CBoard 后台

请根据 CBoard 的官方文档部署好完整的项目,确保能访问。
CBoard github
安装与配置文档

Step 1: 编译打包 CBoard-v

clone 本项目,
npm install,

src/utils/http/api.js 中修改:
const baseurl = '你的 CBoard 项目访问地址';

npm run build

生成文件index.html 和目录static

Step 2:

将目录 static 加入cboard根目录下,
将 index.html 改名为 starter.html 替换cboard根目录下原来的文件。

开发调试(chrome)

1、config/index.js 中修改:

module.exports = {
  dev: {
    proxyTable: {
        '/api':{
            target: '修改为你的 CBoard 访问地址',
        }
    },

2、需要修改 JSESSIONID。下载chrome插件 editthiscookie;

3、访问已搭好的 CBoard 项目登录,获得 JSESSIONID 值;

4、npm install && npm run dev
访问页面,修改 JSESSIONID 为上一步获得的值后,刷新即可访问。

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.