@dovetail-v2/refine 0.1.4-pod-exec-0 → 0.1.5-alpha.0
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/dist/{MonacoYamlDiffEditor-706f5a4e.js → MonacoYamlDiffEditor-c27ab21c.js} +1 -1
- package/dist/{index-bce2a951.js → index-984f2ec7.js} +14395 -14226
- package/dist/refine.js +79 -80
- package/dist/refine.umd.cjs +14313 -14144
- package/dist/style.css +21 -11
- package/lib/src/components/Form/FormModal.d.ts +0 -1
- package/lib/src/components/Shell/ShellToolbar.d.ts +16 -0
- package/lib/src/components/Shell/index.d.ts +21 -1
- package/lib/src/i18n.d.ts +7 -0
- package/lib/src/locales/zh-CN/index.d.ts +7 -0
- package/lib/src/styles/modal.d.ts +1 -0
- package/lib/src/utils/index.d.ts +1 -0
- package/package.json +5 -5
package/dist/style.css
CHANGED
|
@@ -1508,17 +1508,11 @@
|
|
|
1508
1508
|
.e1cjl2b8{border-radius:8px;border:1px solid rgba(211,218,235,0.60);}.e1cjl2b8 .monaco-editor,.e1cjl2b8 .monaco-scrollable-element,.e1cjl2b8 .overflow-guard > .margin{border-radius:8px;}
|
|
1509
1509
|
.w1akirqw{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1510
1510
|
.t30srnq{line-height:32px !important;}
|
|
1511
|
-
.
|
|
1512
|
-
.
|
|
1513
|
-
.
|
|
1514
|
-
.
|
|
1515
|
-
.
|
|
1516
|
-
|
|
1517
|
-
.e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
|
|
1518
|
-
.f1nltbcu{margin-bottom:16px;}
|
|
1519
|
-
.f1qgcca6.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1qgcca6.ant-modal.fullscreen .ant-modal-footer .footer-content{margin:0 128px;}
|
|
1520
|
-
.m1tl3wq2 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1tl3wq2 .ant-modal-body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;padding:0 4px !important;margin:auto;}.m1tl3wq2 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}.m1tl3wq2 .f1nltbcu{max-width:648px;width:100%;margin-left:auto;margin-right:auto;}
|
|
1521
|
-
.exjt4uc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}
|
|
1511
|
+
.tzxa6d{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;height:32px;}
|
|
1512
|
+
.t1sxu3rr{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
|
|
1513
|
+
.ix8ych8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:16px;}
|
|
1514
|
+
.i58m6oo{cursor:pointer;}
|
|
1515
|
+
.d1t2oa87{width:1px;height:100%;background:rgba(172,186,211,0.60);margin:0 16px;}
|
|
1522
1516
|
/**
|
|
1523
1517
|
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
1524
1518
|
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
@@ -1737,6 +1731,12 @@
|
|
|
1737
1731
|
z-index: 2;
|
|
1738
1732
|
position: relative;
|
|
1739
1733
|
}
|
|
1734
|
+
.c1q5a2qi{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1735
|
+
.sdz5fm1{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;padding:8px;background:#00122E;}
|
|
1736
|
+
.lbp0h2e{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:8px;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;width:100%;color:#2C385299;background:#F2F5FA;}
|
|
1737
|
+
.eioilqy{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}
|
|
1738
|
+
.trlau0c{margin:4px 8px;}
|
|
1739
|
+
.fq4465w.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.fq4465w.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.fq4465w.ant-modal.fullscreen .ant-modal-footer .footer-content{margin:0 128px;}
|
|
1740
1740
|
.sj0ggy.ant-select{-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;min-width:276px;max-width:100%;}.sj0ggy.ant-select .ant-select-selector{display:block;overflow:hidden;padding-right:32px;white-space:nowrap;}.sj0ggy.ant-select .ant-select-selector > span:nth-child(-n + 8):not(.ant-select-selection-search){display:inline-block;max-width:var(--tag-max-width);margin-right:4px;}.sj0ggy.ant-select .ant-select-selection-search{display:none;}.sj0ggy.ant-select .zoom-leave{opacity:0;position:absolute;}
|
|
1741
1741
|
.d1eo8uqs{border-radius:6px;}
|
|
1742
1742
|
.s64gojc.s64gojc.ant-input-affix-wrapper{border:unset;border-bottom:1px solid rgba(211,218,235,.6);border-radius:unset;box-shadow:unset;outline:unset;padding:5px 18px;}.s64gojc.s64gojc.ant-input-affix-wrapper:hover,.s64gojc.s64gojc.ant-input-affix-wrapper:focus{box-shadow:unset;outline:unset;}
|
|
@@ -1751,6 +1751,16 @@
|
|
|
1751
1751
|
.l1ng0psc{padding:12px 24px;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:0;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1752
1752
|
.tj6zpn4{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tj6zpn4.table-wrapper{height:auto;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-height:0;}
|
|
1753
1753
|
.n1rqcyjn.ant-select{margin-bottom:12px;}
|
|
1754
|
+
.c154n7ie{max-width:144px;}
|
|
1755
|
+
.c1c9j4da{width:100%;}
|
|
1756
|
+
.cjxv8cf{color:rgba(44,56,82,0.6);}
|
|
1757
|
+
.c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;max-width:648px;width:100%;margin:0 auto;}
|
|
1758
|
+
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
1759
|
+
|
|
1760
|
+
.e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
|
|
1761
|
+
.f1nltbcu{margin-bottom:16px;}
|
|
1762
|
+
.m1qgcca6 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1qgcca6 .ant-modal-body{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;width:100%;padding:0 4px !important;margin:auto;}.m1qgcca6 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}.m1qgcca6 .f1nltbcu{max-width:648px;width:100%;margin-left:auto;margin-right:auto;}
|
|
1763
|
+
.e1tl3wq2{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}
|
|
1754
1764
|
.c1pvtlkp{width:100%;}
|
|
1755
1765
|
.wfg6u6g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.wfg6u6g .usage-text{width:50px;text-align:right;}.wfg6u6g .usage-bar{height:12px;width:100px;position:relative;border-radius:2px;}.wfg6u6g .request-anchor{position:absolute;left:10%;top:-3px;height:18px;width:2px;background:#777;z-index:9;}.wfg6u6g .usage-fill-bar{position:absolute;left:0;top:0;height:100%;background:rgba(0,128,255,0.6);z-index:7;}.wfg6u6g .request-bar{position:absolute;left:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar{position:absolute;right:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar.no-limit{background:linear-gradient(to right,#d8deeb 50%,#d8deeb 50%);background-size:4px 100%;}.wfg6u6g .request-to-limit-bar.no-limit.exceed-request{background:linear-gradient(to right,#d8deeb 50%,rgba(0,128,255,0.6) 50%);background-size:4px 100%;}
|
|
1756
1766
|
.mdppgn0.ant-menu{background:#edf0f7;padding:8px;}.mdppgn0.ant-menu .ant-menu-item-selected{background:linear-gradient(90deg,#0080ff,#005ed1);border-radius:6px;box-shadow:0 1px 2px rgba(184,192,204,0.6);color:#fff;}.mdppgn0.ant-menu .ant-menu-item-selected a:hover{color:#fff;}.mdppgn0.ant-menu .ant-menu-item:not(.ant-menu-item-selected):hover{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0.6));border-radius:6px;box-shadow:0 0 4px rgba(235,239,245,0.6),0 8px 16px rgba(129,138,153,0.18);}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type OperationType = ('fontSize' | 'downloadLog' | 'clear');
|
|
3
|
+
export interface ShellToolbarProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
leftSlot?: React.ReactNode;
|
|
6
|
+
operations?: (OperationType | React.ReactNode)[];
|
|
7
|
+
searchMatchedTotal: number;
|
|
8
|
+
onSearchNext: (search: string) => void;
|
|
9
|
+
onSearchPre: (search: string) => void;
|
|
10
|
+
onSetFontSize?: (size: number) => void;
|
|
11
|
+
onDownFontSize?: () => void;
|
|
12
|
+
onDownloadLog?: () => void;
|
|
13
|
+
onClear?: () => void;
|
|
14
|
+
}
|
|
15
|
+
declare function ShellToolbar(props: ShellToolbarProps): JSX.Element;
|
|
16
|
+
export default ShellToolbar;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Terminal } from '@xterm/xterm';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
import { ShellToolbarProps } from './ShellToolbar';
|
|
3
4
|
import '@xterm/xterm/css/xterm.css';
|
|
4
5
|
export declare enum SocketStatus {
|
|
5
6
|
Opening = "Opening",
|
|
@@ -9,13 +10,21 @@ export declare enum SocketStatus {
|
|
|
9
10
|
export type ShellProps = React.PropsWithChildren<{
|
|
10
11
|
url: string;
|
|
11
12
|
protocols?: string;
|
|
13
|
+
timeout?: number;
|
|
12
14
|
className?: string;
|
|
15
|
+
logFileName?: string;
|
|
16
|
+
isHideToolbar?: boolean;
|
|
17
|
+
toolbarLeftSlot?: React.ReactNode;
|
|
18
|
+
operations?: ShellToolbarProps['operations'];
|
|
19
|
+
shellOptions?: Record<string, unknown>;
|
|
20
|
+
loadingElement?: React.ReactNode;
|
|
13
21
|
encode: (input: string) => string | ArrayBufferLike | Blob | ArrayBufferView;
|
|
14
22
|
decode?: (output: string | ArrayBufferLike | Blob | ArrayBufferView) => string | ArrayBuffer;
|
|
15
23
|
fit?: (layout: {
|
|
16
24
|
rows: number;
|
|
17
25
|
cols: number;
|
|
18
26
|
}) => void;
|
|
27
|
+
onReconnect?: () => void;
|
|
19
28
|
onSocketInit?: (socket: WebSocket) => void;
|
|
20
29
|
onTermInit?: (term: Terminal) => void;
|
|
21
30
|
onSocketMessage?: (e: MessageEvent, socket: WebSocket, term: Terminal | null) => void;
|
|
@@ -25,24 +34,35 @@ export type ShellProps = React.PropsWithChildren<{
|
|
|
25
34
|
}>;
|
|
26
35
|
export interface ShellHandler {
|
|
27
36
|
clear: () => void;
|
|
28
|
-
send: (data: string | ArrayBufferLike | Blob | ArrayBufferView) => void;
|
|
37
|
+
send: (data: string | ArrayBufferLike | Blob | ArrayBufferView, callback?: () => void) => void;
|
|
38
|
+
connect: () => void;
|
|
29
39
|
fit: () => void;
|
|
30
40
|
getAllTerminalContents: () => string[];
|
|
31
41
|
setSocketStatus: React.Dispatch<React.SetStateAction<SocketStatus>>;
|
|
32
42
|
searchNext: (search: string) => void;
|
|
33
43
|
searchPrevious: (search: string) => void;
|
|
34
44
|
setOptions: (options: Record<string, unknown>) => void;
|
|
45
|
+
setLoading: (loading: boolean) => void;
|
|
46
|
+
setError: (error: unknown) => void;
|
|
35
47
|
}
|
|
36
48
|
export declare const Shell: React.ForwardRefExoticComponent<{
|
|
37
49
|
url: string;
|
|
38
50
|
protocols?: string | undefined;
|
|
51
|
+
timeout?: number | undefined;
|
|
39
52
|
className?: string | undefined;
|
|
53
|
+
logFileName?: string | undefined;
|
|
54
|
+
isHideToolbar?: boolean | undefined;
|
|
55
|
+
toolbarLeftSlot?: React.ReactNode;
|
|
56
|
+
operations?: ShellToolbarProps['operations'];
|
|
57
|
+
shellOptions?: Record<string, unknown> | undefined;
|
|
58
|
+
loadingElement?: React.ReactNode;
|
|
40
59
|
encode: (input: string) => string | ArrayBufferLike | Blob | ArrayBufferView;
|
|
41
60
|
decode?: ((output: string | ArrayBufferLike | Blob | ArrayBufferView) => string | ArrayBuffer) | undefined;
|
|
42
61
|
fit?: ((layout: {
|
|
43
62
|
rows: number;
|
|
44
63
|
cols: number;
|
|
45
64
|
}) => void) | undefined;
|
|
65
|
+
onReconnect?: (() => void) | undefined;
|
|
46
66
|
onSocketInit?: ((socket: WebSocket) => void) | undefined;
|
|
47
67
|
onTermInit?: ((term: Terminal) => void) | undefined;
|
|
48
68
|
onSocketMessage?: ((e: MessageEvent, socket: WebSocket, term: Terminal | null) => void) | undefined;
|
package/lib/src/i18n.d.ts
CHANGED
|
@@ -347,6 +347,13 @@ export declare const resources: {
|
|
|
347
347
|
pv_phase_released: string;
|
|
348
348
|
pv_phase_failed: string;
|
|
349
349
|
pv_phase_pending: string;
|
|
350
|
+
font_size: string;
|
|
351
|
+
download_shell_content: string;
|
|
352
|
+
clear_shell: string;
|
|
353
|
+
disconnected: string;
|
|
354
|
+
connecting: string;
|
|
355
|
+
reconnect: string;
|
|
356
|
+
search: string;
|
|
350
357
|
};
|
|
351
358
|
};
|
|
352
359
|
};
|
|
@@ -170,6 +170,13 @@ declare const _default: {
|
|
|
170
170
|
pv_phase_released: string;
|
|
171
171
|
pv_phase_failed: string;
|
|
172
172
|
pv_phase_pending: string;
|
|
173
|
+
font_size: string;
|
|
174
|
+
download_shell_content: string;
|
|
175
|
+
clear_shell: string;
|
|
176
|
+
disconnected: string;
|
|
177
|
+
connecting: string;
|
|
178
|
+
reconnect: string;
|
|
179
|
+
search: string;
|
|
173
180
|
};
|
|
174
181
|
};
|
|
175
182
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FullscreenModalStyle: import("@linaria/core").LinariaClassName;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schema';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5-alpha.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"module": "./dist/refine.js",
|
|
11
11
|
"types": "./lib/src/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cloudtower/eagle": "^0.
|
|
14
|
-
"@cloudtower/icons-react": "^0.
|
|
13
|
+
"@cloudtower/eagle": "^0.31.7",
|
|
14
|
+
"@cloudtower/icons-react": "^0.31.7",
|
|
15
15
|
"@patternfly/react-core": "^5.1.1",
|
|
16
16
|
"@patternfly/react-log-viewer": "^5.0.0",
|
|
17
17
|
"@refinedev/core": "^4.47.2",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"vite-plugin-commonjs": "^0.10.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@cloudtower/eagle": "^0.
|
|
82
|
-
"@cloudtower/icons-react": "^0.
|
|
81
|
+
"@cloudtower/eagle": "^0.31.7",
|
|
82
|
+
"@cloudtower/icons-react": "^0.31.7",
|
|
83
83
|
"@refinedev/core": "^4.47.2",
|
|
84
84
|
"antd": "4.5.0",
|
|
85
85
|
"i18next": "^23.2.3",
|