add some theme.
All checks were successful
Deploy / Build (push) Successful in 5m15s

This commit is contained in:
amass 2024-12-06 22:14:36 +08:00
parent 109689562a
commit 8afb499732
9 changed files with 103 additions and 6 deletions

View File

@ -7,11 +7,10 @@
LoginPage::LoginPage(Wt::Auth::AbstractUserDatabase &users, Wt::Auth::Login &login) { LoginPage::LoginPage(Wt::Auth::AbstractUserDatabase &users, Wt::Auth::Login &login) {
auto app = Amass::Singleton<WebToolkit::Server>::instance(); auto app = Amass::Singleton<WebToolkit::Server>::instance();
auto authWidget = std::make_unique<Wt::Auth::AuthWidget>(app->authService(), users, login); auto authWidget = addNew<Wt::Auth::AuthWidget>(app->authService(), users, login);
authWidget->setInternalBasePath("/wt"); authWidget->setInternalBasePath("/wt");
authWidget->model()->addPasswordAuth(&app->passwordService()); authWidget->model()->addPasswordAuth(&app->passwordService());
authWidget->setRegistrationEnabled(true); authWidget->setRegistrationEnabled(true);
authWidget->processEnvironment(); authWidget->processEnvironment();
// setAttributeValue("style", "transform: translateY(-100px);"); // setAttributeValue("style", "transform: translateY(-100px);");
addWidget(std::move(authWidget));
} }

View File

@ -1,7 +1,104 @@
.WtCenterContainer { .WtCenterContainer {
display: flex; display: flex;
flex: 1; flex: 1;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
}
.Wt-itemview .Wt-headerdiv {
overflow: hidden;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
width: 100%
}
.Wt-itemview .Wt-tv-rh {
cursor: col-resize;
float: right;
width: 4px
}
.Wt-itemview .Wt-tv-rh:hover {
background-color: #999
}
.Wt-tableview .Wt-tv-br {
border-right: 1px solid #ddd
}
.Wt-itemview th,
.Wt-itemview th .Wt-tv-br {
overflow: hidden
}
.Wt-tableview .Wt-plaintable .Wt-tv-br {
border-right: 0
}
.Wt-itemview .Wt-header .Wt-label {
font-weight: 700;
height: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap
}
.Wt-tableview .Wt-plaintable td,
.Wt-tableview .Wt-plaintable th,
.Wt-tableview .Wt-tv-contents .Wt-tv-c {
overflow: hidden;
padding: 0 3px;
text-overflow: ellipsis
}
.Wt-hrh2,
.Wt-vsh2 {
cursor: row-resize
}
.Wt-hsh2,
.Wt-vrh2 {
cursor: col-resize
}
.Wt-hrh2:hover,
.Wt-hsh2,
.Wt-vrh2:hover,
.Wt-vsh2 {
background-color: #999
}
.Wt-hrh2 {
background: url(icons/splitter-v.png) no-repeat 50% 50%;
}
.Wt-vrh2 {
background: url(icons/splitter-h.png) no-repeat 50% 50%;
}
.Wt-itemview .Wt-tv-sh {
cursor: pointer;
float: right;
height: 16px;
padding-bottom: 6px;
width: 16px
}
.Wt-itemview .Wt-tv-sh-none {
background: url(icons/sort-arrow-none.gif) no-repeat 0 6px
}
.Wt-itemview .Wt-tv-sh-up {
background: url(icons/sort-arrow-up.gif) no-repeat 0 6px
}
.Wt-itemview .Wt-tv-sh-down {
background: url(icons/sort-arrow-down.gif) no-repeat 0 6px
} }

View File

@ -12,7 +12,7 @@
</message> </message>
<message id="Wt.Auth.template.login"> <message id="Wt.Auth.template.login">
<div class="Wt-form Wt-auth-login"> <div class="Wt-form Wt-auth-login bulma-box">
<h2>${tr:Wt.Auth.login-form-title}</h2> <h2>${tr:Wt.Auth.login-form-title}</h2>
<p>${tr:Wt.Auth.login-form-info}</p> <p>${tr:Wt.Auth.login-form-info}</p>

View File

@ -24,8 +24,9 @@ function build() {
# docker run -it --rm --user 1000:1000 -v $(pwd):$(pwd) -w $(pwd) registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:22.04 resources/build.sh # docker run -it --rm --user 1000:1000 -v $(pwd):$(pwd) -w $(pwd) registry.cn-shenzhen.aliyuncs.com/amass_toolset/ubuntu_dev:22.04 resources/build.sh
# reset # reset
# pkill -9 HttpServer # pkill -9 HttpServer
# cp -r /opt/Libraries/wt-4.11.1/share/Wt/* ./build # cp -r /mnt/e/Lifestyle/static/resources/themes/bulma resources/themes/
# cp -r resources/themes resources/*.css build/resources/ # cp -r /opt/Libraries/wt-4.11.1/share/Wt/resources ./build/
# cp -r resources/themes resources/icons resources/*.css build/resources/
if [ ! -f "${build_path}/CMakeCache.txt" ]; then if [ ! -f "${build_path}/CMakeCache.txt" ]; then
cmake_scan cmake_scan

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B