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" />
/// <reference types="next/image-types/global" /> /// <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 // NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information. // 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", "decimal.js": "^10.4.3",
"echarts": "^5.5.1", "echarts": "^5.5.1",
"echarts-for-react": "^3.0.2", "echarts-for-react": "^3.0.2",
"nanoid": "^4.0.1", "nanoid": "^5.1.6",
"next": "^16.1.1", "next": "^16.1.1",
"next-themes": "^0.2.1", "next-themes": "^0.2.1",
"node-fetch": "^3.3.1", "node-fetch": "^3.3.1",
@ -42,7 +42,7 @@
"sha256": "^0.2.0", "sha256": "^0.2.0",
"socket.io": "^4.6.1", "socket.io": "^4.6.1",
"socket.io-client": "^4.6.1", "socket.io-client": "^4.6.1",
"ts-node": "^10.9.1", "ts-node": "^10.9.2",
"tsc": "^2.0.4", "tsc": "^2.0.4",
"tsx": "^4.15.7", "tsx": "^4.15.7",
"url-loader": "^4.1.1", "url-loader": "^4.1.1",
@ -58,5 +58,8 @@
"husky": "^9.1.7", "husky": "^9.1.7",
"lint-staged": "^15.5.2", "lint-staged": "^15.5.2",
"sass": "^1.59.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 ref={inViewRef}>{pageLoading && <Preloader />}</div>
</div> </div>
</main> </main>
<Footer />
<Footer className="no-svg-style" />
</> </>
); );
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -33,7 +33,7 @@ main {
padding: 80px 100px; padding: 80px 100px;
&.with-separators { &.with-separators {
> * { >* {
padding: 40px 0; padding: 40px 0;
border-bottom: 1px solid var(--delimiter-color); border-bottom: 1px solid var(--delimiter-color);
@ -115,7 +115,7 @@ h6 {
} }
h1, h1,
h1 > * { h1>* {
color: var(--font-main-color); color: var(--font-main-color);
font-size: 48px; font-size: 48px;
} }
@ -147,18 +147,19 @@ h6 {
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
svg { svg:not(.stroked):not(.no-svg-style svg) {
// &:not(.stroked) { * {
// * { fill: var(--font-main-color);
// fill: var(--font-main-color); }
// } }
// &.dimmed {
// * { svg {
// fill: var(--font-dimmed-color); &.dimmed {
// } * {
// } fill: var(--font-dimmed-color);
// } }
}
&.stroked { &.stroked {
* { * {
@ -174,8 +175,9 @@ svg {
} }
@media screen and (max-width: 700px) { @media screen and (max-width: 700px) {
h1, h1,
h1 > * { h1>* {
font-size: 32px; font-size: 32px;
} }
} }
@ -289,4 +291,4 @@ svg {
left: 0; left: 0;
width: 100%; width: 100%;
height: 3px; height: 3px;
} }