@pb33f/cowboy-components 0.1.14 → 0.1.16
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/components/percent-bar/percent-bar.js +1 -1
- package/dist/components/problem-list/problem-item.css.js +9 -0
- package/dist/components/problem-list/problem-item.d.ts +1 -1
- package/dist/components/problem-list/problem-item.js +5 -3
- package/dist/components/problem-list/problem-list.d.ts +1 -1
- package/dist/components/problem-list/problem-list.js +1 -1
- package/dist/components/problem-list/problem-mainview.css.js +16 -2
- package/dist/components/problem-list/problem-mainview.d.ts +2 -2
- package/dist/components/problem-list/problem-mainview.js +9 -6
- package/dist/components/problems-overview/diagnostic-evaluation.css.js +11 -2
- package/dist/components/problems-overview/problem-overview-group.css.js +27 -2
- package/dist/components/problems-overview/problem-overview-group.js +3 -2
- package/dist/components/problems-overview/problem-statistics.css.js +24 -1
- package/dist/components/problems-overview/problem-statistics.js +11 -11
- package/dist/components/render-json-path/render-json-path.js +2 -2
- package/dist/components/the-doctor/feedback.js +3 -3
- package/dist/components/the-doctor/status-bar.js +1 -1
- package/dist/components/the-doctor/the-doctor.css.js +1 -1
- package/dist/cowboy-components.umd.cjs +152 -68
- package/dist/workers/rule-documentation.worker.d.ts +6 -1
- package/dist/workers/rule-documentation.worker.js +4 -5
- package/dist/workers/search-problems.worker.d.ts +2 -1
- package/dist/workers/search-problems.worker.js +1 -2
- package/package.json +1 -1
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { RuleDocumentation } from "../model/rule_documentation.js";
|
|
2
|
+
declare const _default: (this: Window, e: MessageEvent<any>) => void;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare function buildRuleDocs(endpoint: string): Promise<RuleDocumentation[]>;
|
|
5
|
+
export declare function fetchAllRuleDocumentation(endpoint: string): Promise<RuleDocumentation[]>;
|
|
6
|
+
export declare function fetchRuleDocumentation(ruleId: string, endpoint: string): Promise<RuleDocumentation>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
onmessage = function (e) {
|
|
1
|
+
export default onmessage = function (e) {
|
|
2
2
|
if (e.data.start) {
|
|
3
3
|
buildRuleDocs(e.data.endpoint).then((docs) => {
|
|
4
4
|
postMessage(docs);
|
|
@@ -7,7 +7,7 @@ onmessage = function (e) {
|
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
|
-
async function buildRuleDocs(endpoint) {
|
|
10
|
+
export async function buildRuleDocs(endpoint) {
|
|
11
11
|
return new Promise(async (resolve, reject) => {
|
|
12
12
|
try {
|
|
13
13
|
const docs = await fetchAllRuleDocumentation(endpoint);
|
|
@@ -26,7 +26,7 @@ async function buildRuleDocs(endpoint) {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
async function fetchAllRuleDocumentation(endpoint) {
|
|
29
|
+
export async function fetchAllRuleDocumentation(endpoint) {
|
|
30
30
|
try {
|
|
31
31
|
const response = await fetch(endpoint + '/rules/documentation', {
|
|
32
32
|
method: 'GET',
|
|
@@ -54,7 +54,7 @@ async function fetchAllRuleDocumentation(endpoint) {
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
async function fetchRuleDocumentation(ruleId, endpoint) {
|
|
57
|
+
export async function fetchRuleDocumentation(ruleId, endpoint) {
|
|
58
58
|
try {
|
|
59
59
|
const response = await fetch(endpoint + `/rules/documentation/${ruleId}`, {
|
|
60
60
|
method: 'GET',
|
|
@@ -82,4 +82,3 @@ async function fetchRuleDocumentation(ruleId, endpoint) {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const _default: (this: Window, e: MessageEvent<any>) => void;
|
|
2
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
onmessage = function (e) {
|
|
1
|
+
export default onmessage = function (e) {
|
|
2
2
|
if (e.data.search && e.data.problems) {
|
|
3
3
|
let unfilteredProblems = e.data.problems;
|
|
4
4
|
const filteredProblems = unfilteredProblems.filter((problem) => {
|
|
@@ -16,4 +16,3 @@ onmessage = function (e) {
|
|
|
16
16
|
postMessage(filteredProblems);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
export {};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Princess Beef Heavy Industries Cowboy Components",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.16",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/cowboy-components.umd.cjs",
|
|
9
9
|
"module": "./dist/cowboy-components.js",
|