Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="color-scheme" content="light" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>HiveGrid component tests</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="./index.tsx"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,37 @@
|
||||
import { createInstance } from "i18next";
|
||||
import { I18nextProvider, initReactI18next } from "react-i18next";
|
||||
import { beforeMount } from "@playwright/experimental-ct-react/hooks";
|
||||
|
||||
import deBilling from "../apps/web/public/locales/de/billing.json";
|
||||
import deTranslations from "../apps/web/public/locales/de/translations.json";
|
||||
import "../apps/web/app/globals.css";
|
||||
import "./visual-test.css";
|
||||
|
||||
const i18n = createInstance();
|
||||
const i18nReady = i18n.use(initReactI18next).init({
|
||||
defaultNS: "translations",
|
||||
fallbackLng: "de",
|
||||
interpolation: { escapeValue: false },
|
||||
lng: "de",
|
||||
ns: ["translations", "billing"],
|
||||
resources: {
|
||||
de: {
|
||||
billing: deBilling,
|
||||
translations: deTranslations,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
beforeMount(async ({ App }) => {
|
||||
await i18nReady;
|
||||
document.documentElement.classList.remove("dark");
|
||||
document.documentElement.lang = "de";
|
||||
document.documentElement.style.colorScheme = "light";
|
||||
document.body.classList.remove("dark");
|
||||
|
||||
return (
|
||||
<I18nextProvider i18n={i18n}>
|
||||
<App />
|
||||
</I18nextProvider>
|
||||
);
|
||||
});
|
||||
@@ -0,0 +1,16 @@
|
||||
html,
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--color-surface-neutral-primary);
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-delay: 0s !important;
|
||||
animation-duration: 0s !important;
|
||||
caret-color: transparent !important;
|
||||
transition-delay: 0s !important;
|
||||
transition-duration: 0s !important;
|
||||
}
|
||||
Reference in new issue
Block a user