chore(rtl): address 2nd set of requested changes

This commit is contained in:
Elian Doran 2025-10-09 20:48:30 +03:00
parent 00b215c093
commit 492f481999
No known key found for this signature in database
4 changed files with 10 additions and 6 deletions

View File

@ -11,7 +11,7 @@
<link rel="stylesheet" href="<%= assetPath %>/stylesheets/style.css"> <link rel="stylesheet" href="<%= assetPath %>/stylesheets/style.css">
<script src="<%= appPath %>/runtime.js" crossorigin type="module"></script> <script src="<%= appPath %>/runtime.js" crossorigin type="module"></script>
</head> </head>
<body> <body lang="<%= currentLocale.id %>" dir="<%= currentLocale.rtl ? 'rtl' : 'ltr' %>">
<div class="container set-password"> <div class="container set-password">
<div class="col-xs-12 col-sm-10 col-md-6 col-lg-4 col-xl-4 mx-auto pt-4"> <div class="col-xs-12 col-sm-10 col-md-6 col-lg-4 col-xl-4 mx-auto pt-4">
<h1><%= t("set_password.heading") %></h1> <h1><%= t("set_password.heading") %></h1>

View File

@ -45,7 +45,7 @@
</style> </style>
<script src="<%= appPath %>/runtime.js" crossorigin type="module"></script> <script src="<%= appPath %>/runtime.js" crossorigin type="module"></script>
</head> </head>
<body> <body lang="<%= currentLocale.id %>" dir="<%= currentLocale.rtl ? 'rtl' : 'ltr' %>">
<noscript><%= t("javascript-required") %></noscript> <noscript><%= t("javascript-required") %></noscript>
<div class="container"> <div class="container">
<div id="setup-dialog" class="col-md-12 col-lg-8 col-xl-6 mx-auto" style="padding-top: 25px; font-size: larger; display: none;"> <div id="setup-dialog" class="col-md-12 col-lg-8 col-xl-6 mx-auto" style="padding-top: 25px; font-size: larger; display: none;">

View File

@ -33,7 +33,8 @@ function setPasswordPage(req: Request, res: Response) {
res.render("set_password", { res.render("set_password", {
error: false, error: false,
assetPath, assetPath,
appPath appPath,
currentLocale: getCurrentLocale()
}); });
} }
@ -58,7 +59,8 @@ function setPassword(req: Request, res: Response) {
res.render("set_password", { res.render("set_password", {
error, error,
assetPath, assetPath,
appPath appPath,
currentLocale: getCurrentLocale()
}); });
return; return;
} }

View File

@ -6,6 +6,7 @@ import { isElectron } from "../services/utils.js";
import assetPath from "../services/asset_path.js"; import assetPath from "../services/asset_path.js";
import appPath from "../services/app_path.js"; import appPath from "../services/app_path.js";
import type { Request, Response } from "express"; import type { Request, Response } from "express";
import { getCurrentLocale } from "../services/i18n.js";
function setupPage(req: Request, res: Response) { function setupPage(req: Request, res: Response) {
if (sqlInit.isDbInitialized()) { if (sqlInit.isDbInitialized()) {
@ -30,7 +31,8 @@ function setupPage(req: Request, res: Response) {
res.render("setup", { res.render("setup", {
syncInProgress: syncInProgress, syncInProgress: syncInProgress,
assetPath: assetPath, assetPath: assetPath,
appPath: appPath appPath: appPath,
currentLocale: getCurrentLocale()
}); });
} }