From 635ca2cfff310625fd24d67d2c6f27b499dd6068 Mon Sep 17 00:00:00 2001
From: wxy <14293288+zysysys@user.noreply.gitee.com>
Date: Fri, 24 May 2024 14:52:13 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docker/nginx/conf/nginx.conf | 41 ++++
.../exception/auth/NotLoginException.java | 16 ++
.../auth/NotPermissionException.java | 23 ++
jing-ui/src/api/system/notice.js | 44 ++++
jing-ui/src/assets/icons/svg/money.svg | 1 +
jing-ui/src/assets/icons/svg/monitor.svg | 2 +
jing-ui/src/assets/icons/svg/nacos.svg | 1 +
jing-ui/src/assets/icons/svg/nested.svg | 1 +
jing-ui/src/components/Crontab/month.vue | 114 ++++++++++
jing-ui/src/layout/components/Navbar.vue | 200 ++++++++++++++++++
10 files changed, 443 insertions(+)
create mode 100644 docker/nginx/conf/nginx.conf
create mode 100644 jing-common/jing-common-core/src/main/java/com/jing/common/core/exception/auth/NotLoginException.java
create mode 100644 jing-common/jing-common-core/src/main/java/com/jing/common/core/exception/auth/NotPermissionException.java
create mode 100644 jing-ui/src/api/system/notice.js
create mode 100644 jing-ui/src/assets/icons/svg/money.svg
create mode 100644 jing-ui/src/assets/icons/svg/monitor.svg
create mode 100644 jing-ui/src/assets/icons/svg/nacos.svg
create mode 100644 jing-ui/src/assets/icons/svg/nested.svg
create mode 100644 jing-ui/src/components/Crontab/month.vue
create mode 100644 jing-ui/src/layout/components/Navbar.vue
diff --git a/docker/nginx/conf/nginx.conf b/docker/nginx/conf/nginx.conf
new file mode 100644
index 0000000..83de2a3
--- /dev/null
+++ b/docker/nginx/conf/nginx.conf
@@ -0,0 +1,41 @@
+worker_processes 1;
+
+events {
+ worker_connections 1024;
+}
+
+http {
+ include mime.types;
+ default_type application/octet-stream;
+ sendfile on;
+ keepalive_timeout 65;
+
+ server {
+ listen 80;
+ server_name localhost;
+
+ location / {
+ root /home/ruoyi/projects/ruoyi-ui;
+ try_files $uri $uri/ /index.html;
+ index index.html index.htm;
+ }
+
+ location /prod-api/{
+ proxy_set_header Host $http_host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header REMOTE-HOST $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_pass http://ruoyi-gateway:8080/;
+ }
+
+ # 避免actuator暴露
+ if ($request_uri ~ "/actuator") {
+ return 403;
+ }
+
+ error_page 500 502 503 504 /50x.html;
+ location = /50x.html {
+ root html;
+ }
+ }
+}
\ No newline at end of file
diff --git a/jing-common/jing-common-core/src/main/java/com/jing/common/core/exception/auth/NotLoginException.java b/jing-common/jing-common-core/src/main/java/com/jing/common/core/exception/auth/NotLoginException.java
new file mode 100644
index 0000000..a755507
--- /dev/null
+++ b/jing-common/jing-common-core/src/main/java/com/jing/common/core/exception/auth/NotLoginException.java
@@ -0,0 +1,16 @@
+package com.jing.common.core.exception.auth;
+
+/**
+ * 未能通过的登录认证异常
+ *
+ * @author ruoyi
+ */
+public class NotLoginException extends RuntimeException
+{
+ private static final long serialVersionUID = 1L;
+
+ public NotLoginException(String message)
+ {
+ super(message);
+ }
+}
diff --git a/jing-common/jing-common-core/src/main/java/com/jing/common/core/exception/auth/NotPermissionException.java b/jing-common/jing-common-core/src/main/java/com/jing/common/core/exception/auth/NotPermissionException.java
new file mode 100644
index 0000000..e490f59
--- /dev/null
+++ b/jing-common/jing-common-core/src/main/java/com/jing/common/core/exception/auth/NotPermissionException.java
@@ -0,0 +1,23 @@
+package com.jing.common.core.exception.auth;
+
+import org.apache.commons.lang3.StringUtils;
+
+/**
+ * 未能通过的权限认证异常
+ *
+ * @author ruoyi
+ */
+public class NotPermissionException extends RuntimeException
+{
+ private static final long serialVersionUID = 1L;
+
+ public NotPermissionException(String permission)
+ {
+ super(permission);
+ }
+
+ public NotPermissionException(String[] permissions)
+ {
+ super(StringUtils.join(permissions, ","));
+ }
+}
diff --git a/jing-ui/src/api/system/notice.js b/jing-ui/src/api/system/notice.js
new file mode 100644
index 0000000..c274ea5
--- /dev/null
+++ b/jing-ui/src/api/system/notice.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询公告列表
+export function listNotice(query) {
+ return request({
+ url: '/system/notice/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询公告详细
+export function getNotice(noticeId) {
+ return request({
+ url: '/system/notice/' + noticeId,
+ method: 'get'
+ })
+}
+
+// 新增公告
+export function addNotice(data) {
+ return request({
+ url: '/system/notice',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改公告
+export function updateNotice(data) {
+ return request({
+ url: '/system/notice',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除公告
+export function delNotice(noticeId) {
+ return request({
+ url: '/system/notice/' + noticeId,
+ method: 'delete'
+ })
+}
\ No newline at end of file
diff --git a/jing-ui/src/assets/icons/svg/money.svg b/jing-ui/src/assets/icons/svg/money.svg
new file mode 100644
index 0000000..c1580de
--- /dev/null
+++ b/jing-ui/src/assets/icons/svg/money.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/jing-ui/src/assets/icons/svg/monitor.svg b/jing-ui/src/assets/icons/svg/monitor.svg
new file mode 100644
index 0000000..bc308cb
--- /dev/null
+++ b/jing-ui/src/assets/icons/svg/monitor.svg
@@ -0,0 +1,2 @@
+
\ No newline at end of file
diff --git a/jing-ui/src/assets/icons/svg/nacos.svg b/jing-ui/src/assets/icons/svg/nacos.svg
new file mode 100644
index 0000000..bbbe3f1
--- /dev/null
+++ b/jing-ui/src/assets/icons/svg/nacos.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/jing-ui/src/assets/icons/svg/nested.svg b/jing-ui/src/assets/icons/svg/nested.svg
new file mode 100644
index 0000000..06713a8
--- /dev/null
+++ b/jing-ui/src/assets/icons/svg/nested.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/jing-ui/src/components/Crontab/month.vue b/jing-ui/src/components/Crontab/month.vue
new file mode 100644
index 0000000..fd0ac38
--- /dev/null
+++ b/jing-ui/src/components/Crontab/month.vue
@@ -0,0 +1,114 @@
+
+
+
+
+ 月,允许的通配符[, - * /]
+
+
+
+
+
+ 周期从
+ -
+ 月
+
+
+
+
+
+ 从
+ 月开始,每
+ 月月执行一次
+
+
+
+
+
+ 指定
+
+ {{item}}
+
+
+
+
+
+
+
diff --git a/jing-ui/src/layout/components/Navbar.vue b/jing-ui/src/layout/components/Navbar.vue
new file mode 100644
index 0000000..466cd98
--- /dev/null
+++ b/jing-ui/src/layout/components/Navbar.vue
@@ -0,0 +1,200 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+