Lina 是 JumpServer 的前端 UI 项目
Go to file
2022-12-05 19:25:13 +08:00
.github perf: 添加代码构建测试 actions 2022-11-30 17:07:53 +08:00
build perf: 修改 console.log() 语句为 debug() 标识 (#1749) 2022-05-17 15:16:33 +08:00
mock perf: 修改 console.log() 语句为 debug() 标识 (#1749) 2022-05-17 15:16:33 +08:00
public pref: 修改主题颜色 2022-11-29 11:21:11 +08:00
src perf: 选择资产组件弹窗显示资产详情 2022-12-05 19:25:13 +08:00
tests/unit perf: 修改 console.log() 语句为 debug() 标识 (#1749) 2022-05-17 15:16:33 +08:00
utils Fix rbac (#1361) 2022-03-02 20:49:23 +08:00
.dockerignore perf: 优化代码,搜索 (#1080) 2021-09-27 14:29:37 +08:00
.editorconfig
.env.development.example feat: 添加rbac (#1322) 2022-02-18 10:51:15 +08:00
.env.production feat: 修改base api 2020-06-09 16:48:12 +08:00
.env.staging
.eslintignore [fix]更新路由权限,更新eslint Ignore 2020-06-22 16:15:56 +08:00
.eslintrc.js
.gitignore perf: 修改不再存储 .env.devlopement 2021-09-24 13:29:00 +08:00
.gitmodules Removed submodule 2020-09-15 16:26:11 +08:00
.travis.yml
alias.config.js
babel.config.js perf: 优化 csv/xlsx 导入 (#725) 2021-04-08 10:09:58 +08:00
Dockerfile perf: 优化构建 2022-11-27 21:03:56 +08:00
jest.config.js
jsconfig.json
LICENSE feat: 修改LICENSE 2021-12-06 18:03:36 +08:00
nginx.conf perf: 优化编译命令 2021-03-29 19:29:06 +08:00
package.json perf: 添加 yarn build 2022-11-15 15:32:37 +08:00
postcss.config.js
README.md Update README.md 2022-04-01 15:24:09 +08:00
vue.config.js perf: remove unused css 2022-07-12 10:29:05 +08:00
yarn.lock perf: update yarn.lock 2022-11-15 18:16:06 +08:00

Lina

Lina 是 JumpServer 的前端 UI 项目, 主要使用 Vue, Element UI 完成, 名字来源于 Dota 英雄 Lina

开发运行

0. 前置条件: 部署运行好 JumpServer API 服务器

1. 安装依赖
$ yarn install

2. 修改 .env.development VUE_APP_CORE_HOST
# ...
VUE_APP_CORE_HOST = 'JUMPSERVER_APIHOST'

3. 运行
$ yarn serve

4. 构建
$ yarn build:prod

生产中部署

下载 RELEASE 文件,放到合适的目录,修改 nginx配置文件如下

server {
  listen 80;

  location /ui/ {
    try_files $uri / /ui/index.html;
    alias /opt/lina/;
  }

  location / {
    rewrite ^/(.*)$ /ui/$1 last;
  }
}

致谢

Be consistent with jumpserver