spell 0.1.0 → 0.8.0

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.
Files changed (53) hide show
  1. package/README.md +35 -136
  2. package/package.json +24 -21
  3. package/.gitignore +0 -4
  4. package/.travis.yml +0 -6
  5. package/spell.js +0 -338
  6. package/test/css/mocha.css +0 -110
  7. package/test/index.html +0 -34
  8. package/test/lib/JSONStream/.gitignore +0 -3
  9. package/test/lib/JSONStream/bench.js +0 -35
  10. package/test/lib/JSONStream/examples/all_docs.js +0 -13
  11. package/test/lib/JSONStream/index.js +0 -118
  12. package/test/lib/JSONStream/package.json +0 -13
  13. package/test/lib/JSONStream/readme.markdown +0 -120
  14. package/test/lib/JSONStream/test/fixtures/all_docs_include.json +0 -4245
  15. package/test/lib/JSONStream/test/fixtures/all_npm.json +0 -4030
  16. package/test/lib/JSONStream/test/parsejson.js +0 -25
  17. package/test/lib/JSONStream/test/stringify.js +0 -41
  18. package/test/lib/JSONStream/test/test.js +0 -35
  19. package/test/lib/JSONStream/test/test2.js +0 -29
  20. package/test/lib/JSONStream/test/two-ways.js +0 -41
  21. package/test/lib/jquery-1.7.1.min.js +0 -4
  22. package/test/lib/json2.js +0 -487
  23. package/test/lib/mocha-0.3.6.js +0 -2672
  24. package/test/lib/request/LICENSE +0 -55
  25. package/test/lib/request/README.md +0 -285
  26. package/test/lib/request/main.js +0 -618
  27. package/test/lib/request/mimetypes.js +0 -146
  28. package/test/lib/request/oauth.js +0 -34
  29. package/test/lib/request/package.json +0 -15
  30. package/test/lib/request/tests/googledoodle.png +0 -0
  31. package/test/lib/request/tests/run.sh +0 -6
  32. package/test/lib/request/tests/server.js +0 -57
  33. package/test/lib/request/tests/test-body.js +0 -90
  34. package/test/lib/request/tests/test-cookie.js +0 -29
  35. package/test/lib/request/tests/test-cookiejar.js +0 -90
  36. package/test/lib/request/tests/test-errors.js +0 -30
  37. package/test/lib/request/tests/test-oauth.js +0 -109
  38. package/test/lib/request/tests/test-pipes.js +0 -167
  39. package/test/lib/request/tests/test-proxy.js +0 -39
  40. package/test/lib/request/tests/test-timeout.js +0 -87
  41. package/test/lib/request/uuid.js +0 -19
  42. package/test/lib/request/vendor/cookie/index.js +0 -55
  43. package/test/lib/request/vendor/cookie/jar.js +0 -72
  44. package/test/perf.js +0 -44
  45. package/test/resources/big.js +0 -9
  46. package/test/resources/big.json +0 -29159
  47. package/test/resources/big.txt +0 -128457
  48. package/test/resources/big_browser.js +0 -29159
  49. package/test/resources/npm.js +0 -26
  50. package/test/resources/npm.json +0 -84701
  51. package/test/resources/perf1.js +0 -144
  52. package/test/resources/perf2.js +0 -366
  53. package/test/spell.js +0 -276
package/README.md CHANGED
@@ -1,153 +1,52 @@
1
- # spell
1
+ # Spell
2
2
 
3
- `spell` is a dictionary module for `node.js`. for an explanation of the algorithm, performance, expectations, and techniques used please read [this article][norvig]
3
+ **Programs you can read out loud.**
4
4
 
5
- # installation
5
+ ![A playing card, in Spell: a "card" is a view, with its suit, color, rank, and whether it is a face card](images/card-example.png)
6
6
 
7
- ## node.js
7
+ You just read a program.
8
+ Nobody taught you its syntax, and you could explain it to a friend.
8
9
 
9
- 1. install [npm]
10
- 2. `npm install spell`
11
- 3. `var spell = require('spell');`
10
+ It isn't pseudo-code, and it isn't an AI prompt:
11
+ - a rule-based parser reads Spell the same way every time
12
+ - it compiles to optimized, readable code you can run right on the web.
12
13
 
13
- ## browser
14
+ ## Solitaire in Spell
14
15
 
15
- 1. minimize spell.js
16
- 2. load it into your webpage
16
+ ![Klondike Solitaire in the Spell editor, a card selected in the Inspector](images/solitaire.png)
17
17
 
18
- # usage
18
+ <p align="center"><em>Klondike Solitaire in the Spell editor, a card selected in the Inspector</em></p>
19
19
 
20
- ## basics
20
+ ## All magic, no fuss!
21
21
 
22
- ``` js
23
- // instantiate a new dictionary
24
- var dict = spell();
25
- // load text into dictionary so we can train the dictionary to know
26
- // which words exists and which ones are more frequent than others
27
- dict.load("I am going to the park with Theo today. It's going to be the bomb");
28
- console.log(dict.suggest('thew'));
29
- ```
22
+ ![One parser, several languages in, several targets out](images/languages-and-targets.svg)
30
23
 
31
- normally you would generate the dictionary once and then use it to this code is unlikely and serves for demonstration purposes only. this should log:
24
+ - **A language** that reads like **English** (and **Spanish**): types, properties and actions are sentences.
25
+ - **A compiler** to **JavaScript**, **TypeScript** and **Python**, so what you write runs where you need it.
26
+ - **An editor** where the program, the running app and its output sit side by side.
32
27
 
33
- ``` js
34
- [{"word": "the", "score": 2}, {"word": "theo", "score": 1}]
35
- ```
28
+ ## Spell UI
36
29
 
37
- as there are two occurrences of the word `the` and one of the word `theo`
30
+ A full set of beautifully themed web components (`<ui-button>`, `<ui-menu>`, `<ui-table>` ...)
31
+ that work in any page, with or without the rest of Spell.
38
32
 
39
- feeling lucky?
33
+ ![Spell UI's button page on a phone, a tablet and a laptop, on the Fruity theme](images/spell-ui.png)
40
34
 
41
- ``` js
42
- dict.lucky('thew');
43
- ```
35
+ ## Status
44
36
 
45
- returns:
37
+ Features working now:
38
+ - **Spell**, the language: **English** and **Spanish**, in sentences or an outline.
39
+ - Output to web apps in **JavaScript**, **TypeScript** and **Python**.
40
+ - **Spell Editor**: interactively write, run, and test a program in one window.
41
+ - **Spell UI**: powerful, friendly, fully-themed web components for any page.
42
+ - **VS Code** extension: syntax colouring, errors and help as you type.
43
+ - The `spell` command line: compile, run, test and translate projects.
44
+ - AI-written spells in VSCode, via Claude Code.
46
45
 
47
- ``` js
48
- "the"
49
- ```
46
+ Coming soon:
47
+ - Use AI to write a spell on your computer, tablet or phone.
48
+ - Publish your Spell site on the web.
49
+ - More human languages.
50
+ - More programming languages.
50
51
 
51
- you can also `add` and `remove` words from the dictionary:
52
-
53
- ``` js
54
- dict.remove_word('park');
55
- dict.add_word('nuno');
56
- ```
57
-
58
- and you can `reset` the dictionary, making it empty:
59
-
60
- ``` js
61
- dict.reset();
62
- ```
63
-
64
- if you want to export the dictionary:
65
-
66
- ``` js
67
- dict.export();
68
- ```
69
-
70
- ## advanced
71
-
72
- when loading you can provide a compiled dictionary instead of free form text
73
-
74
- ``` js
75
- dict.load(
76
- { corpus:
77
- { "I" : 1
78
- , "am" : 1
79
- , "going" : 1
80
- , "to" : 2
81
- , "the" : 1
82
- , "park" : 1
83
- }
84
- }
85
- );
86
- ```
87
-
88
- you can also provide options:
89
-
90
- * `reset`, defaults to true, meaning it will reset the dictionary before running load
91
- * `store`, defaults to true, meaning it will store the dictionary after running load
92
- * `after_store`, defaults to empty function, the callback function to run after `store` is done
93
-
94
- e.g. to add text to an existing `dict` you could do:
95
-
96
- ``` js
97
- dict.load("Better yet, chocolate", { reset: false } );
98
- ```
99
-
100
- finally when adding words you can optionally give it a score:
101
-
102
- ``` js
103
- dict.add_word('beer', {score: 100});
104
- ```
105
-
106
- ## storage
107
-
108
- by default `dict` is stored in process (memory) for each dictionary instance you create. however if you feel like storing the dictionary externally, or use a shared dictionary, you can:
109
-
110
- an example using `localStorage`:
111
-
112
- ``` js
113
- var dict = spell(
114
- { "get" : function () {
115
- JSON.parse(window.localStorage.getItem('dict'));
116
- }
117
- , "store" : function (dict,after_store) {
118
- window.localStorage.setItem('dict', JSON.stringify(dict));
119
- }
120
- }
121
- );
122
- ```
123
-
124
- # roadmap
125
-
126
- check [issues]
127
-
128
- # contribute
129
-
130
- everyone is welcome to contribute. patches, bug-fixes, new features
131
-
132
- 1. create an [issue][issues] so the community can comment on your idea
133
- 2. fork `spell`
134
- 3. create a new branch `git checkout -b my_branch`
135
- 4. create tests for the changes you made
136
- 5. make sure you pass both existing and newly inserted tests
137
- 6. commit your changes
138
- 7. push to your branch `git push origin my_branch`
139
- 8. create an pull request
140
-
141
- # meta
142
-
143
- * code: `git clone git://github.com/dscape/spell.git`
144
- * home: <http://github.com/dscape/spell>
145
- * bugs: <http://github.com/dscape/spell/issues>
146
- * build: [![build status](https://secure.travis-ci.org/dscape/spell.png)](http://travis-ci.org/dscape/spell)
147
-
148
- `(oO)--',-` in [caos]
149
-
150
- [npm]: http://npmjs.org
151
- [issues]: http://github.com/dscape/nano/issues
152
- [caos]: http://caos.di.uminho.pt/
153
- [norvig]: http://norvig.com/spell-correct.html
52
+ The first release is on its way, targeting **December 2026**.
package/package.json CHANGED
@@ -1,22 +1,25 @@
1
- { "name" : "spell"
2
- , "description" : "javascript dictionary module for node.js, and the browser"
3
- , "homepage" : "http://github.com/dscape/spell"
4
- , "repository" : "git://github.com/dscape/spell"
5
- , "version" : "0.1.0"
6
- , "author" : "Nuno Job <nunojobpinto@gmail.com> (http://nunojob.com)"
7
- , "contributors" :
8
- [ "Pedro Teixeira <pedro.teixeira@gmail.com> (http://metaduck.com)" ]
9
- , "keywords" :
10
- ["spell", "speller", "dictionary", "nlp", "dict", "spell check"]
11
- , "devDependencies" : { "mocha": "0.3.6", "should": "0.3.2" }
12
- , "main" : "./spell.js"
13
- , "scripts" :
14
- { "test" :
15
- "./node_modules/mocha/bin/mocha --globals _test_spell -r should test/spell.js"
16
- , "perf1" :
17
- "node --prof --trace-opt --trace-bailout --trace-deopt test/perf.js 1"
18
- , "perf2" :
19
- "node --prof --trace-opt --trace-bailout --trace-deopt test/perf.js 2"
1
+ {
2
+ "name": "spell",
3
+ "version": "0.8.0",
4
+ "description": "Spell: write programs in plain English that compile, run and draw. Coming soon.",
5
+ "keywords": [
6
+ "spell",
7
+ "language",
8
+ "compiler",
9
+ "english",
10
+ "web-components",
11
+ "ui"
12
+ ],
13
+ "homepage": "https://github.com/spell-app/spell",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/spell-app/spell.git"
17
+ },
18
+ "license": "MIT",
19
+ "files": [
20
+ "README.md"
21
+ ],
22
+ "bugs": {
23
+ "url": "https://github.com/spell-app/spell/issues"
20
24
  }
21
- , "engines" : { "node": ">=0.3.6" }
22
- }
25
+ }
package/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- .DS_Store
2
- node_modules/
3
- *tmp.*
4
- *.log
package/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- language: "node_js"
2
- node_js:
3
- - 0.6
4
- branches:
5
- only:
6
- - master
package/spell.js DELETED
@@ -1,338 +0,0 @@
1
- /* javascript spell checker based on
2
- * http://norvig.com/spell-correct.html
3
- *
4
- * copyright 2011 nuno job <nunojob.com> (oO)--',--
5
- * pedro teixeira <metaduck.com>
6
- *
7
- * licensed under the apache license, version 2.0 (the "license");
8
- * you may not use this file except in compliance with the license.
9
- * you may obtain a copy of the license at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * unless required by applicable law or agreed to in writing, software
14
- * distributed under the license is distributed on an "as is" basis,
15
- * without warranties or conditions of any kind, either express or implied.
16
- * see the license for the specific language governing permissions and
17
- * limitations under the license.
18
- */
19
- (function () {
20
- var root = this
21
- , previous_spell = root.spell
22
- ;
23
-
24
- /*
25
- * dictionary
26
- *
27
- * creates a dictionary given a place to store
28
- *
29
- * @param {dict_store:object:required}
30
- * object that implements two functions
31
- * `get` to retrieve a stored dictionary from disk/memory
32
- * `store` to store a dictionary from disk/memory
33
- *
34
- * @return {object} a dictionary module
35
- */
36
- var spell = function dictionary(dict_store) {
37
- var dict =
38
- dict_store && typeof dict_store.get === 'function' ? dict_store.get() : {}
39
- , noop = function(){}
40
- , alphabet = "abcdefghijklmnopqrstuvwxyz".split("")
41
- ;
42
-
43
- function spell_store(cb) {
44
- if (dict_store && typeof dict_store.store === 'function') {
45
- dict_store.store(dict, cb);
46
- }
47
- }
48
-
49
- function spell_train(corpus,regex) {
50
- var match, word;
51
- regex = regex || /[a-z]+/g;
52
- corpus = corpus.toLowerCase();
53
- while ((match = regex.exec(corpus))) {
54
- word = match[0];
55
- spell_add_word(word, 1);
56
- }
57
- }
58
-
59
- function spell_edits(word) {
60
- var edits = []
61
- , i
62
- , j
63
- ;
64
- for (i=0; i < word.length; i++) { // deletion
65
- edits.push(word.slice(0, i) + word.slice(i+1));
66
- }
67
- for (i=0; i < word.length-1; i++) { // transposition
68
- edits.push( word.slice(0, i) + word.slice(i+1, i+2) +
69
- word.slice(i, i+1) + word.slice(i+2));
70
- }
71
- for (i=0; i < word.length; i++) { // alteration
72
- for(j in alphabet) {
73
- edits.push(word.slice(0, i) + alphabet[j] + word.slice(i+1));
74
- }
75
- }
76
- for (i=0; i <= word.length; i++) { // insertion
77
- for(j in alphabet) {
78
- edits.push(word.slice(0, i) + alphabet[j] + word.slice(i));
79
- }
80
- }
81
- return edits;
82
- }
83
-
84
- function is_empty(obj) {
85
- for (var key in obj) { if (obj.hasOwnProperty(key)) return false; }
86
- return true;
87
- }
88
-
89
- function spell_order(candidates, min, max) {
90
- var ordered_candidates = []
91
- , current
92
- , i
93
- , w
94
- ;
95
- for(i=max; i>=min; i--) {
96
- if(candidates.hasOwnProperty(i)) {
97
- current = candidates[i];
98
- for (w in current) {
99
- if(current.hasOwnProperty(w)) {
100
- ordered_candidates.push({"word": w, "score": i});
101
- }
102
- }
103
- }
104
- }
105
- return ordered_candidates;
106
- }
107
-
108
- /*
109
- * reset
110
- *
111
- * resets the dictionary.
112
- *
113
- * e.g.
114
- * spell.reset();
115
- *
116
- * @return void
117
- */
118
- function spell_reset() { return spell_load({reset: true}); }
119
-
120
- /*
121
- * load
122
- *
123
- * loads a free form corpus dictionary.
124
- *
125
- * e.g.
126
- * spell.load({'dog': 1, 'cat': 2});
127
- * spell.load('dog cat cat');
128
- *
129
- * @param {opts.corpus:string|object:optional}
130
- * corpus string to initialize to
131
- * @param {opts.reset:boolean:optional}
132
- * whether you want to reset the existing dictionary or just append
133
- * to what already exists
134
- * @param {opts.store:boolean:optional}
135
- * decide if you want to use storage
136
- * @param {opts.after_store:function:optional}
137
- * function to call back when store is done
138
- *
139
- * @return void
140
- */
141
- function spell_load(corpus, opts) {
142
- if ('object' === typeof corpus) { opts = corpus; }
143
- if ('string' === typeof corpus) {
144
- if('object' === typeof opts) {
145
- opts.corpus = corpus;
146
- } else {
147
- opts = {corpus: corpus };
148
- }
149
- }
150
- if ('string' === typeof opts) { opts = {corpus: opts }; }
151
- opts = 'object' === typeof opts ? opts : {};
152
- opts.reset = (opts.reset !== false);
153
- opts.store = (opts.score !== false);
154
- opts.after_store = opts.after_store || noop;
155
- opts.corpus = opts.corpus || '';
156
- if(opts.reset) { dict = {}; }
157
- if('object' === typeof opts.corpus) {
158
- for(var key in opts.corpus) {
159
- spell_add_word(key, {score: opts.corpus[key]});
160
- }
161
- } else { spell_train(opts.corpus); }
162
- if(opts.store) { spell_store(opts.after_store); }
163
- }
164
-
165
- /*
166
- * add word
167
- *
168
- * loads a word into the dictionary
169
- *
170
- * e.g.
171
- * spell.insert_word('dog', 5);
172
- *
173
- * @param {word:string:required}
174
- * the word you want to add
175
- * @param {opts.count:int:optional}
176
- * the number of times the word appears in a text, defaults to one
177
- * @param {opts.store:boolean:optional}
178
- * decide if you want to use storage
179
- * @param {opts.done:function:optional}
180
- * function to call back when store is done
181
- *
182
- * @return void
183
- */
184
- function spell_add_word(word, opts) {
185
- if ('string' === typeof opts || 'number' === typeof opts) {
186
- opts = { score: parseInt(opts, 10) };
187
- }
188
- opts = 'object' === typeof opts ? opts : {};
189
- opts.score = opts.score || 1;
190
- opts.store = opts.store || true;
191
- opts.done = opts.done || noop;
192
- word = word.toLowerCase();
193
- dict[word] =
194
- dict.hasOwnProperty(word) ? dict[word] + opts.score : opts.score;
195
- if(opts.store) { spell_store(opts.done); }
196
- }
197
-
198
- /*
199
- * remove word
200
- *
201
- * removes word from the dictionary
202
- *
203
- * e.g.
204
- * spell.remove_word('dog');
205
- *
206
- * @param {word:string:required}
207
- * the word you want to add
208
- * @param {opts.store:boolean:optional}
209
- * decide if you want to use storage
210
- * @param {opts.done:function:optional}
211
- * function to call back when store is done
212
- *
213
- * @return void
214
- */
215
- function spell_remove_word(word,opts) {
216
- opts = 'object' === typeof opts ? opts : {};
217
- opts.store = (opts.score !== false);
218
- opts.done = opts.done || noop;
219
- if (dict.hasOwnProperty(word)) { delete dict[word]; }
220
- if(opts.store) { spell_store(opts.done); }
221
- }
222
-
223
- /*
224
- * suggest
225
- *
226
- * returns spelling sugestions for a given word
227
- *
228
- * e.g.
229
- * spell.suggest('speling');
230
- *
231
- * @param {word:string:required}
232
- * the word you want to spell check
233
- *
234
- * @return {array} ordered array containing json objects such as
235
- * [{"word": "spelling", "score": 10}]
236
- */
237
- function spell_suggest(word) {
238
- if (dict.hasOwnProperty(word)) {
239
- return [{"word":word, "score": dict[word]}];
240
- }
241
- var edits1 = spell_edits(word)
242
- , candidates = {}
243
- , min
244
- , max
245
- , current_count
246
- ;
247
- function get_candidates(word) {
248
- if(dict.hasOwnProperty(word)) {
249
- current_count = dict[word];
250
- if (candidates.hasOwnProperty(current_count)) {
251
- candidates[current_count][word] = true;
252
- } else {
253
- candidates[current_count] = {};
254
- candidates[current_count][word] = true;
255
- }
256
- max = max ? (max < current_count ? current_count : max) : current_count;
257
- min = min ? (min > current_count ? current_count : min) : current_count;
258
- }
259
- }
260
- edits1.forEach(get_candidates);
261
- if(!is_empty(candidates)) { return spell_order(candidates,min,max); }
262
- edits1.forEach(function(edit1){
263
- spell_edits(edit1).forEach(get_candidates);
264
- });
265
- if(!is_empty(candidates)) { return spell_order(candidates,min,max); }
266
- return []; // no suggestions
267
- }
268
-
269
- /*
270
- * feeling lucky
271
- *
272
- * returns the first spelling correction for a word
273
- *
274
- * e.g.
275
- * spell.lucky('speling');
276
- *
277
- * @param {word:string:required}
278
- * the word you want to spell check
279
- *
280
- * @return {string} the most likely match
281
- */
282
- function spell_lucky(word) {
283
- var suggest = spell_suggest(word)[0];
284
- if(suggest && suggest.hasOwnProperty("word")) {
285
- return suggest.word;
286
- }
287
- return;
288
- }
289
-
290
- /*
291
- * export
292
- *
293
- * exports the dictionary
294
- *
295
- * e.g.
296
- * spell.export();
297
- *
298
- * @return {json} dictionary
299
- */
300
- function spell_export(word) {
301
- return dict;
302
- }
303
-
304
- return { reset : spell_reset
305
- , load : spell_load
306
- , "export" : spell_export
307
- , save : spell_export // alias
308
- , add_word : spell_add_word
309
- , addWord : spell_add_word // alias
310
- , remove_word : spell_remove_word
311
- , removeWord : spell_remove_word // alias
312
- , suggest : spell_suggest
313
- , lucky : spell_lucky
314
- };
315
- };
316
-
317
- spell._previous = previous_spell;
318
- if (typeof exports !== 'undefined') { // nodejs
319
- spell.platform = { name: "node.js", version: process.version };
320
- spell.version = JSON.parse(
321
- require('fs').readFileSync(__dirname + "/package.json")).version;
322
- spell.path = __dirname;
323
- if (typeof module !== 'undefined' && module.exports) {
324
- exports = module.exports = spell;
325
- }
326
- exports.spell = spell;
327
- } else { // browser
328
- // browser detection is possible in the future
329
- spell.platform = { name: "browser" };
330
- spell.version = "0.0.3";
331
- if (typeof define === 'function' && define.amd) {
332
- define('spell', function() { return spell; });
333
- }
334
- else {
335
- root.spell = spell;
336
- }
337
- }
338
- })();
@@ -1,110 +0,0 @@
1
-
2
- body {
3
- font: 20px/1.5 "Helvetica Neue", Helvetica, Aria;, sans-serif;
4
- padding: 60px 50px;
5
- }
6
-
7
- #mocha h1, h2 {
8
- margin: 0;
9
- }
10
-
11
- #mocha h1 {
12
- font-size: 1em;
13
- font-weight: 200;
14
- }
15
-
16
- #mocha .suite .suite h1 {
17
- font-size: .8em;
18
- }
19
-
20
- #mocha h2 {
21
- font-size: 12px;
22
- font-weight: normal;
23
- cursor: pointer;
24
- }
25
-
26
- #mocha .suite {
27
- margin-left: 15px;
28
- }
29
-
30
- #mocha .test {
31
- margin-left: 15px;
32
- }
33
-
34
- #mocha .test.pass::before {
35
- content: '✓';
36
- font-size: 12px;
37
- display: block;
38
- float: left;
39
- margin-right: 5px;
40
- color: #00c41c;
41
- }
42
-
43
- #mocha .test.pending {
44
- color: #0b97c4;
45
- }
46
-
47
- #mocha .test.pending::before {
48
- content: '◦';
49
- color: #0b97c4;
50
- }
51
-
52
- #mocha .test.fail {
53
- color: #c00;
54
- }
55
-
56
- #mocha .test.fail pre {
57
- color: black;
58
- }
59
-
60
- #mocha .test.fail::before {
61
- content: '✖';
62
- font-size: 12px;
63
- display: block;
64
- float: left;
65
- margin-right: 5px;
66
- color: #c00;
67
- }
68
-
69
- #mocha .test pre.error {
70
- color: #c00;
71
- }
72
-
73
- #mocha .test pre {
74
- display: inline-block;
75
- font: 12px/1.5 monaco, monospace;
76
- margin: 5px;
77
- padding: 15px;
78
- border: 1px solid #eee;
79
- border-bottom-color: #ddd;
80
- -webkit-border-radius: 3px;
81
- -webkit-box-shadow: 0 1px 3px #eee;
82
- }
83
-
84
- #error {
85
- color: #c00;
86
- font-size: 1.5 em;
87
- font-weight: 100;
88
- letter-spacing: 1px;
89
- }
90
-
91
- #stats {
92
- position: fixed;
93
- top: 30px;
94
- right: 30px;
95
- font-size: 12px;
96
- margin: 0;
97
- color: #888;
98
- }
99
-
100
- #stats .progress {
101
- margin-bottom: 10px;
102
- }
103
-
104
- #stats em {
105
- color: black;
106
- }
107
-
108
- #stats li {
109
- list-style: none;
110
- }