From 24d3aeabb0eeb6288379a83223bb81f6cbf6cebc Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 30 Oct 2023 15:34:37 +0800 Subject: [PATCH] gitea update --- plugins/gitea/hook/self_hook.tpl | 14 ++ plugins/gitea/index.html | 3 +- plugins/gitea/index.py | 394 +++++++++++++++++++++++++++++- plugins/gitea/js/gitea.js | 401 ++++++++++++++++++++++++++++++- 4 files changed, 796 insertions(+), 16 deletions(-) create mode 100644 plugins/gitea/hook/self_hook.tpl diff --git a/plugins/gitea/hook/self_hook.tpl b/plugins/gitea/hook/self_hook.tpl new file mode 100644 index 000000000..266f053e8 --- /dev/null +++ b/plugins/gitea/hook/self_hook.tpl @@ -0,0 +1,14 @@ +#!/bin/bash + +H_DIR={$HOOK_DIR} +HL_DIR={$HOOK_LOGS_DIR} + + +SH_LIST=`cd ${H_DIR} && ls | grep ".sh$"` + +for sh_f in $SH_LIST; do + ABS_FILE=${H_DIR}/${sh_f} + ABS_LOGS=${HL_DIR}/${sh_f}.log + echo "sh ${ABS_FILE} 2>${ABS_LOGS}" + sh -x ${ABS_FILE} 2>${ABS_LOGS} +done \ No newline at end of file diff --git a/plugins/gitea/index.html b/plugins/gitea/index.html index dac3625a5..373ee76a8 100755 --- a/plugins/gitea/index.html +++ b/plugins/gitea/index.html @@ -3,11 +3,11 @@

服务

自启动

-

手动编辑

配置文件

配置修改

用户列表

+

项目列表

使用说明

@@ -18,6 +18,7 @@