Skip to content

Commit 3e6824f

Browse files
committed
v4.21.17 feat(theme): Add background image option to createTheme() (#575) 32c5339
0 parents  commit 3e6824f

File tree

176 files changed

+3555
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+3555
-0
lines changed

.nojekyll

Whitespace-only changes.

CONTRIBUTORS.svg

Lines changed: 74 additions & 0 deletions
Loading

asset-manifest.json

Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
{
2+
"files": {
3+
"main.css": "/react-codemirror/static/css/main.1c993d5a.css",
4+
"main.js": "/react-codemirror/static/js/main.438c4fb8.js",
5+
"static/js/5496.81366c12.chunk.js": "/react-codemirror/static/js/5496.81366c12.chunk.js",
6+
"static/js/6848.f9357b07.chunk.js": "/react-codemirror/static/js/6848.f9357b07.chunk.js",
7+
"static/js/9676.fe5f6021.chunk.js": "/react-codemirror/static/js/9676.fe5f6021.chunk.js",
8+
"static/js/9683.2edc08ac.chunk.js": "/react-codemirror/static/js/9683.2edc08ac.chunk.js",
9+
"static/js/6610.f104b336.chunk.js": "/react-codemirror/static/js/6610.f104b336.chunk.js",
10+
"static/js/1071.b61357c4.chunk.js": "/react-codemirror/static/js/1071.b61357c4.chunk.js",
11+
"static/js/4012.7f1fb662.chunk.js": "/react-codemirror/static/js/4012.7f1fb662.chunk.js",
12+
"static/js/8644.4aa8e412.chunk.js": "/react-codemirror/static/js/8644.4aa8e412.chunk.js",
13+
"static/js/1151.ab18a753.chunk.js": "/react-codemirror/static/js/1151.ab18a753.chunk.js",
14+
"static/js/53.1588dcbf.chunk.js": "/react-codemirror/static/js/53.1588dcbf.chunk.js",
15+
"static/js/1250.ba468d70.chunk.js": "/react-codemirror/static/js/1250.ba468d70.chunk.js",
16+
"static/js/2617.dd50b750.chunk.js": "/react-codemirror/static/js/2617.dd50b750.chunk.js",
17+
"static/js/8384.e9d2e7bb.chunk.js": "/react-codemirror/static/js/8384.e9d2e7bb.chunk.js",
18+
"static/js/4228.b84a80fa.chunk.js": "/react-codemirror/static/js/4228.b84a80fa.chunk.js",
19+
"static/js/3507.06efa6cb.chunk.js": "/react-codemirror/static/js/3507.06efa6cb.chunk.js",
20+
"static/js/3945.b71cd262.chunk.js": "/react-codemirror/static/js/3945.b71cd262.chunk.js",
21+
"static/js/5305.2d9acd79.chunk.js": "/react-codemirror/static/js/5305.2d9acd79.chunk.js",
22+
"static/js/7260.e0ff6dda.chunk.js": "/react-codemirror/static/js/7260.e0ff6dda.chunk.js",
23+
"static/js/5999.43058ee1.chunk.js": "/react-codemirror/static/js/5999.43058ee1.chunk.js",
24+
"static/js/4408.fcea093e.chunk.js": "/react-codemirror/static/js/4408.fcea093e.chunk.js",
25+
"static/js/2678.bad5a32e.chunk.js": "/react-codemirror/static/js/2678.bad5a32e.chunk.js",
26+
"static/js/6038.a5af742f.chunk.js": "/react-codemirror/static/js/6038.a5af742f.chunk.js",
27+
"static/js/1037.304e3878.chunk.js": "/react-codemirror/static/js/1037.304e3878.chunk.js",
28+
"static/js/6384.07b44e4f.chunk.js": "/react-codemirror/static/js/6384.07b44e4f.chunk.js",
29+
"static/js/8185.e6cffaa6.chunk.js": "/react-codemirror/static/js/8185.e6cffaa6.chunk.js",
30+
"static/js/2468.c59346e5.chunk.js": "/react-codemirror/static/js/2468.c59346e5.chunk.js",
31+
"static/js/9757.84acab4c.chunk.js": "/react-codemirror/static/js/9757.84acab4c.chunk.js",
32+
"static/js/1358.4dc5b09b.chunk.js": "/react-codemirror/static/js/1358.4dc5b09b.chunk.js",
33+
"static/js/6925.c3ab33c4.chunk.js": "/react-codemirror/static/js/6925.c3ab33c4.chunk.js",
34+
"static/js/3936.3b62a8a7.chunk.js": "/react-codemirror/static/js/3936.3b62a8a7.chunk.js",
35+
"static/js/8435.0ba7d979.chunk.js": "/react-codemirror/static/js/8435.0ba7d979.chunk.js",
36+
"static/js/4823.fb6d0c8d.chunk.js": "/react-codemirror/static/js/4823.fb6d0c8d.chunk.js",
37+
"static/js/1363.a406e7a2.chunk.js": "/react-codemirror/static/js/1363.a406e7a2.chunk.js",
38+
"static/js/5462.2594b0c5.chunk.js": "/react-codemirror/static/js/5462.2594b0c5.chunk.js",
39+
"static/js/4008.57a9edf7.chunk.js": "/react-codemirror/static/js/4008.57a9edf7.chunk.js",
40+
"static/js/8221.9107820a.chunk.js": "/react-codemirror/static/js/8221.9107820a.chunk.js",
41+
"static/js/9776.1ac1b8db.chunk.js": "/react-codemirror/static/js/9776.1ac1b8db.chunk.js",
42+
"static/js/2408.59e8a8a5.chunk.js": "/react-codemirror/static/js/2408.59e8a8a5.chunk.js",
43+
"static/js/4910.d455826d.chunk.js": "/react-codemirror/static/js/4910.d455826d.chunk.js",
44+
"static/js/3163.44555efa.chunk.js": "/react-codemirror/static/js/3163.44555efa.chunk.js",
45+
"static/js/6453.ca0790cd.chunk.js": "/react-codemirror/static/js/6453.ca0790cd.chunk.js",
46+
"static/js/9244.5f603585.chunk.js": "/react-codemirror/static/js/9244.5f603585.chunk.js",
47+
"static/js/3459.f1355869.chunk.js": "/react-codemirror/static/js/3459.f1355869.chunk.js",
48+
"static/js/4585.0ebf2605.chunk.js": "/react-codemirror/static/js/4585.0ebf2605.chunk.js",
49+
"static/js/7131.0d26616f.chunk.js": "/react-codemirror/static/js/7131.0d26616f.chunk.js",
50+
"static/js/6774.27a9e1d5.chunk.js": "/react-codemirror/static/js/6774.27a9e1d5.chunk.js",
51+
"static/js/1870.3e729e84.chunk.js": "/react-codemirror/static/js/1870.3e729e84.chunk.js",
52+
"static/js/5162.71fb8e06.chunk.js": "/react-codemirror/static/js/5162.71fb8e06.chunk.js",
53+
"static/js/6132.fa67ab29.chunk.js": "/react-codemirror/static/js/6132.fa67ab29.chunk.js",
54+
"static/js/2211.f33359bf.chunk.js": "/react-codemirror/static/js/2211.f33359bf.chunk.js",
55+
"static/js/5475.88296fd5.chunk.js": "/react-codemirror/static/js/5475.88296fd5.chunk.js",
56+
"static/js/2918.97eca32c.chunk.js": "/react-codemirror/static/js/2918.97eca32c.chunk.js",
57+
"static/js/6030.9ea2ebe0.chunk.js": "/react-codemirror/static/js/6030.9ea2ebe0.chunk.js",
58+
"static/js/3071.6db13075.chunk.js": "/react-codemirror/static/js/3071.6db13075.chunk.js",
59+
"static/js/9078.8a5b72bf.chunk.js": "/react-codemirror/static/js/9078.8a5b72bf.chunk.js",
60+
"static/js/8951.0bd8a213.chunk.js": "/react-codemirror/static/js/8951.0bd8a213.chunk.js",
61+
"static/js/3699.8347c079.chunk.js": "/react-codemirror/static/js/3699.8347c079.chunk.js",
62+
"static/js/4041.c8756fc8.chunk.js": "/react-codemirror/static/js/4041.c8756fc8.chunk.js",
63+
"static/js/739.63b02125.chunk.js": "/react-codemirror/static/js/739.63b02125.chunk.js",
64+
"static/js/6540.d72d4aab.chunk.js": "/react-codemirror/static/js/6540.d72d4aab.chunk.js",
65+
"static/js/831.f74d646c.chunk.js": "/react-codemirror/static/js/831.f74d646c.chunk.js",
66+
"static/js/6489.0c13a22a.chunk.js": "/react-codemirror/static/js/6489.0c13a22a.chunk.js",
67+
"static/js/9069.bd626a77.chunk.js": "/react-codemirror/static/js/9069.bd626a77.chunk.js",
68+
"static/js/6210.538fd20c.chunk.js": "/react-codemirror/static/js/6210.538fd20c.chunk.js",
69+
"static/js/7428.12de3f1d.chunk.js": "/react-codemirror/static/js/7428.12de3f1d.chunk.js",
70+
"static/js/7726.f8945635.chunk.js": "/react-codemirror/static/js/7726.f8945635.chunk.js",
71+
"static/js/9090.1ac69786.chunk.js": "/react-codemirror/static/js/9090.1ac69786.chunk.js",
72+
"static/js/3551.2cf4c50e.chunk.js": "/react-codemirror/static/js/3551.2cf4c50e.chunk.js",
73+
"static/js/1676.4797c392.chunk.js": "/react-codemirror/static/js/1676.4797c392.chunk.js",
74+
"static/js/4168.51d9c6e3.chunk.js": "/react-codemirror/static/js/4168.51d9c6e3.chunk.js",
75+
"static/js/5443.f163423c.chunk.js": "/react-codemirror/static/js/5443.f163423c.chunk.js",
76+
"static/js/56.fbe84cda.chunk.js": "/react-codemirror/static/js/56.fbe84cda.chunk.js",
77+
"static/js/1325.11b03a57.chunk.js": "/react-codemirror/static/js/1325.11b03a57.chunk.js",
78+
"static/js/521.5be10623.chunk.js": "/react-codemirror/static/js/521.5be10623.chunk.js",
79+
"static/js/9402.51579121.chunk.js": "/react-codemirror/static/js/9402.51579121.chunk.js",
80+
"static/js/9798.82dd16ae.chunk.js": "/react-codemirror/static/js/9798.82dd16ae.chunk.js",
81+
"static/js/995.250c0f26.chunk.js": "/react-codemirror/static/js/995.250c0f26.chunk.js",
82+
"static/js/3700.3387d67f.chunk.js": "/react-codemirror/static/js/3700.3387d67f.chunk.js",
83+
"static/js/6591.1815d194.chunk.js": "/react-codemirror/static/js/6591.1815d194.chunk.js",
84+
"static/js/2791.8620ae3c.chunk.js": "/react-codemirror/static/js/2791.8620ae3c.chunk.js",
85+
"static/js/5775.18c69d28.chunk.js": "/react-codemirror/static/js/5775.18c69d28.chunk.js",
86+
"static/js/9107.06bc79e2.chunk.js": "/react-codemirror/static/js/9107.06bc79e2.chunk.js",
87+
"static/js/7893.6a2f43a6.chunk.js": "/react-codemirror/static/js/7893.6a2f43a6.chunk.js",
88+
"static/js/2388.9201fb54.chunk.js": "/react-codemirror/static/js/2388.9201fb54.chunk.js",
89+
"static/js/7338.187c628b.chunk.js": "/react-codemirror/static/js/7338.187c628b.chunk.js",
90+
"static/js/1072.ed0f28cb.chunk.js": "/react-codemirror/static/js/1072.ed0f28cb.chunk.js",
91+
"static/js/6220.d35108a9.chunk.js": "/react-codemirror/static/js/6220.d35108a9.chunk.js",
92+
"static/js/9279.7454c460.chunk.js": "/react-codemirror/static/js/9279.7454c460.chunk.js",
93+
"static/js/6394.2d141e3c.chunk.js": "/react-codemirror/static/js/6394.2d141e3c.chunk.js",
94+
"static/js/9084.1995ab55.chunk.js": "/react-codemirror/static/js/9084.1995ab55.chunk.js",
95+
"static/js/57.3ecd4c4b.chunk.js": "/react-codemirror/static/js/57.3ecd4c4b.chunk.js",
96+
"static/js/480.f0af2edb.chunk.js": "/react-codemirror/static/js/480.f0af2edb.chunk.js",
97+
"static/js/1177.f7edd80b.chunk.js": "/react-codemirror/static/js/1177.f7edd80b.chunk.js",
98+
"static/js/6644.f772d3b5.chunk.js": "/react-codemirror/static/js/6644.f772d3b5.chunk.js",
99+
"static/js/9241.db8141fc.chunk.js": "/react-codemirror/static/js/9241.db8141fc.chunk.js",
100+
"static/js/290.fa772ce9.chunk.js": "/react-codemirror/static/js/290.fa772ce9.chunk.js",
101+
"static/js/2255.8ff9d36a.chunk.js": "/react-codemirror/static/js/2255.8ff9d36a.chunk.js",
102+
"static/js/1348.5364d019.chunk.js": "/react-codemirror/static/js/1348.5364d019.chunk.js",
103+
"static/js/4609.61687a0e.chunk.js": "/react-codemirror/static/js/4609.61687a0e.chunk.js",
104+
"static/js/2524.33662b5e.chunk.js": "/react-codemirror/static/js/2524.33662b5e.chunk.js",
105+
"static/js/8302.a12c4595.chunk.js": "/react-codemirror/static/js/8302.a12c4595.chunk.js",
106+
"static/js/7378.fba19996.chunk.js": "/react-codemirror/static/js/7378.fba19996.chunk.js",
107+
"static/js/1565.9fbddc7e.chunk.js": "/react-codemirror/static/js/1565.9fbddc7e.chunk.js",
108+
"static/js/5583.5ab0120c.chunk.js": "/react-codemirror/static/js/5583.5ab0120c.chunk.js",
109+
"static/js/6876.d98eada8.chunk.js": "/react-codemirror/static/js/6876.d98eada8.chunk.js",
110+
"static/js/1694.72bf6284.chunk.js": "/react-codemirror/static/js/1694.72bf6284.chunk.js",
111+
"static/js/8583.58c248c0.chunk.js": "/react-codemirror/static/js/8583.58c248c0.chunk.js",
112+
"static/js/4247.c98baade.chunk.js": "/react-codemirror/static/js/4247.c98baade.chunk.js",
113+
"static/js/4333.b5df4b66.chunk.js": "/react-codemirror/static/js/4333.b5df4b66.chunk.js",
114+
"static/js/9878.d6867576.chunk.js": "/react-codemirror/static/js/9878.d6867576.chunk.js",
115+
"static/js/5273.aaa8bb8c.chunk.js": "/react-codemirror/static/js/5273.aaa8bb8c.chunk.js",
116+
"static/js/8366.f977d786.chunk.js": "/react-codemirror/static/js/8366.f977d786.chunk.js",
117+
"static/js/3092.ec661306.chunk.js": "/react-codemirror/static/js/3092.ec661306.chunk.js",
118+
"static/js/1760.746ed7fb.chunk.js": "/react-codemirror/static/js/1760.746ed7fb.chunk.js",
119+
"static/js/1249.d8337045.chunk.js": "/react-codemirror/static/js/1249.d8337045.chunk.js",
120+
"static/js/799.8f151370.chunk.js": "/react-codemirror/static/js/799.8f151370.chunk.js",
121+
"static/js/1899.10fab38b.chunk.js": "/react-codemirror/static/js/1899.10fab38b.chunk.js",
122+
"static/js/8203.75f7ef95.chunk.js": "/react-codemirror/static/js/8203.75f7ef95.chunk.js",
123+
"static/js/9952.958d2baa.chunk.js": "/react-codemirror/static/js/9952.958d2baa.chunk.js",
124+
"static/js/9236.e1be1ef0.chunk.js": "/react-codemirror/static/js/9236.e1be1ef0.chunk.js",
125+
"static/js/4005.adb96349.chunk.js": "/react-codemirror/static/js/4005.adb96349.chunk.js",
126+
"static/js/1094.ba22f211.chunk.js": "/react-codemirror/static/js/1094.ba22f211.chunk.js",
127+
"static/js/6300.e1b3da3a.chunk.js": "/react-codemirror/static/js/6300.e1b3da3a.chunk.js",
128+
"static/js/7636.58ec022f.chunk.js": "/react-codemirror/static/js/7636.58ec022f.chunk.js",
129+
"static/js/616.cfe891be.chunk.js": "/react-codemirror/static/js/616.cfe891be.chunk.js",
130+
"static/js/3610.ef6c6bd4.chunk.js": "/react-codemirror/static/js/3610.ef6c6bd4.chunk.js",
131+
"static/js/321.ef9551dd.chunk.js": "/react-codemirror/static/js/321.ef9551dd.chunk.js",
132+
"static/js/9049.4471ac7f.chunk.js": "/react-codemirror/static/js/9049.4471ac7f.chunk.js",
133+
"static/js/8314.1f9cb24a.chunk.js": "/react-codemirror/static/js/8314.1f9cb24a.chunk.js",
134+
"static/js/750.2062815a.chunk.js": "/react-codemirror/static/js/750.2062815a.chunk.js",
135+
"static/js/7410.00ae4837.chunk.js": "/react-codemirror/static/js/7410.00ae4837.chunk.js",
136+
"static/js/7794.898989f5.chunk.js": "/react-codemirror/static/js/7794.898989f5.chunk.js",
137+
"static/js/131.f3e76b75.chunk.js": "/react-codemirror/static/js/131.f3e76b75.chunk.js",
138+
"static/js/1984.c0edce3c.chunk.js": "/react-codemirror/static/js/1984.c0edce3c.chunk.js",
139+
"static/js/572.217da88d.chunk.js": "/react-codemirror/static/js/572.217da88d.chunk.js",
140+
"static/js/2890.43d0d381.chunk.js": "/react-codemirror/static/js/2890.43d0d381.chunk.js",
141+
"static/js/1082.5beda316.chunk.js": "/react-codemirror/static/js/1082.5beda316.chunk.js",
142+
"static/js/4749.edb4ebe3.chunk.js": "/react-codemirror/static/js/4749.edb4ebe3.chunk.js",
143+
"static/js/7114.5d43346c.chunk.js": "/react-codemirror/static/js/7114.5d43346c.chunk.js",
144+
"static/js/3447.28b823cc.chunk.js": "/react-codemirror/static/js/3447.28b823cc.chunk.js",
145+
"static/js/2159.cc59a6fa.chunk.js": "/react-codemirror/static/js/2159.cc59a6fa.chunk.js",
146+
"static/js/1628.b1ed4bf9.chunk.js": "/react-codemirror/static/js/1628.b1ed4bf9.chunk.js",
147+
"static/js/9102.bee8f0ac.chunk.js": "/react-codemirror/static/js/9102.bee8f0ac.chunk.js",
148+
"codemirror-vendor.js": "/react-codemirror/static/js/codemirror-vendor.e6c8ce86.js",
149+
"refractor-vendor.js": "/react-codemirror/static/js/refractor-vendor.767e03d1.js",
150+
"react-vendor.js": "/react-codemirror/static/js/react-vendor.860fda10.js",
151+
"static/js/4309.b737b7cf.chunk.js": "/react-codemirror/static/js/4309.b737b7cf.chunk.js",
152+
"index.html": "/react-codemirror/index.html",
153+
"static/media/index.cjs": "/react-codemirror/static/media/index.85cccd72209c21d4cf10.cjs"
154+
},
155+
"entrypoints": [
156+
"static/js/codemirror-vendor.e6c8ce86.js",
157+
"static/js/refractor-vendor.767e03d1.js",
158+
"static/js/react-vendor.860fda10.js",
159+
"static/css/main.1c993d5a.css",
160+
"static/js/main.438c4fb8.js"
161+
]
162+
}

bundle.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<script src="https://unpkg.com/@babel/[email protected]/babel.min.js" crossorigin></script>
6+
<script src="https://unpkg.com/[email protected]/umd/react.development.js" crossorigin></script>
7+
<script src="https://unpkg.com/[email protected]/umd/react-dom.development.js" crossorigin></script>
8+
<script src="https://codemirror.net/6/codemirror.js"></script>
9+
<script src="https://unpkg.com/@uiw/react-codemirror/dist/codemirror.min.js"></script>
10+
</head>
11+
<body>
12+
<div id="container" style="padding: 24px"></div>
13+
<script>
14+
window.require = function (module) {
15+
if (!module) {
16+
throw new Error('this is a fake require only use for import fusion next');
17+
}
18+
if (window.CM && window.CM[module]) {
19+
return window.CM[module];
20+
}
21+
return window[module];
22+
};
23+
</script>
24+
<script type="text/babel">
25+
import CodeMirror from '@uiw/codemirror';
26+
import { javascript } from '@codemirror/lang-javascript';
27+
28+
const Demo = () => {
29+
return (
30+
<div>
31+
<CodeMirror
32+
value="console.log('hello world!')"
33+
height="200px"
34+
extensions={[javascript({ jsx: true })]}
35+
onChange={(value, viewUpdate) => {
36+
console.log('value:', value);
37+
}}
38+
/>
39+
</div>
40+
);
41+
};
42+
43+
ReactDOM.render(<Demo />, document.getElementById('container'));
44+
</script>
45+
</body>
46+
</html>

coverage/badges.svg

Lines changed: 20 additions & 0 deletions
Loading

coverage/coverage-summary.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{"total": {"lines":{"total":90,"covered":80,"skipped":0,"pct":88.88},"statements":{"total":92,"covered":82,"skipped":0,"pct":89.13},"functions":{"total":17,"covered":14,"skipped":0,"pct":82.35},"branches":{"total":86,"covered":63,"skipped":0,"pct":73.25},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
2+
,"/home/runner/work/react-codemirror/react-codemirror/core/src/getDefaultExtensions.ts": {"lines":{"total":24,"covered":19,"skipped":0,"pct":79.16},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":24,"covered":19,"skipped":0,"pct":79.16},"branches":{"total":23,"covered":10,"skipped":0,"pct":43.47}}
3+
,"/home/runner/work/react-codemirror/react-codemirror/core/src/index.tsx": {"lines":{"total":10,"covered":9,"skipped":0,"pct":90},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":11,"covered":10,"skipped":0,"pct":90.9},"branches":{"total":9,"covered":7,"skipped":0,"pct":77.77}}
4+
,"/home/runner/work/react-codemirror/react-codemirror/core/src/useCodeMirror.ts": {"lines":{"total":51,"covered":50,"skipped":0,"pct":98.03},"functions":{"total":11,"covered":11,"skipped":0,"pct":100},"statements":{"total":52,"covered":51,"skipped":0,"pct":98.07},"branches":{"total":54,"covered":46,"skipped":0,"pct":85.18}}
5+
,"/home/runner/work/react-codemirror/react-codemirror/core/src/utils.ts": {"lines":{"total":4,"covered":1,"skipped":0,"pct":25},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":4,"covered":1,"skipped":0,"pct":25},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
6+
,"/home/runner/work/react-codemirror/react-codemirror/core/src/theme/light.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
7+
}

0 commit comments

Comments
 (0)