Merge branch 'main' into dev

This commit is contained in:
2025-10-14 14:10:40 +02:00
6 changed files with 32 additions and 2 deletions

View File

@@ -28,8 +28,7 @@ public class MarkdownApi extends BaseHandler implements MarkdownService {
public boolean doPost(Path path, HttpExchange ex) throws IOException { public boolean doPost(Path path, HttpExchange ex) throws IOException {
try { try {
addCors(ex); addCors(ex);
Optional<Token> token = SessionToken.from(ex).map(Token::of); var user = userService().refreshSession(ex);
var user = userService().loadUser(token);
if (user.isEmpty()) throw UmbrellaException.forbidden("You must be logged in to use the markdown renderer!"); if (user.isEmpty()) throw UmbrellaException.forbidden("You must be logged in to use the markdown renderer!");
var rendered = Util.markdown(body(ex)); var rendered = Util.markdown(body(ex));

View File

@@ -91,6 +91,7 @@
"failed": "failed", "failed": "failed",
"failed_login_attempts" : "account locked until {release_time} after {attempts} failed login attempts", "failed_login_attempts" : "account locked until {release_time} after {attempts} failed login attempts",
"family_name": "family name",
"file": "file", "file": "file",
"files": "files", "files": "files",
"filter": "filter", "filter": "filter",
@@ -100,6 +101,7 @@
"formatted_name": "display name", "formatted_name": "display name",
"fulltext": "full text search", "fulltext": "full text search",
"given_name": "given name",
"go": "go!", "go": "go!",
"go_to_url_to_reset_password": "To receive a new password, open the following link: {url}", "go_to_url_to_reset_password": "To receive a new password, open the following link: {url}",
"gross_sum": "gross sum", "gross_sum": "gross sum",
@@ -167,6 +169,7 @@
"name": "Name", "name": "Name",
"net_price": "net price", "net_price": "net price",
"net_sum": "net sum", "net_sum": "net sum",
"new_contact": "new contact",
"new_password": "new password", "new_password": "new password",
"new_document_from": "{number} / new {type} document from {sender}", "new_document_from": "{number} / new {type} document from {sender}",
"no_company": "no company", "no_company": "no company",
@@ -290,6 +293,7 @@
"user_module" : "Umbrella user management", "user_module" : "Umbrella user management",
"users": "users", "users": "users",
"website": "website",
"welcome" : "Welcome, {0}", "welcome" : "Welcome, {0}",
"wiki": "Wiki", "wiki": "Wiki",
"wikis": "wiki pages", "wikis": "wiki pages",

View File

@@ -21,6 +21,10 @@ fieldset {
border-color: red; border-color: red;
} }
footer{
background-color: black;
}
input{ input{
background-color: black; background-color: black;
border-color: red; border-color: red;
@@ -112,6 +116,11 @@ textarea{
border-color: orange; border-color: orange;
} }
.start_end button.join{
background-color: none;
color: red;
}
.taglist .tag{ .taglist .tag{
border-color: red; border-color: red;
} }
@@ -155,6 +164,13 @@ textarea{
color: orange; color: orange;
} }
.warn {
background-color: yellow;
color: black;
}
/** priority colors **/ /** priority colors **/

View File

@@ -419,4 +419,8 @@ fieldset.vcard{
border-width: 1px; border-width: 1px;
vertical-align: top; vertical-align: top;
padding: 2px; padding: 2px;
}
.vcard td button.symbol{
float: right;
} }

View File

@@ -119,12 +119,15 @@ textarea{
.task.cancelled > a { .task.cancelled > a {
color: gray; color: gray;
} }
.task.started > a { .task.started > a {
color: green; color: green;
} }
.task.pending > a { .task.pending > a {
color: #606060; color: #606060;
} }
.task.complete > a { .task.complete > a {
color: green; color: green;
} }

View File

@@ -419,4 +419,8 @@ fieldset.vcard{
border-width: 1px; border-width: 1px;
vertical-align: top; vertical-align: top;
padding: 2px; padding: 2px;
}
.vcard td button.symbol{
float: right;
} }