Lina 是 JumpServer 的前端 UI 项目
Go to file
2022-03-17 15:14:45 +08:00
.github
build
mock
public feat: crontab 组件封装 2021-10-12 11:13:30 +08:00
src fix: 资产详情标签加载权限控制 2022-03-17 15:14:45 +08:00
tests/unit
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
.env.staging
.eslintignore
.eslintrc.js
.gitignore perf: 修改不再存储 .env.devlopement 2021-09-24 13:29:00 +08:00
.gitmodules
.travis.yml
alias.config.js
babel.config.js
Dockerfile
jest.config.js
jsconfig.json
LICENSE feat: 修改LICENSE 2021-12-06 18:03:36 +08:00
nginx.conf
package.json feat: 封装json editor组件 2021-12-15 15:36:53 +08:00
postcss.config.js
README.md feat: lina 修改时间区间 2022-01-04 15:08:54 +08:00
vue.config.js fix: 修复 select2 error bug 2021-10-21 17:34:32 +08:00
yarn.lock build(deps): bump url-parse from 1.4.7 to 1.5.7 2022-02-21 10:29:51 +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

生产中部署

下载 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