@jsenv/plugin-toolbar 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/html/toolbar.html
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
</svg>
|
|
40
40
|
</button>
|
|
41
41
|
</div>
|
|
42
|
-
<div data-when="execution:
|
|
42
|
+
<div data-when="execution:failed">
|
|
43
43
|
<div class="tooltip">Execution failed in X ms</div>
|
|
44
44
|
<button class="toolbar_control">
|
|
45
45
|
<svg id="execution_failed_icon" data-animate="" viewBox="0 0 512 512">
|
package/dist/js/toolbar_core.js
CHANGED
|
@@ -734,7 +734,7 @@ const notifyExecutionResult = (execution, previousExecution) => {
|
|
|
734
734
|
clickToFocus: true,
|
|
735
735
|
clickToClose: true
|
|
736
736
|
};
|
|
737
|
-
if (execution.status === "
|
|
737
|
+
if (execution.status === "failed") {
|
|
738
738
|
if (previousExecution) {
|
|
739
739
|
if (previousExecution.status === "completed") {
|
|
740
740
|
notify("Broken", {
|
|
@@ -753,7 +753,7 @@ const notifyExecutionResult = (execution, previousExecution) => {
|
|
|
753
753
|
body: `${executedFileRelativeUrl} execution failed.`
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
|
-
} else if (previousExecution && previousExecution.status === "
|
|
756
|
+
} else if (previousExecution && previousExecution.status === "failed") {
|
|
757
757
|
notify("Fixed", {
|
|
758
758
|
...notificationOptions,
|
|
759
759
|
body: `${executedFileRelativeUrl} execution fixed.`
|
|
@@ -1372,7 +1372,7 @@ const computeText = ({
|
|
|
1372
1372
|
if (status === "completed") {
|
|
1373
1373
|
return `Execution completed in ${endTime - startTime}ms`;
|
|
1374
1374
|
}
|
|
1375
|
-
if (status === "
|
|
1375
|
+
if (status === "failed") {
|
|
1376
1376
|
return `Execution failed in ${endTime - startTime}ms`;
|
|
1377
1377
|
}
|
|
1378
1378
|
if (status === "running") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/plugin-toolbar",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"/src/"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jsenv/ast": "3.0.
|
|
29
|
+
"@jsenv/ast": "3.0.4",
|
|
30
30
|
"@preact/signals": "1.1.3"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
@@ -17,7 +17,7 @@ export const notifyExecutionResult = (execution, previousExecution) => {
|
|
|
17
17
|
clickToFocus: true,
|
|
18
18
|
clickToClose: true,
|
|
19
19
|
}
|
|
20
|
-
if (execution.status === "
|
|
20
|
+
if (execution.status === "failed") {
|
|
21
21
|
if (previousExecution) {
|
|
22
22
|
if (previousExecution.status === "completed") {
|
|
23
23
|
notify("Broken", {
|
|
@@ -36,7 +36,7 @@ export const notifyExecutionResult = (execution, previousExecution) => {
|
|
|
36
36
|
body: `${executedFileRelativeUrl} execution failed.`,
|
|
37
37
|
})
|
|
38
38
|
}
|
|
39
|
-
} else if (previousExecution && previousExecution.status === "
|
|
39
|
+
} else if (previousExecution && previousExecution.status === "failed") {
|
|
40
40
|
notify("Fixed", {
|
|
41
41
|
...notificationOptions,
|
|
42
42
|
body: `${executedFileRelativeUrl} execution fixed.`,
|
package/src/client/toolbar.html
CHANGED
|
@@ -56,7 +56,7 @@ const computeText = ({ status, startTime, endTime }) => {
|
|
|
56
56
|
if (status === "completed") {
|
|
57
57
|
return `Execution completed in ${endTime - startTime}ms`
|
|
58
58
|
}
|
|
59
|
-
if (status === "
|
|
59
|
+
if (status === "failed") {
|
|
60
60
|
return `Execution failed in ${endTime - startTime}ms`
|
|
61
61
|
}
|
|
62
62
|
if (status === "running") {
|