@pb33f/cowboy-components 0.1.15 → 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/problem-list/problem-list.d.ts +1 -1
- package/dist/components/problem-list/problem-list.js +1 -1
- package/dist/components/the-doctor/feedback.js +3 -3
- package/dist/components/the-doctor/status-bar.js +1 -1
- 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,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import { ProblemItem } from "./problem-item.js";
|
|
3
|
-
import { MainViewSlideChangedEvent, ProblemClickedEvent, ProblemRuleFilterChangedEvent } from "../../events/doctor";
|
|
3
|
+
import { MainViewSlideChangedEvent, ProblemClickedEvent, ProblemRuleFilterChangedEvent } from "../../events/doctor.js";
|
|
4
4
|
import { Problem } from "../../model/problem.js";
|
|
5
5
|
export declare class ProblemList extends LitElement {
|
|
6
6
|
static styles: import("lit").CSSResult[];
|
|
@@ -8,7 +8,7 @@ import { customElement } from "lit/decorators.js";
|
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
9
|
import { ProblemItem } from "./problem-item.js";
|
|
10
10
|
import { ProblemMainView } from "./problem-mainview.js";
|
|
11
|
-
import { MainViewSlideChanged, ProblemClicked, ProblemLabelViewFilterChanged, ProblemSortFilterChanged, ProblemSearchFilterChanged, MessageEvent, ProblemRuleFilterChanged, ProblemRuleFilterChangedManual } from "../../events/doctor";
|
|
11
|
+
import { MainViewSlideChanged, ProblemClicked, ProblemLabelViewFilterChanged, ProblemSortFilterChanged, ProblemSearchFilterChanged, MessageEvent, ProblemRuleFilterChanged, ProblemRuleFilterChangedManual } from "../../events/doctor.js";
|
|
12
12
|
import problemListCss from "./problem-list.css.js";
|
|
13
13
|
import sharedCss from "../../css/shared.css.js";
|
|
14
14
|
import { Problem } from "../../model/problem.js";
|
|
@@ -7,10 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import '@shoelace-style/shoelace/dist/components/textarea/textarea.js';
|
|
8
8
|
import { customElement, query, state } from "lit/decorators.js";
|
|
9
9
|
import { html, LitElement } from "lit";
|
|
10
|
-
import { FeedbackService } from "../../services/feedback-service";
|
|
10
|
+
import { FeedbackService } from "../../services/feedback-service.js";
|
|
11
11
|
import feedbackCss from "./feedback.css.js";
|
|
12
|
-
import buttonCss from "../../css/button.css";
|
|
13
|
-
import sharedCss from "../../css/shared.css";
|
|
12
|
+
import buttonCss from "../../css/button.css.js";
|
|
13
|
+
import sharedCss from "../../css/shared.css.js";
|
|
14
14
|
let FeedbackComponent = class FeedbackComponent extends LitElement {
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { customElement, property, query } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
|
-
import buttonCss from "../../css/button.css";
|
|
9
|
+
import buttonCss from "../../css/button.css.js";
|
|
10
10
|
import statusBarCss from "./status-bar.css.js";
|
|
11
11
|
import linksCss from "../../css/links.css.js";
|
|
12
12
|
let StatusBar = class StatusBar extends LitElement {
|
|
@@ -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",
|