Skip to content

Commit 32ed07a

Browse files
committed
Deploying to gh-pages from @ 928568e 🚀
0 parents  commit 32ed07a

114 files changed

Lines changed: 289 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404.html

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Loading...</title>
7+
<script
8+
data-base-path="dioxus-code"
9+
data-pr-preview-prefix="pr-preview"
10+
>
11+
(function () {
12+
const script = document.currentScript;
13+
const basePath = script.getAttribute('data-base-path') || '';
14+
const prPrefix = script.getAttribute('data-pr-preview-prefix') || '';
15+
const parts = window.location.pathname.split('/').filter(Boolean);
16+
let realUrl;
17+
const normalizedBasePath = basePath.replace(/^\/+|\/+$/g, '');
18+
const baseParts = normalizedBasePath ? normalizedBasePath.split('/').filter(Boolean) : [];
19+
const normalizedPrPrefix = prPrefix.replace(/^\/+|\/+$/g, '');
20+
let previewEnd = -1;
21+
if (normalizedPrPrefix) {
22+
const startsWithBase = baseParts.length > 0 && baseParts.every((part, index) => parts[index] === part);
23+
const prefixIndex = startsWithBase ? baseParts.length : 0;
24+
if (
25+
parts[prefixIndex] === normalizedPrPrefix &&
26+
/^pr-\d+$/.test(parts[prefixIndex + 1] || '')
27+
) {
28+
previewEnd = prefixIndex + 2;
29+
}
30+
}
31+
if (previewEnd > 0) {
32+
realUrl = '/' + parts.slice(0, previewEnd).join('/') + '/';
33+
} else if (basePath) {
34+
realUrl = '/' + normalizedBasePath + '/';
35+
} else {
36+
realUrl = '/';
37+
}
38+
fetch(realUrl)
39+
.then(response => response.text())
40+
.then(html => {
41+
document.documentElement.innerHTML = html;
42+
document.querySelectorAll('script').forEach(oldScript => {
43+
const newScript = document.createElement('script');
44+
for (const { name, value } of oldScript.attributes) {
45+
newScript.setAttribute(name, value);
46+
}
47+
newScript.textContent = oldScript.textContent;
48+
oldScript.replaceWith(newScript);
49+
});
50+
});
51+
})();
52+
</script>
53+
</head>
54+
<body></body>
55+
</html>

assets/alabaster-dxh9d219c4f130ed25.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/alabaster-system-dark-dxhfdb256aaaf61a1c8.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/alabaster-system-light-dxhc3761d7723d4a20.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/app-dxhb083c860329f73d.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/ayu-dark-dxh3bb5ba96ba8db37.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/ayu-dark-system-dark-dxhf18f3ba134145dae.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/ayu-dark-system-light-dxhef98b8d33ce5de6.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/ayu-light-dxh77deebd46120dc71.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/ayu-light-system-dark-dxhcbd6de63d2cd3671.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)