Passwort Falsch Abfrage und Version auf Dashboard
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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),
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user