This commit is contained in:
parent
109689562a
commit
8afb499732
@ -7,11 +7,10 @@
|
||||
|
||||
LoginPage::LoginPage(Wt::Auth::AbstractUserDatabase &users, Wt::Auth::Login &login) {
|
||||
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->model()->addPasswordAuth(&app->passwordService());
|
||||
authWidget->setRegistrationEnabled(true);
|
||||
authWidget->processEnvironment();
|
||||
// setAttributeValue("style", "transform: translateY(-100px);");
|
||||
addWidget(std::move(authWidget));
|
||||
}
|
||||
|
@ -1,7 +1,104 @@
|
||||
|
||||
.WtCenterContainer {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
justify-content: 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
|
||||
}
|
@ -12,7 +12,7 @@
|
||||
</message>
|
||||
|
||||
<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>
|
||||
<p>${tr:Wt.Auth.login-form-info}</p>
|
||||
|
||||
|
@ -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
|
||||
# reset
|
||||
# pkill -9 HttpServer
|
||||
# cp -r /opt/Libraries/wt-4.11.1/share/Wt/* ./build
|
||||
# cp -r resources/themes resources/*.css build/resources/
|
||||
# cp -r /mnt/e/Lifestyle/static/resources/themes/bulma resources/themes/
|
||||
# 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
|
||||
cmake_scan
|
||||
|
BIN
resources/icons/sort-arrow-down.gif
Normal file
BIN
resources/icons/sort-arrow-down.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 73 B |
BIN
resources/icons/sort-arrow-none.gif
Normal file
BIN
resources/icons/sort-arrow-none.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 65 B |
BIN
resources/icons/sort-arrow-up.gif
Normal file
BIN
resources/icons/sort-arrow-up.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 73 B |
BIN
resources/icons/splitter-h.png
Normal file
BIN
resources/icons/splitter-h.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 86 B |
BIN
resources/icons/splitter-v.png
Normal file
BIN
resources/icons/splitter-v.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 83 B |
Loading…
Reference in New Issue
Block a user