@datawhale/prosemirror-render 0.0.1 → 0.0.2
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/{AttachmentBlock-ChMNTUOo.mjs → AttachmentBlock-BTIBSu4p.js} +2 -2
- package/dist/AttachmentBlock-W05YY8zN.cjs +1 -0
- package/dist/{AttachmentInline-tbC8BJBy.mjs → AttachmentInline-BF7QTLxZ.js} +2 -2
- package/dist/AttachmentInline-CgV-t0WF.cjs +1 -0
- package/dist/{AttachmentMenu-B5x8P9_n.mjs → AttachmentMenu-BjM7LAlw.js} +1 -1
- package/dist/AttachmentMenu-vc18PNLc.cjs +1 -0
- package/dist/{Callout-Cu6HI-xq.mjs → Callout-BH6_xPHP.js} +2 -2
- package/dist/Callout-BgG8-zJn.cjs +1 -0
- package/dist/{CellOutput-DiKZlIFa.js → CellOutput-CXb77W7X.cjs} +1 -1
- package/dist/{CellOutput-C33VK0df.mjs → CellOutput-DJqn5MJH.js} +1 -1
- package/dist/{CodeBlock-DWniNUQB.js → CodeBlock-BejcPvxj.cjs} +1 -1
- package/dist/{CodeBlock-Cjuxuq7B.mjs → CodeBlock-D9lrTXj3.js} +1 -1
- package/dist/FoldBlock-CMDkkdoU.cjs +1 -0
- package/dist/{FoldBlock-DRdlU-DX.mjs → FoldBlock-CZwxKsSG.js} +2 -2
- package/dist/{Grid-GfmJxM93.mjs → Grid-B53O57Vv.js} +1 -1
- package/dist/Grid-Cw9joyDF.cjs +1 -0
- package/dist/IFrame-CP2oHuDb.cjs +1 -0
- package/dist/{IFrame-CaAOVLGN.mjs → IFrame-DRvqa1hl.js} +1 -1
- package/dist/Image-B9Rer9RA.cjs +1 -0
- package/dist/{Image-C8v5dCij.mjs → Image-BjIZuyk1.js} +1 -1
- package/dist/{MathDisplay-CoGsFzXW.mjs → MathDisplay-BficZWEq.js} +2 -2
- package/dist/MathDisplay-D5rx_pee.cjs +1 -0
- package/dist/{MathInline-0xTZoIIq.mjs → MathInline-Ca8s53fu.js} +2 -2
- package/dist/MathInline-DZ86cc6g.cjs +1 -0
- package/dist/{McChoices-Aj394G5E.mjs → McChoices-B8W03KdG.js} +1 -1
- package/dist/McChoices-CW1gsp_V.cjs +1 -0
- package/dist/McQuestion-DwBWk5S2.cjs +1 -0
- package/dist/{McQuestion-DvD-J47M.mjs → McQuestion-WyxeDFjM.js} +1 -1
- package/dist/McSolution-BtY7RBEb.cjs +1 -0
- package/dist/{McSolution-C5sTXz3y.mjs → McSolution-CRahjdmW.js} +1 -1
- package/dist/{MultipleChoice-Dv-k1zUU.mjs → MultipleChoice-BgGHy-NW.js} +4 -4
- package/dist/MultipleChoice-mFFm3sQv.cjs +1 -0
- package/dist/{Paragraph-DGcZy8t_.mjs → Paragraph-C3uQVRMm.js} +1 -1
- package/dist/Paragraph-CU-CMQz2.cjs +1 -0
- package/dist/{SlotNode-6OpoUcOa.mjs → SlotNode-BThSEhpr.js} +1 -1
- package/dist/SlotNode-ivBAGFTX.cjs +1 -0
- package/dist/Text-3RT27QJn.cjs +1 -0
- package/dist/{Text-Br_pcGz4.mjs → Text-cG9dlJgd.js} +1 -1
- package/dist/{index-DVmWCrQE.mjs → index-C97tUvOp.js} +30 -30
- package/dist/index-DuVSDVpW.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +8 -2
- package/dist/AttachmentBlock-DsmJP3Kw.js +0 -1
- package/dist/AttachmentInline-Dc3dp0g-.js +0 -1
- package/dist/AttachmentMenu-ExoCOe4B.js +0 -1
- package/dist/Callout-DPdOqTb4.js +0 -1
- package/dist/FoldBlock-ZPMf0QsR.js +0 -1
- package/dist/Grid-QToZdaRT.js +0 -1
- package/dist/IFrame-DcCpSoDC.js +0 -1
- package/dist/Image-cHL85CXs.js +0 -1
- package/dist/MathDisplay-CESKZV46.js +0 -1
- package/dist/MathInline-C_1SJUVz.js +0 -1
- package/dist/McChoices-B4euzY7M.js +0 -1
- package/dist/McQuestion-Dq0aM5tC.js +0 -1
- package/dist/McSolution-N79CllH9.js +0 -1
- package/dist/MultipleChoice-DTCF3Q8m.js +0 -1
- package/dist/Paragraph-CzRSCJNr.js +0 -1
- package/dist/SlotNode-DMG0R6Vf.js +0 -1
- package/dist/Text-DlUfrsNI.js +0 -1
- package/dist/index-D2CtpNvR.js +0 -1
- package/src/apis/monitor.ts +0 -8
- package/src/apis/tingwu.ts +0 -22
- package/src/apis/types.ts +0 -45
- package/src/components/TreeRecursive.vue +0 -47
- package/src/components/TreeRender.vue +0 -404
- package/src/components/collections/async/AsyncError.vue +0 -17
- package/src/components/collections/async/AsyncLoading.vue +0 -1
- package/src/components/collections/attachment/AttachmentBlock.vue +0 -561
- package/src/components/collections/attachment/AttachmentInline.vue +0 -90
- package/src/components/collections/attachment/AttachmentMenu.vue +0 -359
- package/src/components/collections/attachment/VideoDetail.vue +0 -375
- package/src/components/collections/attachment/index.ts +0 -6
- package/src/components/collections/basic/Blockquote.vue +0 -15
- package/src/components/collections/basic/BulletList.vue +0 -15
- package/src/components/collections/basic/HardBreak.vue +0 -11
- package/src/components/collections/basic/Heading.vue +0 -15
- package/src/components/collections/basic/HorizontalRule.vue +0 -11
- package/src/components/collections/basic/ListItem.vue +0 -15
- package/src/components/collections/basic/OrderedList.vue +0 -15
- package/src/components/collections/basic/Paragraph.vue +0 -19
- package/src/components/collections/basic/Text.vue +0 -73
- package/src/components/collections/basic/index.ts +0 -13
- package/src/components/collections/callout/Callout.vue +0 -77
- package/src/components/collections/callout/index.ts +0 -5
- package/src/components/collections/code/CellOutput.vue +0 -72
- package/src/components/collections/code/CodeBlock.vue +0 -83
- package/src/components/collections/code/index.ts +0 -6
- package/src/components/collections/fold/FoldBlock.vue +0 -130
- package/src/components/collections/fold/index.ts +0 -5
- package/src/components/collections/grid/Grid.vue +0 -70
- package/src/components/collections/grid/index.ts +0 -5
- package/src/components/collections/iframe/IFrame.vue +0 -19
- package/src/components/collections/iframe/index.ts +0 -5
- package/src/components/collections/img/Image.vue +0 -318
- package/src/components/collections/img/index.ts +0 -5
- package/src/components/collections/index.ts +0 -29
- package/src/components/collections/math/MathDisplay.vue +0 -42
- package/src/components/collections/math/MathInline.vue +0 -42
- package/src/components/collections/math/index.ts +0 -6
- package/src/components/collections/multipleChoice/McChoices.vue +0 -72
- package/src/components/collections/multipleChoice/McQuestion.vue +0 -61
- package/src/components/collections/multipleChoice/McSolution.vue +0 -47
- package/src/components/collections/multipleChoice/MultipleChoice.vue +0 -62
- package/src/components/collections/multipleChoice/index.ts +0 -8
- package/src/components/collections/table/TableCell.vue +0 -20
- package/src/components/collections/table/TableContainer.vue +0 -32
- package/src/components/collections/table/TableHeader.vue +0 -15
- package/src/components/collections/table/TableRow.vue +0 -15
- package/src/components/collections/table/index.ts +0 -8
- package/src/components/collections/utils.ts +0 -17
- package/src/components/collections/wrapper/Doc.vue +0 -15
- package/src/components/collections/wrapper/SlotNode.vue +0 -5
- package/src/components/collections/wrapper/index.ts +0 -6
- package/src/components/index.ts +0 -1
- package/src/icons/Attachment/CardView.vue +0 -21
- package/src/icons/Attachment/Code/Bat.vue +0 -26
- package/src/icons/Attachment/Code/C.vue +0 -26
- package/src/icons/Attachment/Code/Cpp.vue +0 -26
- package/src/icons/Attachment/Code/Css.vue +0 -34
- package/src/icons/Attachment/Code/Go.vue +0 -26
- package/src/icons/Attachment/Code/Html.vue +0 -34
- package/src/icons/Attachment/Code/Java.vue +0 -42
- package/src/icons/Attachment/Code/Js.vue +0 -26
- package/src/icons/Attachment/Code/Json.vue +0 -26
- package/src/icons/Attachment/Code/Jsx.vue +0 -30
- package/src/icons/Attachment/Code/Md.vue +0 -26
- package/src/icons/Attachment/Code/Php.vue +0 -26
- package/src/icons/Attachment/Code/Python.vue +0 -30
- package/src/icons/Attachment/Code/Rb.vue +0 -26
- package/src/icons/Attachment/Code/Sh.vue +0 -30
- package/src/icons/Attachment/Code/Sql.vue +0 -30
- package/src/icons/Attachment/Code/Swift.vue +0 -26
- package/src/icons/Attachment/Code/Ts.vue +0 -26
- package/src/icons/Attachment/Code/Tsx.vue +0 -30
- package/src/icons/Attachment/Code/Vue.vue +0 -24
- package/src/icons/Attachment/Excel.vue +0 -26
- package/src/icons/Attachment/Eye.vue +0 -15
- package/src/icons/Attachment/FullScreen.vue +0 -15
- package/src/icons/Attachment/InlineView.vue +0 -21
- package/src/icons/Attachment/Pdf.vue +0 -25
- package/src/icons/Attachment/Ppt.vue +0 -26
- package/src/icons/Attachment/PreviewView.vue +0 -21
- package/src/icons/Attachment/UnknownFile.vue +0 -26
- package/src/icons/Attachment/VideoIcon.vue +0 -25
- package/src/icons/Attachment/VideoPlay.vue +0 -15
- package/src/icons/Attachment/Word.vue +0 -26
- package/src/icons/Code/Confirm.vue +0 -38
- package/src/icons/Code/Paste.vue +0 -8
- package/src/icons/Common/Choice.vue +0 -28
- package/src/icons/Common/Close.vue +0 -15
- package/src/icons/Common/Comment.vue +0 -16
- package/src/icons/Common/CopyAnchorLink.vue +0 -15
- package/src/icons/Common/Delete.vue +0 -15
- package/src/icons/Common/Download.vue +0 -15
- package/src/icons/Common/FoldClose.vue +0 -9
- package/src/icons/Common/FoldOpen.vue +0 -9
- package/src/icons/Common/Plate.vue +0 -23
- package/src/icons/Common/Question.vue +0 -8
- package/src/icons/Common/ShareTextLink.vue +0 -15
- package/src/index.ts +0 -3
- package/src/types.ts +0 -236
- package/src/utils/common.ts +0 -6
- package/src/utils/emoji.ts +0 -3715
- package/src/utils/globalStatus.ts +0 -19
- package/src/utils/shiki.ts +0 -25
- package/src/utils/useAttachment.ts +0 -215
- package/tsconfig.build.json +0 -10
- package/tsconfig.json +0 -23
- package/vite.config.ts +0 -24
- /package/dist/{Blockquote-BamWUQND.mjs → Blockquote-BamWUQND.js} +0 -0
- /package/dist/{Blockquote-CQSBFnsu.js → Blockquote-CQSBFnsu.cjs} +0 -0
- /package/dist/{BulletList-BQTUD69X.mjs → BulletList-BQTUD69X.js} +0 -0
- /package/dist/{BulletList-CFjF3U-l.js → BulletList-CFjF3U-l.cjs} +0 -0
- /package/dist/{Doc-6s4VMDsx.mjs → Doc-6s4VMDsx.js} +0 -0
- /package/dist/{Doc-D2yvlSII.js → Doc-D2yvlSII.cjs} +0 -0
- /package/dist/{HardBreak-B2tFO31P.mjs → HardBreak-B2tFO31P.js} +0 -0
- /package/dist/{HardBreak-Dbf5Zg5o.js → HardBreak-Dbf5Zg5o.cjs} +0 -0
- /package/dist/{Heading-BElRvhGn.mjs → Heading-BElRvhGn.js} +0 -0
- /package/dist/{Heading-BUnffIAz.js → Heading-BUnffIAz.cjs} +0 -0
- /package/dist/{HorizontalRule-BRG45oT0.mjs → HorizontalRule-BRG45oT0.js} +0 -0
- /package/dist/{HorizontalRule-CE09LZGf.js → HorizontalRule-CE09LZGf.cjs} +0 -0
- /package/dist/{ListItem-BrjxeGxz.js → ListItem-BrjxeGxz.cjs} +0 -0
- /package/dist/{ListItem-X0T7a_z8.mjs → ListItem-X0T7a_z8.js} +0 -0
- /package/dist/{OrderedList-B8v1gchv.mjs → OrderedList-B8v1gchv.js} +0 -0
- /package/dist/{OrderedList-DMl3tvwP.js → OrderedList-DMl3tvwP.cjs} +0 -0
- /package/dist/{TableCell-BY9gdldc.js → TableCell-BY9gdldc.cjs} +0 -0
- /package/dist/{TableCell-Bp52L368.mjs → TableCell-Bp52L368.js} +0 -0
- /package/dist/{TableContainer-C5KXY6f7.js → TableContainer-C5KXY6f7.cjs} +0 -0
- /package/dist/{TableContainer-C9PhNGlz.mjs → TableContainer-C9PhNGlz.js} +0 -0
- /package/dist/{TableHeader-BTuqvorM.js → TableHeader-BTuqvorM.cjs} +0 -0
- /package/dist/{TableHeader-C7KKz3e1.mjs → TableHeader-C7KKz3e1.js} +0 -0
- /package/dist/{TableRow-D4F6AKFt.js → TableRow-D4F6AKFt.cjs} +0 -0
- /package/dist/{TableRow-OzpVq1qW.mjs → TableRow-OzpVq1qW.js} +0 -0
- /package/dist/{emoji-Bk6FG72F.js → emoji-Bk6FG72F.cjs} +0 -0
- /package/dist/{emoji-CmOToDEU.mjs → emoji-CmOToDEU.js} +0 -0
- /package/dist/{katex-CS0ZfoxP.js → katex-CS0ZfoxP.cjs} +0 -0
- /package/dist/{katex-r9TeExgs.mjs → katex-r9TeExgs.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-D2CtpNvR.js"),i={class:"math-inline"},l=["innerHTML"],d=e.defineComponent({__name:"MathInline",props:{node:{}},async setup(c){let t,o;const r=e.ref("");try{const{default:n}=([t,o]=e.withAsyncContext(()=>Promise.resolve().then(()=>require("./katex-CS0ZfoxP.js"))),t=await t,o(),t);r.value=n.renderToString(c.node.content[0].text,{displayMode:!1,strict:s=>s==="unicodeTextInMathMode"?"ignore":"warn"})}catch(n){console.error(n)}return(n,s)=>(e.openBlock(),e.createElementBlock("span",i,[e.createElementVNode("span",{class:"math-render",innerHTML:r.value},null,8,l)]))}}),_=a._export_sfc(d,[["__scopeId","data-v-5812f609"]]);exports.default=_;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-D2CtpNvR.js"),d={},a={fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};function i(C,t){return e.openBlock(),e.createElementBlock("svg",a,[...t[0]||(t[0]=[e.createStaticVNode('<path d="M5.00011 1.5C5.00011 1.26811 4.84067 1.06665 4.61499 1.01337C4.38621 0.959365 4.15942 1.07489 4.05148 1.27908C4.0295 1.32097 4.00531 1.36174 3.98053 1.40201C3.92681 1.4893 3.8447 1.61261 3.73468 1.75015C3.51178 2.02877 3.19011 2.34598 2.7765 2.55278C2.52951 2.67628 2.4294 2.97661 2.5529 3.2236C2.67639 3.47059 2.97673 3.57071 3.22372 3.44721C3.52353 3.29731 3.78202 3.11091 4.00011 2.91823V5.5C4.00011 5.77614 4.22397 6 4.50011 6C4.77625 6 5.00011 5.77614 5.00011 5.5V1.5Z" fill="#212121"></path><path d="M2.64642 7.64651C2.45117 7.84179 2.4512 8.15837 2.64647 8.35362C2.84059 8.5477 3.15457 8.54883 3.35008 8.35703L3.35665 8.35101C3.36458 8.34391 3.37911 8.33132 3.39988 8.315C3.44165 8.28217 3.50709 8.23546 3.59323 8.18805C3.76518 8.09341 4.01033 8.00085 4.31294 8.00001C4.54021 8.00453 4.72387 8.06477 4.83732 8.14879C4.93306 8.21968 5 8.31947 5 8.50009C5 8.70237 4.92979 8.81922 4.78928 8.93631C4.63792 9.06244 4.44136 9.15973 4.17109 9.29351C4.12524 9.3162 4.07662 9.34027 4.0264 9.36539C3.71266 9.52225 3.32368 9.72887 3.02065 10.0622C2.69919 10.4158 2.5 10.8809 2.5 11.5001C2.5 11.7763 2.72386 12.0001 3 12.0001H5.49944C5.77558 12.0001 6 11.7763 6 11.5001C6 11.224 5.77614 11.0001 5.5 11.0001H3.58925C3.63458 10.8934 3.69413 10.808 3.7606 10.7349C3.92632 10.5526 4.16234 10.4154 4.4736 10.2598C4.51206 10.2406 4.55257 10.2207 4.5946 10.2001C4.85655 10.0716 5.17854 9.91363 5.42947 9.70453C5.75771 9.43099 6 9.04783 6 8.50009C6 7.99565 5.77725 7.60048 5.43244 7.34515C5.10604 7.10344 4.69985 7.00638 4.32563 7.00007L4.31722 7C3.80459 6.99998 3.39261 7.15701 3.11107 7.31196C2.97006 7.38957 2.85942 7.46787 2.78191 7.5288C2.74303 7.55936 2.71212 7.58584 2.68951 7.60609C2.67819 7.61622 2.66892 7.62483 2.66173 7.63164L2.65251 7.64051L2.64907 7.64388L2.64765 7.64529L2.64642 7.64651ZM2.66173 7.63164L2.64642 7.64651C2.64642 7.64651 2.7471 7.55676 2.66173 7.63164Z" fill="#212121"></path><path d="M4.25011 15C3.97397 15 3.75011 15.2239 3.75011 15.5C3.75011 15.7761 3.97397 16 4.25011 16C4.5929 16 4.78233 16.0967 4.87775 16.1831C4.97201 16.2685 5.01072 16.3744 5.00671 16.4813C4.99946 16.6747 4.82083 17 4.25011 17C3.8376 17 3.62396 16.8983 3.52746 16.834C3.4769 16.8003 3.44973 16.771 3.43891 16.758L3.43482 16.7529C3.30449 16.5232 3.01552 16.4333 2.7765 16.5528C2.52951 16.6763 2.4294 16.9766 2.5529 17.2236L2.55361 17.225L2.55435 17.2265L2.55594 17.2296L2.55948 17.2364L2.56815 17.2521C2.57465 17.2636 2.58262 17.2769 2.59222 17.2919C2.61141 17.3217 2.63716 17.358 2.67069 17.3982C2.73799 17.479 2.83582 17.5747 2.97276 17.666C3.25126 17.8517 3.66262 18 4.25011 18C5.27939 18 5.97576 17.3253 6.00601 16.5187C6.01979 16.1513 5.88798 15.783 5.60959 15.5C5.88798 15.217 6.01979 14.8487 6.00601 14.4813C5.97576 13.6747 5.27939 13 4.25011 13C3.66262 13 3.25126 13.1483 2.97276 13.334C2.83582 13.4253 2.73799 13.521 2.67069 13.6018C2.63716 13.642 2.61141 13.6783 2.59222 13.7081C2.58262 13.7231 2.57465 13.7364 2.56815 13.7479L2.55948 13.7636L2.55594 13.7704L2.55435 13.7735L2.55361 13.775L2.5529 13.7764C2.4294 14.0234 2.52951 14.3237 2.7765 14.4472C3.01552 14.5667 3.30449 14.4768 3.43482 14.2471L3.43891 14.242C3.44973 14.229 3.4769 14.1997 3.52746 14.166C3.62396 14.1017 3.8376 14 4.25011 14C4.82083 14 4.99946 14.3253 5.00671 14.5187C5.01072 14.6256 4.97201 14.7315 4.87775 14.8169C4.78233 14.9033 4.5929 15 4.25011 15ZM3.43482 14.2471L3.43279 14.2498L3.43339 14.2489C3.43339 14.2489 3.43583 14.245 3.43817 14.2409L3.44223 14.2335L3.44465 14.2289L3.44596 14.2263L3.44698 14.2243C3.44309 14.232 3.43904 14.2396 3.43482 14.2471Z" fill="#212121"></path><path d="M8.49976 4C8.22361 4 7.99976 4.22386 7.99976 4.5C7.99976 4.77614 8.22361 5 8.49976 5H16.4998C16.7759 5 16.9998 4.77614 16.9998 4.5C16.9998 4.22386 16.7759 4 16.4998 4H8.49976Z" fill="#212121"></path><path d="M8.49976 9C8.22361 9 7.99976 9.22386 7.99976 9.5C7.99976 9.77614 8.22361 10 8.49976 10H16.4998C16.7759 10 16.9998 9.77614 16.9998 9.5C16.9998 9.22386 16.7759 9 16.4998 9H8.49976Z" fill="#212121"></path><path d="M7.99976 14.5C7.99976 14.2239 8.22361 14 8.49976 14H16.4998C16.7759 14 16.9998 14.2239 16.9998 14.5C16.9998 14.7761 16.7759 15 16.4998 15H8.49976C8.22361 15 7.99976 14.7761 7.99976 14.5Z" fill="#212121"></path>',6)])])}const r=s._export_sfc(d,[["render",i]]),p={class:"mc-choices-header"},h={class:"choices-header-bar"},u={class:"choice-list"},L=["value","disabled"],m={class:"prefix"},_=e.defineComponent({__name:"McChoices",props:e.mergeModels({node:{},submitted:{type:Boolean}},{selected:{},selectedModifiers:{}}),emits:["update:selected"],setup(C){const t=e.useModel(C,"selected");return(M,o)=>(e.openBlock(),e.createElementBlock("div",p,[e.createElementVNode("div",h,[e.createVNode(r,{class:"header-icon"}),o[1]||(o[1]=e.createElementVNode("span",{class:"header-text"},"选项",-1))]),e.createElementVNode("div",u,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.node.content,(c,l)=>(e.openBlock(),e.createElementBlock("label",{class:"choice-item",key:l},[e.withDirectives(e.createElementVNode("input",{type:"radio",value:l,"onUpdate:modelValue":o[0]||(o[0]=n=>t.value=n),disabled:C.submitted},null,8,L),[[e.vModelRadio,t.value]]),e.createElementVNode("span",m,e.toDisplayString(String.fromCharCode(65+l))+".",1),e.createVNode(s._sfc_main,{node:c},null,8,["node"])]))),128))])]))}}),f=s._export_sfc(_,[["__scopeId","data-v-1b935e83"]]);exports.default=f;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),n=require("./index-D2CtpNvR.js"),r={},l={fill:"none",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};function d(o,t){return e.openBlock(),e.createElementBlock("svg",l,[...t[0]||(t[0]=[e.createElementVNode("path",{d:"M14.4987 3C15.8793 3 16.9985 4.11916 16.9985 5.49972V9.00234C16.6571 9.0179 16.3179 9.0941 15.9986 9.23094V6.99956H3.99989V14.4987C3.99989 15.3271 4.67139 15.9986 5.49972 15.9986H9.47395C9.45833 16.0499 9.44398 16.1017 9.43092 16.1539L9.21979 16.9985H5.49972C4.11916 16.9985 3 15.8793 3 14.4987V5.49972C3 4.11916 4.11916 3 5.49972 3H14.4987ZM14.4987 3.99989H5.49972C4.67139 3.99989 3.99989 4.67139 3.99989 5.49972V5.99967H15.9986V5.49972C15.9986 4.67139 15.3271 3.99989 14.4987 3.99989ZM10.9789 15.3758L15.8078 10.5469C16.538 9.81666 17.722 9.81666 18.4523 10.5469C19.1826 11.2772 19.1826 12.4612 18.4523 13.1915L13.6234 18.0204C13.3419 18.3019 12.9891 18.5016 12.6028 18.5982L11.1051 18.9726C10.4537 19.1355 9.86376 18.5455 10.0266 17.8942L10.401 16.3964C10.4976 16.0101 10.6973 15.6574 10.9789 15.3758Z",fill:"#212121"},null,-1)])])}const i=n._export_sfc(r,[["render",d]]),a={class:"mc-question-header"},u={class:"question-header"},_={class:"question-content"},m=e.defineComponent({__name:"McQuestion",props:{node:{}},setup(o){return(t,s)=>(e.openBlock(),e.createElementBlock("div",a,[e.createElementVNode("div",u,[e.createVNode(i,{class:"icon"}),s[0]||(s[0]=e.createElementVNode("span",{class:"header-text"},"题目",-1))]),e.createElementVNode("div",_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.content,c=>(e.openBlock(),e.createBlock(n._sfc_main,{node:c,key:e.useId()},null,8,["node"]))),128))])]))}}),p=n._export_sfc(m,[["__scopeId","data-v-d7042536"]]);exports.default=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-D2CtpNvR.js"),c={class:"mc-solution"},r=e.defineComponent({__name:"McSolution",props:{node:{},correct:{type:Boolean}},setup(o){return(s,a)=>(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",{class:e.normalizeClass(["solution-content",o.correct?"correct":"wrong"])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.content,n=>(e.openBlock(),e.createBlock(t._sfc_main,{node:n,key:e.useId()},null,8,["node"]))),128))],2)]))}}),l=t._export_sfc(r,[["__scopeId","data-v-cb592ef8"]]);exports.default=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./McChoices-B4euzY7M.js"),i=require("./McQuestion-Dq0aM5tC.js"),m=require("./McSolution-N79CllH9.js"),v=require("./index-D2CtpNvR.js"),f={class:"multiple-choice"},b={key:0,class:"submit-area"},p=["disabled"],k=e.defineComponent({__name:"MultipleChoice",props:{node:{}},setup(t){const u=t,o=e.ref(null),n=e.ref(!1),c=e.ref(!1),d=()=>{n.value=!0;const l=u.node.content[1].attrs.correctIndex;c.value=o.value===l};return(l,s)=>(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(i.default,{node:t.node.content[0]},null,8,["node"]),e.createVNode(a.default,{selected:o.value,"onUpdate:selected":s[0]||(s[0]=r=>o.value=r),node:t.node.content[1],submitted:n.value},null,8,["selected","node","submitted"]),n.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",b,[e.createElementVNode("button",{class:"submit-button",disabled:o.value===null,onClick:d},"提交答案",8,p)])),n.value?(e.openBlock(),e.createBlock(m.default,{key:1,node:t.node.content[2],correct:c.value},null,8,["node","correct"])):e.createCommentVNode("",!0)]))}}),C=v._export_sfc(k,[["__scopeId","data-v-7715f66b"]]);exports.default=C;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t=require("./index-D2CtpNvR.js"),o={class:"paragraph"},a=e.defineComponent({__name:"Paragraph",props:{node:{}},setup(s){return(r,c)=>(e.openBlock(),e.createElementBlock("p",o,[e.renderSlot(r.$slots,"default",{},void 0,!0)]))}}),n=t._export_sfc(a,[["__scopeId","data-v-550653ec"]]);exports.default=n;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),r=require("./index-D2CtpNvR.js"),n={};function o(e,s){return t.renderSlot(e.$slots,"default")}const c=r._export_sfc(n,[["render",o]]);exports.default=c;
|
package/dist/Text-DlUfrsNI.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./SlotNode-DMG0R6Vf.js"),u=e.defineComponent({__name:"Text",props:{node:{}},setup(t){const l=e.computed(()=>t.node.marks?.[0]),n=e.computed(()=>l.value?.type),o=e.computed(()=>r[l.value?.type]),r={bold:"strong",italic:"em",underline:"u",strike:"s",highlight:"mark",textStyle:"span",link:"a",code:"code"};return(s,d)=>{const a=e.resolveComponent("Text",!0);return t.node.marks?.length&&n.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[n.value==="link"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:0,target:l.value.attrs?.href,href:l.value.attrs?.href,class:e.normalizeClass(l.value.attrs?.class),rel:l.value.attrs?.rel},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1},8,["target","href","class","rel"])):n.value==="highlight"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:1,style:e.normalizeStyle({...l.value.attrs,color:null,"background-color":l.value.attrs.color})},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1},8,["style"])):n.value==="textStyle"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:2,style:e.normalizeStyle(l.value.attrs??null)},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1},8,["style"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:3},{default:e.withCtx(()=>[e.createVNode(a,{node:{...t.node,marks:t.node.marks?.slice(1)}},null,8,["node"])]),_:1}))],64)):(e.openBlock(),e.createBlock(c.default,{key:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.node.text),1)]),_:1}))}}});exports.default=u;
|
package/dist/index-D2CtpNvR.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),a=Symbol(),l=e.ref([]),m=Symbol(),p=o=>{const t=[],n=s=>{s.type==="image"&&t.push(s),s.content&&s.content.forEach(i=>n(i))};return n(o),t},c=(o,t)=>{const n=o.__vccOpts||o;for(const[s,i]of t)n[s]=i;return n},v={},f={class:"error-wrapper"};function q(o,t){return e.openBlock(),e.createElementBlock("div",f,"组件加载失败")}const k=c(v,[["render",q],["__scopeId","data-v-4fa940a8"]]),P={};function _(o,t){return"loading..."}const g=c(P,[["render",_]]),r=(o,t={loadingComponent:g,delay:200,errorComponent:k,timeout:5e3})=>e.defineAsyncComponent({loader:o,...t}),y={"attachment-inline":r(()=>Promise.resolve().then(()=>require("./AttachmentInline-Dc3dp0g-.js"))),"attachment-block":r(()=>Promise.resolve().then(()=>require("./AttachmentBlock-DsmJP3Kw.js")))},B={text:r(()=>Promise.resolve().then(()=>require("./Text-DlUfrsNI.js"))),paragraph:r(()=>Promise.resolve().then(()=>require("./Paragraph-CzRSCJNr.js"))),heading:r(()=>Promise.resolve().then(()=>require("./Heading-BUnffIAz.js"))),orderedList:r(()=>Promise.resolve().then(()=>require("./OrderedList-DMl3tvwP.js"))),bulletList:r(()=>Promise.resolve().then(()=>require("./BulletList-CFjF3U-l.js"))),listItem:r(()=>Promise.resolve().then(()=>require("./ListItem-BrjxeGxz.js"))),horizontalRule:r(()=>Promise.resolve().then(()=>require("./HorizontalRule-CE09LZGf.js"))),blockquote:r(()=>Promise.resolve().then(()=>require("./Blockquote-CQSBFnsu.js"))),hardBreak:r(()=>Promise.resolve().then(()=>require("./HardBreak-Dbf5Zg5o.js")))},b={callout:r(()=>Promise.resolve().then(()=>require("./Callout-DPdOqTb4.js")))},C={codeBlock:r(()=>Promise.resolve().then(()=>require("./CodeBlock-DWniNUQB.js"))),cellOutput:r(()=>Promise.resolve().then(()=>require("./CellOutput-DiKZlIFa.js")))},x={foldBlock:r(()=>Promise.resolve().then(()=>require("./FoldBlock-ZPMf0QsR.js")))},M={grid:r(()=>Promise.resolve().then(()=>require("./Grid-QToZdaRT.js")))},w={iframe:r(()=>Promise.resolve().then(()=>require("./IFrame-DcCpSoDC.js")))},I={image:r(()=>Promise.resolve().then(()=>require("./Image-cHL85CXs.js")))},L={math_inline:r(()=>Promise.resolve().then(()=>require("./MathInline-C_1SJUVz.js"))),math_display:r(()=>Promise.resolve().then(()=>require("./MathDisplay-CESKZV46.js")))},N={multipleChoice:r(()=>Promise.resolve().then(()=>require("./MultipleChoice-DTCF3Q8m.js"))),mcQuestion:r(()=>Promise.resolve().then(()=>require("./McQuestion-Dq0aM5tC.js"))),mcChoices:r(()=>Promise.resolve().then(()=>require("./McChoices-B4euzY7M.js"))),mcSolution:r(()=>Promise.resolve().then(()=>require("./McSolution-N79CllH9.js")))},R={table:r(()=>Promise.resolve().then(()=>require("./TableContainer-C5KXY6f7.js"))),tableHeader:r(()=>Promise.resolve().then(()=>require("./TableHeader-BTuqvorM.js"))),tableRow:r(()=>Promise.resolve().then(()=>require("./TableRow-D4F6AKFt.js"))),tableCell:r(()=>Promise.resolve().then(()=>require("./TableCell-BY9gdldc.js")))},$={doc:r(()=>Promise.resolve().then(()=>require("./Doc-D2yvlSII.js"))),slotNode:r(()=>Promise.resolve().then(()=>require("./SlotNode-DMG0R6Vf.js")))},A={...y,...B,...b,...C,...x,...M,...I,...L,...N,...R,...$,...w},u=e.defineComponent({__name:"TreeRecursive",props:{node:{}},setup(o){const t=new Set(["blockquote","orderedList","bulletList","paragraph","math_display","codeBlock","cellOutput","callout","foldBlock","image","attachment-block","grid","table","iframe","multipleChoice"]),n=e.computed(()=>t.has(o.node.type)&&o.node.attrs&&o.node.attrs["block-id"]?{"data-block-id":o.node.attrs["block-id"]}:{});return(s,i)=>{const d=e.resolveComponent("TreeRecursive",!0);return e.openBlock(),e.createBlock(e.Suspense,null,{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(A)[o.node.type]),e.mergeProps({node:o.node},n.value),{default:e.withCtx(()=>[o.node.content&&!(o.node.type in["foldBlock","grid","callout"])?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.node.content,h=>(e.openBlock(),e.createBlock(d,{node:h,key:e.useId()},null,8,["node"]))),128)):e.createCommentVNode("",!0)]),_:1},16,["node"]))]),_:1})}}}),E={class:"tree-render"},S=e.defineComponent({__name:"TreeRender",props:{node:{},axios:{}},setup(o){return e.provide(m,l),e.provide(a,o.axios),e.watch(()=>o.node,t=>{l.value=p(t)}),(t,n)=>(e.openBlock(),e.createElementBlock("div",E,[e.createVNode(u,{node:o.node},null,8,["node"])]))}});exports._export_sfc=c;exports._sfc_main=u;exports._sfc_main$1=S;exports.axiosKey=a;exports.imageNodesKey=m;
|
package/src/apis/monitor.ts
DELETED
package/src/apis/tingwu.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { HTTPClientType } from "./types";
|
|
2
|
-
|
|
3
|
-
export type VideoProgressDetail = {
|
|
4
|
-
id?: number;
|
|
5
|
-
videoUrl?: string;
|
|
6
|
-
progress?: number;
|
|
7
|
-
tingwuTaskId?: string;
|
|
8
|
-
tingwuStatus?: "pending" | "running" | "done" | "failed";
|
|
9
|
-
chapters: string;
|
|
10
|
-
summary: string;
|
|
11
|
-
keywords: string;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export async function videoProgressDetailApi(
|
|
15
|
-
service: HTTPClientType,
|
|
16
|
-
params: { taskId: string }
|
|
17
|
-
): Promise<VideoProgressDetail> {
|
|
18
|
-
const response = await service.get("/admin/editor/v2/videoProgressDetail", {
|
|
19
|
-
params,
|
|
20
|
-
});
|
|
21
|
-
return response.data;
|
|
22
|
-
}
|
package/src/apis/types.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
type HTTPResponse<T = any> = {
|
|
2
|
-
data: T;
|
|
3
|
-
code: number;
|
|
4
|
-
message: string;
|
|
5
|
-
traceId: string;
|
|
6
|
-
};
|
|
7
|
-
|
|
8
|
-
type HTTPOptions<P = any, D = any> = {
|
|
9
|
-
data?: D;
|
|
10
|
-
params?: P;
|
|
11
|
-
headers?: Record<string, any>;
|
|
12
|
-
timeout?: number;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
type CustomConfig = {
|
|
16
|
-
ignoreErrHandler?: boolean; // 是否不使用错误拦截
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export interface HTTPClientType {
|
|
20
|
-
get<P = any, R = any>(
|
|
21
|
-
url: string,
|
|
22
|
-
options?: HTTPOptions<P>,
|
|
23
|
-
customConfig?: CustomConfig
|
|
24
|
-
): Promise<HTTPResponse<R>>;
|
|
25
|
-
|
|
26
|
-
post<D = any, R = any, P = any>(
|
|
27
|
-
url: string,
|
|
28
|
-
options?: HTTPOptions<P, D>,
|
|
29
|
-
customConfig?: CustomConfig
|
|
30
|
-
): Promise<HTTPResponse<R>>;
|
|
31
|
-
|
|
32
|
-
patch<D = any, R = any, P = any>(
|
|
33
|
-
url: string,
|
|
34
|
-
options?: HTTPOptions<P, D>,
|
|
35
|
-
customConfig?: CustomConfig
|
|
36
|
-
): Promise<HTTPResponse<R>>;
|
|
37
|
-
|
|
38
|
-
delete<D = any, R = any, P = any>(
|
|
39
|
-
url: string,
|
|
40
|
-
options?: HTTPOptions<P, D>,
|
|
41
|
-
customConfig?: CustomConfig
|
|
42
|
-
): Promise<HTTPResponse<R>>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const axiosKey = Symbol();
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<Suspense>
|
|
3
|
-
<component :is="componentMapper[node.type]" :node="node" v-bind="dataBlockId">
|
|
4
|
-
<template v-if="node.content && !(node.type in ['foldBlock', 'grid', 'callout'])">
|
|
5
|
-
<TreeRecursive v-for="child in node.content" :node="child" :key="useId()" />
|
|
6
|
-
</template>
|
|
7
|
-
</component>
|
|
8
|
-
</Suspense>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script setup lang="ts">
|
|
12
|
-
import { computed, useId } from 'vue';
|
|
13
|
-
import type { PMNode } from '@datawhale/dipwap-types/index';
|
|
14
|
-
import { componentMapper } from './collections';
|
|
15
|
-
|
|
16
|
-
const { node } = defineProps<{
|
|
17
|
-
node: PMNode;
|
|
18
|
-
}>();
|
|
19
|
-
|
|
20
|
-
const dataBlockIdContainerNames = new Set<string>([
|
|
21
|
-
'blockquote',
|
|
22
|
-
'orderedList',
|
|
23
|
-
'bulletList',
|
|
24
|
-
'paragraph',
|
|
25
|
-
'math_display',
|
|
26
|
-
'codeBlock',
|
|
27
|
-
'cellOutput',
|
|
28
|
-
'callout',
|
|
29
|
-
'foldBlock',
|
|
30
|
-
'image',
|
|
31
|
-
'attachment-block',
|
|
32
|
-
'grid',
|
|
33
|
-
'table',
|
|
34
|
-
'iframe',
|
|
35
|
-
'multipleChoice',
|
|
36
|
-
]);
|
|
37
|
-
|
|
38
|
-
const dataBlockId = computed(() => {
|
|
39
|
-
// @ts-ignore every node here has a block-id
|
|
40
|
-
if (dataBlockIdContainerNames.has(node.type) && node.attrs && node.attrs['block-id']) {
|
|
41
|
-
// @ts-ignore every node here has a block-id
|
|
42
|
-
return { 'data-block-id': node.attrs['block-id'] };
|
|
43
|
-
} else {
|
|
44
|
-
return {};
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
</script>
|
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="tree-render">
|
|
3
|
-
<TreeRecursive :node="node" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup lang="ts">
|
|
8
|
-
import { provide, watch } from 'vue';
|
|
9
|
-
import { type HTTPClientType, axiosKey } from '@datawhale/dipwap-render/apis/types';
|
|
10
|
-
import type { PMNode } from '@datawhale/dipwap-types/index';
|
|
11
|
-
import { getAllImageNodes, imageNodes, imageNodesKey } from '../utils/globalStatus';
|
|
12
|
-
import TreeRecursive from './TreeRecursive.vue';
|
|
13
|
-
|
|
14
|
-
const { node, axios } = defineProps<{
|
|
15
|
-
node: PMNode;
|
|
16
|
-
axios: HTTPClientType;
|
|
17
|
-
}>();
|
|
18
|
-
|
|
19
|
-
provide(imageNodesKey, imageNodes);
|
|
20
|
-
provide(axiosKey, axios);
|
|
21
|
-
|
|
22
|
-
watch(
|
|
23
|
-
() => node,
|
|
24
|
-
(newNode) => {
|
|
25
|
-
imageNodes.value = getAllImageNodes(newNode);
|
|
26
|
-
},
|
|
27
|
-
);
|
|
28
|
-
</script>
|
|
29
|
-
|
|
30
|
-
<style lang="scss">
|
|
31
|
-
.tree-render {
|
|
32
|
-
mark {
|
|
33
|
-
color: inherit;
|
|
34
|
-
background-color: inherit;
|
|
35
|
-
}
|
|
36
|
-
min-height: calc(100vh - 232.25px);
|
|
37
|
-
outline: none;
|
|
38
|
-
width: 100%;
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
::selection {
|
|
41
|
-
background-color: rgba(20, 86, 240, 0.18);
|
|
42
|
-
/* 选中背景颜色 */
|
|
43
|
-
}
|
|
44
|
-
color: rgb(31, 35, 41);
|
|
45
|
-
letter-spacing: 0.28px;
|
|
46
|
-
word-wrap: break-word;
|
|
47
|
-
font-family:
|
|
48
|
-
LarkHackSafariFont,
|
|
49
|
-
LarkEmojiFont,
|
|
50
|
-
LarkChineseQuote,
|
|
51
|
-
-apple-system,
|
|
52
|
-
BlinkMacSystemFont,
|
|
53
|
-
Helvetica Neue,
|
|
54
|
-
Tahoma,
|
|
55
|
-
PingFang SC,
|
|
56
|
-
Microsoft Yahei,
|
|
57
|
-
Arial,
|
|
58
|
-
Hiragino Sans GB,
|
|
59
|
-
sans-serif,
|
|
60
|
-
Apple Color Emoji,
|
|
61
|
-
Segoe UI Emoji,
|
|
62
|
-
Segoe UI Symbol,
|
|
63
|
-
Noto Color Emoji;
|
|
64
|
-
code {
|
|
65
|
-
font-family: 'Source Code Pro', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', 'Microsoft Yahei';
|
|
66
|
-
}
|
|
67
|
-
h1,
|
|
68
|
-
h2,
|
|
69
|
-
h3,
|
|
70
|
-
h4,
|
|
71
|
-
h5,
|
|
72
|
-
h6 {
|
|
73
|
-
font-weight: 600;
|
|
74
|
-
letter-spacing: -0.52px;
|
|
75
|
-
code {
|
|
76
|
-
box-sizing: border-box;
|
|
77
|
-
margin: 0 3px;
|
|
78
|
-
padding: 1px 2px;
|
|
79
|
-
background-color: rgb(245, 246, 247);
|
|
80
|
-
border-radius: 4px;
|
|
81
|
-
border: 1px solid rgb(222, 224, 227);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
& .doc > h1:first-child {
|
|
85
|
-
margin-top: 22px;
|
|
86
|
-
}
|
|
87
|
-
h1 {
|
|
88
|
-
margin-top: 26px;
|
|
89
|
-
margin-bottom: 10px;
|
|
90
|
-
font-size: 26px;
|
|
91
|
-
line-height: 36.4px;
|
|
92
|
-
}
|
|
93
|
-
h2 {
|
|
94
|
-
margin-top: 22px;
|
|
95
|
-
margin-bottom: 8px;
|
|
96
|
-
font-size: 22px;
|
|
97
|
-
line-height: 30.8px;
|
|
98
|
-
}
|
|
99
|
-
h3 {
|
|
100
|
-
margin-top: 20px;
|
|
101
|
-
margin-bottom: 8px;
|
|
102
|
-
font-size: 20px;
|
|
103
|
-
line-height: 28px;
|
|
104
|
-
}
|
|
105
|
-
h4 {
|
|
106
|
-
margin-top: 18px;
|
|
107
|
-
margin-bottom: 8px;
|
|
108
|
-
font-size: 18px;
|
|
109
|
-
line-height: 25.2px;
|
|
110
|
-
}
|
|
111
|
-
h5 {
|
|
112
|
-
margin-top: 18px;
|
|
113
|
-
margin-bottom: 8px;
|
|
114
|
-
font-size: 16px;
|
|
115
|
-
line-height: 22.4px;
|
|
116
|
-
}
|
|
117
|
-
h6 {
|
|
118
|
-
margin-top: 16px;
|
|
119
|
-
margin-bottom: 8px;
|
|
120
|
-
font-size: 16px;
|
|
121
|
-
line-height: 22.4px;
|
|
122
|
-
}
|
|
123
|
-
hr {
|
|
124
|
-
border: none;
|
|
125
|
-
margin: 8px 0;
|
|
126
|
-
height: 26px;
|
|
127
|
-
position: relative;
|
|
128
|
-
&::after {
|
|
129
|
-
content: '';
|
|
130
|
-
position: absolute;
|
|
131
|
-
top: 50%;
|
|
132
|
-
left: 0;
|
|
133
|
-
width: 100%;
|
|
134
|
-
height: 1px;
|
|
135
|
-
background-color: rgba(31, 35, 41, 0.15);
|
|
136
|
-
transform: translateY(-50%);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
blockquote {
|
|
140
|
-
border-left: 2px solid rgb(187, 191, 196);
|
|
141
|
-
padding-left: 12px;
|
|
142
|
-
p {
|
|
143
|
-
color: rgb(100, 106, 115);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
span.math-src {
|
|
147
|
-
div[contenteditable='true'] {
|
|
148
|
-
outline: none;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
p {
|
|
152
|
-
margin: 8px 0;
|
|
153
|
-
line-height: 26px;
|
|
154
|
-
font-size: 16px;
|
|
155
|
-
font-weight: 400;
|
|
156
|
-
white-space-collapse: break-spaces;
|
|
157
|
-
text-wrap-mode: wrap;
|
|
158
|
-
a {
|
|
159
|
-
color: rgb(51, 109, 244);
|
|
160
|
-
text-decoration: none;
|
|
161
|
-
cursor: pointer;
|
|
162
|
-
&:hover {
|
|
163
|
-
text-decoration: underline;
|
|
164
|
-
text-decoration-color: rgb(51, 109, 244);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
strong {
|
|
168
|
-
font-weight: 700;
|
|
169
|
-
}
|
|
170
|
-
em {
|
|
171
|
-
font-style: italic;
|
|
172
|
-
}
|
|
173
|
-
del {
|
|
174
|
-
text-decoration: line-through;
|
|
175
|
-
}
|
|
176
|
-
u {
|
|
177
|
-
text-decoration: underline;
|
|
178
|
-
}
|
|
179
|
-
code {
|
|
180
|
-
box-sizing: border-box;
|
|
181
|
-
margin: 0 3px;
|
|
182
|
-
padding: 1px 2px;
|
|
183
|
-
background-color: rgb(245, 246, 247);
|
|
184
|
-
border-radius: 4px;
|
|
185
|
-
border: 1px solid rgb(222, 224, 227);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
ul {
|
|
189
|
-
margin-left: 22px;
|
|
190
|
-
margin-top: 8px;
|
|
191
|
-
margin-bottom: 8px;
|
|
192
|
-
& > li::marker {
|
|
193
|
-
content: '• ';
|
|
194
|
-
color: rgb(20, 86, 240);
|
|
195
|
-
font-size: 16px;
|
|
196
|
-
}
|
|
197
|
-
ul {
|
|
198
|
-
& > li::marker {
|
|
199
|
-
content: '◦ ';
|
|
200
|
-
color: rgb(20, 86, 240);
|
|
201
|
-
font-size: 16px;
|
|
202
|
-
}
|
|
203
|
-
ul {
|
|
204
|
-
& > li::marker {
|
|
205
|
-
content: '▪ ';
|
|
206
|
-
color: rgb(20, 86, 240);
|
|
207
|
-
font-size: 16px;
|
|
208
|
-
}
|
|
209
|
-
ul {
|
|
210
|
-
& > li::marker {
|
|
211
|
-
content: '• ';
|
|
212
|
-
color: rgb(20, 86, 240);
|
|
213
|
-
font-size: 16px;
|
|
214
|
-
}
|
|
215
|
-
ul {
|
|
216
|
-
& > li::marker {
|
|
217
|
-
content: '◦ ';
|
|
218
|
-
color: rgb(20, 86, 240);
|
|
219
|
-
font-size: 16px;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
li {
|
|
227
|
-
margin: 8px 0;
|
|
228
|
-
}
|
|
229
|
-
ol {
|
|
230
|
-
margin-left: 29px;
|
|
231
|
-
list-style-type: decimal;
|
|
232
|
-
li::marker {
|
|
233
|
-
color: rgb(20, 86, 240);
|
|
234
|
-
font-family: 'Helvetica Neue', Consolas;
|
|
235
|
-
}
|
|
236
|
-
ol {
|
|
237
|
-
list-style-type: lower-alpha;
|
|
238
|
-
ol {
|
|
239
|
-
list-style-type: lower-roman;
|
|
240
|
-
ol {
|
|
241
|
-
list-style-type: decimal;
|
|
242
|
-
ol {
|
|
243
|
-
list-style-type: lower-alpha;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
.tiptap .shiki {
|
|
250
|
-
border-radius: 4px;
|
|
251
|
-
padding: 8px;
|
|
252
|
-
}
|
|
253
|
-
.tiptap .shiki:focus-visible {
|
|
254
|
-
outline: 2px solid transparent;
|
|
255
|
-
outline-offset: 2px;
|
|
256
|
-
}
|
|
257
|
-
pre {
|
|
258
|
-
padding: 24px;
|
|
259
|
-
border-radius: 6px;
|
|
260
|
-
margin: 16px 0;
|
|
261
|
-
outline: none;
|
|
262
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
|
263
|
-
overflow-x: auto;
|
|
264
|
-
background-color: rgb(245, 246, 247);
|
|
265
|
-
code {
|
|
266
|
-
width: 100%;
|
|
267
|
-
outline: none;
|
|
268
|
-
line-height: 22px;
|
|
269
|
-
font-size: 14px;
|
|
270
|
-
span {
|
|
271
|
-
text-wrap-mode: nowrap;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
.tableWrapper {
|
|
276
|
-
margin: 24px 0;
|
|
277
|
-
max-width: 100%;
|
|
278
|
-
overflow-x: auto;
|
|
279
|
-
}
|
|
280
|
-
table {
|
|
281
|
-
th,
|
|
282
|
-
td {
|
|
283
|
-
min-width: 39px;
|
|
284
|
-
border: 1px solid rgb(222, 224, 227);
|
|
285
|
-
padding: 12px;
|
|
286
|
-
position: relative;
|
|
287
|
-
:not(a.grip-column):not(a.grip-row):nth-child(1),
|
|
288
|
-
a.grip-column + :not(a.grip-row):nth-child(2),
|
|
289
|
-
a.grip-row + :not(a.grip-column):nth-child(2),
|
|
290
|
-
a.grip-column + *:nth-child(3),
|
|
291
|
-
a.grip-row + *:nth-child(3) {
|
|
292
|
-
margin-top: 0;
|
|
293
|
-
}
|
|
294
|
-
:not(a.grip-column):not(a.grip-row):nth-last-child(1),
|
|
295
|
-
:not(a.grip-column):not(a.grip-row):nth-last-child(2) {
|
|
296
|
-
margin-bottom: 0;
|
|
297
|
-
}
|
|
298
|
-
}
|
|
299
|
-
.column-resize-handle {
|
|
300
|
-
background-color: rgb(20, 86, 240);
|
|
301
|
-
bottom: 0px;
|
|
302
|
-
pointer-events: none;
|
|
303
|
-
position: absolute;
|
|
304
|
-
right: -1px;
|
|
305
|
-
top: 0;
|
|
306
|
-
width: 2px;
|
|
307
|
-
}
|
|
308
|
-
.selectedCell {
|
|
309
|
-
background-color: rgba(20, 86, 240, 0.18) !important;
|
|
310
|
-
// filter: brightness(0.9);
|
|
311
|
-
}
|
|
312
|
-
.grip-column,
|
|
313
|
-
.grip-row {
|
|
314
|
-
display: flex;
|
|
315
|
-
align-items: center;
|
|
316
|
-
justify-content: center;
|
|
317
|
-
position: absolute;
|
|
318
|
-
z-index: 10;
|
|
319
|
-
background-color: rgb(239, 240, 241);
|
|
320
|
-
cursor: pointer;
|
|
321
|
-
}
|
|
322
|
-
.grip-column {
|
|
323
|
-
width: 100%;
|
|
324
|
-
height: 8px;
|
|
325
|
-
left: 0;
|
|
326
|
-
top: -8px;
|
|
327
|
-
margin-left: -1px;
|
|
328
|
-
margin-top: -1px;
|
|
329
|
-
border-left: 1px solid rgb(239, 240, 241);
|
|
330
|
-
border-right: 1px solid rgb(239, 240, 241);
|
|
331
|
-
&:hover,
|
|
332
|
-
&.selected {
|
|
333
|
-
z-index: 15;
|
|
334
|
-
&::before {
|
|
335
|
-
content: '';
|
|
336
|
-
width: 10px;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
&:hover {
|
|
340
|
-
border-left: 1px solid rgb(227, 227, 227);
|
|
341
|
-
border-right: 1px solid rgb(227, 227, 227);
|
|
342
|
-
background-color: rgb(227, 227, 227);
|
|
343
|
-
&::before {
|
|
344
|
-
border-bottom: 2px dotted rgb(95, 95, 95);
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
&.selected {
|
|
348
|
-
border-left: 1px solid rgb(20, 86, 240);
|
|
349
|
-
border-right: 1px solid rgb(20, 86, 240);
|
|
350
|
-
background-color: rgb(20, 86, 240);
|
|
351
|
-
&::before {
|
|
352
|
-
border-bottom: 2px dotted rgb(251, 251, 251);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
&.first {
|
|
356
|
-
border-top-left-radius: 4px;
|
|
357
|
-
}
|
|
358
|
-
&.last {
|
|
359
|
-
border-top-right-radius: 4px;
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
.grip-row {
|
|
363
|
-
width: 8px;
|
|
364
|
-
height: 100%;
|
|
365
|
-
top: 0;
|
|
366
|
-
left: -8px;
|
|
367
|
-
margin-top: -1px;
|
|
368
|
-
margin-left: -1px;
|
|
369
|
-
border-top: 1px solid rgb(239, 240, 241);
|
|
370
|
-
border-bottom: 1px solid rgb(239, 240, 241);
|
|
371
|
-
&:hover,
|
|
372
|
-
&.selected {
|
|
373
|
-
z-index: 15;
|
|
374
|
-
&::before {
|
|
375
|
-
content: '';
|
|
376
|
-
height: 10px;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
&:hover {
|
|
380
|
-
border-top: 1px solid rgb(227, 227, 227);
|
|
381
|
-
border-bottom: 1px solid rgb(227, 227, 227);
|
|
382
|
-
background-color: rgb(227, 227, 227);
|
|
383
|
-
&::before {
|
|
384
|
-
border-left: 2px dotted rgb(95, 95, 95);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
&.selected {
|
|
388
|
-
border-top: 1px solid rgb(20, 86, 240);
|
|
389
|
-
border-bottom: 1px solid rgb(20, 86, 240);
|
|
390
|
-
background-color: rgb(20, 86, 240);
|
|
391
|
-
&::before {
|
|
392
|
-
border-left: 2px dotted rgb(251, 251, 251);
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
&.first {
|
|
396
|
-
border-top-left-radius: 4px;
|
|
397
|
-
}
|
|
398
|
-
&.last {
|
|
399
|
-
border-bottom-left-radius: 4px;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
</style>
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="error-wrapper">组件加载失败</div>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<style scoped>
|
|
6
|
-
.error-wrapper {
|
|
7
|
-
width: 160px;
|
|
8
|
-
height: 90px;
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
color: rgb(136, 46, 46);
|
|
13
|
-
font-size: 12px;
|
|
14
|
-
border: 1px solid #888;
|
|
15
|
-
border-radius: 8px;
|
|
16
|
-
}
|
|
17
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<template>loading...</template>
|