🔖 项目重命名.

This commit is contained in:
lijiahangmax
2024-05-16 00:03:30 +08:00
parent f7189e34cb
commit d3a045ec20
1511 changed files with 4199 additions and 4128 deletions

View File

@@ -1,6 +1,6 @@
## 免责声明
> 欢迎您选择使用 orion-ops-pro(以下简称「本项目」)。在使用本项目前,请您仔细阅读本免责声明,并确保您已充分理解其中的内容。您的使用行为将视为对本声明全部内容的认可和接受。
> 欢迎您选择使用 orion-visor(以下简称「本项目」)。在使用本项目前,请您仔细阅读本免责声明,并确保您已充分理解其中的内容。您的使用行为将视为对本声明全部内容的认可和接受。
> 本项目为一款开源免费的运维管理工具,采用 Apache 2.0 许可证授权。您可在遵守相关法律法规及许可证条款的前提下,自由修改和使用本项目。

View File

@@ -1,36 +1,36 @@
<h1 style="display: flex; align-items: center;">
<img style="margin-right: 8px;" src="https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/2/27/8c687ef1-5711-4a93-9db0-79c010af7902.png" width="32px" height="32px"/> orion-ops-pro 是什么
<img style="margin-right: 8px;" src="https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/2/27/8c687ef1-5711-4a93-9db0-79c010af7902.png" width="32px" height="32px"/> orion-visor 是什么
</h1>
`orion-ops-pro`
`orion-visor`
是一款现代化、高颜值的一站式智能运维管理平台集资产管理、资产授权、批量执行、批量上传、计划任务、WebShell、WebSftp、角色管理、系统管理等功能于一体致力于简化运维团队的治理工作。
<p style="text-align: left">
<a target="_blank" style="text-decoration: none" href="https://app.codacy.com/gh/lijiahangmax/orion-ops-pro/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade">
<a target="_blank" style="text-decoration: none" href="https://app.codacy.com/gh/lijiahangmax/orion-visor/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade">
<img src="https://app.codacy.com/project/badge/Grade/49eaab3a9a474af3b87e1d21ffec71c4" alt="quality"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html">
<img src="https://img.shields.io/badge/JDK-8+-green.svg" alt="jdk8"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://www.apache.org/licenses/LICENSE-2.0">
<img src="https://img.shields.io/github/license/lijiahangmax/orion-ops-pro" alt="License"/>
<img src="https://img.shields.io/github/license/lijiahangmax/orion-visor" alt="License"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://gitee.com/lijiahangmax/orion-ops-pro/stargazers">
<img src="https://gitee.com/lijiahangmax/orion-ops-pro/badge/star.svg?theme=dark" alt="star"/>
<a target="_blank" style="text-decoration: none" href="https://gitee.com/lijiahangmax/orion-visor/stargazers">
<img src="https://gitee.com/lijiahangmax/orion-visor/badge/star.svg?theme=dark" alt="star"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://gitee.com/lijiahangmax/orion-ops-pro/members">
<img src="https://gitee.com/lijiahangmax/orion-ops-pro/badge/fork.svg?theme=dark" alt="fork"/>
<a target="_blank" style="text-decoration: none" href="https://gitee.com/lijiahangmax/orion-visor/members">
<img src="https://gitee.com/lijiahangmax/orion-visor/badge/fork.svg?theme=dark" alt="fork"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://github.com/lijiahangmax/orion-ops-pro">
<img src="https://img.shields.io/github/stars/lijiahangmax/orion-ops-pro.svg?style=social" alt="star"/>
<a target="_blank" style="text-decoration: none" href="https://github.com/lijiahangmax/orion-visor">
<img src="https://img.shields.io/github/stars/lijiahangmax/orion-visor.svg?style=social" alt="star"/>
</a>
</p>
当前版本: **1.1.0**
**github:** https://github.com/lijiahangmax/orion-ops-pro
**gitee:** https://gitee.com/lijiahangmax/orion-ops-pro
**文档:** https://lijiahangmax.github.io/orion-ops-pro/#/
**github:** https://github.com/lijiahangmax/orion-visor
**gitee:** https://gitee.com/lijiahangmax/orion-visor
**文档:** https://lijiahangmax.github.io/orion-visor/#/
**demo:** http://101.43.254.243:1081/
演示账号: `admin`
@@ -53,11 +53,11 @@
## 快速开始
* [docker安装](https://lijiahangmax.github.io/orion-ops-pro/#/quickstart/docker-install)
* [普通安装](https://lijiahangmax.github.io/orion-ops-pro/#/quickstart/install)
* [更新日志](https://lijiahangmax.github.io/orion-ops-pro/#/about/change-log)
* [操作手册](https://lijiahangmax.github.io/orion-ops-pro/#/operator/asset)
* [常见问题](https://lijiahangmax.github.io/orion-ops-pro/#/quickstart/faq)
* [docker安装](https://lijiahangmax.github.io/orion-visor/#/quickstart/docker-install)
* [普通安装](https://lijiahangmax.github.io/orion-visor/#/quickstart/install)
* [更新日志](https://lijiahangmax.github.io/orion-visor/#/about/change-log)
* [操作手册](https://lijiahangmax.github.io/orion-visor/#/operator/asset)
* [常见问题](https://lijiahangmax.github.io/orion-visor/#/quickstart/faq)
## 技术栈
@@ -106,7 +106,7 @@
<img src="https://bjuimg.obs.cn-north-4.myhuaweicloud.com/images/2024/2/27/4f1c4e77-8e36-45a3-8be6-9da5387bb96e.jpg" alt="wx" width="298px" height="398px"/>
</div>
📧 咨询问题微信备注: ops
📧 咨询问题微信备注: git
📧 合作/功能定制备注: 合作
## 支持一下
@@ -117,8 +117,8 @@
## 免责声明
在使用本项目之前, 请确保您已经了解并同意相关的使用协议和隐私政策。[免责声明](https://github.com/lijiahangmax/orion-ops-pro/blob/main/DISCLAIMER.md)
在使用本项目之前, 请确保您已经了解并同意相关的使用协议和隐私政策。[免责声明](https://github.com/lijiahangmax/orion-visor/blob/main/DISCLAIMER.md)
## License
本项目遵循 [Apache-2.0](https://github.com/lijiahangmax/orion-ops-pro/blob/main/LICENSE) 开源许可证。
本项目遵循 [Apache-2.0](https://github.com/lijiahangmax/orion-visor/blob/main/LICENSE) 开源许可证。

View File

@@ -1,46 +1,47 @@
version: '3.3'
services:
orion-ops-pro:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro:1.1.0
orion-visor:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor:1.1.0
ports:
- 1081:80
environment:
- MYSQL_HOST=orion-ops-pro-db
- MYSQL_HOST=orion-visor-db
- MYSQL_PORT=3306
- MYSQL_DATABASE=orion_visor
- MYSQL_USER=orion
- MYSQL_PASSWORD=Data@123456
- REDIS_HOST=orion-ops-pro-redis
- REDIS_HOST=orion-visor-redis
- REDIS_PASSWORD=Data@123456
- SECRET_KEY=uQeacXV8b3isvKLK
volumes:
- /data/orion-ops-pro-space/docker-volumes/orion-ops-pro/logs:/root/orion/logs/orion-ops-pro
- /data/orion-ops-pro-space/docker-volumes/orion-ops-pro/app:/root/orion/orion-ops-pro
- /data/orion-visor-space/docker-volumes/orion-visor/logs:/root/orion/logs/orion-visor
- /data/orion-visor-space/docker-volumes/orion-visor/app:/root/orion/orion-visor
depends_on:
- orion-ops-pro-db
- orion-ops-pro-redis
orion-ops-pro-db:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro-mysql:1.1.0
- orion-visor-db
- orion-visor-redis
orion-visor-db:
image: registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-mysql:1.1.0
privileged: true
ports:
- 3307:3306
environment:
- MYSQL_DATABASE=orion-ops-pro
- MYSQL_DATABASE=orion_visor
- MYSQL_USER=orion
- MYSQL_PASSWORD=Data@123456
- MYSQL_ROOT_PASSWORD=Data@123456
volumes:
- /data/orion-ops-pro-space/docker-volumes/mysql/var-lib-mysql:/var/lib/mysql
- /data/orion-ops-pro-space/docker-volumes/mysql/var-lib-mysql-files:/var/lib/mysql-files
- /data/orion-ops-pro-space/docker-volumes/mysql/etc-mysql:/etc/mysql
orion-ops-pro-redis:
- /data/orion-visor-space/docker-volumes/mysql/var-lib-mysql:/var/lib/mysql
- /data/orion-visor-space/docker-volumes/mysql/var-lib-mysql-files:/var/lib/mysql-files
- /data/orion-visor-space/docker-volumes/mysql/etc-mysql:/etc/mysql
orion-visor-redis:
image: redis:6.0.16-alpine
command: redis-server --appendonly yes --requirepass Data@123456
ports:
- 6380:6379
volumes:
- /data/orion-ops-pro-space/docker-volumes/redis/data:/data
- /data/orion-ops-pro-space/docker-volumes/redis/redis.conf:/usr/local/etc/redis/redis.conf
orion-ops-pro-adminer:
- /data/orion-visor-space/docker-volumes/redis/data:/data
- /data/orion-visor-space/docker-volumes/redis/redis.conf:/usr/local/etc/redis/redis.conf
orion-visor-adminer:
image: adminer
ports:
- 8081:8080

View File

@@ -1,7 +1,7 @@
#/bin/bash
version=1.1.0
cp -r ../../sql ./sql
docker build -t orion-ops-pro-mysql:${version} .
`docker build -t orion-visor-mysql:${version} .
rm -rf ./sql
docker tag orion-ops-pro-mysql:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro-mysql:${version}
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro-mysql:${version}
docker tag orion-visor-mysql:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-mysql:${version}
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor-mysql:${version}

View File

@@ -1,9 +0,0 @@
#/bin/bash
version=1.1.0
mv ../../orion-ops-launch/target/orion-ops-launch.jar ./orion-ops-launch.jar
mv ../../orion-ops-ui/dist ./dist
docker build -t orion-ops-pro:${version} .
rm -f ./orion-ops-launch.jar
rm -rf ./dist
docker tag orion-ops-pro:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro:${version}
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-ops-pro:${version}

View File

@@ -8,7 +8,7 @@ RUN \
RUN apk add openjdk8
RUN rm -rf /etc/nginx/conf.d/*
WORKDIR /app
COPY ./orion-ops-launch.jar /app/app.jar
COPY ./orion-visor-launch.jar /app/app.jar
COPY ./dist /usr/share/nginx/html
COPY ./entrypoint.sh /app/entrypoint.sh
COPY ./nginx.conf /etc/nginx/conf.d

View File

@@ -0,0 +1,9 @@
#/bin/bash
version=1.1.0
mv ../../orion-visor-launch/target/orion-visor-launch.jar ./orion-visor-launch.jar
mv ../../orion-visor-ui/dist ./dist
docker build -t orion-visor:${version} .
rm -f ./orion-visor-launch.jar
rm -rf ./dist
docker tag orion-visor:${version} registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor:${version}
docker push registry.cn-hangzhou.aliyuncs.com/lijiahangmax/orion-visor:${version}

View File

@@ -1,6 +1,6 @@
## 免责声明
> 欢迎您选择使用 orion-ops-pro(以下简称「本项目」)。在使用本项目前,请您仔细阅读本免责声明,并确保您已充分理解其中的内容。您的使用行为将视为对本声明全部内容的认可和接受。
> 欢迎您选择使用 orion-visor(以下简称「本项目」)。在使用本项目前,请您仔细阅读本免责声明,并确保您已充分理解其中的内容。您的使用行为将视为对本声明全部内容的认可和接受。
> 本项目为一款开源免费的运维管理工具,采用 Apache 2.0 许可证授权。您可在遵守相关法律法规及许可证条款的前提下,自由修改和使用本项目。

View File

@@ -1,36 +1,36 @@
<h1 style="display: flex; align-items: center;">
<img style="margin-right: 8px;" src="./assert/logo.svg" width="32px" height="32px"/> orion-ops-pro 是什么
<img style="margin-right: 8px;" src="./assert/logo.svg" width="32px" height="32px"/> orion-visor 是什么
</h1>
`orion-ops-pro`
`orion-visor`
是一款现代化、高颜值的一站式智能运维管理平台集资产管理、资产授权、批量执行、批量上传、计划任务、WebShell、WebSftp、角色管理、系统管理等功能于一体致力于简化运维团队的治理工作。
<p style="text-align: left">
<a target="_blank" style="text-decoration: none" href="https://app.codacy.com/gh/lijiahangmax/orion-ops-pro/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade">
<a target="_blank" style="text-decoration: none" href="https://app.codacy.com/gh/lijiahangmax/orion-visor/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade">
<img src="https://app.codacy.com/project/badge/Grade/49eaab3a9a474af3b87e1d21ffec71c4" alt="quality"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html">
<img src="https://img.shields.io/badge/JDK-8+-green.svg" alt="jdk8"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://www.apache.org/licenses/LICENSE-2.0">
<img src="https://img.shields.io/github/license/lijiahangmax/orion-ops-pro" alt="License"/>
<img src="https://img.shields.io/github/license/lijiahangmax/orion-visor" alt="License"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://gitee.com/lijiahangmax/orion-ops-pro/stargazers">
<img src="https://gitee.com/lijiahangmax/orion-ops-pro/badge/star.svg?theme=dark" alt="star"/>
<a target="_blank" style="text-decoration: none" href="https://gitee.com/lijiahangmax/orion-visor/stargazers">
<img src="https://gitee.com/lijiahangmax/orion-visor/badge/star.svg?theme=dark" alt="star"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://gitee.com/lijiahangmax/orion-ops-pro/members">
<img src="https://gitee.com/lijiahangmax/orion-ops-pro/badge/fork.svg?theme=dark" alt="fork"/>
<a target="_blank" style="text-decoration: none" href="https://gitee.com/lijiahangmax/orion-visor/members">
<img src="https://gitee.com/lijiahangmax/orion-visor/badge/fork.svg?theme=dark" alt="fork"/>
</a>
<a target="_blank" style="text-decoration: none" href="https://github.com/lijiahangmax/orion-ops-pro">
<img src="https://img.shields.io/github/stars/lijiahangmax/orion-ops-pro.svg?style=social" alt="star"/>
<a target="_blank" style="text-decoration: none" href="https://github.com/lijiahangmax/orion-visor">
<img src="https://img.shields.io/github/stars/lijiahangmax/orion-visor.svg?style=social" alt="star"/>
</a>
</p>
当前版本: **1.1.0**
**github:** https://github.com/lijiahangmax/orion-ops-pro
**gitee:** https://gitee.com/lijiahangmax/orion-ops-pro
**文档:** https://lijiahangmax.github.io/orion-ops-pro/#/
**github:** https://github.com/lijiahangmax/orion-visor
**gitee:** https://gitee.com/lijiahangmax/orion-visor
**文档:** https://lijiahangmax.github.io/orion-visor/#/
**demo:** http://101.43.254.243:1081/
演示账号: `admin`
@@ -106,7 +106,7 @@
<img src="./assert/img/wx.jpg" alt="wx" width="298px" height="398px"/>
</div>
📧 咨询问题微信备注: ops
📧 咨询问题微信备注: git
📧 合作/功能定制备注: 合作
## 支持一下
@@ -121,4 +121,4 @@
## License
本项目遵循 [Apache-2.0](https://github.com/lijiahangmax/orion-ops-pro/blob/main/LICENSE) 开源许可证。
本项目遵循 [Apache-2.0](https://github.com/lijiahangmax/orion-visor/blob/main/LICENSE) 开源许可证。

View File

@@ -1,4 +1,4 @@
# orion-ops-pro <small>1.1.0</small>
# orion-visor <small>1.1.0</small>
> 一款开箱即用的运维平台。
@@ -6,6 +6,6 @@
- 安全 稳定
- 智能 高效
[GitHub](https://github.com/lijiahangmax/orion-ops-pro)
[Gitee](https://gitee.com/lijiahangmax/orion-ops-pro)
[GitHub](https://github.com/lijiahangmax/orion-visor)
[Gitee](https://gitee.com/lijiahangmax/orion-visor)
[Get Started](README.md)

View File

@@ -2,11 +2,19 @@
### 升级须知
* 应用 **不支持** 跨版本升级, 可以进行 **多次升级**
* docker 安装的 sql 脚本可以在 `adminer` 中执行
* 应用 **不支持** 跨版本升级, 可以进行 **多次升级**
* docker 安装的 sql 脚本可以在 `adminer` 中执行
* 执行完成菜单 sql 后请刷新缓存 `系统设置` > `系统菜单` > `刷新缓存`
* 执行完成字典 sql 后请刷新缓存 `系统设置` > `数据字典项` > `刷新缓存`
### docker 升级流程
* 备份 `volumes` (必要时可以回滚)
* 进入 `adminer` 执行升级的 `sql` 脚本
* 进入 `docker-compose.yml` 的相对目录
* 执行 `docker compose down` 停止容器
* 执行 `docker compose up -d` 启动容器
### v1.1.0
`2024-05-` `release`

View File

@@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>关于 orion-ops-pro</title>
<title>关于 orion-visor</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta name="description" content="Description">
<link rel="icon" href="./assert/logo.svg">
@@ -18,9 +18,9 @@
<script>
window.$docsify = {
// 左侧文档名称
name: 'orion-ops-pro',
name: 'orion-visor',
// 右上角仓库
repo: 'https://github.com/lijiahangmax/orion-ops-pro',
repo: 'https://github.com/lijiahangmax/orion-visor',
coverpage: true,
// 加载侧边栏
loadSidebar: true,

View File

@@ -78,29 +78,29 @@
⚡ 使用 `@{{ xxx }}` 来替换命令参数
| 参数 | 描述 | 参数示例 |
|:----------------|:---------------------------|-------------------------------------------------|
| source | 执行来源 (BATCH/JOB) | JOB |
| sourceId | 执行来源id (JOB特有) | 6 |
| seq | 执行序列 (JOB特有) | 920 |
| userId | 执行用户id (JOB为0) | 1 |
| username | 执行用户名 (JOB为system) | admin |
| execId | 执行记录id | 2000 |
| hostId | 执行主机id | 1 |
| hostName | 执行主机名称 | server-127.0.0.1 |
| hostCode | 执行主机编码 | server |
| hostAddress | 执行主机地址 | 127.0.0.1 |
| hostUsername | 执行主机用户名 | root |
| osType | 执行主机系统版本 | LINUX |
| port | SSH 端口 | 22 |
| charset | SSH 编码集 | UTF-8 |
| scriptExec | 是否使用脚本执行 (0否1是) | 1 |
| scriptPath | 脚本文件路径 | /root/orion/orion-ops-pro/script/exec_2000_1.sh |
| uuid | 生成任务维度 uuid | 82b20e52-cea9-455b-a0b4-e4e25654e22b |
| uuidShort | 生成任务维度 uuid 无 '-' | 82b20e52cea9455ba0b4e4e25654e22b |
| hostUuid | 生成机器维度 uuid | 2687b09e-1046-4e8d-9cc2-a7e697836b88 |
| hostUuidShort | 生成机器维度 uuid 无 '-' | 2687b09e10464e8d9cc2a7e697836b88 |
| timestampMillis | 时间戳毫秒 | 1715173200848 |
| timestamp | 时间戳 | 1715173200 |
| date | 执行时间 `yyyy-MM-dd` | `2024-01-01` |
| datetime | 执行时间 `yyyy-MM-dd HH:mm:ss` | `2024-01-01 21:00:00` |
| 参数 | 描述 | 参数示例 |
|:----------------|:---------------------------|-----------------------------------------------|
| source | 执行来源 (BATCH/JOB) | JOB |
| sourceId | 执行来源id (JOB特有) | 6 |
| seq | 执行序列 (JOB特有) | 920 |
| userId | 执行用户id (JOB为0) | 1 |
| username | 执行用户名 (JOB为system) | admin |
| execId | 执行记录id | 2000 |
| hostId | 执行主机id | 1 |
| hostName | 执行主机名称 | server-127.0.0.1 |
| hostCode | 执行主机编码 | server |
| hostAddress | 执行主机地址 | 127.0.0.1 |
| hostUsername | 执行主机用户名 | root |
| osType | 执行主机系统版本 | LINUX |
| port | SSH 端口 | 22 |
| charset | SSH 编码集 | UTF-8 |
| scriptExec | 是否使用脚本执行 (0否1是) | 1 |
| scriptPath | 脚本文件路径 | /root/orion/orion-visor/script/exec_2000_1.sh |
| uuid | 生成任务维度 uuid | 82b20e52-cea9-455b-a0b4-e4e25654e22b |
| uuidShort | 生成任务维度 uuid 无 '-' | 82b20e52cea9455ba0b4e4e25654e22b |
| hostUuid | 生成机器维度 uuid | 2687b09e-1046-4e8d-9cc2-a7e697836b88 |
| hostUuidShort | 生成机器维度 uuid 无 '-' | 2687b09e10464e8d9cc2a7e697836b88 |
| timestampMillis | 时间戳毫秒 | 1715173200848 |
| timestamp | 时间戳 | 1715173200 |
| date | 执行时间 `yyyy-MM-dd` | `2024-01-01` |
| datetime | 执行时间 `yyyy-MM-dd HH:mm:ss` | `2024-01-01 21:00:00` |

View File

@@ -15,40 +15,40 @@
```
# github
git clone https://github.com/lijiahangmax/orion-ops-pro
git clone https://github.com/lijiahangmax/orion-visor
# gitee
git clone https://gitee.com/lijiahangmax/orion-ops-pro
git clone https://gitee.com/lijiahangmax/orion-visor
```
2. 初始化数据库
```
# 执行脚本
orion-ops-pro/sql/init-1-schema-databases.sql
orion-ops-pro/sql/init-2-schema-tables.sql
orion-ops-pro/sql/init-3-schema-quartz.sql
orion-ops-pro/sql/init-4-data.sql
orion-visor/sql/init-1-schema-databases.sql
orion-visor/sql/init-2-schema-tables.sql
orion-visor/sql/init-3-schema-quartz.sql
orion-visor/sql/init-4-data.sql
```
3. 修改后端配置
```
# 修改配置文件 (mysql, redis, secret-key)
orion-ops-pro/orion-ops-launch/src/main/resources/application-prod.yaml
orion-visor/orion-visor-launch/src/main/resources/application-prod.yaml
# 进入代码目录
cd orion-ops-pro
cd orion-visor
# 编译
mvn -U clean install -DskipTests
# 启动
com.orion.ops.launch.LaunchApplication
com.orion.visor.launch.LaunchApplication
```
4. 修改前端配置
```
# 进入代码目录
cd orion-ops-pro/orion-ops-ui
cd orion-visor/orion-visor-ui
# 下载 pnpm
npm i -g pnpm
# 下载依赖

View File

@@ -21,16 +21,16 @@ Dashboard 修改)
```
# github
git clone https://github.com/lijiahangmax/orion-ops-pro
git clone https://github.com/lijiahangmax/orion-visor
# gitee
git clone https://gitee.com/lijiahangmax/orion-ops-pro
git clone https://gitee.com/lijiahangmax/orion-visor
```
### 构建镜像
```
# 进入仓库目录
cd orion-ops-pro
cd orion-visor
# 修改 docker-compose.yml (建议修改)
# MYSQL_USER mysql 用户名
# MYSQL_PASSWORD mysql 用户密码
@@ -51,10 +51,10 @@ docker compose up -d
```
访问 adminer: http://localhost:8081
服务器: orion-ops-pro-db
服务器: orion-visor-db
用户名: root
密码: Data@123456
数据库: orion-ops-pro
数据库: orion-visor
点击左侧 SQL命令 输入:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'Data@123456';

View File

@@ -16,29 +16,29 @@
```
# github
git clone https://github.com/lijiahangmax/orion-ops-pro
git clone https://github.com/lijiahangmax/orion-visor
# gitee
git clone https://gitee.com/lijiahangmax/orion-ops-pro
git clone https://gitee.com/lijiahangmax/orion-visor
```
2. 初始化数据库
```
# 执行脚本
orion-ops-pro/sql/init-1-schema-databases.sql
orion-ops-pro/sql/init-2-schema-tables.sql
orion-ops-pro/sql/init-3-schema-quartz.sql
orion-ops-pro/sql/init-4-data.sql
orion-visor/sql/init-1-schema-databases.sql
orion-visor/sql/init-2-schema-tables.sql
orion-visor/sql/init-3-schema-quartz.sql
orion-visor/sql/init-4-data.sql
```
3. 构建后端代码
```
# 修改配置文件 (mysql, redis, secret-key)
orion-ops-pro/orion-ops-launch/src/main/resources/application-prod.yaml
orion-visor/orion-visor-launch/src/main/resources/application-prod.yaml
# 进入代码目录
cd orion-ops-pro
cd orion-visor
# 编译
mvn -U clean install -DskipTests
```
@@ -47,7 +47,7 @@ mvn -U clean install -DskipTests
```
# 进入代码目录
cd orion-ops-pro/orion-ops-ui
cd orion-visor/orion-visor-ui
# 下载 pnpm
npm i -g pnpm
# 下载依赖
@@ -119,10 +119,10 @@ server {
### 部署
```
复制 orion-ops-pro/orion-ops-ui/dist 到 /usr/share/nginx/html
复制 orion-ops-pro/orion-ops-launch/target/orion-ops-launch.jar 到 /data/orion
复制 orion-visor/orion-visor-ui/dist 到 /usr/share/nginx/html
复制 orion-visor/orion-visor-launch/target/orion-visor-launch.jar 到 /data/orion
# 启动后台服务
nohup java -jar orion-ops-launch.jar --spring.profiles.active=prod 2>&1 &
nohup java -jar orion-visor-launch.jar --spring.profiles.active=prod 2>&1 &
# 启动 nginx
service nginx start
```

View File

@@ -90,9 +90,9 @@ CREATE TABLE `exec_template`
TRUNCATE `system_menu`;
INSERT INTO `system_menu` VALUES (1, 0, '工作台', NULL, 1, 10, 1, 1, 1, 0, 'IconComputer', NULL, 'workplace', '2023-07-28 10:51:50', '2023-09-11 15:27:52', '1', '1', 0);
INSERT INTO `system_menu` VALUES (5, 0, '用户设置', NULL, 1, 700, 1, 1, 1, 0, 'icon-user', NULL, '', '2023-07-28 10:55:38', '2024-03-07 19:03:52', '1', '1', 0);
INSERT INTO `system_menu` VALUES (8, 0, '项目地址 github', NULL, 1, 1000, 1, 1, 1, 0, 'icon-github', 'https://github.com/lijiahangmax/orion-ops-pro', '', '2023-07-28 11:04:59', '2023-10-12 15:21:22', '1', '1', 0);
INSERT INTO `system_menu` VALUES (8, 0, '项目地址 github', NULL, 1, 1000, 1, 1, 1, 0, 'icon-github', 'https://github.com/lijiahangmax/orion-visor', '', '2023-07-28 11:04:59', '2023-10-12 15:21:22', '1', '1', 0);
INSERT INTO `system_menu` VALUES (10, 5, '角色管理', NULL, 2, 10, 1, 1, 1, 0, 'IconUserGroup', '', 'role', '2023-07-28 10:55:52', '2024-03-07 19:10:13', '1', '1', 0);
INSERT INTO `system_menu` VALUES (11, 0, '项目地址 gitee', NULL, 1, 1010, 1, 1, 1, 0, 'icon-gitlab', 'https://gitee.com/lijiahangmax/orion-ops-pro', '', '2023-08-02 18:08:07', '2023-08-11 18:11:34', '1', '1', 0);
INSERT INTO `system_menu` VALUES (11, 0, '项目地址 gitee', NULL, 1, 1010, 1, 1, 1, 0, 'icon-gitlab', 'https://gitee.com/lijiahangmax/orion-visor', '', '2023-08-02 18:08:07', '2023-08-11 18:11:34', '1', '1', 0);
INSERT INTO `system_menu` VALUES (12, 0, '系统设置', NULL, 1, 800, 1, 1, 1, 0, 'icon-tool', NULL, '', '2023-08-02 18:24:24', '2024-03-07 19:03:57', '1', '1', 0);
INSERT INTO `system_menu` VALUES (13, 12, '系统菜单', '', 2, 10, 1, 1, 1, 0, 'icon-menu', NULL, 'systemMenu', '2023-08-02 18:29:01', '2024-03-07 22:25:00', '1', '1', 0);
INSERT INTO `system_menu` VALUES (20, 10, '创建角色', 'infra:system-role:create', 3, 10, 1, 1, 1, 0, NULL, NULL, NULL, '2023-08-15 16:36:54', '2023-10-27 01:20:46', '1', '1', 0);

View File

@@ -276,9 +276,9 @@ UPDATE operator_log SET module = 'asset:exec-command-log', type = 'exec-command-
TRUNCATE `system_menu`;
INSERT INTO `system_menu` VALUES (1, 0, '工作台', NULL, 1, 10, 1, 1, 1, 0, 'IconComputer', NULL, 'workplace', '2023-07-28 10:51:50', '2023-09-11 15:27:52', '1', '1', 0);
INSERT INTO `system_menu` VALUES (5, 0, '用户设置', NULL, 1, 700, 1, 1, 1, 0, 'icon-user', NULL, 'userModule', '2023-07-28 10:55:38', '2024-04-03 00:56:30', '1', '1', 0);
INSERT INTO `system_menu` VALUES (8, 0, '项目地址 github', NULL, 1, 1000, 1, 1, 1, 0, 'icon-github', 'https://github.com/lijiahangmax/orion-ops-pro', '', '2023-07-28 11:04:59', '2023-10-12 15:21:22', '1', '1', 0);
INSERT INTO `system_menu` VALUES (8, 0, '项目地址 github', NULL, 1, 1000, 1, 1, 1, 0, 'icon-github', 'https://github.com/lijiahangmax/orion-visor', '', '2023-07-28 11:04:59', '2023-10-12 15:21:22', '1', '1', 0);
INSERT INTO `system_menu` VALUES (10, 5, '角色管理', NULL, 2, 10, 1, 1, 1, 0, 'IconUserGroup', '', 'role', '2023-07-28 10:55:52', '2024-03-07 19:10:13', '1', '1', 0);
INSERT INTO `system_menu` VALUES (11, 0, '项目地址 gitee', NULL, 1, 1010, 1, 1, 1, 0, 'icon-gitlab', 'https://gitee.com/lijiahangmax/orion-ops-pro', '', '2023-08-02 18:08:07', '2023-08-11 18:11:34', '1', '1', 0);
INSERT INTO `system_menu` VALUES (11, 0, '项目地址 gitee', NULL, 1, 1010, 1, 1, 1, 0, 'icon-gitlab', 'https://gitee.com/lijiahangmax/orion-visor', '', '2023-08-02 18:08:07', '2023-08-11 18:11:34', '1', '1', 0);
INSERT INTO `system_menu` VALUES (12, 0, '系统设置', NULL, 1, 800, 1, 1, 1, 0, 'icon-tool', NULL, 'systemModule', '2023-08-02 18:24:24', '2024-04-03 00:56:17', '1', '1', 0);
INSERT INTO `system_menu` VALUES (13, 12, '系统菜单', '', 2, 10, 1, 1, 1, 0, 'icon-menu', NULL, 'systemMenu', '2023-08-02 18:29:01', '2024-03-07 22:25:00', '1', '1', 0);
INSERT INTO `system_menu` VALUES (20, 10, '创建角色', 'infra:system-role:create', 3, 10, 1, 1, 1, 0, NULL, NULL, NULL, '2023-08-15 16:36:54', '2023-10-27 01:20:46', '1', '1', 0);

View File

@@ -70,8 +70,8 @@ UPDATE data_group_rel SET user_id = 0;
-- 菜单
DELETE FROM `system_menu` WHERE id >= 190;
INSERT INTO `system_menu` VALUES (190, 184, '中断计划任务', 'asset:exec-job-log:interrupt', 3, 40, 1, 1, 1, 0, NULL, NULL, NULL, '2024-03-13 15:08:23', '2024-04-12 00:00:33', '1', '1', 0);
INSERT INTO `system_menu` VALUES (191, 0, '提交bug', NULL, 1, 1020, 1, 1, 0, 1, 'IconBug', 'https://github.com/lijiahangmax/orion-ops-pro/issues', NULL, '2024-04-26 11:30:18', '2024-04-26 11:30:30', '1', '1', 0);
INSERT INTO `system_menu` VALUES (192, 0, '点个赞~', NULL, 1, 1030, 1, 1, 0, 1, 'IconThumbUp', 'https://gitee.com/lijiahangmax/orion-ops-pro', NULL, '2024-04-26 11:32:30', '2024-04-26 11:32:30', '1', '1', 0);
INSERT INTO `system_menu` VALUES (191, 0, '提交bug', NULL, 1, 1020, 1, 1, 0, 1, 'IconBug', 'https://github.com/lijiahangmax/orion-visor/issues', NULL, '2024-04-26 11:30:18', '2024-04-26 11:30:30', '1', '1', 0);
INSERT INTO `system_menu` VALUES (192, 0, '点个赞~', NULL, 1, 1030, 1, 1, 0, 1, 'IconThumbUp', 'https://gitee.com/lijiahangmax/orion-visor', NULL, '2024-04-26 11:32:30', '2024-04-26 11:32:30', '1', '1', 0);
-- 字典项
DELETE FROM `dict_key` WHERE id = 27 OR id >= 39;
INSERT INTO `dict_key` VALUES (27, 'hostConnectType', 'STRING', '[{\"name\": \"color\", \"type\": \"COLOR\"}]', '主机连接类型', '2023-12-26 23:23:08', '2024-04-24 16:37:48', '1', '1', 0);

View File

@@ -97,7 +97,7 @@ INSERT INTO `system_menu` VALUES (176, 0, '批量执行', NULL, 1, 420, 1, 1, 1,
INSERT INTO `system_menu` VALUES (177, 193, '任务列表', NULL, 2, 10, 1, 1, 1, 0, 'IconUnorderedList', NULL, 'execJob', '2024-04-10 16:13:27', '2024-04-28 15:36:10', '1', '1', 0);
INSERT INTO `system_menu` VALUES (184, 193, '任务日志', NULL, 2, 20, 1, 1, 1, 0, 'icon-history', '', 'execJobLog', '2024-04-11 13:40:47', '2024-04-28 15:34:27', '2', '1', 0);
INSERT INTO `system_menu` VALUES (185, 193, '计划任务日志新页面', NULL, 2, 30, 0, 1, 0, 1, NULL, NULL, 'execJobLogView', '2024-04-11 13:41:47', '2024-04-28 15:33:33', '2', '1', 0);
INSERT INTO `system_menu` VALUES (192, 0, '点个赞~', NULL, 1, 1030, 1, 1, 0, 1, 'IconThumbUp', 'https://github.com/lijiahangmax/orion-ops-pro', NULL, '2024-04-26 11:32:30', '2024-05-06 17:33:16', '1', '1', 0);
INSERT INTO `system_menu` VALUES (192, 0, '点个赞~', NULL, 1, 1030, 1, 1, 0, 1, 'IconThumbUp', 'https://github.com/lijiahangmax/orion-visor', NULL, '2024-04-26 11:32:30', '2024-05-06 17:33:16', '1', '1', 0);
INSERT INTO `system_menu` VALUES (193, 0, '计划任务', NULL, 1, 430, 1, 1, 1, 0, 'IconCalendarClock', NULL, 'jobModule', '2024-04-28 15:31:24', '2024-04-28 15:32:56', '1', '1', 0);
INSERT INTO `system_menu` VALUES (194, 152, '在线会话', NULL, 2, 20, 1, 1, 1, 0, 'IconUserGroup', NULL, 'connectSession', '2024-05-07 11:12:17', '2024-05-07 11:12:35', '1', '1', 0);
INSERT INTO `system_menu` VALUES (195, 194, '查询在线会话', 'asset:host-connect-session:management:query', 3, 10, 1, 1, 1, 0, NULL, NULL, NULL, '2024-05-07 11:13:16', '2024-05-07 11:13:16', '1', '1', 0);

View File

@@ -1,11 +1,63 @@
## v1.1.0
> sql 脚本 - DDL
### ⚡ **本次升级提示** ⚡
```sql
```readme
本次升级包含数据库重命名操作。#1 创建新数据库, #2 进行数据迁移, #3 删除旧数据库。
如果不想重命名可以修改 docker-compose.yml, 将 MYSQL_DATABASE 改为 orion-ops-pro 并且跳过步骤 #3 #4 #5
```
> sql 脚本 - DML
> #1 sql 脚本 - DDL
```sql
-- 修改默认值
ALTER TABLE `exec_job`
MODIFY COLUMN `status` tinyint(0) NULL DEFAULT 0 COMMENT '任务状态' AFTER `parameter_schema`;
```
> #2 sql 脚本 - DML
```sql
-- 删除 quartz 配置
DELETE FROM QRTZ_TRIGGERS;
DELETE FROM QRTZ_LOCKS;
DELETE FROM QRTZ_JOB_DETAILS;
DELETE FROM QRTZ_CRON_TRIGGERS;
-- 修改计划任务为停用
UPDATE exec_job SET status = 0;
```
> #3 sql 脚本 - 创建数据库 orion_visor
```sql
-- 创建数据库
CREATE DATABASE IF NOT EXISTS `orion_visor` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
```
> #4 sql 脚本 - 数据迁移
```bash
# 可以使用 navicat 的数据迁移功能, 下面描述的是 bash 中执行, 注意下面的变量替换
mysql_container_id=ea98e84527f6;
# 进入容器
docker exec -it $mysql_container_id /bin/sh
mysql_username=root;
mysql_password=Data@123456;
# 导出数据
mysqldump -u $mysql_username -p$mysql_password orion-ops-pro > /tmp/orion-ops-pro_dump.sql;
mysql -u $mysql_username -p$mysql_password orion_visor < /tmp/orion-ops-pro_dump.sql;
# 等待数据导入完毕 建议在 5min 以上
sleep 300;
# 删除 dump 文件
rm -f /tmp/orion-ops-pro_dump.sql
# 退出
exit
```
> #5 sql 脚本 - 删除数据库
```sql
-- 删除数据库
DROP DATABASE `orion-ops-pro`;
```

11
docs/update/v1.1.1.md Normal file
View File

@@ -0,0 +1,11 @@
## v1.1.1
> sql 脚本 - DDL
```sql
```
> sql 脚本 - DML
```sql
```

View File

@@ -1,27 +0,0 @@
package com.orion.ops.framework.common.constant;
import com.orion.lang.constant.OrionConst;
/**
* 项目常量
*
* @author Jiahang Li
* @version 1.0.0
* @since 2023/6/19 18:56
*/
public interface AppConst extends OrionConst {
/**
* 同 ${orion.version} 迭代时候需要手动更改
*/
String VERSION = "1.1.0";
String ORION_OPS_PRO = "orion-ops-pro";
String GITHUB = "https://github.com/lijiahangmax/orion-ops-pro";
String GITEE = "https://gitee.com/lijiahangmax/orion-ops-pro";
String ISSUES = "https://github.com/lijiahangmax/orion-ops-pro/issues";
}

View File

@@ -1 +0,0 @@
com.orion.ops.framework.common.configuration.OrionCommonAutoConfiguration

View File

@@ -1,12 +0,0 @@
${AnsiColor.BRIGHT_GREEN} _ ${AnsiColor.BLUE}
${AnsiColor.BRIGHT_GREEN} ____ _____(_)___ ____ ____ ____ _____ ${AnsiColor.BLUE} ____ _________
${AnsiColor.BRIGHT_GREEN} / __ \/ ___/ / __ \/ __ \ / __ \/ __ \/ ___/ ${AnsiColor.BLUE} / __ \/ ___/ __ \
${AnsiColor.BRIGHT_GREEN}/ /_/ / / / / /_/ / / / / / /_/ / /_/ (__ ) ${AnsiColor.BLUE} / /_/ / / / /_/ /
${AnsiColor.BRIGHT_GREEN}\____/_/ /_/\____/_/ /_/ \____/ .___/____/ ${AnsiColor.BLUE} / .___/_/ \____/
${AnsiColor.BRIGHT_GREEN} /_/ ${AnsiColor.BLUE} /_/
${AnsiColor.BRIGHT_GREEN}:: Application Name ${AnsiColor.BLUE}${spring.application.name}
${AnsiColor.BRIGHT_GREEN}:: Application Version ${AnsiColor.BLUE}${orion.version}
${AnsiColor.BRIGHT_GREEN}:: SpringBoot Version ${AnsiColor.BLUE}${spring-boot.version}
${AnsiColor.BRIGHT_GREEN}:: Active Profile ${AnsiColor.BLUE}${spring.profiles.active}
${AnsiColor.DEFAULT}

View File

@@ -1 +0,0 @@
com.orion.ops.framework.biz.operator.log.configuration.OrionOperatorLogAutoConfiguration

View File

@@ -1 +0,0 @@
com.orion.ops.framework.datasource.configuration.OrionDataSourceAutoConfiguration

View File

@@ -1 +0,0 @@
com.orion.ops.framework.desensitize.configuration.OrionDesensitizeAutoConfiguration

View File

@@ -1,2 +0,0 @@
com.orion.ops.framework.job.configuration.OrionSchedulerAutoConfiguration
com.orion.ops.framework.job.configuration.OrionQuartzAutoConfiguration

View File

@@ -1 +0,0 @@
com.orion.ops.framework.mybatis.configuration.OrionMybatisAutoConfiguration

View File

@@ -1,2 +0,0 @@
com.orion.ops.framework.redis.configuration.OrionRedisAutoConfiguration
com.orion.ops.framework.redis.configuration.OrionCacheAutoConfiguration

View File

@@ -1,2 +0,0 @@
com.orion.ops.framework.security.configuration.OrionSecurityAutoConfiguration
com.orion.ops.framework.security.configuration.OrionCryptoAutoConfiguration

View File

@@ -1 +0,0 @@
com.orion.ops.framework.storage.configuration.OrionStorageAutoConfiguration

View File

@@ -1 +0,0 @@
com.orion.ops.framework.swagger.configuration.OrionSwaggerAutoConfiguration

View File

@@ -1 +0,0 @@
com.orion.ops.framework.websocket.configuration.OrionWebSocketAutoConfiguration

View File

@@ -1,37 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-pro</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>orion-ops-framework</artifactId>
<packaging>pom</packaging>
<description>项目组件包</description>
<url>https://github.com/lijiahangmax/orion-ops-pro</url>
<modules>
<module>orion-ops-framework-common</module>
<module>orion-ops-spring-boot-starter-web</module>
<module>orion-ops-spring-boot-starter-banner</module>
<module>orion-ops-spring-boot-starter-swagger</module>
<module>orion-ops-spring-boot-starter-datasource</module>
<module>orion-ops-spring-boot-starter-mybatis</module>
<module>orion-ops-spring-boot-starter-job</module>
<module>orion-ops-spring-boot-starter-websocket</module>
<module>orion-ops-spring-boot-starter-redis</module>
<module>orion-ops-spring-boot-starter-desensitize</module>
<module>orion-ops-spring-boot-starter-log</module>
<module>orion-ops-spring-boot-starter-storage</module>
<module>orion-ops-spring-boot-starter-security</module>
<module>orion-ops-spring-boot-starter-monitor</module>
<module>orion-ops-spring-boot-starter-test</module>
<module>orion-ops-spring-boot-starter-biz-operator-log</module>
</modules>
</project>

View File

@@ -1,99 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-module-asset</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>orion-ops-module-asset-service</artifactId>
<packaging>jar</packaging>
<description>项目资产模块</description>
<url>https://github.com/lijiahangmax/orion-ops-pro</url>
<dependencies>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-framework-common</artifactId>
</dependency>
<!-- infra provider -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-module-infra-provider</artifactId>
<version>${revision}</version>
</dependency>
<!-- asset provider -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-module-asset-provider</artifactId>
<version>${revision}</version>
</dependency>
<!-- web -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-web</artifactId>
</dependency>
<!-- websocket -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-websocket</artifactId>
</dependency>
<!-- log -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-log</artifactId>
</dependency>
<!-- operator-log -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-biz-operator-log</artifactId>
</dependency>
<!-- desensitize -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-desensitize</artifactId>
</dependency>
<!-- security -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-security</artifactId>
</dependency>
<!-- redis -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-redis</artifactId>
</dependency>
<!-- mybatis -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-mybatis</artifactId>
</dependency>
<!-- storage -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-storage</artifactId>
</dependency>
<!-- job -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-job</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -1,92 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-module-infra</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>orion-ops-module-infra-service</artifactId>
<packaging>jar</packaging>
<description>项目基建模块 用户 菜单 日志等</description>
<url>https://github.com/lijiahangmax/orion-ops-pro</url>
<dependencies>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-framework-common</artifactId>
</dependency>
<!-- infra provider -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-module-infra-provider</artifactId>
<version>${revision}</version>
</dependency>
<!-- web -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-web</artifactId>
</dependency>
<!-- websocket -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-websocket</artifactId>
</dependency>
<!-- log -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-log</artifactId>
</dependency>
<!-- operator-log -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-biz-operator-log</artifactId>
</dependency>
<!-- desensitize -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-desensitize</artifactId>
</dependency>
<!-- security -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-security</artifactId>
</dependency>
<!-- redis -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-redis</artifactId>
</dependency>
<!-- mybatis -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-mybatis</artifactId>
</dependency>
<!-- storage -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-storage</artifactId>
</dependency>
<!-- test -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-test</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -4,14 +4,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-dependencies</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-dependencies</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>项目所有依赖</description>
<url>https://github.com/lijiahangmax/orion-ops-pro</url>
<url>https://github.com/lijiahangmax/orion-visor</url>
<properties>
<revision>1.1.0</revision>
@@ -59,85 +59,85 @@
</exclusions>
</dependency>
<!-- orion-ops-starter -->
<!-- orion-visor-starter -->
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-framework-common</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-framework-common</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-banner</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-banner</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-web</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-web</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-swagger</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-swagger</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-datasource</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-datasource</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-mybatis</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-mybatis</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-job</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-job</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-websocket</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-websocket</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-redis</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-redis</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-desensitize</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-desensitize</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-log</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-log</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-storage</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-storage</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-security</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-security</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-monitor</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-monitor</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-test</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-test</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-spring-boot-starter-biz-operator-log</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-spring-boot-starter-biz-operator-log</artifactId>
<version>${revision}</version>
</dependency>

View File

@@ -3,18 +3,18 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>com.orion.ops</groupId>
<artifactId>orion-ops-framework</artifactId>
<groupId>com.orion.visor</groupId>
<artifactId>orion-visor-framework</artifactId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>orion-ops-framework-common</artifactId>
<artifactId>orion-visor-framework-common</artifactId>
<name>${project.artifactId}</name>
<packaging>jar</packaging>
<description>项目公共基准包</description>
<url>https://github.com/lijiahangmax/orion-ops-pro</url>
<url>https://github.com/lijiahangmax/orion-visor</url>
<dependencies>
<dependency>

View File

@@ -1,9 +1,9 @@
package com.orion.ops.framework.common.configuration;
package com.orion.visor.framework.common.configuration;
import com.orion.ops.framework.common.configuration.config.AsyncExecutorConfig;
import com.orion.ops.framework.common.constant.AutoConfigureOrderConst;
import com.orion.ops.framework.common.thread.ThreadPoolMdcTaskExecutor;
import com.orion.spring.SpringHolder;
import com.orion.visor.framework.common.configuration.config.AsyncExecutorConfig;
import com.orion.visor.framework.common.constant.AutoConfigureOrderConst;
import com.orion.visor.framework.common.thread.ThreadPoolMdcTaskExecutor;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.configuration.config;
package com.orion.visor.framework.common.configuration.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

View File

@@ -0,0 +1,27 @@
package com.orion.visor.framework.common.constant;
import com.orion.lang.constant.OrionConst;
/**
* 项目常量
*
* @author Jiahang Li
* @version 1.0.0
* @since 2023/6/19 18:56
*/
public interface AppConst extends OrionConst {
/**
* 同 ${orion.version} 迭代时候需要手动更改
*/
String VERSION = "1.1.0";
String ORION_VISOR = "orion-visor";
String GITHUB = "https://github.com/lijiahangmax/orion-visor";
String GITEE = "https://gitee.com/lijiahangmax/orion-visor";
String ISSUES = "https://github.com/lijiahangmax/orion-visor/issues";
}

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.constant;
package com.orion.visor.framework.common.constant;
import com.orion.lang.define.wrapper.CodeInfo;
import com.orion.lang.define.wrapper.HttpWrapper;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.crypto;
package com.orion.visor.framework.common.crypto;
import com.orion.lang.utils.codec.Base62s;
import com.orion.lang.utils.crypto.symmetric.SymmetricCrypto;

View File

@@ -1,7 +1,7 @@
package com.orion.ops.framework.common.entity;
package com.orion.visor.framework.common.entity;
import com.orion.lang.define.wrapper.IPageRequest;
import com.orion.ops.framework.common.validator.group.Page;
import com.orion.visor.framework.common.validator.group.Page;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.enums;
package com.orion.visor.framework.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.enums;
package com.orion.visor.framework.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.enums;
package com.orion.visor.framework.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.file;
package com.orion.visor.framework.common.file;
import java.io.InputStream;
import java.io.OutputStream;

View File

@@ -1,9 +1,9 @@
package com.orion.ops.framework.common.handler.data;
package com.orion.visor.framework.common.handler.data;
import com.alibaba.fastjson.JSON;
import com.orion.ops.framework.common.handler.data.model.GenericsDataModel;
import com.orion.ops.framework.common.handler.data.strategy.MapDataStrategy;
import com.orion.spring.SpringHolder;
import com.orion.visor.framework.common.handler.data.model.GenericsDataModel;
import com.orion.visor.framework.common.handler.data.strategy.MapDataStrategy;
/**
* 标准数据定义

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.handler.data.model;
package com.orion.visor.framework.common.handler.data.model;
import com.alibaba.fastjson.JSON;

View File

@@ -1,6 +1,6 @@
package com.orion.ops.framework.common.handler.data.strategy;
package com.orion.visor.framework.common.handler.data.strategy;
import com.orion.ops.framework.common.handler.data.model.GenericsDataModel;
import com.orion.visor.framework.common.handler.data.model.GenericsDataModel;
/**
* 标准数据处理策略

View File

@@ -1,7 +1,7 @@
package com.orion.ops.framework.common.handler.data.strategy;
package com.orion.visor.framework.common.handler.data.strategy;
import com.alibaba.fastjson.JSONObject;
import com.orion.ops.framework.common.handler.data.model.GenericsDataModel;
import com.orion.visor.framework.common.handler.data.model.GenericsDataModel;
import java.util.Map;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.json.filter;
package com.orion.visor.framework.common.json.filter;
import com.alibaba.fastjson.serializer.ValueFilter;
import com.orion.lang.utils.Desensitizes;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.json.filter;
package com.orion.visor.framework.common.json.filter;
import com.alibaba.fastjson.serializer.PropertyFilter;
import com.orion.lang.utils.collect.Lists;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.meta;
package com.orion.visor.framework.common.meta;
import com.alibaba.ttl.TransmittableThreadLocal;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.security;
package com.orion.visor.framework.common.security;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

View File

@@ -1,9 +1,9 @@
package com.orion.ops.framework.common.security;
package com.orion.visor.framework.common.security;
import com.orion.lang.utils.Booleans;
import com.orion.lang.utils.Strings;
import com.orion.ops.framework.common.constant.Const;
import com.orion.ops.framework.common.utils.CryptoUtils;
import com.orion.visor.framework.common.constant.Const;
import com.orion.visor.framework.common.utils.CryptoUtils;
/**
* 密码修改器

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.security;
package com.orion.visor.framework.common.security;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

View File

@@ -1,6 +1,6 @@
package com.orion.ops.framework.common.thread;
package com.orion.visor.framework.common.thread;
import com.orion.ops.framework.common.utils.ThreadMdcUtils;
import com.orion.visor.framework.common.utils.ThreadMdcUtils;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
import java.util.concurrent.Callable;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.lang.constant.Const;

View File

@@ -1,7 +1,7 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.lang.utils.Exceptions;
import com.orion.ops.framework.common.crypto.ValueCrypto;
import com.orion.visor.framework.common.crypto.ValueCrypto;
/**
* 加密工具类

View File

@@ -1,7 +1,7 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.lang.utils.Exceptions;
import com.orion.ops.framework.common.file.FileClient;
import com.orion.visor.framework.common.file.FileClient;
import java.io.InputStream;
import java.io.OutputStream;

View File

@@ -1,7 +1,7 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.lang.utils.time.Dates;
import com.orion.ops.framework.common.constant.Const;
import com.orion.visor.framework.common.constant.Const;
/**
* 文件名称

View File

@@ -1,8 +1,8 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.ext.location.Region;
import com.orion.ext.location.region.LocationRegions;
import com.orion.ops.framework.common.constant.Const;
import com.orion.visor.framework.common.constant.Const;
import java.util.HashMap;
import java.util.Map;

View File

@@ -1,8 +1,8 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.lang.utils.Objects1;
import com.orion.ops.framework.common.constant.AppConst;
import com.orion.ops.framework.common.constant.Const;
import com.orion.visor.framework.common.constant.AppConst;
import com.orion.visor.framework.common.constant.Const;
/**
* 路径工具类
@@ -47,7 +47,7 @@ public class PathUtils {
public static String getAppPath(boolean isWindows, String username) {
return getHomePath(isWindows, username)
+ "/" + AppConst.ORION
+ "/" + AppConst.ORION_OPS_PRO;
+ "/" + AppConst.ORION_VISOR;
}
/**

View File

@@ -1,7 +1,7 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.ops.framework.common.entity.RequestIdentity;
import com.orion.ops.framework.common.entity.RequestIdentityModel;
import com.orion.visor.framework.common.entity.RequestIdentity;
import com.orion.visor.framework.common.entity.RequestIdentityModel;
import com.orion.web.servlet.web.Servlets;
import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

View File

@@ -1,8 +1,8 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.lang.utils.collect.Maps;
import com.orion.lang.utils.reflect.Annotations;
import com.orion.ops.framework.common.constant.Const;
import com.orion.visor.framework.common.constant.Const;
import io.swagger.v3.oas.annotations.Operation;
import java.lang.reflect.Method;

View File

@@ -1,6 +1,6 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.ops.framework.common.meta.TraceIdHolder;
import com.orion.visor.framework.common.meta.TraceIdHolder;
import org.slf4j.MDC;
import java.util.Map;

View File

@@ -1,8 +1,8 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.lang.utils.collect.Lists;
import com.orion.ops.framework.common.constant.Const;
import com.orion.ops.framework.common.entity.TreeNode;
import com.orion.visor.framework.common.constant.Const;
import com.orion.visor.framework.common.entity.TreeNode;
import java.util.Comparator;
import java.util.List;

View File

@@ -1,8 +1,8 @@
package com.orion.ops.framework.common.utils;
package com.orion.visor.framework.common.utils;
import com.orion.lang.utils.Arrays1;
import com.orion.lang.utils.io.Files1;
import com.orion.ops.framework.common.constant.ErrorMessage;
import com.orion.visor.framework.common.constant.ErrorMessage;
import com.orion.spring.SpringHolder;
import javax.validation.ConstraintViolation;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.validator.group;
package com.orion.visor.framework.common.validator.group;
import javax.validation.groups.Default;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.validator.group;
package com.orion.visor.framework.common.validator.group;
import javax.validation.groups.Default;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.validator.group;
package com.orion.visor.framework.common.validator.group;
import javax.validation.groups.Default;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.common.web.filter;
package com.orion.visor.framework.common.web.filter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;

View File

@@ -2,8 +2,8 @@
"groups": [
{
"name": "orion.async.executor",
"type": "com.orion.ops.framework.common.configuration.config.AsyncExecutorConfig",
"sourceType": "com.orion.ops.framework.common.configuration.config.AsyncExecutorConfig"
"type": "com.orion.visor.framework.common.configuration.config.AsyncExecutorConfig",
"sourceType": "com.orion.visor.framework.common.configuration.config.AsyncExecutorConfig"
}
],
"properties": [

View File

@@ -0,0 +1 @@
com.orion.visor.framework.common.configuration.OrionCommonAutoConfiguration

Some files were not shown because too many files have changed in this diff Show More