erp_app 3.0.10 → 3.0.12
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.
- data/lib/erp_app/version.rb +1 -1
- data/public/javascripts/erp_app/codemirror/README.md +1 -1
- data/public/javascripts/erp_app/codemirror/doc/compress.html +11 -3
- data/public/javascripts/erp_app/codemirror/doc/docs.css +16 -5
- data/public/javascripts/erp_app/codemirror/doc/internals.html +6 -3
- data/public/javascripts/erp_app/codemirror/doc/manual.html +103 -41
- data/public/javascripts/erp_app/codemirror/doc/oldrelease.html +43 -5
- data/public/javascripts/erp_app/codemirror/doc/reporting.html +6 -3
- data/public/javascripts/erp_app/codemirror/doc/upgrade_v2.2.html +7 -4
- data/public/javascripts/erp_app/codemirror/keymap/vim.js +10 -6
- data/public/javascripts/erp_app/codemirror/lib/codemirror.css +16 -12
- data/public/javascripts/erp_app/codemirror/lib/codemirror.js +699 -787
- data/public/javascripts/erp_app/codemirror/lib/util/closetag.js +35 -35
- data/public/javascripts/erp_app/codemirror/lib/util/dialog.js +4 -1
- data/public/javascripts/erp_app/codemirror/lib/util/formatting.js +147 -253
- data/public/javascripts/erp_app/codemirror/lib/util/javascript-hint.js +3 -3
- data/public/javascripts/erp_app/codemirror/lib/util/loadmode.js +1 -1
- data/public/javascripts/erp_app/codemirror/lib/util/multiplex.js +5 -9
- data/public/javascripts/erp_app/codemirror/lib/util/overlay.js +3 -1
- data/public/javascripts/erp_app/codemirror/lib/util/pig-hint.js +1 -1
- data/public/javascripts/erp_app/codemirror/lib/util/runmode-standalone.js +90 -0
- data/public/javascripts/erp_app/codemirror/lib/util/runmode.js +8 -4
- data/public/javascripts/erp_app/codemirror/lib/util/search.js +4 -4
- data/public/javascripts/erp_app/codemirror/lib/util/searchcursor.js +13 -11
- data/public/javascripts/erp_app/codemirror/lib/util/simple-hint.js +89 -68
- data/public/javascripts/erp_app/codemirror/lib/util/xml-hint.js +8 -8
- data/public/javascripts/erp_app/codemirror/mode/clike/clike.js +6 -2
- data/public/javascripts/erp_app/codemirror/mode/clike/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/clike/scala.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/clojure/clojure.js +8 -9
- data/public/javascripts/erp_app/codemirror/mode/clojure/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/coffeescript/coffeescript.js +3 -3
- data/public/javascripts/erp_app/codemirror/mode/coffeescript/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/commonlisp/commonlisp.js +101 -0
- data/public/javascripts/erp_app/codemirror/mode/commonlisp/index.html +165 -0
- data/public/javascripts/erp_app/codemirror/mode/css/css.js +339 -15
- data/public/javascripts/erp_app/codemirror/mode/css/index.html +3 -0
- data/public/javascripts/erp_app/codemirror/mode/css/test.js +501 -0
- data/public/javascripts/erp_app/codemirror/mode/diff/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/ecl/ecl.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/erlang/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/gfm/gfm.js +10 -4
- data/public/javascripts/erp_app/codemirror/mode/gfm/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/go/go.js +2 -2
- data/public/javascripts/erp_app/codemirror/mode/go/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/groovy/groovy.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/groovy/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/haskell/haskell.js +2 -2
- data/public/javascripts/erp_app/codemirror/mode/haskell/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/haxe/haxe.js +4 -7
- data/public/javascripts/erp_app/codemirror/mode/haxe/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/htmlembedded/htmlembedded.js +8 -4
- data/public/javascripts/erp_app/codemirror/mode/htmlembedded/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/htmlmixed/htmlmixed.js +12 -13
- data/public/javascripts/erp_app/codemirror/mode/htmlmixed/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/javascript/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/javascript/javascript.js +3 -3
- data/public/javascripts/erp_app/codemirror/mode/jinja2/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/less/index.html +124 -2
- data/public/javascripts/erp_app/codemirror/mode/less/less.js +94 -60
- data/public/javascripts/erp_app/codemirror/mode/lua/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/markdown/index.html +3 -0
- data/public/javascripts/erp_app/codemirror/mode/markdown/markdown.js +134 -20
- data/public/javascripts/erp_app/codemirror/mode/markdown/test.js +1084 -0
- data/public/javascripts/erp_app/codemirror/mode/mysql/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/ntriples/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/ntriples/ntriples.js +4 -4
- data/public/javascripts/erp_app/codemirror/mode/ocaml/ocaml.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/pascal/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/pascal/pascal.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/perl/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/perl/perl.js +71 -71
- data/public/javascripts/erp_app/codemirror/mode/php/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/php/php.js +7 -9
- data/public/javascripts/erp_app/codemirror/mode/pig/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/pig/pig.js +3 -3
- data/public/javascripts/erp_app/codemirror/mode/plsql/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/properties/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/python/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/python/python.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/r/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/rpm/changes/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/rpm/spec/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/rst/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/ruby/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/rust/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/scheme/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/scheme/scheme.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/shell/shell.js +2 -2
- data/public/javascripts/erp_app/codemirror/mode/sieve/LICENSE +23 -0
- data/public/javascripts/erp_app/codemirror/mode/sieve/index.html +81 -0
- data/public/javascripts/erp_app/codemirror/mode/sieve/sieve.js +156 -0
- data/public/javascripts/erp_app/codemirror/mode/smalltalk/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/smalltalk/smalltalk.js +2 -2
- data/public/javascripts/erp_app/codemirror/mode/smarty/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/smarty/smarty.js +2 -2
- data/public/javascripts/erp_app/codemirror/mode/sparql/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/stex/index.html +3 -0
- data/public/javascripts/erp_app/codemirror/mode/stex/stex.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/stex/test.js +343 -0
- data/public/javascripts/erp_app/codemirror/mode/tiddlywiki/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/tiki/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/tiki/tiki.js +4 -11
- data/public/javascripts/erp_app/codemirror/mode/vb/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/vb/vb.js +2 -2
- data/public/javascripts/erp_app/codemirror/mode/vbscript/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/velocity/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/velocity/velocity.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/verilog/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/mode/verilog/verilog.js +1 -1
- data/public/javascripts/erp_app/codemirror/mode/xml/index.html +2 -1
- data/public/javascripts/erp_app/codemirror/mode/xml/xml.js +2 -10
- data/public/javascripts/erp_app/codemirror/mode/xquery/index.html +3 -2
- data/public/javascripts/erp_app/codemirror/mode/xquery/xquery.js +7 -4
- data/public/javascripts/erp_app/codemirror/mode/yaml/index.html +1 -0
- data/public/javascripts/erp_app/codemirror/package.json +15 -23
- data/public/javascripts/erp_app/codemirror/test/driver.js +109 -22
- data/public/javascripts/erp_app/codemirror/test/index.html +129 -16
- data/public/javascripts/erp_app/codemirror/test/lint/lint.js +120 -0
- data/public/javascripts/erp_app/codemirror/test/lint/parse-js.js +1372 -0
- data/public/javascripts/erp_app/codemirror/test/mode_test.css +0 -12
- data/public/javascripts/erp_app/codemirror/test/mode_test.js +66 -27
- data/public/javascripts/erp_app/codemirror/test/phantom_driver.js +30 -0
- data/public/javascripts/erp_app/codemirror/test/run.js +32 -0
- data/public/javascripts/erp_app/codemirror/test/test.js +213 -8
- data/public/javascripts/erp_app/shared/dynamic_editable_grid.js +33 -27
- data/public/javascripts/erp_app/shared/dynamic_editable_grid_loader_panel.js +2 -1
- metadata +15 -3
- data/public/javascripts/erp_app/codemirror/mode/stex/test.html +0 -263
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<title>CodeMirror: sTeX mode</title>
|
|
5
|
-
<link rel="stylesheet" href="../../lib/codemirror.css">
|
|
6
|
-
<script src="../../lib/codemirror.js"></script>
|
|
7
|
-
<script src="stex.js"></script>
|
|
8
|
-
<link rel="stylesheet" href="../../test/mode_test.css">
|
|
9
|
-
<script src="../../test/mode_test.js"></script>
|
|
10
|
-
<link rel="stylesheet" href="../../doc/docs.css">
|
|
11
|
-
</head>
|
|
12
|
-
<body>
|
|
13
|
-
<h1>Tests for the sTeX Mode</h1>
|
|
14
|
-
<h2>Basics</h2>
|
|
15
|
-
<script language="javascript">
|
|
16
|
-
MT = ModeTest;
|
|
17
|
-
|
|
18
|
-
MT.test('foo',
|
|
19
|
-
null, 'foo');
|
|
20
|
-
|
|
21
|
-
MT.test('foo bar',
|
|
22
|
-
null, 'foo',
|
|
23
|
-
null, ' bar');
|
|
24
|
-
</script>
|
|
25
|
-
|
|
26
|
-
<h2>Tags</h2>
|
|
27
|
-
<script language="javascript">
|
|
28
|
-
MT.test('\\begin{document}\n\\end{document}',
|
|
29
|
-
'tag', '\\begin',
|
|
30
|
-
'bracket', '{',
|
|
31
|
-
'atom', 'document',
|
|
32
|
-
'bracket', '}',
|
|
33
|
-
'tag', '\\end',
|
|
34
|
-
'bracket', '{',
|
|
35
|
-
'atom', 'document',
|
|
36
|
-
'bracket', '}');
|
|
37
|
-
|
|
38
|
-
MT.test('\\begin{equation}\n E=mc^2\n\\end{equation}',
|
|
39
|
-
'tag', '\\begin',
|
|
40
|
-
'bracket', '{',
|
|
41
|
-
'atom', 'equation',
|
|
42
|
-
'bracket', '}',
|
|
43
|
-
null, ' ',
|
|
44
|
-
null, ' ',
|
|
45
|
-
null, 'E',
|
|
46
|
-
null, '=mc',
|
|
47
|
-
null, '^2',
|
|
48
|
-
'tag', '\\end',
|
|
49
|
-
'bracket', '{',
|
|
50
|
-
'atom', 'equation',
|
|
51
|
-
'bracket', '}');
|
|
52
|
-
|
|
53
|
-
MT.test('\\begin{module}[]',
|
|
54
|
-
'tag', '\\begin',
|
|
55
|
-
'bracket', '{',
|
|
56
|
-
'atom', 'module',
|
|
57
|
-
'bracket', '}',
|
|
58
|
-
'bracket', '[',
|
|
59
|
-
'bracket', ']');
|
|
60
|
-
|
|
61
|
-
MT.test('\\begin{module}[id=bbt-size]',
|
|
62
|
-
'tag', '\\begin',
|
|
63
|
-
'bracket', '{',
|
|
64
|
-
'atom', 'module',
|
|
65
|
-
'bracket', '}',
|
|
66
|
-
'bracket', '[',
|
|
67
|
-
null, 'id',
|
|
68
|
-
null, '=bbt-size',
|
|
69
|
-
'bracket', ']');
|
|
70
|
-
|
|
71
|
-
MT.test('\\importmodule[b-b-t]{b-b-t}',
|
|
72
|
-
'tag', '\\importmodule',
|
|
73
|
-
'bracket', '[',
|
|
74
|
-
'string', 'b-b-t',
|
|
75
|
-
'bracket', ']',
|
|
76
|
-
'bracket', '{',
|
|
77
|
-
'builtin', 'b-b-t',
|
|
78
|
-
'bracket', '}');
|
|
79
|
-
|
|
80
|
-
MT.test('\\importmodule[\\KWARCslides{dmath/en/cardinality}]{card}',
|
|
81
|
-
'tag', '\\importmodule',
|
|
82
|
-
'bracket', '[',
|
|
83
|
-
'tag', '\\KWARCslides',
|
|
84
|
-
'bracket', '{',
|
|
85
|
-
'string', 'dmath',
|
|
86
|
-
'string', '/en',
|
|
87
|
-
'string', '/cardinality',
|
|
88
|
-
'bracket', '}',
|
|
89
|
-
'bracket', ']',
|
|
90
|
-
'bracket', '{',
|
|
91
|
-
'builtin', 'card',
|
|
92
|
-
'bracket', '}');
|
|
93
|
-
|
|
94
|
-
MT.test('\\PSforPDF[1]{#1}', // could treat #1 specially
|
|
95
|
-
'tag', '\\PSforPDF',
|
|
96
|
-
'bracket', '[',
|
|
97
|
-
'atom', '1',
|
|
98
|
-
'bracket', ']',
|
|
99
|
-
'bracket', '{',
|
|
100
|
-
null, '#1',
|
|
101
|
-
'bracket', '}');
|
|
102
|
-
</script>
|
|
103
|
-
|
|
104
|
-
<h2>Comments</h2>
|
|
105
|
-
<script language="javascript">
|
|
106
|
-
MT.test('% foo',
|
|
107
|
-
'comment', '%',
|
|
108
|
-
'comment', ' foo');
|
|
109
|
-
|
|
110
|
-
MT.test('\\item% bar',
|
|
111
|
-
'tag', '\\item',
|
|
112
|
-
'comment', '%',
|
|
113
|
-
'comment', ' bar');
|
|
114
|
-
|
|
115
|
-
MT.test(' % \\item',
|
|
116
|
-
null, ' ',
|
|
117
|
-
'comment', '%',
|
|
118
|
-
'comment', ' \\item');
|
|
119
|
-
|
|
120
|
-
MT.test('%\nfoo',
|
|
121
|
-
'comment', '%',
|
|
122
|
-
null, 'foo');
|
|
123
|
-
</script>
|
|
124
|
-
|
|
125
|
-
<h2>Errors</h2>
|
|
126
|
-
<script language="javascript">
|
|
127
|
-
MT.test('\\begin}{',
|
|
128
|
-
'tag', '\\begin',
|
|
129
|
-
'error', '}',
|
|
130
|
-
'bracket', '{');
|
|
131
|
-
|
|
132
|
-
MT.test('\\item]{',
|
|
133
|
-
'tag', '\\item',
|
|
134
|
-
'error', ']',
|
|
135
|
-
'bracket', '{');
|
|
136
|
-
|
|
137
|
-
MT.test('% }',
|
|
138
|
-
'comment', '%',
|
|
139
|
-
'comment', ' }');
|
|
140
|
-
</script>
|
|
141
|
-
|
|
142
|
-
<h2>Character Escapes</h2>
|
|
143
|
-
<script language="javascript">
|
|
144
|
-
MT.test('the \\# key',
|
|
145
|
-
null, 'the',
|
|
146
|
-
null, ' ',
|
|
147
|
-
'tag', '\\#',
|
|
148
|
-
null, ' key');
|
|
149
|
-
|
|
150
|
-
MT.test('a \\$5 stetson',
|
|
151
|
-
null, 'a',
|
|
152
|
-
null, ' ',
|
|
153
|
-
'tag', '\\$',
|
|
154
|
-
'atom', 5,
|
|
155
|
-
null, ' stetson');
|
|
156
|
-
|
|
157
|
-
MT.test('100\\% beef',
|
|
158
|
-
'atom', '100',
|
|
159
|
-
'tag', '\\%',
|
|
160
|
-
null, ' beef');
|
|
161
|
-
|
|
162
|
-
MT.test('L \\& N',
|
|
163
|
-
null, 'L',
|
|
164
|
-
null, ' ',
|
|
165
|
-
'tag', '\\&',
|
|
166
|
-
null, ' N');
|
|
167
|
-
|
|
168
|
-
MT.test('foo\\_bar',
|
|
169
|
-
null, 'foo',
|
|
170
|
-
'tag', '\\_',
|
|
171
|
-
null, 'bar');
|
|
172
|
-
|
|
173
|
-
MT.test('\\emph{\\{}',
|
|
174
|
-
'tag', '\\emph',
|
|
175
|
-
'bracket','{',
|
|
176
|
-
'tag', '\\{',
|
|
177
|
-
'bracket','}');
|
|
178
|
-
|
|
179
|
-
MT.test('\\emph{\\}}',
|
|
180
|
-
'tag', '\\emph',
|
|
181
|
-
'bracket','{',
|
|
182
|
-
'tag', '\\}',
|
|
183
|
-
'bracket','}');
|
|
184
|
-
|
|
185
|
-
MT.test('section \\S1',
|
|
186
|
-
null, 'section',
|
|
187
|
-
null, ' ',
|
|
188
|
-
'tag', '\\S',
|
|
189
|
-
'atom', '1');
|
|
190
|
-
|
|
191
|
-
MT.test('para \\P2',
|
|
192
|
-
null, 'para',
|
|
193
|
-
null, ' ',
|
|
194
|
-
'tag', '\\P',
|
|
195
|
-
'atom', '2');
|
|
196
|
-
|
|
197
|
-
</script>
|
|
198
|
-
|
|
199
|
-
<h2>Spacing control</h2>
|
|
200
|
-
|
|
201
|
-
<script language="javascript">
|
|
202
|
-
MT.test('x\\,y', // thinspace
|
|
203
|
-
null, 'x',
|
|
204
|
-
'tag', '\\,',
|
|
205
|
-
null, 'y');
|
|
206
|
-
|
|
207
|
-
MT.test('x\\;y', // thickspace
|
|
208
|
-
null, 'x',
|
|
209
|
-
'tag', '\\;',
|
|
210
|
-
null, 'y');
|
|
211
|
-
|
|
212
|
-
MT.test('x\\!y', // negative thinspace
|
|
213
|
-
null, 'x',
|
|
214
|
-
'tag', '\\!',
|
|
215
|
-
null, 'y');
|
|
216
|
-
|
|
217
|
-
MT.test('J.\\ L.\\ is', // period not ending a sentence
|
|
218
|
-
null, 'J',
|
|
219
|
-
null, '.',
|
|
220
|
-
null, '\\',
|
|
221
|
-
null, ' L',
|
|
222
|
-
null, '.',
|
|
223
|
-
null, '\\',
|
|
224
|
-
null, ' is'); // maybe could be better
|
|
225
|
-
|
|
226
|
-
MT.test('X\\@. The', // period ending a sentence
|
|
227
|
-
null, 'X',
|
|
228
|
-
'tag', '\\@',
|
|
229
|
-
null, '.',
|
|
230
|
-
null, ' The');
|
|
231
|
-
|
|
232
|
-
MT.test('{\\em If\\/} I', // italic correction
|
|
233
|
-
'bracket', '{',
|
|
234
|
-
'tag', '\\em',
|
|
235
|
-
null, ' ',
|
|
236
|
-
null, 'If',
|
|
237
|
-
'tag', '\\/',
|
|
238
|
-
'bracket', '}',
|
|
239
|
-
null, ' ',
|
|
240
|
-
null, 'I');
|
|
241
|
-
|
|
242
|
-
</script>
|
|
243
|
-
|
|
244
|
-
<h2>New Commands</h2>
|
|
245
|
-
|
|
246
|
-
Should be able to define a new command that happens to be a method on Array
|
|
247
|
-
(e.g. <tt>pop</tt>):
|
|
248
|
-
<script language="javascript">
|
|
249
|
-
MT.test('\\newcommand{\\pop}',
|
|
250
|
-
'tag', '\\newcommand',
|
|
251
|
-
'bracket', '{',
|
|
252
|
-
'tag', '\\pop',
|
|
253
|
-
'bracket', '}');
|
|
254
|
-
</script>
|
|
255
|
-
|
|
256
|
-
<h2>Summary</h2>
|
|
257
|
-
<script language="javascript">
|
|
258
|
-
MT.printSummary();
|
|
259
|
-
</script>
|
|
260
|
-
|
|
261
|
-
</body>
|
|
262
|
-
</html>
|
|
263
|
-
|