Lina 是 JumpServer 的前端 UI 项目
Go to file
2020-12-23 15:53:44 +08:00
.github ci(github): 添加通用action 2020-07-21 05:05:59 +00:00
build
mock
public fix: 使用http-equiv功能禁止index.html缓存 2020-09-28 16:49:02 +08:00
src fix: 统一测试存储时的命令提醒 2020-12-23 15:53:44 +08:00
tests/unit
utils ci(docker): 使用docker缓存,使用npm mirror 2020-07-29 16:07:15 +08:00
.dockerignore [hotfix]修改build目录 2020-06-18 15:32:11 +08:00
.editorconfig
.env.development
.env.production
.env.staging
.eslintignore [fix]更新路由权限,更新eslint Ignore 2020-06-22 16:15:56 +08:00
.eslintrc.js
.gitignore [hotfix]修改build目录 2020-06-18 15:32:11 +08:00
.gitmodules Removed submodule 2020-09-15 16:26:11 +08:00
.travis.yml
alias.config.js
babel.config.js
Dockerfile ci(docker): 使用docker缓存,使用npm mirror 2020-07-29 16:07:15 +08:00
jest.config.js
jsconfig.json
LICENSE
nginx.conf fix: 使用http-equiv功能禁止index.html缓存 2020-09-28 16:49:02 +08:00
package.json fix: 添加Tree加载重试组件 (#477) 2020-11-05 10:50:38 +08:00
postcss.config.js
README.md
vue.config.js feat(all): 增加clone创建 (#485) 2020-11-09 15:35:43 +08:00
yarn.lock perf: 优化命令获取 2020-11-05 18:57:27 +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;
  }
}

致谢

Copyright (c) 2014-2020 飞致云 FIT2CLOUD, All rights reserved.

Licensed under The GNU General Public License version 2 (GPLv2) (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.gnu.org/licenses/gpl-2.0.html

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.