Skip to content

Commit 59a4917

Browse files
committed
fix: 修复 ContentArea 语法树解析异常的问题
1 parent 7d5ae1d commit 59a4917

File tree

4 files changed

+57
-7908
lines changed

4 files changed

+57
-7908
lines changed

modules/client/browse/ContentArea.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function ContentArea({ children, css }) {
99
css={{
1010
border: '1px solid #dfe2e5',
1111
borderRadius: 3,
12-
[`@media (max-width: ${maxWidth}px)`]: {
12+
[`'@media (max-width: ${maxWidth}px)'`]: {
1313
borderRightWidth: 0,
1414
borderLeftWidth: 0
1515
},
@@ -36,7 +36,7 @@ export function ContentAreaHeaderBar({ children, css }) {
3636
flexDirection: 'row',
3737
alignItems: 'center',
3838
justifyContent: 'space-between',
39-
[`@media (max-width: ${maxWidth}px)`]: {
39+
[`'@media (max-width: ${maxWidth}px)'`]: {
4040
paddingRight: 20,
4141
paddingLeft: 20
4242
},

package.json

Lines changed: 53 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -16,72 +16,71 @@
1616
"pretty-bytes": "5.6.0"
1717
},
1818
"dependencies": {
19-
"@emotion/react": "^11.11.3",
20-
"@reach/visually-hidden": "^0.18.0",
21-
"cheerio": "^1.0.0-rc.12",
22-
"cors": "^2.8.5",
23-
"date-fns": "^2.29.3",
24-
"etag": "^1.8.1",
25-
"express": "^4.18.2",
26-
"gunzip-maybe": "^1.4.2",
27-
"highlight.js": "^11.9.0",
28-
"isomorphic-fetch": "^3.0.0",
29-
"jsesc": "^3.0.2",
30-
"lru-cache": "^10.2.0",
31-
"mime": "^4.0.1",
32-
"morgan": "^1.10.0",
33-
"ndjson": "^2.0.0",
19+
"@emotion/react": "~11.14.0",
20+
"@reach/visually-hidden": "~0.18.0",
21+
"cheerio": "~1.1.2",
22+
"cors": "~2.8.5",
23+
"date-fns": "~2.29.3",
24+
"etag": "~1.8.1",
25+
"express": "~4.18.2",
26+
"gunzip-maybe": "~1.4.2",
27+
"highlight.js": "~11.11.1",
28+
"isomorphic-fetch": "~3.0.0",
29+
"jsesc": "~3.0.2",
30+
"lru-cache": "~10.2.0",
31+
"mime": "~4.0.1",
32+
"morgan": "~1.10.0",
33+
"ndjson": "~2.0.0",
3434
"pretty-bytes": "5.6.0",
35-
"prop-types": "^15.8.1",
36-
"react": "^18.2.0",
37-
"react-dom": "^18.2.0",
38-
"react-icons": "^5.0.1",
39-
"semver": "^7.6.0",
40-
"sort-by": "^1.2.0",
41-
"sri-toolbox": "^0.2.0",
42-
"tar-stream": "^3.1.7",
43-
"tempy": "^3.1.0",
44-
"validate-npm-package-name": "^5.0.0",
45-
"warning": "^4.0.3",
46-
"whatwg-url": "^14.0.0"
35+
"prop-types": "~15.8.1",
36+
"react": "~18.2.0",
37+
"react-dom": "~18.2.0",
38+
"react-icons": "~5.0.1",
39+
"semver": "~7.7.3",
40+
"sort-by": "~1.2.0",
41+
"sri-toolbox": "~0.2.0",
42+
"tar-stream": "~3.1.7",
43+
"tempy": "~3.1.0",
44+
"validate-npm-package-name": "~5.0.0",
45+
"warning": "~4.0.3",
46+
"whatwg-url": "~14.0.0"
4747
},
4848
"devDependencies": {
49-
"@ampproject/rollup-plugin-closure-compiler": "^0.27.0",
50-
"@babel/core": "^7.20.12",
51-
"@babel/plugin-proposal-class-properties": "^7.18.6",
52-
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
53-
"@babel/plugin-proposal-optional-chaining": "^7.20.7",
54-
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
55-
"@babel/plugin-syntax-export-default-from": "^7.18.6",
56-
"@babel/plugin-syntax-export-namespace-from": "^7.8.3",
57-
"@babel/plugin-syntax-import-meta": "^7.10.4",
58-
"@babel/preset-env": "^7.20.2",
59-
"@babel/preset-react": "^7.18.6",
49+
"@ampproject/rollup-plugin-closure-compiler": "~0.27.0",
50+
"@babel/core": "~7.20.12",
51+
"@babel/plugin-proposal-class-properties": "~7.18.6",
52+
"@babel/plugin-proposal-nullish-coalescing-operator": "~7.18.6",
53+
"@babel/plugin-proposal-optional-chaining": "~7.20.7",
54+
"@babel/plugin-syntax-dynamic-import": "~7.8.3",
55+
"@babel/plugin-syntax-export-default-from": "~7.18.6",
56+
"@babel/plugin-syntax-export-namespace-from": "~7.8.3",
57+
"@babel/plugin-syntax-import-meta": "~7.10.4",
58+
"@babel/preset-env": "~7.20.2",
59+
"@babel/preset-react": "~7.18.6",
6060
"@typescript-eslint/eslint-plugin": "7.0.2",
6161
"@typescript-eslint/parser": "7.0.2",
62-
"babel-core": "^7.0.0-bridge.0",
63-
"babel-jest": "^29.7.0",
64-
"chalk": "^5.3.0",
65-
"dotenv": "^16.4.5",
62+
"babel-core": "~7.0.0-bridge.0",
63+
"babel-jest": "~29.7.0",
64+
"chalk": "~5.6.2",
65+
"dotenv": "~16.4.5",
6666
"eslint": "8.56.0",
67-
"eslint-config-react-app": "^7.0.1",
67+
"eslint-config-react-app": "~7.0.1",
6868
"eslint-plugin-flowtype": "8.0.3",
6969
"eslint-plugin-import": "2.29.1",
7070
"eslint-plugin-jsx-a11y": "6.8.0",
7171
"eslint-plugin-react": "7.33.2",
7272
"eslint-plugin-react-hooks": "4.6.0",
73-
"jest": "^29.7.0",
74-
"nodemon": "^3.0.3",
75-
"rollup": "^4.12.0",
76-
"@rollup/plugin-babel": "^6.0.4",
77-
"@rollup/plugin-commonjs": "^25.0.7",
78-
"@rollup/plugin-json": "^6.1.0",
79-
"@rollup/plugin-node-resolve": "^15.2.3",
80-
"@rollup/plugin-replace": "^5.0.5",
81-
"@rollup/plugin-url": "^8.0.2",
82-
"supertest": "^6.3.4"
73+
"jest": "~29.7.0",
74+
"nodemon": "~3.0.3",
75+
"rollup": "~4.52.4",
76+
"@rollup/plugin-babel": "~6.0.4",
77+
"@rollup/plugin-commonjs": "~28.0.6",
78+
"@rollup/plugin-json": "~6.1.0",
79+
"@rollup/plugin-node-resolve": "~16.0.2",
80+
"@rollup/plugin-replace": "~6.0.2",
81+
"@rollup/plugin-url": "~8.0.2",
82+
"supertest": "~6.3.4"
8383
},
84-
"packageManager": "pnpm@8.0.0",
8584
"engines": {
8685
"node": ">=12"
8786
},

0 commit comments

Comments
 (0)