@muze-nl/simplystore 0.4.1 → 0.4.3
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/package.json +2 -2
- package/src/worker-query.mjs +3 -1
- package/www/assets/css/style.css +2296 -0
- package/www/assets/feather-sprite.svg +1 -0
- package/www/assets/img/simplystore-narrow-white.svg +138 -0
- package/www/assets/img/simplystore-narrow.svg +138 -0
- package/www/assets/img/simplystore-white.svg +153 -0
- package/www/assets/img/simplystore.svg +153 -0
- package/www/codemirror/LICENSE +21 -0
- package/www/codemirror/README.md +47 -0
- package/www/codemirror/addon/lint/javascript-lint.js +65 -0
- package/www/codemirror/addon/lint/lint.css +79 -0
- package/www/codemirror/addon/lint/lint.js +291 -0
- package/www/codemirror/lib/codemirror.css +344 -0
- package/www/codemirror/lib/codemirror.js +9874 -0
- package/www/codemirror/mode/javascript/javascript.js +960 -0
- package/www/codemirror/package.json +52 -0
- package/www/codemirror/theme/material-ocean.css +141 -0
- package/www/index.html +359 -0
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
width="124.33179mm"
|
|
6
|
+
height="18.909166mm"
|
|
7
|
+
viewBox="0 0 124.33179 18.909166"
|
|
8
|
+
version="1.1"
|
|
9
|
+
id="svg5"
|
|
10
|
+
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
|
11
|
+
sodipodi:docname="simplystore.svg"
|
|
12
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
13
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
16
|
+
<sodipodi:namedview
|
|
17
|
+
id="namedview7"
|
|
18
|
+
pagecolor="#ffffff"
|
|
19
|
+
bordercolor="#666666"
|
|
20
|
+
borderopacity="1.0"
|
|
21
|
+
inkscape:pageshadow="2"
|
|
22
|
+
inkscape:pageopacity="0.0"
|
|
23
|
+
inkscape:pagecheckerboard="0"
|
|
24
|
+
inkscape:document-units="mm"
|
|
25
|
+
showgrid="false"
|
|
26
|
+
showguides="true"
|
|
27
|
+
inkscape:guide-bbox="true"
|
|
28
|
+
inkscape:zoom="1.1759259"
|
|
29
|
+
inkscape:cx="228.75591"
|
|
30
|
+
inkscape:cy="-40.393702"
|
|
31
|
+
inkscape:window-width="1846"
|
|
32
|
+
inkscape:window-height="1016"
|
|
33
|
+
inkscape:window-x="0"
|
|
34
|
+
inkscape:window-y="0"
|
|
35
|
+
inkscape:window-maximized="1"
|
|
36
|
+
inkscape:current-layer="layer1">
|
|
37
|
+
<sodipodi:guide
|
|
38
|
+
position="-148.04873,-18.400606"
|
|
39
|
+
orientation="0,-1"
|
|
40
|
+
id="guide70804" />
|
|
41
|
+
<sodipodi:guide
|
|
42
|
+
position="-4.9782943,0.36357475"
|
|
43
|
+
orientation="0,-1"
|
|
44
|
+
id="guide82674" />
|
|
45
|
+
<sodipodi:guide
|
|
46
|
+
position="65.701449,0.36358475"
|
|
47
|
+
orientation="0,-1"
|
|
48
|
+
id="guide82676" />
|
|
49
|
+
<sodipodi:guide
|
|
50
|
+
position="16.509361,3.7502514"
|
|
51
|
+
orientation="0,-1"
|
|
52
|
+
id="guide9050" />
|
|
53
|
+
</sodipodi:namedview>
|
|
54
|
+
<defs
|
|
55
|
+
id="defs2">
|
|
56
|
+
<rect
|
|
57
|
+
x="82.255661"
|
|
58
|
+
y="400.61517"
|
|
59
|
+
width="454.06372"
|
|
60
|
+
height="89.364418"
|
|
61
|
+
id="rect49632" />
|
|
62
|
+
<rect
|
|
63
|
+
x="81.544785"
|
|
64
|
+
y="293.79773"
|
|
65
|
+
width="455.18652"
|
|
66
|
+
height="111.85999"
|
|
67
|
+
id="rect4851" />
|
|
68
|
+
</defs>
|
|
69
|
+
<g
|
|
70
|
+
inkscape:label="Layer 1"
|
|
71
|
+
inkscape:groupmode="layer"
|
|
72
|
+
id="layer1"
|
|
73
|
+
transform="translate(-49.048723,-59.890219)">
|
|
74
|
+
<text
|
|
75
|
+
xml:space="preserve"
|
|
76
|
+
transform="scale(0.26458333)"
|
|
77
|
+
id="text49630"
|
|
78
|
+
style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect49632);fill:#000000;fill-opacity:1;stroke:none" />
|
|
79
|
+
<polygon
|
|
80
|
+
class="st2"
|
|
81
|
+
points=""
|
|
82
|
+
id="polygon82612"
|
|
83
|
+
transform="matrix(0.26458333,0,0,0.26458333,46.111848,58.003136)" />
|
|
84
|
+
<text
|
|
85
|
+
xml:space="preserve"
|
|
86
|
+
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
|
|
87
|
+
x="109.47266"
|
|
88
|
+
y="48.617371"
|
|
89
|
+
id="text1328"><tspan
|
|
90
|
+
sodipodi:role="line"
|
|
91
|
+
id="tspan1326"
|
|
92
|
+
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:19.4028px;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
|
|
93
|
+
x="109.47266"
|
|
94
|
+
y="48.617371" /></text>
|
|
95
|
+
<path
|
|
96
|
+
class="st0"
|
|
97
|
+
d="m 55.636216,69.069551 c -2.143125,-0.343958 -2.831042,-0.502708 -2.831042,-1.27 0,-0.529166 0.396875,-1.190625 2.2225,-1.190625 1.190625,0 2.301875,0.238125 3.122084,0.687917 V 66.71476 c 0,-1.42875 -1.322917,-2.275417 -3.571875,-2.275417 -2.248959,0 -4.656667,1.137708 -4.656667,3.624792 0,1.534583 0.846667,2.328333 2.725208,2.592916 2.196042,0.3175 2.831042,0.529167 2.831042,1.349375 0,1.190625 -1.561042,1.190625 -2.169583,1.190625 -1.455209,0 -2.460625,-0.343958 -3.122084,-0.740833 v 0.529166 c 0,0.582084 0,2.354792 3.730625,2.354792 2.778125,0 4.497917,-1.349375 4.497917,-3.4925 0,-1.905 -1.508125,-2.566458 -2.778125,-2.778125 z"
|
|
98
|
+
id="path82600"
|
|
99
|
+
style="fill:#ffffff;fill-opacity:1;stroke-width:0.264583" />
|
|
100
|
+
<path
|
|
101
|
+
class="st0"
|
|
102
|
+
d="m 89.211835,64.465801 c -3.677703,0 -5.714994,2.090209 -5.714994,5.87375 v 5.794375 c 0,1.613958 0.582083,2.301875 1.957916,2.301875 h 1.031878 v -5.027083 c 0,0 0.0265,0.396875 0.635,1.11125 0.71437,0.740833 1.34937,0.873125 2.51354,0.873125 2.88396,0 4.84187,-2.275417 4.84187,-5.688542 0,-3.095625 -2.16958,-5.23875 -5.26521,-5.23875 z m 0.21167,8.307917 c -1.29646,0 -2.51354,-0.820209 -2.51354,-3.148542 0,-1.613958 1.05833,-2.619375 2.11667,-2.619375 1.56104,0 2.51354,0.714375 2.51354,3.069167 -0.0265,1.640416 -0.92604,2.69875 -2.11667,2.69875 z"
|
|
103
|
+
id="path82602"
|
|
104
|
+
style="fill:#ffffff;fill-opacity:1;stroke-width:0.264583" />
|
|
105
|
+
<path
|
|
106
|
+
class="st0"
|
|
107
|
+
d="m 98.736845,71.212676 v -7.9375 c 0,-1.613958 -0.60855,-2.275416 -2.11667,-2.275416 h -0.97896 v 10.768541 c 0,2.54 1.74625,3.439583 3.41312,3.439583 0.635,0 2.116665,-0.132291 2.116665,-1.402291 v -0.978959 h -0.47625 c -0.846665,0.02646 -1.957905,-0.15875 -1.957905,-1.613958 z"
|
|
108
|
+
id="path82604"
|
|
109
|
+
style="fill:#ffffff;fill-opacity:1;stroke-width:0.264583" />
|
|
110
|
+
<path
|
|
111
|
+
class="st0"
|
|
112
|
+
d="m 109.61121,64.783301 h -1.50812 c -0.29104,2.090209 -1.08479,4.894792 -1.905,6.535208 l -0.3175,0.661459 -0.29104,-0.687917 c -0.58209,-1.375833 -1.34938,-3.518958 -1.74625,-5.23875 -0.18521,-0.846666 -1.05834,-1.296458 -1.79917,-1.296458 h -1.56104 c 0.52916,2.831042 2.35479,7.408333 3.91583,9.736666 l 0.10583,0.15875 -0.10583,0.211667 c -0.47625,1.058333 -1.05833,1.481667 -2.14312,1.5875 l -1.32292,0.105833 v 0.608542 c 0,1.137708 1.00542,1.561042 1.87854,1.561042 2.14313,0 2.80458,-0.502709 5.82083,-6.323542 1.21709,-2.354791 2.2225,-5.476875 2.2225,-6.50875 0.0265,-0.502708 -0.10583,-1.11125 -1.24354,-1.11125 z"
|
|
113
|
+
id="path82606"
|
|
114
|
+
style="fill:#ffffff;fill-opacity:1;stroke-width:0.264583" />
|
|
115
|
+
<path
|
|
116
|
+
class="st1"
|
|
117
|
+
d="m 61.007257,63.486843 c 0.899584,0 1.640417,-0.687917 1.640417,-1.534583 0,-0.846667 -0.740833,-1.534584 -1.640417,-1.534584 -0.899583,0 -1.640416,0.687917 -1.640416,1.534584 0,0.846666 0.740833,1.534583 1.640416,1.534583 z"
|
|
118
|
+
id="path82608"
|
|
119
|
+
style="fill:#ffffff;fill-opacity:1;stroke:#ae47ff;stroke-width:0;stroke-miterlimit:10;stroke-opacity:1;stroke-dasharray:none" />
|
|
120
|
+
<path
|
|
121
|
+
class="st0"
|
|
122
|
+
d="m 70.585174,67.111635 c 1.217083,0 1.852083,0.740833 1.852083,2.169583 v 3.915833 c 0,1.402292 0.502709,1.878542 2.010834,1.878542 h 0.978958 v -5.741458 c 0,-1.825625 0.9525,-2.2225 1.772708,-2.2225 1.322917,0 1.931459,0.714375 1.931459,2.275416 v 3.81 c 0,1.217083 0.343958,1.878542 2.116666,1.878542 h 0.978959 v -5.635625 c 0,-3.201458 -1.693334,-4.974167 -4.736042,-4.974167 -1.481667,0 -2.69875,1.084792 -3.148542,1.799167 l -0.370416,0.582083 -0.264584,-0.635 c -0.291041,-0.714375 -1.42875,-1.74625 -3.042708,-1.74625 -1.084792,0 -2.037292,0.211667 -2.804583,0.635 -1.42875,0.767292 -2.169584,2.248959 -2.169584,4.233334 v 1.613958 c 0,1.005416 -0.47625,1.508125 -1.481666,1.613958 h -0.02646 -0.02646 c -1.005417,-0.07938 -1.481667,-0.582083 -1.481667,-1.613958 v -3.545417 c 0,-1.772708 -0.529166,-2.275416 -2.513541,-2.275416 h -0.582083 v 6.376458 c 0,0.9525 0.238125,1.693333 0.687916,2.196041 0.661458,0.714375 2.06375,1.508125 3.889375,1.508125 h 0.07937 c 0.502708,0 0.9525,-0.07937 1.322917,-0.15875 l 0.07937,-0.02646 c 0.899583,-0.211667 1.42875,-0.529167 1.719791,-0.767292 l 0.07937,-0.05292 c 0.370417,-0.264584 1.349375,-1.27 1.375834,-2.645834 v -2.196041 c 0,-0.846667 0.211666,-2.248958 1.772708,-2.248958 z"
|
|
123
|
+
id="path82610"
|
|
124
|
+
style="fill:#ffffff;fill-opacity:1;stroke-width:0.264583" />
|
|
125
|
+
<path
|
|
126
|
+
d="m 119.58266,71.574431 q 0,1.667428 -1.12741,2.605357 -1.12741,0.928454 -3.24011,0.928454 -0.72003,0 -1.33584,-0.180007 -0.60634,-0.170532 -1.06109,-0.454753 -0.45475,-0.28422 -0.71055,-0.653707 -0.24633,-0.369487 -0.24633,-0.77687 v -1.174779 h 0.0947 q 0.20843,0.18948 0.5495,0.378961 0.34106,0.180006 0.76739,0.322117 0.42633,0.132636 0.89056,0.208428 0.4737,0.07579 0.93793,0.07579 1.8948,0 1.8948,-1.146356 0,-0.227377 -0.0853,-0.388435 -0.0853,-0.170533 -0.32212,-0.303169 -0.22738,-0.142111 -0.65371,-0.246325 -0.42633,-0.104214 -1.10846,-0.208428 -1.66743,-0.227377 -2.47272,-0.900032 -0.80529,-0.672656 -0.80529,-1.875857 0,-0.7295 0.31264,-1.392682 0.32212,-0.663181 0.90003,-1.15583 0.58739,-0.49265 1.40216,-0.77687 0.81477,-0.293695 1.82849,-0.293695 0.89055,0 1.51584,0.208429 0.63476,0.198954 1.04214,0.530545 0.40739,0.322117 0.58739,0.720026 0.18948,0.397909 0.18948,0.767395 v 0.985299 h -0.0947 q -0.40738,-0.407383 -1.23162,-0.68213 -0.82424,-0.28422 -1.76217,-0.28422 -1.19373,0 -1.64848,0.33159 -0.44528,0.331591 -0.44528,0.833714 0,0.189481 0.0758,0.341065 0.0853,0.142111 0.30317,0.265273 0.22738,0.113688 0.63476,0.208428 0.40739,0.09474 1.08004,0.208429 1.65795,0.274747 2.50114,0.994772 0.84319,0.720026 0.84319,1.980071 z"
|
|
127
|
+
id="path9232"
|
|
128
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffffff;stroke-width:0.264583" />
|
|
129
|
+
<path
|
|
130
|
+
d="m 120.63703,64.819453 q 0,-0.388435 0.0379,-0.663182 0.0474,-0.284221 0.13264,-0.511597 0.0853,-0.236851 0.22738,-0.435805 0.15158,-0.208429 0.36001,-0.464227 0.27475,-0.312643 0.58739,-0.511598 0.32212,-0.208428 0.63476,-0.208428 h 0.60634 v 2.368506 h 3.62855 v 1.070564 q 0,0.407383 -0.37896,0.82424 -0.37896,0.416857 -1.17478,0.416857 h -2.07481 v 4.092778 q 0,1.023195 0.42633,1.459 0.42633,0.426331 1.22215,0.426331 1.27899,0 1.87585,-0.369487 h 0.10422 v 0.928454 q 0,0.814766 -0.57792,1.278993 -0.56844,0.464228 -1.7148,0.464228 -1.99902,0 -2.96537,-1.013721 -0.95687,-1.023194 -0.95687,-2.861155 z"
|
|
131
|
+
id="path9234"
|
|
132
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffffff;stroke-width:0.264583" />
|
|
133
|
+
<path
|
|
134
|
+
d="m 134.80207,69.831211 q 0,-1.572688 -0.60634,-2.453772 -0.59686,-0.890558 -1.87586,-0.890558 -1.12741,0 -1.68637,0.833714 -0.55897,0.833714 -0.55897,2.141129 0,1.563214 0.58739,2.444298 0.59686,0.87161 1.8948,0.87161 1.14636,0 1.69585,-0.833714 0.5495,-0.833714 0.5495,-2.112707 z m -7.42764,0 q 0,-1.184253 0.33159,-2.207447 0.3316,-1.032669 0.9853,-1.800065 0.66318,-0.767396 1.62953,-1.212675 0.97583,-0.445279 2.23587,-0.445279 1.18426,0 2.10324,0.435805 0.91898,0.435805 1.54426,1.174779 0.63476,0.7295 0.96635,1.686376 0.33159,0.947402 0.33159,1.999019 0,1.184253 -0.34106,2.216921 -0.34107,1.023195 -0.99477,1.790591 -0.64424,0.757922 -1.62006,1.203201 -0.96635,0.435805 -2.2264,0.435805 -1.18425,0 -2.10323,-0.435805 -0.91898,-0.445279 -1.55374,-1.165305 -0.62528,-0.7295 -0.95688,-1.676902 -0.33159,-0.956877 -0.33159,-1.999019 z"
|
|
135
|
+
id="path9236"
|
|
136
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffffff;stroke-width:0.264583" />
|
|
137
|
+
<path
|
|
138
|
+
d="m 144.42095,66.93216 q -0.29369,-0.113688 -0.65371,-0.208429 -0.36001,-0.09474 -0.86213,-0.09474 -0.87161,0 -1.33584,0.511597 -0.46423,0.511598 -0.46423,1.714799 v 6.016004 h -0.72002 q -0.87161,0 -1.39268,-0.426331 -0.5116,-0.426331 -0.5116,-1.241097 v -4.812804 q 0,-0.77687 0.20843,-1.525317 0.2179,-0.748448 0.68213,-1.307416 0.46423,-0.558967 1.2032,-0.909506 0.73897,-0.350539 1.77164,-0.350539 0.59686,0 1.01372,0.161059 0.41686,0.151584 0.66318,0.397909 0.2558,0.23685 0.36949,0.549493 0.12316,0.303169 0.12316,0.596864 v 0.928454 z"
|
|
139
|
+
id="path9238"
|
|
140
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffffff;stroke-width:0.264583" />
|
|
141
|
+
<path
|
|
142
|
+
d="m 151.2829,67.907984 q 0,-0.795818 -0.54002,-1.184253 -0.53055,-0.388435 -1.44006,-0.388435 -0.46422,0 -0.86213,0.189481 -0.39791,0.180006 -0.69161,0.483175 -0.29369,0.293695 -0.45475,0.701078 -0.16106,0.407383 -0.18,0.852662 l -0.0189,0.350539 h 1.15583 q 0.93793,0 1.51584,-0.05684 0.58739,-0.05684 0.91898,-0.170533 0.34107,-0.123162 0.46423,-0.312643 0.13264,-0.198954 0.13264,-0.464227 z m 2.44429,0.312643 q 0,1.430577 -1.1653,1.989545 -1.16531,0.549493 -3.74224,0.549493 h -1.70532 q 0.15158,0.985299 0.95687,1.572688 0.80529,0.577915 1.9706,0.577915 0.81476,0 1.69585,-0.198954 0.88108,-0.208429 1.50637,-0.786344 h 0.0947 v 0.814766 q 0,0.502123 -0.18948,0.928454 -0.18001,0.426331 -0.62529,0.748448 -0.44528,0.322117 -1.17478,0.502123 -0.7295,0.189481 -1.79059,0.189481 -0.97582,0 -1.90428,-0.369487 -0.92845,-0.369487 -1.64848,-1.061091 -0.72002,-0.691603 -1.15583,-1.657954 -0.4358,-0.96635 -0.4358,-2.169551 0,-1.307415 0.37896,-2.359032 0.37896,-1.06109 1.05162,-1.800064 0.68213,-0.738974 1.62005,-1.127409 0.94741,-0.397909 2.07482,-0.397909 0.81476,0 1.56321,0.284221 0.75792,0.274746 1.33584,0.795818 0.58739,0.521071 0.93792,1.278993 0.35054,0.757922 0.35054,1.69585 z"
|
|
143
|
+
id="path9240"
|
|
144
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffffff;stroke-width:0.264583" />
|
|
145
|
+
</g>
|
|
146
|
+
<style
|
|
147
|
+
type="text/css"
|
|
148
|
+
id="style82598">
|
|
149
|
+
.st0{fill:#939598;}
|
|
150
|
+
.st1{fill:#F26522;stroke:#F26522;stroke-width:1.2;stroke-miterlimit:10;}
|
|
151
|
+
.st2{fill:#58595B;}
|
|
152
|
+
</style>
|
|
153
|
+
</svg>
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
width="124.33179mm"
|
|
6
|
+
height="18.909166mm"
|
|
7
|
+
viewBox="0 0 124.33179 18.909166"
|
|
8
|
+
version="1.1"
|
|
9
|
+
id="svg5"
|
|
10
|
+
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
|
|
11
|
+
sodipodi:docname="simplycode.svg"
|
|
12
|
+
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
13
|
+
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
16
|
+
<sodipodi:namedview
|
|
17
|
+
id="namedview7"
|
|
18
|
+
pagecolor="#ffffff"
|
|
19
|
+
bordercolor="#666666"
|
|
20
|
+
borderopacity="1.0"
|
|
21
|
+
inkscape:pageshadow="2"
|
|
22
|
+
inkscape:pageopacity="0.0"
|
|
23
|
+
inkscape:pagecheckerboard="0"
|
|
24
|
+
inkscape:document-units="mm"
|
|
25
|
+
showgrid="false"
|
|
26
|
+
showguides="true"
|
|
27
|
+
inkscape:guide-bbox="true"
|
|
28
|
+
inkscape:zoom="1.1759259"
|
|
29
|
+
inkscape:cx="228.75591"
|
|
30
|
+
inkscape:cy="-40.393702"
|
|
31
|
+
inkscape:window-width="1846"
|
|
32
|
+
inkscape:window-height="1016"
|
|
33
|
+
inkscape:window-x="0"
|
|
34
|
+
inkscape:window-y="0"
|
|
35
|
+
inkscape:window-maximized="1"
|
|
36
|
+
inkscape:current-layer="layer1">
|
|
37
|
+
<sodipodi:guide
|
|
38
|
+
position="-148.04873,-18.400606"
|
|
39
|
+
orientation="0,-1"
|
|
40
|
+
id="guide70804" />
|
|
41
|
+
<sodipodi:guide
|
|
42
|
+
position="-4.9782943,0.36357475"
|
|
43
|
+
orientation="0,-1"
|
|
44
|
+
id="guide82674" />
|
|
45
|
+
<sodipodi:guide
|
|
46
|
+
position="65.701449,0.36358475"
|
|
47
|
+
orientation="0,-1"
|
|
48
|
+
id="guide82676" />
|
|
49
|
+
<sodipodi:guide
|
|
50
|
+
position="16.509361,3.7502514"
|
|
51
|
+
orientation="0,-1"
|
|
52
|
+
id="guide9050" />
|
|
53
|
+
</sodipodi:namedview>
|
|
54
|
+
<defs
|
|
55
|
+
id="defs2">
|
|
56
|
+
<rect
|
|
57
|
+
x="82.255661"
|
|
58
|
+
y="400.61517"
|
|
59
|
+
width="454.06372"
|
|
60
|
+
height="89.364418"
|
|
61
|
+
id="rect49632" />
|
|
62
|
+
<rect
|
|
63
|
+
x="81.544785"
|
|
64
|
+
y="293.79773"
|
|
65
|
+
width="455.18652"
|
|
66
|
+
height="111.85999"
|
|
67
|
+
id="rect4851" />
|
|
68
|
+
</defs>
|
|
69
|
+
<g
|
|
70
|
+
inkscape:label="Layer 1"
|
|
71
|
+
inkscape:groupmode="layer"
|
|
72
|
+
id="layer1"
|
|
73
|
+
transform="translate(-49.048723,-59.890219)">
|
|
74
|
+
<text
|
|
75
|
+
xml:space="preserve"
|
|
76
|
+
transform="scale(0.26458333)"
|
|
77
|
+
id="text49630"
|
|
78
|
+
style="font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;white-space:pre;shape-inside:url(#rect49632);fill:#000000;fill-opacity:1;stroke:none" />
|
|
79
|
+
<polygon
|
|
80
|
+
class="st2"
|
|
81
|
+
points=""
|
|
82
|
+
id="polygon82612"
|
|
83
|
+
transform="matrix(0.26458333,0,0,0.26458333,46.111848,58.003136)" />
|
|
84
|
+
<text
|
|
85
|
+
xml:space="preserve"
|
|
86
|
+
style="font-style:normal;font-weight:normal;font-size:10.5833px;line-height:1.25;font-family:sans-serif;letter-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:0.264583"
|
|
87
|
+
x="109.47266"
|
|
88
|
+
y="48.617371"
|
|
89
|
+
id="text1328"><tspan
|
|
90
|
+
sodipodi:role="line"
|
|
91
|
+
id="tspan1326"
|
|
92
|
+
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:19.4028px;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;stroke-width:0.264583"
|
|
93
|
+
x="109.47266"
|
|
94
|
+
y="48.617371" /></text>
|
|
95
|
+
<path
|
|
96
|
+
class="st0"
|
|
97
|
+
d="m 55.636216,69.069551 c -2.143125,-0.343958 -2.831042,-0.502708 -2.831042,-1.27 0,-0.529166 0.396875,-1.190625 2.2225,-1.190625 1.190625,0 2.301875,0.238125 3.122084,0.687917 V 66.71476 c 0,-1.42875 -1.322917,-2.275417 -3.571875,-2.275417 -2.248959,0 -4.656667,1.137708 -4.656667,3.624792 0,1.534583 0.846667,2.328333 2.725208,2.592916 2.196042,0.3175 2.831042,0.529167 2.831042,1.349375 0,1.190625 -1.561042,1.190625 -2.169583,1.190625 -1.455209,0 -2.460625,-0.343958 -3.122084,-0.740833 v 0.529166 c 0,0.582084 0,2.354792 3.730625,2.354792 2.778125,0 4.497917,-1.349375 4.497917,-3.4925 0,-1.905 -1.508125,-2.566458 -2.778125,-2.778125 z"
|
|
98
|
+
id="path82600"
|
|
99
|
+
style="fill:#c9c9cc;fill-opacity:1;stroke-width:0.264583" />
|
|
100
|
+
<path
|
|
101
|
+
class="st0"
|
|
102
|
+
d="m 89.211835,64.465801 c -3.677703,0 -5.714994,2.090209 -5.714994,5.87375 v 5.794375 c 0,1.613958 0.582083,2.301875 1.957916,2.301875 h 1.031878 v -5.027083 c 0,0 0.0265,0.396875 0.635,1.11125 0.71437,0.740833 1.34937,0.873125 2.51354,0.873125 2.88396,0 4.84187,-2.275417 4.84187,-5.688542 0,-3.095625 -2.16958,-5.23875 -5.26521,-5.23875 z m 0.21167,8.307917 c -1.29646,0 -2.51354,-0.820209 -2.51354,-3.148542 0,-1.613958 1.05833,-2.619375 2.11667,-2.619375 1.56104,0 2.51354,0.714375 2.51354,3.069167 -0.0265,1.640416 -0.92604,2.69875 -2.11667,2.69875 z"
|
|
103
|
+
id="path82602"
|
|
104
|
+
style="fill:#c9c9cc;fill-opacity:1;stroke-width:0.264583" />
|
|
105
|
+
<path
|
|
106
|
+
class="st0"
|
|
107
|
+
d="m 98.736845,71.212676 v -7.9375 c 0,-1.613958 -0.60855,-2.275416 -2.11667,-2.275416 h -0.97896 v 10.768541 c 0,2.54 1.74625,3.439583 3.41312,3.439583 0.635,0 2.116665,-0.132291 2.116665,-1.402291 v -0.978959 h -0.47625 c -0.846665,0.02646 -1.957905,-0.15875 -1.957905,-1.613958 z"
|
|
108
|
+
id="path82604"
|
|
109
|
+
style="fill:#c9c9cc;fill-opacity:1;stroke-width:0.264583" />
|
|
110
|
+
<path
|
|
111
|
+
class="st0"
|
|
112
|
+
d="m 109.61121,64.783301 h -1.50812 c -0.29104,2.090209 -1.08479,4.894792 -1.905,6.535208 l -0.3175,0.661459 -0.29104,-0.687917 c -0.58209,-1.375833 -1.34938,-3.518958 -1.74625,-5.23875 -0.18521,-0.846666 -1.05834,-1.296458 -1.79917,-1.296458 h -1.56104 c 0.52916,2.831042 2.35479,7.408333 3.91583,9.736666 l 0.10583,0.15875 -0.10583,0.211667 c -0.47625,1.058333 -1.05833,1.481667 -2.14312,1.5875 l -1.32292,0.105833 v 0.608542 c 0,1.137708 1.00542,1.561042 1.87854,1.561042 2.14313,0 2.80458,-0.502709 5.82083,-6.323542 1.21709,-2.354791 2.2225,-5.476875 2.2225,-6.50875 0.0265,-0.502708 -0.10583,-1.11125 -1.24354,-1.11125 z"
|
|
113
|
+
id="path82606"
|
|
114
|
+
style="fill:#c9c9cc;fill-opacity:1;stroke-width:0.264583" />
|
|
115
|
+
<path
|
|
116
|
+
class="st1"
|
|
117
|
+
d="m 61.007257,63.486843 c 0.899584,0 1.640417,-0.687917 1.640417,-1.534583 0,-0.846667 -0.740833,-1.534584 -1.640417,-1.534584 -0.899583,0 -1.640416,0.687917 -1.640416,1.534584 0,0.846666 0.740833,1.534583 1.640416,1.534583 z"
|
|
118
|
+
id="path82608"
|
|
119
|
+
style="fill:#ffcc00;fill-opacity:1;stroke:#ae47ff;stroke-width:0;stroke-miterlimit:10;stroke-opacity:1;stroke-dasharray:none" />
|
|
120
|
+
<path
|
|
121
|
+
class="st0"
|
|
122
|
+
d="m 70.585174,67.111635 c 1.217083,0 1.852083,0.740833 1.852083,2.169583 v 3.915833 c 0,1.402292 0.502709,1.878542 2.010834,1.878542 h 0.978958 v -5.741458 c 0,-1.825625 0.9525,-2.2225 1.772708,-2.2225 1.322917,0 1.931459,0.714375 1.931459,2.275416 v 3.81 c 0,1.217083 0.343958,1.878542 2.116666,1.878542 h 0.978959 v -5.635625 c 0,-3.201458 -1.693334,-4.974167 -4.736042,-4.974167 -1.481667,0 -2.69875,1.084792 -3.148542,1.799167 l -0.370416,0.582083 -0.264584,-0.635 c -0.291041,-0.714375 -1.42875,-1.74625 -3.042708,-1.74625 -1.084792,0 -2.037292,0.211667 -2.804583,0.635 -1.42875,0.767292 -2.169584,2.248959 -2.169584,4.233334 v 1.613958 c 0,1.005416 -0.47625,1.508125 -1.481666,1.613958 h -0.02646 -0.02646 c -1.005417,-0.07938 -1.481667,-0.582083 -1.481667,-1.613958 v -3.545417 c 0,-1.772708 -0.529166,-2.275416 -2.513541,-2.275416 h -0.582083 v 6.376458 c 0,0.9525 0.238125,1.693333 0.687916,2.196041 0.661458,0.714375 2.06375,1.508125 3.889375,1.508125 h 0.07937 c 0.502708,0 0.9525,-0.07937 1.322917,-0.15875 l 0.07937,-0.02646 c 0.899583,-0.211667 1.42875,-0.529167 1.719791,-0.767292 l 0.07937,-0.05292 c 0.370417,-0.264584 1.349375,-1.27 1.375834,-2.645834 v -2.196041 c 0,-0.846667 0.211666,-2.248958 1.772708,-2.248958 z"
|
|
123
|
+
id="path82610"
|
|
124
|
+
style="fill:#c9c9cc;fill-opacity:1;stroke-width:0.264583" />
|
|
125
|
+
<path
|
|
126
|
+
d="m 119.58266,71.574431 q 0,1.667428 -1.12741,2.605357 -1.12741,0.928454 -3.24011,0.928454 -0.72003,0 -1.33584,-0.180007 -0.60634,-0.170532 -1.06109,-0.454753 -0.45475,-0.28422 -0.71055,-0.653707 -0.24633,-0.369487 -0.24633,-0.77687 v -1.174779 h 0.0947 q 0.20843,0.18948 0.5495,0.378961 0.34106,0.180006 0.76739,0.322117 0.42633,0.132636 0.89056,0.208428 0.4737,0.07579 0.93793,0.07579 1.8948,0 1.8948,-1.146356 0,-0.227377 -0.0853,-0.388435 -0.0853,-0.170533 -0.32212,-0.303169 -0.22738,-0.142111 -0.65371,-0.246325 -0.42633,-0.104214 -1.10846,-0.208428 -1.66743,-0.227377 -2.47272,-0.900032 -0.80529,-0.672656 -0.80529,-1.875857 0,-0.7295 0.31264,-1.392682 0.32212,-0.663181 0.90003,-1.15583 0.58739,-0.49265 1.40216,-0.77687 0.81477,-0.293695 1.82849,-0.293695 0.89055,0 1.51584,0.208429 0.63476,0.198954 1.04214,0.530545 0.40739,0.322117 0.58739,0.720026 0.18948,0.397909 0.18948,0.767395 v 0.985299 h -0.0947 q -0.40738,-0.407383 -1.23162,-0.68213 -0.82424,-0.28422 -1.76217,-0.28422 -1.19373,0 -1.64848,0.33159 -0.44528,0.331591 -0.44528,0.833714 0,0.189481 0.0758,0.341065 0.0853,0.142111 0.30317,0.265273 0.22738,0.113688 0.63476,0.208428 0.40739,0.09474 1.08004,0.208429 1.65795,0.274747 2.50114,0.994772 0.84319,0.720026 0.84319,1.980071 z"
|
|
127
|
+
id="path9232"
|
|
128
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffcc00;stroke-width:0.264583" />
|
|
129
|
+
<path
|
|
130
|
+
d="m 120.63703,64.819453 q 0,-0.388435 0.0379,-0.663182 0.0474,-0.284221 0.13264,-0.511597 0.0853,-0.236851 0.22738,-0.435805 0.15158,-0.208429 0.36001,-0.464227 0.27475,-0.312643 0.58739,-0.511598 0.32212,-0.208428 0.63476,-0.208428 h 0.60634 v 2.368506 h 3.62855 v 1.070564 q 0,0.407383 -0.37896,0.82424 -0.37896,0.416857 -1.17478,0.416857 h -2.07481 v 4.092778 q 0,1.023195 0.42633,1.459 0.42633,0.426331 1.22215,0.426331 1.27899,0 1.87585,-0.369487 h 0.10422 v 0.928454 q 0,0.814766 -0.57792,1.278993 -0.56844,0.464228 -1.7148,0.464228 -1.99902,0 -2.96537,-1.013721 -0.95687,-1.023194 -0.95687,-2.861155 z"
|
|
131
|
+
id="path9234"
|
|
132
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffcc00;stroke-width:0.264583" />
|
|
133
|
+
<path
|
|
134
|
+
d="m 134.80207,69.831211 q 0,-1.572688 -0.60634,-2.453772 -0.59686,-0.890558 -1.87586,-0.890558 -1.12741,0 -1.68637,0.833714 -0.55897,0.833714 -0.55897,2.141129 0,1.563214 0.58739,2.444298 0.59686,0.87161 1.8948,0.87161 1.14636,0 1.69585,-0.833714 0.5495,-0.833714 0.5495,-2.112707 z m -7.42764,0 q 0,-1.184253 0.33159,-2.207447 0.3316,-1.032669 0.9853,-1.800065 0.66318,-0.767396 1.62953,-1.212675 0.97583,-0.445279 2.23587,-0.445279 1.18426,0 2.10324,0.435805 0.91898,0.435805 1.54426,1.174779 0.63476,0.7295 0.96635,1.686376 0.33159,0.947402 0.33159,1.999019 0,1.184253 -0.34106,2.216921 -0.34107,1.023195 -0.99477,1.790591 -0.64424,0.757922 -1.62006,1.203201 -0.96635,0.435805 -2.2264,0.435805 -1.18425,0 -2.10323,-0.435805 -0.91898,-0.445279 -1.55374,-1.165305 -0.62528,-0.7295 -0.95688,-1.676902 -0.33159,-0.956877 -0.33159,-1.999019 z"
|
|
135
|
+
id="path9236"
|
|
136
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffcc00;stroke-width:0.264583" />
|
|
137
|
+
<path
|
|
138
|
+
d="m 144.42095,66.93216 q -0.29369,-0.113688 -0.65371,-0.208429 -0.36001,-0.09474 -0.86213,-0.09474 -0.87161,0 -1.33584,0.511597 -0.46423,0.511598 -0.46423,1.714799 v 6.016004 h -0.72002 q -0.87161,0 -1.39268,-0.426331 -0.5116,-0.426331 -0.5116,-1.241097 v -4.812804 q 0,-0.77687 0.20843,-1.525317 0.2179,-0.748448 0.68213,-1.307416 0.46423,-0.558967 1.2032,-0.909506 0.73897,-0.350539 1.77164,-0.350539 0.59686,0 1.01372,0.161059 0.41686,0.151584 0.66318,0.397909 0.2558,0.23685 0.36949,0.549493 0.12316,0.303169 0.12316,0.596864 v 0.928454 z"
|
|
139
|
+
id="path9238"
|
|
140
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffcc00;stroke-width:0.264583" />
|
|
141
|
+
<path
|
|
142
|
+
d="m 151.2829,67.907984 q 0,-0.795818 -0.54002,-1.184253 -0.53055,-0.388435 -1.44006,-0.388435 -0.46422,0 -0.86213,0.189481 -0.39791,0.180006 -0.69161,0.483175 -0.29369,0.293695 -0.45475,0.701078 -0.16106,0.407383 -0.18,0.852662 l -0.0189,0.350539 h 1.15583 q 0.93793,0 1.51584,-0.05684 0.58739,-0.05684 0.91898,-0.170533 0.34107,-0.123162 0.46423,-0.312643 0.13264,-0.198954 0.13264,-0.464227 z m 2.44429,0.312643 q 0,1.430577 -1.1653,1.989545 -1.16531,0.549493 -3.74224,0.549493 h -1.70532 q 0.15158,0.985299 0.95687,1.572688 0.80529,0.577915 1.9706,0.577915 0.81476,0 1.69585,-0.198954 0.88108,-0.208429 1.50637,-0.786344 h 0.0947 v 0.814766 q 0,0.502123 -0.18948,0.928454 -0.18001,0.426331 -0.62529,0.748448 -0.44528,0.322117 -1.17478,0.502123 -0.7295,0.189481 -1.79059,0.189481 -0.97582,0 -1.90428,-0.369487 -0.92845,-0.369487 -1.64848,-1.061091 -0.72002,-0.691603 -1.15583,-1.657954 -0.4358,-0.96635 -0.4358,-2.169551 0,-1.307415 0.37896,-2.359032 0.37896,-1.06109 1.05162,-1.800064 0.68213,-0.738974 1.62005,-1.127409 0.94741,-0.397909 2.07482,-0.397909 0.81476,0 1.56321,0.284221 0.75792,0.274746 1.33584,0.795818 0.58739,0.521071 0.93792,1.278993 0.35054,0.757922 0.35054,1.69585 z"
|
|
143
|
+
id="path9240"
|
|
144
|
+
style="font-size:19.4028px;line-height:1.25;font-family:Cocon-Regular;-inkscape-font-specification:'Cocon-Regular, Normal';fill:#ffcc00;stroke-width:0.264583" />
|
|
145
|
+
</g>
|
|
146
|
+
<style
|
|
147
|
+
type="text/css"
|
|
148
|
+
id="style82598">
|
|
149
|
+
.st0{fill:#939598;}
|
|
150
|
+
.st1{fill:#F26522;stroke:#F26522;stroke-width:1.2;stroke-miterlimit:10;}
|
|
151
|
+
.st2{fill:#58595B;}
|
|
152
|
+
</style>
|
|
153
|
+
</svg>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2017 by Marijn Haverbeke <marijnh@gmail.com> and others
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# CodeMirror
|
|
2
|
+
|
|
3
|
+
[](https://github.com/codemirror/codemirror5/actions)
|
|
4
|
+
[](https://www.npmjs.org/package/codemirror)
|
|
5
|
+
|
|
6
|
+
CodeMirror is a versatile text editor implemented in JavaScript for
|
|
7
|
+
the browser. It is specialized for editing code, and comes with over
|
|
8
|
+
100 language modes and various addons that implement more advanced
|
|
9
|
+
editing functionality. Every language comes with fully-featured code
|
|
10
|
+
and syntax highlighting to help with reading and editing complex code.
|
|
11
|
+
|
|
12
|
+
A rich programming API and a CSS theming system are available for
|
|
13
|
+
customizing CodeMirror to fit your application, and extending it with
|
|
14
|
+
new functionality.
|
|
15
|
+
|
|
16
|
+
You can find more information (and the
|
|
17
|
+
[manual](https://codemirror.net/5/doc/manual.html)) on the [project
|
|
18
|
+
page](https://codemirror.net/5/). For questions and discussion, use the
|
|
19
|
+
[discussion forum](https://discuss.codemirror.net/).
|
|
20
|
+
|
|
21
|
+
See
|
|
22
|
+
[CONTRIBUTING.md](https://github.com/codemirror/CodeMirror/blob/master/CONTRIBUTING.md)
|
|
23
|
+
for contributing guidelines.
|
|
24
|
+
|
|
25
|
+
The CodeMirror community aims to be welcoming to everybody. We use the
|
|
26
|
+
[Contributor Covenant
|
|
27
|
+
(1.1)](http://contributor-covenant.org/version/1/1/0/) as our code of
|
|
28
|
+
conduct.
|
|
29
|
+
|
|
30
|
+
### Installation
|
|
31
|
+
|
|
32
|
+
Either get the [zip file](https://codemirror.net/5/codemirror.zip) with
|
|
33
|
+
the latest version, or make sure you have [Node](https://nodejs.org/)
|
|
34
|
+
installed and run:
|
|
35
|
+
|
|
36
|
+
npm install codemirror
|
|
37
|
+
|
|
38
|
+
**NOTE**: This is the source repository for the library, and not the
|
|
39
|
+
distribution channel. Cloning it is not the recommended way to install
|
|
40
|
+
the library, and will in fact not work unless you also run the build
|
|
41
|
+
step.
|
|
42
|
+
|
|
43
|
+
### Quickstart
|
|
44
|
+
|
|
45
|
+
To build the project, make sure you have Node.js installed (at least version 6)
|
|
46
|
+
and then `npm install`. To run, just open `index.html` in your
|
|
47
|
+
browser (you don't need to run a webserver). Run the tests with `npm test`.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
|
2
|
+
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
|
|
3
|
+
|
|
4
|
+
// Depends on jshint.js from https://github.com/jshint/jshint
|
|
5
|
+
|
|
6
|
+
(function(mod) {
|
|
7
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
|
8
|
+
mod(require("../../lib/codemirror"));
|
|
9
|
+
else if (typeof define == "function" && define.amd) // AMD
|
|
10
|
+
define(["../../lib/codemirror"], mod);
|
|
11
|
+
else // Plain browser env
|
|
12
|
+
mod(CodeMirror);
|
|
13
|
+
})(function(CodeMirror) {
|
|
14
|
+
"use strict";
|
|
15
|
+
// declare global: JSHINT
|
|
16
|
+
|
|
17
|
+
function validator(text, options) {
|
|
18
|
+
if (!window.JSHINT) {
|
|
19
|
+
if (window.console) {
|
|
20
|
+
window.console.error("Error: window.JSHINT not defined, CodeMirror JavaScript linting cannot run.");
|
|
21
|
+
}
|
|
22
|
+
return [];
|
|
23
|
+
}
|
|
24
|
+
if (!options.indent) // JSHint error.character actually is a column index, this fixes underlining on lines using tabs for indentation
|
|
25
|
+
options.indent = 1; // JSHint default value is 4
|
|
26
|
+
JSHINT(text, options, options.globals);
|
|
27
|
+
var errors = JSHINT.data().errors, result = [];
|
|
28
|
+
if (errors) parseErrors(errors, result);
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
CodeMirror.registerHelper("lint", "javascript", validator);
|
|
33
|
+
|
|
34
|
+
function parseErrors(errors, output) {
|
|
35
|
+
for ( var i = 0; i < errors.length; i++) {
|
|
36
|
+
var error = errors[i];
|
|
37
|
+
if (error) {
|
|
38
|
+
if (error.line <= 0) {
|
|
39
|
+
if (window.console) {
|
|
40
|
+
window.console.warn("Cannot display JSHint error (invalid line " + error.line + ")", error);
|
|
41
|
+
}
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var start = error.character - 1, end = start + 1;
|
|
46
|
+
if (error.evidence) {
|
|
47
|
+
var index = error.evidence.substring(start).search(/.\b/);
|
|
48
|
+
if (index > -1) {
|
|
49
|
+
end += index;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Convert to format expected by validation service
|
|
54
|
+
var hint = {
|
|
55
|
+
message: error.reason,
|
|
56
|
+
severity: error.code ? (error.code.startsWith('W') ? "warning" : "error") : "error",
|
|
57
|
+
from: CodeMirror.Pos(error.line - 1, start),
|
|
58
|
+
to: CodeMirror.Pos(error.line - 1, end)
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
output.push(hint);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/* The lint marker gutter */
|
|
2
|
+
.CodeMirror-lint-markers {
|
|
3
|
+
width: 16px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.CodeMirror-lint-tooltip {
|
|
7
|
+
background-color: #ffd;
|
|
8
|
+
border: 1px solid black;
|
|
9
|
+
border-radius: 4px 4px 4px 4px;
|
|
10
|
+
color: black;
|
|
11
|
+
font-family: monospace;
|
|
12
|
+
font-size: 10pt;
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
padding: 2px 5px;
|
|
15
|
+
position: fixed;
|
|
16
|
+
white-space: pre;
|
|
17
|
+
white-space: pre-wrap;
|
|
18
|
+
z-index: 100;
|
|
19
|
+
max-width: 600px;
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transition: opacity .4s;
|
|
22
|
+
-moz-transition: opacity .4s;
|
|
23
|
+
-webkit-transition: opacity .4s;
|
|
24
|
+
-o-transition: opacity .4s;
|
|
25
|
+
-ms-transition: opacity .4s;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.CodeMirror-lint-mark {
|
|
29
|
+
background-position: left bottom;
|
|
30
|
+
background-repeat: repeat-x;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.CodeMirror-lint-mark-warning {
|
|
34
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII=");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.CodeMirror-lint-mark-error {
|
|
38
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg==");
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.CodeMirror-lint-marker {
|
|
42
|
+
background-position: center center;
|
|
43
|
+
background-repeat: no-repeat;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
display: inline-block;
|
|
46
|
+
height: 16px;
|
|
47
|
+
width: 16px;
|
|
48
|
+
vertical-align: middle;
|
|
49
|
+
position: relative;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.CodeMirror-lint-message {
|
|
53
|
+
padding-left: 18px;
|
|
54
|
+
background-position: top left;
|
|
55
|
+
background-repeat: no-repeat;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.CodeMirror-lint-marker-warning, .CodeMirror-lint-message-warning {
|
|
59
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII=");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.CodeMirror-lint-marker-error, .CodeMirror-lint-message-error {
|
|
63
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII=");
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.CodeMirror-lint-marker-multiple {
|
|
67
|
+
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC");
|
|
68
|
+
background-repeat: no-repeat;
|
|
69
|
+
background-position: right bottom;
|
|
70
|
+
width: 100%; height: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.CodeMirror-lint-line-error {
|
|
74
|
+
background-color: rgba(183, 76, 81, 0.08);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.CodeMirror-lint-line-warning {
|
|
78
|
+
background-color: rgba(255, 211, 0, 0.1);
|
|
79
|
+
}
|