@pb33f/cowboy-components 0.1.1 → 0.1.3
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/editor/editor.js +1 -1
- package/dist/components/mailing-list/mailing-list.js +2 -3
- package/dist/components/paginator/paginator-navigator.js +1 -1
- package/dist/components/paginator/paginator.js +3 -3
- package/dist/components/problem-list/details-drawer.js +1 -1
- package/dist/components/problem-list/problem-item.d.ts +3 -3
- package/dist/components/problem-list/problem-item.js +3 -3
- package/dist/components/problem-list/problem-label-view-filter.js +1 -1
- package/dist/components/problem-list/problem-list.d.ts +3 -3
- package/dist/components/problem-list/problem-list.js +11 -11
- package/dist/components/problem-list/problem-mainview.d.ts +1 -1
- package/dist/components/problem-list/problem-mainview.js +3 -3
- package/dist/components/problem-list/problem-rule-filter.js +1 -1
- package/dist/components/problem-list/problem-search-filter.js +1 -1
- package/dist/components/problem-list/problem-sort-filter.js +1 -1
- package/dist/components/problems-overview/diagnostic-evaluation.js +3 -3
- package/dist/components/problems-overview/problem-overview-group.d.ts +1 -1
- package/dist/components/problems-overview/problem-overview-group.js +5 -5
- package/dist/components/problems-overview/problem-statistics.d.ts +2 -2
- package/dist/components/problems-overview/problem-statistics.js +2 -2
- package/dist/components/problems-overview/problems-overview.d.ts +3 -3
- package/dist/components/problems-overview/problems-overview.js +4 -4
- package/dist/components/the-doctor/status-bar.js +1 -1
- package/dist/components/the-doctor/the-doctor.d.ts +2 -2
- package/dist/components/the-doctor/the-doctor.js +10 -10
- package/dist/events/doctor.d.ts +2 -2
- package/dist/model/problem.js +0 -64
- package/dist/services/linting-service.d.ts +4 -4
- package/dist/services/linting-service.js +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
|
19
19
|
import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
22
|
-
import { EditorClicked, EditorUpdated } from "
|
|
22
|
+
import { EditorClicked, EditorUpdated } from "../../events/doctor";
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
self.MonacoEnvironment = {
|
|
25
25
|
getWorker(_, label) {
|
|
@@ -5,10 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
8
|
-
import { LitElement } from "lit";
|
|
9
|
-
import { html } from "lit";
|
|
8
|
+
import { LitElement, html } from "lit";
|
|
10
9
|
import mailingListComponentsCss from "./mailing-list.css.js";
|
|
11
|
-
import sharedCss from "
|
|
10
|
+
import sharedCss from "../../css/shared.css.js";
|
|
12
11
|
let MailingList = class MailingList extends LitElement {
|
|
13
12
|
constructor() {
|
|
14
13
|
super();
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { customElement, property, query, state } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
9
|
import paginatorNavigatorCss from "./paginator-navigator.css";
|
|
10
|
-
import { PaginatorFirstPage, PaginatorLastPage, PaginatorNextPage, PaginatorPreviousPage } from "
|
|
10
|
+
import { PaginatorFirstPage, PaginatorLastPage, PaginatorNextPage, PaginatorPreviousPage } from "../paginator/paginator-events";
|
|
11
11
|
import "@shoelace-style/shoelace/dist/components/format-number/format-number.js";
|
|
12
12
|
let PaginatorNavigation = class PaginatorNavigation extends LitElement {
|
|
13
13
|
constructor() {
|
|
@@ -6,9 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
|
-
import { PaginatorNavigation } from "
|
|
10
|
-
import { PaginatorFirstPage, PaginatorLastPage, PaginatorNextPage, PaginatorPreviousPage } from "
|
|
11
|
-
import paginatorCss from "./paginator.css";
|
|
9
|
+
import { PaginatorNavigation } from "./paginator-navigator.js";
|
|
10
|
+
import { PaginatorFirstPage, PaginatorLastPage, PaginatorNextPage, PaginatorPreviousPage } from "./paginator-events.js";
|
|
11
|
+
import paginatorCss from "./paginator.css.js";
|
|
12
12
|
let Paginator = class Paginator extends LitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super();
|
|
@@ -8,7 +8,7 @@ import '@shoelace-style/shoelace/dist/components/drawer/drawer.js';
|
|
|
8
8
|
import { customElement, query } from "lit/decorators.js";
|
|
9
9
|
import { html, LitElement } from "lit";
|
|
10
10
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
11
|
-
import syntaxCss from "
|
|
11
|
+
import syntaxCss from "../../css/chroma-synxtax.css.js";
|
|
12
12
|
import detailsDrawerCss from "./details-drawer.css.js";
|
|
13
13
|
import sharedCss from "./shared.css.js";
|
|
14
14
|
export var ProblemDrawerEventType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
import { Problem } from "
|
|
3
|
-
import { ProblemLabelView } from "
|
|
4
|
-
import { ProblemList } from "
|
|
2
|
+
import { Problem } from "../../model/problem.js";
|
|
3
|
+
import { ProblemLabelView } from "./problem-label-view-filter.js";
|
|
4
|
+
import { ProblemList } from "./problem-list.js";
|
|
5
5
|
export declare class ProblemItem extends LitElement {
|
|
6
6
|
static styles: import("lit").CSSResult[];
|
|
7
7
|
source: string;
|
|
@@ -6,9 +6,9 @@ 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 { ProblemClicked } from "
|
|
10
|
-
import { getProblemClass, getProblemIcon } from "
|
|
11
|
-
import { ProblemLabelView } from "
|
|
9
|
+
import { ProblemClicked } from "../../events/doctor.js";
|
|
10
|
+
import { getProblemClass, getProblemIcon } from "../../model/problem.js";
|
|
11
|
+
import { ProblemLabelView } from "./problem-label-view-filter.js";
|
|
12
12
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
13
13
|
import { marked } from "marked";
|
|
14
14
|
import problemItemCss from "./problem-item.css.js";
|
|
@@ -11,7 +11,7 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
11
11
|
import { html, LitElement } from "lit";
|
|
12
12
|
import problemLabelViewFilterCss from "./problem-label-view-filter.css.js";
|
|
13
13
|
import filterCss from "./filter.css.js";
|
|
14
|
-
import { ProblemLabelViewFilterChanged } from "
|
|
14
|
+
import { ProblemLabelViewFilterChanged } from "../../events/doctor.js";
|
|
15
15
|
export var ProblemLabelView;
|
|
16
16
|
(function (ProblemLabelView) {
|
|
17
17
|
ProblemLabelView["JSONPath"] = "Path";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
|
-
import { ProblemItem } from "
|
|
3
|
-
import { MainViewSlideChangedEvent, ProblemClickedEvent, ProblemRuleFilterChangedEvent } from "
|
|
4
|
-
import { Problem } from "
|
|
2
|
+
import { ProblemItem } from "../../components/problem-list/problem-item.js";
|
|
3
|
+
import { MainViewSlideChangedEvent, ProblemClickedEvent, ProblemRuleFilterChangedEvent } from "../../events/doctor";
|
|
4
|
+
import { Problem } from "../../model/problem";
|
|
5
5
|
export declare class ProblemList extends LitElement {
|
|
6
6
|
static styles: import("lit").CSSResult[];
|
|
7
7
|
private searchWorker;
|
|
@@ -6,18 +6,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { customElement } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
|
-
import { ProblemItem } from "
|
|
10
|
-
import { ProblemMainView } from "
|
|
11
|
-
import { MainViewSlideChanged, ProblemClicked, ProblemLabelViewFilterChanged, ProblemSortFilterChanged, ProblemSearchFilterChanged, MessageEvent, ProblemRuleFilterChanged, ProblemRuleFilterChangedManual } from "
|
|
9
|
+
import { ProblemItem } from "../../components/problem-list/problem-item.js";
|
|
10
|
+
import { ProblemMainView } from "../../components/problem-list/problem-mainview.js";
|
|
11
|
+
import { MainViewSlideChanged, ProblemClicked, ProblemLabelViewFilterChanged, ProblemSortFilterChanged, ProblemSearchFilterChanged, MessageEvent, ProblemRuleFilterChanged, ProblemRuleFilterChangedManual } from "../../events/doctor";
|
|
12
12
|
import problemListCss from "./problem-list.css";
|
|
13
|
-
import sharedCss from "
|
|
14
|
-
import { Problem } from "
|
|
15
|
-
import { ProblemToolbar } from "
|
|
16
|
-
import { ProblemLabelView } from "
|
|
17
|
-
import { Paginator } from "
|
|
18
|
-
import { ProblemSortView } from "
|
|
19
|
-
import SearchWorker from "
|
|
20
|
-
import { Rules } from "
|
|
13
|
+
import sharedCss from "../../css/shared.css";
|
|
14
|
+
import { Problem } from "../../model/problem";
|
|
15
|
+
import { ProblemToolbar } from "./problem-toolbar";
|
|
16
|
+
import { ProblemLabelView } from "./problem-label-view-filter";
|
|
17
|
+
import { Paginator } from "../paginator/paginator";
|
|
18
|
+
import { ProblemSortView } from "./problem-sort-filter";
|
|
19
|
+
import SearchWorker from "../../workers/search-problems.worker?worker";
|
|
20
|
+
import { Rules } from "./problem-rule-filter";
|
|
21
21
|
let ProblemList = class ProblemList extends LitElement {
|
|
22
22
|
constructor() {
|
|
23
23
|
super();
|
|
@@ -2,7 +2,7 @@ import '@shoelace-style/shoelace/dist/components/carousel/carousel.js';
|
|
|
2
2
|
import '@shoelace-style/shoelace/dist/components/carousel-item/carousel-item.js';
|
|
3
3
|
import { LitElement, TemplateResult } from "lit";
|
|
4
4
|
import { ProblemItem } from "./problem-item.js";
|
|
5
|
-
import { Problem } from "
|
|
5
|
+
import { Problem } from "../../model/problem.js";
|
|
6
6
|
import { SlCarousel } from "@shoelace-style/shoelace";
|
|
7
7
|
export declare class ProblemMainView extends LitElement {
|
|
8
8
|
static styles: import("lit").CSSResult[];
|
|
@@ -13,9 +13,9 @@ import problemMainViewCss from "./problem-mainview.css.js";
|
|
|
13
13
|
import { marked } from "marked";
|
|
14
14
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
15
15
|
import sharedCss from "./shared.css.js";
|
|
16
|
-
import { getProblemClass, getProblemIcon } from "
|
|
17
|
-
import { MainViewSlideChanged, OpenProblemDrawer } from "
|
|
18
|
-
import { ProblemDrawerEventType } from "
|
|
16
|
+
import { getProblemClass, getProblemIcon } from "../../model/problem.js";
|
|
17
|
+
import { MainViewSlideChanged, OpenProblemDrawer } from "../../events/doctor.js";
|
|
18
|
+
import { ProblemDrawerEventType } from "./details-drawer.js";
|
|
19
19
|
let ProblemMainView = class ProblemMainView extends LitElement {
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement } from "lit";
|
|
8
8
|
import { property, customElement } from "lit/decorators.js";
|
|
9
|
-
import { ProblemRuleFilterChanged, } from "
|
|
9
|
+
import { ProblemRuleFilterChanged, } from "../../events/doctor.js";
|
|
10
10
|
import problemLabelViewFilterCss from "./problem-label-view-filter.css.js";
|
|
11
11
|
import filterCss from "./filter.css.js";
|
|
12
12
|
export var Rules;
|
|
@@ -9,7 +9,7 @@ import '@shoelace-style/shoelace/dist/components/menu/menu.js';
|
|
|
9
9
|
import '@shoelace-style/shoelace/dist/components/menu-item/menu-item.js';
|
|
10
10
|
import { customElement, property, query } from "lit/decorators.js";
|
|
11
11
|
import { html, LitElement } from "lit";
|
|
12
|
-
import { ProblemSearchFilterChanged, } from "
|
|
12
|
+
import { ProblemSearchFilterChanged, } from "../../events/doctor.js";
|
|
13
13
|
import filterCss from "./filter.css.js";
|
|
14
14
|
let ProblemSearchFilter = class ProblemSearchFilter extends LitElement {
|
|
15
15
|
constructor() {
|
|
@@ -9,7 +9,7 @@ import '@shoelace-style/shoelace/dist/components/menu/menu.js';
|
|
|
9
9
|
import '@shoelace-style/shoelace/dist/components/menu-item/menu-item.js';
|
|
10
10
|
import { customElement, property } from "lit/decorators.js";
|
|
11
11
|
import { html, LitElement } from "lit";
|
|
12
|
-
import { ProblemSortFilterChanged } from "
|
|
12
|
+
import { ProblemSortFilterChanged } from "../../events/doctor.js";
|
|
13
13
|
import problemLabelViewFilterCss from "./problem-label-view-filter.css.js";
|
|
14
14
|
import filterCss from "./filter.css.js";
|
|
15
15
|
export var ProblemSortView;
|
|
@@ -8,10 +8,10 @@ import { customElement, property } from "lit/decorators.js";
|
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
9
|
import { marked } from "marked";
|
|
10
10
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
11
|
-
import { ProblemDrawerEventType } from "
|
|
12
|
-
import { OpenProblemDrawer } from "
|
|
11
|
+
import { ProblemDrawerEventType } from "../problem-list/details-drawer.js";
|
|
12
|
+
import { OpenProblemDrawer } from "../../events/doctor.js";
|
|
13
13
|
import diagnosticEvaluationCss from "./diagnostic-evaluation.css.js";
|
|
14
|
-
import listsCss from "
|
|
14
|
+
import listsCss from "../../css/lists.css.js";
|
|
15
15
|
let DiagnosticEvaluation = class DiagnosticEvaluation extends LitElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
import { ProblemItem } from "
|
|
2
|
+
import { ProblemItem } from "../problem-list/problem-item.js";
|
|
3
3
|
export declare class ProblemOverviewGroup extends LitElement {
|
|
4
4
|
static styles: import("lit").CSSResult[];
|
|
5
5
|
rank: number;
|
|
@@ -7,11 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { customElement, property } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
9
|
import problemOverviewGroupCss from "./problem-overview-group.css.js";
|
|
10
|
-
import { ProblemDrawerEventType } from "
|
|
11
|
-
import { OpenProblemDrawer, ProblemClicked, RuleClicked } from "
|
|
12
|
-
import sharedCss from "
|
|
13
|
-
import buttonCss from "
|
|
14
|
-
import { ProblemItem } from "
|
|
10
|
+
import { ProblemDrawerEventType } from "../problem-list/details-drawer.js";
|
|
11
|
+
import { OpenProblemDrawer, ProblemClicked, RuleClicked } from "../../events/doctor.js";
|
|
12
|
+
import sharedCss from "../../css/shared.css.js";
|
|
13
|
+
import buttonCss from "../../css/button.css.js";
|
|
14
|
+
import { ProblemItem } from "../problem-list/problem-item.js";
|
|
15
15
|
let ProblemOverviewGroup = class ProblemOverviewGroup extends LitElement {
|
|
16
16
|
constructor() {
|
|
17
17
|
super();
|
|
@@ -2,8 +2,8 @@ import '@shoelace-style/shoelace/dist/components/card/card.js';
|
|
|
2
2
|
import './problem-statistic.js';
|
|
3
3
|
import './document-statistic.js';
|
|
4
4
|
import { LitElement } from "lit";
|
|
5
|
-
import { DrDiagnostics } from "
|
|
6
|
-
import { ProblemItem } from "
|
|
5
|
+
import { DrDiagnostics } from "../../model/document-statistics.js";
|
|
6
|
+
import { ProblemItem } from "../problem-list/problem-item.js";
|
|
7
7
|
export declare class ProblemStatisticsComponent extends LitElement {
|
|
8
8
|
static styles: import("lit").CSSResult[];
|
|
9
9
|
problems: ProblemItem[];
|
|
@@ -9,9 +9,9 @@ import './problem-statistic.js';
|
|
|
9
9
|
import './document-statistic.js';
|
|
10
10
|
import { customElement, property } from "lit/decorators.js";
|
|
11
11
|
import { html, LitElement } from "lit";
|
|
12
|
-
import { Problem } from "
|
|
12
|
+
import { Problem } from "../../model/problem.js";
|
|
13
13
|
import problemStatisticsCss from "./problem-statistics.css.js";
|
|
14
|
-
import { DocumentStatistics } from "
|
|
14
|
+
import { DocumentStatistics } from "../../model/document-statistics.js";
|
|
15
15
|
let ProblemStatisticsComponent = class ProblemStatisticsComponent extends LitElement {
|
|
16
16
|
// private problemStatistics: ProblemStatistics;
|
|
17
17
|
constructor() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import './diagnostic-evaluation.js';
|
|
3
|
-
import '
|
|
3
|
+
import '../percent-bar/percent-bar.js';
|
|
4
4
|
import { SlResizeObserver } from "@shoelace-style/shoelace";
|
|
5
|
-
import { ProblemItem } from "
|
|
6
|
-
import { DrDiagnostics } from "
|
|
5
|
+
import { ProblemItem } from "../problem-list/problem-item.js";
|
|
6
|
+
import { DrDiagnostics } from "../../model/document-statistics.js";
|
|
7
7
|
export declare class ProblemsOverview extends LitElement {
|
|
8
8
|
static styles: import("lit").CSSResult[];
|
|
9
9
|
problemList: ProblemItem[];
|
|
@@ -6,14 +6,14 @@ 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 { Problem } from "
|
|
9
|
+
import { Problem } from "../../model/problem.js";
|
|
10
10
|
import { ProblemStatisticsComponent } from "./problem-statistics.js";
|
|
11
11
|
import './diagnostic-evaluation.js';
|
|
12
|
-
import '
|
|
12
|
+
import '../percent-bar/percent-bar.js';
|
|
13
13
|
import { ProblemOverviewGroup } from "./problem-overview-group.js";
|
|
14
14
|
import problemsOverviewCss from "./problems-overview.css.js";
|
|
15
|
-
import { Paginator } from "
|
|
16
|
-
import { DrDiagnostics } from "
|
|
15
|
+
import { Paginator } from "../paginator/paginator.js";
|
|
16
|
+
import { DrDiagnostics } from "../../model/document-statistics.js";
|
|
17
17
|
let ProblemsOverview = class ProblemsOverview extends LitElement {
|
|
18
18
|
constructor() {
|
|
19
19
|
super();
|
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { customElement, property, query } from "lit/decorators.js";
|
|
8
8
|
import { html, LitElement } from "lit";
|
|
9
9
|
import statusBarCss from "./status-bar.css.js";
|
|
10
|
-
import linksCss from "
|
|
10
|
+
import linksCss from "../../css/links.css.js";
|
|
11
11
|
let StatusBar = class StatusBar extends LitElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super();
|
|
@@ -5,8 +5,8 @@ import '@shoelace-style/shoelace/dist/components/tab/tab.js';
|
|
|
5
5
|
import '@shoelace-style/shoelace/dist/components/switch/switch.js';
|
|
6
6
|
import '@shoelace-style/shoelace/dist/components/dialog/dialog.js';
|
|
7
7
|
import { LitElement } from "lit";
|
|
8
|
-
import { EditorUpdatedEvent, ProblemRuleFilterChangedEvent } from "
|
|
9
|
-
import { ProblemDrawerEvent } from "
|
|
8
|
+
import { EditorUpdatedEvent, ProblemRuleFilterChangedEvent } from "../../events/doctor";
|
|
9
|
+
import { ProblemDrawerEvent } from "../problem-list/details-drawer.js";
|
|
10
10
|
import { SlSwitch, SlTab, SlTabGroup } from "@shoelace-style/shoelace";
|
|
11
11
|
export declare const DoctorDocumentBag = "pb33f-doctor-editor";
|
|
12
12
|
export declare const HowToFixBag = "pb33f-doctor-howtofix";
|
|
@@ -12,18 +12,18 @@ import '@shoelace-style/shoelace/dist/components/switch/switch.js';
|
|
|
12
12
|
import '@shoelace-style/shoelace/dist/components/dialog/dialog.js';
|
|
13
13
|
import { customElement, property, query } from "lit/decorators.js";
|
|
14
14
|
import { html, LitElement } from "lit";
|
|
15
|
-
import { SpecEditor } from "
|
|
16
|
-
import { ActiveView, EditorClicked, EditorUpdated, OpenProblemDrawer, ProblemClicked, ProblemRuleFilterChangedManual, RuleClicked } from "
|
|
15
|
+
import { SpecEditor } from "../editor/editor.js";
|
|
16
|
+
import { ActiveView, EditorClicked, EditorUpdated, OpenProblemDrawer, ProblemClicked, ProblemRuleFilterChangedManual, RuleClicked } from "../../events/doctor";
|
|
17
17
|
import { CreateBagManager } from "@pb33f/saddlebag";
|
|
18
|
-
import { LintingService } from "
|
|
19
|
-
import { ProblemList } from "
|
|
20
|
-
import { Problem } from "
|
|
21
|
-
import { ProblemDetailsDrawer, ProblemDrawerEventType } from "
|
|
22
|
-
import RuleDocumentationWorker from "
|
|
18
|
+
import { LintingService } from "../../services/linting-service";
|
|
19
|
+
import { ProblemList } from "../../components/problem-list/problem-list.js";
|
|
20
|
+
import { Problem } from "../../model/problem.js";
|
|
21
|
+
import { ProblemDetailsDrawer, ProblemDrawerEventType } from "../problem-list/details-drawer.js";
|
|
22
|
+
import RuleDocumentationWorker from "../../workers/rule-documentation.worker.js?worker";
|
|
23
23
|
import theDoctorCss from "./the-doctor.css.js";
|
|
24
|
-
import { ProblemsOverview } from "
|
|
25
|
-
import { ErrorBanner } from "
|
|
26
|
-
import { StatusBar } from "
|
|
24
|
+
import { ProblemsOverview } from "../problems-overview/problems-overview.js";
|
|
25
|
+
import { ErrorBanner } from "../error-banner/error-banner.js";
|
|
26
|
+
import { StatusBar } from "../the-doctor/status-bar.js";
|
|
27
27
|
export const DoctorDocumentBag = "pb33f-doctor-editor";
|
|
28
28
|
export const HowToFixBag = "pb33f-doctor-howtofix";
|
|
29
29
|
export const RuleDocumentationBag = "pb33f-doctor-ruledocs";
|
package/dist/events/doctor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProblemItem } from "
|
|
2
|
-
import { Problem } from "
|
|
1
|
+
import { ProblemItem } from "../components/problem-list/problem-item";
|
|
2
|
+
import { Problem } from "../model/problem";
|
|
3
3
|
export declare const EditorUpdated: string;
|
|
4
4
|
export declare const EditorClicked: string;
|
|
5
5
|
export declare const ProblemClicked: string;
|
package/dist/model/problem.js
CHANGED
|
@@ -1,68 +1,4 @@
|
|
|
1
1
|
import * as monaco from "monaco-editor";
|
|
2
|
-
// export class ProblemStatistics {
|
|
3
|
-
// private _problems: ProblemItem[];
|
|
4
|
-
//
|
|
5
|
-
// errors: number;
|
|
6
|
-
// warnings: number;
|
|
7
|
-
// info: number;
|
|
8
|
-
// totalViolations: number;
|
|
9
|
-
// rulesViolated: number;
|
|
10
|
-
// categoriesViolated: number;
|
|
11
|
-
//
|
|
12
|
-
// constructor(problems: ProblemItem[]) {
|
|
13
|
-
// this.errors = 0;
|
|
14
|
-
// this.warnings = 0;
|
|
15
|
-
// this.info = 0;
|
|
16
|
-
// this.totalViolations = 0;
|
|
17
|
-
// this.rulesViolated = 0;
|
|
18
|
-
// this.categoriesViolated = 0;
|
|
19
|
-
// if (problems) {
|
|
20
|
-
// this.buildProblemStatistics(problems);
|
|
21
|
-
// }
|
|
22
|
-
// }
|
|
23
|
-
//
|
|
24
|
-
// private getErrors(): number {
|
|
25
|
-
// return this._problems.filter((problem) => {
|
|
26
|
-
// return problem.problemObject.severity === monaco.MarkerSeverity.Error;
|
|
27
|
-
// }).length;
|
|
28
|
-
// }
|
|
29
|
-
//
|
|
30
|
-
// private getWarnings(): number {
|
|
31
|
-
// return this._problems.filter((problem) => {
|
|
32
|
-
// return problem.problemObject.severity === monaco.MarkerSeverity.Warning;
|
|
33
|
-
// }).length;
|
|
34
|
-
// }
|
|
35
|
-
//
|
|
36
|
-
// private getInfo(): number {
|
|
37
|
-
// return this._problems.filter((problem) => {
|
|
38
|
-
// return problem?.problemObject?.severity === monaco.MarkerSeverity.Info;
|
|
39
|
-
// }).length;
|
|
40
|
-
// }
|
|
41
|
-
//
|
|
42
|
-
// get problems(): ProblemItem[] {
|
|
43
|
-
// return this._problems;
|
|
44
|
-
// }
|
|
45
|
-
//
|
|
46
|
-
// private buildProblemStatistics(problems: ProblemItem[]) {
|
|
47
|
-
// this._problems = problems;
|
|
48
|
-
// this.info = this.getInfo();
|
|
49
|
-
// this.errors = this.getErrors();
|
|
50
|
-
// this.warnings = this.getWarnings();
|
|
51
|
-
// this.totalViolations = this.errors + this.warnings + this.info;
|
|
52
|
-
// this.rulesViolated = new Set(problems.map((problem) => {
|
|
53
|
-
// return problem.source;
|
|
54
|
-
// })).size;
|
|
55
|
-
// this.categoriesViolated = new Set(problems.map((problem) => {
|
|
56
|
-
// return problem.problemObject.category;
|
|
57
|
-
// })).size
|
|
58
|
-
//
|
|
59
|
-
// }
|
|
60
|
-
//
|
|
61
|
-
// set problems(problems: ProblemItem[]) {
|
|
62
|
-
// this.buildProblemStatistics(problems);
|
|
63
|
-
// }
|
|
64
|
-
//
|
|
65
|
-
// }
|
|
66
2
|
export class Problem {
|
|
67
3
|
static reconstruct(problem) {
|
|
68
4
|
return new Problem(problem.category, problem.jsonPath, problem.endColumn, problem.endLineNumber, problem.message, problem.severity, problem.startColumn, problem.startLineNumber, problem.source, problem.id);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Problem } from "
|
|
2
|
-
import { HowToFix } from "
|
|
3
|
-
import { DrDiagnostics } from "
|
|
4
|
-
import { Session } from "
|
|
1
|
+
import { Problem } from "../model/problem";
|
|
2
|
+
import { HowToFix } from "../model/how_to_fix";
|
|
3
|
+
import { DrDiagnostics } from "../model/document-statistics";
|
|
4
|
+
import { Session } from "../model/session";
|
|
5
5
|
export declare class LintingService {
|
|
6
6
|
static doctorEndpoint: string;
|
|
7
7
|
static compareProblems(a: Problem, b: Problem): number;
|
package/package.json
CHANGED