Skip to content

Commit

Permalink
deploy: 3b22a91
Browse files Browse the repository at this point in the history
  • Loading branch information
awmleer committed Apr 9, 2024
1 parent 3582279 commit 7af3c82
Show file tree
Hide file tree
Showing 17 changed files with 121 additions and 76 deletions.
13 changes: 8 additions & 5 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions _demos/:uuid/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions guide/how-to-migrate-from-v1-to-v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions guide/performance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions guide/quick-start/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions guide/use-in-class-components/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions umi.035664e1.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion umi.4e7e3f1f.js

This file was deleted.

13 changes: 8 additions & 5 deletions zh/guide/how-to-migrate-from-v1-to-v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions zh/guide/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions zh/guide/performance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions zh/guide/quick-start/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions zh/guide/use-in-class-components/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
13 changes: 8 additions & 5 deletions zh/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
</script>
<script>
!(function () {
var e = localStorage.getItem("dumi:prefers-color"),
t = window.matchMedia("(prefers-color-scheme: dark)").matches,
r = ["light", "dark", "auto"];
var e =
navigator.cookieEnabled && void 0 !== window.localStorage
? localStorage.getItem("dumi:prefers-color")
: "auto",
o = window.matchMedia("(prefers-color-scheme: dark)").matches,
t = ["light", "dark", "auto"];
document.documentElement.setAttribute(
"data-prefers-color",
e === r[2] ? (t ? r[1] : r[0]) : r.indexOf(e) > -1 ? e : r[0]
e === t[2] ? (o ? t[1] : t[0]) : t.indexOf(e) > -1 ? e : t[0]
);
})();
</script>
Expand All @@ -39,6 +42,6 @@
<body>
<div id="root"></div>

<script src="/umi.4e7e3f1f.js"></script>
<script src="/umi.035664e1.js"></script>
</body>
</html>
Loading

0 comments on commit 7af3c82

Please sign in to comment.