@ms-cloudpack/overlay 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +39 -1
- package/CHANGELOG.md +18 -2
- package/dist/lib/index.js +184 -144
- package/dist/ori-input.json +21 -4
- package/dist/ori-output.json +2 -2
- package/lib/components/CloudpackProvider/createCloudpackClient.d.ts +3 -1
- package/lib/components/CloudpackProvider/createCloudpackClient.js +11 -3
- package/lib/components/CloudpackProvider/createCloudpackClient.js.map +1 -1
- package/lib/components/CloudpackProvider/useStatusDetails.d.ts +1 -0
- package/lib/components/CloudpackProvider/useStatusDetails.js.map +1 -1
- package/lib/components/Dialog/Dialog.d.ts +1 -1
- package/lib/components/Dialog/Dialog.js +1 -1
- package/lib/components/Dialog/Dialog.js.map +1 -1
- package/lib/components/ErrorDialog/ErrorDialog.js +4 -2
- package/lib/components/ErrorDialog/ErrorDialog.js.map +1 -1
- package/lib/components/ErrorDialog/PathError.js +17 -8
- package/lib/components/ErrorDialog/PathError.js.map +1 -1
- package/lib/components/StatusDialog/StatusDialog.js +5 -3
- package/lib/components/StatusDialog/StatusDialog.js.map +1 -1
- package/lib/components/StatusDialog/TaskStatus.js +23 -16
- package/lib/components/StatusDialog/TaskStatus.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +3 -3
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,45 @@
|
|
|
2
2
|
"name": "@ms-cloudpack/overlay",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 03 Nov 2022 08:12:55 GMT",
|
|
6
|
+
"tag": "@ms-cloudpack/overlay_v0.9.0",
|
|
7
|
+
"version": "0.9.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "dake.3601@gmail.com",
|
|
12
|
+
"package": "@ms-cloudpack/overlay",
|
|
13
|
+
"commit": "ccf5c6c773b1e05894bdd50927a80d7ae6c6d602",
|
|
14
|
+
"comment": "Added button to open config file and to apply overrides."
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 02 Nov 2022 08:11:20 GMT",
|
|
21
|
+
"tag": "@ms-cloudpack/overlay_v0.8.0",
|
|
22
|
+
"version": "0.8.0",
|
|
23
|
+
"comments": {
|
|
24
|
+
"minor": [
|
|
25
|
+
{
|
|
26
|
+
"author": "dake.3601@gmail.com",
|
|
27
|
+
"package": "@ms-cloudpack/overlay",
|
|
28
|
+
"commit": "8b827ce121b41d9f5ead1e290ae524ddd9e315a3",
|
|
29
|
+
"comment": "Restart task button"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"none": [
|
|
33
|
+
{
|
|
34
|
+
"author": "email not defined",
|
|
35
|
+
"package": "@ms-cloudpack/overlay",
|
|
36
|
+
"commit": "7643041fec2e5b6b30d1f8a4f22f6caa9d4abc58",
|
|
37
|
+
"comment": "Update react monorepo"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"date": "Wed, 19 Oct 2022 08:16:31 GMT",
|
|
6
44
|
"tag": "@ms-cloudpack/overlay_v0.7.0",
|
|
7
45
|
"version": "0.7.0",
|
|
8
46
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,28 @@
|
|
|
1
1
|
# Change Log - @ms-cloudpack/overlay
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 03 Nov 2022 08:12:55 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.9.0
|
|
8
|
+
|
|
9
|
+
Thu, 03 Nov 2022 08:12:55 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Added button to open config file and to apply overrides. (dake.3601@gmail.com)
|
|
14
|
+
|
|
15
|
+
## 0.8.0
|
|
16
|
+
|
|
17
|
+
Wed, 02 Nov 2022 08:11:20 GMT
|
|
18
|
+
|
|
19
|
+
### Minor changes
|
|
20
|
+
|
|
21
|
+
- Restart task button (dake.3601@gmail.com)
|
|
22
|
+
|
|
7
23
|
## 0.7.0
|
|
8
24
|
|
|
9
|
-
Wed, 19 Oct 2022 08:16:
|
|
25
|
+
Wed, 19 Oct 2022 08:16:31 GMT
|
|
10
26
|
|
|
11
27
|
### Minor changes
|
|
12
28
|
|
package/dist/lib/index.js
CHANGED
|
@@ -111,8 +111,14 @@ function createCloudpackClient() {
|
|
|
111
111
|
function open(options) {
|
|
112
112
|
sendMessage("open", options);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
sendMessage("
|
|
114
|
+
function editConfig() {
|
|
115
|
+
sendMessage("editConfig", {});
|
|
116
|
+
}
|
|
117
|
+
function restartAllTasks() {
|
|
118
|
+
sendMessage("restartAllTasks", {});
|
|
119
|
+
}
|
|
120
|
+
function restartTask(id) {
|
|
121
|
+
sendMessage("restartTask", { id });
|
|
116
122
|
}
|
|
117
123
|
openConnection();
|
|
118
124
|
return {
|
|
@@ -121,7 +127,9 @@ function createCloudpackClient() {
|
|
|
121
127
|
open,
|
|
122
128
|
openSource,
|
|
123
129
|
subscribe,
|
|
124
|
-
|
|
130
|
+
editConfig,
|
|
131
|
+
restartTask,
|
|
132
|
+
restartAllTasks
|
|
125
133
|
};
|
|
126
134
|
}
|
|
127
135
|
|
|
@@ -417,10 +425,10 @@ function getStatsString(status) {
|
|
|
417
425
|
import React8 from "react";
|
|
418
426
|
|
|
419
427
|
// src/components/StatusDialog/TaskList.tsx
|
|
420
|
-
import
|
|
428
|
+
import React6 from "react";
|
|
421
429
|
|
|
422
430
|
// src/components/StatusDialog/TaskStatus.tsx
|
|
423
|
-
import
|
|
431
|
+
import React5 from "react";
|
|
424
432
|
|
|
425
433
|
// src/components/StatusDialog/TaskResultItem.tsx
|
|
426
434
|
import React3 from "react";
|
|
@@ -550,6 +558,16 @@ var compiledModule3 = `.vweafQQjU-TaskStatusmodulecssroot {
|
|
|
550
558
|
line-height: 1;
|
|
551
559
|
}
|
|
552
560
|
|
|
561
|
+
.vweafQQjU-TaskStatusmodulecsscommands {
|
|
562
|
+
display: flex;
|
|
563
|
+
flex-direction: row;
|
|
564
|
+
gap: 8px;
|
|
565
|
+
align-items: center;
|
|
566
|
+
flex-shrink: 0;
|
|
567
|
+
height: 40px;
|
|
568
|
+
padding: 0 16px;
|
|
569
|
+
}
|
|
570
|
+
|
|
553
571
|
.vweafQQjU-TaskStatusmodulecssexpandButton {
|
|
554
572
|
background: transparent;
|
|
555
573
|
border: none;
|
|
@@ -664,6 +682,7 @@ s3.setAttribute("data-sourceFile", "src/components/StatusDialog/TaskStatus.modul
|
|
|
664
682
|
s3.appendChild(document.createTextNode(compiledModule3));
|
|
665
683
|
document.head.appendChild(s3);
|
|
666
684
|
var collapsed = "vweafQQjU-TaskStatusmodulecsscollapsed";
|
|
685
|
+
var commands = "vweafQQjU-TaskStatusmodulecsscommands";
|
|
667
686
|
var content2 = "vweafQQjU-TaskStatusmodulecsscontent";
|
|
668
687
|
var error2 = "vweafQQjU-TaskStatusmodulecsserror";
|
|
669
688
|
var expandButton = "vweafQQjU-TaskStatusmodulecssexpandButton";
|
|
@@ -679,7 +698,7 @@ var success2 = "vweafQQjU-TaskStatusmodulecsssuccess";
|
|
|
679
698
|
var title = "vweafQQjU-TaskStatusmodulecsstitle";
|
|
680
699
|
var value2 = "vweafQQjU-TaskStatusmodulecssvalue";
|
|
681
700
|
var warning2 = "vweafQQjU-TaskStatusmodulecsswarning";
|
|
682
|
-
var TaskStatus_module_default = { collapsed, content: content2, error: error2, expandButton, expandIcon, farArea, header, linkButton, name, resultItems, root: root2, subTitle, success: success2, title, value: value2, warning: warning2 };
|
|
701
|
+
var TaskStatus_module_default = { collapsed, commands, content: content2, error: error2, expandButton, expandIcon, farArea, header, linkButton, name, resultItems, root: root2, subTitle, success: success2, title, value: value2, warning: warning2 };
|
|
683
702
|
|
|
684
703
|
// src/components/StatusDialog/TaskStatus.tsx
|
|
685
704
|
import { default as cx2 } from "classnames";
|
|
@@ -693,6 +712,93 @@ var success_24_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiI
|
|
|
693
712
|
// src/images/chevrondown-20.inline.svg
|
|
694
713
|
var chevrondown_20_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1Ljc5NCA3LjczMjcxQzE2LjA3OTcgOC4wMzI2MyAxNi4wNjgxIDguNTA3MzcgMTUuNzY4MiA4Ljc5MzA2TDEwLjUxNzggMTMuNzk0NEMxMC4yMjgxIDE0LjA3MDMgOS43NzI4NSAxNC4wNzAzIDkuNDgzMTggMTMuNzk0NEw0LjIzMjcxIDguNzkzMDZDMy45MzI3OSA4LjUwNzM3IDMuOTIxMjUgOC4wMzI2MyA0LjIwNjk0IDcuNzMyNzFDNC40OTI2NCA3LjQzMjc5IDQuOTY3MzcgNy40MjEyNSA1LjI2NzI5IDcuNzA2OTRMMTAuMDAwNSAxMi4yMTU1TDE0LjczMzYgNy43MDY5NEMxNS4wMzM2IDcuNDIxMjUgMTUuNTA4MyA3LjQzMjc5IDE1Ljc5NCA3LjczMjcxWiIgZmlsbD0iIzIxMjEyMSIvPgo8L3N2Zz4K";
|
|
695
714
|
|
|
715
|
+
// src/components/Button/Button.tsx
|
|
716
|
+
import React4 from "react";
|
|
717
|
+
|
|
718
|
+
// src/components/Button/Button.module.css
|
|
719
|
+
var compiledModule4 = `.CCnBgacfaMc-ButtonmodulecssstandardButton {
|
|
720
|
+
outline: transparent;
|
|
721
|
+
position: relative;
|
|
722
|
+
font-family: inherit;
|
|
723
|
+
font-size: 14px;
|
|
724
|
+
font-weight: 600;
|
|
725
|
+
box-sizing: border-box;
|
|
726
|
+
border: 1px solid rgb(138, 136, 134);
|
|
727
|
+
display: inline-block;
|
|
728
|
+
text-decoration: none;
|
|
729
|
+
text-align: center;
|
|
730
|
+
cursor: pointer;
|
|
731
|
+
padding: 0px 16px;
|
|
732
|
+
border-radius: 2px;
|
|
733
|
+
min-width: 80px;
|
|
734
|
+
height: 32px;
|
|
735
|
+
background-color: rgb(255, 255, 255);
|
|
736
|
+
color: rgb(50, 49, 48);
|
|
737
|
+
user-select: none;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.CCnBgacfaMc-ButtonmodulecssstandardButton:active {
|
|
741
|
+
background-color: rgb(237, 235, 233);
|
|
742
|
+
color: rgb(32, 31, 30);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.CCnBgacfaMc-ButtonmodulecssstandardButton:hover {
|
|
746
|
+
background-color: rgb(243, 242, 241);
|
|
747
|
+
color: rgb(32, 31, 30);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.CCnBgacfaMc-ButtonmodulecssprimaryButton {
|
|
751
|
+
outline: transparent;
|
|
752
|
+
position: relative;
|
|
753
|
+
font-family: inherit;
|
|
754
|
+
font-size: 14px;
|
|
755
|
+
font-weight: 600;
|
|
756
|
+
box-sizing: border-box;
|
|
757
|
+
border: 1px solid rgb(0, 120, 212);
|
|
758
|
+
display: inline-block;
|
|
759
|
+
text-decoration: none;
|
|
760
|
+
text-align: center;
|
|
761
|
+
cursor: pointer;
|
|
762
|
+
padding: 0px 16px;
|
|
763
|
+
border-radius: 2px;
|
|
764
|
+
min-width: 80px;
|
|
765
|
+
height: 32px;
|
|
766
|
+
background-color: rgb(0, 120, 212);
|
|
767
|
+
color: rgb(255, 255, 255);
|
|
768
|
+
user-select: none;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
.CCnBgacfaMc-ButtonmodulecssprimaryButton:active {
|
|
772
|
+
background-color: rgb(0, 90, 158);
|
|
773
|
+
border: 1px solid rgb(0, 90, 158);
|
|
774
|
+
color: rgb(255, 255, 255);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.CCnBgacfaMc-ButtonmodulecssprimaryButton:hover {
|
|
778
|
+
background-color: rgb(16, 110, 190);
|
|
779
|
+
border: 1px solid rgb(16, 110, 190);
|
|
780
|
+
color: rgb(255, 255, 255);
|
|
781
|
+
}
|
|
782
|
+
`;
|
|
783
|
+
var s4 = document.createElement("style");
|
|
784
|
+
s4.setAttribute("data-sourceFile", "src/components/Button/Button.module.css");
|
|
785
|
+
s4.appendChild(document.createTextNode(compiledModule4));
|
|
786
|
+
document.head.appendChild(s4);
|
|
787
|
+
var primaryButton = "CCnBgacfaMc-ButtonmodulecssprimaryButton";
|
|
788
|
+
var standardButton = "CCnBgacfaMc-ButtonmodulecssstandardButton";
|
|
789
|
+
var Button_module_default = { primaryButton, standardButton };
|
|
790
|
+
|
|
791
|
+
// src/components/Button/Button.tsx
|
|
792
|
+
function Button(props) {
|
|
793
|
+
const { primary, ...other } = props;
|
|
794
|
+
const className = primary ? Button_module_default.primaryButton : Button_module_default.standardButton;
|
|
795
|
+
return /* @__PURE__ */ React4.createElement("button", {
|
|
796
|
+
...other,
|
|
797
|
+
className,
|
|
798
|
+
type: "button"
|
|
799
|
+
});
|
|
800
|
+
}
|
|
801
|
+
|
|
696
802
|
// src/components/StatusDialog/TaskStatus.tsx
|
|
697
803
|
function getCompletion(task) {
|
|
698
804
|
if (task.status === "pending") {
|
|
@@ -705,7 +811,7 @@ function getCompletion(task) {
|
|
|
705
811
|
].filter(Boolean).join(", ");
|
|
706
812
|
}
|
|
707
813
|
function TaskStatus({ task }) {
|
|
708
|
-
const [isOpen, setIsOpen] =
|
|
814
|
+
const [isOpen, setIsOpen] = React5.useState(void 0);
|
|
709
815
|
const { name: name2, warnings, errors } = task;
|
|
710
816
|
const cloudpack = useCloudpack();
|
|
711
817
|
const showContent = isOpen === true || isOpen === void 0 && task.errors?.length > 0;
|
|
@@ -722,71 +828,78 @@ function TaskStatus({ task }) {
|
|
|
722
828
|
column: 0
|
|
723
829
|
});
|
|
724
830
|
};
|
|
725
|
-
|
|
831
|
+
const restartTask = (id) => {
|
|
832
|
+
cloudpack.restartTask(id);
|
|
833
|
+
};
|
|
834
|
+
return /* @__PURE__ */ React5.createElement("div", {
|
|
726
835
|
className: TaskStatus_module_default.root
|
|
727
|
-
}, /* @__PURE__ */
|
|
836
|
+
}, /* @__PURE__ */ React5.createElement("div", {
|
|
728
837
|
className: getHeaderClassName(task)
|
|
729
|
-
}, /* @__PURE__ */
|
|
838
|
+
}, /* @__PURE__ */ React5.createElement("button", {
|
|
730
839
|
className: TaskStatus_module_default.expandButton,
|
|
731
840
|
onClick: () => setIsOpen(!showContent)
|
|
732
|
-
}, /* @__PURE__ */
|
|
841
|
+
}, /* @__PURE__ */ React5.createElement("img", {
|
|
733
842
|
className: cx2(TaskStatus_module_default.expandIcon, !showContent && TaskStatus_module_default.collapsed),
|
|
734
843
|
src: chevrondown_20_inline_default,
|
|
735
844
|
alt: ""
|
|
736
|
-
})), errors?.length === 0 && warnings?.length === 0 && /* @__PURE__ */
|
|
845
|
+
})), errors?.length === 0 && warnings?.length === 0 && /* @__PURE__ */ React5.createElement("img", {
|
|
737
846
|
className: TaskStatus_module_default.errorIcon,
|
|
738
847
|
src: success_24_inline_default,
|
|
739
848
|
alt: ""
|
|
740
|
-
}), errors?.length > 0 && /* @__PURE__ */
|
|
849
|
+
}), errors?.length > 0 && /* @__PURE__ */ React5.createElement("img", {
|
|
741
850
|
className: TaskStatus_module_default.errorIcon,
|
|
742
851
|
src: error_24_inline_default,
|
|
743
852
|
alt: ""
|
|
744
|
-
}), /* @__PURE__ */
|
|
853
|
+
}), /* @__PURE__ */ React5.createElement("div", {
|
|
745
854
|
className: TaskStatus_module_default.title
|
|
746
|
-
}, name2), /* @__PURE__ */
|
|
855
|
+
}, name2), /* @__PURE__ */ React5.createElement("div", {
|
|
747
856
|
className: TaskStatus_module_default.farArea
|
|
748
|
-
}, getCompletion(task))), showContent && /* @__PURE__ */
|
|
857
|
+
}, getCompletion(task))), showContent && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", {
|
|
858
|
+
className: TaskStatus_module_default.commands
|
|
859
|
+
}, /* @__PURE__ */ React5.createElement(Button, {
|
|
860
|
+
onClick: () => restartTask(task.id)
|
|
861
|
+
}, "Restart task")), /* @__PURE__ */ React5.createElement("div", {
|
|
749
862
|
className: TaskStatus_module_default.content
|
|
750
|
-
}, /* @__PURE__ */
|
|
863
|
+
}, /* @__PURE__ */ React5.createElement("div", {
|
|
751
864
|
className: TaskStatus_module_default.title
|
|
752
|
-
}, "Details"), /* @__PURE__ */
|
|
865
|
+
}, "Details"), /* @__PURE__ */ React5.createElement("div", {
|
|
753
866
|
className: TaskStatus_module_default.nameValueArea
|
|
754
|
-
}, /* @__PURE__ */
|
|
867
|
+
}, /* @__PURE__ */ React5.createElement("div", {
|
|
755
868
|
className: TaskStatus_module_default.name
|
|
756
|
-
}, "Input path"), /* @__PURE__ */
|
|
869
|
+
}, "Input path"), /* @__PURE__ */ React5.createElement("div", {
|
|
757
870
|
className: TaskStatus_module_default.value
|
|
758
|
-
}, /* @__PURE__ */
|
|
871
|
+
}, /* @__PURE__ */ React5.createElement("button", {
|
|
759
872
|
className: TaskStatus_module_default.linkButton,
|
|
760
873
|
onClick: () => open(task.inputPath)
|
|
761
|
-
}, task.inputPath), /* @__PURE__ */
|
|
874
|
+
}, task.inputPath), /* @__PURE__ */ React5.createElement("button", {
|
|
762
875
|
className: TaskStatus_module_default.linkButton,
|
|
763
876
|
onClick: openPackage
|
|
764
|
-
}, "(Package.json)"))), /* @__PURE__ */
|
|
877
|
+
}, "(Package.json)"))), /* @__PURE__ */ React5.createElement("div", {
|
|
765
878
|
className: TaskStatus_module_default.nameValueArea
|
|
766
|
-
}, /* @__PURE__ */
|
|
879
|
+
}, /* @__PURE__ */ React5.createElement("div", {
|
|
767
880
|
className: TaskStatus_module_default.name
|
|
768
|
-
}, "Output path"), /* @__PURE__ */
|
|
881
|
+
}, "Output path"), /* @__PURE__ */ React5.createElement("button", {
|
|
769
882
|
className: TaskStatus_module_default.linkButton,
|
|
770
883
|
onClick: () => open(task.outputPath)
|
|
771
|
-
}, task.outputPath)), errors?.length > 0 && /* @__PURE__ */
|
|
884
|
+
}, task.outputPath)), errors?.length > 0 && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", {
|
|
772
885
|
className: TaskStatus_module_default.title
|
|
773
|
-
}, "Errors"), /* @__PURE__ */
|
|
886
|
+
}, "Errors"), /* @__PURE__ */ React5.createElement("div", {
|
|
774
887
|
className: TaskStatus_module_default.resultItems
|
|
775
|
-
}, errors.map((error3, index) => /* @__PURE__ */
|
|
888
|
+
}, errors.map((error3, index) => /* @__PURE__ */ React5.createElement(TaskResultItem, {
|
|
776
889
|
key: index,
|
|
777
890
|
item: error3,
|
|
778
891
|
projectPath: task.inputPath,
|
|
779
892
|
index: index + 1
|
|
780
|
-
})))), warnings?.length > 0 && /* @__PURE__ */
|
|
893
|
+
})))), warnings?.length > 0 && /* @__PURE__ */ React5.createElement(React5.Fragment, null, /* @__PURE__ */ React5.createElement("div", {
|
|
781
894
|
className: TaskStatus_module_default.title
|
|
782
|
-
}, "Warnings"), /* @__PURE__ */
|
|
895
|
+
}, "Warnings"), /* @__PURE__ */ React5.createElement("div", {
|
|
783
896
|
className: TaskStatus_module_default.resultItems
|
|
784
|
-
}, warnings.map((warning3, index) => /* @__PURE__ */
|
|
897
|
+
}, warnings.map((warning3, index) => /* @__PURE__ */ React5.createElement(TaskResultItem, {
|
|
785
898
|
key: index,
|
|
786
899
|
item: warning3,
|
|
787
900
|
projectPath: task.inputPath,
|
|
788
901
|
index: index + 1
|
|
789
|
-
}))))));
|
|
902
|
+
})))))));
|
|
790
903
|
}
|
|
791
904
|
function getHeaderClassName(task) {
|
|
792
905
|
return cx2(TaskStatus_module_default.header, {
|
|
@@ -806,7 +919,7 @@ var useStatusDetails = () => {
|
|
|
806
919
|
};
|
|
807
920
|
|
|
808
921
|
// src/components/StatusDialog/TaskList.module.css
|
|
809
|
-
var
|
|
922
|
+
var compiledModule5 = `.lTlVbGXBQHs-TaskListmodulecssroot {
|
|
810
923
|
flex-grow: 1;
|
|
811
924
|
overflow: auto;
|
|
812
925
|
border-top: 1px solid #ccc;
|
|
@@ -817,10 +930,10 @@ var compiledModule4 = `.lTlVbGXBQHs-TaskListmodulecssroot {
|
|
|
817
930
|
gap: 8px;
|
|
818
931
|
}
|
|
819
932
|
`;
|
|
820
|
-
var
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
document.head.appendChild(
|
|
933
|
+
var s5 = document.createElement("style");
|
|
934
|
+
s5.setAttribute("data-sourceFile", "src/components/StatusDialog/TaskList.module.css");
|
|
935
|
+
s5.appendChild(document.createTextNode(compiledModule5));
|
|
936
|
+
document.head.appendChild(s5);
|
|
824
937
|
var root3 = "lTlVbGXBQHs-TaskListmodulecssroot";
|
|
825
938
|
var TaskList_module_default = { root: root3 };
|
|
826
939
|
|
|
@@ -828,9 +941,9 @@ var TaskList_module_default = { root: root3 };
|
|
|
828
941
|
function TaskList() {
|
|
829
942
|
const details = useStatusDetails();
|
|
830
943
|
const tasks = (details.tasks || []).sort(sortTasks);
|
|
831
|
-
return /* @__PURE__ */
|
|
944
|
+
return /* @__PURE__ */ React6.createElement("div", {
|
|
832
945
|
className: TaskList_module_default.root
|
|
833
|
-
}, tasks.map((task, index) => /* @__PURE__ */
|
|
946
|
+
}, tasks.map((task, index) => /* @__PURE__ */ React6.createElement(TaskStatus, {
|
|
834
947
|
key: index,
|
|
835
948
|
task
|
|
836
949
|
})));
|
|
@@ -849,93 +962,6 @@ function sortTasks(a, b) {
|
|
|
849
962
|
return a.name < b.name ? -1 : 1;
|
|
850
963
|
}
|
|
851
964
|
|
|
852
|
-
// src/components/Button/Button.tsx
|
|
853
|
-
import React6 from "react";
|
|
854
|
-
|
|
855
|
-
// src/components/Button/Button.module.css
|
|
856
|
-
var compiledModule5 = `.CCnBgacfaMc-ButtonmodulecssstandardButton {
|
|
857
|
-
outline: transparent;
|
|
858
|
-
position: relative;
|
|
859
|
-
font-family: inherit;
|
|
860
|
-
font-size: 14px;
|
|
861
|
-
font-weight: 600;
|
|
862
|
-
box-sizing: border-box;
|
|
863
|
-
border: 1px solid rgb(138, 136, 134);
|
|
864
|
-
display: inline-block;
|
|
865
|
-
text-decoration: none;
|
|
866
|
-
text-align: center;
|
|
867
|
-
cursor: pointer;
|
|
868
|
-
padding: 0px 16px;
|
|
869
|
-
border-radius: 2px;
|
|
870
|
-
min-width: 80px;
|
|
871
|
-
height: 32px;
|
|
872
|
-
background-color: rgb(255, 255, 255);
|
|
873
|
-
color: rgb(50, 49, 48);
|
|
874
|
-
user-select: none;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
.CCnBgacfaMc-ButtonmodulecssstandardButton:active {
|
|
878
|
-
background-color: rgb(237, 235, 233);
|
|
879
|
-
color: rgb(32, 31, 30);
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
.CCnBgacfaMc-ButtonmodulecssstandardButton:hover {
|
|
883
|
-
background-color: rgb(243, 242, 241);
|
|
884
|
-
color: rgb(32, 31, 30);
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
.CCnBgacfaMc-ButtonmodulecssprimaryButton {
|
|
888
|
-
outline: transparent;
|
|
889
|
-
position: relative;
|
|
890
|
-
font-family: inherit;
|
|
891
|
-
font-size: 14px;
|
|
892
|
-
font-weight: 600;
|
|
893
|
-
box-sizing: border-box;
|
|
894
|
-
border: 1px solid rgb(0, 120, 212);
|
|
895
|
-
display: inline-block;
|
|
896
|
-
text-decoration: none;
|
|
897
|
-
text-align: center;
|
|
898
|
-
cursor: pointer;
|
|
899
|
-
padding: 0px 16px;
|
|
900
|
-
border-radius: 2px;
|
|
901
|
-
min-width: 80px;
|
|
902
|
-
height: 32px;
|
|
903
|
-
background-color: rgb(0, 120, 212);
|
|
904
|
-
color: rgb(255, 255, 255);
|
|
905
|
-
user-select: none;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
.CCnBgacfaMc-ButtonmodulecssprimaryButton:active {
|
|
909
|
-
background-color: rgb(0, 90, 158);
|
|
910
|
-
border: 1px solid rgb(0, 90, 158);
|
|
911
|
-
color: rgb(255, 255, 255);
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
.CCnBgacfaMc-ButtonmodulecssprimaryButton:hover {
|
|
915
|
-
background-color: rgb(16, 110, 190);
|
|
916
|
-
border: 1px solid rgb(16, 110, 190);
|
|
917
|
-
color: rgb(255, 255, 255);
|
|
918
|
-
}
|
|
919
|
-
`;
|
|
920
|
-
var s5 = document.createElement("style");
|
|
921
|
-
s5.setAttribute("data-sourceFile", "src/components/Button/Button.module.css");
|
|
922
|
-
s5.appendChild(document.createTextNode(compiledModule5));
|
|
923
|
-
document.head.appendChild(s5);
|
|
924
|
-
var primaryButton = "CCnBgacfaMc-ButtonmodulecssprimaryButton";
|
|
925
|
-
var standardButton = "CCnBgacfaMc-ButtonmodulecssstandardButton";
|
|
926
|
-
var Button_module_default = { primaryButton, standardButton };
|
|
927
|
-
|
|
928
|
-
// src/components/Button/Button.tsx
|
|
929
|
-
function Button(props) {
|
|
930
|
-
const { primary, ...other } = props;
|
|
931
|
-
const className = primary ? Button_module_default.primaryButton : Button_module_default.standardButton;
|
|
932
|
-
return /* @__PURE__ */ React6.createElement("button", {
|
|
933
|
-
...other,
|
|
934
|
-
className,
|
|
935
|
-
type: "button"
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
|
|
939
965
|
// src/components/Dialog/Dialog.tsx
|
|
940
966
|
import { default as React7, useRef as useRef2 } from "react";
|
|
941
967
|
|
|
@@ -1031,18 +1057,18 @@ s6.setAttribute("data-sourceFile", "src/components/Dialog/Dialog.module.css");
|
|
|
1031
1057
|
s6.appendChild(document.createTextNode(compiledModule6));
|
|
1032
1058
|
document.head.appendChild(s6);
|
|
1033
1059
|
var closeButton = "ggUoTSSSfk-DialogmodulecsscloseButton";
|
|
1034
|
-
var
|
|
1060
|
+
var commands2 = "ggUoTSSSfk-Dialogmodulecsscommands";
|
|
1035
1061
|
var dialog = "ggUoTSSSfk-Dialogmodulecssdialog";
|
|
1036
1062
|
var overlay = "ggUoTSSSfk-Dialogmodulecssoverlay";
|
|
1037
1063
|
var title2 = "ggUoTSSSfk-Dialogmodulecsstitle";
|
|
1038
1064
|
var titleArea2 = "ggUoTSSSfk-DialogmodulecsstitleArea";
|
|
1039
|
-
var Dialog_module_default = { closeButton, commands, dialog, overlay, title: title2, titleArea: titleArea2 };
|
|
1065
|
+
var Dialog_module_default = { closeButton, commands: commands2, dialog, overlay, title: title2, titleArea: titleArea2 };
|
|
1040
1066
|
|
|
1041
1067
|
// src/images/dismiss-16-filled.inline.svg
|
|
1042
1068
|
var dismiss_16_filled_inline_default = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMzk3MDUgMi41NTM3OUwyLjQ2OTY3IDIuNDY5NjdDMi43MzU5NCAyLjIwMzQgMy4xNTI2IDIuMTc5MiAzLjQ0NjIxIDIuMzk3MDVMMy41MzAzMyAyLjQ2OTY3TDggNi45MzlMMTIuNDY5NyAyLjQ2OTY3QzEyLjc2MjYgMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTMuNTMwMyAyLjQ2OTY3QzEzLjgyMzIgMi43NjI1NiAxMy44MjMyIDMuMjM3NDQgMTMuNTMwMyAzLjUzMDMzTDkuMDYxIDhMMTMuNTMwMyAxMi40Njk3QzEzLjc5NjYgMTIuNzM1OSAxMy44MjA4IDEzLjE1MjYgMTMuNjAyOSAxMy40NDYyTDEzLjUzMDMgMTMuNTMwM0MxMy4yNjQxIDEzLjc5NjYgMTIuODQ3NCAxMy44MjA4IDEyLjU1MzggMTMuNjAyOUwxMi40Njk3IDEzLjUzMDNMOCA5LjA2MUwzLjUzMDMzIDEzLjUzMDNDMy4yMzc0NCAxMy44MjMyIDIuNzYyNTYgMTMuODIzMiAyLjQ2OTY3IDEzLjUzMDNDMi4xNzY3OCAxMy4yMzc0IDIuMTc2NzggMTIuNzYyNiAyLjQ2OTY3IDEyLjQ2OTdMNi45MzkgOEwyLjQ2OTY3IDMuNTMwMzNDMi4yMDM0IDMuMjY0MDYgMi4xNzkyIDIuODQ3NCAyLjM5NzA1IDIuNTUzNzlMMi40Njk2NyAyLjQ2OTY3TDIuMzk3MDUgMi41NTM3OVoiIGZpbGw9IiMyMTIxMjEiLz4KPC9zdmc+Cg==";
|
|
1043
1069
|
|
|
1044
1070
|
// src/components/Dialog/Dialog.tsx
|
|
1045
|
-
function Dialog({ title: title3, style, draggable, onClose, commands:
|
|
1071
|
+
function Dialog({ title: title3, style, draggable, onClose, commands: commands3, children }) {
|
|
1046
1072
|
const draggableRef = useRef2(null);
|
|
1047
1073
|
const draggableTargetRef = useRef2(null);
|
|
1048
1074
|
const colorAccent = style === "error" ? "rgb(164, 38, 44)" : void 0;
|
|
@@ -1066,25 +1092,28 @@ function Dialog({ title: title3, style, draggable, onClose, commands: commands2,
|
|
|
1066
1092
|
}, /* @__PURE__ */ React7.createElement("img", {
|
|
1067
1093
|
src: dismiss_16_filled_inline_default,
|
|
1068
1094
|
alt: ""
|
|
1069
|
-
}))), !!
|
|
1095
|
+
}))), !!commands3 && /* @__PURE__ */ React7.createElement("div", {
|
|
1070
1096
|
className: Dialog_module_default.commands
|
|
1071
|
-
},
|
|
1097
|
+
}, ...commands3), children));
|
|
1072
1098
|
}
|
|
1073
1099
|
|
|
1074
1100
|
// src/components/StatusDialog/StatusDialog.tsx
|
|
1075
1101
|
function StatusDialog({ onClose }) {
|
|
1076
1102
|
const cloudpack = useCloudpack();
|
|
1077
|
-
const
|
|
1078
|
-
cloudpack.
|
|
1103
|
+
const restartAllTasks = () => {
|
|
1104
|
+
cloudpack.restartAllTasks();
|
|
1079
1105
|
};
|
|
1080
1106
|
return /* @__PURE__ */ React8.createElement(Dialog, {
|
|
1081
1107
|
title: "Task results",
|
|
1082
1108
|
draggable: true,
|
|
1083
1109
|
onClose,
|
|
1084
|
-
commands:
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1110
|
+
commands: [
|
|
1111
|
+
/* @__PURE__ */ React8.createElement(Button, {
|
|
1112
|
+
primary: true,
|
|
1113
|
+
onClick: restartAllTasks,
|
|
1114
|
+
key: "1"
|
|
1115
|
+
}, "Restart all tasks")
|
|
1116
|
+
]
|
|
1088
1117
|
}, /* @__PURE__ */ React8.createElement(TaskList, null));
|
|
1089
1118
|
}
|
|
1090
1119
|
|
|
@@ -1097,6 +1126,10 @@ import { default as cx3 } from "classnames";
|
|
|
1097
1126
|
function PathError(props) {
|
|
1098
1127
|
const [showContent, setshowContent] = React9.useState(false);
|
|
1099
1128
|
const { packageName, importPath } = props;
|
|
1129
|
+
const cloudpack = useCloudpack();
|
|
1130
|
+
const editConfig = () => {
|
|
1131
|
+
cloudpack.editConfig();
|
|
1132
|
+
};
|
|
1100
1133
|
return /* @__PURE__ */ React9.createElement("div", {
|
|
1101
1134
|
className: TaskStatus_module_default.root
|
|
1102
1135
|
}, /* @__PURE__ */ React9.createElement("div", {
|
|
@@ -1114,7 +1147,11 @@ function PathError(props) {
|
|
|
1114
1147
|
alt: ""
|
|
1115
1148
|
}), /* @__PURE__ */ React9.createElement("div", {
|
|
1116
1149
|
className: TaskStatus_module_default.title
|
|
1117
|
-
}, `${packageName}/${importPath}`)), showContent && /* @__PURE__ */ React9.createElement("div", {
|
|
1150
|
+
}, `${packageName}/${importPath}`)), showContent && /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement("div", {
|
|
1151
|
+
className: TaskStatus_module_default.commands
|
|
1152
|
+
}, /* @__PURE__ */ React9.createElement(Button, {
|
|
1153
|
+
onClick: editConfig
|
|
1154
|
+
}, "Add override manually")), /* @__PURE__ */ React9.createElement("div", {
|
|
1118
1155
|
className: TaskStatus_module_default.content
|
|
1119
1156
|
}, /* @__PURE__ */ React9.createElement("div", {
|
|
1120
1157
|
className: TaskStatus_module_default.title
|
|
@@ -1130,22 +1167,25 @@ function PathError(props) {
|
|
|
1130
1167
|
className: TaskStatus_module_default.name
|
|
1131
1168
|
}, "Solution"), /* @__PURE__ */ React9.createElement("div", {
|
|
1132
1169
|
className: TaskStatus_module_default.value
|
|
1133
|
-
}, `Remove the path from the import in your source. (Import from "${packageName}" rather than "${packageName}/${importPath}")`))));
|
|
1170
|
+
}, `Remove the path from the import in your source. (Import from "${packageName}" rather than "${packageName}/${importPath}")`)))));
|
|
1134
1171
|
}
|
|
1135
1172
|
|
|
1136
1173
|
// src/components/ErrorDialog/ErrorDialog.tsx
|
|
1137
1174
|
function ErrorDialog({ unsupported }) {
|
|
1138
1175
|
const cloudpack = useCloudpack();
|
|
1139
1176
|
const reload = () => {
|
|
1140
|
-
cloudpack.
|
|
1177
|
+
cloudpack.restartAllTasks();
|
|
1141
1178
|
};
|
|
1142
1179
|
return /* @__PURE__ */ React10.createElement(Dialog, {
|
|
1143
1180
|
title: "Found unsupported paths in your project",
|
|
1144
1181
|
style: "error",
|
|
1145
|
-
commands:
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1182
|
+
commands: [
|
|
1183
|
+
/* @__PURE__ */ React10.createElement(Button, {
|
|
1184
|
+
primary: true,
|
|
1185
|
+
onClick: reload,
|
|
1186
|
+
key: "1"
|
|
1187
|
+
}, "Restart all tasks")
|
|
1188
|
+
]
|
|
1149
1189
|
}, /* @__PURE__ */ React10.createElement("div", {
|
|
1150
1190
|
className: TaskList_module_default.root
|
|
1151
1191
|
}, unsupported.map((data, index) => /* @__PURE__ */ React10.createElement(PathError, {
|
package/dist/ori-input.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"absWorkingDir": "/home/runner/work/cloudpack/cloudpack/packages/overlay",
|
|
3
|
-
"outbase": "lib",
|
|
4
|
-
"outdir": "/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/lib",
|
|
5
3
|
"entryPoints": {
|
|
6
|
-
"index": "./src/index.tsx"
|
|
4
|
+
"./lib/index": "./src/index.tsx"
|
|
7
5
|
},
|
|
6
|
+
"outdir": "/home/runner/work/cloudpack/cloudpack/packages/overlay/dist",
|
|
8
7
|
"external": [
|
|
9
8
|
"@ms-cloudpack/data-bus",
|
|
10
9
|
"@ms-cloudpack/path-string-parsing",
|
|
@@ -22,5 +21,23 @@
|
|
|
22
21
|
"global": "window",
|
|
23
22
|
"process.env.NODE_ENV": "\"dev\""
|
|
24
23
|
},
|
|
25
|
-
"
|
|
24
|
+
"plugins": [
|
|
25
|
+
{
|
|
26
|
+
"plugin": "css-modules",
|
|
27
|
+
"options": {
|
|
28
|
+
"prefixClasses": false
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"plugin": "sass",
|
|
33
|
+
"options": {
|
|
34
|
+
"prefixClasses": false
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"plugin": "dynamic-imports",
|
|
39
|
+
"filter": ".dynamic.(js|mjs|ts|tsx)$"
|
|
40
|
+
},
|
|
41
|
+
"..."
|
|
42
|
+
]
|
|
26
43
|
}
|
package/dist/ori-output.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "buildStatus",
|
|
3
|
-
"buildId": "
|
|
3
|
+
"buildId": "194b90e0-de8a-4e12-ada8-696a64d27a41",
|
|
4
4
|
"buildStatus": "complete",
|
|
5
5
|
"internalError": null,
|
|
6
6
|
"warnings": [],
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"outputFilePaths": [
|
|
9
9
|
"/home/runner/work/cloudpack/cloudpack/packages/overlay/dist/lib/index.js"
|
|
10
10
|
],
|
|
11
|
-
"metafile": "{\n \"inputs\": {\n \"src/components/CloudpackProvider/getCookies.ts\": {\n \"bytes\": 452,\n \"imports\": []\n },\n \"src/components/CloudpackProvider/createCloudpackClient.ts\": {\n \"bytes\": 4064,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/getCookies.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/CloudpackProvider/CloudpackProvider.tsx\": {\n \"bytes\": 552,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/createCloudpackClient.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytes\": 2050,\n \"imports\": []\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytes\": 3405,\n \"imports\": []\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytes\": 866,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/images/open-16-filled.inline.svg\": {\n \"bytes\": 852,\n \"imports\": []\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytes\": 2867,\n \"imports\": [\n {\n \"path\": \"src/hooks/useDraggable.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusBadge/StatusBadge.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatus.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/open-16-filled.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskResultItem.module.css\": {\n \"bytes\": 2067,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskResultItem.tsx\": {\n \"bytes\": 1433,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskResultItem.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskStatus.module.css\": {\n \"bytes\": 3922,\n \"imports\": []\n },\n \"src/images/error-24.inline.svg\": {\n \"bytes\": 1024,\n \"imports\": []\n },\n \"src/images/success-24.inline.svg\": {\n \"bytes\": 562,\n \"imports\": []\n },\n \"src/images/chevrondown-20.inline.svg\": {\n \"bytes\": 450,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytes\": 4225,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskResultItem.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/error-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/success-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/chevrondown-20.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/CloudpackProvider/useStatusDetails.ts\": {\n \"bytes\": 844,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskList.module.css\": {\n \"bytes\": 615,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytes\": 1015,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatusDetails.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskList.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/Button/Button.module.css\": {\n \"bytes\": 2080,\n \"imports\": []\n },\n \"src/components/Button/Button.tsx\": {\n \"bytes\": 360,\n \"imports\": [\n {\n \"path\": \"src/components/Button/Button.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/Dialog/Dialog.module.css\": {\n \"bytes\": 2454,\n \"imports\": []\n },\n \"src/images/dismiss-16-filled.inline.svg\": {\n \"bytes\": 718,\n \"imports\": []\n },\n \"src/components/Dialog/Dialog.tsx\": {\n \"bytes\": 1525,\n \"imports\": [\n {\n \"path\": \"src/components/Dialog/Dialog.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/hooks/useDraggable.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/dismiss-16-filled.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytes\": 721,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskList.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Dialog/Dialog.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytes\": 1799,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/error-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/chevrondown-20.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytes\": 996,\n \"imports\": [\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/PathError.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskList.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Dialog/Dialog.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytes\": 1659,\n \"imports\": []\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytes\": 1437,\n \"imports\": [\n {\n \"path\": \"src/components/StatusBadge/StatusBadge.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/StatusDialog.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatus.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/ErrorDialog.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/useErrorEvents.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ThemeProvider/ThemeProvider.module.css\": {\n \"bytes\": 630,\n \"imports\": []\n },\n \"src/components/ThemeProvider/ThemeProvider.tsx\": {\n \"bytes\": 210,\n \"imports\": [\n {\n \"path\": \"src/components/ThemeProvider/ThemeProvider.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/index.tsx\": {\n \"bytes\": 532,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusOverlay/StatusOverlay.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ThemeProvider/ThemeProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n }\n },\n \"outputs\": {\n \"dist/lib/index.js\": {\n \"imports\": [],\n \"exports\": [],\n \"entryPoint\": \"src/index.tsx\",\n \"inputs\": {\n \"src/index.tsx\": {\n \"bytesInOutput\": 360\n },\n \"src/components/CloudpackProvider/CloudpackProvider.tsx\": {\n \"bytesInOutput\": 372\n },\n \"src/components/CloudpackProvider/getCookies.ts\": {\n \"bytesInOutput\": 317\n },\n \"src/components/CloudpackProvider/createCloudpackClient.ts\": {\n \"bytesInOutput\": 2763\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytesInOutput\": 1076\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytesInOutput\": 3035\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytesInOutput\": 1937\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytesInOutput\": 3118\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytesInOutput\": 448\n },\n \"src/images/open-16-filled.inline.svg\": {\n \"bytesInOutput\": 1202\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytesInOutput\": 484\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytesInOutput\": 750\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytesInOutput\": 4697\n },\n \"src/components/StatusDialog/TaskResultItem.tsx\": {\n \"bytesInOutput\": 1421\n },\n \"src/components/StatusDialog/TaskResultItem.module.css\": {\n \"bytesInOutput\": 1881\n },\n \"src/components/StatusDialog/TaskStatus.module.css\": {\n \"bytesInOutput\": 3651\n },\n \"src/images/error-24.inline.svg\": {\n \"bytesInOutput\": 1428\n },\n \"src/images/success-24.inline.svg\": {\n \"bytesInOutput\": 814\n },\n \"src/images/chevrondown-20.inline.svg\": {\n \"bytesInOutput\": 666\n },\n \"src/components/CloudpackProvider/useStatusDetails.ts\": {\n \"bytesInOutput\": 299\n },\n \"src/components/StatusDialog/TaskList.module.css\": {\n \"bytesInOutput\": 541\n },\n \"src/components/Button/Button.tsx\": {\n \"bytesInOutput\": 312\n },\n \"src/components/Button/Button.module.css\": {\n \"bytesInOutput\": 1942\n },\n \"src/components/Dialog/Dialog.tsx\": {\n \"bytesInOutput\": 1399\n },\n \"src/components/Dialog/Dialog.module.css\": {\n \"bytesInOutput\": 2280\n },\n \"src/images/dismiss-16-filled.inline.svg\": {\n \"bytesInOutput\": 1029\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytesInOutput\": 657\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytesInOutput\": 2220\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytesInOutput\": 1251\n },\n \"src/components/ThemeProvider/ThemeProvider.tsx\": {\n \"bytesInOutput\": 191\n },\n \"src/components/ThemeProvider/ThemeProvider.module.css\": {\n \"bytesInOutput\": 561\n }\n },\n \"bytes\": 45179\n }\n }\n}\n"
|
|
11
|
+
"metafile": "{\n \"inputs\": {\n \"src/components/CloudpackProvider/getCookies.ts\": {\n \"bytes\": 452,\n \"imports\": []\n },\n \"src/components/CloudpackProvider/createCloudpackClient.ts\": {\n \"bytes\": 4320,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/getCookies.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/CloudpackProvider/CloudpackProvider.tsx\": {\n \"bytes\": 552,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/createCloudpackClient.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytes\": 2050,\n \"imports\": []\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytes\": 3405,\n \"imports\": []\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytes\": 866,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/images/open-16-filled.inline.svg\": {\n \"bytes\": 852,\n \"imports\": []\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytes\": 2867,\n \"imports\": [\n {\n \"path\": \"src/hooks/useDraggable.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusBadge/StatusBadge.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatus.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/open-16-filled.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskResultItem.module.css\": {\n \"bytes\": 2067,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskResultItem.tsx\": {\n \"bytes\": 1433,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskResultItem.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskStatus.module.css\": {\n \"bytes\": 4179,\n \"imports\": []\n },\n \"src/images/error-24.inline.svg\": {\n \"bytes\": 1024,\n \"imports\": []\n },\n \"src/images/success-24.inline.svg\": {\n \"bytes\": 562,\n \"imports\": []\n },\n \"src/images/chevrondown-20.inline.svg\": {\n \"bytes\": 450,\n \"imports\": []\n },\n \"src/components/Button/Button.module.css\": {\n \"bytes\": 2080,\n \"imports\": []\n },\n \"src/components/Button/Button.tsx\": {\n \"bytes\": 360,\n \"imports\": [\n {\n \"path\": \"src/components/Button/Button.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytes\": 4591,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskResultItem.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/error-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/success-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/chevrondown-20.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/CloudpackProvider/useStatusDetails.ts\": {\n \"bytes\": 858,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/TaskList.module.css\": {\n \"bytes\": 615,\n \"imports\": []\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytes\": 1015,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatusDetails.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskList.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/Dialog/Dialog.module.css\": {\n \"bytes\": 2454,\n \"imports\": []\n },\n \"src/images/dismiss-16-filled.inline.svg\": {\n \"bytes\": 718,\n \"imports\": []\n },\n \"src/components/Dialog/Dialog.tsx\": {\n \"bytes\": 1530,\n \"imports\": [\n {\n \"path\": \"src/components/Dialog/Dialog.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/hooks/useDraggable.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/dismiss-16-filled.inline.svg\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytes\": 741,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskList.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Dialog/Dialog.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytes\": 2204,\n \"imports\": [\n {\n \"path\": \"src/components/StatusDialog/TaskStatus.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/error-24.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/images/chevrondown-20.inline.svg\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytes\": 1021,\n \"imports\": [\n {\n \"path\": \"src/components/Button/Button.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/PathError.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/TaskList.module.css\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/Dialog/Dialog.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytes\": 1659,\n \"imports\": []\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytes\": 1437,\n \"imports\": [\n {\n \"path\": \"src/components/StatusBadge/StatusBadge.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusDialog/StatusDialog.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/CloudpackProvider/useStatus.ts\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/ErrorDialog.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ErrorDialog/useErrorEvents.ts\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/components/ThemeProvider/ThemeProvider.module.css\": {\n \"bytes\": 630,\n \"imports\": []\n },\n \"src/components/ThemeProvider/ThemeProvider.tsx\": {\n \"bytes\": 210,\n \"imports\": [\n {\n \"path\": \"src/components/ThemeProvider/ThemeProvider.module.css\",\n \"kind\": \"import-statement\"\n }\n ]\n },\n \"src/index.tsx\": {\n \"bytes\": 532,\n \"imports\": [\n {\n \"path\": \"src/components/CloudpackProvider/CloudpackProvider.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/StatusOverlay/StatusOverlay.tsx\",\n \"kind\": \"import-statement\"\n },\n {\n \"path\": \"src/components/ThemeProvider/ThemeProvider.tsx\",\n \"kind\": \"import-statement\"\n }\n ]\n }\n },\n \"outputs\": {\n \"dist/lib/index.js\": {\n \"imports\": [],\n \"exports\": [],\n \"entryPoint\": \"src/index.tsx\",\n \"inputs\": {\n \"src/index.tsx\": {\n \"bytesInOutput\": 360\n },\n \"src/components/CloudpackProvider/CloudpackProvider.tsx\": {\n \"bytesInOutput\": 372\n },\n \"src/components/CloudpackProvider/getCookies.ts\": {\n \"bytesInOutput\": 317\n },\n \"src/components/CloudpackProvider/createCloudpackClient.ts\": {\n \"bytesInOutput\": 2943\n },\n \"src/components/StatusOverlay/StatusOverlay.tsx\": {\n \"bytesInOutput\": 1076\n },\n \"src/components/StatusBadge/StatusBadge.tsx\": {\n \"bytesInOutput\": 3035\n },\n \"src/hooks/useDraggable.ts\": {\n \"bytesInOutput\": 1937\n },\n \"src/components/StatusBadge/StatusBadge.module.css\": {\n \"bytesInOutput\": 3118\n },\n \"src/components/CloudpackProvider/useStatus.ts\": {\n \"bytesInOutput\": 448\n },\n \"src/images/open-16-filled.inline.svg\": {\n \"bytesInOutput\": 1202\n },\n \"src/components/StatusDialog/StatusDialog.tsx\": {\n \"bytesInOutput\": 531\n },\n \"src/components/StatusDialog/TaskList.tsx\": {\n \"bytesInOutput\": 750\n },\n \"src/components/StatusDialog/TaskStatus.tsx\": {\n \"bytesInOutput\": 5037\n },\n \"src/components/StatusDialog/TaskResultItem.tsx\": {\n \"bytesInOutput\": 1421\n },\n \"src/components/StatusDialog/TaskResultItem.module.css\": {\n \"bytesInOutput\": 1881\n },\n \"src/components/StatusDialog/TaskStatus.module.css\": {\n \"bytesInOutput\": 3889\n },\n \"src/images/error-24.inline.svg\": {\n \"bytesInOutput\": 1428\n },\n \"src/images/success-24.inline.svg\": {\n \"bytesInOutput\": 814\n },\n \"src/images/chevrondown-20.inline.svg\": {\n \"bytesInOutput\": 666\n },\n \"src/components/Button/Button.tsx\": {\n \"bytesInOutput\": 312\n },\n \"src/components/Button/Button.module.css\": {\n \"bytesInOutput\": 1942\n },\n \"src/components/CloudpackProvider/useStatusDetails.ts\": {\n \"bytesInOutput\": 299\n },\n \"src/components/StatusDialog/TaskList.module.css\": {\n \"bytesInOutput\": 541\n },\n \"src/components/Dialog/Dialog.tsx\": {\n \"bytesInOutput\": 1402\n },\n \"src/components/Dialog/Dialog.module.css\": {\n \"bytesInOutput\": 2292\n },\n \"src/images/dismiss-16-filled.inline.svg\": {\n \"bytesInOutput\": 1029\n },\n \"src/components/ErrorDialog/ErrorDialog.tsx\": {\n \"bytesInOutput\": 709\n },\n \"src/components/ErrorDialog/PathError.tsx\": {\n \"bytesInOutput\": 2583\n },\n \"src/components/ErrorDialog/useErrorEvents.ts\": {\n \"bytesInOutput\": 1251\n },\n \"src/components/ThemeProvider/ThemeProvider.tsx\": {\n \"bytesInOutput\": 191\n },\n \"src/components/ThemeProvider/ThemeProvider.module.css\": {\n \"bytesInOutput\": 561\n }\n },\n \"bytes\": 46414\n }\n }\n}\n"
|
|
12
12
|
}
|
|
@@ -12,6 +12,8 @@ export interface CloudpackClient {
|
|
|
12
12
|
rootPath: string;
|
|
13
13
|
relativePath?: string;
|
|
14
14
|
}) => void;
|
|
15
|
-
|
|
15
|
+
editConfig: () => void;
|
|
16
|
+
restartAllTasks: () => void;
|
|
17
|
+
restartTask: (id: string) => void;
|
|
16
18
|
}
|
|
17
19
|
export declare function createCloudpackClient(): CloudpackClient;
|
|
@@ -110,8 +110,14 @@ export function createCloudpackClient() {
|
|
|
110
110
|
function open(options) {
|
|
111
111
|
sendMessage('open', options);
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
sendMessage('
|
|
113
|
+
function editConfig() {
|
|
114
|
+
sendMessage('editConfig', {});
|
|
115
|
+
}
|
|
116
|
+
function restartAllTasks() {
|
|
117
|
+
sendMessage('restartAllTasks', {});
|
|
118
|
+
}
|
|
119
|
+
function restartTask(id) {
|
|
120
|
+
sendMessage('restartTask', { id });
|
|
115
121
|
}
|
|
116
122
|
// Start the connection.
|
|
117
123
|
openConnection();
|
|
@@ -122,7 +128,9 @@ export function createCloudpackClient() {
|
|
|
122
128
|
open,
|
|
123
129
|
openSource,
|
|
124
130
|
subscribe,
|
|
125
|
-
|
|
131
|
+
editConfig,
|
|
132
|
+
restartTask,
|
|
133
|
+
restartAllTasks,
|
|
126
134
|
};
|
|
127
135
|
}
|
|
128
136
|
//# sourceMappingURL=createCloudpackClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCloudpackClient.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/createCloudpackClient.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"createCloudpackClient.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/createCloudpackClient.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,OAAO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,SAAS,WAAW,CAAC,EAAU;QAC7B,WAAW,CAAC,aAAa,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,wBAAwB;IACxB,cAAc,EAAE,CAAC;IAEjB,yBAAyB;IACzB,OAAO;QACL,OAAO;QACP,QAAQ;QACR,IAAI;QACJ,UAAU;QACV,SAAS;QACT,UAAU;QACV,WAAW;QACX,eAAe;KAChB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStatusDetails.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatusDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"useStatusDetails.js","sourceRoot":"","sources":["../../../src/components/CloudpackProvider/useStatusDetails.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AA4BtD,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,EAAE;IACnC,MAAM,OAAO,GAAG,YAAY,EAAE,CAAC;IAC/B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAA6B,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IAElF,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAE/E,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -4,7 +4,7 @@ export interface DialogProps {
|
|
|
4
4
|
style?: 'default' | 'error';
|
|
5
5
|
draggable?: boolean;
|
|
6
6
|
onClose?: () => void;
|
|
7
|
-
commands?: React.ReactNode;
|
|
7
|
+
commands?: React.ReactNode[];
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
}
|
|
10
10
|
export declare function Dialog({ title, style, draggable, onClose, commands, children }: DialogProps): JSX.Element;
|
|
@@ -14,7 +14,7 @@ export function Dialog({ title, style, draggable, onClose, commands, children })
|
|
|
14
14
|
React.createElement("div", { ref: draggableTargetRef, className: styles.title, style: { color: colorAccent, cursor: cursorDraggable } }, title),
|
|
15
15
|
!!onClose && (React.createElement("button", { className: styles.closeButton, onClick: onClose },
|
|
16
16
|
React.createElement("img", { src: CloseIcon, alt: "" })))),
|
|
17
|
-
!!commands && React.createElement("div", { className: styles.commands }, commands),
|
|
17
|
+
!!commands && React.createElement("div", { className: styles.commands }, ...commands),
|
|
18
18
|
children)));
|
|
19
19
|
}
|
|
20
20
|
//# sourceMappingURL=Dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dialog.js","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,SAAS,MAAM,2CAA2C,CAAC;AAWlE,MAAM,UAAU,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAe;IAC1F,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAClC,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,MAAM,WAAW,GAAG,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS,CAAC;IACvE,MAAM,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,MAAM,CA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= () => {
|
|
10
|
-
cloudpack.
|
|
10
|
+
cloudpack.restartAllTasks();
|
|
11
11
|
};
|
|
12
|
-
return (React.createElement(Dialog, { title: "Found unsupported paths in your project", style: "error", commands:
|
|
12
|
+
return (React.createElement(Dialog, { title: "Found unsupported paths in your project", style: "error", commands: [
|
|
13
|
+
React.createElement(Button, { primary: true, onClick: reload, key: "1" }, "Restart all tasks"),
|
|
14
|
+
] },
|
|
13
15
|
React.createElement("div", { className: styles.root }, unsupported.map((data, index) => (React.createElement(PathError, { ...data, key: index }))))));
|
|
14
16
|
}
|
|
15
17
|
//# sourceMappingURL=ErrorDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorDialog.js","sourceRoot":"","sources":["../../../src/components/ErrorDialog/ErrorDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,MAAM,MAAM,qCAAqC,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,MAAM,UAAU,WAAW,CAAC,EAAE,WAAW,EAAoB;IAC3D,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,GAAG,EAAE;QAClB,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"ErrorDialog.js","sourceRoot":"","sources":["../../../src/components/ErrorDialog/ErrorDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,MAAM,MAAM,qCAAqC,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,MAAM,UAAU,WAAW,CAAC,EAAE,WAAW,EAAoB;IAC3D,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,MAAM,GAAG,GAAG,EAAE;QAClB,SAAS,CAAC,eAAe,EAAE,CAAC;IAC9B,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,KAAK,EAAC,yCAAyC,EAC/C,KAAK,EAAC,OAAO,EACb,QAAQ,EAAE;YACR,oBAAC,MAAM,IAAC,OAAO,QAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAC,GAAG,wBAE/B;SACV;QAED,6BAAK,SAAS,EAAE,MAAM,CAAC,IAAI,IACxB,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAChC,oBAAC,SAAS,OAAK,IAAI,EAAE,GAAG,EAAE,KAAK,GAAI,CACpC,CAAC,CACE,CACC,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -3,22 +3,31 @@ import styles from '../StatusDialog/TaskStatus.module.css';
|
|
|
3
3
|
import ErrorIcon from '../../images/error-24.inline.svg';
|
|
4
4
|
import { default as cx } from 'classnames';
|
|
5
5
|
import ChevronDownIcon from '../../images/chevrondown-20.inline.svg';
|
|
6
|
+
import { Button } from '../Button/Button.js';
|
|
7
|
+
import { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';
|
|
6
8
|
export function PathError(props) {
|
|
7
9
|
const [showContent, setshowContent] = React.useState(false);
|
|
8
10
|
const { packageName, importPath } = props;
|
|
11
|
+
const cloudpack = useCloudpack();
|
|
12
|
+
const editConfig = () => {
|
|
13
|
+
cloudpack.editConfig();
|
|
14
|
+
};
|
|
9
15
|
return (React.createElement("div", { className: styles.root },
|
|
10
16
|
React.createElement("div", { className: cx(styles.header, styles.error) },
|
|
11
17
|
React.createElement("button", { className: styles.expandButton, onClick: () => setshowContent(!showContent) },
|
|
12
18
|
React.createElement("img", { className: cx(styles.expandIcon, !showContent && styles.collapsed), src: ChevronDownIcon, alt: "" })),
|
|
13
19
|
React.createElement("img", { className: styles.errorIcon, src: ErrorIcon, alt: "" }),
|
|
14
20
|
React.createElement("div", { className: styles.title }, `${packageName}/${importPath}`)),
|
|
15
|
-
showContent && (React.createElement(
|
|
16
|
-
React.createElement("div", { className: styles.
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
React.createElement("div", { className: styles.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
showContent && (React.createElement(React.Fragment, null,
|
|
22
|
+
React.createElement("div", { className: styles.commands },
|
|
23
|
+
React.createElement(Button, { onClick: editConfig }, "Add override manually")),
|
|
24
|
+
React.createElement("div", { className: styles.content },
|
|
25
|
+
React.createElement("div", { className: styles.title }, "Details"),
|
|
26
|
+
React.createElement("div", { className: styles.nameValueArea },
|
|
27
|
+
React.createElement("div", { className: styles.name }, "Problem"),
|
|
28
|
+
React.createElement("div", { className: styles.value }, `A deep import package name: "${packageName}" was imported, but was unrecognized as an exported entry path: "${importPath}".`)),
|
|
29
|
+
React.createElement("div", { className: styles.nameValueArea },
|
|
30
|
+
React.createElement("div", { className: styles.name }, "Solution"),
|
|
31
|
+
React.createElement("div", { className: styles.value }, `Remove the path from the import in your source. (Import from "${packageName}" rather than "${packageName}/${importPath}")`)))))));
|
|
23
32
|
}
|
|
24
33
|
//# sourceMappingURL=PathError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PathError.js","sourceRoot":"","sources":["../../../src/components/ErrorDialog/PathError.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,uCAAuC,CAAC;AAC3D,OAAO,SAAS,MAAM,kCAAkC,CAAC;AACzD,O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AG,CACjG;YACT,6BAAK,SAAS,EAAE,MAAM,CAAC,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAC,EAAE,GAAG;YAC3D,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK,IAAG,GAAG,WAAW,IAAI,UAAU,EAAE,CAAO,CAChE;QACL,WAAW,IAAI,CACd;YACE,6BAAK,SAAS,EAAE,MAAM,CAAC,QAAQ;gBAC7B,oBAAC,MAAM,IAAC,OAAO,EAAE,UAAU,4BAAgC,CACvD;YACN,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO;gBAC5B,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK,cAAe;gBAE3C,6BAAK,SAAS,EAAE,MAAM,CAAC,aAAa;oBAClC,6BAAK,SAAS,EAAE,MAAM,CAAC,IAAI,cAAe;oBAC1C,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK,IACzB,gCAAgC,WAAW,oEAAoE,UAAU,IAAI,CAC1H,CACF;gBACN,6BAAK,SAAS,EAAE,MAAM,CAAC,aAAa;oBAClC,6BAAK,SAAS,EAAE,MAAM,CAAC,IAAI,eAAgB;oBAC3C,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK,IACzB,iEAAiE,WAAW,kBAAkB,WAAW,IAAI,UAAU,IAAI,CACxH,CACF,CACF,CACL,CACJ,CACG,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -5,10 +5,12 @@ import { Button } from '../Button/Button.js';
|
|
|
5
5
|
import { Dialog } from '../Dialog/Dialog.js';
|
|
6
6
|
export function StatusDialog({ onClose }) {
|
|
7
7
|
const cloudpack = useCloudpack();
|
|
8
|
-
const
|
|
9
|
-
cloudpack.
|
|
8
|
+
const restartAllTasks = () => {
|
|
9
|
+
cloudpack.restartAllTasks();
|
|
10
10
|
};
|
|
11
|
-
return (React.createElement(Dialog, { title: "Task results", draggable: true, onClose: onClose, commands:
|
|
11
|
+
return (React.createElement(Dialog, { title: "Task results", draggable: true, onClose: onClose, commands: [
|
|
12
|
+
React.createElement(Button, { primary: true, onClick: restartAllTasks, key: "1" }, "Restart all tasks"),
|
|
13
|
+
] },
|
|
12
14
|
React.createElement(TaskList, null)));
|
|
13
15
|
}
|
|
14
16
|
//# sourceMappingURL=StatusDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatusDialog.js","sourceRoot":"","sources":["../../../src/components/StatusDialog/StatusDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,MAAM,UAAU,YAAY,CAAC,EAAE,OAAO,EAAqB;IACzD,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,
|
|
1
|
+
{"version":3,"file":"StatusDialog.js","sourceRoot":"","sources":["../../../src/components/StatusDialog/StatusDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,2CAA2C,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAM7C,MAAM,UAAU,YAAY,CAAC,EAAE,OAAO,EAAqB;IACzD,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IAEjC,MAAM,eAAe,GAAG,GAAG,EAAE;QAC3B,SAAS,CAAC,eAAe,EAAE,CAAC;IAC9B,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,MAAM,IACL,KAAK,EAAC,cAAc,EACpB,SAAS,QACT,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;YACR,oBAAC,MAAM,IAAC,OAAO,QAAC,OAAO,EAAE,eAAe,EAAE,GAAG,EAAC,GAAG,wBAExC;SACV;QAED,oBAAC,QAAQ,OAAG,CACL,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -6,6 +6,7 @@ import ErrorIcon from '../../images/error-24.inline.svg';
|
|
|
6
6
|
import SuccessIcon from '../../images/success-24.inline.svg';
|
|
7
7
|
import ChevronDownIcon from '../../images/chevrondown-20.inline.svg';
|
|
8
8
|
import { useCloudpack } from '../CloudpackProvider/CloudpackProvider.js';
|
|
9
|
+
import { Button } from '../Button/Button.js';
|
|
9
10
|
function getCompletion(task) {
|
|
10
11
|
if (task.status === 'pending') {
|
|
11
12
|
return 'Running';
|
|
@@ -36,6 +37,9 @@ export function TaskStatus({ task }) {
|
|
|
36
37
|
column: 0,
|
|
37
38
|
});
|
|
38
39
|
};
|
|
40
|
+
const restartTask = (id) => {
|
|
41
|
+
cloudpack.restartTask(id);
|
|
42
|
+
};
|
|
39
43
|
return (React.createElement("div", { className: styles.root },
|
|
40
44
|
React.createElement("div", { className: getHeaderClassName(task) },
|
|
41
45
|
React.createElement("button", { className: styles.expandButton, onClick: () => setIsOpen(!showContent) },
|
|
@@ -44,22 +48,25 @@ export function TaskStatus({ task }) {
|
|
|
44
48
|
errors?.length > 0 && React.createElement("img", { className: styles.errorIcon, src: ErrorIcon, alt: "" }),
|
|
45
49
|
React.createElement("div", { className: styles.title }, name),
|
|
46
50
|
React.createElement("div", { className: styles.farArea }, getCompletion(task))),
|
|
47
|
-
showContent && (React.createElement(
|
|
48
|
-
React.createElement("div", { className: styles.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
React.createElement("div", { className: styles.
|
|
52
|
-
|
|
53
|
-
React.createElement("
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
showContent && (React.createElement(React.Fragment, null,
|
|
52
|
+
React.createElement("div", { className: styles.commands },
|
|
53
|
+
React.createElement(Button, { onClick: () => restartTask(task.id) }, "Restart task")),
|
|
54
|
+
React.createElement("div", { className: styles.content },
|
|
55
|
+
React.createElement("div", { className: styles.title }, "Details"),
|
|
56
|
+
React.createElement("div", { className: styles.nameValueArea },
|
|
57
|
+
React.createElement("div", { className: styles.name }, "Input path"),
|
|
58
|
+
React.createElement("div", { className: styles.value },
|
|
59
|
+
React.createElement("button", { className: styles.linkButton, onClick: () => open(task.inputPath) }, task.inputPath),
|
|
60
|
+
React.createElement("button", { className: styles.linkButton, onClick: openPackage }, "(Package.json)"))),
|
|
61
|
+
React.createElement("div", { className: styles.nameValueArea },
|
|
62
|
+
React.createElement("div", { className: styles.name }, "Output path"),
|
|
63
|
+
React.createElement("button", { className: styles.linkButton, onClick: () => open(task.outputPath) }, task.outputPath)),
|
|
64
|
+
errors?.length > 0 && (React.createElement(React.Fragment, null,
|
|
65
|
+
React.createElement("div", { className: styles.title }, "Errors"),
|
|
66
|
+
React.createElement("div", { className: styles.resultItems }, errors.map((error, index) => (React.createElement(TaskResultItem, { key: index, item: error, projectPath: task.inputPath, index: index + 1 })))))),
|
|
67
|
+
warnings?.length > 0 && (React.createElement(React.Fragment, null,
|
|
68
|
+
React.createElement("div", { className: styles.title }, "Warnings"),
|
|
69
|
+
React.createElement("div", { className: styles.resultItems }, warnings.map((warning, index) => (React.createElement(TaskResultItem, { key: index, item: warning, projectPath: task.inputPath, index: index + 1 })))))))))));
|
|
63
70
|
}
|
|
64
71
|
function getHeaderClassName(task) {
|
|
65
72
|
return cx(styles.header, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskStatus.js","sourceRoot":"","sources":["../../../src/components/StatusDialog/TaskStatus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB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AI,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,MAAM,KAAK,CAAC;QAC1E,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC;QACxE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC;KACxC,CAAC,CAAC;AACL,CAAC"}
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/overlay",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "The Cloudpack overlay ux.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@ms-cloudpack/eslint-config-base": "*",
|
|
33
33
|
"@ms-cloudpack/scripts": "*",
|
|
34
|
-
"@types/react-dom": "17.0.
|
|
35
|
-
"@types/react": "17.0.
|
|
34
|
+
"@types/react-dom": "17.0.18",
|
|
35
|
+
"@types/react": "17.0.52"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"/lib",
|