Merge branch 'origin/proxy_v2' into origin/proxy_v2

This commit is contained in:
Damian
2023-12-01 11:26:44 -06:00
committed by GitHub
13 changed files with 190 additions and 73 deletions

View File

@@ -8,7 +8,7 @@ import (
"github.com/gofiber/fiber/v2"
)
func NewAPIOutlineHandler(path string, opts *ProxyOptions) fiber.Handler {
func NewAPIContentHandler(path string, opts *ProxyOptions) fiber.Handler {
// TODO: implement ruleset logic
/*
var rs ruleset.RuleSet

View File

@@ -5,9 +5,14 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/styles.css" />
<title>ladder</title>
<script src="/script.js" defer></script>
<script>
const handleThemeChange = () => {
const theme = localStorage.getItem("theme");
let theme = localStorage.getItem("theme");
if (theme === null) {
localStorage.setItem("theme", "system");
theme = "system";
}
if (
theme === "dark" ||
(theme === "system" &&
@@ -338,6 +343,5 @@
});
}
</script>
<script src="/script.js"></script>
</body>
</html>