Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: uiwjs/react-codemirror
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.19.2
Choose a base ref
...
head repository: uiwjs/react-codemirror
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 15,678 additions and 3,227 deletions.
  1. +3 −0 .github/FUNDING.yml
  2. +249 −534 .github/workflows/ci.yml
  3. +4 −4 .github/workflows/pr.yml
  4. +1 −0 .gitignore
  5. +0 −3 .husky/pre-commit
  6. +12 −0 core/.kktrc.ts
  7. +131 −69 core/README.md
  8. +15 −9 core/package.json
  9. +7 −3 core/src/__tests__/index.test.tsx
  10. +65 −0 core/src/getDefaultExtensions.ts
  11. +24 −10 core/src/index.tsx
  12. +46 −61 core/src/useCodeMirror.ts
  13. +2 −2 core/src/utils.ts
  14. +2 −3 core/tsconfig.json
  15. +3 −0 example/nextjs/.eslintrc.json
  16. +36 −0 example/nextjs/.gitignore
  17. +36 −0 example/nextjs/README.md
  18. +4 −0 example/nextjs/next.config.js
  19. +29 −0 example/nextjs/package.json
  20. +6 −0 example/nextjs/postcss.config.js
  21. +1 −0 example/nextjs/public/next.svg
  22. +1 −0 example/nextjs/public/vercel.svg
  23. +7 −0 example/nextjs/src/app/Editor.tsx
  24. BIN example/nextjs/src/app/favicon.ico
  25. +27 −0 example/nextjs/src/app/globals.css
  26. +24 −0 example/nextjs/src/app/layout.tsx
  27. +105 −0 example/nextjs/src/app/merge/_editor/Com.tsx
  28. +74 −0 example/nextjs/src/app/merge/_editor/code.ts
  29. +40 −0 example/nextjs/src/app/merge/_editor/index.tsx
  30. +10 −0 example/nextjs/src/app/merge/page.tsx
  31. +9 −0 example/nextjs/src/app/page.tsx
  32. +18 −0 example/nextjs/src/app/textarea/page.tsx
  33. +19 −0 example/nextjs/tailwind.config.ts
  34. +27 −0 example/nextjs/tsconfig.json
  35. +1 −0 extensions/basic-setup/README.md
  36. +12 −3 extensions/basic-setup/package.json
  37. +3 −1 extensions/basic-setup/src/index.ts
  38. +119 −0 extensions/classname/README.md
  39. +53 −0 extensions/classname/package.json
  40. +50 −0 extensions/classname/src/index.ts
  41. +9 −0 extensions/classname/tsconfig.json
  42. +1 −0 extensions/color/README.md
  43. +11 −3 extensions/color/package.json
  44. +37 −6 extensions/events/README.md
  45. +11 −3 extensions/events/package.json
  46. +16 −5 extensions/events/src/index.ts
  47. +62 −0 extensions/hyper-link/README.md
  48. +11 −3 extensions/hyper-link/package.json
  49. +82 −38 extensions/hyper-link/src/index.ts
  50. +5 −0 extensions/langs/README.md
  51. +36 −16 extensions/langs/package.json
  52. +22 −9 extensions/langs/src/index.ts
  53. +1 −0 extensions/line-numbers-relative/README.md
  54. +11 −3 extensions/line-numbers-relative/package.json
  55. +1 −0 extensions/mentions/README.md
  56. +11 −3 extensions/mentions/package.json
  57. +9 −6 extensions/zebra-stripes/README.md
  58. +11 −3 extensions/zebra-stripes/package.json
  59. +18 −9 extensions/zebra-stripes/src/index.ts
  60. +2 −3 lerna.json
  61. +256 −0 merge/README.md
  62. +64 −0 merge/package.json
  63. +208 −0 merge/src/Internal.tsx
  64. +35 −0 merge/src/Modified.tsx
  65. +39 −0 merge/src/Original.tsx
  66. +36 −0 merge/src/index.tsx
  67. +59 −0 merge/src/store.tsx
  68. +8 −0 merge/tsconfig.json
  69. +16 −10 package.json
  70. +6 −0 tea.yaml
  71. +18 −0 themes/_scripts/README.md
  72. +373 −0 themes/_scripts/data/abyss.json
  73. +344 −0 themes/_scripts/data/andromeda.json
  74. +593 −0 themes/_scripts/data/copilot.json
  75. +384 −0 themes/_scripts/data/kimbie.json
  76. +647 −0 themes/_scripts/data/monokai-dimmed.json
  77. +476 −0 themes/_scripts/data/monokai.json
  78. +487 −0 themes/_scripts/data/quietlight.json
  79. +387 −0 themes/_scripts/data/red.json
  80. +412 −0 themes/_scripts/data/solarized.dark.json
  81. +383 −0 themes/_scripts/data/solarized.light.json
  82. +290 −0 themes/_scripts/data/tomorrow-night-blue.json
  83. +220 −0 themes/_scripts/data/white.dark.json
  84. +220 −0 themes/_scripts/data/white.light.json
  85. +168 −0 themes/_scripts/main.mjs
  86. +6 −0 themes/_scripts/package.json
  87. +17 −1 themes/abcdef/README.md
  88. +12 −4 themes/abcdef/package.json
  89. +35 −30 themes/abcdef/src/index.ts
  90. +111 −0 themes/abyss/README.md
  91. +44 −0 themes/abyss/package.json
  92. +25 −0 themes/abyss/src/color.ts
  93. +52 −0 themes/abyss/src/index.ts
  94. +9 −0 themes/abyss/tsconfig.json
  95. +285 −17 themes/all/README.md
  96. +47 −27 themes/all/package.json
  97. +12 −0 themes/all/src/index.ts
  98. +18 −1 themes/androidstudio/README.md
  99. +12 −4 themes/androidstudio/package.json
  100. +25 −20 themes/androidstudio/src/index.ts
  101. +110 −0 themes/andromeda/README.md
  102. +44 −0 themes/andromeda/package.json
  103. +26 −0 themes/andromeda/src/color.ts
  104. +56 −0 themes/andromeda/src/index.ts
  105. +9 −0 themes/andromeda/tsconfig.json
  106. +16 −1 themes/atomone/README.md
  107. +12 −4 themes/atomone/package.json
  108. +30 −25 themes/atomone/src/index.ts
  109. +16 −1 themes/aura/README.md
  110. +12 −4 themes/aura/package.json
  111. +39 −34 themes/aura/src/index.ts
  112. +120 −0 themes/basic/README.md
  113. +6 −0 themes/basic/dark.d.ts
  114. +6 −0 themes/basic/light.d.ts
  115. +62 −0 themes/basic/package.json
  116. +76 −0 themes/basic/src/dark.ts
  117. +2 −0 themes/basic/src/index.ts
  118. +81 −0 themes/basic/src/light.ts
  119. +9 −0 themes/basic/tsconfig.json
  120. +16 −1 themes/bbedit/README.md
  121. +12 −4 themes/bbedit/package.json
  122. +32 −27 themes/bbedit/src/index.ts
  123. +16 −1 themes/bespin/README.md
  124. +12 −4 themes/bespin/package.json
  125. +27 −22 themes/bespin/src/index.ts
  126. +121 −0 themes/console/README.md
  127. +6 −0 themes/console/dark.d.ts
  128. +6 −0 themes/console/light.d.ts
  129. +61 −0 themes/console/package.json
  130. +27 −0 themes/console/src/dark.ts
  131. +2 −0 themes/console/src/index.ts
  132. +27 −0 themes/console/src/light.ts
  133. +9 −0 themes/console/tsconfig.json
  134. +110 −0 themes/copilot/README.md
  135. +44 −0 themes/copilot/package.json
  136. +25 −0 themes/copilot/src/color.ts
  137. +56 −0 themes/copilot/src/index.ts
  138. +9 −0 themes/copilot/tsconfig.json
  139. +16 −1 themes/darcula/README.md
  140. +12 −4 themes/darcula/package.json
  141. +29 −24 themes/darcula/src/index.ts
  142. +16 −1 themes/dracula/README.md
  143. +12 −4 themes/dracula/package.json
  144. +31 −26 themes/dracula/src/index.ts
  145. +18 −2 themes/duotone/README.md
  146. +12 −4 themes/duotone/package.json
  147. +52 −41 themes/duotone/src/index.ts
  148. +17 −1 themes/eclipse/README.md
  149. +12 −4 themes/eclipse/package.json
  150. +32 −27 themes/eclipse/src/index.ts
  151. +18 −2 themes/github/README.md
  152. +12 −4 themes/github/package.json
  153. +60 −50 themes/github/src/index.ts
  154. +18 −2 themes/gruvbox/README.md
  155. +13 −5 themes/gruvbox/package.json
  156. +80 −116 themes/gruvbox/src/index.ts
  157. +110 −0 themes/kimbie/README.md
  158. +44 −0 themes/kimbie/package.json
  159. +25 −0 themes/kimbie/src/color.ts
  160. +52 −0 themes/kimbie/src/index.ts
  161. +9 −0 themes/kimbie/tsconfig.json
  162. +22 −3 themes/material/README.md
  163. +12 −4 themes/material/package.json
  164. +104 −140 themes/material/src/index.ts
  165. +112 −0 themes/monokai-dimmed/README.md
  166. +45 −0 themes/monokai-dimmed/package.json
  167. +25 −0 themes/monokai-dimmed/src/color.ts
  168. +52 −0 themes/monokai-dimmed/src/index.ts
  169. +9 −0 themes/monokai-dimmed/tsconfig.json
  170. +110 −0 themes/monokai/README.md
  171. +44 −0 themes/monokai/package.json
  172. +25 −0 themes/monokai/src/color.ts
  173. +52 −0 themes/monokai/src/index.ts
  174. +9 −0 themes/monokai/tsconfig.json
  175. +16 −1 themes/noctis-lilac/README.md
  176. +12 −4 themes/noctis-lilac/package.json
  177. +37 −74 themes/noctis-lilac/src/index.ts
  178. +16 −1 themes/nord/README.md
  179. +12 −4 themes/nord/package.json
  180. +64 −107 themes/nord/src/index.ts
  181. +16 −1 themes/okaidia/README.md
  182. +12 −4 themes/okaidia/package.json
  183. +29 −45 themes/okaidia/src/index.ts
  184. +110 −0 themes/quietlight/README.md
  185. +44 −0 themes/quietlight/package.json
  186. +25 −0 themes/quietlight/src/color.ts
  187. +53 −0 themes/quietlight/src/index.ts
  188. +9 −0 themes/quietlight/tsconfig.json
  189. +110 −0 themes/red/README.md
  190. +44 −0 themes/red/package.json
  191. +25 −0 themes/red/src/color.ts
  192. +52 −0 themes/red/src/index.ts
  193. +9 −0 themes/red/tsconfig.json
  194. +25 −2 themes/solarized/README.md
  195. +6 −0 themes/solarized/dark.d.ts
  196. +6 −0 themes/solarized/light.d.ts
  197. +25 −4 themes/solarized/package.json
  198. +26 −0 themes/solarized/src/dark-color.ts
  199. +53 −0 themes/solarized/src/dark.ts
  200. +2 −230 themes/solarized/src/index.ts
  201. +26 −0 themes/solarized/src/light-color.ts
  202. +53 −0 themes/solarized/src/light.ts
  203. +16 −1 themes/sublime/README.md
  204. +12 −4 themes/sublime/package.json
  205. +30 −25 themes/sublime/src/index.ts
  206. +12 −8 themes/theme/README.md
  207. +11 −3 themes/theme/package.json
  208. +28 −12 themes/theme/src/index.tsx
  209. +18 −1 themes/tokyo-night-day/README.md
  210. +12 −4 themes/tokyo-night-day/package.json
  211. +39 −34 themes/tokyo-night-day/src/index.ts
  212. +18 −1 themes/tokyo-night-storm/README.md
  213. +12 −4 themes/tokyo-night-storm/package.json
  214. +39 −34 themes/tokyo-night-storm/src/index.ts
  215. +16 −1 themes/tokyo-night/README.md
  216. +12 −4 themes/tokyo-night/package.json
  217. +39 −34 themes/tokyo-night/src/index.ts
  218. +112 −0 themes/tomorrow-night-blue/README.md
  219. +44 −0 themes/tomorrow-night-blue/package.json
  220. +25 −0 themes/tomorrow-night-blue/src/color.ts
  221. +52 −0 themes/tomorrow-night-blue/src/index.ts
  222. +9 −0 themes/tomorrow-night-blue/tsconfig.json
  223. +30 −1 themes/vscode/README.md
  224. +12 −4 themes/vscode/package.json
  225. +82 −0 themes/vscode/src/dark.ts
  226. +2 −71 themes/vscode/src/index.ts
  227. +82 −0 themes/vscode/src/light.ts
  228. +121 −0 themes/white/README.md
  229. +6 −0 themes/white/dark.d.ts
  230. +6 −0 themes/white/light.d.ts
  231. +55 −0 themes/white/package.json
  232. +26 −0 themes/white/src/dark-color.ts
  233. +57 −0 themes/white/src/dark.ts
  234. +2 −0 themes/white/src/index.ts
  235. +26 −0 themes/white/src/light-color.ts
  236. +57 −0 themes/white/src/light.ts
  237. +9 −0 themes/white/tsconfig.json
  238. +18 −2 themes/xcode/README.md
  239. +12 −4 themes/xcode/package.json
  240. +50 −40 themes/xcode/src/index.ts
  241. +0 −1 tsconfig.json
  242. +6 −4 www/.kktrc.ts
  243. +75 −62 www/package.json
  244. +29 −0 www/src/components/ErrorPage.tsx
  245. +113 −0 www/src/components/Fallback.tsx
  246. +12 −7 www/src/components/Header.tsx
  247. +81 −0 www/src/components/Layout.tsx
  248. +67 −0 www/src/components/Markdown.tsx
  249. +3 −6 www/src/components/NavMenus.tsx
  250. +2 −0 www/src/components/Warpper.tsx
  251. +31 −0 www/src/components/useMdData.tsx
  252. +7 −49 www/src/index.tsx
  253. +21 −0 www/src/pages/examples/Example431.tsx
  254. +27 −0 www/src/pages/examples/Example455.tsx
  255. +27 −0 www/src/pages/examples/Example650.tsx
  256. +35 −0 www/src/pages/examples/Example674.tsx
  257. +80 −0 www/src/pages/examples/Example681.tsx
  258. +29 −0 www/src/pages/examples/ExampleRef.tsx
  259. +84 −0 www/src/pages/examples/MarkDecoration.tsx
  260. +0 −15 www/src/pages/extensions/Document.tsx
  261. +200 −0 www/src/pages/extensions/basic-setup/example.tsx
  262. +6 −204 www/src/pages/extensions/basic-setup/index.tsx
  263. +53 −0 www/src/pages/extensions/classname/index.tsx
  264. +15 −15 www/src/pages/extensions/color/index.tsx
  265. +0 −21 www/src/pages/extensions/datas.tsx
  266. +18 −18 www/src/pages/extensions/events/index.tsx
  267. +27 −16 www/src/pages/extensions/hyper-link/index.tsx
  268. +6 −37 www/src/pages/extensions/index.tsx
  269. +18 −17 www/src/pages/extensions/langs/index.tsx
  270. +18 −18 www/src/pages/extensions/line-numbers-relative/index.tsx
  271. +18 −17 www/src/pages/extensions/mentions/index.tsx
  272. +22 −17 www/src/pages/extensions/themes/index.tsx
  273. +0 −29 www/src/pages/extensions/zebra-stripes/LineNumberDemo.tsx
  274. +33 −20 www/src/pages/extensions/zebra-stripes/index.tsx
  275. +44 −35 www/src/pages/home/Example.tsx
  276. 0 www/src/{ → pages/home}/Select.tsx
  277. +22 −10 www/src/pages/home/index.tsx
  278. +97 −0 www/src/pages/merge/Example.tsx
  279. +74 −0 www/src/pages/merge/code.ts
  280. +43 −0 www/src/pages/merge/examples/Example.md
  281. +5 −0 www/src/pages/merge/examples/onchange.tsx
  282. +10 −0 www/src/pages/merge/index.tsx
  283. +103 −0 www/src/pages/theme/Preview.tsx
  284. +0 −13 www/src/pages/theme/docs/index.tsx
  285. +10 −6 www/src/pages/theme/editor/index.tsx
  286. +2 −1 www/src/pages/theme/editor/themeCode.ts
  287. +45 −37 www/src/pages/theme/home/index.tsx
  288. +0 −31 www/src/pages/theme/index.tsx
  289. +29 −57 www/src/pages/theme/themes/Datas.ts
  290. +0 −69 www/src/pages/theme/themes/Document.tsx
  291. +4 −4 www/src/pages/theme/themes/PreCode.tsx
  292. +40 −35 www/src/pages/theme/themes/Sample.tsx
  293. +0 −44 www/src/pages/theme/themes/SiderMenus.tsx
  294. +0 −24 www/src/pages/theme/themes/index.tsx
  295. +695 −0 www/src/router.tsx
  296. +14 −0 www/src/utils/useTheme.tsx
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ko_fi: jaywcjlove
buy_me_a_coffee: jaywcjlove
custom: ["https://www.paypal.me/kennyiseeyou", "https://jaywcjlove.github.io/#/sponsor"]
Loading