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

manas-cockpit

v1.0.0

Published

项目中技术栈:[email protected] + pina + vite + echarts + element-plus.

Downloads

8

Readme

cockpit-front 新疆大数据平台前端仓库

项目中技术栈:[email protected] + pina + vite + echarts + element-plus.

运行

clone 代码

git clone [email protected]:manas-sap/cockpit-front-new.git

安装依赖

安装依赖时需注意若不是在内网需把.npmrc 中 registry 地址替换为可访问的仓库地址

npm install

本地运行

启动开发模式。开发模式默认使用.env.development 中的配置

npm run dev

流水线

生成开发环境的包,使用.env.dev 中的配置

npm run build:dev

img.png 生成测试环境的包,使用.env.test 中的配置

npm run build:test

img_1.png 生成预生产环境的包,使用.env.production 中的配置

npm run build

img_2.png

目录结构

── cockpit-front-new
   ├── public                    		    项目公共目录
   │   ├── favicon.ico           		    favicon 图标
   │   └── index.html            		    页面入口 HTML 模板
   ├── src                       		    项目源码目录
   │   ├── api                   		    接口目录,模块化管理;按需进行多层级目录管理
   │   │   ├── decision.js           		智能决策接口
   │   │   ├── dashBoard.js         		数字玛纳斯接口,等等
   │   │   ···
   │   ├── assets                		    静态资源目录,公共的静态资源,图标、图片等
   │   │   ├── svg             		        svg 图标,页面中支持以组件 SvgIcon 引入
   │   │   ├── img            		        图片资源
   │   │   ···
   │   ├── components            		    公共组件目录;所有的 Component ⽂件都是以⼤写开头 (PascalCase)
   │   ├── directives             	        指令目录
   │   │   ├── modules           		    模块化管理
   │   │   └── index.js		     		    主文件,自动引入模块
   │   ├── layout                		    布局组件
   │   ├── router                		    路由目录
   │   │   ├── modules           		    模块化管理
   │   │   └── index.js		     		    主文件,自动引入模块
   │   ├── store                 		    全局状态目录
   │   │   ├── modules           		    模块化管理
   │   │   └── index.ts		     		    主文件,自动引入模块
   │   ├── sass                		        公共样式
   │   │   │── index.css         		    主文件
   │   │   │── vars.scss                    主题变量文件
   │   │   │── element.scss			        element覆盖样式
   │   │   ···
   │   ├── utlis                 		    公共脚本
   │   │   │── index.js           		    JS 工具函数
   │   │   │── service.js           	    封装接口请求逻辑
   │   │   ···
   │   └── views                   		    页面目录;所有代表路由的 vue ⽂件和文件夹都使⽤横线连接 (kebab-case),name 使用⼤写开头 (PascalCase)
   │   │   ├── home               	    首页
   │   │   │   └── index.vue
   │   │   ···
   │   ├── App.vue               		    根组件
   │   ├── main.js               		    入口 js 文件
   │   ···
   ├── .env								     环境变量配置文件
   ├── .eslintignore					     Eslint 忽略文件
   ├── .eslintrc.js                 	     Eslint 配置文件
   ├── .gitignore                   	     Git 忽略文件
   ├── .prettierignore                 	     Prettier 忽略文件
   ├── package-lock.json            	     依赖版本管理文件
   ├── package.json                 	     依赖管理文件
   ├── jsconfig.json               		     JS 配置文件
   ├── vue.config.js                	     @vue/cli 配置文件
   ···

git 仓库分支说明

1、master 为主分支
2、develop-demo 为 11 月 15 日演示的 demo 版分支
3、目前的 develop 为 12 月 10 日演示的版本分支。

12 月 10 日演示版本分支功能简要说明

该版本由于开发时间有限,大数据平台农业资源中农田一张图、水网一张图、设备一张图是通过 iframe 嵌入的慧儿公司的对应页面直接展示。对应路由为img_3.png

创新基地中数字农田、农事建议、水肥方案、长势分析、产量预测页面是农场版对应功能改造调整样式后通过 iframe 嵌入。对应农场 ifarm-admin 代码库的 manas-project 分支。