mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 23:26:20 +00:00
Merge pull request #3683 from Infisical/offline-lottie
Add support for offline lottie
This commit is contained in:
Generated
+1
@@ -25,6 +25,7 @@
|
|||||||
"@hookform/resolvers": "^3.9.1",
|
"@hookform/resolvers": "^3.9.1",
|
||||||
"@lexical/react": "^0.29.0",
|
"@lexical/react": "^0.29.0",
|
||||||
"@lottiefiles/dotlottie-react": "^0.12.0",
|
"@lottiefiles/dotlottie-react": "^0.12.0",
|
||||||
|
"@lottiefiles/dotlottie-web": "^0.38.2",
|
||||||
"@octokit/rest": "^21.0.2",
|
"@octokit/rest": "^21.0.2",
|
||||||
"@peculiar/x509": "^1.12.3",
|
"@peculiar/x509": "^1.12.3",
|
||||||
"@radix-ui/react-accordion": "^1.2.2",
|
"@radix-ui/react-accordion": "^1.2.2",
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
"@hookform/resolvers": "^3.9.1",
|
"@hookform/resolvers": "^3.9.1",
|
||||||
"@lexical/react": "^0.29.0",
|
"@lexical/react": "^0.29.0",
|
||||||
"@lottiefiles/dotlottie-react": "^0.12.0",
|
"@lottiefiles/dotlottie-react": "^0.12.0",
|
||||||
|
"@lottiefiles/dotlottie-web": "^0.38.2",
|
||||||
"@octokit/rest": "^21.0.2",
|
"@octokit/rest": "^21.0.2",
|
||||||
"@peculiar/x509": "^1.12.3",
|
"@peculiar/x509": "^1.12.3",
|
||||||
"@radix-ui/react-accordion": "^1.2.2",
|
"@radix-ui/react-accordion": "^1.2.2",
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { StrictMode } from "react";
|
import { StrictMode } from "react";
|
||||||
import ReactDOM from "react-dom/client";
|
import ReactDOM from "react-dom/client";
|
||||||
|
import { setWasmUrl } from "@lottiefiles/dotlottie-react";
|
||||||
|
import lottieWasmUrl from "@lottiefiles/dotlottie-web/dist/dotlottie-player.wasm?url";
|
||||||
import { createRouter, RouterProvider } from "@tanstack/react-router";
|
import { createRouter, RouterProvider } from "@tanstack/react-router";
|
||||||
import NProgress from "nprogress";
|
import NProgress from "nprogress";
|
||||||
|
|
||||||
@@ -22,6 +24,9 @@ import "./translation";
|
|||||||
// have a look at the Quick start guide
|
// have a look at the Quick start guide
|
||||||
// for passing in lng and translations on init/
|
// for passing in lng and translations on init/
|
||||||
|
|
||||||
|
// Configure Lottie player to use local WASM file
|
||||||
|
setWasmUrl(lottieWasmUrl);
|
||||||
|
|
||||||
// Create a new router instance
|
// Create a new router instance
|
||||||
NProgress.configure({ showSpinner: false });
|
NProgress.configure({ showSpinner: false });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user