@oscloudlab/knowledge-card 0.0.42 → 0.0.43
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/style.css +1 -1
- package/dist/style.css.gz +0 -0
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -29,4 +29,4 @@
|
|
|
29
29
|
* The original design remains. The terminal itself
|
|
30
30
|
* has been extended to include xterm CSI codes, among
|
|
31
31
|
* other features.
|
|
32
|
-
*/.xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xtermContainer{width:100%;height:100%;background:#1e1e1e;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative}.xtermContainer .terminal{width:95%;height:98%;position:relative;display:flex;flex-direction:column;flex:1}.xterms{min-height:320px;height:100%;width:100%;background-color:#1e1e1e;position:relative}.xterms .xterm{height:100%;width:100%}.xterms .xterm .xterm-screen{width:100%!important;height:100%!important}.xterms .xterm .xterm-viewport{background-color:#1e1e1e!important;overflow:auto}.xterms .xterm .xterm-viewport::-webkit-scrollbar{width:0}.xterms .xterm .xterm-viewport::-webkit-scrollbar-track{background:#252526}.xterms .xterm .xterm-viewport::-webkit-scrollbar-thumb{background:#464647}.xterms .xterm .xterm-viewport::-webkit-scrollbar-thumb:hover{background:#5a5a5a}.xterms .xterm-screen{padding:1px}.xterms .xterm-rows .xterm-cursor.xterm-cursor-underline{box-shadow:0 -2px #fff inset!important}.containerMsg{width:-moz-fit-content;width:fit-content;display:flex;gap:12px;align-self:flex-start;align-items:center}.containerMsg .containerChangeBtn{width:-moz-fit-content;width:fit-content;color:#fff;padding:3px 12px;border:1px solid #333333;border-radius:6px;align-self:flex-start;margin:12px;cursor:pointer}.containerMsg .currentContainer{width:-moz-fit-content;width:fit-content;color:#fff}.containerMenu{border:none!important}.codeExample .top-area{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.codeExample .top-area .returnBtn{display:flex;align-items:center;gap:4px;color:#666;font-size:14px;cursor:pointer}.codeExample .top-area .returnBtn:hover{opacity:.8}.codeExample .top-area .returnBtn svg{width:16px}.codeExample .exampleItem{margin-bottom:36px}.codeExample .exampleItem .exampleTitle{font-size:16px;font-weight:600;margin-bottom:12px}.codeExample .exampleItem .codeSection{background:#282a36;border-radius:12px;overflow:hidden}.codeExample .exampleItem .codeSection .codeHeader{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#44475a;border-bottom:1px solid #6272a4}.codeExample .exampleItem .codeSection .codeHeader .language{color:#f8f8f2;font-size:14px;font-weight:500}.codeExample .exampleItem .codeSection .codeHeader .btnGroup{display:flex;align-items:center;gap:8px}.codeExample .exampleItem .codeSection .codeHeader .btnGroup .copyBtn{background:transparent;border:1px solid #6272a4;color:#fff;font-size:12px;height:28px;border-radius:6px}.codeExample .exampleItem .codeSection .codeHeader .btnGroup .copyBtn:hover{background:#fff;color:#1677ff;border:1px solid #1677ff}.codeExample .exampleItem .codeSection .codeHeader .btnGroup .runBtn{background:#52c41a;border:1px solid #6272a4;color:#fff;font-size:12px;height:28px;border-radius:6px;line-height:13px}.codeExample .exampleItem .codeSection .codeHeader .btnGroup .runBtn:hover{background:#fff;color:#1677ff;border:1px solid #1677ff}.codeExample .exampleItem .codeSection .codeBlock .react-code-blocks{margin:0!important}.codeExample .exampleItem .codeSection .codeBlock .react-code-blocks pre{margin:0!important;padding:20px!important;background:#282a36!important;font-size:14px!important;line-height:1.5!important}.codeExample .exampleItem .exampleTips{padding:12px 20px;border-radius:12px;margin-top:12px;background:#eff6ff}.codeExample .exampleItem .exampleTips .tipsTitle{display:flex;align-items:center;gap:4px;font-size:14px;font-weight:600;color:#1677ff;margin-bottom:8px}.codeExample .exampleItem .exampleTips .tipsTitle svg{width:16px}.codeExample .exampleItem .exampleTips .tipItem{margin-bottom:4px;font-size:14px;color:#1677ff}.titleSection{display:flex;align-items:center;gap:12px;flex:1;max-width:calc(100% - 200px)}.titleSection .knowledgeTag{font-size:14px;font-weight:500;border-radius:6px;margin:0;padding:2px 12px 4px}.titleSection .title{font-size:22px;font-weight:600;color:#1a1a1a;margin:0;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.titleSection .editArea{display:flex;gap:8px}.recommendArea{margin-top:12px;width:100%}.recommendArea .recommendKnowledge{margin-bottom:12px;width:100%}.recommendArea .recommendKnowledge .recommendKnowledgeTitle{display:flex;align-items:center;gap:4px;font-size:16px;font-weight:600;color:#333;line-height:22px;margin-bottom:12px}.recommendArea .recommendKnowledge .recommendKnowledgeTitle svg{width:18px;height:18px}.recommendArea .recommendKnowledge .recommendKnowledgeList{width:100%;display:flex;flex-wrap:wrap;gap:12px}.recommendArea .recommendKnowledge .recommendKnowledgeEmpty .emptyDescription span{color:#1677ff;cursor:pointer;margin-left:4px}.recommendArea .recommendKnowledge .recommendKnowledgeEmpty .emptyDescription span:hover{color:#409eff}.recommendArea .recommendVideo{margin-bottom:12px;margin-top:24px;width:100%}.recommendArea .recommendVideo .recommendVideoTitle{display:flex;align-items:center;gap:4px;font-size:16px;font-weight:600;color:#333;line-height:22px;margin-bottom:12px}.recommendArea .recommendVideo .recommendVideoTitle svg{width:18px;height:18px}.recommendArea .recommendVideo .recommendVideoList{display:flex;flex-wrap:wrap;gap:12px}.recommendArea .recommendVideo .recommendVideoList .videoCard{background:#fff;overflow:hidden;cursor:pointer;transition:all .3s ease;border-radius:.75rem;box-shadow:0 4px 16px #0ea5e914}.recommendArea .recommendVideo .recommendVideoList .videoCard:hover{box-shadow:0 8px 24px #0ea5e91f}.recommendArea .recommendVideo .recommendVideoList .videoCard .thumbnailContainer{position:relative}.recommendArea .recommendVideo .recommendVideoList .videoCard .thumbnailContainer .thumbnail{width:100%;height:12rem;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease}.recommendArea .recommendVideo .recommendVideoList .videoCard .thumbnailContainer .duration{position:absolute;top:.5rem;right:.5rem;background:#000000bf;color:#fff;font-size:.75rem;padding:.5rem;border-radius:.25rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent{padding:1rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .cardTitle{font-weight:600;color:#1e293b;margin-bottom:.5rem;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:90%;transition:color .3s ease}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .originalUrl{display:flex;align-items:center;gap:.25rem;font-size:.75rem;color:#64748b;margin-bottom:.5rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .originalUrl svg{width:.75rem;height:.75rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .originalUrl .urlLink{color:inherit;text-decoration:none;transition:color .2s ease;display:flex;align-items:center;gap:.25rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .originalUrl .urlLink:hover{color:#409eff}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .meta{display:flex;align-items:center;justify-content:space-between;font-size:.875rem;color:#64748b;margin-bottom:.75rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .meta .author{line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.aiAssistant{height:100%}
|
|
32
|
+
*/.xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.xtermContainer{width:100%;height:100%;background:#1e1e1e;display:flex;justify-content:center;align-items:center;flex-direction:column;position:relative}.xtermContainer .terminal{width:95%;height:98%;position:relative;display:flex;flex-direction:column;flex:1}.xterms{min-height:320px;height:100%;width:100%;background-color:#1e1e1e;position:relative}.xterms .xterm{height:100%;width:100%}.xterms .xterm .xterm-screen{width:100%!important;height:100%!important}.xterms .xterm .xterm-viewport{background-color:#1e1e1e!important;overflow:auto}.xterms .xterm .xterm-viewport::-webkit-scrollbar{width:0}.xterms .xterm .xterm-viewport::-webkit-scrollbar-track{background:#252526}.xterms .xterm .xterm-viewport::-webkit-scrollbar-thumb{background:#464647}.xterms .xterm .xterm-viewport::-webkit-scrollbar-thumb:hover{background:#5a5a5a}.xterms .xterm-screen{padding:1px}.xterms .xterm-rows .xterm-cursor.xterm-cursor-underline{box-shadow:0 -2px #fff inset!important}.containerMsg{width:-moz-fit-content;width:fit-content;display:flex;gap:12px;align-self:flex-start;align-items:center}.containerMsg .containerChangeBtn{width:-moz-fit-content;width:fit-content;color:#fff;padding:3px 12px;border:1px solid #333333;border-radius:6px;align-self:flex-start;margin:12px;cursor:pointer}.containerMsg .currentContainer{width:-moz-fit-content;width:fit-content;color:#fff}.containerMenu{border:none!important}.codeExample{height:100%}.codeExample .top-area{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.codeExample .top-area .returnBtn{display:flex;align-items:center;gap:4px;color:#666;font-size:14px;cursor:pointer}.codeExample .top-area .returnBtn:hover{opacity:.8}.codeExample .top-area .returnBtn svg{width:16px}.codeExample .exampleItem{margin-bottom:36px;height:100%}.codeExample .exampleItem .exampleTitle{font-size:16px;font-weight:600;margin-bottom:12px}.codeExample .exampleItem .codeSection{background:#282a36;border-radius:12px;overflow:hidden;max-height:calc(100% - 270px);overflow:auto}.codeExample .exampleItem .codeSection .codeHeader{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#44475a;border-bottom:1px solid #6272a4}.codeExample .exampleItem .codeSection .codeHeader .language{color:#f8f8f2;font-size:14px;font-weight:500}.codeExample .exampleItem .codeSection .codeHeader .btnGroup{display:flex;align-items:center;gap:8px}.codeExample .exampleItem .codeSection .codeHeader .btnGroup .copyBtn{background:transparent;border:1px solid #6272a4;color:#fff;font-size:12px;height:28px;border-radius:6px}.codeExample .exampleItem .codeSection .codeHeader .btnGroup .copyBtn:hover{background:#fff;color:#1677ff;border:1px solid #1677ff}.codeExample .exampleItem .codeSection .codeHeader .btnGroup .runBtn{background:#52c41a;border:1px solid #6272a4;color:#fff;font-size:12px;height:28px;border-radius:6px;line-height:13px}.codeExample .exampleItem .codeSection .codeHeader .btnGroup .runBtn:hover{background:#fff;color:#1677ff;border:1px solid #1677ff}.codeExample .exampleItem .codeSection .codeBlock .react-code-blocks{margin:0!important}.codeExample .exampleItem .codeSection .codeBlock .react-code-blocks pre{margin:0!important;padding:20px!important;background:#282a36!important;font-size:14px!important;line-height:1.5!important}.codeExample .exampleItem .exampleTips{padding:12px 20px;border-radius:12px;margin-top:12px;background:#eff6ff}.codeExample .exampleItem .exampleTips .tipsTitle{display:flex;align-items:center;gap:4px;font-size:14px;font-weight:600;color:#1677ff;margin-bottom:8px}.codeExample .exampleItem .exampleTips .tipsTitle svg{width:16px}.codeExample .exampleItem .exampleTips .tipItem{margin-bottom:4px;font-size:14px;color:#1677ff}.titleSection{display:flex;align-items:center;gap:12px;flex:1;max-width:calc(100% - 200px)}.titleSection .knowledgeTag{font-size:14px;font-weight:500;border-radius:6px;margin:0;padding:2px 12px 4px}.titleSection .title{font-size:22px;font-weight:600;color:#1a1a1a;margin:0;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.titleSection .editArea{display:flex;gap:8px}.recommendArea{margin-top:12px;width:100%}.recommendArea .recommendKnowledge{margin-bottom:12px;width:100%}.recommendArea .recommendKnowledge .recommendKnowledgeTitle{display:flex;align-items:center;gap:4px;font-size:16px;font-weight:600;color:#333;line-height:22px;margin-bottom:12px}.recommendArea .recommendKnowledge .recommendKnowledgeTitle svg{width:18px;height:18px}.recommendArea .recommendKnowledge .recommendKnowledgeList{width:100%;display:flex;flex-wrap:wrap;gap:12px}.recommendArea .recommendKnowledge .recommendKnowledgeEmpty .emptyDescription span{color:#1677ff;cursor:pointer;margin-left:4px}.recommendArea .recommendKnowledge .recommendKnowledgeEmpty .emptyDescription span:hover{color:#409eff}.recommendArea .recommendVideo{margin-bottom:12px;margin-top:24px;width:100%}.recommendArea .recommendVideo .recommendVideoTitle{display:flex;align-items:center;gap:4px;font-size:16px;font-weight:600;color:#333;line-height:22px;margin-bottom:12px}.recommendArea .recommendVideo .recommendVideoTitle svg{width:18px;height:18px}.recommendArea .recommendVideo .recommendVideoList{display:flex;flex-wrap:wrap;gap:12px}.recommendArea .recommendVideo .recommendVideoList .videoCard{background:#fff;overflow:hidden;cursor:pointer;transition:all .3s ease;border-radius:.75rem;box-shadow:0 4px 16px #0ea5e914}.recommendArea .recommendVideo .recommendVideoList .videoCard:hover{box-shadow:0 8px 24px #0ea5e91f}.recommendArea .recommendVideo .recommendVideoList .videoCard .thumbnailContainer{position:relative}.recommendArea .recommendVideo .recommendVideoList .videoCard .thumbnailContainer .thumbnail{width:100%;height:12rem;-o-object-fit:cover;object-fit:cover;transition:transform .3s ease}.recommendArea .recommendVideo .recommendVideoList .videoCard .thumbnailContainer .duration{position:absolute;top:.5rem;right:.5rem;background:#000000bf;color:#fff;font-size:.75rem;padding:.5rem;border-radius:.25rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent{padding:1rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .cardTitle{font-weight:600;color:#1e293b;margin-bottom:.5rem;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:90%;transition:color .3s ease}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .originalUrl{display:flex;align-items:center;gap:.25rem;font-size:.75rem;color:#64748b;margin-bottom:.5rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .originalUrl svg{width:.75rem;height:.75rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .originalUrl .urlLink{color:inherit;text-decoration:none;transition:color .2s ease;display:flex;align-items:center;gap:.25rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .originalUrl .urlLink:hover{color:#409eff}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .meta{display:flex;align-items:center;justify-content:space-between;font-size:.875rem;color:#64748b;margin-bottom:.75rem}.recommendArea .recommendVideo .recommendVideoList .videoCard .cardContent .meta .author{line-height:1.25;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.aiAssistant{height:100%}
|
package/dist/style.css.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oscloudlab/knowledge-card",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.43",
|
|
5
5
|
"description": "A beautiful and customizable knowledge card component for React",
|
|
6
6
|
"main": "./dist/knowledge-card.umd.js",
|
|
7
7
|
"module": "./dist/knowledge-card.es.js",
|