新增:调整MD样式,新增MD插件及工具栏按钮
567
package-lock.json
generated
@@ -11,6 +11,7 @@
|
||||
"@bytemd/plugin-gemoji": "^1.21.0",
|
||||
"@bytemd/plugin-gfm": "^1.21.0",
|
||||
"@bytemd/plugin-highlight": "^1.21.0",
|
||||
"@bytemd/plugin-math": "^1.21.0",
|
||||
"@bytemd/react": "^1.21.0",
|
||||
"antd": "^5.19.3",
|
||||
"apexcharts": "^3.41.0",
|
||||
@@ -28,6 +29,8 @@
|
||||
"react-icons": "^4.12.0",
|
||||
"react-router-dom": "^6.14.2",
|
||||
"react-toastify": "^9.1.3",
|
||||
"rehype-callouts": "^1.4.1",
|
||||
"remark-flexible-markers": "^1.2.1",
|
||||
"sass": "^1.77.8",
|
||||
"sort-by": "^0.0.2",
|
||||
"vite-plugin-sass-dts": "^1.3.25",
|
||||
@@ -514,6 +517,19 @@
|
||||
"bytemd": "^1.5.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@bytemd/plugin-math": {
|
||||
"version": "1.21.0",
|
||||
"resolved": "https://registry.npmmirror.com/@bytemd/plugin-math/-/plugin-math-1.21.0.tgz",
|
||||
"integrity": "sha512-SkKTuPX8D+3x3aVRfZbCGg52mUDar54zn/cbnPY7RYqGUQRz0tSXVApC4mJxfzWpxvPnbjkmy742NVriDUoFrw==",
|
||||
"dependencies": {
|
||||
"@types/katex": "^0.16.0",
|
||||
"katex": "^0.16.4",
|
||||
"remark-math": "^5.1.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"bytemd": "^1.5.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@bytemd/react": {
|
||||
"version": "1.21.0",
|
||||
"resolved": "https://registry.npmmirror.com/@bytemd/react/-/react-1.21.0.tgz",
|
||||
@@ -2377,6 +2393,11 @@
|
||||
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz",
|
||||
"integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA=="
|
||||
},
|
||||
"node_modules/@types/katex": {
|
||||
"version": "0.16.7",
|
||||
"resolved": "https://registry.npmmirror.com/@types/katex/-/katex-0.16.7.tgz",
|
||||
"integrity": "sha512-HMwFiRujE5PjrgwHQ25+bsLJgowjGjm5Z8FVSf0N6PwgJrwxH0QxzHYDcKsTfV3wva0vzrpqMTJS2jXPr5BMEQ=="
|
||||
},
|
||||
"node_modules/@types/lodash": {
|
||||
"version": "4.17.13",
|
||||
"resolved": "https://registry.npmmirror.com/@types/lodash/-/lodash-4.17.13.tgz",
|
||||
@@ -3755,6 +3776,18 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/devlop": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmmirror.com/devlop/-/devlop-1.1.0.tgz",
|
||||
"integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",
|
||||
"dependencies": {
|
||||
"dequal": "^2.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/wooorm"
|
||||
}
|
||||
},
|
||||
"node_modules/dicebear": {
|
||||
"version": "9.2.1",
|
||||
"resolved": "https://registry.npmmirror.com/dicebear/-/dicebear-9.2.1.tgz",
|
||||
@@ -3891,6 +3924,17 @@
|
||||
"node": ">=10.13.0"
|
||||
}
|
||||
},
|
||||
"node_modules/entities": {
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz",
|
||||
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
|
||||
"engines": {
|
||||
"node": ">=0.12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/fb55/entities?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/es-module-lexer": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.0.tgz",
|
||||
@@ -4424,6 +4468,145 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html": {
|
||||
"version": "2.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/hast-util-from-html/-/hast-util-from-html-2.0.3.tgz",
|
||||
"integrity": "sha512-CUSRHXyKjzHov8yKsQjGOElXy/3EKpyX56ELnkHH34vDVw1N1XSQ1ZcAvTyAPtGqLTuKP/uxM+aLkSPqF/EtMw==",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0",
|
||||
"devlop": "^1.1.0",
|
||||
"hast-util-from-parse5": "^8.0.0",
|
||||
"parse5": "^7.0.0",
|
||||
"vfile": "^6.0.0",
|
||||
"vfile-message": "^4.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/@types/hast": {
|
||||
"version": "3.0.4",
|
||||
"resolved": "https://registry.npmmirror.com/@types/hast/-/hast-3.0.4.tgz",
|
||||
"integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
|
||||
"dependencies": {
|
||||
"@types/unist": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/@types/unist": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
|
||||
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/hast-util-from-parse5": {
|
||||
"version": "8.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/hast-util-from-parse5/-/hast-util-from-parse5-8.0.2.tgz",
|
||||
"integrity": "sha512-SfMzfdAi/zAoZ1KkFEyyeXBn7u/ShQrfd675ZEE9M3qj+PMFX05xubzRyF76CCSJu8au9jgVxDV1+okFvgZU4A==",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0",
|
||||
"@types/unist": "^3.0.0",
|
||||
"devlop": "^1.0.0",
|
||||
"hastscript": "^9.0.0",
|
||||
"property-information": "^6.0.0",
|
||||
"vfile": "^6.0.0",
|
||||
"vfile-location": "^5.0.0",
|
||||
"web-namespaces": "^2.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/hast-util-parse-selector": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz",
|
||||
"integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/hastscript": {
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/hastscript/-/hastscript-9.0.0.tgz",
|
||||
"integrity": "sha512-jzaLBGavEDKHrc5EfFImKN7nZKKBdSLIdGvCwDZ9TfzbF2ffXiov8CKE445L2Z1Ek2t/m4SKQ2j6Ipv7NyUolw==",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0",
|
||||
"comma-separated-tokens": "^2.0.0",
|
||||
"hast-util-parse-selector": "^4.0.0",
|
||||
"property-information": "^6.0.0",
|
||||
"space-separated-tokens": "^2.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/parse5": {
|
||||
"version": "7.2.1",
|
||||
"resolved": "https://registry.npmmirror.com/parse5/-/parse5-7.2.1.tgz",
|
||||
"integrity": "sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==",
|
||||
"dependencies": {
|
||||
"entities": "^4.5.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/inikulin/parse5?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/unist-util-stringify-position": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",
|
||||
"integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/vfile": {
|
||||
"version": "6.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/vfile/-/vfile-6.0.3.tgz",
|
||||
"integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"vfile-message": "^4.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/vfile-location": {
|
||||
"version": "5.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/vfile-location/-/vfile-location-5.0.3.tgz",
|
||||
"integrity": "sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"vfile": "^6.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-html/node_modules/vfile-message": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/vfile-message/-/vfile-message-4.0.2.tgz",
|
||||
"integrity": "sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"unist-util-stringify-position": "^4.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-from-parse5": {
|
||||
"version": "7.1.2",
|
||||
"resolved": "https://registry.npmmirror.com/hast-util-from-parse5/-/hast-util-from-parse5-7.1.2.tgz",
|
||||
@@ -4443,6 +4626,26 @@
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-is-element": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/hast-util-is-element/-/hast-util-is-element-3.0.0.tgz",
|
||||
"integrity": "sha512-Val9mnv2IWpLbNPqc/pUem+a7Ipj2aHacCwgNfTiK0vJKl0LF+4Ba4+v1oPHFpf3bLYmreq0/l3Gud9S5OH42g==",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-is-element/node_modules/@types/hast": {
|
||||
"version": "3.0.4",
|
||||
"resolved": "https://registry.npmmirror.com/@types/hast/-/hast-3.0.4.tgz",
|
||||
"integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
|
||||
"dependencies": {
|
||||
"@types/unist": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/hast-util-parse-selector": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmmirror.com/hast-util-parse-selector/-/hast-util-parse-selector-3.1.1.tgz",
|
||||
@@ -4982,6 +5185,29 @@
|
||||
"graceful-fs": "^4.1.6"
|
||||
}
|
||||
},
|
||||
"node_modules/katex": {
|
||||
"version": "0.16.18",
|
||||
"resolved": "https://registry.npmmirror.com/katex/-/katex-0.16.18.tgz",
|
||||
"integrity": "sha512-LRuk0rPdXrecAFwQucYjMiIs0JFefk6N1q/04mlw14aVIVgxq1FO0MA9RiIIGVaKOB5GIP5GH4aBBNraZERmaQ==",
|
||||
"funding": [
|
||||
"https://opencollective.com/katex",
|
||||
"https://github.com/sponsors/katex"
|
||||
],
|
||||
"dependencies": {
|
||||
"commander": "^8.3.0"
|
||||
},
|
||||
"bin": {
|
||||
"katex": "cli.js"
|
||||
}
|
||||
},
|
||||
"node_modules/katex/node_modules/commander": {
|
||||
"version": "8.3.0",
|
||||
"resolved": "https://registry.npmmirror.com/commander/-/commander-8.3.0.tgz",
|
||||
"integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
|
||||
"engines": {
|
||||
"node": ">= 12"
|
||||
}
|
||||
},
|
||||
"node_modules/keyv": {
|
||||
"version": "4.5.4",
|
||||
"resolved": "https://registry.npmmirror.com/keyv/-/keyv-4.5.4.tgz",
|
||||
@@ -5296,6 +5522,20 @@
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/mdast-util-math": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/mdast-util-math/-/mdast-util-math-2.0.2.tgz",
|
||||
"integrity": "sha512-8gmkKVp9v6+Tgjtq6SYx9kGPpTf6FVYRa53/DLh479aldR9AyP48qeVOgNZ5X7QUK7nOy4yw7vg6mbiGcs9jWQ==",
|
||||
"dependencies": {
|
||||
"@types/mdast": "^3.0.0",
|
||||
"longest-streak": "^3.0.0",
|
||||
"mdast-util-to-markdown": "^1.3.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/mdast-util-phrasing": {
|
||||
"version": "3.0.1",
|
||||
"resolved": "https://registry.npmmirror.com/mdast-util-phrasing/-/mdast-util-phrasing-3.0.1.tgz",
|
||||
@@ -5568,6 +5808,24 @@
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/micromark-extension-math": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmmirror.com/micromark-extension-math/-/micromark-extension-math-2.1.2.tgz",
|
||||
"integrity": "sha512-es0CcOV89VNS9wFmyn+wyFTKweXGW4CEvdaAca6SWRWPyYCbBisnjaHLjWO4Nszuiud84jCpkHsqAJoa768Pvg==",
|
||||
"dependencies": {
|
||||
"@types/katex": "^0.16.0",
|
||||
"katex": "^0.16.0",
|
||||
"micromark-factory-space": "^1.0.0",
|
||||
"micromark-util-character": "^1.0.0",
|
||||
"micromark-util-symbol": "^1.0.0",
|
||||
"micromark-util-types": "^1.0.0",
|
||||
"uvu": "^0.5.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/micromark-factory-destination": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmmirror.com/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz",
|
||||
@@ -7355,6 +7613,101 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/rehype-callouts": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmmirror.com/rehype-callouts/-/rehype-callouts-1.4.1.tgz",
|
||||
"integrity": "sha512-M0HQ6tTeWoia5K8ty2EG/U9UMRlO4EG9opA/pZMNWRU+UR5amMczGu41unjPcLZ+4FKbLjGbPBBBFaX8oW7T2A==",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.4",
|
||||
"hast-util-from-html": "^2.0.3",
|
||||
"hast-util-is-element": "^3.0.0",
|
||||
"hastscript": "^9.0.0",
|
||||
"unist-util-visit": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^16.0.0 || ^18.0.0 || >=20.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/rehype-callouts/node_modules/@types/hast": {
|
||||
"version": "3.0.4",
|
||||
"resolved": "https://registry.npmmirror.com/@types/hast/-/hast-3.0.4.tgz",
|
||||
"integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",
|
||||
"dependencies": {
|
||||
"@types/unist": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/rehype-callouts/node_modules/@types/unist": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
|
||||
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
|
||||
},
|
||||
"node_modules/rehype-callouts/node_modules/hast-util-parse-selector": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/hast-util-parse-selector/-/hast-util-parse-selector-4.0.0.tgz",
|
||||
"integrity": "sha512-wkQCkSYoOGCRKERFWcxMVMOcYE2K1AaNLU8DXS9arxnLOUEWbOXKXiJUNzEpqZ3JOKpnha3jkFrumEjVliDe7A==",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/rehype-callouts/node_modules/hastscript": {
|
||||
"version": "9.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/hastscript/-/hastscript-9.0.0.tgz",
|
||||
"integrity": "sha512-jzaLBGavEDKHrc5EfFImKN7nZKKBdSLIdGvCwDZ9TfzbF2ffXiov8CKE445L2Z1Ek2t/m4SKQ2j6Ipv7NyUolw==",
|
||||
"dependencies": {
|
||||
"@types/hast": "^3.0.0",
|
||||
"comma-separated-tokens": "^2.0.0",
|
||||
"hast-util-parse-selector": "^4.0.0",
|
||||
"property-information": "^6.0.0",
|
||||
"space-separated-tokens": "^2.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/rehype-callouts/node_modules/unist-util-is": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
|
||||
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/rehype-callouts/node_modules/unist-util-visit": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-visit/-/unist-util-visit-5.0.0.tgz",
|
||||
"integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"unist-util-is": "^6.0.0",
|
||||
"unist-util-visit-parents": "^6.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/rehype-callouts/node_modules/unist-util-visit-parents": {
|
||||
"version": "6.0.1",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz",
|
||||
"integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"unist-util-is": "^6.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/rehype-raw": {
|
||||
"version": "6.1.1",
|
||||
"resolved": "https://registry.npmmirror.com/rehype-raw/-/rehype-raw-6.1.1.tgz",
|
||||
@@ -7400,6 +7753,72 @@
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/remark-flexible-markers": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmmirror.com/remark-flexible-markers/-/remark-flexible-markers-1.2.1.tgz",
|
||||
"integrity": "sha512-yAqJ2bRDWfBC7G0A6lHsifMQpzeID10RQc5Pgm29jyAzdJQ7pJozDROeMEk7GW1KznSxIjO5be+fn7Dh+Fbo4A==",
|
||||
"dependencies": {
|
||||
"@types/mdast": "^4.0.3",
|
||||
"unist-builder": "^4.0.0",
|
||||
"unist-util-find-after": "^5.0.0",
|
||||
"unist-util-find-all-after": "^5.0.0",
|
||||
"unist-util-find-all-before": "^5.0.0",
|
||||
"unist-util-find-between-all": "^1.0.5",
|
||||
"unist-util-visit": "^5.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/remark-flexible-markers/node_modules/@types/mdast": {
|
||||
"version": "4.0.4",
|
||||
"resolved": "https://registry.npmmirror.com/@types/mdast/-/mdast-4.0.4.tgz",
|
||||
"integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",
|
||||
"dependencies": {
|
||||
"@types/unist": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/remark-flexible-markers/node_modules/@types/unist": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
|
||||
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
|
||||
},
|
||||
"node_modules/remark-flexible-markers/node_modules/unist-util-is": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
|
||||
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/remark-flexible-markers/node_modules/unist-util-visit": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-visit/-/unist-util-visit-5.0.0.tgz",
|
||||
"integrity": "sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"unist-util-is": "^6.0.0",
|
||||
"unist-util-visit-parents": "^6.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/remark-flexible-markers/node_modules/unist-util-visit-parents": {
|
||||
"version": "6.0.1",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-visit-parents/-/unist-util-visit-parents-6.0.1.tgz",
|
||||
"integrity": "sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"unist-util-is": "^6.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/remark-gemoji": {
|
||||
"version": "7.0.1",
|
||||
"resolved": "https://registry.npmmirror.com/remark-gemoji/-/remark-gemoji-7.0.1.tgz",
|
||||
@@ -7432,6 +7851,21 @@
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/remark-math": {
|
||||
"version": "5.1.1",
|
||||
"resolved": "https://registry.npmmirror.com/remark-math/-/remark-math-5.1.1.tgz",
|
||||
"integrity": "sha512-cE5T2R/xLVtfFI4cCePtiRn+e6jKMtFDR3P8V3qpv8wpKjwvHoBA4eJzvX+nVrnlNy0911bdGmuspCSwetfYHw==",
|
||||
"dependencies": {
|
||||
"@types/mdast": "^3.0.0",
|
||||
"mdast-util-math": "^2.0.0",
|
||||
"micromark-extension-math": "^2.0.0",
|
||||
"unified": "^10.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/remark-parse": {
|
||||
"version": "10.0.2",
|
||||
"resolved": "https://registry.npmmirror.com/remark-parse/-/remark-parse-10.0.2.tgz",
|
||||
@@ -8280,6 +8714,139 @@
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-builder": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-builder/-/unist-builder-4.0.0.tgz",
|
||||
"integrity": "sha512-wmRFnH+BLpZnTKpc5L7O67Kac89s9HMrtELpnNaE6TAobq5DTZZs5YaTQfAZBA9bFPECx2uVAPO31c+GVug8mg==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-builder/node_modules/@types/unist": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
|
||||
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
|
||||
},
|
||||
"node_modules/unist-util-find-after": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-find-after/-/unist-util-find-after-5.0.0.tgz",
|
||||
"integrity": "sha512-amQa0Ep2m6hE2g72AugUItjbuM8X8cGQnFoHk0pGfrFeT9GZhzN5SW8nRsiGKK7Aif4CrACPENkA6P/Lw6fHGQ==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"unist-util-is": "^6.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-util-find-after/node_modules/@types/unist": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
|
||||
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
|
||||
},
|
||||
"node_modules/unist-util-find-after/node_modules/unist-util-is": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
|
||||
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-util-find-all-after": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-find-all-after/-/unist-util-find-all-after-5.0.0.tgz",
|
||||
"integrity": "sha512-nGmOYvTSdGcI4RvrUNfe0mOsqqbbJOtqCQsppsY9KZjmv3nwM3YRgNBwFPdZ8Y+iv9Z/2PDjR9u6u+uK62XTTg==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"unist-util-is": "^6.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-util-find-all-after/node_modules/@types/unist": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
|
||||
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
|
||||
},
|
||||
"node_modules/unist-util-find-all-after/node_modules/unist-util-is": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
|
||||
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-util-find-all-before": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-find-all-before/-/unist-util-find-all-before-5.0.0.tgz",
|
||||
"integrity": "sha512-zir6a7GsXfdn4YAWR4F3hLNKZjTjLBJurdyquysvmX38xbftS1+qwvEhutxxHLq0Pp1tW5V1TDiuj+qluuOnKw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"unist-util-is": "^6.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-util-find-all-before/node_modules/@types/unist": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
|
||||
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
|
||||
},
|
||||
"node_modules/unist-util-find-all-before/node_modules/unist-util-is": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
|
||||
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-util-find-between-all": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-find-between-all/-/unist-util-find-between-all-1.0.5.tgz",
|
||||
"integrity": "sha512-zqpIPPzhbG6fI5lqYZhS1UPsMvxV9IY6dwbizLHLPAGNb3pQT3mTvmzXpP1K2lmUh4bhUwAN4gkQcxhR/OLS4g==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0",
|
||||
"unist-util-is": "^6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-util-find-between-all/node_modules/@types/unist": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmmirror.com/@types/unist/-/unist-3.0.3.tgz",
|
||||
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q=="
|
||||
},
|
||||
"node_modules/unist-util-find-between-all/node_modules/unist-util-is": {
|
||||
"version": "6.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-is/-/unist-util-is-6.0.0.tgz",
|
||||
"integrity": "sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==",
|
||||
"dependencies": {
|
||||
"@types/unist": "^3.0.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/unified"
|
||||
}
|
||||
},
|
||||
"node_modules/unist-util-generated": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmmirror.com/unist-util-generated/-/unist-util-generated-2.0.1.tgz",
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
"@bytemd/plugin-gemoji": "^1.21.0",
|
||||
"@bytemd/plugin-gfm": "^1.21.0",
|
||||
"@bytemd/plugin-highlight": "^1.21.0",
|
||||
"@bytemd/plugin-math": "^1.21.0",
|
||||
"@bytemd/react": "^1.21.0",
|
||||
"antd": "^5.19.3",
|
||||
"apexcharts": "^3.41.0",
|
||||
@@ -34,6 +35,8 @@
|
||||
"react-icons": "^4.12.0",
|
||||
"react-router-dom": "^6.14.2",
|
||||
"react-toastify": "^9.1.3",
|
||||
"rehype-callouts": "^1.4.1",
|
||||
"remark-flexible-markers": "^1.2.1",
|
||||
"sass": "^1.77.8",
|
||||
"sort-by": "^0.0.2",
|
||||
"vite-plugin-sass-dts": "^1.3.25",
|
||||
|
||||
1
src/pages/Create/components/Editor/icon/callout.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg t="1735389452343" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="31597" width="200" height="200"><path d="M746.666667 64a170.666667 170.666667 0 0 1 170.666666 170.666667v554.666666a170.666667 170.666667 0 0 1-170.666666 170.666667H298.666667a170.666667 170.666667 0 0 1-170.666667-170.666667V234.666667a170.666667 170.666667 0 0 1 170.666667-170.666667h448z m0 74.666667H298.666667a96 96 0 0 0-95.893334 91.477333L202.666667 234.666667v554.666666a96 96 0 0 0 91.477333 95.893334L298.666667 885.333333h448a96 96 0 0 0 95.893333-91.477333L842.666667 789.333333V234.666667a96 96 0 0 0-91.477334-95.893334L746.666667 138.666667z" fill="#000000" p-id="31598"></path><path d="M224 325.333333a37.333333 37.333333 0 0 1 3.072 74.538667l-3.072 0.128H106.666667a37.333333 37.333333 0 0 1-3.072-74.538667L106.666667 325.333333h117.333333zM224 624a37.333333 37.333333 0 0 1 3.072 74.538667l-3.072 0.128H106.666667a37.333333 37.333333 0 0 1-3.072-74.538667L106.666667 624h117.333333zM693.333333 346.666667a37.333333 37.333333 0 0 1 37.205334 34.261333l0.128 3.072v256a37.333333 37.333333 0 0 1-74.538667 3.072L656 640V384c0-20.608 16.725333-37.333333 37.333333-37.333333z" fill="#000000" p-id="31599"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.2 KiB |
1
src/pages/Create/components/Editor/icon/check.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg t="1735390040891" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="40833" width="200" height="200"><path d="M744.704 743.765333A327.509333 327.509333 0 1 0 281.685333 280.405333a327.509333 327.509333 0 0 0 463.018667 463.36z m39.296 39.253334A384 384 0 1 1 240 240.938667a384 384 0 0 1 544 542.165333z m-110.250667-399.317334a28.458667 28.458667 0 1 1 39.765334 39.765334l-220.458667 220.458666a32.981333 32.981333 0 0 1-45.184 0l-125.568-124.714666a28.458667 28.458667 0 1 1 39.765333-39.722667l105.685334 107.946667 205.994666-203.733334z" fill="#000000" p-id="40834"></path></svg>
|
||||
|
After Width: | Height: | Size: 631 B |
1
src/pages/Create/components/Editor/icon/danger.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg t="1735389963710" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="37686" width="200" height="200"><path d="M384 477.781333a148.778667 148.778667 0 0 1 89.344-67.370666l-11.050667-41.216a191.445333 191.445333 0 0 0-114.901333 86.613333l36.608 21.973333zM367.786667 593.322667a148.992 148.992 0 0 1-4.48-52.992l-42.453334-4.096c-2.133333 22.272-0.426667 45.312 5.674667 68.138666 9.045333 33.706667 26.581333 63.018667 49.706667 86.101334a192.384 192.384 0 0 0 137.557333 56.234666l-0.426667-42.666666a149.674667 149.674667 0 0 1-107.008-43.776c-17.92-17.92-31.573333-40.618667-38.613333-66.944z" fill="#696D7F" p-id="37687"></path><path d="M738.432 151.552c8.533333-14.208 18.944-28.245333 32.213333-38.869333 10.794667-8.661333 23.296-14.805333 38.272-16.896 15.018667-2.048 33.92-0.213333 57.813334 9.386666l15.872-39.68c-29.44-11.733333-55.893333-15.232-79.530667-11.946666a119.722667 119.722667 0 0 0-59.050667 25.813333c-17.877333 14.250667-31.36 32.426667-41.557333 49.194667l-86.954667-55.552-133.290666 141.568a341.333333 341.333333 0 1 0 308.309333 142.592l50.517333-140.074667-102.613333-65.536z m-0.810667 100.693333l-12.8 35.541334A342.997333 342.997333 0 0 0 591.786667 222.72l37.418666-39.722667 108.458667 69.290667z m21.674667 236.16a256 256 0 1 1-494.592 132.522667 256 256 0 0 1 494.549333-132.522667z" fill="#696D7F" p-id="37688"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
1
src/pages/Create/components/Editor/icon/emoji.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg t="1735390322315" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="42453" width="200" height="200"><path d="M510.944 960c-247.04 0-448-200.96-448-448s200.992-448 448-448c247.008 0 448 200.96 448 448S757.984 960 510.944 960zM510.944 128c-211.744 0-384 172.256-384 384 0 211.744 172.256 384 384 384 211.744 0 384-172.256 384-384C894.944 300.256 722.688 128 510.944 128zM512 773.344c-89.184 0-171.904-40.32-226.912-110.624-10.88-13.92-8.448-34.016 5.472-44.896 13.888-10.912 34.016-8.48 44.928 5.472 42.784 54.688 107.136 86.048 176.512 86.048 70.112 0 134.88-31.904 177.664-87.552 10.784-14.016 30.848-16.672 44.864-5.888 14.016 10.784 16.672 30.88 5.888 44.864C685.408 732.32 602.144 773.344 512 773.344zM368 515.2c-26.528 0-48-21.472-48-48l0-64c0-26.528 21.472-48 48-48s48 21.472 48 48l0 64C416 493.696 394.496 515.2 368 515.2zM656 515.2c-26.496 0-48-21.472-48-48l0-64c0-26.528 21.504-48 48-48s48 21.472 48 48l0 64C704 493.696 682.496 515.2 656 515.2z" fill="#272636" p-id="42454"></path></svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
1
src/pages/Create/components/Editor/icon/marker.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg t="1735372560854" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8475" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M641.264941 60.235294h-46.260706c-13.974588-35.418353-46.320941-60.235294-83.907764-60.235294H362.496c-17.588706 0-31.924706 5.421176-42.526118 16.143059-19.034353 19.094588-18.913882 46.441412-18.793411 75.474823V801.129412l111.495529 140.047059H421.647059V1024l60.235294-41.441882v-41.441883h8.854588L602.352941 801.069176V120.470588h38.912c20.299294 0 21.323294 32.527059 21.323294 39.032471v256.963765h60.235294V159.503059C722.883765 101.074824 689.332706 60.235294 641.264941 60.235294zM362.496 60.235294h148.600471c17.167059 0 31.081412 17.528471 31.081411 39.032471V301.176471H361.411765V91.316706c0-11.685647-0.120471-29.334588 1.084235-31.081412z m99.328 820.705882h-20.058353L361.472 780.047059 361.411765 361.411765h180.705882v418.635294l-80.293647 100.894117z" p-id="8476"></path></svg>
|
||||
|
After Width: | Height: | Size: 996 B |
1
src/pages/Create/components/Editor/icon/note.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg t="1735389499433" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="32675" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M768 160l-32 0L736 128c0-19.2-12.8-32-32-32s-32 12.8-32 32l0 32-128 0L544 128c0-19.2-12.8-32-32-32s-32 12.8-32 32l0 32-128 0L352 128c0-19.2-12.8-32-32-32S288 108.8 288 128l0 32L256 160C220.8 160 192 188.8 192 224l0 640c0 35.2 28.8 64 64 64l512 0c35.2 0 64-28.8 64-64L832 224C832 188.8 803.2 160 768 160zM768 864 256 864 256 224l512 0L768 864z" p-id="32676"></path><path d="M672 352 352 352c-19.2 0-32 12.8-32 32s12.8 32 32 32l320 0c19.2 0 32-12.8 32-32S691.2 352 672 352z" p-id="32677"></path><path d="M672 512 352 512c-19.2 0-32 12.8-32 32s12.8 32 32 32l320 0c19.2 0 32-12.8 32-32S691.2 512 672 512z" p-id="32678"></path><path d="M672 672 352 672c-19.2 0-32 12.8-32 32s12.8 32 32 32l320 0c19.2 0 32-12.8 32-32S691.2 672 672 672z" p-id="32679"></path></svg>
|
||||
|
After Width: | Height: | Size: 956 B |
1
src/pages/Create/components/Editor/icon/tip.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg t="1735389606420" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="33713" width="200" height="200"><path d="M512 64a317.248 317.248 0 0 0-226.176 93.824A317.248 317.248 0 0 0 192 384c0 88 35.456 168.32 93.76 226.048 19.776 20.288 42.176 37.12 66.24 51.008V768a64 64 0 0 0 64 64h192a64 64 0 0 0 64-64v-106.944c24.064-13.824 46.464-30.72 66.24-51.008A317.248 317.248 0 0 0 832 384c0-177.024-142.976-320-320-320zM331.264 202.944A253.248 253.248 0 0 1 512 128c141.696 0 256 114.304 256 256a253.184 253.184 0 0 1-74.944 180.736l-0.512 0.512a245.248 245.248 0 0 1-66.88 48l-17.664 8.896V768h-192V622.144l-17.664-8.832a245.248 245.248 0 0 1-66.88-48.064l-0.512-0.512A253.248 253.248 0 0 1 256 384c0-70.656 28.48-134.784 74.944-180.736l0.32-0.32zM352 896v64h320v-64h-320z" fill="#000000" fill-opacity=".9" p-id="33714"></path></svg>
|
||||
|
After Width: | Height: | Size: 872 B |
1
src/pages/Create/components/Editor/icon/warning.svg
Normal file
@@ -0,0 +1 @@
|
||||
<svg t="1735389886883" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="34869" width="200" height="200"><path d="M522.656 388.064a32 32 0 0 0-32 32v160a32 32 0 0 0 64 0v-160a32 32 0 0 0-32-32M522.656 676.064a32 32 0 1 0 0 64 32 32 0 0 0 0-64" fill="#3E3A39" p-id="34870"></path><path d="M714.656 795.616H203.072l127.584-221.888 33.152-57.664 158.848-276.224 158.816 276.224 33.184 57.696 127.552 221.856h-127.552z m194.528-11.968L566.528 187.712c-10.144-17.6-26.112-27.712-43.872-27.712s-33.728 10.112-43.84 27.712L136.096 783.648c-10.048 17.568-10.784 36.48-1.92 51.84 8.896 15.328 25.6 24.128 45.824 24.128H865.344c20.16 0 36.864-8.8 45.76-24.128 8.896-15.36 8.192-34.24-1.92-51.84z" fill="#3E3A39" p-id="34871"></path></svg>
|
||||
|
After Width: | Height: | Size: 770 B |
@@ -14,7 +14,7 @@
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
@apply text-black transition-colors;
|
||||
@apply text-black dark:text-gray transition-colors;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@@ -27,21 +27,21 @@
|
||||
}
|
||||
|
||||
h2 {
|
||||
@apply relative text-lg my-8 pl-5;
|
||||
@apply relative text-lg my-6;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
@apply absolute left-0 top-[50%] -translate-y-1/2 w-2 h-full bg-primary;
|
||||
}
|
||||
// &::before {
|
||||
// content: "";
|
||||
// @apply absolute left-0 top-[50%] -translate-y-1/2 w-2 h-full bg-primary;
|
||||
// }
|
||||
}
|
||||
|
||||
h3 {
|
||||
@apply relative text-lg my-5 pl-5;
|
||||
@apply relative text-lg my-5;
|
||||
|
||||
&::before {
|
||||
content: "#";
|
||||
@apply absolute left-0 top-[50%] -translate-y-1/2 text-primary;
|
||||
}
|
||||
// &::before {
|
||||
// content: "#";
|
||||
// @apply absolute left-0 top-[50%] -translate-y-1/2 text-primary;
|
||||
// }
|
||||
}
|
||||
|
||||
h4,
|
||||
@@ -59,8 +59,71 @@
|
||||
@apply bg-[rgba(13,110,253,0.1)] dark:bg-[#334052] text-[#0d6efd] rounded-md py-1 px-2 text-sm transition-colors;
|
||||
}
|
||||
|
||||
li {
|
||||
@apply my-2.5 list-decimal ml-14;
|
||||
// 任务列表
|
||||
li.task-list-item {
|
||||
@apply my-2.5;
|
||||
};
|
||||
|
||||
li:not(.task-list-item) {
|
||||
@apply my-2.5;
|
||||
}
|
||||
|
||||
// 无序列表
|
||||
ul:not(.contains-task-list) {
|
||||
@apply list-disc ml-6;
|
||||
}
|
||||
|
||||
// 有序列表
|
||||
ol:not([start]) {
|
||||
counter-reset: counter;
|
||||
}
|
||||
|
||||
ol > li:not([id^="user-content-"]) {
|
||||
|
||||
&::before {
|
||||
@apply inline-block w-4 h-4 mt-1 mr-1 leading-none rounded-full text-center text-sm border border-[#11181C] dark:border-gray;
|
||||
|
||||
counter-increment: counter;
|
||||
content: counter(counter);
|
||||
}
|
||||
|
||||
& ol > li::before {
|
||||
@apply inline-block ml-5 border-0 text-base mt-0 leading-normal;
|
||||
|
||||
content: counter(counter) ".";
|
||||
}
|
||||
}
|
||||
|
||||
// 引用
|
||||
blockquote {
|
||||
@apply my-5 pl-4 bg-[rgba(246,248,250)] border-l-[4px] border-[#11181C] dark:bg-[rgba(246,248,250,0.1)];
|
||||
}
|
||||
|
||||
// 脚注
|
||||
.sr-only {
|
||||
@apply text-[#EAB308] w-full overflow-visible my-10 before:content-[''];
|
||||
|
||||
&::before {
|
||||
@apply block w-full h-[1px] bg-gray mb-2;
|
||||
}
|
||||
}
|
||||
|
||||
ol > li[id^="user-content-"] {
|
||||
@apply list-decimal ml-3;
|
||||
}
|
||||
|
||||
// 提示块
|
||||
.callout-content {
|
||||
@apply pt-1;
|
||||
|
||||
& > p {
|
||||
@apply mb-0;
|
||||
}
|
||||
}
|
||||
|
||||
// 数学公式
|
||||
.katex {
|
||||
@apply text-base;
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -69,10 +132,10 @@
|
||||
|
||||
p {
|
||||
@apply leading-9 mb-2;
|
||||
}
|
||||
|
||||
img {
|
||||
@apply rounded-xl cursor-pointer transition-all;
|
||||
}
|
||||
@apply rounded-xl cursor-pointer transition-all mt-2;
|
||||
}
|
||||
|
||||
strong {
|
||||
@@ -83,13 +146,13 @@
|
||||
@apply w-full;
|
||||
|
||||
th {
|
||||
@apply bg-[#f1f7fd];
|
||||
@apply bg-[#f1f7fd] dark:bg-[#334052];
|
||||
}
|
||||
|
||||
tr,
|
||||
th,
|
||||
td {
|
||||
@apply border-[#eee] p-[10px_20px];
|
||||
@apply border p-[10px_20px];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,4 +163,170 @@
|
||||
position: relative;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}.markdown-body {
|
||||
pre {
|
||||
margin: 15px 0;
|
||||
|
||||
code.hljs {
|
||||
border-radius: 10px;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
@apply text-black dark:text-gray transition-colors;
|
||||
}
|
||||
|
||||
h1 {
|
||||
@apply text-2xl my-6 pb-3 border-b border-[#eee];
|
||||
|
||||
// &::before {
|
||||
// content: "✨️";
|
||||
// @apply pr-3;
|
||||
// }
|
||||
}
|
||||
|
||||
h2 {
|
||||
@apply relative text-lg my-6;
|
||||
|
||||
// &::before {
|
||||
// content: "";
|
||||
// @apply absolute left-0 top-[50%] -translate-y-1/2 w-2 h-full bg-primary;
|
||||
// }
|
||||
}
|
||||
|
||||
h3 {
|
||||
@apply relative text-lg my-5;
|
||||
|
||||
// &::before {
|
||||
// content: "#";
|
||||
// @apply absolute left-0 top-[50%] -translate-y-1/2 text-primary;
|
||||
// }
|
||||
}
|
||||
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
@apply relative text-lg my-3;
|
||||
}
|
||||
|
||||
hr {
|
||||
@apply my-5 border-[#eee] transition-colors;
|
||||
}
|
||||
|
||||
p code,
|
||||
ul code {
|
||||
@apply bg-[rgba(13,110,253,0.1)] dark:bg-[#334052] text-[#0d6efd] rounded-md py-1 px-2 text-sm transition-colors;
|
||||
}
|
||||
|
||||
// 任务列表
|
||||
li.task-list-item {
|
||||
@apply my-2.5;
|
||||
};
|
||||
|
||||
li:not(.task-list-item) {
|
||||
@apply my-2.5;
|
||||
}
|
||||
|
||||
// 无序列表
|
||||
ul:not(.contains-task-list) {
|
||||
@apply list-disc ml-6;
|
||||
}
|
||||
|
||||
// 有序列表
|
||||
ol:not([start]) {
|
||||
counter-reset: counter;
|
||||
}
|
||||
|
||||
ol > li:not([id^="user-content-"]) {
|
||||
|
||||
&::before {
|
||||
@apply inline-block w-4 h-4 mt-1 mr-1 leading-none rounded-full text-center text-sm border border-[#11181C] dark:border-gray;
|
||||
|
||||
counter-increment: counter;
|
||||
content: counter(counter);
|
||||
}
|
||||
|
||||
& ol > li::before {
|
||||
@apply inline-block ml-5 border-0 text-base mt-0 leading-normal;
|
||||
|
||||
content: counter(counter) ".";
|
||||
}
|
||||
}
|
||||
|
||||
// 引用
|
||||
blockquote {
|
||||
@apply my-5 pl-4 bg-[rgba(246,248,250)] border-l-[4px] border-[#11181C] dark:bg-[rgba(246,248,250,0.1)];
|
||||
}
|
||||
|
||||
// 脚注
|
||||
.sr-only {
|
||||
@apply text-[#EAB308] w-full overflow-visible my-10 before:content-[''];
|
||||
|
||||
&::before {
|
||||
@apply block w-full h-[1px] bg-gray mb-2;
|
||||
}
|
||||
}
|
||||
|
||||
ol > li[id^="user-content-"] {
|
||||
@apply list-decimal ml-3;
|
||||
}
|
||||
|
||||
// 提示块
|
||||
.callout-content {
|
||||
@apply pt-1;
|
||||
|
||||
& > p {
|
||||
@apply mb-0;
|
||||
}
|
||||
}
|
||||
|
||||
// 数学公式
|
||||
.katex {
|
||||
@apply text-base;
|
||||
// font-family: ;
|
||||
}
|
||||
|
||||
a {
|
||||
@apply text-primary
|
||||
}
|
||||
|
||||
p {
|
||||
@apply leading-9 mb-2;
|
||||
}
|
||||
|
||||
img {
|
||||
@apply rounded-xl cursor-pointer transition-all mt-2;
|
||||
}
|
||||
|
||||
strong {
|
||||
@apply text-base;
|
||||
}
|
||||
|
||||
table {
|
||||
@apply w-full;
|
||||
|
||||
th {
|
||||
@apply bg-[#f1f7fd] dark:bg-[#334052];
|
||||
}
|
||||
|
||||
tr,
|
||||
th,
|
||||
td {
|
||||
@apply border p-[10px_20px];
|
||||
}
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 4px;
|
||||
position: relative;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
77
src/pages/Create/components/Editor/plugins.tsx
Normal file
@@ -0,0 +1,77 @@
|
||||
import markerSvg from './icon/marker.svg?raw';
|
||||
import calloutSvg from './icon/callout.svg?raw';
|
||||
import noteSvg from './icon/note.svg?raw';
|
||||
import tipSvg from './icon/tip.svg?raw';
|
||||
import warningSvg from './icon/warning.svg?raw';
|
||||
import checkSvg from './icon/check.svg?raw';
|
||||
import dangerSvg from './icon/danger.svg?raw';
|
||||
import gemoji from '@bytemd/plugin-gemoji';
|
||||
import gfm from '@bytemd/plugin-gfm';
|
||||
import highlight from '@bytemd/plugin-highlight';
|
||||
import math from '@bytemd/plugin-math';
|
||||
import type { BytemdPlugin } from 'bytemd';
|
||||
import 'highlight.js/styles/vs2015.css';
|
||||
import 'katex/dist/katex.css';
|
||||
import rehypeCallouts from 'rehype-callouts';
|
||||
import 'rehype-callouts/theme/obsidian';
|
||||
import remarkFlexibleMarkers from "remark-flexible-markers";
|
||||
|
||||
const markers = (): BytemdPlugin => {
|
||||
return {
|
||||
remark: (processor) => processor.use(remarkFlexibleMarkers),
|
||||
actions: [
|
||||
{
|
||||
title: 'markers',
|
||||
icon: markerSvg,
|
||||
handler: {
|
||||
type: 'action',
|
||||
click: (ctx) => {
|
||||
ctx.wrapText("==", "==");
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
const callouts = (): BytemdPlugin => {
|
||||
const calloutTypes = [
|
||||
{ title: 'Note', icon: noteSvg, blockType: '[!NOTE]' },
|
||||
{ title: 'Tip', icon: tipSvg, blockType: '[!TIP]' },
|
||||
{ title: 'Warning', icon: warningSvg, blockType: '[!WARNING]' },
|
||||
{ title: 'Check', icon: checkSvg, blockType: '[!CHECK]' },
|
||||
{ title: 'Danger', icon: dangerSvg, blockType: '[!DANGER]' }
|
||||
];
|
||||
return {
|
||||
rehype: (processor) => processor.use(rehypeCallouts),
|
||||
actions: [
|
||||
{
|
||||
icon: calloutSvg,
|
||||
handler: {
|
||||
type: 'dropdown',
|
||||
actions: calloutTypes.map(type => ({
|
||||
title: type.title,
|
||||
icon: type.icon,
|
||||
handler: {
|
||||
type: 'action',
|
||||
click: (ctx) => {
|
||||
ctx.appendBlock(`> ${type.blockType} ${type.title}\n> `);
|
||||
}
|
||||
}
|
||||
}))
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
const plugins = [
|
||||
gfm({singleTilde: false}),
|
||||
markers(),
|
||||
gemoji(),
|
||||
math(),
|
||||
highlight(),
|
||||
callouts()
|
||||
]
|
||||
|
||||
export default plugins;
|
||||