Lina 是 JumpServer 的前端 UI 项目
Go to file
Orange d35cfa11b0
Merge pull request #101 from jumpserver/dev
[hotfix]更改路由权限验证模块
2020-06-18 11:28:23 +08:00
build [release]4.1.0 (#211) 2019-04-19 20:41:52 +08:00
mock fix: fixed mock server (#541) 2020-01-09 20:53:06 +08:00
public feat: 修改actions formatter 使用formatterAegs 2020-05-28 16:06:57 +08:00
src [hotfix]更改路由权限验证模块 2020-06-18 11:16:13 +08:00
tests/unit [release]4.1.0 (#211) 2019-04-19 20:41:52 +08:00
utils [Update] 使用自己生成的theme 2020-04-20 18:55:48 +08:00
.dockerignore [update]添加Dockerfile 2020-05-18 13:56:31 +08:00
.editorconfig add editorconfig 2017-08-01 15:49:04 +08:00
.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 [release]4.1.0 (#211) 2019-04-19 20:41:52 +08:00
.eslintignore [update]抽象Ztree 2020-04-15 02:59:25 +08:00
.eslintrc.js [Update] 去掉i18n检查 2020-05-13 17:47:23 +08:00
.gitignore [release]4.1.0 (#211) 2019-04-19 20:41:52 +08:00
.gitmodules update submodule url 2020-06-17 16:47:24 +08:00
.travis.yml chore: set ci node version 2019-04-26 17:58:55 +08:00
alias.config.js [update]增加treeTable表格同步,修改Tree样式 2020-04-13 01:56:35 +08:00
babel.config.js [release]4.1.0 (#211) 2019-04-19 20:41:52 +08:00
Dockerfile [fix]修复Build Bug 2020-05-19 15:26:46 +08:00
jest.config.js [release]4.1.0 (#211) 2019-04-19 20:41:52 +08:00
jsconfig.json perf: VS Code support webpack alias file jump 2019-10-22 20:27:25 +08:00
LICENSE [Update] 修改LICENSE 2020-05-07 18:09:27 +08:00
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 refactor[chore]: generate postcss.config.js instead of .postcssrc.js 2019-05-24 16:58:40 +08:00
README.md doc: 修改readme 2020-06-01 14:09:44 +08:00
vue.config.js Merge branch 'dev' of github.com:jumpserver/lina into dev 2020-06-11 10:17:44 +08:00
yarn.lock feat: 添加密码组件 2020-06-16 10:49:43 +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.