dragon-editor 3.1.1 → 3.2.1
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/README.md +5 -0
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/components/DragonEditor.vue +480 -36
- package/dist/runtime/components/DragonEditorViewer.vue +265 -9
- package/dist/runtime/scss/editor.css +317 -11
- package/dist/runtime/scss/viewer.css +251 -3
- package/dist/runtime/store.d.ts +3 -0
- package/dist/runtime/store.mjs +18 -0
- package/dist/runtime/type.d.ts +26 -9
- package/dist/runtime/utils/block.d.ts +4 -2
- package/dist/runtime/utils/block.mjs +40 -7
- package/dist/runtime/utils/content.mjs +10 -6
- package/dist/runtime/utils/controlBar.d.ts +9 -0
- package/dist/runtime/utils/controlBar.mjs +168 -0
- package/dist/runtime/utils/convertor.mjs +26 -33
- package/dist/runtime/utils/keyboardEvent.d.ts +2 -2
- package/dist/runtime/utils/keyboardEvent.mjs +89 -30
- package/dist/runtime/utils/style.mjs +288 -281
- package/package.json +2 -1
- package/dist/runtime/utils/ui.d.ts +0 -0
- package/dist/runtime/utils/ui.mjs +0 -0
- /package/{License.txt → LICENSE} +0 -0
|
@@ -145,28 +145,30 @@
|
|
|
145
145
|
padding: 20px;
|
|
146
146
|
line-height: 1.6;
|
|
147
147
|
}
|
|
148
|
-
.dragon-editor .de-
|
|
148
|
+
.dragon-editor .de-menu-bar {
|
|
149
149
|
position: absolute;
|
|
150
150
|
top: 0;
|
|
151
151
|
left: 0;
|
|
152
152
|
right: 0;
|
|
153
153
|
height: 38px;
|
|
154
|
+
background: #fff;
|
|
154
155
|
border-bottom: 1px solid #ccc;
|
|
156
|
+
z-index: 10;
|
|
155
157
|
}
|
|
156
|
-
.dragon-editor .de-
|
|
158
|
+
.dragon-editor .de-menu-bar .de-menu {
|
|
157
159
|
min-width: 38px;
|
|
158
160
|
height: 38px;
|
|
159
161
|
padding: 0 8px;
|
|
160
162
|
border-right: 1px solid #ccc;
|
|
161
163
|
box-sizing: border-box;
|
|
162
164
|
}
|
|
163
|
-
.dragon-editor .de-
|
|
165
|
+
.dragon-editor .de-menu-bar .de-menu.--lastchild {
|
|
164
166
|
border-right: 0;
|
|
165
167
|
}
|
|
166
|
-
.dragon-editor .de-
|
|
168
|
+
.dragon-editor .de-menu-bar .de-menu .de-path.--red {
|
|
167
169
|
fill: #dd0000;
|
|
168
170
|
}
|
|
169
|
-
.dragon-editor .de-
|
|
171
|
+
.dragon-editor .de-menu-bar .de-block-menu-area {
|
|
170
172
|
display: none;
|
|
171
173
|
position: absolute;
|
|
172
174
|
top: 39px;
|
|
@@ -176,18 +178,49 @@
|
|
|
176
178
|
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
|
|
177
179
|
z-index: 1000;
|
|
178
180
|
}
|
|
179
|
-
.dragon-editor .de-
|
|
181
|
+
.dragon-editor .de-menu-bar .de-block-menu-area.--active {
|
|
180
182
|
display: block;
|
|
181
183
|
}
|
|
182
|
-
.dragon-editor .de-
|
|
184
|
+
.dragon-editor .de-menu-bar .de-block-menu-area .de-list {
|
|
183
185
|
display: flex;
|
|
184
186
|
flex-direction: column;
|
|
185
187
|
gap: 5px;
|
|
186
188
|
padding: 5px;
|
|
187
189
|
}
|
|
188
|
-
.dragon-editor .de-
|
|
190
|
+
.dragon-editor .de-menu-bar .de-block-menu-area .de-add-block {
|
|
189
191
|
line-height: 1.6;
|
|
190
192
|
}
|
|
193
|
+
.dragon-editor .de-control-bar {
|
|
194
|
+
display: none;
|
|
195
|
+
position: fixed;
|
|
196
|
+
height: 38px;
|
|
197
|
+
background: #fff;
|
|
198
|
+
border: 1px solid #ccc;
|
|
199
|
+
border-width: 1px 0 0 1px;
|
|
200
|
+
transform: translateX(-50%);
|
|
201
|
+
z-index: 20;
|
|
202
|
+
}
|
|
203
|
+
.dragon-editor .de-control-bar.--active {
|
|
204
|
+
display: flex;
|
|
205
|
+
}
|
|
206
|
+
.dragon-editor .de-control-bar:empty {
|
|
207
|
+
display: none;
|
|
208
|
+
}
|
|
209
|
+
.dragon-editor .de-control-bar .de-col {
|
|
210
|
+
display: flex;
|
|
211
|
+
align-items: center;
|
|
212
|
+
column-gap: 6px;
|
|
213
|
+
padding: 0 10px;
|
|
214
|
+
border: 1px solid #ccc;
|
|
215
|
+
border-width: 0 1px 1px 0;
|
|
216
|
+
}
|
|
217
|
+
.dragon-editor .de-control-bar .de-col .de-selector {
|
|
218
|
+
height: 100%;
|
|
219
|
+
border: 0;
|
|
220
|
+
}
|
|
221
|
+
.dragon-editor .de-block {
|
|
222
|
+
width: 100%;
|
|
223
|
+
}
|
|
191
224
|
.dragon-editor .de-text-block {
|
|
192
225
|
min-height: 1.6em;
|
|
193
226
|
outline: 0;
|
|
@@ -222,8 +255,28 @@
|
|
|
222
255
|
flex-direction: column;
|
|
223
256
|
row-gap: 4px;
|
|
224
257
|
padding-left: 24px;
|
|
258
|
+
}
|
|
259
|
+
.dragon-editor .de-list-block[data-style=disc] {
|
|
225
260
|
list-style: disc;
|
|
226
261
|
}
|
|
262
|
+
.dragon-editor .de-list-block[data-style=square] {
|
|
263
|
+
list-style: square;
|
|
264
|
+
}
|
|
265
|
+
.dragon-editor .de-list-block[data-style=decimal] {
|
|
266
|
+
list-style: decimal;
|
|
267
|
+
}
|
|
268
|
+
.dragon-editor .de-list-block[data-style=lower-alpha] {
|
|
269
|
+
list-style: lower-alpha;
|
|
270
|
+
}
|
|
271
|
+
.dragon-editor .de-list-block[data-style=upper-alpha] {
|
|
272
|
+
list-style: upper-alpha;
|
|
273
|
+
}
|
|
274
|
+
.dragon-editor .de-list-block[data-style=lower-roman] {
|
|
275
|
+
list-style: lower-roman;
|
|
276
|
+
}
|
|
277
|
+
.dragon-editor .de-list-block[data-style=upper-roman] {
|
|
278
|
+
list-style: upper-roman;
|
|
279
|
+
}
|
|
227
280
|
.dragon-editor .de-list-block .de-item {
|
|
228
281
|
min-height: 1.6em;
|
|
229
282
|
outline: 0;
|
|
@@ -235,9 +288,6 @@
|
|
|
235
288
|
color: #ccc;
|
|
236
289
|
cursor: text;
|
|
237
290
|
}
|
|
238
|
-
.dragon-editor ol.de-list-block {
|
|
239
|
-
list-style: decimal;
|
|
240
|
-
}
|
|
241
291
|
.dragon-editor .de-image-block {
|
|
242
292
|
display: flex;
|
|
243
293
|
align-items: center;
|
|
@@ -523,6 +573,262 @@
|
|
|
523
573
|
color: #ccc;
|
|
524
574
|
cursor: text;
|
|
525
575
|
}
|
|
576
|
+
.dragon-editor .de-code-block {
|
|
577
|
+
display: flex;
|
|
578
|
+
flex-wrap: wrap;
|
|
579
|
+
}
|
|
580
|
+
.dragon-editor .de-code-block .de-filename {
|
|
581
|
+
flex: 1;
|
|
582
|
+
padding: 5px 10px;
|
|
583
|
+
box-sizing: border-box;
|
|
584
|
+
outline: 0;
|
|
585
|
+
}
|
|
586
|
+
.dragon-editor .de-code-block .de-filename:empty:hover::before, .dragon-editor .de-code-block .de-filename:empty:focus::before {
|
|
587
|
+
display: inline;
|
|
588
|
+
content: "Type a Filename";
|
|
589
|
+
cursor: text;
|
|
590
|
+
}
|
|
591
|
+
.dragon-editor .de-code-block .de-language {
|
|
592
|
+
width: 120px;
|
|
593
|
+
text-align: right;
|
|
594
|
+
padding: 5px 10px;
|
|
595
|
+
box-sizing: border-box;
|
|
596
|
+
}
|
|
597
|
+
.dragon-editor .de-code-block .de-pre {
|
|
598
|
+
width: 100%;
|
|
599
|
+
padding: 10px;
|
|
600
|
+
box-sizing: border-box;
|
|
601
|
+
white-space: pre-wrap;
|
|
602
|
+
}
|
|
603
|
+
.dragon-editor .de-code-block .de-pre .de-code-content {
|
|
604
|
+
display: block;
|
|
605
|
+
min-height: 1.6em;
|
|
606
|
+
width: 100%;
|
|
607
|
+
font-family: Inconsolata, monospace, sans-serif;
|
|
608
|
+
word-break: break-word;
|
|
609
|
+
outline: 0;
|
|
610
|
+
}
|
|
611
|
+
.dragon-editor .de-code-block .de-pre .de-code-content:empty:hover::before, .dragon-editor .de-code-block .de-pre .de-code-content:empty:focus::before {
|
|
612
|
+
display: inline;
|
|
613
|
+
content: "Type a Code";
|
|
614
|
+
cursor: text;
|
|
615
|
+
}
|
|
616
|
+
.dragon-editor .de-code-block[data-theme=github] {
|
|
617
|
+
color: #24292e;
|
|
618
|
+
background: #f1f1f1;
|
|
619
|
+
}
|
|
620
|
+
.dragon-editor .de-code-block[data-theme=github] .de-filename {
|
|
621
|
+
color: #24292e;
|
|
622
|
+
background: #ccc;
|
|
623
|
+
}
|
|
624
|
+
.dragon-editor .de-code-block[data-theme=github] .de-filename:empty:hover::before, .dragon-editor .de-code-block[data-theme=github] .de-filename:empty:focus::before {
|
|
625
|
+
color: #8b8d8f;
|
|
626
|
+
}
|
|
627
|
+
.dragon-editor .de-code-block[data-theme=github] .de-language {
|
|
628
|
+
color: #24292e;
|
|
629
|
+
background: #ccc;
|
|
630
|
+
}
|
|
631
|
+
.dragon-editor .de-code-block[data-theme=github] .de-language:empty:hover::before, .dragon-editor .de-code-block[data-theme=github] .de-language:empty:focus::before {
|
|
632
|
+
color: #8b8d8f;
|
|
633
|
+
}
|
|
634
|
+
.dragon-editor .de-code-block[data-theme=github] .de-code-content:empty:hover::before, .dragon-editor .de-code-block[data-theme=github] .de-code-content:empty:focus::before {
|
|
635
|
+
color: #8b8d8f;
|
|
636
|
+
}
|
|
637
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-doctag,
|
|
638
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-keyword,
|
|
639
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-meta .hljs-keyword,
|
|
640
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-template-tag,
|
|
641
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-template-variable,
|
|
642
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-type,
|
|
643
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-variable.language_ {
|
|
644
|
+
/* prettylights-syntax-keyword */
|
|
645
|
+
color: #d73a49;
|
|
646
|
+
}
|
|
647
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-title,
|
|
648
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-title.class_,
|
|
649
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-title.class_.inherited__,
|
|
650
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-title.function_ {
|
|
651
|
+
/* prettylights-syntax-entity */
|
|
652
|
+
color: #6f42c1;
|
|
653
|
+
}
|
|
654
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-attr,
|
|
655
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-attribute,
|
|
656
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-literal,
|
|
657
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-meta,
|
|
658
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-number,
|
|
659
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-operator,
|
|
660
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-variable,
|
|
661
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-selector-attr,
|
|
662
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-selector-class,
|
|
663
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-selector-id {
|
|
664
|
+
/* prettylights-syntax-constant */
|
|
665
|
+
color: #005cc5;
|
|
666
|
+
}
|
|
667
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-regexp,
|
|
668
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-string,
|
|
669
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-meta .hljs-string {
|
|
670
|
+
/* prettylights-syntax-string */
|
|
671
|
+
color: #032f62;
|
|
672
|
+
}
|
|
673
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-built_in,
|
|
674
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-symbol {
|
|
675
|
+
/* prettylights-syntax-variable */
|
|
676
|
+
color: #e36209;
|
|
677
|
+
}
|
|
678
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-comment,
|
|
679
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-code,
|
|
680
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-formula {
|
|
681
|
+
/* prettylights-syntax-comment */
|
|
682
|
+
color: #6a737d;
|
|
683
|
+
}
|
|
684
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-name,
|
|
685
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-quote,
|
|
686
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-selector-tag,
|
|
687
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-selector-pseudo {
|
|
688
|
+
/* prettylights-syntax-entity-tag */
|
|
689
|
+
color: #22863a;
|
|
690
|
+
}
|
|
691
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-subst {
|
|
692
|
+
/* prettylights-syntax-storage-modifier-import */
|
|
693
|
+
color: #24292e;
|
|
694
|
+
}
|
|
695
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-section {
|
|
696
|
+
/* prettylights-syntax-markup-heading */
|
|
697
|
+
color: #005cc5;
|
|
698
|
+
font-weight: bold;
|
|
699
|
+
}
|
|
700
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-bullet {
|
|
701
|
+
/* prettylights-syntax-markup-list */
|
|
702
|
+
color: #735c0f;
|
|
703
|
+
}
|
|
704
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-emphasis {
|
|
705
|
+
/* prettylights-syntax-markup-italic */
|
|
706
|
+
color: #24292e;
|
|
707
|
+
font-style: italic;
|
|
708
|
+
}
|
|
709
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-strong {
|
|
710
|
+
/* prettylights-syntax-markup-bold */
|
|
711
|
+
color: #24292e;
|
|
712
|
+
font-weight: bold;
|
|
713
|
+
}
|
|
714
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-addition {
|
|
715
|
+
/* prettylights-syntax-markup-inserted */
|
|
716
|
+
color: #22863a;
|
|
717
|
+
background-color: #f0fff4;
|
|
718
|
+
}
|
|
719
|
+
.dragon-editor .de-code-block[data-theme=github] .hljs-deletion {
|
|
720
|
+
/* prettylights-syntax-markup-deleted */
|
|
721
|
+
color: #b31d28;
|
|
722
|
+
background-color: #ffeef0;
|
|
723
|
+
}
|
|
724
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] {
|
|
725
|
+
color: #adbac7;
|
|
726
|
+
background: #22272e;
|
|
727
|
+
}
|
|
728
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .de-filename {
|
|
729
|
+
color: #adbac7;
|
|
730
|
+
background: #494e54;
|
|
731
|
+
}
|
|
732
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .de-filename:empty:hover::before, .dragon-editor .de-code-block[data-theme=github-dark-dimmed] .de-filename:empty:focus::before {
|
|
733
|
+
color: #96a0aa;
|
|
734
|
+
}
|
|
735
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .de-language {
|
|
736
|
+
color: #adbac7;
|
|
737
|
+
background: #494e54;
|
|
738
|
+
}
|
|
739
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .de-language:empty:hover::before, .dragon-editor .de-code-block[data-theme=github-dark-dimmed] .de-language:empty:focus::before {
|
|
740
|
+
color: #96a0aa;
|
|
741
|
+
}
|
|
742
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .de-code-content:empty:hover::before, .dragon-editor .de-code-block[data-theme=github-dark-dimmed] .de-code-content:empty:focus::before {
|
|
743
|
+
color: #96a0aa;
|
|
744
|
+
}
|
|
745
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-doctag,
|
|
746
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-keyword,
|
|
747
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-meta .hljs-keyword,
|
|
748
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-template-tag,
|
|
749
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-template-variable,
|
|
750
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-type,
|
|
751
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-variable.language_ {
|
|
752
|
+
/* prettylights-syntax-keyword */
|
|
753
|
+
color: #f47067;
|
|
754
|
+
}
|
|
755
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-title,
|
|
756
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-title.class_,
|
|
757
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-title.class_.inherited__,
|
|
758
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-title.function_ {
|
|
759
|
+
/* prettylights-syntax-entity */
|
|
760
|
+
color: #dcbdfb;
|
|
761
|
+
}
|
|
762
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-attr,
|
|
763
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-attribute,
|
|
764
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-literal,
|
|
765
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-meta,
|
|
766
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-number,
|
|
767
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-operator,
|
|
768
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-variable,
|
|
769
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-attr,
|
|
770
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-class,
|
|
771
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-id {
|
|
772
|
+
/* prettylights-syntax-constant */
|
|
773
|
+
color: #6cb6ff;
|
|
774
|
+
}
|
|
775
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-regexp,
|
|
776
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-string,
|
|
777
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-meta .hljs-string {
|
|
778
|
+
/* prettylights-syntax-string */
|
|
779
|
+
color: #96d0ff;
|
|
780
|
+
}
|
|
781
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-built_in,
|
|
782
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-symbol {
|
|
783
|
+
/* prettylights-syntax-variable */
|
|
784
|
+
color: #f69d50;
|
|
785
|
+
}
|
|
786
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-comment,
|
|
787
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-code,
|
|
788
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-formula {
|
|
789
|
+
/* prettylights-syntax-comment */
|
|
790
|
+
color: #768390;
|
|
791
|
+
}
|
|
792
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-name,
|
|
793
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-quote,
|
|
794
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-tag,
|
|
795
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-pseudo {
|
|
796
|
+
/* prettylights-syntax-entity-tag */
|
|
797
|
+
color: #8ddb8c;
|
|
798
|
+
}
|
|
799
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-subst {
|
|
800
|
+
/* prettylights-syntax-storage-modifier-import */
|
|
801
|
+
color: #adbac7;
|
|
802
|
+
}
|
|
803
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-section {
|
|
804
|
+
/* prettylights-syntax-markup-heading */
|
|
805
|
+
color: #316dca;
|
|
806
|
+
font-weight: bold;
|
|
807
|
+
}
|
|
808
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-bullet {
|
|
809
|
+
/* prettylights-syntax-markup-list */
|
|
810
|
+
color: #eac55f;
|
|
811
|
+
}
|
|
812
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-emphasis {
|
|
813
|
+
/* prettylights-syntax-markup-italic */
|
|
814
|
+
color: #adbac7;
|
|
815
|
+
font-style: italic;
|
|
816
|
+
}
|
|
817
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-strong {
|
|
818
|
+
/* prettylights-syntax-markup-bold */
|
|
819
|
+
color: #adbac7;
|
|
820
|
+
font-weight: bold;
|
|
821
|
+
}
|
|
822
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-addition {
|
|
823
|
+
/* prettylights-syntax-markup-inserted */
|
|
824
|
+
color: #b4f1b4;
|
|
825
|
+
background-color: #1b4721;
|
|
826
|
+
}
|
|
827
|
+
.dragon-editor .de-code-block[data-theme=github-dark-dimmed] .hljs-deletion {
|
|
828
|
+
/* prettylights-syntax-markup-deleted */
|
|
829
|
+
color: #ffd8d3;
|
|
830
|
+
background-color: #78191b;
|
|
831
|
+
}
|
|
526
832
|
.dragon-editor .de-bold {
|
|
527
833
|
font-weight: 700;
|
|
528
834
|
}
|
|
@@ -140,6 +140,9 @@
|
|
|
140
140
|
padding: 20px;
|
|
141
141
|
line-height: 1.6;
|
|
142
142
|
}
|
|
143
|
+
.dragon-editor-viewer .de-block {
|
|
144
|
+
width: 100%;
|
|
145
|
+
}
|
|
143
146
|
.dragon-editor-viewer .de-text-block {
|
|
144
147
|
min-height: 1.6em;
|
|
145
148
|
outline: 0;
|
|
@@ -162,16 +165,33 @@
|
|
|
162
165
|
flex-direction: column;
|
|
163
166
|
row-gap: 4px;
|
|
164
167
|
padding-left: 24px;
|
|
168
|
+
}
|
|
169
|
+
.dragon-editor-viewer .de-list-block[data-style=disc] {
|
|
165
170
|
list-style: disc;
|
|
166
171
|
}
|
|
172
|
+
.dragon-editor-viewer .de-list-block[data-style=square] {
|
|
173
|
+
list-style: square;
|
|
174
|
+
}
|
|
175
|
+
.dragon-editor-viewer .de-list-block[data-style=decimal] {
|
|
176
|
+
list-style: decimal;
|
|
177
|
+
}
|
|
178
|
+
.dragon-editor-viewer .de-list-block[data-style=lower-alpha] {
|
|
179
|
+
list-style: lower-alpha;
|
|
180
|
+
}
|
|
181
|
+
.dragon-editor-viewer .de-list-block[data-style=upper-alpha] {
|
|
182
|
+
list-style: upper-alpha;
|
|
183
|
+
}
|
|
184
|
+
.dragon-editor-viewer .de-list-block[data-style=lower-roman] {
|
|
185
|
+
list-style: lower-roman;
|
|
186
|
+
}
|
|
187
|
+
.dragon-editor-viewer .de-list-block[data-style=upper-roman] {
|
|
188
|
+
list-style: upper-roman;
|
|
189
|
+
}
|
|
167
190
|
.dragon-editor-viewer .de-list-block .de-item {
|
|
168
191
|
min-height: 1.6em;
|
|
169
192
|
outline: 0;
|
|
170
193
|
list-style: inherit;
|
|
171
194
|
}
|
|
172
|
-
.dragon-editor-viewer ol.de-list-block {
|
|
173
|
-
list-style: decimal;
|
|
174
|
-
}
|
|
175
195
|
.dragon-editor-viewer .de-image-block {
|
|
176
196
|
display: flex;
|
|
177
197
|
align-items: center;
|
|
@@ -451,6 +471,234 @@
|
|
|
451
471
|
text-align: center;
|
|
452
472
|
outline: 0;
|
|
453
473
|
}
|
|
474
|
+
.dragon-editor-viewer .de-code-block {
|
|
475
|
+
display: flex;
|
|
476
|
+
flex-wrap: wrap;
|
|
477
|
+
}
|
|
478
|
+
.dragon-editor-viewer .de-code-block .de-filename {
|
|
479
|
+
flex: 1;
|
|
480
|
+
padding: 5px 10px;
|
|
481
|
+
box-sizing: border-box;
|
|
482
|
+
outline: 0;
|
|
483
|
+
}
|
|
484
|
+
.dragon-editor-viewer .de-code-block .de-language {
|
|
485
|
+
width: 120px;
|
|
486
|
+
text-align: right;
|
|
487
|
+
padding: 5px 10px;
|
|
488
|
+
box-sizing: border-box;
|
|
489
|
+
}
|
|
490
|
+
.dragon-editor-viewer .de-code-block .de-pre {
|
|
491
|
+
width: 100%;
|
|
492
|
+
padding: 10px;
|
|
493
|
+
box-sizing: border-box;
|
|
494
|
+
white-space: pre-wrap;
|
|
495
|
+
}
|
|
496
|
+
.dragon-editor-viewer .de-code-block .de-pre .de-code-content {
|
|
497
|
+
display: block;
|
|
498
|
+
min-height: 1.6em;
|
|
499
|
+
width: 100%;
|
|
500
|
+
font-family: Inconsolata, monospace, sans-serif;
|
|
501
|
+
word-break: break-word;
|
|
502
|
+
outline: 0;
|
|
503
|
+
}
|
|
504
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] {
|
|
505
|
+
color: #24292e;
|
|
506
|
+
background: #f1f1f1;
|
|
507
|
+
}
|
|
508
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .de-filename {
|
|
509
|
+
color: #24292e;
|
|
510
|
+
background: #ccc;
|
|
511
|
+
}
|
|
512
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .de-language {
|
|
513
|
+
color: #24292e;
|
|
514
|
+
background: #ccc;
|
|
515
|
+
}
|
|
516
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-doctag,
|
|
517
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-keyword,
|
|
518
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-meta .hljs-keyword,
|
|
519
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-template-tag,
|
|
520
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-template-variable,
|
|
521
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-type,
|
|
522
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-variable.language_ {
|
|
523
|
+
/* prettylights-syntax-keyword */
|
|
524
|
+
color: #d73a49;
|
|
525
|
+
}
|
|
526
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-title,
|
|
527
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-title.class_,
|
|
528
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-title.class_.inherited__,
|
|
529
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-title.function_ {
|
|
530
|
+
/* prettylights-syntax-entity */
|
|
531
|
+
color: #6f42c1;
|
|
532
|
+
}
|
|
533
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-attr,
|
|
534
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-attribute,
|
|
535
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-literal,
|
|
536
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-meta,
|
|
537
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-number,
|
|
538
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-operator,
|
|
539
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-variable,
|
|
540
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-selector-attr,
|
|
541
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-selector-class,
|
|
542
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-selector-id {
|
|
543
|
+
/* prettylights-syntax-constant */
|
|
544
|
+
color: #005cc5;
|
|
545
|
+
}
|
|
546
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-regexp,
|
|
547
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-string,
|
|
548
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-meta .hljs-string {
|
|
549
|
+
/* prettylights-syntax-string */
|
|
550
|
+
color: #032f62;
|
|
551
|
+
}
|
|
552
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-built_in,
|
|
553
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-symbol {
|
|
554
|
+
/* prettylights-syntax-variable */
|
|
555
|
+
color: #e36209;
|
|
556
|
+
}
|
|
557
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-comment,
|
|
558
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-code,
|
|
559
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-formula {
|
|
560
|
+
/* prettylights-syntax-comment */
|
|
561
|
+
color: #6a737d;
|
|
562
|
+
}
|
|
563
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-name,
|
|
564
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-quote,
|
|
565
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-selector-tag,
|
|
566
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-selector-pseudo {
|
|
567
|
+
/* prettylights-syntax-entity-tag */
|
|
568
|
+
color: #22863a;
|
|
569
|
+
}
|
|
570
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-subst {
|
|
571
|
+
/* prettylights-syntax-storage-modifier-import */
|
|
572
|
+
color: #24292e;
|
|
573
|
+
}
|
|
574
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-section {
|
|
575
|
+
/* prettylights-syntax-markup-heading */
|
|
576
|
+
color: #005cc5;
|
|
577
|
+
font-weight: bold;
|
|
578
|
+
}
|
|
579
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-bullet {
|
|
580
|
+
/* prettylights-syntax-markup-list */
|
|
581
|
+
color: #735c0f;
|
|
582
|
+
}
|
|
583
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-emphasis {
|
|
584
|
+
/* prettylights-syntax-markup-italic */
|
|
585
|
+
color: #24292e;
|
|
586
|
+
font-style: italic;
|
|
587
|
+
}
|
|
588
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-strong {
|
|
589
|
+
/* prettylights-syntax-markup-bold */
|
|
590
|
+
color: #24292e;
|
|
591
|
+
font-weight: bold;
|
|
592
|
+
}
|
|
593
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-addition {
|
|
594
|
+
/* prettylights-syntax-markup-inserted */
|
|
595
|
+
color: #22863a;
|
|
596
|
+
background-color: #f0fff4;
|
|
597
|
+
}
|
|
598
|
+
.dragon-editor-viewer .de-code-block[data-theme=github] .hljs-deletion {
|
|
599
|
+
/* prettylights-syntax-markup-deleted */
|
|
600
|
+
color: #b31d28;
|
|
601
|
+
background-color: #ffeef0;
|
|
602
|
+
}
|
|
603
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] {
|
|
604
|
+
color: #adbac7;
|
|
605
|
+
background: #22272e;
|
|
606
|
+
}
|
|
607
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .de-filename {
|
|
608
|
+
color: #adbac7;
|
|
609
|
+
background: #494e54;
|
|
610
|
+
}
|
|
611
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .de-language {
|
|
612
|
+
color: #adbac7;
|
|
613
|
+
background: #494e54;
|
|
614
|
+
}
|
|
615
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-doctag,
|
|
616
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-keyword,
|
|
617
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-meta .hljs-keyword,
|
|
618
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-template-tag,
|
|
619
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-template-variable,
|
|
620
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-type,
|
|
621
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-variable.language_ {
|
|
622
|
+
/* prettylights-syntax-keyword */
|
|
623
|
+
color: #f47067;
|
|
624
|
+
}
|
|
625
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-title,
|
|
626
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-title.class_,
|
|
627
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-title.class_.inherited__,
|
|
628
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-title.function_ {
|
|
629
|
+
/* prettylights-syntax-entity */
|
|
630
|
+
color: #dcbdfb;
|
|
631
|
+
}
|
|
632
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-attr,
|
|
633
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-attribute,
|
|
634
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-literal,
|
|
635
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-meta,
|
|
636
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-number,
|
|
637
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-operator,
|
|
638
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-variable,
|
|
639
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-attr,
|
|
640
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-class,
|
|
641
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-id {
|
|
642
|
+
/* prettylights-syntax-constant */
|
|
643
|
+
color: #6cb6ff;
|
|
644
|
+
}
|
|
645
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-regexp,
|
|
646
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-string,
|
|
647
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-meta .hljs-string {
|
|
648
|
+
/* prettylights-syntax-string */
|
|
649
|
+
color: #96d0ff;
|
|
650
|
+
}
|
|
651
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-built_in,
|
|
652
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-symbol {
|
|
653
|
+
/* prettylights-syntax-variable */
|
|
654
|
+
color: #f69d50;
|
|
655
|
+
}
|
|
656
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-comment,
|
|
657
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-code,
|
|
658
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-formula {
|
|
659
|
+
/* prettylights-syntax-comment */
|
|
660
|
+
color: #768390;
|
|
661
|
+
}
|
|
662
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-name,
|
|
663
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-quote,
|
|
664
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-tag,
|
|
665
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-selector-pseudo {
|
|
666
|
+
/* prettylights-syntax-entity-tag */
|
|
667
|
+
color: #8ddb8c;
|
|
668
|
+
}
|
|
669
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-subst {
|
|
670
|
+
/* prettylights-syntax-storage-modifier-import */
|
|
671
|
+
color: #adbac7;
|
|
672
|
+
}
|
|
673
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-section {
|
|
674
|
+
/* prettylights-syntax-markup-heading */
|
|
675
|
+
color: #316dca;
|
|
676
|
+
font-weight: bold;
|
|
677
|
+
}
|
|
678
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-bullet {
|
|
679
|
+
/* prettylights-syntax-markup-list */
|
|
680
|
+
color: #eac55f;
|
|
681
|
+
}
|
|
682
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-emphasis {
|
|
683
|
+
/* prettylights-syntax-markup-italic */
|
|
684
|
+
color: #adbac7;
|
|
685
|
+
font-style: italic;
|
|
686
|
+
}
|
|
687
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-strong {
|
|
688
|
+
/* prettylights-syntax-markup-bold */
|
|
689
|
+
color: #adbac7;
|
|
690
|
+
font-weight: bold;
|
|
691
|
+
}
|
|
692
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-addition {
|
|
693
|
+
/* prettylights-syntax-markup-inserted */
|
|
694
|
+
color: #b4f1b4;
|
|
695
|
+
background-color: #1b4721;
|
|
696
|
+
}
|
|
697
|
+
.dragon-editor-viewer .de-code-block[data-theme=github-dark-dimmed] .hljs-deletion {
|
|
698
|
+
/* prettylights-syntax-markup-deleted */
|
|
699
|
+
color: #ffd8d3;
|
|
700
|
+
background-color: #78191b;
|
|
701
|
+
}
|
|
454
702
|
.dragon-editor-viewer .de-bold {
|
|
455
703
|
font-weight: 700;
|
|
456
704
|
}
|
package/dist/runtime/store.d.ts
CHANGED
|
@@ -5,4 +5,7 @@ export declare const useEditorStore: import("pinia").StoreDefinition<"editorStor
|
|
|
5
5
|
setParentWrapElement(value: HTMLElement | Window): void;
|
|
6
6
|
setCursorData(data: DEditorCursor): void;
|
|
7
7
|
setCurrentBlock(block: HTMLElement): void;
|
|
8
|
+
setContrulBar(value: HTMLDivElement): void;
|
|
9
|
+
controlBarActive(): void;
|
|
10
|
+
controlBarDeactive(): void;
|
|
8
11
|
}>;
|