Merge pull request #46 from hyle-team/dev

fix: reslove audit issues & isolate svg styles
This commit is contained in:
Dmitrii Kolpakov 2026-01-22 23:13:29 +07:00 committed by GitHub
commit 3961130843
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 528 additions and 522 deletions

2
next-env.d.ts vendored
View file

@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/types/routes.d.ts';
import './.next/dev/types/routes.d.ts';
// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.

990
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -29,7 +29,7 @@
"decimal.js": "^10.4.3",
"echarts": "^5.5.1",
"echarts-for-react": "^3.0.2",
"nanoid": "^4.0.1",
"nanoid": "^5.1.6",
"next": "^16.1.1",
"next-themes": "^0.2.1",
"node-fetch": "^3.3.1",
@ -42,7 +42,7 @@
"sha256": "^0.2.0",
"socket.io": "^4.6.1",
"socket.io-client": "^4.6.1",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"tsc": "^2.0.4",
"tsx": "^4.15.7",
"url-loader": "^4.1.1",
@ -58,5 +58,8 @@
"husky": "^9.1.7",
"lint-staged": "^15.5.2",
"sass": "^1.59.2"
},
"overrides": {
"diff": "8.0.3"
}
}

View file

@ -158,7 +158,8 @@ function Dex({ initialPairs }: { initialPairs: PairData[] }) {
<div ref={inViewRef}>{pageLoading && <Preloader />}</div>
</div>
</main>
<Footer />
<Footer className="no-svg-style" />
</>
);
}

View file

@ -269,7 +269,7 @@ function Orders() {
/>
)}
</main>
<Footer />
<Footer className="no-svg-style" />
</>
);
}

View file

@ -254,7 +254,7 @@ function Trading({
/>
)}
</main>
<Footer />
<Footer className="no-svg-style" />
</GuideProvider>
);
}

View file

@ -97,7 +97,7 @@ function Home(props: HomeProps) {
/>
)}
</main>
<Footer />
<Footer className="no-svg-style" />
</>
);
}

View file

@ -10,7 +10,7 @@ function Process() {
<main className={styles.main}>
<ProcessContent />
</main>
<Footer />
<Footer className="no-svg-style" />
</>
);
}

View file

@ -213,7 +213,7 @@ function Profile() {
/>
</div>
</main>
<Footer />
<Footer className="no-svg-style" />
</>
);
}

View file

@ -78,7 +78,7 @@ function Policy() {
</ul>
</div>
</main>
<Footer />
<Footer className="no-svg-style" />
</>
);
}

View file

@ -256,7 +256,7 @@ function Swap() {
</div>
</div>
</main>
<Footer />
<Footer className="no-svg-style" />
</>
);
}

View file

@ -115,7 +115,7 @@ function User() {
</div>
</div>
</main>
<Footer />
<Footer className="no-svg-style" />
</>
);
}

View file

@ -147,18 +147,19 @@ h6 {
-webkit-text-fill-color: transparent;
}
svg {
// &:not(.stroked) {
// * {
// fill: var(--font-main-color);
// }
svg:not(.stroked):not(.no-svg-style svg) {
* {
fill: var(--font-main-color);
}
}
// &.dimmed {
// * {
// fill: var(--font-dimmed-color);
// }
// }
// }
svg {
&.dimmed {
* {
fill: var(--font-dimmed-color);
}
}
&.stroked {
* {
@ -174,6 +175,7 @@ svg {
}
@media screen and (max-width: 700px) {
h1,
h1>* {
font-size: 32px;