Alle Baukasten-Dinge für die Distribution an die Server (Konfigurationen und Client-Build)
dh_heyart
vor 4 Std. b34327e4f293210d02e2598f7842f3720f59f961
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-title" content="furnview">
    <title i18n="furnview-app-title">furnview</title>
 
<script>
if ('serviceWorker' in navigator) {
    navigator.serviceWorker.getRegistrations().then(function (registrations) {
        for (let registration of registrations) {
            registration.addEventListener('updatefound', () => {
                if (registration.installing) {
                    registration.installing.addEventListener('statechange', () => {
                        if (registration.waiting) {
                            if (navigator.serviceWorker.controller) {
                                registration.waiting.postMessage('SKIP_WAITING');
                            } else {
                                console.log('Service Worker initialized for the first time')
                            }
                        }
                    })
                }
                if (registration.waiting) {
                    if (navigator.serviceWorker.controller) {
                        registration.waiting.postMessage('SKIP_WAITING');
                    } else {
                        console.log('Service Worker initialized for the first time')
                    }
                }
            });
            registration.update();
        }
        navigator.serviceWorker.register('tokenWorker.js').then((registration) => {
            registration.update();
        }).catch((err) => {
            console.log('ServiceWorker registration failed: ', err);
        });
    });
}
</script>
</head>
<body class="construction-container initialHide">
<script type="application/javascript">
    let tokenizeFiles = ["/webui-content/:token/style/font.css","/webui-content/:token/style/custom.css","/webui-content/:token/t/baukasten/fv.DeOhu3H1.js","/webui-content/:token/t/baukasten/vendor/dh.chunk.js","/webui-content/:token/t/baukasten/vendor/vendor.chunk.js","/webui-content/:token/t/baukasten/vendor/wui.chunk.js","/webui-content/:token/t/baukasten/fv.D0mU4q6Z.css"];
    window.addEventListener("DOMContentLoaded", () => {
        const url = new URL(window.location.href);
        window["token"] = url.searchParams.get("token");
        window.resourceBaseURL = `/webui-content/${window["token"]}/t/baukasten/`;
        if (window["token"]) {
            const cssLoadPromises = [];
            tokenizeFiles.forEach((file) => {
                if (file.endsWith(".js")) {
                    const script = document.createElement("script");
                    script.src = file.replace(":token", window["token"]);
                    script.type = "module";
                    document.head.appendChild(script);
                }
                else if (file.endsWith(".css")) {
                    const link = document.createElement("link");
                    link.href = file.replace(":token", window["token"]);
                    link.rel = "stylesheet";
                    cssLoadPromises.push(new Promise((resolve) => {
                        link.addEventListener("load", resolve, { once: true });
                        link.addEventListener("error", resolve, { once: true });
                    }));
                    document.head.appendChild(link);
                }
            });
            if (document.fonts) {
                Promise.all(cssLoadPromises).then(() => {
                    document.fonts.forEach((fontFace) => {
                        fontFace.load().catch(() => {});
                    });
                });
            }
        }
    });
</script>
</body>
</html>