This commit is contained in:
parent
f30ddefb11
commit
5db649fffd
@ -2,9 +2,14 @@
|
|||||||
#include "Dialog.h"
|
#include "Dialog.h"
|
||||||
#include <Wt/WApplication.h>
|
#include <Wt/WApplication.h>
|
||||||
#include <Wt/WLineEdit.h>
|
#include <Wt/WLineEdit.h>
|
||||||
|
#include <Wt/WNavigationBar.h>
|
||||||
#include <Wt/WPushButton.h>
|
#include <Wt/WPushButton.h>
|
||||||
|
|
||||||
HomePage::HomePage() {
|
HomePage::HomePage() {
|
||||||
|
auto navigation = addNew<Wt::WNavigationBar>();
|
||||||
|
navigation->setResponsive(true);
|
||||||
|
navigation->setTitle("子非鱼", "https://amass.fun");
|
||||||
|
|
||||||
addStyleClass("bulma-content");
|
addStyleClass("bulma-content");
|
||||||
auto p = addWidget(std::make_unique<Wt::WText>("这是一个结合 C++ Web Toolkit 和 CSS Bulma 框架的前后端一体应用程序。"));
|
auto p = addWidget(std::make_unique<Wt::WText>("这是一个结合 C++ Web Toolkit 和 CSS Bulma 框架的前后端一体应用程序。"));
|
||||||
p->setInline(false);
|
p->setInline(false);
|
||||||
|
@ -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
|
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 update
|
||||||
apt -y install openresty
|
apt -y install openresty
|
||||||
opm get bungle/lua-resty-session
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /root/Server/frp_0.61.0_linux_amd64/frps ]; then
|
if [ -f /root/Server/frp_0.61.0_linux_amd64/frps ]; then
|
||||||
echo "frps has installed."
|
echo "frps has installed."
|
||||||
else
|
else
|
||||||
pushd /root/Server
|
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
|
tar xvf ./frp_0.61.0_linux_amd64.tar.gz
|
||||||
rm frp_0.61.0_linux_amd64.tar.gz
|
rm frp_0.61.0_linux_amd64.tar.gz
|
||||||
popd
|
popd
|
||||||
@ -55,7 +54,7 @@ function init() {
|
|||||||
echo "v2ray has installed."
|
echo "v2ray has installed."
|
||||||
else
|
else
|
||||||
pushd /root/Server
|
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
|
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
|
mv freedom_v5.22.0_linux_amd64/v2ray freedom_v5.22.0_linux_amd64/freedom
|
||||||
rm freedom_v5.22.0_linux_amd64.zip
|
rm freedom_v5.22.0_linux_amd64.zip
|
||||||
|
Loading…
Reference in New Issue
Block a user