@delta-comic/ui 0.1.0 → 0.1.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/LICENSE +661 -661
- package/README.md +41 -41
- package/dist/index.cjs +900 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -4
- package/dist/index.js +30 -25
- package/dist/index.js.map +1 -1
- package/dist/index2.cjs.map +1 -1
- package/dist/index2.js.map +1 -1
- package/dist/pack.tgz +0 -0
- package/package.json +3 -3
- package/dist/dark.css +0 -446
- package/dist/light.css +0 -446
package/dist/index.css
CHANGED
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
|
|
108
108
|
@supports (color: lab(0% 0 0)) {
|
|
109
109
|
:root {
|
|
110
|
-
--color-gray-200: lab(91.6229% -.
|
|
110
|
+
--color-gray-200: lab(91.6229% -.159115 -2.26791);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
|
|
137
137
|
@supports (color: lab(0% 0 0)) {
|
|
138
138
|
:host {
|
|
139
|
-
--color-gray-200: lab(91.6229% -.
|
|
139
|
+
--color-gray-200: lab(91.6229% -.159115 -2.26791);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -12372,8 +12372,8 @@ ol, ul {
|
|
|
12372
12372
|
opacity: .3125;
|
|
12373
12373
|
transform: rotate(360deg);
|
|
12374
12374
|
}
|
|
12375
|
-
[data-v-
|
|
12376
|
-
font-size: var(--
|
|
12375
|
+
[data-v-356358f0] .van-loading__text {
|
|
12376
|
+
font-size: var(--f9087f1c);
|
|
12377
12377
|
margin-left: 2px;
|
|
12378
12378
|
}
|
|
12379
12379
|
:root {
|
package/dist/index.js
CHANGED
|
@@ -2668,7 +2668,7 @@ var Wo = ((e, t) => {
|
|
|
2668
2668
|
textColor: {}
|
|
2669
2669
|
},
|
|
2670
2670
|
setup(e) {
|
|
2671
|
-
_e((e) => ({
|
|
2671
|
+
_e((e) => ({ f9087f1c: n.value }));
|
|
2672
2672
|
let t = e, n = o(() => Ga(t.size) ? `${t.size}px` : t.size);
|
|
2673
2673
|
return (e, n) => {
|
|
2674
2674
|
let r = qr;
|
|
@@ -2678,7 +2678,7 @@ var Wo = ((e, t) => {
|
|
|
2678
2678
|
}, 16);
|
|
2679
2679
|
};
|
|
2680
2680
|
}
|
|
2681
|
-
}), [["__scopeId", "data-v-
|
|
2681
|
+
}), [["__scopeId", "data-v-356358f0"]]), Go = m({
|
|
2682
2682
|
__name: "DcImage",
|
|
2683
2683
|
props: {
|
|
2684
2684
|
src: {},
|
|
@@ -11312,7 +11312,7 @@ oS.prototype.set = function(e) {
|
|
|
11312
11312
|
}, oS.prototype.renderInline = function(e, t) {
|
|
11313
11313
|
return t ||= {}, this.renderer.render(this.parseInline(e, t), this.options, t);
|
|
11314
11314
|
};
|
|
11315
|
-
var sS = "/dark.css", cS = "/light.css", lS = ["srcdoc"], uS = m({
|
|
11315
|
+
var sS = ":root {\n --text-color: #d9d7d1;\n --bg-color: #1f232f;\n --side-bar-bg-color: #1f232f;\n --active-file-bg-color: #1f232f;\n --rawblock-edit-panel-bd: #181c25;\n --window-border: 0 solid #1f232f;\n --control-text-color: #d9d7d1;\n --primary-color: var(--p-color);\n --primary-btn-border-color: var(--primary-color);\n --active-file-border-color: var(--primary-color);\n --primary-btn-text-color: var(--primary-color);\n --item-hover-text-color: var(--primary-color);\n --meta-content-color: var(--primary-color);\n --search-select-text-color: var(--primary-color);\n --heading-char-color: var(--primary-color);\n --mermaid-theme: dark;\n}\n\n#write {\n -webkit-text-size-adjust: 100%;\n color: #d9d7d1;\n max-width: 46rem;\n margin: 0 auto;\n padding: 1.6rem 0;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Arial, Segoe UI, PingFang SC, Microsoft Yahei, Hiragino Sans GB, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;\n font-size: 16px;\n line-height: 1.68;\n}\n\n#write * {\n box-sizing: border-box;\n}\n\n#write > :first-child, #write > :last-child {\n margin-top: 0 !important;\n}\n\n#write p, #write details, #write dl, #write ol, #write ul, #write xmp, #write plaintext, #write listing, #write blockquote, #write table, #write figure, #write hr {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n\n#write h1 {\n margin: 26px 0 10px;\n font-size: 26px;\n font-weight: bold;\n}\n\n#write h2 {\n margin: 22px 0 8px;\n font-size: 22px;\n font-weight: bold;\n}\n\n#write h3 {\n margin: 20px 0 8px;\n font-size: 20px;\n font-weight: bold;\n}\n\n#write h4 {\n margin: 18px 0 8px;\n font-size: 18px;\n font-weight: bold;\n}\n\n#write h5, #write h6 {\n margin: 16px 0 8px;\n font-size: 16px;\n font-weight: bold;\n}\n\n#write p {\n margin-left: 0;\n margin-right: 0;\n}\n\n#write pre, #write xmp, #write plaintext, #write listing {\n font-family: var(--monospace);\n}\n\n#write blockquote > :first-child {\n margin-top: 0;\n}\n\n#write blockquote > :last-child {\n margin-bottom: 0;\n}\n\n#write hr {\n border-style: inset;\n border-width: 1px;\n}\n\n#write img {\n max-width: 100%;\n height: auto;\n}\n\n#write li {\n word-wrap: break-all;\n}\n\n#write li + li {\n margin-top: 4px;\n}\n\n#write ul ul, #write ol ul, #write ul ol, #write ol ol {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n#write .task-list-item {\n list-style-type: none;\n}\n\n#write a {\n color: var(--primary-color);\n text-decoration: underline;\n}\n\n#write a img {\n border: none;\n}\n\n#write b, #write strong {\n font-weight: bold;\n}\n\n#write i, #write cite, #write em, #write var, #write address, #write dfn {\n font-style: italic;\n}\n\n#write code, #write kbd, #write tt, #write samp {\n font-family: var(--monospace);\n}\n\n#write mark {\n color: #d9d7d1;\n background-color: #116e54;\n padding: .2em 0;\n}\n\n#write table {\n color: #cfd0cb;\n border-collapse: collapse;\n border-spacing: 2px;\n background-color: #181c25;\n font-size: 1em;\n}\n\n#write th, #write td {\n border: 1px solid #3c4254;\n}\n\n#write th {\n padding: 8px;\n font-size: 1em;\n font-weight: 500;\n}\n\n#write td {\n padding: 8px;\n font-size: 1em;\n font-weight: normal;\n}\n\n#write pre.md-fences, #write pre.md-meta-block, #write .md-rawblock-control:not(.md-rawblock-tooltip) .md-rawblock-input {\n background-color: #181c25;\n border: 1px solid #3c4254;\n border-radius: 3px;\n padding: 10px;\n}\n\n#write .CodeMirror div.CodeMirror-cursor {\n border-color: #d9d7d1;\n}\n\n#write .md-math-block, #write .md-rawblock {\n margin-top: 1em;\n margin-bottom: 1em;\n}\n\n#write .md-rawblock > .md-rawblock-tooltip {\n visibility: hidden;\n opacity: 0;\n background-color: #181c25;\n transition: all .5s;\n display: block;\n}\n\n#write .md-rawblock:hover > .md-rawblock-tooltip {\n visibility: visible;\n opacity: 1;\n transition: all .5s;\n animation: none;\n}\n\n#write .md-rawblock-control:not(.md-rawblock-tooltip) {\n padding-left: 0;\n padding-right: 0;\n}\n\n#write h1, #write h2, #write h3, #write h4, #write h5, #write h6 {\n color: #9faab9;\n}\n\n#write del, #write s {\n color: #787e8c;\n}\n\n#write u {\n background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, var(--primary-color) 50%);\n background-position: 0 1em;\n background-repeat: repeat-x;\n background-size: 2px 2px;\n text-decoration: none;\n}\n\n#write * {\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizelegibility;\n}\n\n#write h1, #write h2, #write h3, #write h4, #write h5, #write h6 {\n margin-top: 1em;\n margin-bottom: .37em;\n font-weight: 500;\n line-height: 1.4;\n}\n\n#write blockquote {\n border-left: 2px solid var(--primary-color);\n margin-left: 0;\n padding-left: 14px;\n display: block;\n}\n\n#write code {\n word-spacing: normal;\n color: #cfd0cb;\n background-color: #181c25;\n border: 1px solid #3c4254;\n border-radius: 4px;\n margin-left: 2px;\n margin-right: 2px;\n padding: 0 2px;\n line-height: 1.6;\n}\n\n#write a {\n overflow-wrap: break-word;\n word-wrap: break-word;\n white-space: pre-wrap;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n text-decoration: none;\n}\n\n#write a:hover {\n text-decoration: underline;\n}\n\n#write hr {\n background-image: linear-gradient(90deg, #3c4254, #3c4254);\n background-repeat: no-repeat;\n background-origin: content-box;\n border: 0;\n height: 1px;\n margin: 13px 0 12px;\n}\n\n#write ul {\n margin-left: 0;\n padding-left: 22px;\n list-style: none;\n}\n\n#write ul > li:not([class*=\"task-list-item\"]) {\n word-wrap: break-all;\n padding-left: 0;\n}\n\n#write ul > li:not([class*=\"task-list-item\"]):before {\n content: \"•\";\n color: var(--primary-color);\n width: 0;\n margin-left: -20px;\n margin-right: 20px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-size: .8em;\n display: inline-block;\n position: absolute;\n top: 2px;\n transform: scale(1.25);\n}\n\n#write ul > li:not([class*=\"task-list-item\"]) li:not([class*=\"task-list-item\"]):before {\n content: \"◦\";\n font-weight: 700;\n transform: scale(1);\n}\n\n#write ul > li:not([class*=\"task-list-item\"]) li:not([class*=\"task-list-item\"]) li:not([class*=\"task-list-item\"]):before {\n content: \"▪\";\n font-weight: normal;\n transform: scale(1.25);\n}\n\n#write ol {\n counter-reset: ol_counter;\n margin-left: 0;\n padding-left: 22px;\n list-style: none;\n}\n\n#write ol > li:not([class*=\"task-list-item\"]) {\n word-wrap: break-all;\n padding-left: 0;\n position: relative;\n}\n\n#write ol > li:not([class*=\"task-list-item\"]):before {\n content: counter(ol_counter) \".\";\n counter-increment: ol_counter;\n color: var(--primary-color);\n text-align: left;\n white-space: nowrap;\n border-radius: 2px;\n min-width: 18px;\n margin-left: -22px;\n margin-right: 4px;\n padding-left: 2px;\n padding-right: 2px;\n font-family: Helvetica Neue, Consolas;\n position: absolute;\n overflow: visible;\n transform: translateX(-2px);\n}\n\n#write li + li, #write ul ul, #write ol ul, #write ul ol, #write ol ol, #write li ul, #write li ol {\n margin-top: 4px;\n}\n\n#write .task-list-item {\n padding-left: .3rem;\n}\n\n#write .task-list-item > p {\n transition: color .3s, opacity .3s;\n}\n\n#write .task-list-item.task-list-done > p {\n color: #787e8c;\n text-decoration: line-through;\n}\n\n#write .task-list-item.task-list-done > p > .md-emoji {\n opacity: .5;\n}\n\n#write .task-list-item.task-list-done > p > .md-link > a {\n opacity: .6;\n}\n\n#write .task-list-item > input {\n -webkit-appearance: initial;\n background-color: #1f232f;\n border: 1px solid #3c4254;\n border-radius: .25rem;\n width: 1.2rem;\n height: 1.2rem;\n margin-left: -1.5rem;\n transition: border-color .3s;\n display: block;\n position: absolute;\n}\n\n#write .task-list-item > input:focus {\n box-shadow: none;\n outline: none;\n}\n\n#write .task-list-item > input:hover {\n border-color: var(--primary-color);\n}\n\n#write .task-list-item > input[checked]:before {\n content: \"\";\n background: var(--primary-color);\n width: 2px;\n height: 60%;\n position: absolute;\n top: 20%;\n left: 50%;\n transform: rotate(40deg);\n}\n\n#write .task-list-item > input[checked]:after {\n content: \"\";\n background: var(--primary-color);\n width: 2px;\n height: 30%;\n position: absolute;\n top: 46%;\n left: 25%;\n transform: rotate(-40deg);\n}\n\n#write .cm-s-inner .cm-comment {\n color: #7e91a2;\n}\n\n#write .cm-s-inner .cm-property, #write .cm-s-inner .cm-tag {\n color: #905;\n}\n\n#write .cm-s-inner .cm-bracket, #write .cm-s-inner .cm-punctuation {\n color: #999;\n}\n\n#write .cm-s-inner .cm-number {\n color: #b0e27d;\n}\n\n#write .cm-s-inner .cm-qualifier, #write .cm-s-inner .cm-string, #write .cm-s-inner .cm-string-2, #write .cm-s-inner .cm-builtin, #write .cm-s-inner .cm-attribute {\n color: #76d0ff;\n}\n\n#write .cm-s-inner .cm-operator {\n color: #920448;\n}\n\n#write .cm-s-inner .cm-atom, #write .cm-s-inner .cm-keyword {\n color: #fea759;\n}\n\n#write .cm-s-inner .cm-def, #write .cm-s-inner .cm-variable, #write .cm-s-inner .cm-variable-2, #write .cm-s-inner .cm-variable-3 {\n color: #0e73a2;\n}\n\n#write .cm-s-inner .cm-type {\n color: #04202d;\n}\n", cS = ":root {\n --text-color: #6b6884;\n --bg-color: #fafafa;\n --side-bar-bg-color: #fafafa;\n --active-file-bg-color: #fafafa;\n --rawblock-edit-panel-bd: white;\n --window-border: 0 solid #fafafa;\n --control-text-color: #6b6884;\n --primary-color: var(--p-color);\n --primary-btn-border-color: var(--primary-color);\n --active-file-border-color: var(--primary-color);\n --primary-btn-text-color: var(--primary-color);\n --item-hover-text-color: var(--primary-color);\n --meta-content-color: var(--primary-color);\n --search-select-text-color: var(--primary-color);\n --heading-char-color: var(--primary-color);\n --mermaid-theme: default;\n}\n\n#write {\n -webkit-text-size-adjust: 100%;\n color: #6b6884;\n max-width: 46rem;\n margin: 0 auto;\n padding: 1.6rem 0;\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Arial, Segoe UI, PingFang SC, Microsoft Yahei, Hiragino Sans GB, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;\n font-size: 16px;\n line-height: 1.68;\n}\n\n#write * {\n box-sizing: border-box;\n}\n\n#write > :first-child, #write > :last-child {\n margin-top: 0 !important;\n}\n\n#write p, #write details, #write dl, #write ol, #write ul, #write xmp, #write plaintext, #write listing, #write blockquote, #write table, #write figure, #write hr {\n margin-top: 8px;\n margin-bottom: 8px;\n}\n\n#write h1 {\n margin: 26px 0 10px;\n font-size: 26px;\n font-weight: bold;\n}\n\n#write h2 {\n margin: 22px 0 8px;\n font-size: 22px;\n font-weight: bold;\n}\n\n#write h3 {\n margin: 20px 0 8px;\n font-size: 20px;\n font-weight: bold;\n}\n\n#write h4 {\n margin: 18px 0 8px;\n font-size: 18px;\n font-weight: bold;\n}\n\n#write h5, #write h6 {\n margin: 16px 0 8px;\n font-size: 16px;\n font-weight: bold;\n}\n\n#write p {\n margin-left: 0;\n margin-right: 0;\n}\n\n#write pre, #write xmp, #write plaintext, #write listing {\n font-family: var(--monospace);\n}\n\n#write blockquote > :first-child {\n margin-top: 0;\n}\n\n#write blockquote > :last-child {\n margin-bottom: 0;\n}\n\n#write hr {\n border-style: inset;\n border-width: 1px;\n}\n\n#write img {\n max-width: 100%;\n height: auto;\n}\n\n#write li {\n word-wrap: break-all;\n}\n\n#write li + li {\n margin-top: 4px;\n}\n\n#write ul ul, #write ol ul, #write ul ol, #write ol ol {\n margin-top: 0;\n margin-bottom: 0;\n}\n\n#write .task-list-item {\n list-style-type: none;\n}\n\n#write a {\n color: #e66700;\n text-decoration: underline;\n}\n\n#write a img {\n border: none;\n}\n\n#write b, #write strong {\n font-weight: bold;\n}\n\n#write i, #write cite, #write em, #write var, #write address, #write dfn {\n font-style: italic;\n}\n\n#write code, #write kbd, #write tt, #write samp {\n font-family: var(--monospace);\n}\n\n#write mark {\n color: #6b6884;\n background-color: #e6f9bd;\n padding: .2em 0;\n}\n\n#write table {\n color: #272d38;\n border-collapse: collapse;\n border-spacing: 2px;\n background-color: #fff;\n font-size: 1em;\n}\n\n#write th, #write td {\n border: 1px solid #bfc1c4;\n}\n\n#write th {\n padding: 8px;\n font-size: 1em;\n font-weight: 500;\n}\n\n#write td {\n padding: 8px;\n font-size: 1em;\n font-weight: normal;\n}\n\n#write pre.md-fences, #write pre.md-meta-block, #write .md-rawblock-control:not(.md-rawblock-tooltip) .md-rawblock-input {\n background-color: #fff;\n border: 1px solid #bfc1c4;\n border-radius: 3px;\n padding: 10px;\n}\n\n#write .CodeMirror div.CodeMirror-cursor {\n border-color: #6b6884;\n}\n\n#write .md-math-block, #write .md-rawblock {\n margin-top: 1em;\n margin-bottom: 1em;\n}\n\n#write .md-rawblock > .md-rawblock-tooltip {\n visibility: hidden;\n opacity: 0;\n background-color: #fff;\n transition: all .5s;\n display: block;\n}\n\n#write .md-rawblock:hover > .md-rawblock-tooltip {\n visibility: visible;\n opacity: 1;\n transition: all .5s;\n animation: none;\n}\n\n#write .md-rawblock-control:not(.md-rawblock-tooltip) {\n padding-left: 0;\n padding-right: 0;\n}\n\n#write h1, #write h2, #write h3, #write h4, #write h5, #write h6 {\n color: #4d5255;\n}\n\n#write del, #write s {\n color: #8d8f95;\n}\n\n#write u {\n background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, var(--primary-color) 50%);\n background-position: 0 1em;\n background-repeat: repeat-x;\n background-size: 2px 2px;\n text-decoration: none;\n}\n\n#write * {\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizelegibility;\n}\n\n#write h1, #write h2, #write h3, #write h4, #write h5, #write h6 {\n margin-top: 1em;\n margin-bottom: .37em;\n font-weight: 500;\n line-height: 1.4;\n}\n\n#write blockquote {\n border-left: 2px solid var(--primary-color);\n margin-left: 0;\n padding-left: 14px;\n display: block;\n}\n\n#write code {\n word-spacing: normal;\n color: #272d38;\n background-color: #fff;\n border: 1px solid #bfc1c4;\n border-radius: 4px;\n margin-left: 2px;\n margin-right: 2px;\n padding: 0 2px;\n line-height: 1.6;\n}\n\n#write a {\n overflow-wrap: break-word;\n word-wrap: break-word;\n white-space: pre-wrap;\n -ms-hyphens: auto;\n hyphens: auto;\n word-break: break-word;\n text-decoration: none;\n}\n\n#write a:hover {\n text-decoration: underline;\n}\n\n#write hr {\n background-image: linear-gradient(90deg, #bfc1c4, #bfc1c4);\n background-repeat: no-repeat;\n background-origin: content-box;\n border: 0;\n height: 1px;\n margin: 13px 0 12px;\n}\n\n#write ul {\n margin-left: 0;\n padding-left: 22px;\n list-style: none;\n}\n\n#write ul > li:not([class*=\"task-list-item\"]) {\n word-wrap: break-all;\n padding-left: 0;\n}\n\n#write ul > li:not([class*=\"task-list-item\"]):before {\n content: \"•\";\n color: var(--primary-color);\n width: 0;\n margin-left: -20px;\n margin-right: 20px;\n font-family: PingFangSC-Regular, PingFang SC;\n font-size: .8em;\n display: inline-block;\n position: absolute;\n top: 2px;\n transform: scale(1.25);\n}\n\n#write ul > li:not([class*=\"task-list-item\"]) li:not([class*=\"task-list-item\"]):before {\n content: \"◦\";\n font-weight: 700;\n transform: scale(1);\n}\n\n#write ul > li:not([class*=\"task-list-item\"]) li:not([class*=\"task-list-item\"]) li:not([class*=\"task-list-item\"]):before {\n content: \"▪\";\n font-weight: normal;\n transform: scale(1.25);\n}\n\n#write ol {\n counter-reset: ol_counter;\n margin-left: 0;\n padding-left: 22px;\n list-style: none;\n}\n\n#write ol > li:not([class*=\"task-list-item\"]) {\n word-wrap: break-all;\n padding-left: 0;\n position: relative;\n}\n\n#write ol > li:not([class*=\"task-list-item\"]):before {\n content: counter(ol_counter) \".\";\n counter-increment: ol_counter;\n color: var(--primary-color);\n text-align: left;\n white-space: nowrap;\n border-radius: 2px;\n min-width: 18px;\n margin-left: -22px;\n margin-right: 4px;\n padding-left: 2px;\n padding-right: 2px;\n font-family: Helvetica Neue, Consolas;\n position: absolute;\n overflow: visible;\n transform: translateX(-2px);\n}\n\n#write li + li, #write ul ul, #write ol ul, #write ul ol, #write ol ol, #write li ul, #write li ol {\n margin-top: 4px;\n}\n\n#write .task-list-item {\n padding-left: .3rem;\n}\n\n#write .task-list-item > p {\n transition: color .3s, opacity .3s;\n}\n\n#write .task-list-item.task-list-done > p {\n color: #8d8f95;\n text-decoration: line-through;\n}\n\n#write .task-list-item.task-list-done > p > .md-emoji {\n opacity: .5;\n}\n\n#write .task-list-item.task-list-done > p > .md-link > a {\n opacity: .6;\n}\n\n#write .task-list-item > input {\n -webkit-appearance: initial;\n background-color: #fafafa;\n border: 1px solid #bfc1c4;\n border-radius: .25rem;\n width: 1.2rem;\n height: 1.2rem;\n margin-left: -1.5rem;\n transition: border-color .3s;\n display: block;\n position: absolute;\n}\n\n#write .task-list-item > input:focus {\n box-shadow: none;\n outline: none;\n}\n\n#write .task-list-item > input:hover {\n border-color: var(--primary-color);\n}\n\n#write .task-list-item > input[checked]:before {\n content: \"\";\n background: var(--primary-color);\n width: 2px;\n height: 60%;\n position: absolute;\n top: 20%;\n left: 50%;\n transform: rotate(40deg);\n}\n\n#write .task-list-item > input[checked]:after {\n content: \"\";\n background: var(--primary-color);\n width: 2px;\n height: 30%;\n position: absolute;\n top: 46%;\n left: 25%;\n transform: rotate(-40deg);\n}\n\n#write .cm-s-inner .cm-comment {\n color: #7f7e7d;\n}\n\n#write .cm-s-inner .cm-property, #write .cm-s-inner .cm-tag {\n color: #905;\n}\n\n#write .cm-s-inner .cm-bracket, #write .cm-s-inner .cm-punctuation {\n color: #999;\n}\n\n#write .cm-s-inner .cm-number {\n color: #0087b2;\n}\n\n#write .cm-s-inner .cm-qualifier, #write .cm-s-inner .cm-string, #write .cm-s-inner .cm-string-2, #write .cm-s-inner .cm-builtin, #write .cm-s-inner .cm-attribute {\n color: #357f1e;\n}\n\n#write .cm-s-inner .cm-operator {\n color: #920448;\n}\n\n#write .cm-s-inner .cm-atom, #write .cm-s-inner .cm-keyword {\n color: #2576b1;\n}\n\n#write .cm-s-inner .cm-def, #write .cm-s-inner .cm-variable, #write .cm-s-inner .cm-variable-2, #write .cm-s-inner .cm-variable-3 {\n color: #0e73a2;\n}\n\n#write .cm-s-inner .cm-type {\n color: #04202d;\n}\n", lS = ["src"], uS = m({
|
|
11316
11316
|
__name: "index",
|
|
11317
11317
|
props: {
|
|
11318
11318
|
markdown: {},
|
|
@@ -11321,36 +11321,32 @@ var sS = "/dark.css", cS = "/light.css", lS = ["srcdoc"], uS = m({
|
|
|
11321
11321
|
env: {}
|
|
11322
11322
|
},
|
|
11323
11323
|
setup(e) {
|
|
11324
|
-
let t =
|
|
11325
|
-
let e = new oS(
|
|
11326
|
-
return e =
|
|
11327
|
-
}),
|
|
11324
|
+
let t = e, n = o(() => {
|
|
11325
|
+
let e = new oS(t.config);
|
|
11326
|
+
return e = t.plugins.reduce((e, t) => e.use(...t), e), e;
|
|
11327
|
+
}), r = et(), i = `markdown-router-${Math.random()}`, a = Io("--p-color"), s = new Set(), c = o(() => {
|
|
11328
|
+
let e = `
|
|
11328
11329
|
<!doctype html>
|
|
11329
11330
|
<html lang="zh-cn" class="static size-full">
|
|
11330
11331
|
<head>
|
|
11331
11332
|
<meta charset="UTF-8" />
|
|
11332
11333
|
<title>Markdown</title>
|
|
11333
|
-
<meta
|
|
11334
|
-
http-equiv="Content-Security-Policy"
|
|
11335
|
-
content="default-src * chrome-extension: blob: tauri: local: ipc: ws: wss: 'unsafe-inline' 'unsafe-eval' data: chrome-extension: blob: tauri:; script-src * chrome-extension: blob: tauri: local: ipc: ws: wss: 'unsafe-inline' 'unsafe-eval'; connect-src * chrome-extension: blob: tauri: local: ipc: ws: wss: 'unsafe-inline'; img-src * chrome-extension: blob: tauri: local: ipc: ws: wss: data: chrome-extension: blob: tauri:; frame-src * chrome-extension: blob: tauri: local: ipc: ws: wss:; style-src * chrome-extension: blob: tauri: local: ipc: ws: wss: 'unsafe-inline';"
|
|
11336
|
-
/>
|
|
11337
11334
|
<meta
|
|
11338
11335
|
name="viewport"
|
|
11339
11336
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
|
|
11340
11337
|
/>
|
|
11341
11338
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
11342
11339
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
11343
|
-
|
|
11344
|
-
<link rel="stylesheet" href="${a.isDark ? n : t}" />
|
|
11345
11340
|
</head>
|
|
11346
11341
|
<body>
|
|
11347
11342
|
<style>
|
|
11348
11343
|
:root {
|
|
11349
|
-
--p-color: ${
|
|
11344
|
+
--p-color: ${a.value};
|
|
11350
11345
|
}
|
|
11346
|
+
${r.isDark ? sS : cS}
|
|
11351
11347
|
</style>
|
|
11352
11348
|
<div id="write">
|
|
11353
|
-
${
|
|
11349
|
+
${n.value.render(t.markdown, t.env)}
|
|
11354
11350
|
</div>
|
|
11355
11351
|
<script>
|
|
11356
11352
|
document.addEventListener('click', function(e){
|
|
@@ -11360,20 +11356,29 @@ var sS = "/dark.css", cS = "/light.css", lS = ["srcdoc"], uS = m({
|
|
|
11360
11356
|
if(!href) return;
|
|
11361
11357
|
e.preventDefault();
|
|
11362
11358
|
// 发送请求给父窗口,请求导航
|
|
11363
|
-
console.debug('${
|
|
11364
|
-
window.parent.postMessage({ type:'${
|
|
11359
|
+
console.debug('${i}', href)
|
|
11360
|
+
window.parent.postMessage({ type:'${i}', href });
|
|
11365
11361
|
});
|
|
11366
11362
|
<\/script>
|
|
11367
11363
|
</body>
|
|
11368
11364
|
</html>
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
11365
|
+
`, o = URL.createObjectURL(new Blob([e]));
|
|
11366
|
+
return u(), s.add(o), o;
|
|
11367
|
+
});
|
|
11368
|
+
k(() => u());
|
|
11369
|
+
let u = () => s.forEach((e) => {
|
|
11370
|
+
try {
|
|
11371
|
+
URL.revokeObjectURL(e);
|
|
11372
|
+
} catch {} finally {
|
|
11373
|
+
s.delete(e);
|
|
11374
|
+
}
|
|
11375
|
+
});
|
|
11376
|
+
return En("message", (e) => {
|
|
11377
|
+
let t = e;
|
|
11378
|
+
console.debug(i);
|
|
11379
|
+
let n = t.data;
|
|
11380
|
+
n.type == i && nv(n.href);
|
|
11381
|
+
}), (e, t) => (A(), l("iframe", { src: c.value }, null, 8, lS));
|
|
11377
11382
|
}
|
|
11378
11383
|
}), dS = m({
|
|
11379
11384
|
__name: "DcFormSwitch",
|