@pb33f/cowboy-components 0.1.5 → 0.1.6
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.d.ts +0 -5
- package/dist/components/editor/editor.js +19 -14
- package/dist/components/the-doctor/the-doctor.d.ts +2 -1
- package/dist/components/the-doctor/the-doctor.js +5 -4
- package/dist/cowboy-components.umd.cjs +229 -2097
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/abap-DXvTa7XC.js +0 -1404
- package/dist/apex-DsQH3mjJ.js +0 -332
- package/dist/assets/css.worker-B_qZXUzt.js +0 -84
- package/dist/assets/html.worker-D3WUrk8Q.js +0 -458
- package/dist/assets/json.worker-CAhUaBo4.js +0 -42
- package/dist/azcli-Cir32SBk.js +0 -74
- package/dist/bat-BsNExolo.js +0 -106
- package/dist/bicep-2KcKzeQF.js +0 -108
- package/dist/cameligo-D0ezznwE.js +0 -180
- package/dist/clojure-DxYzAIlu.js +0 -767
- package/dist/coffee-DgiPTF3g.js +0 -238
- package/dist/cowboy-components-hbd_SH05.js +0 -114403
- package/dist/cpp-Bq-GnYlH.js +0 -407
- package/dist/csharp-IDcibKAT.js +0 -332
- package/dist/csp-QdYr8JWa.js +0 -59
- package/dist/css-C-wMMefI.js +0 -193
- package/dist/cssMode-CfZSjkJv.js +0 -1541
- package/dist/cypher-BfBo9yir.js +0 -269
- package/dist/dart-Cv3rVfv_.js +0 -287
- package/dist/dockerfile-DyCXBGhV.js +0 -136
- package/dist/ecl-COP_iObm.js +0 -462
- package/dist/elixir-DoEhbk9F.js +0 -575
- package/dist/flow9-DuHGSNW1.js +0 -148
- package/dist/freemarker2-BCtMhUKE.js +0 -995
- package/dist/fsharp-Dv9PDxVO.js +0 -223
- package/dist/go-CcdAeqiK.js +0 -224
- package/dist/graphql-CoRm4b1H.js +0 -157
- package/dist/handlebars-BUEU1owd.js +0 -425
- package/dist/hcl-BSgAhV5f.js +0 -189
- package/dist/html-CRlKlrfQ.js +0 -314
- package/dist/htmlMode-cS9DqVfn.js +0 -1551
- package/dist/ini-ewx9HLIq.js +0 -77
- package/dist/java-B5lwcbTy.js +0 -238
- package/dist/javascript-BMaV8auA.js +0 -76
- package/dist/jsonMode-D62-dAOQ.js +0 -1958
- package/dist/julia-NCcg_P_q.js +0 -517
- package/dist/kotlin-BYlnmGrb.js +0 -259
- package/dist/less-DG4tqgOo.js +0 -168
- package/dist/lexon-CTTPcJLv.js +0 -163
- package/dist/liquid-BbJLFywP.js +0 -246
- package/dist/lua-CxQ1RWuo.js +0 -168
- package/dist/m3-mHFfpmgx.js +0 -216
- package/dist/markdown-Dh6sYULt.js +0 -235
- package/dist/mdx-DrSxsH3F.js +0 -171
- package/dist/mips-CNUcjHD1.js +0 -204
- package/dist/msdax-ZvxFeKvs.js +0 -381
- package/dist/mysql-COjg31sJ.js +0 -884
- package/dist/objective-c-BqrCFBhT.js +0 -189
- package/dist/pascal-CUpkilAS.js +0 -257
- package/dist/pascaligo-nJfvRJ7x.js +0 -170
- package/dist/perl-CWsX6Ysg.js +0 -632
- package/dist/pgsql-DwgpEXC8.js +0 -857
- package/dist/php-CrbKyd62.js +0 -506
- package/dist/pla-JxXT6Kb-.js +0 -143
- package/dist/postiats-BOdnTRGv.js +0 -913
- package/dist/powerquery-DTkwcXGH.js +0 -896
- package/dist/powershell-Cx53dGpt.js +0 -245
- package/dist/protobuf-Dp9vE-l-.js +0 -426
- package/dist/pug-BSjKVjwP.js +0 -408
- package/dist/python-DG6cictE.js +0 -282
- package/dist/qsharp-C5P1RxY3.js +0 -291
- package/dist/r-sEMYnclc.js +0 -249
- package/dist/razor-DBF9cLix.js +0 -556
- package/dist/redis-DbzUc-fU.js +0 -308
- package/dist/redshift-nrLijj1O.js +0 -815
- package/dist/restructuredtext-CIbGUl6T.js +0 -180
- package/dist/ruby-JcYJisWg.js +0 -517
- package/dist/rust-BgbFBFXH.js +0 -349
- package/dist/sb-hRFFChi7.js +0 -121
- package/dist/scala-Cs0yVo3Q.js +0 -376
- package/dist/scheme-l_0jNtxy.js +0 -114
- package/dist/scss-C4l7ZIRR.js +0 -268
- package/dist/shell-ikLk_l24.js +0 -227
- package/dist/solidity-4GxCaH9e.js +0 -1373
- package/dist/sophia-tX0WEZsZ.js +0 -205
- package/dist/sparql-D7ky-uMk.js +0 -207
- package/dist/sql-CqEfBVGS.js +0 -859
- package/dist/st-CNWQPqyI.js +0 -422
- package/dist/swift-C_fDfC0d.js +0 -318
- package/dist/systemverilog-gAvsEtN_.js +0 -582
- package/dist/tcl-KbBChuA6.js +0 -238
- package/dist/tsMode-7L6KLcwZ.js +0 -886
- package/dist/twig-Bb652BpM.js +0 -398
- package/dist/typescript-C_3m4WAt.js +0 -349
- package/dist/vb-2e5hSeUh.js +0 -378
- package/dist/wgsl-CYSDq0zg.js +0 -445
- package/dist/xml-DPOtHDhT.js +0 -101
- package/dist/yaml-DgATCSyQ.js +0 -212
|
@@ -14,24 +14,24 @@ import styles from "monaco-editor/min/vs/editor/editor.main.css?inline";
|
|
|
14
14
|
// @ts-ignore
|
|
15
15
|
import editorWorker from "monaco-editor/esm/vs/editor/editor.worker?worker";
|
|
16
16
|
// @ts-ignore
|
|
17
|
-
import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
17
|
+
//import htmlWorker from "monaco-editor/esm/vs/language/html/html.worker?worker";
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
19
|
+
//import cssWorker from "monaco-editor/esm/vs/language/css/css.worker?worker";
|
|
20
20
|
// @ts-ignore
|
|
21
|
-
import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
22
|
-
import { EditorClicked, EditorUpdated } from "../../events/doctor";
|
|
21
|
+
//import jsonWorker from "monaco-editor/esm/vs/language/json/json.worker?worker";
|
|
22
|
+
import { EditorClicked, EditorUpdated } from "../../events/doctor.js";
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
self.MonacoEnvironment = {
|
|
25
|
-
getWorker(_
|
|
26
|
-
if (label === "json") {
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
if (label === "html") {
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
if (label === "css" || label === "scss" || label === "less") {
|
|
33
|
-
|
|
34
|
-
}
|
|
25
|
+
getWorker(_) {
|
|
26
|
+
// if (label === "json") {
|
|
27
|
+
// return new jsonWorker();
|
|
28
|
+
// }
|
|
29
|
+
// if (label === "html") {
|
|
30
|
+
// return new htmlWorker();
|
|
31
|
+
// }
|
|
32
|
+
// if (label === "css" || label === "scss" || label === "less") {
|
|
33
|
+
// return new cssWorker();
|
|
34
|
+
// }
|
|
35
35
|
return new editorWorker();
|
|
36
36
|
},
|
|
37
37
|
};
|
|
@@ -190,3 +190,8 @@ SpecEditor = __decorate([
|
|
|
190
190
|
customElement("pb33f-editor")
|
|
191
191
|
], SpecEditor);
|
|
192
192
|
export { SpecEditor };
|
|
193
|
+
// declare global {
|
|
194
|
+
// interface HTMLElementTagNameMap {
|
|
195
|
+
// "pb33f-editor": SpecEditor;
|
|
196
|
+
// }
|
|
197
|
+
// }
|
|
@@ -4,8 +4,9 @@ import '@shoelace-style/shoelace/dist/components/tab-panel/tab-panel.js';
|
|
|
4
4
|
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
|
+
import '@shoelace-style/shoelace/dist/components/alert/alert.js';
|
|
7
8
|
import { LitElement } from "lit";
|
|
8
|
-
import { EditorUpdatedEvent, ProblemRuleFilterChangedEvent } from "../../events/doctor";
|
|
9
|
+
import { EditorUpdatedEvent, ProblemRuleFilterChangedEvent } from "../../events/doctor.js";
|
|
9
10
|
import { ProblemDrawerEvent } from "../problem-list/details-drawer.js";
|
|
10
11
|
import { SlSwitch, SlTab, SlTabGroup } from "@shoelace-style/shoelace";
|
|
11
12
|
export declare const DoctorDocumentBag = "pb33f-doctor-editor";
|
|
@@ -10,12 +10,13 @@ import '@shoelace-style/shoelace/dist/components/tab-panel/tab-panel.js';
|
|
|
10
10
|
import '@shoelace-style/shoelace/dist/components/tab/tab.js';
|
|
11
11
|
import '@shoelace-style/shoelace/dist/components/switch/switch.js';
|
|
12
12
|
import '@shoelace-style/shoelace/dist/components/dialog/dialog.js';
|
|
13
|
+
import '@shoelace-style/shoelace/dist/components/alert/alert.js';
|
|
13
14
|
import { customElement, property, query } from "lit/decorators.js";
|
|
14
15
|
import { html, LitElement } from "lit";
|
|
15
16
|
import { SpecEditor } from "../editor/editor.js";
|
|
16
|
-
import { ActiveView, EditorClicked, EditorUpdated, OpenProblemDrawer, ProblemClicked, ProblemRuleFilterChangedManual, RuleClicked } from "../../events/doctor";
|
|
17
|
+
import { ActiveView, EditorClicked, EditorUpdated, OpenProblemDrawer, ProblemClicked, ProblemRuleFilterChangedManual, RuleClicked } from "../../events/doctor.js";
|
|
17
18
|
import { CreateBagManager } from "@pb33f/saddlebag";
|
|
18
|
-
import { LintingService } from "../../services/linting-service";
|
|
19
|
+
import { LintingService } from "../../services/linting-service.js";
|
|
19
20
|
import { ProblemList } from "../../components/problem-list/problem-list.js";
|
|
20
21
|
import { Problem } from "../../model/problem.js";
|
|
21
22
|
import { ProblemDetailsDrawer, ProblemDrawerEventType } from "../problem-list/details-drawer.js";
|
|
@@ -32,12 +33,12 @@ export const OWASPBag = "pb33f-doctor-owasp";
|
|
|
32
33
|
export const DefaultDocument = "document";
|
|
33
34
|
export const DocumentProblems = "problems";
|
|
34
35
|
let TheDoctor = class TheDoctor extends LitElement {
|
|
35
|
-
//private doctorEndpoint: string = "http://localhost:9090";
|
|
36
36
|
constructor() {
|
|
37
37
|
super();
|
|
38
38
|
this.debounceTime = 300;
|
|
39
39
|
this.bounceId = 0;
|
|
40
|
-
|
|
40
|
+
//private doctorEndpoint: string = "https://doctor.pb33f.io";
|
|
41
|
+
this.doctorEndpoint = "http://localhost:9090";
|
|
41
42
|
// create a stateful bag manager
|
|
42
43
|
this.bagManager = CreateBagManager(true);
|
|
43
44
|
this.bagManager.loadStatefulBags().then(this.loadState.bind(this));
|