diff --git a/WebApplication/HomePage.cpp b/WebApplication/HomePage.cpp index b26fd99..e237513 100644 --- a/WebApplication/HomePage.cpp +++ b/WebApplication/HomePage.cpp @@ -2,9 +2,14 @@ #include "Dialog.h" #include #include +#include #include HomePage::HomePage() { + auto navigation = addNew(); + navigation->setResponsive(true); + navigation->setTitle("子非鱼", "https://amass.fun"); + addStyleClass("bulma-content"); auto p = addWidget(std::make_unique("这是一个结合 C++ Web Toolkit 和 CSS Bulma 框架的前后端一体应用程序。")); p->setInline(false); diff --git a/resources/deploy.sh b/resources/deploy.sh index 13a4f67..e47b63b 100755 --- a/resources/deploy.sh +++ b/resources/deploy.sh @@ -38,14 +38,13 @@ function init() { echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/openresty.gpg] http://openresty.org/package/ubuntu $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/openresty.list > /dev/null apt update apt -y install openresty - opm get bungle/lua-resty-session fi if [ -f /root/Server/frp_0.61.0_linux_amd64/frps ]; then echo "frps has installed." else pushd /root/Server - wget https://github.com/fatedier/frp/releases/download/v0.61.0/frp_0.61.0_linux_amd64.tar.gz + wget https://github.com/fatedier/frp/releases/download/v0.61.0/frp_0.61.0_linux_amd64.tar.gz tar xvf ./frp_0.61.0_linux_amd64.tar.gz rm frp_0.61.0_linux_amd64.tar.gz popd @@ -55,7 +54,7 @@ function init() { echo "v2ray has installed." else pushd /root/Server - wget https://github.com/v2fly/v2ray-core/releases/download/v5.22.0/v2ray-linux-64.zip -O freedom_v5.22.0_linux_amd64.zip + wget https://github.com/v2fly/v2ray-core/releases/download/v5.22.0/v2ray-linux-64.zip -O freedom_v5.22.0_linux_amd64.zip unzip freedom_v5.22.0_linux_amd64.zip -d freedom_v5.22.0_linux_amd64 mv freedom_v5.22.0_linux_amd64/v2ray freedom_v5.22.0_linux_amd64/freedom rm freedom_v5.22.0_linux_amd64.zip