Skip to content

Commit 6e377ee

Browse files
committed
chore: update dependencies and fix build issues
1 parent 8951639 commit 6e377ee

File tree

6 files changed

+435
-93
lines changed

6 files changed

+435
-93
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,10 @@
8181
"style-loader": "^3.3.1",
8282
"ts-loader": "^9.4.2",
8383
"turbo": "^1.8.3",
84-
"typescript": "^5.1.6",
85-
"webpack": "^5.88.0",
86-
"webpack-cli": "^5.0.0"
84+
"typescript": "^5.3.3",
85+
"webpack": "^5.96.1",
86+
"webpack-cli": "^5.1.4",
87+
"terser-webpack-plugin": "^5.3.10"
8788
},
8889
"publishConfig": {
8990
"access": "public"

packages/studio-components/src/HomePage/Hooks/useEnv.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const EnvContext = React.createContext({
99
export const EnvProvider = props => {
1010
const isMobile = useIsMobile();
1111
const currentMode = useTheme();
12-
const isDark = currentMode === 'dark';
12+
const isDark = currentMode === 'darkAlgorithm';
1313
console.log('currentMode', currentMode, 'isDark', isDark);
1414

1515
return (

packages/studio-draw-pattern/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"father": "^4.4.5",
3434
"typescript": "^5.5.4",
3535
"vite": "^5.4.16",
36-
"vitest": "^2.0.5"
36+
"vitest": "^2.0.5",
37+
"@swc/core": "^1.3.53"
3738
},
3839
"dependencies": {
3940
"@ant-design/icons": "^5.2.6",
@@ -47,4 +48,4 @@
4748
"uuid": "^10.0.0",
4849
"zustand": "^4.5.5"
4950
}
50-
}
51+
}

packages/studio-importor/src/app/button-controller/import-and-export-config.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ const Content = () => {
7171
style={{ height: '160px' }}
7272
icon={
7373
<Space split="or">
74-
<Icons.File text="YAML" style={{ fontSize: '30px', color: token.colorTextSecondary }} />
75-
<Icons.File text="JSON" style={{ fontSize: '30px', color: token.colorTextSecondary }} />
74+
<Icons.File style={{ fontSize: '30px', color: token.colorTextSecondary, text: 'YAML' }} />
75+
<Icons.File style={{ fontSize: '30px', color: token.colorTextSecondary, text: 'JSON' }} />
7676
</Space>
7777
}
7878
/>

packages/studio-importor/src/app/import-schema/import-from-yaml/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const hackContent = jsonContent => {
3232
};
3333

3434
const ImportFromYAML = (props: IProps) => {
35-
const { style = {}, icon = <Icons.File text="YAML" />, disabled } = props;
35+
const { style = {}, icon = <Icons.File style={{ text: 'YAML' }} />, disabled } = props;
3636
const { updateStore, store } = useContext();
3737
const { appMode, nodes, edges } = store;
3838
const customRequest: UploadProps['customRequest'] = async options => {

0 commit comments

Comments
 (0)