npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gc-starter-bigscreen-ui

v0.0.1-2023061403-Alpha

Published

自定义大屏

Downloads

89

Readme

📚简介

🔥基于SpringBoot、MyBatisPlus、ElementUI、G2Plot、Echarts等技术栈的大屏设计器,具备大屏目录管理、大屏设计、大屏预览能力,支持MySQL、Oracle、PostgreSQL、JSON等数据集接入,对于复杂数据处理还可以使用Groovy脚本数据集,使用简单,完全免费,代码开源。


效果图

管理页

设计器

优势

  • 一站式大屏解决方案,从数据处理->大屏设计->大屏预览->生产使用
  • 支持多种数据集接入,可用于生产
  • 支持🔥独立部署,不对原有工程产生影响,适用于老项目
  • 支持🔥嵌入式集成,与项目无缝融合,引入依赖包即可,无其他系统框架依赖,减少运维成本,适用于新项目
  • 支持🔥组件在线、离线开发,在线开发简单组件、离线开发复杂组件
  • 支持自定义接口权限、数据权限,轻松对接🔥Shiro、Security等认证框架,保证大屏数据安全

功能

  • [x] 支持大屏管理、设计、预览、导出、集成
  • [x] 支持图层上下调整,支持置于顶层、置于底层
  • [x] 支持图画布组件框选、组合、取消组合、锁定、批量删除、复制功能
  • [x] 支持文本、图片、轮播表、排名表、翻牌器、基础表格、倒计时、系统时间、外链
  • [x] 支持基础折线图、梯形图、柱状图、面积图、条形图、饼图、环图、水波图、仪表盘、进度条、词云图、雷达图、漏斗图等
  • [x] 支持15种边框组件,支持动画、渐变色设置,支持水平线、垂直线设置
  • [x] 支持10多种修饰组件,支持动画、渐变色设置
  • [x] 支持资源管理,包含LOGO、3D图标、2D图表、修饰、背景等上百个大屏设计资源,资源支持自定义上传
  • [x] 支持组件管理,支持组件化设计,包含系统组件、自定义组件、业务组件,一键复用组件
  • [x] 支持数据源管理,支持MySQL、ClickHouse、PostgreSQL、Oracle
  • [x] 支持数据集管理,支持原始数据集、自助数据集、存储过程数据集、JSON数据集、脚本数据集、HTTP数据集,接入不同来源数据
  • [x] 支持自定义接口权限、数据权限,保证大屏数据安全
  • [x] 支持组件自定义规范,按照规范开发自己的大屏组件,满足特殊需求,如:自定义网络拓扑

链接

如何集成

1. 安装依赖

npm install gc-starter-bigscreen-ui

2. 在 main.js 引入大屏

// file: main.js

// 组件依赖 element-ui,项目已有element-ui可以忽略此步骤
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI, { size: 'mini' })
// 组件中使用了 codemirror 的编辑器,样式单独引入,比如用了vue语法高亮
import 'codemirror/mode/vue/vue.js'

// 引入大屏css
import 'gc-starter-bigscreen-ui/lib/bigScreen.css'

3. 在 main.js 配置大屏

方式一:后端服务地址配置在.js文件中

// file: xxx.js

window.CONFIG.baseUrl=http://127.0.0.1:8081/bigScreenServer
// file: main.js

import { registerConfig } from 'gc-starter-bigscreen-ui'
registerConfig({
  httpConfigs: {
    baseURL: `这里是后端服务地址的值,如:window.CONFIG.baseUrl`
  }
}, router)

方式二:后端服务地址配置在`.env文件中

// file: .env.development

VUE_APP_BASE_URL=http://127.0.0.1:8081/bigScreenServer
// file: main.js

import { registerConfig } from 'gc-starter-bigscreen-ui'
// 注意写在 new Vue() 之前
registerConfig({
  httpConfigs: {
    baseURL: `这里是后端服务地址的值,如:process.env.VUE_APP_BASE_URL`
  }
}, router)

4. vuex模块新增大屏store

// file: 项目中导出strore的文件

import { $bigScreen } from 'gc-starter-bigscreen-ui'
const store = new Vuex.Store({
  modules: 
    // 导出大屏所需vuex模块
    bigScreen: $bigScreen.bigScreenStore
  }
})
export default store

5. 访问大屏

启动项目后,访问前端地址 http://ip:port/management

演示DEMO

http://gcpaas.gccloud.com/bigScreen

联系我们

License

Apache License 2.0