tenjin-ui-kit 0.2.110 → 0.2.113
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/README.md +13 -13
- package/{dist/components → components}/RightContext/index.css +20 -20
- package/{dist/components → components}/browsingTestCaseLayout/TreeViewLayout/TreeViewContent/Index.js +6 -2
- package/{dist/components → components}/browsingTestCaseLayout/style.css +82 -82
- package/{dist/components → components}/tree/index.js +22 -17
- package/package.json +118 -117
- package/.dockerignore +0 -6
- package/.storybook/main.js +0 -16
- package/.storybook/preview.js +0 -11
- package/Dockerfile +0 -17
- package/Jenkinsfile +0 -65
- package/dist/README.md +0 -13
- package/dist/package.json +0 -117
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -43
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/robots.txt +0 -3
- package/public/tenjinLogo.png +0 -0
- /package/{dist/common → common}/hooks/apiHooks.js +0 -0
- /package/{dist/common → common}/hooks/newApiHook.js +0 -0
- /package/{dist/common → common}/utils/security/index.js +0 -0
- /package/{dist/common → common}/utils/security/securityConfig.js +0 -0
- /package/{dist/components → components}/Canvas.js +0 -0
- /package/{dist/components → components}/DragBox/index.js +0 -0
- /package/{dist/components → components}/InputWithChip/index.js +0 -0
- /package/{dist/components → components}/RightContext/index.js +0 -0
- /package/{dist/components → components}/WorkFlow.js +0 -0
- /package/{dist/components → components}/WorkFlowBuilder.js +0 -0
- /package/{dist/components → components}/alert/Style.js +0 -0
- /package/{dist/components → components}/alert/index.js +0 -0
- /package/{dist/components → components}/authenticationProvider/AuthError.js +0 -0
- /package/{dist/components → components}/authenticationProvider/AuthLoader.js +0 -0
- /package/{dist/components → components}/authenticationProvider/index.js +0 -0
- /package/{dist/components → components}/avatar/index.js +0 -0
- /package/{dist/components → components}/avatar/styles.js +0 -0
- /package/{dist/components → components}/breadCrumbs/index.js +0 -0
- /package/{dist/components → components}/breadCrumbs/style.js +0 -0
- /package/{dist/components → components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/index.js +0 -0
- /package/{dist/components → components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewContent/style.js +0 -0
- /package/{dist/components → components}/browsingTestCaseLayout/DetailsViewLayout/DetailsViewHeader/index.js +0 -0
- /package/{dist/components → components}/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/Index.js +0 -0
- /package/{dist/components → components}/browsingTestCaseLayout/TreeViewLayout/TreeViewHeader/style.js +0 -0
- /package/{dist/components → components}/browsingTestCaseLayout/index.js +0 -0
- /package/{dist/components → components}/button/index.js +0 -0
- /package/{dist/components → components}/checkBox/index.js +0 -0
- /package/{dist/components → components}/divider/index.js +0 -0
- /package/{dist/components → components}/editableField/index.js +0 -0
- /package/{dist/components → components}/errorBoundary/Error.jpg +0 -0
- /package/{dist/components → components}/errorBoundary/index.js +0 -0
- /package/{dist/components → components}/fileUploader/index.js +0 -0
- /package/{dist/components → components}/fileUploader/style.js +0 -0
- /package/{dist/components → components}/iconButton/index.js +0 -0
- /package/{dist/components → components}/iconButton/style.js +0 -0
- /package/{dist/components → components}/input/index.js +0 -0
- /package/{dist/components → components}/layout/index.js +0 -0
- /package/{dist/components → components}/layout/main/index.js +0 -0
- /package/{dist/components → components}/layout/main/style.js +0 -0
- /package/{dist/components → components}/layout/pageContent/index.js +0 -0
- /package/{dist/components → components}/layout/sidebar/FlatMenu.js +0 -0
- /package/{dist/components → components}/layout/sidebar/GroupedMenu.js +0 -0
- /package/{dist/components → components}/layout/sidebar/ProjectMenu.js +0 -0
- /package/{dist/components → components}/layout/sidebar/index.js +0 -0
- /package/{dist/components → components}/layout/sidebar/style.js +0 -0
- /package/{dist/components → components}/layout/topBar/ProjectTopbar.js +0 -0
- /package/{dist/components → components}/layout/topBar/UserAvatar.js +0 -0
- /package/{dist/components → components}/layout/topBar/index.js +0 -0
- /package/{dist/components → components}/loader/index.js +0 -0
- /package/{dist/components → components}/modal/Modal.js +0 -0
- /package/{dist/components → components}/modal/index.js +0 -0
- /package/{dist/components → components}/modal/style.js +0 -0
- /package/{dist/components → components}/pagination/index.js +0 -0
- /package/{dist/components → components}/pagination/style.js +0 -0
- /package/{dist/components → components}/paper/index.js +0 -0
- /package/{dist/components → components}/paper/style.js +0 -0
- /package/{dist/components → components}/richTextEditor/index.js +0 -0
- /package/{dist/components → components}/richTextEditor/style.js +0 -0
- /package/{dist/components → components}/select/index.js +0 -0
- /package/{dist/components → components}/switch/index.js +0 -0
- /package/{dist/components → components}/switch/style.js +0 -0
- /package/{dist/components → components}/switch/switch.js +0 -0
- /package/{dist/components → components}/table/index.js +0 -0
- /package/{dist/components → components}/text/index.js +0 -0
- /package/{dist/components → components}/timeStamp/index.js +0 -0
- /package/{dist/components → components}/timeStamp/style.js +0 -0
- /package/{dist/components → components}/topBar/index.js +0 -0
- /package/{dist/components → components}/tree/style.js +0 -0
- /package/{dist/components → components}/valuePicker/ValueSelector.js +0 -0
- /package/{dist/components → components}/valuePicker/index.js +0 -0
- /package/{dist/components → components}/wrapperLayout/layout/index.js +0 -0
- /package/{dist/components → components}/wrapperLayout/layout/style.js +0 -0
- /package/{dist/components → components}/wrapperLayout/main/index.js +0 -0
- /package/{dist/components → components}/wrapperLayout/main/pageContainer/index.js +0 -0
- /package/{dist/components → components}/wrapperLayout/main/sideBar/index.js +0 -0
- /package/{dist/components → components}/wrapperLayout/main/sideBar/style.js +0 -0
- /package/{dist/components → components}/wrapperLayout/topBar/UserAvatar.js +0 -0
- /package/{dist/components → components}/wrapperLayout/topBar/avatar.js +0 -0
- /package/{dist/components → components}/wrapperLayout/topBar/index.js +0 -0
- /package/{dist/components → components}/wrapperLayout/topBar/menuIcon.js +0 -0
- /package/{dist/components → components}/wrapperLayout/topBar/style.js +0 -0
- /package/{dist/http → http}/index.js +0 -0
- /package/{dist/index.js → index.js} +0 -0
- /package/{dist/templates → templates}/listPage/index.js +0 -0
- /package/{dist/themes → themes}/default.js +0 -0
- /package/{dist/themes → themes}/defaultSmall.js +0 -0
- /package/{dist/themes → themes}/responsiveTheme.js +0 -0
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
# Tenjin UI Kit
|
|
2
|
-
|
|
3
|
-
The Tenjin UI kit ships a set of pre-built components that can be used while building user interfaces for Tenjin.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
In the project directory, you can run:
|
|
8
|
-
|
|
9
|
-
npm install tenjin-ui-kit
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
The [Tenjin UI Kit](https://tenjin-ui-kit.netlify.app) storybook gives clear documentation on how to use the Tenjin UI Kit.
|
|
1
|
+
# Tenjin UI Kit
|
|
2
|
+
|
|
3
|
+
The Tenjin UI kit ships a set of pre-built components that can be used while building user interfaces for Tenjin.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
In the project directory, you can run:
|
|
8
|
+
|
|
9
|
+
npm install tenjin-ui-kit
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
The [Tenjin UI Kit](https://tenjin-ui-kit.netlify.app) storybook gives clear documentation on how to use the Tenjin UI Kit.
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
.contextContainer {
|
|
2
|
-
z-index: 1;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 500px;
|
|
5
|
-
background: #673ab7;
|
|
6
|
-
}
|
|
7
|
-
.rightClick {
|
|
8
|
-
z-index: 12;
|
|
9
|
-
position: fixed;
|
|
10
|
-
background: rgb(240, 200, 1);
|
|
11
|
-
}
|
|
12
|
-
.menuElement {
|
|
13
|
-
color: #222222;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
padding: 17px 36px;
|
|
16
|
-
}
|
|
17
|
-
.menuElement:hover {
|
|
18
|
-
color: #fff;
|
|
19
|
-
background: #009688;
|
|
20
|
-
}
|
|
1
|
+
.contextContainer {
|
|
2
|
+
z-index: 1;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 500px;
|
|
5
|
+
background: #673ab7;
|
|
6
|
+
}
|
|
7
|
+
.rightClick {
|
|
8
|
+
z-index: 12;
|
|
9
|
+
position: fixed;
|
|
10
|
+
background: rgb(240, 200, 1);
|
|
11
|
+
}
|
|
12
|
+
.menuElement {
|
|
13
|
+
color: #222222;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
padding: 17px 36px;
|
|
16
|
+
}
|
|
17
|
+
.menuElement:hover {
|
|
18
|
+
color: #fff;
|
|
19
|
+
background: #009688;
|
|
20
|
+
}
|
|
@@ -10,11 +10,15 @@ var _tree = _interopRequireDefault(require("../../../tree"));
|
|
|
10
10
|
var _default2 = _interopRequireDefault(require("../../../../themes/default"));
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
var TreeViewContent = function TreeViewContent(props) {
|
|
13
|
-
var folder = props.folder
|
|
13
|
+
var folder = props.folder,
|
|
14
|
+
projectName = props.projectName,
|
|
15
|
+
apiCallFunc = props.apiCallFunc;
|
|
14
16
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_material.ThemeProvider, {
|
|
15
17
|
theme: _default2.default
|
|
16
18
|
}, /*#__PURE__*/_react.default.createElement(_material.CssBaseline, null), /*#__PURE__*/_react.default.createElement(_tree.default, {
|
|
17
|
-
folder: folder
|
|
19
|
+
folder: folder,
|
|
20
|
+
projectName: projectName,
|
|
21
|
+
apiCallFunc: apiCallFunc
|
|
18
22
|
})));
|
|
19
23
|
};
|
|
20
24
|
TreeViewContent.propTypes = {};
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--box-width: 200px;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
margin: 40px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.wrapper {
|
|
10
|
-
background-color: #fff;
|
|
11
|
-
color: #444;
|
|
12
|
-
display: flex;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.box {
|
|
16
|
-
background-color: #444;
|
|
17
|
-
color: #fff;
|
|
18
|
-
border-radius: 5px;
|
|
19
|
-
padding: 20px;
|
|
20
|
-
font-size: 12px;
|
|
21
|
-
|
|
22
|
-
box-sizing: border-box;
|
|
23
|
-
|
|
24
|
-
flex: 1 1 auto;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.handler {
|
|
28
|
-
width: 20px;
|
|
29
|
-
padding: 0;
|
|
30
|
-
cursor: ew-resize;
|
|
31
|
-
flex: 0 0 auto;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.handler::before {
|
|
35
|
-
content: "";
|
|
36
|
-
display: block;
|
|
37
|
-
width: 2px;
|
|
38
|
-
height: calc(100vh - 34px);
|
|
39
|
-
background: #c0c0c0;
|
|
40
|
-
margin: 0 auto;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.arrowButton {
|
|
44
|
-
display: flex;
|
|
45
|
-
justify-content: flex-end;
|
|
46
|
-
/* transition: 0.4s; */
|
|
47
|
-
width: 100%;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.verticalText {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: column;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
writing-mode: vertical-lr;
|
|
55
|
-
text-orientation: mixed;
|
|
56
|
-
transform: rotate(180deg);
|
|
57
|
-
font-size: 1.3rem;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.leftWrapper {
|
|
61
|
-
background-color: #fff;
|
|
62
|
-
color: black;
|
|
63
|
-
border-radius: 5px;
|
|
64
|
-
padding: 0rem 0.5rem;
|
|
65
|
-
font-size: 12px;
|
|
66
|
-
box-sizing: border-box;
|
|
67
|
-
flex: 1 1 auto;
|
|
68
|
-
min-width: var(--box-width);
|
|
69
|
-
flex-grow: 0;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.rightWrapper {
|
|
73
|
-
background-color: #fff;
|
|
74
|
-
color: black;
|
|
75
|
-
border-radius: 5px;
|
|
76
|
-
padding: 0rem 0.5rem;
|
|
77
|
-
font-size: 12px;
|
|
78
|
-
box-sizing: border-box;
|
|
79
|
-
flex: 1 1 auto;
|
|
80
|
-
min-width: var(--box-width);
|
|
81
|
-
flex-grow: 1;
|
|
82
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
--box-width: 200px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
body {
|
|
6
|
+
margin: 40px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.wrapper {
|
|
10
|
+
background-color: #fff;
|
|
11
|
+
color: #444;
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.box {
|
|
16
|
+
background-color: #444;
|
|
17
|
+
color: #fff;
|
|
18
|
+
border-radius: 5px;
|
|
19
|
+
padding: 20px;
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
|
|
22
|
+
box-sizing: border-box;
|
|
23
|
+
|
|
24
|
+
flex: 1 1 auto;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.handler {
|
|
28
|
+
width: 20px;
|
|
29
|
+
padding: 0;
|
|
30
|
+
cursor: ew-resize;
|
|
31
|
+
flex: 0 0 auto;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.handler::before {
|
|
35
|
+
content: "";
|
|
36
|
+
display: block;
|
|
37
|
+
width: 2px;
|
|
38
|
+
height: calc(100vh - 34px);
|
|
39
|
+
background: #c0c0c0;
|
|
40
|
+
margin: 0 auto;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.arrowButton {
|
|
44
|
+
display: flex;
|
|
45
|
+
justify-content: flex-end;
|
|
46
|
+
/* transition: 0.4s; */
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.verticalText {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
writing-mode: vertical-lr;
|
|
55
|
+
text-orientation: mixed;
|
|
56
|
+
transform: rotate(180deg);
|
|
57
|
+
font-size: 1.3rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.leftWrapper {
|
|
61
|
+
background-color: #fff;
|
|
62
|
+
color: black;
|
|
63
|
+
border-radius: 5px;
|
|
64
|
+
padding: 0rem 0.5rem;
|
|
65
|
+
font-size: 12px;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
flex: 1 1 auto;
|
|
68
|
+
min-width: var(--box-width);
|
|
69
|
+
flex-grow: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.rightWrapper {
|
|
73
|
+
background-color: #fff;
|
|
74
|
+
color: black;
|
|
75
|
+
border-radius: 5px;
|
|
76
|
+
padding: 0rem 0.5rem;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
flex: 1 1 auto;
|
|
80
|
+
min-width: var(--box-width);
|
|
81
|
+
flex-grow: 1;
|
|
82
|
+
}
|
|
@@ -38,7 +38,9 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
38
38
|
// color: '#90a17d'
|
|
39
39
|
|
|
40
40
|
function Tree(props) {
|
|
41
|
-
var folder = props.folder
|
|
41
|
+
var folder = props.folder,
|
|
42
|
+
projectName = props.projectName,
|
|
43
|
+
apiCallFunc = props.apiCallFunc;
|
|
42
44
|
var _React$useState = React.useState(null),
|
|
43
45
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
44
46
|
contextMenu = _React$useState2[0],
|
|
@@ -80,26 +82,26 @@ function Tree(props) {
|
|
|
80
82
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_material.ThemeProvider, {
|
|
81
83
|
theme: _default.default
|
|
82
84
|
}, /*#__PURE__*/React.createElement(_material.CssBaseline, null), /*#__PURE__*/React.createElement(React.Fragment, {
|
|
83
|
-
key: nodes.
|
|
85
|
+
key: nodes.folderId
|
|
84
86
|
}, /*#__PURE__*/React.createElement("div", {
|
|
85
87
|
style: {
|
|
86
88
|
marginBottom: isFirstLevel ? "8px" : null
|
|
87
89
|
}
|
|
88
90
|
}, /*#__PURE__*/React.createElement(_TreeItem.default, {
|
|
89
|
-
key: nodes.
|
|
90
|
-
nodeId: nodes.
|
|
91
|
+
key: nodes.folderId,
|
|
92
|
+
nodeId: nodes.folderId,
|
|
91
93
|
onClick: function onClick() {
|
|
92
|
-
var isExpanded = expandedNodeIds.includes(nodes.
|
|
94
|
+
var isExpanded = expandedNodeIds.includes(nodes.folderId);
|
|
93
95
|
if (isExpanded) {
|
|
94
96
|
setExpandedNodeIds(expandedNodeIds.filter(function (id) {
|
|
95
|
-
return id !== nodes.
|
|
97
|
+
return id !== nodes.folderId;
|
|
96
98
|
}));
|
|
97
99
|
} else {
|
|
98
100
|
var parent = getParentNode(nodes, folder);
|
|
99
101
|
if (parent) {
|
|
100
|
-
setExpandedNodeIds([].concat(_toConsumableArray(expandedNodeIds), [parent.
|
|
102
|
+
setExpandedNodeIds([].concat(_toConsumableArray(expandedNodeIds), [parent.folderId, nodes.folderId]));
|
|
101
103
|
} else {
|
|
102
|
-
setExpandedNodeIds([].concat(_toConsumableArray(expandedNodeIds), [nodes.
|
|
104
|
+
setExpandedNodeIds([].concat(_toConsumableArray(expandedNodeIds), [nodes.folderId]));
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
},
|
|
@@ -111,19 +113,22 @@ function Tree(props) {
|
|
|
111
113
|
}, /*#__PURE__*/React.createElement(_material.Typography, {
|
|
112
114
|
style: {
|
|
113
115
|
// fontWeight: isFirstLevel ? 500 : "initial",
|
|
114
|
-
fontWeight: nodes.
|
|
116
|
+
fontWeight: nodes.classificationType === "project" ? 600 : nodes.classificationType === "module" ? 600 : 500,
|
|
115
117
|
// fontSize: "1rem",
|
|
116
|
-
fontSize: nodes.
|
|
118
|
+
fontSize: nodes.classificationType === "project" ? "1rem" : nodes.classificationType === "module" ? "1rem" : "0.92rem",
|
|
117
119
|
fontFamily: "sans-serif segoe ui",
|
|
118
|
-
padding: nodes.
|
|
120
|
+
padding: nodes.classificationType === "sc" ? "inherit" : "6px"
|
|
121
|
+
},
|
|
122
|
+
onClick: function onClick() {
|
|
123
|
+
return apiCallFunc(nodes.folderId);
|
|
119
124
|
}
|
|
120
|
-
}, nodes.
|
|
125
|
+
}, nodes.classificationType === "project" ? expandedNodeIds.includes(nodes.nodeId) ?
|
|
121
126
|
/*#__PURE__*/
|
|
122
127
|
// <FcOpenedFolder style={{ marginRight: "10px" }} />
|
|
123
128
|
React.createElement(React.Fragment, null) :
|
|
124
129
|
/*#__PURE__*/
|
|
125
130
|
// <FcFolder style={{ marginRight: "10px" }} />
|
|
126
|
-
React.createElement(React.Fragment, null) : nodes.
|
|
131
|
+
React.createElement(React.Fragment, null) : nodes.classificationType === "module" ? expandedNodeIds.includes(nodes.nodeId) ? /*#__PURE__*/React.createElement(_bi.BiMicrochip, {
|
|
127
132
|
style: {
|
|
128
133
|
marginRight: "10px",
|
|
129
134
|
color: "#03c988"
|
|
@@ -133,7 +138,7 @@ function Tree(props) {
|
|
|
133
138
|
marginRight: "10px",
|
|
134
139
|
color: "#90a17d"
|
|
135
140
|
}
|
|
136
|
-
}) : nodes.
|
|
141
|
+
}) : nodes.classificationType === "bp" ? expandedNodeIds.includes(nodes.nodeId) ? /*#__PURE__*/React.createElement(_bs.BsFillBriefcaseFill, {
|
|
137
142
|
style: {
|
|
138
143
|
marginRight: "10px",
|
|
139
144
|
color: "#03c988"
|
|
@@ -143,7 +148,7 @@ function Tree(props) {
|
|
|
143
148
|
marginRight: "10px",
|
|
144
149
|
color: "#90a17d"
|
|
145
150
|
}
|
|
146
|
-
}) : nodes.
|
|
151
|
+
}) : nodes.classificationType === "sc" ? expandedNodeIds.includes(nodes.nodeId) ? /*#__PURE__*/React.createElement(_fa.FaClipboardList, {
|
|
147
152
|
style: {
|
|
148
153
|
marginRight: "10px",
|
|
149
154
|
color: "#03c988"
|
|
@@ -165,7 +170,7 @@ function Tree(props) {
|
|
|
165
170
|
}
|
|
166
171
|
}), nodes.name)),
|
|
167
172
|
onContextMenu: function onContextMenu(event) {
|
|
168
|
-
return handleContextMenu(event, nodes.
|
|
173
|
+
return handleContextMenu(event, nodes.folderId);
|
|
169
174
|
}
|
|
170
175
|
}, Array.isArray(nodes.children) ? nodes.children.map(function (node) {
|
|
171
176
|
return renderTree(node, false);
|
|
@@ -178,7 +183,7 @@ function Tree(props) {
|
|
|
178
183
|
style: {
|
|
179
184
|
cursor: "context-menu"
|
|
180
185
|
}
|
|
181
|
-
}, /*#__PURE__*/React.createElement(_TreeView.default, {
|
|
186
|
+
}, /*#__PURE__*/React.createElement("h3", null, projectName), /*#__PURE__*/React.createElement(_TreeView.default, {
|
|
182
187
|
"aria-label": "multi-select",
|
|
183
188
|
defaultCollapseIcon: /*#__PURE__*/React.createElement(_ExpandMore.default, null),
|
|
184
189
|
defaultExpandIcon: /*#__PURE__*/React.createElement(_ChevronRight.default, null),
|
package/package.json
CHANGED
|
@@ -1,117 +1,118 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "tenjin-ui-kit",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"repository": {
|
|
5
|
-
"url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
|
|
6
|
-
},
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@floating-ui/dom": "^1.2.1",
|
|
9
|
-
"@mantine/core": "^5.10.1",
|
|
10
|
-
"@mantine/hooks": "^5.10.1",
|
|
11
|
-
"@mantine/rte": "^5.10.1",
|
|
12
|
-
"@mui/icons-material": "^5.11.0",
|
|
13
|
-
"@mui/lab": "^5.0.0-alpha.116",
|
|
14
|
-
"@mui/styles": "^5.11.2",
|
|
15
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
16
|
-
"@testing-library/react": "^13.4.0",
|
|
17
|
-
"@testing-library/user-event": "^13.5.0",
|
|
18
|
-
"aria-hidden": "^1.2.2",
|
|
19
|
-
"axios": "^0.26.0",
|
|
20
|
-
"clsx": "^1.2.1",
|
|
21
|
-
"d3-hierarchy": "^3.1.2",
|
|
22
|
-
"feather-icons": "^4.29.0",
|
|
23
|
-
"final-form": "^4.20.9",
|
|
24
|
-
"material-ui-popup-state": "^5.0.8",
|
|
25
|
-
"moment": "^2.29.4",
|
|
26
|
-
"react-beautiful-dnd": "^13.1.1",
|
|
27
|
-
"react-dnd": "^16.0.1",
|
|
28
|
-
"react-dnd-html5-backend": "^16.0.1",
|
|
29
|
-
"react-dropzone": "^14.2.3",
|
|
30
|
-
"react-feather": "^2.0.10",
|
|
31
|
-
"react-final-form": "^6.5.9",
|
|
32
|
-
"react-flow-renderer": "^10.3.17",
|
|
33
|
-
"react-icons": "^4.7.1",
|
|
34
|
-
"react-moment": "^1.1.3",
|
|
35
|
-
"react-scripts": "5.0.1",
|
|
36
|
-
"react-sortable-hoc": "^2.0.0",
|
|
37
|
-
"reactflow": "^11.6.1",
|
|
38
|
-
"storybook-react-context": "^0.6.0",
|
|
39
|
-
"styled-components": "^5.3.9",
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"react-app
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"not
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"last 1
|
|
77
|
-
"last 1
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"@babel/
|
|
83
|
-
"@babel/preset-
|
|
84
|
-
"@
|
|
85
|
-
"@emotion/
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@storybook/addon-
|
|
89
|
-
"@storybook/addon-
|
|
90
|
-
"@storybook/addon-
|
|
91
|
-
"@storybook/
|
|
92
|
-
"@storybook/
|
|
93
|
-
"@storybook/
|
|
94
|
-
"@storybook/
|
|
95
|
-
"@storybook/react": "^
|
|
96
|
-
"@storybook/
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"react
|
|
102
|
-
"react-
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
"@emotion/
|
|
109
|
-
"@
|
|
110
|
-
"@
|
|
111
|
-
"@testing-library/
|
|
112
|
-
"@testing-library/
|
|
113
|
-
"
|
|
114
|
-
"react
|
|
115
|
-
"react-
|
|
116
|
-
|
|
117
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "tenjin-ui-kit",
|
|
3
|
+
"version": "0.2.113",
|
|
4
|
+
"repository": {
|
|
5
|
+
"url": "https://gitlab.com/yethi/react/tenjin-ui-kit.git"
|
|
6
|
+
},
|
|
7
|
+
"dependencies": {
|
|
8
|
+
"@floating-ui/dom": "^1.2.1",
|
|
9
|
+
"@mantine/core": "^5.10.1",
|
|
10
|
+
"@mantine/hooks": "^5.10.1",
|
|
11
|
+
"@mantine/rte": "^5.10.1",
|
|
12
|
+
"@mui/icons-material": "^5.11.0",
|
|
13
|
+
"@mui/lab": "^5.0.0-alpha.116",
|
|
14
|
+
"@mui/styles": "^5.11.2",
|
|
15
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
16
|
+
"@testing-library/react": "^13.4.0",
|
|
17
|
+
"@testing-library/user-event": "^13.5.0",
|
|
18
|
+
"aria-hidden": "^1.2.2",
|
|
19
|
+
"axios": "^0.26.0",
|
|
20
|
+
"clsx": "^1.2.1",
|
|
21
|
+
"d3-hierarchy": "^3.1.2",
|
|
22
|
+
"feather-icons": "^4.29.0",
|
|
23
|
+
"final-form": "^4.20.9",
|
|
24
|
+
"material-ui-popup-state": "^5.0.8",
|
|
25
|
+
"moment": "^2.29.4",
|
|
26
|
+
"react-beautiful-dnd": "^13.1.1",
|
|
27
|
+
"react-dnd": "^16.0.1",
|
|
28
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
29
|
+
"react-dropzone": "^14.2.3",
|
|
30
|
+
"react-feather": "^2.0.10",
|
|
31
|
+
"react-final-form": "^6.5.9",
|
|
32
|
+
"react-flow-renderer": "^10.3.17",
|
|
33
|
+
"react-icons": "^4.7.1",
|
|
34
|
+
"react-moment": "^1.1.3",
|
|
35
|
+
"react-scripts": "5.0.1",
|
|
36
|
+
"react-sortable-hoc": "^2.0.0",
|
|
37
|
+
"reactflow": "^11.6.1",
|
|
38
|
+
"storybook-react-context": "^0.6.0",
|
|
39
|
+
"styled-components": "^5.3.9",
|
|
40
|
+
"uuid": "^9.0.0",
|
|
41
|
+
"web-vitals": "^2.1.4"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"start": "react-scripts start",
|
|
45
|
+
"build": "react-scripts build",
|
|
46
|
+
"test": "react-scripts test",
|
|
47
|
+
"eject": "react-scripts eject",
|
|
48
|
+
"storybook": "start-storybook -p 6006 -s public",
|
|
49
|
+
"build-storybook": "build-storybook -s public",
|
|
50
|
+
"clean": "rimraf dist",
|
|
51
|
+
"compile": "npm run clean && cross-env NODE_ENV=production babel src/package --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,stories.js,__snapshots__"
|
|
52
|
+
},
|
|
53
|
+
"eslintConfig": {
|
|
54
|
+
"extends": [
|
|
55
|
+
"react-app",
|
|
56
|
+
"react-app/jest"
|
|
57
|
+
],
|
|
58
|
+
"overrides": [
|
|
59
|
+
{
|
|
60
|
+
"files": [
|
|
61
|
+
"**/*.stories.*"
|
|
62
|
+
],
|
|
63
|
+
"rules": {
|
|
64
|
+
"import/no-anonymous-default-export": "off"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"browserslist": {
|
|
70
|
+
"production": [
|
|
71
|
+
">0.2%",
|
|
72
|
+
"not dead",
|
|
73
|
+
"not op_mini all"
|
|
74
|
+
],
|
|
75
|
+
"development": [
|
|
76
|
+
"last 1 chrome version",
|
|
77
|
+
"last 1 firefox version",
|
|
78
|
+
"last 1 safari version"
|
|
79
|
+
]
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@babel/cli": "^7.20.7",
|
|
83
|
+
"@babel/preset-env": "^7.20.2",
|
|
84
|
+
"@babel/preset-react": "^7.18.6",
|
|
85
|
+
"@emotion/react": "^11.10.5",
|
|
86
|
+
"@emotion/styled": "^11.10.5",
|
|
87
|
+
"@mui/material": "^5.11.3",
|
|
88
|
+
"@storybook/addon-actions": "^6.5.15",
|
|
89
|
+
"@storybook/addon-essentials": "^6.5.15",
|
|
90
|
+
"@storybook/addon-interactions": "^6.5.15",
|
|
91
|
+
"@storybook/addon-links": "^6.5.15",
|
|
92
|
+
"@storybook/builder-webpack5": "^6.5.15",
|
|
93
|
+
"@storybook/manager-webpack5": "^6.5.15",
|
|
94
|
+
"@storybook/node-logger": "^6.5.15",
|
|
95
|
+
"@storybook/preset-create-react-app": "^4.1.2",
|
|
96
|
+
"@storybook/react": "^6.5.15",
|
|
97
|
+
"@storybook/testing-library": "^0.0.13",
|
|
98
|
+
"babel-plugin-named-exports-order": "^0.0.2",
|
|
99
|
+
"cross-env": "^7.0.3",
|
|
100
|
+
"prop-types": "^15.8.1",
|
|
101
|
+
"react": "^18.2.0",
|
|
102
|
+
"react-dom": "^18.2.0",
|
|
103
|
+
"react-router-dom": "^6.6.1",
|
|
104
|
+
"rimraf": "^3.0.2",
|
|
105
|
+
"webpack": "^5.75.0"
|
|
106
|
+
},
|
|
107
|
+
"peerDependencies": {
|
|
108
|
+
"@emotion/react": "^11.10.5",
|
|
109
|
+
"@emotion/styled": "^11.10.5",
|
|
110
|
+
"@mui/material": "^5.11.3",
|
|
111
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
112
|
+
"@testing-library/react": "^13.4.0",
|
|
113
|
+
"@testing-library/user-event": "^13.5.0",
|
|
114
|
+
"react": "^18.2.0",
|
|
115
|
+
"react-dom": "^18.2.0",
|
|
116
|
+
"react-router-dom": "^6.6.1"
|
|
117
|
+
}
|
|
118
|
+
}
|
package/.dockerignore
DELETED
package/.storybook/main.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"stories": [
|
|
3
|
-
"../src/**/*.stories.mdx",
|
|
4
|
-
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
|
5
|
-
],
|
|
6
|
-
"addons": [
|
|
7
|
-
"@storybook/addon-links",
|
|
8
|
-
"@storybook/addon-essentials",
|
|
9
|
-
"@storybook/addon-interactions",
|
|
10
|
-
"@storybook/preset-create-react-app"
|
|
11
|
-
],
|
|
12
|
-
"framework": "@storybook/react",
|
|
13
|
-
"core": {
|
|
14
|
-
"builder": "@storybook/builder-webpack5"
|
|
15
|
-
}
|
|
16
|
-
}
|
package/.storybook/preview.js
DELETED
package/Dockerfile
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# build environment
|
|
2
|
-
FROM node:16-alpine as build
|
|
3
|
-
WORKDIR /app
|
|
4
|
-
ENV PATH /app/node_modules/.bin:$PATH
|
|
5
|
-
COPY package.json ./
|
|
6
|
-
COPY package-lock.json ./
|
|
7
|
-
COPY . ./
|
|
8
|
-
RUN npm install
|
|
9
|
-
RUN npm run build-storybook
|
|
10
|
-
RUN npm run compile
|
|
11
|
-
RUN npm version patch -m "CI patch version bump"
|
|
12
|
-
RUN cp ./package.json ./dist
|
|
13
|
-
RUN cp ./README.md ./dist
|
|
14
|
-
RUN cd dist
|
|
15
|
-
RUN npm publish
|
|
16
|
-
# TEST COMMIT 2
|
|
17
|
-
|