Skip to content

Commit fa4ef6e

Browse files
committed
fix: package
1 parent 4ab3402 commit fa4ef6e

File tree

8 files changed

+47
-12
lines changed

8 files changed

+47
-12
lines changed

packages/neuron-ui/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
"storybook-addon-react-router-v6": "2.0.10",
110110
"terser": "5.39.0",
111111
"vite": "6.2.1",
112+
"vite-plugin-commonjs": "0.10.4",
112113
"vite-plugin-eslint": "1.8.1",
113114
"vite-plugin-node-polyfills": "0.23.0",
114115
"vite-plugin-svgr": "4.3.0",

packages/neuron-ui/src/components/History/history.module.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@import '../../styles/mixin.scss';
2-
@import '../../styles/theme.scss';
32
@import '../../styles/animation.scss';
43

54
$history-info-title-color: #999;
@@ -224,7 +223,7 @@ body {
224223
}
225224

226225
.isReceive {
227-
color: $main-color;
226+
color: var(--primary-color);
228227
}
229228

230229
.tokenName {

packages/neuron-ui/src/components/Overview/overview.module.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@import '../../styles/mixin.scss';
2-
@import '../../styles/theme.scss';
32
@import '../../styles/animation.scss';
43

54
.topContainer {

packages/neuron-ui/src/components/WalletWizard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const Welcome = ({ rootPath = '/wizard/', wallets = [], dispatch }: WizardElemen
151151

152152
return (
153153
<div className={styles.welcome}>
154-
<img src="/icon.png" width="58px" className={styles.logo} alt="logo" />
154+
<img src="icon.png" width="58px" className={styles.logo} alt="logo" />
155155
<span className={styles.slogan}>{t('wizard.welcome-to-nervos-neuron')}</span>
156156
<Button
157157
type="default"

packages/neuron-ui/src/widgets/Badge/badge.module.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import '../../styles/theme.scss';
2-
31
.badge {
42
position: relative;
53

packages/neuron-ui/src/widgets/CopyZone/copyZone.module.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@import '../../styles/theme.scss';
2-
31
.container {
42
position: relative;
53
display: inline-block;
@@ -16,7 +14,7 @@
1614
justify-content: center;
1715
align-items: center;
1816
font-weight: 400;
19-
color: $main-color;
17+
color: var(--primary-color);
2018
background-color: rgba(0, 0, 0, 0.8);
2119
backdrop-filter: blur(1px);
2220
user-select: none;

packages/neuron-ui/vite.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import svgr from 'vite-plugin-svgr'
55
import eslintPlugin from 'vite-plugin-eslint'
66
import path from 'path'
77
import postcss from 'postcss-preset-env'
8+
import commonjs from 'vite-plugin-commonjs'
89
import { configDefaults } from 'vitest/config'
910

1011
export default defineConfig({
1112
plugins: [
1213
react(),
14+
commonjs(),
1315
nodePolyfills(),
1416
postcss({
1517
autoprefixer: false,

yarn.lock

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5022,7 +5022,7 @@ acorn@^8.11.0, acorn@^8.11.2, acorn@^8.4.1, acorn@^8.9.0:
50225022
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248"
50235023
integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==
50245024

5025-
acorn@^8.2.4, acorn@^8.8.2:
5025+
acorn@^8.12.1, acorn@^8.2.4, acorn@^8.8.2:
50265026
version "8.14.1"
50275027
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.14.1.tgz#721d5dc10f7d5b5609a891773d47731796935dfb"
50285028
integrity sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==
@@ -7997,7 +7997,7 @@ es-get-iterator@^1.1.3:
79977997
isarray "^2.0.5"
79987998
stop-iteration-iterator "^1.0.0"
79997999

8000-
es-module-lexer@^1.6.0:
8000+
es-module-lexer@^1.5.4, es-module-lexer@^1.6.0:
80018001
version "1.6.0"
80028002
resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.6.0.tgz#da49f587fd9e68ee2404fe4e256c0c7d3a81be21"
80038003
integrity sha512-qqnD1yMU6tk/jnaMosogGySTZP8YtUgAffA9nMN+E/rjxcfRQ6IEk7IiozUjgxKoFHBGjTLnrHB/YC45r/59EQ==
@@ -8578,6 +8578,17 @@ fast-glob@^3.2.9:
85788578
merge2 "^1.3.0"
85798579
micromatch "^4.0.4"
85808580

8581+
fast-glob@^3.3.2:
8582+
version "3.3.3"
8583+
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.3.tgz#d06d585ce8dba90a16b0505c543c3ccfb3aeb818"
8584+
integrity sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==
8585+
dependencies:
8586+
"@nodelib/fs.stat" "^2.0.2"
8587+
"@nodelib/fs.walk" "^1.2.3"
8588+
glob-parent "^5.1.2"
8589+
merge2 "^1.3.0"
8590+
micromatch "^4.0.8"
8591+
85818592
fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0:
85828593
version "2.1.0"
85838594
resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
@@ -11580,7 +11591,7 @@ magic-string@^0.27.0:
1158011591
dependencies:
1158111592
"@jridgewell/sourcemap-codec" "^1.4.13"
1158211593

11583-
magic-string@^0.30.0, magic-string@^0.30.17, magic-string@^0.30.3:
11594+
magic-string@^0.30.0, magic-string@^0.30.11, magic-string@^0.30.17, magic-string@^0.30.3:
1158411595
version "0.30.17"
1158511596
resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.17.tgz#450a449673d2460e5bbcfba9a61916a1714c7453"
1158611597
integrity sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==
@@ -11787,6 +11798,14 @@ micromatch@^4.0.2, micromatch@^4.0.4:
1178711798
braces "^3.0.2"
1178811799
picomatch "^2.3.1"
1178911800

11801+
micromatch@^4.0.8:
11802+
version "4.0.8"
11803+
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202"
11804+
integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==
11805+
dependencies:
11806+
braces "^3.0.3"
11807+
picomatch "^2.3.1"
11808+
1179011809
micromatch@~4.0.7:
1179111810
version "4.0.7"
1179211811
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5"
@@ -16255,6 +16274,25 @@ vite-node@3.0.8:
1625516274
pathe "^2.0.3"
1625616275
vite "^5.0.0 || ^6.0.0"
1625716276

16277+
vite-plugin-commonjs@0.10.4:
16278+
version "0.10.4"
16279+
resolved "https://registry.yarnpkg.com/vite-plugin-commonjs/-/vite-plugin-commonjs-0.10.4.tgz#5bcf316a323e3b88e392ec2de8754ca5f249b74f"
16280+
integrity sha512-eWQuvQKCcx0QYB5e5xfxBNjQKyrjEWZIR9UOkOV6JAgxVhtbZvCOF+FNC2ZijBJ3U3Px04ZMMyyMyFBVWIJ5+g==
16281+
dependencies:
16282+
acorn "^8.12.1"
16283+
magic-string "^0.30.11"
16284+
vite-plugin-dynamic-import "^1.6.0"
16285+
16286+
vite-plugin-dynamic-import@^1.6.0:
16287+
version "1.6.0"
16288+
resolved "https://registry.yarnpkg.com/vite-plugin-dynamic-import/-/vite-plugin-dynamic-import-1.6.0.tgz#c9680b2093fc897721fe535202acc8af77537ae4"
16289+
integrity sha512-TM0sz70wfzTIo9YCxVFwS8OA9lNREsh+0vMHGSkWDTZ7bgd1Yjs5RV8EgB634l/91IsXJReg0xtmuQqP0mf+rg==
16290+
dependencies:
16291+
acorn "^8.12.1"
16292+
es-module-lexer "^1.5.4"
16293+
fast-glob "^3.3.2"
16294+
magic-string "^0.30.11"
16295+
1625816296
vite-plugin-eslint@1.8.1:
1625916297
version "1.8.1"
1626016298
resolved "https://registry.yarnpkg.com/vite-plugin-eslint/-/vite-plugin-eslint-1.8.1.tgz#0381b8272e7f0fd8b663311b64f7608d55d8b04c"

0 commit comments

Comments
 (0)