beer-assembly-biz 1.1.2-alpha.10 → 1.1.2-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/InlineContainer.js +4 -3
- package/MediaModals.js +5 -5
- package/Upgrade.js +3 -2
- package/auth/AuthPassword.js +3 -2
- package/auth/AuthStyle01.js +2 -2
- package/auth/AuthStyle02.js +2 -2
- package/package.json +1 -1
package/InlineContainer.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { App, ConfigProvider } from 'antd';
|
|
2
|
+
import { App, ConfigProvider, theme } from 'antd';
|
|
3
3
|
export const Component = (props) => {
|
|
4
|
+
const { token } = theme.useToken();
|
|
4
5
|
return React.createElement(App, null,
|
|
5
6
|
React.createElement(ConfigProvider, { theme: {
|
|
6
7
|
token: {
|
|
7
|
-
fontSize:
|
|
8
|
+
fontSize: token.fontSize - 1,
|
|
8
9
|
controlHeight: 26,
|
|
9
10
|
fontWeightStrong: 500
|
|
10
11
|
},
|
|
@@ -20,7 +21,7 @@ export const Component = (props) => {
|
|
|
20
21
|
cellPaddingBlockSM: 7
|
|
21
22
|
},
|
|
22
23
|
Switch: {
|
|
23
|
-
fontSize:
|
|
24
|
+
fontSize: token.fontSize - 3
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
} }, props?.children));
|
package/MediaModals.js
CHANGED
|
@@ -273,7 +273,7 @@ export class MediaModals {
|
|
|
273
273
|
} }),
|
|
274
274
|
React.createElement(Typography.Text, { style: {
|
|
275
275
|
width: 70,
|
|
276
|
-
fontSize:
|
|
276
|
+
fontSize: token.fontSize - 2,
|
|
277
277
|
display: 'block',
|
|
278
278
|
textAlign: 'center',
|
|
279
279
|
color: '#323232',
|
|
@@ -324,12 +324,12 @@ export class MediaModals {
|
|
|
324
324
|
title: (index + 1 === path.length
|
|
325
325
|
? React.createElement(Typography.Text, { style: {
|
|
326
326
|
maxWidth: 70,
|
|
327
|
-
fontSize:
|
|
327
|
+
fontSize: token.fontSize - 1
|
|
328
328
|
}, ellipsis: true }, it.name)
|
|
329
329
|
: React.createElement("a", { onClick: () => onBackDirectory(it.id) },
|
|
330
330
|
React.createElement(Typography.Text, { style: {
|
|
331
331
|
maxWidth: 70,
|
|
332
|
-
fontSize:
|
|
332
|
+
fontSize: token.fontSize - 1,
|
|
333
333
|
color: 'rgba(0, 0, 0, 0.45)'
|
|
334
334
|
}, ellipsis: true }, it.name)))
|
|
335
335
|
};
|
|
@@ -342,7 +342,7 @@ export class MediaModals {
|
|
|
342
342
|
React.createElement(Popconfirm, { title: "\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0", description: React.createElement(Input, { value: selectName, onChange: (e) => setSelectName(e.currentTarget.value) }), onCancel: () => setSelectName(''), onConfirm: () => onCreateDirectory(selectName), okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88" },
|
|
343
343
|
React.createElement(Button, { size: "small", style: {
|
|
344
344
|
height: 24,
|
|
345
|
-
fontSize:
|
|
345
|
+
fontSize: token.fontSize - 1
|
|
346
346
|
}, loading: isLoading }, "\u65B0\u5EFA\u76EE\u5F55")))),
|
|
347
347
|
React.createElement(Spin, { spinning: isLoading },
|
|
348
348
|
React.createElement("div", { style: {
|
|
@@ -360,7 +360,7 @@ export class MediaModals {
|
|
|
360
360
|
React.createElement(Modal, { title: React.createElement(React.Fragment, null,
|
|
361
361
|
React.createElement(ExclamationCircleFilled, { style: {
|
|
362
362
|
marginRight: 6,
|
|
363
|
-
fontSize:
|
|
363
|
+
fontSize: token.fontSize + 3,
|
|
364
364
|
color: '#faad14'
|
|
365
365
|
} }),
|
|
366
366
|
"\u662F\u5426\u786E\u8BA4\u5220\u9664?"), width: 400, open: isOpenConfirmModal, onOk: () => onConfirmRemove(), onCancel: () => setIsOpenConfirmModal(false), okText: "\u786E\u5B9A", cancelText: "\u53D6\u6D88" }, "\u5220\u9664\u64CD\u4F5C\u4E0D\u80FD\u56DE\u590D\uFF0C\u786E\u5B9A\u8981\u5220\u9664\u9009\u4E2D\u7684\u6587\u4EF6\u6216\u6587\u4EF6\u5939\u5417\uFF1F"),
|
package/Upgrade.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { Modal } from 'antd';
|
|
2
|
+
import { Modal, theme } from 'antd';
|
|
3
3
|
const TIME_KEY = 'VERSION_TIME';
|
|
4
4
|
const App = (props) => {
|
|
5
|
+
const { token } = theme.useToken();
|
|
5
6
|
useEffect(() => {
|
|
6
7
|
// 每5分钟执行一次
|
|
7
8
|
setTimeout(async () => {
|
|
@@ -30,7 +31,7 @@ const App = (props) => {
|
|
|
30
31
|
title: '版本更新提示',
|
|
31
32
|
content: React.createElement(React.Fragment, null,
|
|
32
33
|
React.createElement("p", { style: {
|
|
33
|
-
fontSize:
|
|
34
|
+
fontSize: token.fontSize + 2,
|
|
34
35
|
lineHeight: '26px'
|
|
35
36
|
} }, "\u60A8\u5DF2\u7ECF\u957F\u65F6\u95F4\u672A\u4F7F\u7528\u6B64\u9875\u9762\uFF0C\u5728\u6B64\u671F\u95F4\u5E73\u53F0\u6709\u8FC7\u66F4\u65B0\uFF0C\u5982\u60A8\u6B64\u65F6\u5728\u9875\u9762\u4E2D\u6CA1\u6709\u586B\u5199\u76F8\u5173\u4FE1\u606F\u7B49\u64CD\u4F5C\uFF0C\u8BF7\u70B9\u51FB\u5237\u65B0\u9875\u9762\u4F7F\u7528\u6700\u65B0\u7248\u672C\uFF01")),
|
|
36
37
|
okText: '确定',
|
package/auth/AuthPassword.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Button, Checkbox, Dropdown, Form, Input } from 'antd';
|
|
1
|
+
import { Button, Checkbox, Dropdown, Form, Input, theme } from 'antd';
|
|
2
2
|
import SliderCode from 'beer-assembly/SliderCode';
|
|
3
3
|
import { css } from '@emotion/css';
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { useForm } from 'antd/es/form/Form';
|
|
6
6
|
const App = (props) => {
|
|
7
|
+
const { token } = theme.useToken();
|
|
7
8
|
const [form] = useForm();
|
|
8
9
|
const [isLoading, setIsLoading] = useState(false);
|
|
9
10
|
const [protocol, setProtocol] = useState(false);
|
|
@@ -52,7 +53,7 @@ const App = (props) => {
|
|
|
52
53
|
React.createElement(Form.Item, { name: "password", style: { marginBottom: 12 } },
|
|
53
54
|
React.createElement(Input.Password, { className: "input", maxLength: 32, placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801", autoComplete: "on", style: { height: 36 } })),
|
|
54
55
|
props?.protocol === undefined ? undefined : React.createElement(Form.Item, { style: { marginBottom: 12 } },
|
|
55
|
-
React.createElement(Checkbox, { style: { fontSize:
|
|
56
|
+
React.createElement(Checkbox, { style: { fontSize: token.fontSize + 1 }, onChange: (e) => {
|
|
56
57
|
setProtocol(e.target.checked);
|
|
57
58
|
} },
|
|
58
59
|
React.createElement("span", { dangerouslySetInnerHTML: { __html: props?.protocol } }))),
|
package/auth/AuthStyle01.js
CHANGED
|
@@ -89,8 +89,8 @@ const App = (props) => {
|
|
|
89
89
|
min-height: 200px;
|
|
90
90
|
` },
|
|
91
91
|
errorMessage !== '' ? React.createElement(Alert, { style: {
|
|
92
|
-
fontSize:
|
|
93
|
-
marginBottom:
|
|
92
|
+
fontSize: token.fontSize - 1,
|
|
93
|
+
marginBottom: 12,
|
|
94
94
|
color: '#fa2c19',
|
|
95
95
|
padding: '6px 10px',
|
|
96
96
|
fontWeight: '500'
|
package/auth/AuthStyle02.js
CHANGED
|
@@ -82,8 +82,8 @@ const App = (props) => {
|
|
|
82
82
|
min-height: 200px;
|
|
83
83
|
` },
|
|
84
84
|
errorMessage !== '' ? React.createElement(Alert, { style: {
|
|
85
|
-
fontSize:
|
|
86
|
-
marginBottom:
|
|
85
|
+
fontSize: token.fontSize - 1,
|
|
86
|
+
marginBottom: 12,
|
|
87
87
|
color: '#fa2c19',
|
|
88
88
|
padding: '6px 10px',
|
|
89
89
|
fontWeight: '500'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beer-assembly-biz",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.1.2-alpha.
|
|
4
|
+
"version": "1.1.2-alpha.11",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"pub-w": "tsc && copy package.json .\\dist\\package.json && npm publish ./dist",
|
|
7
7
|
"pub-m": "tsc && cp -a src/icon ./dist && cp -a src/fonts ./dist && cp -a src/images ./dist && cp package.json ./dist/package.json && npm publish ./dist"
|