From 817e8edb285f75b9d5e7247d342b1ea37d909e9e Mon Sep 17 00:00:00 2001 From: huyunfan Date: Mon, 16 Dec 2024 21:47:57 +0800 Subject: [PATCH] auth --- .gitignore | 4 +- src/main/main.go | 139 ++++++++++++++++++++++++++++------------------- 2 files changed, 86 insertions(+), 57 deletions(-) diff --git a/.gitignore b/.gitignore index 7d615af..63e010a 100644 --- a/.gitignore +++ b/.gitignore @@ -62,4 +62,6 @@ src/proxies/* src/rules/* acl4ssr_repo lufxy.yaml -result.yaml \ No newline at end of file +desult.yaml +src/passwd +passwd \ No newline at end of file diff --git a/src/main/main.go b/src/main/main.go index 372228d..b1428cc 100644 --- a/src/main/main.go +++ b/src/main/main.go @@ -1,13 +1,13 @@ package main import ( + "bufio" "fmt" "github.com/gin-gonic/gin" "html/template" "io/ioutil" "net/http" "os" - "proxyrules/src/service" "strings" ) @@ -43,7 +43,6 @@ const htmlTemplate = ` color: green; font-weight: bold; } - /* 设置页面的样式 */ body, html { margin: 0; padding: 0; @@ -51,8 +50,6 @@ const htmlTemplate = ` height: 100%; font-family: Arial, sans-serif; } - - /* 背景容器 */ .background { position: fixed; top: 0; @@ -62,73 +59,64 @@ const htmlTemplate = ` background: url('static/background.jpg') no-repeat center center; background-size: cover; } - - /* 半透明白色覆盖层 */ .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; - background: rgba(255, 255, 255, 0.5); /* 半透明白色 */ + background: rgba(255, 255, 255, 0.5); } - - /* 页面内容 */ .content { position: relative; - z-index: 1; /* 确保内容在覆盖层之上 */ + z-index: 1; text-align: center; padding: 20px; } - h1 { margin: 0; font-size: 2.5em; - color: black; /* 内容颜色 */ + color: black; } - p { font-size: 1.2em; - color: black; /* 内容颜色 */ + color: black; } - .form-container { + .form-container { position: relative; - max-width: 600px; /* 表单容器的最大宽度 */ - margin: 50px auto; /* 居中 */ + max-width: 600px; + margin: 50px auto; padding: 20px; - background: rgba(255, 255, 255, 0.7); /* 半透明白色背景 */ - border-radius: 15px; /* 圆角 */ - box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 添加阴影 */ + background: rgba(255, 255, 255, 0.7); + border-radius: 15px; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); }
- -
- -

Welcome to 404 Clash Config Site !~~

-
-
-
    - {{range $index, $line := .lines}} -
  • - - -
  • - {{end}} -
- - -
-
- - -
- -
+

Welcome to 404 Clash Config Site !~~

+
+
+
    + {{range $index, $line := .lines}} +
  • + + +
  • + {{end}} +
+ + +
+
+ + +
+ +