zano_ui fixes

This commit is contained in:
jejolare 2025-02-10 13:32:34 +07:00
parent 7a70aa4101
commit bb590cf93e
9 changed files with 7081 additions and 1505 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "submodules/zano_database"]
path = submodules/zano_database
url = git@github.com:jejolare-dev/zano_database.git

View file

@ -1,5 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
import withTM from 'next-transpile-modules';
const nextConfig = withTM(['zano_ui'])({ // Ensure Next.js transpiles `zano_ui`
reactStrictMode: true,
webpack: (config) => {
const fileLoaderRule = config.module.rules.find((rule) =>
@ -11,7 +13,7 @@ const nextConfig = {
{
...fileLoaderRule,
test: /\.svg$/i,
resourceQuery: /url/ // *.svg?url
resourceQuery: /url/, // *.svg?url
},
// Convert all other *.svg imports to React components
{
@ -33,11 +35,10 @@ const nextConfig = {
}
);
fileLoaderRule.exclude = /\.svg$/i;
return config;
},
}
});
export default nextConfig;

8559
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -24,6 +24,7 @@
"http-proxy-middleware": "^2.0.6",
"nanoid": "^5.0.1",
"next": "^14.2.12",
"next-transpile-modules": "^10.0.1",
"node-fetch": "^3.3.2",
"pg": "^8.13.0",
"react": "^18.3.1",
@ -36,7 +37,8 @@
"socket.io-client": "^4.7.5",
"tsx": "^4.19.0",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
"web-vitals": "^2.1.4",
"zano_ui": "file:./submodules/zano_ui"
},
"scripts": {
"client": "next dev",

View file

@ -39,7 +39,7 @@
font-size: 14px;
font-weight: 400;
color: #9eaacc;
text-align: start;
text-align: flex-start;
text-transform: uppercase;
}
}

View file

@ -1,5 +1,4 @@
import Footer from "@/components/default/Footer/Footer";
import {Footer} from "zano_ui";
export default function Layout({children}: { children: React.ReactNode }) {
return (

@ -0,0 +1 @@
Subproject commit 21f3fe8e476b4f4da6c9c7aee041547854a17d83

@ -1 +1 @@
Subproject commit 9242cef946b4e73e06b6206626f4d60edbc8187c
Subproject commit afb1fd28eb5c7d8140aa7857ac32a34bc4203f9f

View file

@ -24,7 +24,8 @@
"paths": {
"@/*": [
"src/*"
]
],
"zano_ui": ["submodules/zano_ui/src"]
}
},
"include": [