Lina 是 JumpServer 的前端 UI 项目
Go to file
2020-07-09 15:35:44 +08:00
.github ci(release): 统一releaes title 2020-07-08 17:26:36 +08:00
build
mock
public feat: 修改actions formatter 使用formatterAegs 2020-05-28 16:06:57 +08:00
src fix: lina master中xpack的commit号指向xpack master 2020-07-09 14:14:06 +08:00
tests/unit
utils ci(fix): 修改ci使用的action为node10 2020-07-08 12:02:08 +08:00
.dockerignore [hotfix]修改build目录 2020-06-18 15:32:11 +08:00
.editorconfig
.env.development 修复Logo显示的问题 2020-06-09 16:01:39 +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 [Update] 去掉i18n检查 2020-05-13 17:47:23 +08:00
.gitignore [hotfix]修改build目录 2020-06-18 15:32:11 +08:00
.gitmodules fix: update xpack url 2020-07-01 18:15:58 +08:00
.travis.yml
alias.config.js
babel.config.js
Dockerfile fix(Docker): 修改Dockerfile,统一使用build.sh构建 2020-07-09 15:35:44 +08:00
jest.config.js
jsconfig.json
LICENSE
nginx.conf fix: 修复lina nginx 2020-06-01 15:54:15 +08:00
package.json feat: 添加密码组件 2020-06-16 10:49:43 +08:00
postcss.config.js
README.md doc: 修改readme 2020-06-01 14:09:44 +08:00
vue.config.js [hotfix]修改build目录 2020-06-18 15:32:11 +08:00
yarn.lock Bump websocket-extensions from 0.1.3 to 0.1.4 (#87) 2020-07-02 17:01:35 +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.