@dovetail-v2/refine 0.0.66-pod-exec.0 → 0.1.0-test.1
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-6b799b64.js → MonacoYamlDiffEditor-e737ae8d.js} +1 -1
- package/dist/{index-c07bed15.js → index-0c7bfb69.js} +5800 -19551
- package/dist/refine.js +162 -161
- package/dist/refine.umd.cjs +4780 -18531
- package/dist/style.css +11 -229
- package/lib/src/components/Form/FormModal.d.ts +0 -1
- package/lib/src/components/ListPage/index.d.ts +1 -0
- package/lib/src/components/ResourceFiledDisplays.d.ts +7 -0
- package/lib/src/components/ShowContent/fields.d.ts +7 -2
- package/lib/src/components/index.d.ts +1 -3
- package/lib/src/hooks/useEagleTable/columns.d.ts +6 -6
- package/lib/src/i18n.d.ts +26 -2
- package/lib/src/locales/en-US/index.d.ts +14 -1
- package/lib/src/locales/zh-CN/index.d.ts +12 -1
- package/lib/src/models/cronjob-model.d.ts +0 -1
- package/lib/src/models/daemonset-model.d.ts +0 -1
- package/lib/src/models/deployment-model.d.ts +0 -1
- package/lib/src/models/event-model.d.ts +0 -1
- package/lib/src/models/ingress-model.d.ts +0 -1
- package/lib/src/models/job-model.d.ts +0 -1
- package/lib/src/models/network-policy-model.d.ts +0 -1
- package/lib/src/models/node-model.d.ts +0 -1
- package/lib/src/models/persistent-volume-claim.d.ts +0 -1
- package/lib/src/models/persistent-volume.d.ts +0 -1
- package/lib/src/models/pod-metrics-model.d.ts +0 -1
- package/lib/src/models/pod-model.d.ts +0 -1
- package/lib/src/models/resource-model.d.ts +1 -1
- package/lib/src/models/service-model.d.ts +0 -1
- package/lib/src/models/statefulset-model.d.ts +0 -1
- package/lib/src/models/storage-class.d.ts +0 -1
- package/lib/src/models/workload-base-model.d.ts +0 -1
- package/lib/src/models/workload-model.d.ts +0 -1
- package/lib/src/pages/persistentvolumeclaims/index.d.ts +4 -0
- package/lib/src/pages/persistentvolumes/index.d.ts +3 -18
- package/package.json +5 -14
- package/lib/src/components/Form/KeyValueListWidget.d.ts +0 -6
- package/lib/src/components/Form/MetadataForm.d.ts +0 -2
- package/lib/src/components/Form/NameInputWidget.d.ts +0 -51
- package/lib/src/components/Form/NamespaceSelectWidget.d.ts +0 -9
- package/lib/src/components/Form/widget.d.ts +0 -5
- package/lib/src/components/FormModal/index.d.ts +0 -10
- package/lib/src/components/KeyValueData/index.d.ts +0 -6
- package/lib/src/components/ModalContextProvider/index.d.ts +0 -12
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +0 -8
- package/lib/src/components/NetworkPolicyRulesTable/index.d.ts +0 -1
- package/lib/src/components/PodDropdown/index.d.ts +0 -9
- package/lib/src/components/PodShellModal/PodShell.d.ts +0 -18
- package/lib/src/components/PodShellModal/index.d.ts +0 -10
- package/lib/src/components/Shell/index.d.ts +0 -50
- package/lib/src/components/Shell/zmodem/index.d.ts +0 -51
- package/lib/src/components/Table/ErrorContent.d.ts +0 -10
- package/lib/src/components/YamlForm/index.d.ts +0 -25
- package/lib/src/hooks/useEagleForm.d.ts +0 -48
- package/lib/src/hooks/useModal.d.ts +0 -0
- package/lib/src/hooks/useNamespaceFilter.d.ts +0 -5
- package/lib/src/model/cronjob-model.d.ts +0 -9
- package/lib/src/model/index.d.ts +0 -6
- package/lib/src/model/job-model.d.ts +0 -10
- package/lib/src/model/pod-metrics-model.d.ts +0 -7
- package/lib/src/model/pod-model.d.ts +0 -15
- package/lib/src/model/resource-model.d.ts +0 -17
- package/lib/src/model/workload-model.d.ts +0 -17
- package/lib/src/pages/deployments/create/index.d.ts +0 -3
- package/lib/src/pages/nodes/hooks/useNodeMetrics.d.ts +0 -17
- package/lib/src/pages/statefulsets/create/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/list/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/show/index.d.ts +0 -3
- package/lib/src/pages/storageclasses/list/index.d.ts +0 -3
- package/lib/src/pages/storageclasses/show/index.d.ts +0 -3
- package/lib/src/types/metric.d.ts +0 -25
- package/lib/src/utils/shell.d.ts +0 -16
package/dist/style.css
CHANGED
|
@@ -1508,235 +1508,6 @@
|
|
|
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
|
-
.c154n7ie{max-width:144px;}
|
|
1512
|
-
.c1c9j4da{width:100%;}
|
|
1513
|
-
.cjxv8cf{color:rgba(44,56,82,0.6);}
|
|
1514
|
-
.c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;max-width:648px;width:100%;margin:0 auto;}
|
|
1515
|
-
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
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;}
|
|
1522
|
-
/**
|
|
1523
|
-
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
1524
|
-
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
1525
|
-
* https://github.com/chjj/term.js
|
|
1526
|
-
* @license MIT
|
|
1527
|
-
*
|
|
1528
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1529
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
1530
|
-
* in the Software without restriction, including without limitation the rights
|
|
1531
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1532
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
1533
|
-
* furnished to do so, subject to the following conditions:
|
|
1534
|
-
*
|
|
1535
|
-
* The above copyright notice and this permission notice shall be included in
|
|
1536
|
-
* all copies or substantial portions of the Software.
|
|
1537
|
-
*
|
|
1538
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1539
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1540
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1541
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1542
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1543
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1544
|
-
* THE SOFTWARE.
|
|
1545
|
-
*
|
|
1546
|
-
* Originally forked from (with the author's permission):
|
|
1547
|
-
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
1548
|
-
* http://bellard.org/jslinux/
|
|
1549
|
-
* Copyright (c) 2011 Fabrice Bellard
|
|
1550
|
-
* The original design remains. The terminal itself
|
|
1551
|
-
* has been extended to include xterm CSI codes, among
|
|
1552
|
-
* other features.
|
|
1553
|
-
*/
|
|
1554
|
-
|
|
1555
|
-
/**
|
|
1556
|
-
* Default styles for xterm.js
|
|
1557
|
-
*/
|
|
1558
|
-
|
|
1559
|
-
.xterm {
|
|
1560
|
-
cursor: text;
|
|
1561
|
-
position: relative;
|
|
1562
|
-
user-select: none;
|
|
1563
|
-
-ms-user-select: none;
|
|
1564
|
-
-webkit-user-select: none;
|
|
1565
|
-
}
|
|
1566
|
-
|
|
1567
|
-
.xterm.focus,
|
|
1568
|
-
.xterm:focus {
|
|
1569
|
-
outline: none;
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
.xterm .xterm-helpers {
|
|
1573
|
-
position: absolute;
|
|
1574
|
-
top: 0;
|
|
1575
|
-
/**
|
|
1576
|
-
* The z-index of the helpers must be higher than the canvases in order for
|
|
1577
|
-
* IMEs to appear on top.
|
|
1578
|
-
*/
|
|
1579
|
-
z-index: 5;
|
|
1580
|
-
}
|
|
1581
|
-
|
|
1582
|
-
.xterm .xterm-helper-textarea {
|
|
1583
|
-
padding: 0;
|
|
1584
|
-
border: 0;
|
|
1585
|
-
margin: 0;
|
|
1586
|
-
/* Move textarea out of the screen to the far left, so that the cursor is not visible */
|
|
1587
|
-
position: absolute;
|
|
1588
|
-
opacity: 0;
|
|
1589
|
-
left: -9999em;
|
|
1590
|
-
top: 0;
|
|
1591
|
-
width: 0;
|
|
1592
|
-
height: 0;
|
|
1593
|
-
z-index: -5;
|
|
1594
|
-
/** Prevent wrapping so the IME appears against the textarea at the correct position */
|
|
1595
|
-
white-space: nowrap;
|
|
1596
|
-
overflow: hidden;
|
|
1597
|
-
resize: none;
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1600
|
-
.xterm .composition-view {
|
|
1601
|
-
/* TODO: Composition position got messed up somewhere */
|
|
1602
|
-
background: #000;
|
|
1603
|
-
color: #FFF;
|
|
1604
|
-
display: none;
|
|
1605
|
-
position: absolute;
|
|
1606
|
-
white-space: nowrap;
|
|
1607
|
-
z-index: 1;
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
.xterm .composition-view.active {
|
|
1611
|
-
display: block;
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
.xterm .xterm-viewport {
|
|
1615
|
-
/* On OS X this is required in order for the scroll bar to appear fully opaque */
|
|
1616
|
-
background-color: #000;
|
|
1617
|
-
overflow-y: scroll;
|
|
1618
|
-
cursor: default;
|
|
1619
|
-
position: absolute;
|
|
1620
|
-
right: 0;
|
|
1621
|
-
left: 0;
|
|
1622
|
-
top: 0;
|
|
1623
|
-
bottom: 0;
|
|
1624
|
-
}
|
|
1625
|
-
|
|
1626
|
-
.xterm .xterm-screen {
|
|
1627
|
-
position: relative;
|
|
1628
|
-
}
|
|
1629
|
-
|
|
1630
|
-
.xterm .xterm-screen canvas {
|
|
1631
|
-
position: absolute;
|
|
1632
|
-
left: 0;
|
|
1633
|
-
top: 0;
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
.xterm .xterm-scroll-area {
|
|
1637
|
-
visibility: hidden;
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
.xterm-char-measure-element {
|
|
1641
|
-
display: inline-block;
|
|
1642
|
-
visibility: hidden;
|
|
1643
|
-
position: absolute;
|
|
1644
|
-
top: 0;
|
|
1645
|
-
left: -9999em;
|
|
1646
|
-
line-height: normal;
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
.xterm.enable-mouse-events {
|
|
1650
|
-
/* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
|
|
1651
|
-
cursor: default;
|
|
1652
|
-
}
|
|
1653
|
-
|
|
1654
|
-
.xterm.xterm-cursor-pointer,
|
|
1655
|
-
.xterm .xterm-cursor-pointer {
|
|
1656
|
-
cursor: pointer;
|
|
1657
|
-
}
|
|
1658
|
-
|
|
1659
|
-
.xterm.column-select.focus {
|
|
1660
|
-
/* Column selection mode */
|
|
1661
|
-
cursor: crosshair;
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
.xterm .xterm-accessibility:not(.debug),
|
|
1665
|
-
.xterm .xterm-message {
|
|
1666
|
-
position: absolute;
|
|
1667
|
-
left: 0;
|
|
1668
|
-
top: 0;
|
|
1669
|
-
bottom: 0;
|
|
1670
|
-
right: 0;
|
|
1671
|
-
z-index: 10;
|
|
1672
|
-
color: transparent;
|
|
1673
|
-
pointer-events: none;
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
.xterm .xterm-accessibility-tree:not(.debug) *::selection {
|
|
1677
|
-
color: transparent;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
.xterm .xterm-accessibility-tree {
|
|
1681
|
-
user-select: text;
|
|
1682
|
-
white-space: pre;
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
.xterm .live-region {
|
|
1686
|
-
position: absolute;
|
|
1687
|
-
left: -9999px;
|
|
1688
|
-
width: 1px;
|
|
1689
|
-
height: 1px;
|
|
1690
|
-
overflow: hidden;
|
|
1691
|
-
}
|
|
1692
|
-
|
|
1693
|
-
.xterm-dim {
|
|
1694
|
-
/* Dim should not apply to background, so the opacity of the foreground color is applied
|
|
1695
|
-
* explicitly in the generated class and reset to 1 here */
|
|
1696
|
-
opacity: 1 !important;
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
.xterm-underline-1 { text-decoration: underline; }
|
|
1700
|
-
.xterm-underline-2 { text-decoration: double underline; }
|
|
1701
|
-
.xterm-underline-3 { text-decoration: wavy underline; }
|
|
1702
|
-
.xterm-underline-4 { text-decoration: dotted underline; }
|
|
1703
|
-
.xterm-underline-5 { text-decoration: dashed underline; }
|
|
1704
|
-
|
|
1705
|
-
.xterm-overline {
|
|
1706
|
-
text-decoration: overline;
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
.xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
|
|
1710
|
-
.xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
|
|
1711
|
-
.xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
|
|
1712
|
-
.xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
|
|
1713
|
-
.xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }
|
|
1714
|
-
|
|
1715
|
-
.xterm-strikethrough {
|
|
1716
|
-
text-decoration: line-through;
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration {
|
|
1720
|
-
z-index: 6;
|
|
1721
|
-
position: absolute;
|
|
1722
|
-
}
|
|
1723
|
-
|
|
1724
|
-
.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
|
|
1725
|
-
z-index: 7;
|
|
1726
|
-
}
|
|
1727
|
-
|
|
1728
|
-
.xterm-decoration-overview-ruler {
|
|
1729
|
-
z-index: 8;
|
|
1730
|
-
position: absolute;
|
|
1731
|
-
top: 0;
|
|
1732
|
-
right: 0;
|
|
1733
|
-
pointer-events: none;
|
|
1734
|
-
}
|
|
1735
|
-
|
|
1736
|
-
.xterm-decoration-top {
|
|
1737
|
-
z-index: 2;
|
|
1738
|
-
position: relative;
|
|
1739
|
-
}
|
|
1740
1511
|
.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
1512
|
.d1eo8uqs{border-radius:6px;}
|
|
1742
1513
|
.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 +1522,17 @@
|
|
|
1751
1522
|
.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
1523
|
.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
1524
|
.n1rqcyjn.ant-select{margin-bottom:12px;}
|
|
1525
|
+
.c154n7ie{max-width:144px;}
|
|
1526
|
+
.c1c9j4da{width:100%;}
|
|
1527
|
+
.cjxv8cf{color:rgba(44,56,82,0.6);}
|
|
1528
|
+
.c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;max-width:648px;width:100%;margin:0 auto;}
|
|
1529
|
+
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
1530
|
+
|
|
1531
|
+
.e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
|
|
1532
|
+
.f1nltbcu{margin-bottom:16px;}
|
|
1533
|
+
.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;}
|
|
1534
|
+
.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;}
|
|
1535
|
+
.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;}
|
|
1754
1536
|
.c1pvtlkp{width:100%;}
|
|
1755
1537
|
.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
1538
|
.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);}
|
|
@@ -4,6 +4,7 @@ import { ResourceModel } from '../../models';
|
|
|
4
4
|
interface ListPageProps<T extends ResourceModel> {
|
|
5
5
|
selectedKeys: string[];
|
|
6
6
|
tableProps: TableProps<T>;
|
|
7
|
+
contentClassName?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare function ListPage<T extends ResourceModel>(props: ListPageProps<T>): JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -2,7 +2,7 @@ import { i18n as I18nType } from 'i18next';
|
|
|
2
2
|
import { Unstructured } from 'k8s-api-provider';
|
|
3
3
|
import { NetworkPolicy } from 'kubernetes-types/networking/v1';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { JobModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel, StorageClassModel } from '../../models';
|
|
5
|
+
import { JobModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel, StorageClassModel, PersistentVolumeModel, PersistentVolumeClaimModel } from '../../models';
|
|
6
6
|
export type ShowField<Model extends ResourceModel> = {
|
|
7
7
|
key: string;
|
|
8
8
|
title?: React.ReactNode;
|
|
@@ -59,5 +59,10 @@ export declare const PodSelectorField: <Model extends ResourceModel<Required<Uns
|
|
|
59
59
|
export declare const PortsTableField: <Model extends ServiceModel>() => ShowField<Model>;
|
|
60
60
|
export declare const DurationField: <Model extends JobModel | CronJobModel>(i18n: I18nType) => ShowField<Model>;
|
|
61
61
|
export declare const StorageClassProvisionerField: <Model extends StorageClassModel>(i18n: I18nType) => ShowField<Model>;
|
|
62
|
-
export declare const StorageClassFsTypeField: <Model extends StorageClassModel>(i18n: I18nType) => ShowField<Model>;
|
|
63
62
|
export declare const StorageClassPvField: <Model extends StorageClassModel>() => ShowField<Model>;
|
|
63
|
+
export declare const PVCapacityField: <Model extends PersistentVolumeModel>(i18n: I18nType) => ShowField<Model>;
|
|
64
|
+
export declare const PVCStorageField: <Model extends PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
65
|
+
export declare const PVStorageClassField: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
66
|
+
export declare const PVPhaseField: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
67
|
+
export declare const PVVolumeModeField: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
68
|
+
export declare const PVAccessModeField: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
@@ -7,7 +7,6 @@ export * from './FormLayout';
|
|
|
7
7
|
export * from './PodContainersTable';
|
|
8
8
|
export * from './WorkloadDropdown';
|
|
9
9
|
export * from './ReplicasDropdown';
|
|
10
|
-
export * from './PodDropdown';
|
|
11
10
|
export * from './CreateButton';
|
|
12
11
|
export * from './ImageNames';
|
|
13
12
|
export * from './ResourceCRUD';
|
|
@@ -39,8 +38,7 @@ export * from './Tags';
|
|
|
39
38
|
export * from './TextTags';
|
|
40
39
|
export * from './PodLog';
|
|
41
40
|
export * from './NetworkPolicyRulesViewer';
|
|
41
|
+
export * from './ResourceFiledDisplays';
|
|
42
42
|
export * from './Tabs';
|
|
43
43
|
export * as ValueDisplay from './ValueDisplay';
|
|
44
44
|
export * from './ResourceSelect';
|
|
45
|
-
export * from './Shell';
|
|
46
|
-
export * from './PodShellModal';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { i18n as I18nType } from 'i18next';
|
|
3
3
|
import { Column } from '../../components/Table';
|
|
4
|
-
import { JobModel, PodModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel, DaemonSetModel, StorageClassModel, PersistentVolumeModel } from '../../models';
|
|
4
|
+
import { JobModel, PodModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel, DaemonSetModel, StorageClassModel, PersistentVolumeModel, PersistentVolumeClaimModel } from '../../models';
|
|
5
5
|
export declare const CommonSorter: (dataIndex: string[]) => (a: unknown, b: unknown) => 0 | 1 | -1;
|
|
6
6
|
export declare const NameColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType, resource?: string) => Column<Model>;
|
|
7
7
|
export declare const PlainTextNameColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
|
|
@@ -34,9 +34,9 @@ export declare const PodContainersNumColumnRenderer: <Model extends PodModel>(i1
|
|
|
34
34
|
export declare const DataKeysColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
|
|
35
35
|
export declare const PortMappingColumnRenderer: <Model extends ServiceModel>(i18n: I18nType, clusterVip: string) => Column<Model>;
|
|
36
36
|
export declare const ProvisionerColumnRenderer: <Model extends StorageClassModel>(i18n: I18nType) => Column<Model>;
|
|
37
|
-
export declare const FsTypeColumnRenderer: <Model extends StorageClassModel>(i18n: I18nType) => Column<Model>;
|
|
38
37
|
export declare const PVCapacityColumnRenderer: <Model extends PersistentVolumeModel>(i18n: I18nType) => Column<Model>;
|
|
39
|
-
export declare const
|
|
40
|
-
export declare const
|
|
41
|
-
export declare const
|
|
42
|
-
export declare const
|
|
38
|
+
export declare const PVCStorageColumnRenderer: <Model extends PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
|
39
|
+
export declare const PVStorageClassColumnRenderer: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
|
40
|
+
export declare const PVPhaseColumnRenderer: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
|
41
|
+
export declare const PVVolumeModeColumnRenderer: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
|
42
|
+
export declare const PVAccessModeColumnRenderer: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
package/lib/src/i18n.d.ts
CHANGED
|
@@ -158,7 +158,20 @@ export declare const resources: {
|
|
|
158
158
|
not_support: string;
|
|
159
159
|
stopped: string;
|
|
160
160
|
any_node_ip: string;
|
|
161
|
-
|
|
161
|
+
storage_class: string;
|
|
162
|
+
persistent_volume: string;
|
|
163
|
+
provisioner: string;
|
|
164
|
+
file_system: string;
|
|
165
|
+
capacity: string;
|
|
166
|
+
phase: string;
|
|
167
|
+
volume_mode: string;
|
|
168
|
+
access_mode: string;
|
|
169
|
+
block: string;
|
|
170
|
+
pv_phase_available: string;
|
|
171
|
+
pv_phase_bound: string;
|
|
172
|
+
pv_phase_released: string;
|
|
173
|
+
pv_phase_failed: string;
|
|
174
|
+
pv_phase_pending: string;
|
|
162
175
|
};
|
|
163
176
|
};
|
|
164
177
|
'zh-CN': {
|
|
@@ -318,10 +331,21 @@ export declare const resources: {
|
|
|
318
331
|
only_support_one_yaml: string;
|
|
319
332
|
not_support: string;
|
|
320
333
|
stopped: string;
|
|
334
|
+
any_node_ip: string;
|
|
321
335
|
storage_class: string;
|
|
322
|
-
|
|
336
|
+
persistent_volume: string;
|
|
323
337
|
provisioner: string;
|
|
324
338
|
file_system: string;
|
|
339
|
+
capacity: string;
|
|
340
|
+
phase: string;
|
|
341
|
+
volume_mode: string;
|
|
342
|
+
access_mode: string;
|
|
343
|
+
block: string;
|
|
344
|
+
pv_phase_available: string;
|
|
345
|
+
pv_phase_bound: string;
|
|
346
|
+
pv_phase_released: string;
|
|
347
|
+
pv_phase_failed: string;
|
|
348
|
+
pv_phase_pending: string;
|
|
325
349
|
};
|
|
326
350
|
};
|
|
327
351
|
};
|
|
@@ -155,7 +155,20 @@ declare const _default: {
|
|
|
155
155
|
not_support: string;
|
|
156
156
|
stopped: string;
|
|
157
157
|
any_node_ip: string;
|
|
158
|
-
|
|
158
|
+
storage_class: string;
|
|
159
|
+
persistent_volume: string;
|
|
160
|
+
provisioner: string;
|
|
161
|
+
file_system: string;
|
|
162
|
+
capacity: string;
|
|
163
|
+
phase: string;
|
|
164
|
+
volume_mode: string;
|
|
165
|
+
access_mode: string;
|
|
166
|
+
block: string;
|
|
167
|
+
pv_phase_available: string;
|
|
168
|
+
pv_phase_bound: string;
|
|
169
|
+
pv_phase_released: string;
|
|
170
|
+
pv_phase_failed: string;
|
|
171
|
+
pv_phase_pending: string;
|
|
159
172
|
};
|
|
160
173
|
};
|
|
161
174
|
export default _default;
|
|
@@ -155,10 +155,21 @@ declare const _default: {
|
|
|
155
155
|
only_support_one_yaml: string;
|
|
156
156
|
not_support: string;
|
|
157
157
|
stopped: string;
|
|
158
|
+
any_node_ip: string;
|
|
158
159
|
storage_class: string;
|
|
159
|
-
|
|
160
|
+
persistent_volume: string;
|
|
160
161
|
provisioner: string;
|
|
161
162
|
file_system: string;
|
|
163
|
+
capacity: string;
|
|
164
|
+
phase: string;
|
|
165
|
+
volume_mode: string;
|
|
166
|
+
access_mode: string;
|
|
167
|
+
block: string;
|
|
168
|
+
pv_phase_available: string;
|
|
169
|
+
pv_phase_bound: string;
|
|
170
|
+
pv_phase_released: string;
|
|
171
|
+
pv_phase_failed: string;
|
|
172
|
+
pv_phase_pending: string;
|
|
162
173
|
};
|
|
163
174
|
};
|
|
164
175
|
export default _default;
|
|
@@ -5,7 +5,6 @@ import { WorkloadBaseModel } from './workload-base-model';
|
|
|
5
5
|
type RequiredCronJob = Required<CronJob> & Unstructured;
|
|
6
6
|
export declare class CronJobModel extends WorkloadBaseModel {
|
|
7
7
|
_rawYaml: RequiredCronJob;
|
|
8
|
-
_globalStore: GlobalStore;
|
|
9
8
|
spec?: RequiredCronJob['spec'];
|
|
10
9
|
status?: RequiredCronJob['status'];
|
|
11
10
|
constructor(_rawYaml: RequiredCronJob, _globalStore: GlobalStore);
|
|
@@ -5,7 +5,6 @@ import { WorkloadModel } from './workload-model';
|
|
|
5
5
|
type RequiredDaemonSet = Required<DaemonSet> & Unstructured;
|
|
6
6
|
export declare class DaemonSetModel extends WorkloadModel {
|
|
7
7
|
_rawYaml: RequiredDaemonSet;
|
|
8
|
-
_globalStore: GlobalStore;
|
|
9
8
|
spec?: RequiredDaemonSet['spec'];
|
|
10
9
|
status?: RequiredDaemonSet['status'];
|
|
11
10
|
constructor(_rawYaml: RequiredDaemonSet, _globalStore: GlobalStore);
|
|
@@ -5,7 +5,6 @@ import { WorkloadModel } from './workload-model';
|
|
|
5
5
|
type RequiredDeployment = Required<Deployment> & Unstructured;
|
|
6
6
|
export declare class DeploymentModel extends WorkloadModel {
|
|
7
7
|
_rawYaml: RequiredDeployment;
|
|
8
|
-
_globalStore: GlobalStore;
|
|
9
8
|
spec?: RequiredDeployment['spec'];
|
|
10
9
|
status?: RequiredDeployment['status'];
|
|
11
10
|
constructor(_rawYaml: RequiredDeployment, _globalStore: GlobalStore);
|
|
@@ -3,6 +3,5 @@ import { Event } from 'kubernetes-types/core/v1';
|
|
|
3
3
|
import { ResourceModel } from './resource-model';
|
|
4
4
|
export declare class EventModel extends ResourceModel {
|
|
5
5
|
_rawYaml: Unstructured & Event;
|
|
6
|
-
_globalStore: GlobalStore;
|
|
7
6
|
constructor(_rawYaml: Unstructured & Event, _globalStore: GlobalStore);
|
|
8
7
|
}
|
|
@@ -12,7 +12,6 @@ export type RuleItem = {
|
|
|
12
12
|
};
|
|
13
13
|
export declare class IngressModel extends ResourceModel<IngressTypes> {
|
|
14
14
|
_rawYaml: IngressTypes;
|
|
15
|
-
_globalStore: GlobalStore;
|
|
16
15
|
flattenedRules: RuleItem[];
|
|
17
16
|
constructor(_rawYaml: IngressTypes, _globalStore: GlobalStore);
|
|
18
17
|
init(): Promise<void>;
|
|
@@ -5,7 +5,6 @@ import { WorkloadBaseModel } from './workload-base-model';
|
|
|
5
5
|
type RequiredJob = Required<Job> & Unstructured;
|
|
6
6
|
export declare class JobModel extends WorkloadBaseModel {
|
|
7
7
|
_rawYaml: RequiredJob;
|
|
8
|
-
_globalStore: GlobalStore;
|
|
9
8
|
restarts: number;
|
|
10
9
|
spec?: RequiredJob['spec'];
|
|
11
10
|
status?: RequiredJob['status'];
|
|
@@ -4,7 +4,6 @@ import { ResourceModel } from './resource-model';
|
|
|
4
4
|
type NetworkPolicyTypes = Required<NetworkPolicy> & Unstructured;
|
|
5
5
|
export declare class NetworkPolicyModel extends ResourceModel<NetworkPolicyTypes> {
|
|
6
6
|
_rawYaml: NetworkPolicyTypes;
|
|
7
|
-
_globalStore: GlobalStore;
|
|
8
7
|
constructor(_rawYaml: NetworkPolicyTypes, _globalStore: GlobalStore);
|
|
9
8
|
}
|
|
10
9
|
export {};
|
|
@@ -8,7 +8,6 @@ export declare enum NodeRole {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class NodeModel extends WorkloadBaseModel {
|
|
10
10
|
_rawYaml: RequiredNode;
|
|
11
|
-
_globalStore: GlobalStore;
|
|
12
11
|
constructor(_rawYaml: RequiredNode, _globalStore: GlobalStore);
|
|
13
12
|
get role(): NodeRole;
|
|
14
13
|
get ip(): string | undefined;
|
|
@@ -4,7 +4,6 @@ import { ResourceModel } from './resource-model';
|
|
|
4
4
|
type RequiredPersistentClaimVolume = Required<PersistentVolumeClaim> & Unstructured;
|
|
5
5
|
export declare class PersistentVolumeClaimModel extends ResourceModel {
|
|
6
6
|
_rawYaml: RequiredPersistentClaimVolume;
|
|
7
|
-
_globalStore: GlobalStore;
|
|
8
7
|
constructor(_rawYaml: RequiredPersistentClaimVolume, _globalStore: GlobalStore);
|
|
9
8
|
}
|
|
10
9
|
export {};
|
|
@@ -4,7 +4,6 @@ import { ResourceModel } from './resource-model';
|
|
|
4
4
|
type RequiredPersistentVolume = Required<PersistentVolume> & Unstructured;
|
|
5
5
|
export declare class PersistentVolumeModel extends ResourceModel {
|
|
6
6
|
_rawYaml: RequiredPersistentVolume;
|
|
7
|
-
_globalStore: GlobalStore;
|
|
8
7
|
constructor(_rawYaml: RequiredPersistentVolume, _globalStore: GlobalStore);
|
|
9
8
|
}
|
|
10
9
|
export {};
|
|
@@ -3,7 +3,6 @@ import { ResourceModel } from './resource-model';
|
|
|
3
3
|
import { PodMetrics, ResourceQuantity } from './types/metric';
|
|
4
4
|
export declare class PodMetricsModel extends ResourceModel<PodMetrics> {
|
|
5
5
|
_rawYaml: PodMetrics;
|
|
6
|
-
_globalStore: GlobalStore;
|
|
7
6
|
usage: ResourceQuantity;
|
|
8
7
|
constructor(_rawYaml: PodMetrics, _globalStore: GlobalStore);
|
|
9
8
|
}
|
|
@@ -5,7 +5,6 @@ import { WorkloadBaseModel } from './workload-base-model';
|
|
|
5
5
|
type RequiredPod = Required<Pod> & Unstructured;
|
|
6
6
|
export declare class PodModel extends WorkloadBaseModel {
|
|
7
7
|
_rawYaml: RequiredPod;
|
|
8
|
-
_globalStore: GlobalStore;
|
|
9
8
|
request: ResourceQuantity;
|
|
10
9
|
limit: ResourceQuantity;
|
|
11
10
|
spec?: RequiredPod['spec'];
|
|
@@ -2,11 +2,11 @@ import { GlobalStore, Unstructured } from 'k8s-api-provider';
|
|
|
2
2
|
export type IResourceModel = Unstructured & ResourceModel;
|
|
3
3
|
export declare class ResourceModel<T extends Unstructured = Unstructured> {
|
|
4
4
|
_rawYaml: T;
|
|
5
|
-
_globalStore: GlobalStore;
|
|
6
5
|
id: string;
|
|
7
6
|
apiVersion: T['apiVersion'];
|
|
8
7
|
kind: T['kind'];
|
|
9
8
|
metadata: T['metadata'];
|
|
9
|
+
_globalStore: GlobalStore;
|
|
10
10
|
constructor(_rawYaml: T, _globalStore: GlobalStore);
|
|
11
11
|
init(): Promise<void>;
|
|
12
12
|
get name(): string | undefined;
|
|
@@ -11,7 +11,6 @@ export declare enum ServiceTypeEnum {
|
|
|
11
11
|
}
|
|
12
12
|
export declare class ServiceModel extends ResourceModel<ServiceType> {
|
|
13
13
|
_rawYaml: ServiceType;
|
|
14
|
-
_globalStore: GlobalStore;
|
|
15
14
|
constructor(_rawYaml: ServiceType, _globalStore: GlobalStore);
|
|
16
15
|
get displayType(): string | undefined;
|
|
17
16
|
get dnsRecord(): string;
|
|
@@ -5,7 +5,6 @@ import { WorkloadModel } from './workload-model';
|
|
|
5
5
|
type RequiredStatefulSet = Required<StatefulSet> & Unstructured;
|
|
6
6
|
export declare class StatefulSetModel extends WorkloadModel {
|
|
7
7
|
_rawYaml: RequiredStatefulSet;
|
|
8
|
-
_globalStore: GlobalStore;
|
|
9
8
|
spec?: RequiredStatefulSet['spec'];
|
|
10
9
|
status?: RequiredStatefulSet['status'];
|
|
11
10
|
constructor(_rawYaml: RequiredStatefulSet, _globalStore: GlobalStore);
|
|
@@ -5,7 +5,6 @@ import { ResourceModel } from './resource-model';
|
|
|
5
5
|
type RequiredStorageClass = Required<StorageClass> & Unstructured;
|
|
6
6
|
export declare class StorageClassModel extends ResourceModel {
|
|
7
7
|
_rawYaml: RequiredStorageClass;
|
|
8
|
-
_globalStore: GlobalStore;
|
|
9
8
|
pvs: PersistentVolumeModel[];
|
|
10
9
|
constructor(_rawYaml: RequiredStorageClass, _globalStore: GlobalStore);
|
|
11
10
|
init(): Promise<void>;
|
|
@@ -6,7 +6,6 @@ import { ResourceModel } from './resource-model';
|
|
|
6
6
|
type WorkloadBaseTypes = Required<Deployment | StatefulSet | Job | DaemonSet | CronJob | Pod | Node> & Unstructured;
|
|
7
7
|
export declare class WorkloadBaseModel extends ResourceModel<WorkloadBaseTypes> {
|
|
8
8
|
_rawYaml: WorkloadBaseTypes;
|
|
9
|
-
_globalStore: GlobalStore;
|
|
10
9
|
constructor(_rawYaml: WorkloadBaseTypes, _globalStore: GlobalStore);
|
|
11
10
|
get imageNames(): string[];
|
|
12
11
|
}
|
|
@@ -4,7 +4,6 @@ import { WorkloadBaseModel } from './workload-base-model';
|
|
|
4
4
|
type WorkloadTypes = Required<Deployment | StatefulSet | DaemonSet> & Unstructured;
|
|
5
5
|
export declare class WorkloadModel extends WorkloadBaseModel {
|
|
6
6
|
_rawYaml: WorkloadTypes;
|
|
7
|
-
_globalStore: GlobalStore;
|
|
8
7
|
restarts: number;
|
|
9
8
|
spec?: WorkloadTypes['spec'];
|
|
10
9
|
status?: WorkloadTypes['status'];
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { i18n as I18n } from 'i18next';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
basePath: string;
|
|
6
|
-
apiVersion: string;
|
|
7
|
-
kind: string;
|
|
8
|
-
parent: RESOURCE_GROUP;
|
|
9
|
-
label: string;
|
|
10
|
-
initValue: {};
|
|
11
|
-
columns: () => (import("../..").Column<import("../..").ResourceModel<import("k8s-api-provider").Unstructured>> | import("../..").Column<import("../..").PersistentVolumeModel>)[];
|
|
12
|
-
showConfig: () => {
|
|
13
|
-
tabs: {
|
|
14
|
-
title: string;
|
|
15
|
-
key: string;
|
|
16
|
-
groups: import("../..").ShowGroup<import("../..").ResourceModel<import("k8s-api-provider").Unstructured>>[];
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
19
|
-
};
|
|
2
|
+
import { ResourceConfig } from 'src/types';
|
|
3
|
+
import { PersistentVolumeModel } from '../../models';
|
|
4
|
+
export declare const PersistentVolumeConfig: (i18n: I18n) => ResourceConfig<PersistentVolumeModel>;
|