remove some unused lua code.
All checks were successful
Deploy / Build (push) Successful in 5m38s

This commit is contained in:
amass 2025-01-03 23:51:45 +08:00
parent 345b518d75
commit c11eca4340
4 changed files with 1 additions and 131 deletions

View File

@ -25,8 +25,6 @@ location ^~ /api/v1/search/ {
} }
location ^~ /api/v1/auth { location ^~ /api/v1/auth {
# 应用限流规则,使用名称为 one 的限流区域,允许突发请求数为 5不延迟处理
limit_req zone=one burst=5 nodelay;
proxy_http_version 1.1; proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade"; proxy_set_header Connection "upgrade";
@ -85,10 +83,6 @@ location /freedom {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} }
location = /search/website_collections {
content_by_lua_file lua/request_website_collections.lua;
}
location ~ /notify.*$ { location ~ /notify.*$ {
proxy_pass http://local; proxy_pass http://local;
} }

View File

@ -1,6 +0,0 @@
local cjson = require "cjson"
require "lua/website_collections"
ngx.log(ngx.ERR, "fsfsferror")
ngx.say(cjson.encode(website_collections));

View File

@ -1,118 +0,0 @@
website_collections = {
{
title = "参考手册",
websites = {
{
name = "GCC手册",
url = "https://gcc.gnu.org/onlinedocs/gcc",
newWindow = true
},
{
name = "POSIX API",
url = "https://pubs.opengroup.org/onlinepubs/9699919799.2018edition",
newWindow = true
},
{
name = "Boost Libraries",
url = "https://www.boost.org",
newWindow = true
},
{
name = "Material UI",
url = "https://material-ui.com",
newWindow = true
},
{
name = "C++参考手册",
url = "https://zh.cppreference.com",
newWindow = true
},
{
name = "Qt Blog",
url = "https://www.qt.io/blog",
newWindow = true
},
{
name = "Lua手册",
url = "https://www.lua.org/manual/5.4/manual.html",
newWindow = true
},
{
name = "x86 AT&T汇编",
favicon = "https://hackr.io/tutorials/assembly-language/logo-assembly-language.svg",
url = "https://flint.cs.yale.edu/cs421/papers/x86-asm/asm.html",
newWindow = true
},
{
name = "Using as",
url = "https://sourceware.org/binutils/docs/as/",
newWindow = true
},
{
name = "x86指令集参考",
favicon = "https://c9x.me/x86/icon/siyobik.ico",
url = "https://c9x.me/x86/",
newWindow = true
}
}
},
{
title = "工作学习",
websites = {
{
name = "Gitee",
url = "https://gitee.com",
newWindow = true
},
{
name = "LeetCode",
url = "https://leetcode-cn.com/problemset/all/?page=1&sort=DESCENDING&order=AC_RATE",
newWindow = true
},
{
name = "Google翻译",
favicon = "GTranslateIcon",
url = "https://translate.google.cn",
newWindow = true
},
{
name = "极客时间",
favicon = "http://static001.geekbang.org/static/time/icon/apple-touch-icon.jpg",
url = "https://time.geekbang.org",
newWindow = true
}
}
},
{
title = "娱乐",
websites = {
{
name = "哔哩哔哩",
url = "https://www.bilibili.com/",
newWindow = true
},
{
name = "动漫花园",
url = "http://share.dmhy.org",
newWindow = true
},
{
name = "片源网",
favicon = "MovieIcon",
url = "https://pianyuan.org",
newWindow = true
},
{
name = "射手网",
url = "https://assrt.net",
newWindow = true
},
{
name = "知轩藏书",
url = "http://zxcs.me/",
favicon = "http://zxcs.me/favicon.ico",
newWindow = true
}
}
}
}

View File

@ -123,7 +123,7 @@ void BulmaTheme::apply(Wt::WWidget *widget, Wt::DomElement &element, int element
break; break;
} }
default: default:
LOG(warning) << "elemnet[" << element.type() << "] need style."; // LOG(warning) << "elemnet[" << element.type() << "] need style.";
break; break;
} }
} }