From aa06cb08d6bb8bf3e5d859a7e921cb7adb29c284 Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Tue, 12 Nov 2024 18:29:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ReadMe.md | 23 +++--- .../src/main/resources/vms/web/columns.vm | 17 ++-- .../src/main/resources/vms/web/index.vm | 79 +++++++++---------- service/pom.xml | 8 +- service/src/main/resources/application.yml | 36 ++++----- 5 files changed, 83 insertions(+), 80 deletions(-) diff --git a/ReadMe.md b/ReadMe.md index 50187b2..a0f32e6 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -8,16 +8,19 @@ Pure-admin文档:https://pure-admin.github.io/pure-admin-doc # 项目预览 -不知道为什么,图床用的使自己的,Gitee就是不显示其它GitHub和Gitea都能显示就Gitee显示不出来,如果想用Gitee就把ReadMe文件下载下来也行;或者把项目clone下来看也可以 - **线上地址** - 正式线上预览地址:http://bunny-web.site/#/welcome + - 线上地址目前使用的是90天的SSL证书,可能会提示链接不安全,忽略就好了 - 测试预览地址:http://106.15.251.123/#/welcome - 服务器到期时间:12月30日 +**打包视频** + +https://www.bilibili.com/video/BV1AYm8YSEKY/ + **Github地址** - [前端地址](https://github.com/BunnyMaster/bunny-admin-web.git) @@ -47,7 +50,7 @@ sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/cen yum list docker-ce --showduplicates | sort -r # 安装docker -yum -y install docker-ce.x86_64 +yum -y install docker-ce.x86_64 # 开机启动docker systemctl enable docker @@ -78,7 +81,7 @@ tcp-keepalive 300 #防止出现远程主机强迫关闭了一个现有的连接 **删除注释** ``` -daemonize no +daemonize no requirepass 123456 appendonly yes tcp-keepalive 300 @@ -162,20 +165,20 @@ FLUSH PRIVILEGES; > skip-name-resolve > secure-file-priv=/var/lib/mysql-files > user=mysql -> +> > # 设置字符集 > character-set-server=utf8mb4 > collation-server=utf8mb4_unicode_ci -> +> > # 设置服务器ID(如果是复制集群,确保每个节点的ID唯一) > server-id=1 -> +> > # 启用二进制日志 > log-bin=mysql-bin -> +> > # 设置表名不区分大小写 > lower_case_table_names = 1 -> +> > ``` ### 数据库文件 @@ -1059,7 +1062,7 @@ server { > 命令预览 > > ```sh -> docker build -f Dockerfile -t bunny_auth_web:1.0.0 . && docker run -p 80:443 -p 443:443 --name bunny_auth_web --restart always bunny_auth_web:1.0.0 +> docker build -f Dockerfile -t bunny_auth_web:1.0.0 . && docker run -p 80:443 -p 443:443 --name bunny_auth_web --restart always bunny_auth_web:1.0.0 > ``` ## 后端部署 diff --git a/common/common-generator/src/main/resources/vms/web/columns.vm b/common/common-generator/src/main/resources/vms/web/columns.vm index d9e15b9..712c6cc 100644 --- a/common/common-generator/src/main/resources/vms/web/columns.vm +++ b/common/common-generator/src/main/resources/vms/web/columns.vm @@ -12,15 +12,16 @@ export const columns: TableColumnList = [ #end { label: $t('table.updateTime'), prop: 'updateTime', sortable: true, width: 160 }, { label: $t('table.createTime'), prop: 'createTime', sortable: true, width: 160 }, -{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', width: 90 }, -{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', width: 90 }, +{ label: $t('table.createUser'), prop: 'createUser', slot: 'createUser', width: 130 }, +{ label: $t('table.updateUser'), prop: 'updateUser', slot: 'updateUser', width: 130 }, { label: $t('table.operation'), fixed: 'right', width: 210, slot: 'operation' }, ]; // 添加规则 -export const rules = reactive({ -#foreach($field in $baseFieldList) -// $field.annotation - $field.name: [{ required: true, message: `$leftBrace$t('input')}$leftBrace$t('${field.name}')}`, trigger: 'blur' }], -#end -}); +export const rules = reactive +({ + #foreach($field in $baseFieldList) + // $field.annotation + $field.name: [{ required: true, message: `$leftBrace$t('input')}$leftBrace$t('${field.name}')}`, trigger: 'blur' }], + #end + }); diff --git a/common/common-generator/src/main/resources/vms/web/index.vm b/common/common-generator/src/main/resources/vms/web/index.vm index 3a8e491..668241a 100644 --- a/common/common-generator/src/main/resources/vms/web/index.vm +++ b/common/common-generator/src/main/resources/vms/web/index.vm @@ -1,18 +1,7 @@