Passwort Falsch Abfrage und Version auf Dashboard

This commit is contained in:
2026-05-28 10:53:32 +02:00
parent 155d6424bb
commit d547725289
4 changed files with 76 additions and 6 deletions

View File

@@ -838,11 +838,8 @@ function Dashboard({ toast, mobile, setActive, unreadMsgs=0 }) {
<Notepad toast={toast} />
<div style={{ marginTop:24, textAlign:'center',
color:'rgba(255,255,255,0.12)', fontSize:9, fontFamily:'monospace', letterSpacing:1 }}>
{(() => { try {
const d = new Date(typeof __BUILD_TIME__ !== 'undefined' ? __BUILD_TIME__ : '');
if (isNaN(d)) return null;
return `GEBAUT ${d.toLocaleDateString('de-DE',{day:'2-digit',month:'2-digit',year:'numeric'})} ${d.toLocaleTimeString('de-DE',{hour:'2-digit',minute:'2-digit'})}`;
} catch { return null; }})()}
{typeof __BUILD_TIME__ !== 'undefined' && __BUILD_TIME__
? `GEBAUT ${__BUILD_TIME__}` : null}
</div>
</div>
);

View File

@@ -1,7 +1,17 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
const now = new Date();
const buildTime = now.toLocaleString('de-DE', {
timeZone: 'Europe/Berlin',
day: '2-digit', month: '2-digit', year: 'numeric',
hour: '2-digit', minute: '2-digit'
});
export default defineConfig({
plugins: [react()],
server: { proxy: { '/api': 'http://localhost:4000' } },
define: {
__BUILD_TIME__: JSON.stringify(buildTime),
},
})