Lina 是 JumpServer 的前端 UI 项目
Go to file
2023-07-04 11:46:49 +08:00
.github perf: work flow 2023-03-08 13:17:55 +08:00
build
mock
public perf: 进度条颜色根据系统颜色变化 2023-05-10 14:12:15 +08:00
src Merge pull request #3246 from jumpserver/pr@dev@feat_support_anonymous_account 2023-07-04 11:46:49 +08:00
tests/unit
utils fix: 修正版本获取不正确 2023-02-28 16:36:48 +08:00
.dockerignore
.editorconfig feat: 添加 i18n 自动 diff 和 update 工具 (i18n-util.py) 2023-02-06 15:09:18 +08:00
.env.development.example
.env.production
.env.staging
.eslintignore
.eslintrc.js
.gitignore fix: 修改翻译 LAN 局域网 2023-02-06 16:30:34 +08:00
.gitmodules
.travis.yml
alias.config.js
babel.config.js
Dockerfile perf: 更新 nginx 镜像版本 2023-05-25 10:16:48 +08:00
jest.config.js
jsconfig.json
LICENSE
nginx.conf
package.json perf: 添加 npm run diff-i18n | npm run apply-i18n 脚本执行 2023-02-06 15:50:15 +08:00
postcss.config.js
README.md
vue.config.js perf: 调整 luna 的 proxy 的配置,支持 luna 录像播放 2023-06-29 15:20:14 +08:00
yarn.lock build(deps): bump http-cache-semantics from 4.1.0 to 4.1.1 2023-02-06 16:42:21 +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