update
This commit is contained in:
20
package-lock.json
generated
20
package-lock.json
generated
@@ -16,6 +16,7 @@
|
|||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"framer-motion": "^11.5.6",
|
"framer-motion": "^11.5.6",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
|
"lottie-react": "^2.4.0",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-chartjs-2": "^5.2.0",
|
"react-chartjs-2": "^5.2.0",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
@@ -6894,6 +6895,25 @@
|
|||||||
"loose-envify": "cli.js"
|
"loose-envify": "cli.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/lottie-react": {
|
||||||
|
"version": "2.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/lottie-react/-/lottie-react-2.4.0.tgz",
|
||||||
|
"integrity": "sha512-pDJGj+AQlnlyHvOHFK7vLdsDcvbuqvwPZdMlJ360wrzGFurXeKPr8SiRCjLf3LrNYKANQtSsh5dz9UYQHuqx4w==",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"lottie-web": "^5.10.2"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
||||||
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/lottie-web": {
|
||||||
|
"version": "5.12.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/lottie-web/-/lottie-web-5.12.2.tgz",
|
||||||
|
"integrity": "sha512-uvhvYPC8kGPjXT3MyKMrL3JitEAmDMp30lVkuq/590Mw9ok6pWcFCwXJveo0t5uqYw1UREQHofD+jVpdjBv8wg==",
|
||||||
|
"license": "MIT"
|
||||||
|
},
|
||||||
"node_modules/lru-cache": {
|
"node_modules/lru-cache": {
|
||||||
"version": "5.1.1",
|
"version": "5.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
"dayjs": "^1.11.13",
|
"dayjs": "^1.11.13",
|
||||||
"framer-motion": "^11.5.6",
|
"framer-motion": "^11.5.6",
|
||||||
"js-cookie": "^3.0.5",
|
"js-cookie": "^3.0.5",
|
||||||
|
"lottie-react": "^2.4.0",
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-chartjs-2": "^5.2.0",
|
"react-chartjs-2": "^5.2.0",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
|
|||||||
@@ -15,9 +15,9 @@ const DefaultLayout = ({ children }) => {
|
|||||||
localStorage.setItem("light", true)
|
localStorage.setItem("light", true)
|
||||||
});
|
});
|
||||||
|
|
||||||
const {
|
// const {
|
||||||
isLoading,
|
// isLoading,
|
||||||
} = useGetKPIDetailsQuery()
|
// } = useGetKPIDetailsQuery()
|
||||||
|
|
||||||
const {
|
const {
|
||||||
isLoading: dateDataLoading,
|
isLoading: dateDataLoading,
|
||||||
@@ -37,9 +37,10 @@ const DefaultLayout = ({ children }) => {
|
|||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
isLoading || dateDataLoading || dailyDataLoading || isTransAllLoading ?<SplashScreen/>: <Box>
|
dateDataLoading || dailyDataLoading || isTransAllLoading ?<SplashScreen/>: <Box>
|
||||||
|
|
||||||
<NavBar />
|
<NavBar />
|
||||||
<SlideFade
|
{/* <SlideFade
|
||||||
key={location.pathname}
|
key={location.pathname}
|
||||||
initialScale={0.9}
|
initialScale={0.9}
|
||||||
finalScale={1.2}
|
finalScale={1.2}
|
||||||
@@ -50,9 +51,9 @@ const DefaultLayout = ({ children }) => {
|
|||||||
delay: 0.1,
|
delay: 0.1,
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
> */}
|
||||||
{children}
|
{children}
|
||||||
</SlideFade>
|
{/* </SlideFade> */}
|
||||||
<Footer />
|
<Footer />
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -79,10 +79,10 @@ export const rubix = createApi({
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
||||||
getSubnetAll: builder.query({
|
// getSubnetAll: builder.query({
|
||||||
query: ({ pageNumber = 1, pageSize = 10 }) => `Analytics/Transactions/GetAll?pageNumber=${pageNumber}&pageSize=${pageSize}`,
|
// query: ({ pageNumber = 1, pageSize = 10 }) => `Analytics/Transactions/GetAll?pageNumber=${pageNumber}&pageSize=${pageSize}`,
|
||||||
providesTags: ["getTransAll"],
|
// providesTags: ["getTransAll"],
|
||||||
}),
|
// }),
|
||||||
|
|
||||||
getSubnetById: builder.query({
|
getSubnetById: builder.query({
|
||||||
query: ({id,pageNumber = 1, pageSize = 10 }) => `SubNet/Transactions/GetAll/${id}?pageNumber=${pageNumber}&pageSize=${pageSize}`,
|
query: ({id,pageNumber = 1, pageSize = 10 }) => `SubNet/Transactions/GetAll/${id}?pageNumber=${pageNumber}&pageSize=${pageSize}`,
|
||||||
@@ -92,7 +92,7 @@ export const rubix = createApi({
|
|||||||
|
|
||||||
getSubnetAll: builder.query({
|
getSubnetAll: builder.query({
|
||||||
query: ({ pageNumber = 1, pageSize = 10, searchTerm }) => `SubNet/GetAllSubnetworks?pageNumber=${pageNumber}&pageSize=${pageSize}&searchFilter=${searchTerm || ""}`,
|
query: ({ pageNumber = 1, pageSize = 10, searchTerm }) => `SubNet/GetAllSubnetworks?pageNumber=${pageNumber}&pageSize=${pageSize}&searchFilter=${searchTerm || ""}`,
|
||||||
providesTags: ["getTransAll"],
|
providesTags: ["getSubnetTransAll"],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// getSubnetAll: builder.query({
|
// getSubnetAll: builder.query({
|
||||||
|
|||||||
1
src/assets/images/rubixLoader.json
Normal file
1
src/assets/images/rubixLoader.json
Normal file
File diff suppressed because one or more lines are too long
1
src/assets/images/rubixLoader3.json
Normal file
1
src/assets/images/rubixLoader3.json
Normal file
File diff suppressed because one or more lines are too long
@@ -145,7 +145,7 @@ const NormalTable = ({
|
|||||||
)
|
)
|
||||||
: data?.map((item, index) => (
|
: data?.map((item, index) => (
|
||||||
<Tr
|
<Tr
|
||||||
cursor={"pointer"}
|
// cursor={"pointer"}
|
||||||
transition={"0.2s all"}
|
transition={"0.2s all"}
|
||||||
maxH={8}
|
maxH={8}
|
||||||
bg={index % 2 === 0 ? "" : "forestGreen.50"}
|
bg={index % 2 === 0 ? "" : "forestGreen.50"}
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ const FullScreenLoaader = ({half}) => {
|
|||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
backgroundImage={colorMode !== "light" ? !half&& `url(${bannerImage})` : "none"}
|
backgroundImage={colorMode !== "light" ? !half&& `url(${bannerImage})` : "none"}
|
||||||
position={"relative"}
|
// position={"relative"}
|
||||||
backgroundSize="contain"
|
// backgroundSize="contain"
|
||||||
backgroundRepeat="no-repeat"
|
// backgroundRepeat="no-repeat"
|
||||||
h={half ? "50vh":"100vh"}
|
h={half ? "50vh":"100vh"}
|
||||||
w={"100vw"}
|
// w={"100%"}
|
||||||
display={"flex"}
|
display={"flex"}
|
||||||
justifyContent={"center"}
|
justifyContent={"center"}
|
||||||
alignItems={"center"}
|
alignItems={"center"}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import { RiFileCopyFill } from "react-icons/ri";
|
|||||||
import { motion, AnimatePresence } from "framer-motion"; // Import AnimatePresence and motion
|
import { motion, AnimatePresence } from "framer-motion"; // Import AnimatePresence and motion
|
||||||
import { useGnerateShortUrlMutation } from "../Services/api.service";
|
import { useGnerateShortUrlMutation } from "../Services/api.service";
|
||||||
import ToastBox from "../components/ToastBox";
|
import ToastBox from "../components/ToastBox";
|
||||||
|
import { OPACITY_ON_LOAD } from "../Layout/animations";
|
||||||
|
|
||||||
const AnimatedBox = motion(HStack); // Create an animated HStack
|
const AnimatedBox = motion(HStack); // Create an animated HStack
|
||||||
|
|
||||||
@@ -155,7 +156,7 @@ const toast = useToast()
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
|
{...OPACITY_ON_LOAD}
|
||||||
minH={"100vh"}
|
minH={"100vh"}
|
||||||
bg={colorMode === "light" ? "#f5f5f7" : "none"}
|
bg={colorMode === "light" ? "#f5f5f7" : "none"}
|
||||||
backgroundImage={{base:colorMode !== "light" ? `url(${bannerImageMobile})` : "none",md:colorMode !== "light" ? `url(${bannerImage})` : "none"}}
|
backgroundImage={{base:colorMode !== "light" ? `url(${bannerImageMobile})` : "none",md:colorMode !== "light" ? `url(${bannerImage})` : "none"}}
|
||||||
|
|||||||
@@ -1,21 +1,29 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { OPACITY_ON_LOAD } from "../Layout/animations";
|
import { OPACITY_ON_LOAD } from "../Layout/animations";
|
||||||
import { Box, Image, useColorMode } from "@chakra-ui/react";
|
import { Box, useColorMode } from "@chakra-ui/react";
|
||||||
import logo from "../assets/images/rubix.png";
|
import Lottie from "lottie-react";
|
||||||
import logoLight from "../assets/images/rubixlogo.svg";
|
import rubixAnimation from "../assets/images/rubixLoader.json"; // Replace with your JSON animation path
|
||||||
import rubixLoaders from "../assets/images/rubixLoader.gif";
|
|
||||||
|
|
||||||
const SplashScreen = () => {
|
const SplashScreen = () => {
|
||||||
const { colorMode } = useColorMode();
|
const { colorMode } = useColorMode();
|
||||||
|
|
||||||
return <Box zIndex={1000} bg={'#fff'} h={'100vh'} display={'flex'} justifyContent={'center'} alignItems={'center'} {...OPACITY_ON_LOAD}>
|
return (
|
||||||
|
<Box
|
||||||
<Image
|
zIndex={1000}
|
||||||
src={colorMode === "light" ? rubixLoaders : rubixLoaders}
|
// bg={"#fff"}
|
||||||
// width={"120px"}
|
h={"100vh"}
|
||||||
width={{base:"50%",md : "25%"}}
|
display={"flex"}
|
||||||
/>
|
justifyContent={"center"}
|
||||||
</Box>;
|
alignItems={"center"}
|
||||||
|
{...OPACITY_ON_LOAD}
|
||||||
|
>
|
||||||
|
<Lottie
|
||||||
|
animationData={rubixAnimation}
|
||||||
|
loop={true} // Add any additional Lottie configurations here
|
||||||
|
style={{ width: colorMode === "light" ? "25%" : "25%" }}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
export default SplashScreen;
|
export default SplashScreen;
|
||||||
|
|||||||
Reference in New Issue
Block a user