PDFs in public direct von CPL anfragen und nicht in indexedDB speichern.
IndexedDB wird nicht mehr benötigt, Redux übernimmt die Speicherung der Variablen
This commit is contained in:
@@ -163,7 +163,14 @@ function Dashboard() {
|
||||
<div className="flex flex-row p-2 space-x-2">
|
||||
<Icon icon="bx:code-block" className="text-xl text-blue-400" />
|
||||
<p className="text-sm text-gray-600">
|
||||
Applikationsversion: {appVersion}
|
||||
<span className="font-bold"></span> Applikationsversion:{" "}
|
||||
{appVersion}{" "}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-row p-2 space-x-2">
|
||||
<Icon icon="mdi:web" className="text-xl text-blue-400" />
|
||||
<p className="text-sm text-gray-600">
|
||||
<span className="font-bold"> </span>Webserverversion: 1.0.0
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -3,29 +3,10 @@ import { useEffect } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { ClipLoader } from "react-spinners";
|
||||
|
||||
// IndexedDB functions only in the browser
|
||||
let storePage, getPage;
|
||||
if (typeof window !== "undefined") {
|
||||
const indexedDBModule = require("../utils/indexedDB");
|
||||
storePage = indexedDBModule.storePage;
|
||||
getPage = indexedDBModule.getPage;
|
||||
}
|
||||
|
||||
export default function WaitPage() {
|
||||
const router = useRouter();
|
||||
|
||||
useEffect(() => {
|
||||
// Store the page as a Blob in IndexedDB in the background
|
||||
if (typeof window !== "undefined" && storePage) {
|
||||
const pageContent = `
|
||||
<div style="text-align: center; margin-top: 100px;">
|
||||
<h1>Bitte warten...</h1>
|
||||
<div class="spinner"></div>
|
||||
<p>Die Seite wird automatisch neu geladen.</p>
|
||||
</div>`;
|
||||
storePage("waitPage", new Blob([pageContent], { type: "text/html" }));
|
||||
}
|
||||
|
||||
// Timer to redirect after 20 seconds
|
||||
const timer = setTimeout(() => {
|
||||
router.push("/");
|
||||
|
||||
Reference in New Issue
Block a user