Lina 是 JumpServer 的前端 UI 项目
Go to file
ZhaoJiSen 174117161e
Merge pull request #4016 from jumpserver/pr@v4@fix_cloud_triggerMode
fix: Fixed the issue that the dialog box did not close when clicking the cloud platform account details to jump to the cloud platform details page during the last step of creating the cloud
2024-06-11 14:28:54 +08:00
.github perf: 优化构建 2024-05-30 13:18:47 +08:00
build
mock
public perf: 修改 form help text,增加 warning 2024-05-23 14:58:31 +08:00
src Merge pull request #4016 from jumpserver/pr@v4@fix_cloud_triggerMode 2024-06-11 14:28:54 +08:00
tests/unit
utils
.dockerignore
.editorconfig
.env.development.example perf: kael migrated koko 2024-04-25 18:38:56 +08:00
.env.production
.env.staging
.eslintignore
.eslintrc.js
.gitignore
.gitmodules
.travis.yml
alias.config.js
babel.config.js
Dockerfile perf: 优化构建 2024-05-30 13:18:47 +08:00
jest.config.js
jsconfig.json
LICENSE
nginx.conf
package.json perf: 修改 cloud privider 2024-06-03 19:36:14 +08:00
postcss.config.js
README.md
vue.config.js perf: 修改 chatai 2024-04-29 18:58:16 +08:00
yarn.lock perf: 修改 cloud privider 2024-06-03 19:36:14 +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