Merge pull request #3683 from Infisical/offline-lottie

Add support for offline lottie
This commit is contained in:
Maidul Islam
2025-05-29 22:22:16 -04:00
committed by GitHub
3 changed files with 7 additions and 0 deletions

View File

@@ -25,6 +25,7 @@
"@hookform/resolvers": "^3.9.1",
"@lexical/react": "^0.29.0",
"@lottiefiles/dotlottie-react": "^0.12.0",
"@lottiefiles/dotlottie-web": "^0.38.2",
"@octokit/rest": "^21.0.2",
"@peculiar/x509": "^1.12.3",
"@radix-ui/react-accordion": "^1.2.2",

View File

@@ -29,6 +29,7 @@
"@hookform/resolvers": "^3.9.1",
"@lexical/react": "^0.29.0",
"@lottiefiles/dotlottie-react": "^0.12.0",
"@lottiefiles/dotlottie-web": "^0.38.2",
"@octokit/rest": "^21.0.2",
"@peculiar/x509": "^1.12.3",
"@radix-ui/react-accordion": "^1.2.2",

View File

@@ -1,5 +1,7 @@
import { StrictMode } from "react";
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 NProgress from "nprogress";
@@ -22,6 +24,9 @@ import "./translation";
// have a look at the Quick start guide
// for passing in lng and translations on init/
// Configure Lottie player to use local WASM file
setWasmUrl(lottieWasmUrl);
// Create a new router instance
NProgress.configure({ showSpinner: false });