systemview 1.0.0 → 1.1.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.
Files changed (264) hide show
  1. package/api/Connections.js +36 -0
  2. package/api/connections.txt +1 -0
  3. package/api/index.js +78 -0
  4. package/babel.config.js +12 -0
  5. package/cli/index.js +23 -6
  6. package/cli/launchApp.js +0 -0
  7. package/cli/runTest.js +0 -0
  8. package/cli/utils/cli.js +48 -0
  9. package/cli/utils/init.js +17 -0
  10. package/cli/utils/log.js +11 -0
  11. package/package.json +7 -4
  12. package/plugin/SystemViewModule.js +97 -0
  13. package/plugin/getAllTest.js +21 -0
  14. package/plugin/index.js +40 -0
  15. package/src/App.css +38 -0
  16. package/src/App.js +30 -0
  17. package/src/ServiceContext.js +9 -0
  18. package/src/assets/arrow.png +0 -0
  19. package/src/assets/check.svg +1 -0
  20. package/src/assets/clear.png +0 -0
  21. package/src/assets/edit.png +0 -0
  22. package/src/assets/error.svg +1 -0
  23. package/src/assets/eval-icon.svg +10 -0
  24. package/src/assets/expand-arrow.svg +41 -0
  25. package/src/assets/expand-button.svg +41 -0
  26. package/src/assets/fonts/FontsFree-Net-SFMono-Regular.ttf +0 -0
  27. package/src/assets/fonts/Malkor-Regular.ttf +0 -0
  28. package/src/assets/iconfinder-icon (1).svg +14 -0
  29. package/src/assets/iconfinder-icon.svg +14 -0
  30. package/src/assets/icons-save-60.png +0 -0
  31. package/src/assets/loading.gif +0 -0
  32. package/src/assets/missing-doc.png +0 -0
  33. package/src/assets/saved-doc.png +0 -0
  34. package/src/assets/sysly.png +0 -0
  35. package/src/assets/test-icon.svg +10 -0
  36. package/src/assets/test-missing.png +0 -0
  37. package/src/assets/test-saved.png +0 -0
  38. package/src/assets/x.svg +1 -0
  39. package/src/atoms/Button/Button.js +20 -0
  40. package/src/atoms/Button/Button.test.js +27 -0
  41. package/src/atoms/Button/__snapshots__/Button.test.js.snap +9 -0
  42. package/src/atoms/Button/styles.scss +35 -0
  43. package/src/atoms/Count/index.js +10 -0
  44. package/src/atoms/Count/styles.scss +25 -0
  45. package/src/atoms/DataTable/DataTable.js +27 -0
  46. package/src/atoms/DataTable/DataTable.test.js +55 -0
  47. package/src/atoms/DataTable/__snapshots__/DataTable.test.js.snap +36 -0
  48. package/src/atoms/DataTable/styles.scss +28 -0
  49. package/src/atoms/DescriptionBox/DescriptionBox.js +24 -0
  50. package/src/atoms/DescriptionBox/DescriptionBox.test.js +36 -0
  51. package/src/atoms/DescriptionBox/__snapshots__/DescriptionBox.test.js.snap +14 -0
  52. package/src/atoms/DescriptionBox/styles.scss +24 -0
  53. package/src/atoms/DescriptionText/DescriptionText.js +12 -0
  54. package/src/atoms/DescriptionText/DescriptionText.test.js +22 -0
  55. package/src/atoms/DescriptionText/styles.scss +10 -0
  56. package/src/atoms/DocsIcon/DocsIcon.js +20 -0
  57. package/src/atoms/DocsIcon/DocsIcon.test.js +23 -0
  58. package/src/atoms/DocsIcon/styles.scss +7 -0
  59. package/src/atoms/ExpandableIcon/ExpandableIcon.js +30 -0
  60. package/src/atoms/ExpandableIcon/ExpandableIcon.test.js +18 -0
  61. package/src/atoms/ExpandableIcon/styles.scss +5 -0
  62. package/src/atoms/JsonTextBox/JsonTextBox.js +61 -0
  63. package/src/atoms/JsonTextBox/JsonTextBox.test.js +0 -0
  64. package/src/atoms/JsonTextBox/styles.scss +41 -0
  65. package/src/atoms/Link/Link.js +17 -0
  66. package/src/atoms/Link/Link.test.js +33 -0
  67. package/src/atoms/Link/styles.scss +8 -0
  68. package/src/atoms/List/List.js +8 -0
  69. package/src/atoms/List/List.test.js +26 -0
  70. package/src/atoms/List/styles.scss +9 -0
  71. package/src/atoms/Markdown/Markdown.js +48 -0
  72. package/src/atoms/Markdown/styles.scss +414 -0
  73. package/src/atoms/RunTestIcon/index.js +41 -0
  74. package/src/atoms/RunTestIcon/styles.scss +16 -0
  75. package/src/atoms/SaveIcon/SaveIcon.js +6 -0
  76. package/src/atoms/SaveIcon/styles.scss +3 -0
  77. package/src/atoms/Selector/Selector.js +28 -0
  78. package/src/atoms/Selector/Selector.test.js +0 -0
  79. package/src/atoms/Selector/styles.scss +1 -0
  80. package/src/atoms/StatusIndicator/StatusIndicator.js +16 -0
  81. package/src/atoms/StatusIndicator/styles.scss +33 -0
  82. package/src/atoms/TestsIcon/TestsIcon.js +17 -0
  83. package/src/atoms/TestsIcon/TestsIcon.test.js +18 -0
  84. package/src/atoms/TestsIcon/styles.scss +0 -0
  85. package/src/atoms/Text/Text.js +8 -0
  86. package/src/atoms/Text/Text.test.js +21 -0
  87. package/src/atoms/Text/styles.scss +0 -0
  88. package/src/atoms/Textbox/Textbox.js +33 -0
  89. package/src/atoms/Textbox/Textbox.test.js +23 -0
  90. package/src/atoms/Textbox/styles.scss +14 -0
  91. package/src/atoms/Title/Title.js +12 -0
  92. package/src/atoms/Title/Title.test.js +0 -0
  93. package/src/atoms/Title/styles.scss +6 -0
  94. package/src/atoms/Toggle/Toggle.js +13 -0
  95. package/src/atoms/Toggle/Toggle.test.js +0 -0
  96. package/src/atoms/Toggle/styles.scss +62 -0
  97. package/src/atoms/TypeSelector/TypeSelector.js +28 -0
  98. package/src/atoms/TypeSelector/TypeSelector.test.js +0 -0
  99. package/src/atoms/TypeSelector/styles.scss +9 -0
  100. package/src/index.css +20 -0
  101. package/src/index.js +24 -0
  102. package/src/logo.svg +7 -0
  103. package/src/molecules/Args/Args.js +302 -0
  104. package/src/molecules/Args/Args.test.js +0 -0
  105. package/src/molecules/Args/styles.scss +166 -0
  106. package/src/molecules/AutoCompleteBox/AutoCompleteBox.js +101 -0
  107. package/src/molecules/AutoCompleteBox/AutoCompleteBox.test.js +0 -0
  108. package/src/molecules/AutoCompleteBox/styles.scss +35 -0
  109. package/src/molecules/DataTableForm/DataTableForm.js +167 -0
  110. package/src/molecules/DataTableForm/DataTableForm.test.js +0 -0
  111. package/src/molecules/DataTableForm/styles.scss +51 -0
  112. package/src/molecules/EditBox/EditBox.js +49 -0
  113. package/src/molecules/EditBox/EditBox.test.js +0 -0
  114. package/src/molecules/EditBox/styles.scss +38 -0
  115. package/src/molecules/ExpandableList/ExpandableList.js +26 -0
  116. package/src/molecules/ExpandableList/ExpandableList.test.js +33 -0
  117. package/src/molecules/ExpandableList/styles.scss +18 -0
  118. package/src/molecules/ExpandableSection/ExpandableSection.js +36 -0
  119. package/src/molecules/ExpandableSection/ExpandableSection.test.js +0 -0
  120. package/src/molecules/ExpandableSection/styles.scss +22 -0
  121. package/src/molecules/ServerModulesList/ServerModulesList.js +75 -0
  122. package/src/molecules/ServerModulesList/styles.scss +28 -0
  123. package/src/molecules/TargetSelector/TargetSelector.js +34 -0
  124. package/src/molecules/TargetSelector/TargetSelector.test.js +0 -0
  125. package/src/molecules/TargetSelector/styles.scss +0 -0
  126. package/src/molecules/TestCaption/TestCaption.js +26 -0
  127. package/src/molecules/TestCaption/TestCaption.test.js +0 -0
  128. package/src/molecules/TestCaption/styles.scss +40 -0
  129. package/src/molecules/TestSummary/index.js +212 -0
  130. package/src/molecules/TestSummary/styles.scss +83 -0
  131. package/src/molecules/TextWith2Links/TextWith2Links.js +10 -0
  132. package/src/molecules/TextWith2Links/styles.scss +0 -0
  133. package/src/molecules/ValidationInput/ValidationInput.js +64 -0
  134. package/src/molecules/ValidationInput/ValidationInput.test.js +0 -0
  135. package/src/molecules/ValidationInput/ValidationMessages.js +178 -0
  136. package/src/molecules/ValidationInput/ValidationOptions.js +113 -0
  137. package/src/molecules/ValidationInput/styles.scss +74 -0
  138. package/src/molecules/ValidationInput/validator.js +244 -0
  139. package/src/organisms/Documentation/Documentation.js +128 -0
  140. package/src/organisms/Documentation/Documentation.test.js +0 -0
  141. package/src/organisms/Documentation/styles.scss +22 -0
  142. package/src/organisms/MultiTestSection/MultiTestSection.js +85 -0
  143. package/src/organisms/MultiTestSection/MultiTestSection.test.js +0 -0
  144. package/src/organisms/MultiTestSection/styles.scss +22 -0
  145. package/src/organisms/SavedTests/SavedTests.js +209 -0
  146. package/src/organisms/SavedTests/SavedTests.test.js +0 -0
  147. package/src/organisms/SavedTests/styles.scss +76 -0
  148. package/src/organisms/SavedTests/transformTests.js +51 -0
  149. package/src/organisms/ScratchPad/ScratchPad.js +128 -0
  150. package/src/organisms/ScratchPad/ScratchPad.test.js +0 -0
  151. package/src/organisms/ScratchPad/styles.scss +100 -0
  152. package/src/organisms/SystemNavigator/SystemNavigator.js +148 -0
  153. package/src/organisms/SystemNavigator/SystemNavigator.test.js +24 -0
  154. package/src/organisms/SystemNavigator/styles.scss +38 -0
  155. package/src/organisms/TestContainer/TestContainer.js +72 -0
  156. package/src/organisms/TestContainer/TestContainer.test.js +0 -0
  157. package/src/organisms/TestContainer/styles.scss +20 -0
  158. package/src/organisms/TestPanel/AfterTest/AfterTest.js +16 -0
  159. package/src/organisms/TestPanel/AfterTest/AfterTest.test.js +0 -0
  160. package/src/organisms/TestPanel/AfterTest/styles.scss +0 -0
  161. package/src/organisms/TestPanel/BeforeTest/BeforeTest.js +16 -0
  162. package/src/organisms/TestPanel/BeforeTest/BeforeTest.test.js +0 -0
  163. package/src/organisms/TestPanel/BeforeTest/styles.scss +0 -0
  164. package/src/organisms/TestPanel/Evaluations.js +369 -0
  165. package/src/organisms/TestPanel/EventsTest/EventsTest.js +19 -0
  166. package/src/organisms/TestPanel/EventsTest/styles.scss +0 -0
  167. package/src/organisms/TestPanel/MainTest/MainTest.js +20 -0
  168. package/src/organisms/TestPanel/MainTest/MainTest.test.js +0 -0
  169. package/src/organisms/TestPanel/MainTest/styles.scss +143 -0
  170. package/src/organisms/TestPanel/TestPanel.js +170 -0
  171. package/src/organisms/TestPanel/TestPanel.test.js +0 -0
  172. package/src/organisms/TestPanel/components/Argument.class.js +94 -0
  173. package/src/organisms/TestPanel/components/FullTestController.js +78 -0
  174. package/src/organisms/TestPanel/components/Test.class.js +162 -0
  175. package/src/organisms/TestPanel/components/TestController.class.js +135 -0
  176. package/src/organisms/TestPanel/components/test-helpers.js +109 -0
  177. package/src/organisms/TestPanel/styles.scss +45 -0
  178. package/src/pages/SystemView/SystemView.js +68 -0
  179. package/src/pages/SystemView/styles.scss +81 -0
  180. package/src/reportWebVitals.js +13 -0
  181. package/src/sass/bootstrap/_alert.scss +51 -0
  182. package/src/sass/bootstrap/_badge.scss +47 -0
  183. package/src/sass/bootstrap/_breadcrumb.scss +38 -0
  184. package/src/sass/bootstrap/_button-group.scss +166 -0
  185. package/src/sass/bootstrap/_buttons.scss +143 -0
  186. package/src/sass/bootstrap/_card.scss +270 -0
  187. package/src/sass/bootstrap/_carousel.scss +191 -0
  188. package/src/sass/bootstrap/_close.scss +34 -0
  189. package/src/sass/bootstrap/_code.scss +56 -0
  190. package/src/sass/bootstrap/_custom-forms.scss +297 -0
  191. package/src/sass/bootstrap/_dropdown.scss +131 -0
  192. package/src/sass/bootstrap/_forms.scss +333 -0
  193. package/src/sass/bootstrap/_functions.scss +86 -0
  194. package/src/sass/bootstrap/_grid.scss +52 -0
  195. package/src/sass/bootstrap/_images.scss +42 -0
  196. package/src/sass/bootstrap/_input-group.scss +159 -0
  197. package/src/sass/bootstrap/_jumbotron.scss +16 -0
  198. package/src/sass/bootstrap/_list-group.scss +115 -0
  199. package/src/sass/bootstrap/_media.scss +8 -0
  200. package/src/sass/bootstrap/_mixins.scss +42 -0
  201. package/src/sass/bootstrap/_modal.scss +168 -0
  202. package/src/sass/bootstrap/_nav.scss +118 -0
  203. package/src/sass/bootstrap/_navbar.scss +311 -0
  204. package/src/sass/bootstrap/_pagination.scss +77 -0
  205. package/src/sass/bootstrap/_popover.scss +183 -0
  206. package/src/sass/bootstrap/_print.scss +124 -0
  207. package/src/sass/bootstrap/_progress.scss +33 -0
  208. package/src/sass/bootstrap/_reboot.scss +482 -0
  209. package/src/sass/bootstrap/_root.scss +19 -0
  210. package/src/sass/bootstrap/_tables.scss +180 -0
  211. package/src/sass/bootstrap/_tooltip.scss +115 -0
  212. package/src/sass/bootstrap/_transitions.scss +36 -0
  213. package/src/sass/bootstrap/_type.scss +125 -0
  214. package/src/sass/bootstrap/_utilities.scss +14 -0
  215. package/src/sass/bootstrap/_variables.scss +894 -0
  216. package/src/sass/bootstrap/bootstrap-grid.scss +32 -0
  217. package/src/sass/bootstrap/bootstrap-reboot.scss +12 -0
  218. package/src/sass/bootstrap/bootstrap.scss +42 -0
  219. package/src/sass/bootstrap/mixins/_alert.scss +13 -0
  220. package/src/sass/bootstrap/mixins/_background-variant.scss +21 -0
  221. package/src/sass/bootstrap/mixins/_badge.scss +12 -0
  222. package/src/sass/bootstrap/mixins/_border-radius.scss +35 -0
  223. package/src/sass/bootstrap/mixins/_box-shadow.scss +5 -0
  224. package/src/sass/bootstrap/mixins/_breakpoints.scss +123 -0
  225. package/src/sass/bootstrap/mixins/_buttons.scss +109 -0
  226. package/src/sass/bootstrap/mixins/_caret.scss +65 -0
  227. package/src/sass/bootstrap/mixins/_clearfix.scss +7 -0
  228. package/src/sass/bootstrap/mixins/_float.scss +11 -0
  229. package/src/sass/bootstrap/mixins/_forms.scss +137 -0
  230. package/src/sass/bootstrap/mixins/_gradients.scss +45 -0
  231. package/src/sass/bootstrap/mixins/_grid-framework.scss +67 -0
  232. package/src/sass/bootstrap/mixins/_grid.scss +52 -0
  233. package/src/sass/bootstrap/mixins/_hover.scss +39 -0
  234. package/src/sass/bootstrap/mixins/_image.scss +36 -0
  235. package/src/sass/bootstrap/mixins/_list-group.scss +21 -0
  236. package/src/sass/bootstrap/mixins/_lists.scss +7 -0
  237. package/src/sass/bootstrap/mixins/_nav-divider.scss +10 -0
  238. package/src/sass/bootstrap/mixins/_navbar-align.scss +10 -0
  239. package/src/sass/bootstrap/mixins/_pagination.scss +22 -0
  240. package/src/sass/bootstrap/mixins/_reset-text.scss +17 -0
  241. package/src/sass/bootstrap/mixins/_resize.scss +6 -0
  242. package/src/sass/bootstrap/mixins/_screen-reader.scss +35 -0
  243. package/src/sass/bootstrap/mixins/_size.scss +6 -0
  244. package/src/sass/bootstrap/mixins/_table-row.scss +30 -0
  245. package/src/sass/bootstrap/mixins/_text-emphasis.scss +14 -0
  246. package/src/sass/bootstrap/mixins/_text-hide.scss +9 -0
  247. package/src/sass/bootstrap/mixins/_text-truncate.scss +8 -0
  248. package/src/sass/bootstrap/mixins/_transition.scss +9 -0
  249. package/src/sass/bootstrap/mixins/_visibility.scss +7 -0
  250. package/src/sass/bootstrap/utilities/_align.scss +8 -0
  251. package/src/sass/bootstrap/utilities/_background.scss +19 -0
  252. package/src/sass/bootstrap/utilities/_borders.scss +59 -0
  253. package/src/sass/bootstrap/utilities/_clearfix.scss +3 -0
  254. package/src/sass/bootstrap/utilities/_display.scss +38 -0
  255. package/src/sass/bootstrap/utilities/_embed.scss +52 -0
  256. package/src/sass/bootstrap/utilities/_flex.scss +46 -0
  257. package/src/sass/bootstrap/utilities/_float.scss +9 -0
  258. package/src/sass/bootstrap/utilities/_position.scss +36 -0
  259. package/src/sass/bootstrap/utilities/_screenreaders.scss +11 -0
  260. package/src/sass/bootstrap/utilities/_sizing.scss +12 -0
  261. package/src/sass/bootstrap/utilities/_spacing.scss +51 -0
  262. package/src/sass/bootstrap/utilities/_text.scss +52 -0
  263. package/src/sass/bootstrap/utilities/_visibility.scss +11 -0
  264. package/src/setupTests.js +5 -0
@@ -0,0 +1,109 @@
1
+ import moment from "moment";
2
+ import { getType } from "../../../molecules/ValidationInput/validator";
3
+ export const rnb = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
4
+ export const isObjectLike = (value) =>
5
+ ["object", "array", "string"].indexOf(getType(value)) > -1;
6
+
7
+ export const isTargetNamespace = (str) =>
8
+ /^(?:before|main|after)Test\.Action\d+\.(?:error|results)(?:\.(?![0-9])[a-zA-Z0-9$_]+(?:\[\d\])*)*$/.test(
9
+ str
10
+ );
11
+ export const targetValueFnRegex =
12
+ /tv\((?:before|main|after)Test\.Action\d+\.(?:error|results)(?:\.(?![0-9])[a-zA-Z0-9$_]+(?:\[\d\])*)*\)/g;
13
+ export const isTargetValueFn = (str) =>
14
+ /^tv\((?:before|main|after)Test\.Action\d+\.(?:error|results)(?:\.(?![0-9])[a-zA-Z0-9$_]+(?:\[\d\])*)*\)$/.test(
15
+ str
16
+ );
17
+ export const isEqualArrays = (a, b) => a.join(".") === b.join("."); //specifically for arrays of strings
18
+ export const isValidNamespace = (str) => /^(?![0-9])[a-zA-Z0-9$_]+$/.test(str); //_id
19
+ export const startsWithNameAndArray = (str) => /^\w+(\[\d+\])+/.test(str); //users[0]
20
+ export const isNameAndArray = (str) => /^\w+(\[\d+\])+$/.test(str); //users[0]
21
+ export const endsWithArrayIndex = (str) => /\w+(\[\d+\])+$/.test(str); //users[0].docs[3]...
22
+ export const getLastArrayNamespace = (str) => (str.match(/(\w+(\[\d+\])+)$/) || [str])[0];
23
+
24
+ export const parseIndex = (nsp) => parseInt((nsp.match(/\[(\d+)\]$/) || [null, "0"])[1]);
25
+ export const replaceFirstIndex = (nsp, insert = "0") =>
26
+ nsp.replace(/(\[\d+\])/, `[${insert}]`);
27
+ export const replaceLastIndex = (nsp, insert = "0") =>
28
+ nsp.replace(/(\[\d+\])$/, `[${insert}]`);
29
+
30
+ export const replaceAllIndices = (nsp, insert = "0") =>
31
+ nsp.replace(/(\[\d+\])/g, `[${insert}]`);
32
+
33
+ export const getArrayNamespaces = (str) =>
34
+ str
35
+ .split(/(\w+(\[\d+\])+)/)
36
+ .filter(isNameAndArray)
37
+ .reduce((sum, nsp) => {
38
+ //split by indexes in case of nested arrays
39
+ const indices = nsp.split(/(\[\d+\])/).filter((n) => n);
40
+ const [name] = indices.splice(0, 1);
41
+ return sum.concat(
42
+ indices.map((index, i) => {
43
+ return name + indices.slice(0, i + 1).join("");
44
+ }, [])
45
+ );
46
+ }, []);
47
+ export const switchArrayIndices = (nsp, replace) => {
48
+ // normalize nsp and replace nsp
49
+ const n = replaceAllIndices(nsp);
50
+ const r = replaceAllIndices(replace);
51
+ // match the normalized namespaces
52
+ if (n.substr(0, r.length) === r) {
53
+ // create new namespace by concatenating
54
+ const n = nsp.split(".");
55
+ const r = replace.split(".");
56
+ n.splice(...[0, r.length, ...r]);
57
+ return n.join(".");
58
+ } else return nsp;
59
+ };
60
+
61
+ //separate prop names from other prop names and indices (ie. 'test.results[0][0]'...);
62
+ export const mapNamespace = (nsp) =>
63
+ nsp
64
+ .replace(/(?:\.|\[|\])/g, " ")
65
+ .split(" ")
66
+ .reduce((sum, str) => sum.concat(str.trim() || []), []);
67
+
68
+ export const obj = function ObjectParser(obj) {
69
+ const parser = this || {};
70
+ parser.parse = (map) =>
71
+ map.reduce(([placeholder], key) => [placeholder?.[key], placeholder, key], [obj]);
72
+
73
+ parser.valueAt = (map) => parser.parse(map)[0];
74
+
75
+ parser.valueAtNsp = (nsp) => parser.valueAt(mapNamespace(nsp));
76
+
77
+ parser.parseNsp = (nsp) => parser.parse(mapNamespace(nsp));
78
+ //using JSON to create a deep copy in order to lose refs to original
79
+ parser.clone = () => JSON.parse(JSON.stringify(obj));
80
+
81
+ parser.isEmpty = () => Object.getOwnPropertyNames(obj).length === 0;
82
+
83
+ return parser;
84
+ };
85
+
86
+ export const arr = function ArrayParser(arr) {
87
+ const parser = this || {};
88
+
89
+ parser.randomIndex = () => rnb(0, arr.length - 1);
90
+
91
+ parser.randomItem = () => arr[parser.randomIndex()];
92
+ return parser;
93
+ };
94
+
95
+ const isFn = /^\w+\(([^,)]*(,[^,)]*)*)\)$/;
96
+ const parseArgs = (str) => str.split(",").map((value) => value.trim());
97
+ export const isFunction = (str) => isFn.test(str);
98
+ export const isDateFunction = (str) => /^[dD]ate\(([^,)]*(,[^,)]*)*)\)$/.test(str);
99
+
100
+ export const strFn = (str) => {
101
+ if (isDateFunction(str)) {
102
+ const [fullStr, args] = str.match(isFn);
103
+ return moment(args).toJSON();
104
+ }
105
+
106
+ return str;
107
+ };
108
+ window.moment = moment;
109
+ window.strFn = strFn;
@@ -0,0 +1,45 @@
1
+ .test {
2
+ &__buttons {
3
+ justify-content: space-between;
4
+ margin-bottom: 3px;
5
+ & > span > span {
6
+ margin: 0 5px;
7
+ }
8
+
9
+ & > span {
10
+ font-family: Helvetica, arial, sans-serif;
11
+ background: #e9e9e9;
12
+ border-radius: 41px;
13
+ padding: 2px 11px;
14
+ margin-right: 3px;
15
+ }
16
+ }
17
+ }
18
+ .test-panel {
19
+ padding: 2rem 1rem;
20
+ overflow: auto;
21
+ font-size: 14px;
22
+ max-height: 100vh;
23
+ &__section {
24
+ margin-bottom: 6px;
25
+ }
26
+
27
+ &__section > section {
28
+ width: 100%;
29
+ }
30
+ &__error-message {
31
+ display: flex;
32
+ align-items: center;
33
+ color: #c02a2a;
34
+ font-weight: 700;
35
+ background: #e4d554;
36
+ background: #d4d4d4;
37
+ padding: 2px 8px !important;
38
+ &--hide-true {
39
+ opacity: 0;
40
+ }
41
+ &--error-false {
42
+ color: green;
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,68 @@
1
+ import React from "react";
2
+ import { useParams } from "react-router-dom";
3
+ import SystemNavigator from "../../organisms/SystemNavigator/SystemNavigator";
4
+ import Documentation from "../../organisms/Documentation/Documentation";
5
+ import TestPanel from "../../organisms/TestPanel/TestPanel";
6
+ import LOGO from "../../assets/sysly.png";
7
+ import "./styles.scss";
8
+
9
+ const SystemViewPage = () => {
10
+ const { projectCode, serviceId, moduleName, methodName } = useParams();
11
+ return (
12
+ <section className="system-viewer">
13
+ <div className="page-header">
14
+ <span
15
+ style={{
16
+ fontSize: "28px",
17
+ fontFamily: "Malkor",
18
+ color: "#6886ba",
19
+ marginRight: "10px",
20
+ textShadow: "1px 1px 2px #d6cbca",
21
+ }}
22
+ >
23
+ SystemView
24
+ </span>
25
+ <img src={LOGO} alt="logo" />
26
+ {/* <span
27
+ style={{
28
+ fontSize: "28px",
29
+ fontFamily: "Malkor",
30
+ color: "#6886ba",
31
+ marginLeft: "10px",
32
+ textShadow: "1px 1px 2px #d6cbca",
33
+ }}
34
+ >
35
+ SystemLynx
36
+ </span> */}
37
+ </div>
38
+ <div className="row">
39
+ <div className="col-3">
40
+ <SystemNavigator
41
+ projectCode={projectCode}
42
+ serviceId={serviceId}
43
+ moduleName={moduleName}
44
+ methodName={methodName}
45
+ />
46
+ </div>
47
+ <div className="col-6">
48
+ <Documentation
49
+ projectCode={projectCode}
50
+ serviceId={serviceId}
51
+ moduleName={moduleName}
52
+ methodName={methodName}
53
+ />
54
+ </div>
55
+ <div className="col-3">
56
+ <TestPanel
57
+ projectCode={projectCode}
58
+ serviceId={serviceId}
59
+ moduleName={moduleName}
60
+ methodName={methodName}
61
+ />
62
+ </div>
63
+ </div>
64
+ </section>
65
+ );
66
+ };
67
+
68
+ export default SystemViewPage;
@@ -0,0 +1,81 @@
1
+ @import "../../sass/bootstrap/bootstrap-grid.scss";
2
+
3
+ .system-viewer {
4
+ background: whitesmoke;
5
+ height: 100vh;
6
+ overflow: hidden;
7
+ padding-top: 61px;
8
+ & > div {
9
+ max-width: 100vw;
10
+ }
11
+ }
12
+ .btn {
13
+ cursor: pointer;
14
+ display: inline-block;
15
+
16
+ &:active {
17
+ transform: translate(0px, -2px);
18
+ }
19
+ }
20
+
21
+ .delete-btn {
22
+ position: absolute;
23
+ top: 1px;
24
+ right: -4px;
25
+ font-family: system-ui;
26
+ color: #c50000;
27
+ background: white;
28
+ padding: 0px 6px 2px 6px;
29
+ border-radius: 0 40px 40px 0;
30
+ font-weight: 300;
31
+ opacity: 0;
32
+ &:hover {
33
+ opacity: 1;
34
+ }
35
+ }
36
+
37
+ .page-header {
38
+ height: 62px;
39
+ background: #ffffff;
40
+ // box-shadow: 0px 2px 8px black;
41
+ border-bottom: 1px solid #9494b7;
42
+ display: flex;
43
+ align-items: center;
44
+ position: absolute;
45
+ justify-content: center;
46
+ width: 100vw;
47
+ top: 0;
48
+ padding: 0px 35px;
49
+ }
50
+
51
+ .scroll-buffer {
52
+ height: 20vh;
53
+ }
54
+ ::-webkit-input-placeholder {
55
+ font-style: italic;
56
+ }
57
+ :-moz-placeholder {
58
+ font-style: italic;
59
+ }
60
+ ::-moz-placeholder {
61
+ font-style: italic;
62
+ }
63
+ :-ms-input-placeholder {
64
+ font-style: italic;
65
+ }
66
+
67
+ @-webkit-keyframes bounce {
68
+ to {
69
+ -webkit-transform: scale(1.2);
70
+ }
71
+ }
72
+ @-moz-keyframes bounce {
73
+ to {
74
+ -moz-transform: scale(1.2);
75
+ }
76
+ }
77
+ @keyframes bounce {
78
+ to {
79
+ transform: scale(1.2);
80
+ }
81
+ }
@@ -0,0 +1,13 @@
1
+ const reportWebVitals = onPerfEntry => {
2
+ if (onPerfEntry && onPerfEntry instanceof Function) {
3
+ import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
4
+ getCLS(onPerfEntry);
5
+ getFID(onPerfEntry);
6
+ getFCP(onPerfEntry);
7
+ getLCP(onPerfEntry);
8
+ getTTFB(onPerfEntry);
9
+ });
10
+ }
11
+ };
12
+
13
+ export default reportWebVitals;
@@ -0,0 +1,51 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .alert {
6
+ position: relative;
7
+ padding: $alert-padding-y $alert-padding-x;
8
+ margin-bottom: $alert-margin-bottom;
9
+ border: $alert-border-width solid transparent;
10
+ @include border-radius($alert-border-radius);
11
+ }
12
+
13
+ // Headings for larger alerts
14
+ .alert-heading {
15
+ // Specified to prevent conflicts of changing $headings-color
16
+ color: inherit;
17
+ }
18
+
19
+ // Provide class for links that match alerts
20
+ .alert-link {
21
+ font-weight: $alert-link-font-weight;
22
+ }
23
+
24
+
25
+ // Dismissible alerts
26
+ //
27
+ // Expand the right padding and account for the close button's positioning.
28
+
29
+ .alert-dismissible {
30
+ padding-right: ($close-font-size + $alert-padding-x * 2);
31
+
32
+ // Adjust close link position
33
+ .close {
34
+ position: absolute;
35
+ top: 0;
36
+ right: 0;
37
+ padding: $alert-padding-y $alert-padding-x;
38
+ color: inherit;
39
+ }
40
+ }
41
+
42
+
43
+ // Alternate styles
44
+ //
45
+ // Generate contextual modifier classes for colorizing the alert.
46
+
47
+ @each $color, $value in $theme-colors {
48
+ .alert-#{$color} {
49
+ @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level));
50
+ }
51
+ }
@@ -0,0 +1,47 @@
1
+ // Base class
2
+ //
3
+ // Requires one of the contextual, color modifier classes for `color` and
4
+ // `background-color`.
5
+
6
+ .badge {
7
+ display: inline-block;
8
+ padding: $badge-padding-y $badge-padding-x;
9
+ font-size: $badge-font-size;
10
+ font-weight: $badge-font-weight;
11
+ line-height: 1;
12
+ text-align: center;
13
+ white-space: nowrap;
14
+ vertical-align: baseline;
15
+ @include border-radius($badge-border-radius);
16
+
17
+ // Empty badges collapse automatically
18
+ &:empty {
19
+ display: none;
20
+ }
21
+ }
22
+
23
+ // Quick fix for badges in buttons
24
+ .btn .badge {
25
+ position: relative;
26
+ top: -1px;
27
+ }
28
+
29
+ // Pill badges
30
+ //
31
+ // Make them extra rounded with a modifier to replace v3's badges.
32
+
33
+ .badge-pill {
34
+ padding-right: $badge-pill-padding-x;
35
+ padding-left: $badge-pill-padding-x;
36
+ @include border-radius($badge-pill-border-radius);
37
+ }
38
+
39
+ // Colors
40
+ //
41
+ // Contextual variations (linked badges get darker on :hover).
42
+
43
+ @each $color, $value in $theme-colors {
44
+ .badge-#{$color} {
45
+ @include badge-variant($value);
46
+ }
47
+ }
@@ -0,0 +1,38 @@
1
+ .breadcrumb {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ padding: $breadcrumb-padding-y $breadcrumb-padding-x;
5
+ margin-bottom: $breadcrumb-margin-bottom;
6
+ list-style: none;
7
+ background-color: $breadcrumb-bg;
8
+ @include border-radius($border-radius);
9
+ }
10
+
11
+ .breadcrumb-item {
12
+ // The separator between breadcrumbs (by default, a forward-slash: "/")
13
+ + .breadcrumb-item::before {
14
+ display: inline-block; // Suppress underlining of the separator in modern browsers
15
+ padding-right: $breadcrumb-item-padding;
16
+ padding-left: $breadcrumb-item-padding;
17
+ color: $breadcrumb-divider-color;
18
+ content: "#{$breadcrumb-divider}";
19
+ }
20
+
21
+ // IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
22
+ // without `<ul>`s. The `::before` pseudo-element generates an element
23
+ // *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
24
+ //
25
+ // To trick IE into suppressing the underline, we give the pseudo-element an
26
+ // underline and then immediately remove it.
27
+ + .breadcrumb-item:hover::before {
28
+ text-decoration: underline;
29
+ }
30
+ // stylelint-disable-next-line no-duplicate-selectors
31
+ + .breadcrumb-item:hover::before {
32
+ text-decoration: none;
33
+ }
34
+
35
+ &.active {
36
+ color: $breadcrumb-active-color;
37
+ }
38
+ }
@@ -0,0 +1,166 @@
1
+ // stylelint-disable selector-no-qualifying-type
2
+
3
+ // Make the div behave like a button
4
+ .btn-group,
5
+ .btn-group-vertical {
6
+ position: relative;
7
+ display: inline-flex;
8
+ vertical-align: middle; // match .btn alignment given font-size hack above
9
+
10
+ > .btn {
11
+ position: relative;
12
+ flex: 0 1 auto;
13
+
14
+ // Bring the hover, focused, and "active" buttons to the front to overlay
15
+ // the borders properly
16
+ @include hover {
17
+ z-index: 1;
18
+ }
19
+ &:focus,
20
+ &:active,
21
+ &.active {
22
+ z-index: 1;
23
+ }
24
+ }
25
+
26
+ // Prevent double borders when buttons are next to each other
27
+ .btn + .btn,
28
+ .btn + .btn-group,
29
+ .btn-group + .btn,
30
+ .btn-group + .btn-group {
31
+ margin-left: -$btn-border-width;
32
+ }
33
+ }
34
+
35
+ // Optional: Group multiple button groups together for a toolbar
36
+ .btn-toolbar {
37
+ display: flex;
38
+ flex-wrap: wrap;
39
+ justify-content: flex-start;
40
+
41
+ .input-group {
42
+ width: auto;
43
+ }
44
+ }
45
+
46
+ .btn-group {
47
+ > .btn:first-child {
48
+ margin-left: 0;
49
+ }
50
+
51
+ // Reset rounded corners
52
+ > .btn:not(:last-child):not(.dropdown-toggle),
53
+ > .btn-group:not(:last-child) > .btn {
54
+ @include border-right-radius(0);
55
+ }
56
+
57
+ > .btn:not(:first-child),
58
+ > .btn-group:not(:first-child) > .btn {
59
+ @include border-left-radius(0);
60
+ }
61
+ }
62
+
63
+ // Sizing
64
+ //
65
+ // Remix the default button sizing classes into new ones for easier manipulation.
66
+
67
+ .btn-group-sm > .btn { @extend .btn-sm; }
68
+ .btn-group-lg > .btn { @extend .btn-lg; }
69
+
70
+
71
+ //
72
+ // Split button dropdowns
73
+ //
74
+
75
+ .dropdown-toggle-split {
76
+ padding-right: $btn-padding-x * .75;
77
+ padding-left: $btn-padding-x * .75;
78
+
79
+ &::after {
80
+ margin-left: 0;
81
+ }
82
+ }
83
+
84
+ .btn-sm + .dropdown-toggle-split {
85
+ padding-right: $btn-padding-x-sm * .75;
86
+ padding-left: $btn-padding-x-sm * .75;
87
+ }
88
+
89
+ .btn-lg + .dropdown-toggle-split {
90
+ padding-right: $btn-padding-x-lg * .75;
91
+ padding-left: $btn-padding-x-lg * .75;
92
+ }
93
+
94
+
95
+ // The clickable button for toggling the menu
96
+ // Set the same inset shadow as the :active state
97
+ .btn-group.show .dropdown-toggle {
98
+ @include box-shadow($btn-active-box-shadow);
99
+
100
+ // Show no shadow for `.btn-link` since it has no other button styles.
101
+ &.btn-link {
102
+ @include box-shadow(none);
103
+ }
104
+ }
105
+
106
+
107
+ //
108
+ // Vertical button groups
109
+ //
110
+
111
+ .btn-group-vertical {
112
+ flex-direction: column;
113
+ align-items: flex-start;
114
+ justify-content: center;
115
+
116
+ .btn,
117
+ .btn-group {
118
+ width: 100%;
119
+ }
120
+
121
+ > .btn + .btn,
122
+ > .btn + .btn-group,
123
+ > .btn-group + .btn,
124
+ > .btn-group + .btn-group {
125
+ margin-top: -$btn-border-width;
126
+ margin-left: 0;
127
+ }
128
+
129
+ // Reset rounded corners
130
+ > .btn:not(:last-child):not(.dropdown-toggle),
131
+ > .btn-group:not(:last-child) > .btn {
132
+ @include border-bottom-radius(0);
133
+ }
134
+
135
+ > .btn:not(:first-child),
136
+ > .btn-group:not(:first-child) > .btn {
137
+ @include border-top-radius(0);
138
+ }
139
+ }
140
+
141
+
142
+ // Checkbox and radio options
143
+ //
144
+ // In order to support the browser's form validation feedback, powered by the
145
+ // `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
146
+ // `display: none;` or `visibility: hidden;` as that also hides the popover.
147
+ // Simply visually hiding the inputs via `opacity` would leave them clickable in
148
+ // certain cases which is prevented by using `clip` and `pointer-events`.
149
+ // This way, we ensure a DOM element is visible to position the popover from.
150
+ //
151
+ // See https://github.com/twbs/bootstrap/pull/12794 and
152
+ // https://github.com/twbs/bootstrap/pull/14559 for more information.
153
+
154
+ .btn-group-toggle {
155
+ > .btn,
156
+ > .btn-group > .btn {
157
+ margin-bottom: 0; // Override default `<label>` value
158
+
159
+ input[type="radio"],
160
+ input[type="checkbox"] {
161
+ position: absolute;
162
+ clip: rect(0, 0, 0, 0);
163
+ pointer-events: none;
164
+ }
165
+ }
166
+ }