
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
manas-cockpit
Advanced tools
项目中技术栈:Vue@3.2 + pina + vite + echarts + element-plus.
git clone git@gitlab.zoomlion.com:manas-sap/cockpit-front-new.git
安装依赖时需注意若不是在内网需把.npmrc 中 registry 地址替换为可访问的仓库地址
npm install
启动开发模式。开发模式默认使用.env.development 中的配置
npm run dev
生成开发环境的包,使用.env.dev 中的配置
npm run build:dev
生成测试环境的包,使用.env.test 中的配置
npm run build:test
生成预生产环境的包,使用.env.production 中的配置
npm run build
── 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 配置文件
···
该版本由于开发时间有限,大数据平台农业资源中农田一张图、水网一张图、设备一张图是通过 iframe 嵌入的慧儿公司的对应页面直接展示。对应路由为
创新基地中数字农田、农事建议、水肥方案、长势分析、产量预测页面是农场版对应功能改造调整样式后通过 iframe 嵌入。对应农场 ifarm-admin 代码库的 manas-project 分支。
FAQs
项目中技术栈:Vue@3.2 + pina + vite + echarts + element-plus.
We found that manas-cockpit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.