ninjs 0.14.1 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (191) hide show
  1. data/.bundle/config +2 -2
  2. data/.travis.yml +1 -0
  3. data/Gemfile +1 -0
  4. data/Gemfile.lock +13 -11
  5. data/README.md +108 -93
  6. data/Rakefile +17 -7
  7. data/VERSION +1 -1
  8. data/bin/ninjs +24 -22
  9. data/lib/ninjs/command.rb +32 -21
  10. data/lib/ninjs/configuration.rb +35 -53
  11. data/lib/ninjs/generator.rb +6 -6
  12. data/lib/ninjs/notification.rb +5 -5
  13. data/lib/ninjs/project.rb +31 -25
  14. data/ninjs.gemspec +18 -142
  15. data/repository/ninjs/core/application.js +13 -24
  16. data/repository/ninjs/core/dom.js +87 -68
  17. data/repository/ninjs/core/existence.js +44 -105
  18. data/repository/ninjs/core/extend.js +11 -32
  19. data/repository/ninjs/core/module.js +53 -107
  20. data/repository/ninjs/core/nin.js +5 -7
  21. data/repository/ninjs/tests/extension.test.js +0 -10
  22. data/repository/ninjs/tests/index.html +19 -20
  23. data/repository/ninjs/tests/module.test.js +52 -56
  24. data/repository/ninjs/utilities/array.js +8 -8
  25. data/repository/ninjs/utilities/cookie.js +59 -0
  26. data/repository/ninjs/utilities/css.js +7 -7
  27. data/repository/ninjs/utilities/number.js +2 -2
  28. data/repository/ninjs/utilities/string.js +26 -26
  29. data/spec/cli_spec.rb +90 -88
  30. data/spec/command_spec.rb +104 -137
  31. data/spec/configuration_spec.rb +23 -37
  32. data/spec/fixtures/_global.module.js +9 -0
  33. data/spec/fixtures/compressed.myapp.js +23 -44
  34. data/spec/fixtures/foo.elements.js +1 -1
  35. data/spec/fixtures/foo.js +5 -5
  36. data/spec/fixtures/foo.model.js +1 -1
  37. data/spec/fixtures/foo.module.js +3 -3
  38. data/spec/fixtures/hello.elements.js +1 -1
  39. data/spec/fixtures/hello.js +5 -5
  40. data/spec/fixtures/hello.model.js +1 -1
  41. data/spec/fixtures/hello.module.js +3 -3
  42. data/spec/fixtures/myapp.initial.js +198 -329
  43. data/spec/fixtures/myapp.js +285 -357
  44. data/spec/fixtures/mymodule.alias.module.js +2 -2
  45. data/spec/fixtures/mymodule.dependencies.module.js +2 -2
  46. data/spec/fixtures/mymodule.elements.js +1 -1
  47. data/spec/fixtures/mymodule.model.js +1 -1
  48. data/spec/fixtures/mymodule.module.js +2 -2
  49. data/spec/fixtures/mymodule.module_alias.module.js +10 -0
  50. data/spec/fixtures/new.ninjs.conf +2 -0
  51. data/spec/fixtures/nin.js +198 -329
  52. data/spec/fixtures/ninjs.conf +2 -0
  53. data/spec/fixtures/updated.ninjs.conf +8 -0
  54. data/spec/generator_spec.rb +37 -26
  55. data/spec/ninjs_spec.rb +6 -6
  56. data/spec/project_spec.rb +229 -221
  57. data/spec/spec_helper.rb +3 -1
  58. data/spec/testspec_spec.rb +7 -0
  59. metadata +28 -145
  60. data/repository/json2.js +0 -482
  61. data/repository/modernizr/1.5.js +0 -28
  62. data/repository/modernizr/latest.js +0 -1
  63. data/repository/ninjs/docs/Data/ClassHierarchy.nd +0 -0
  64. data/repository/ninjs/docs/Data/ConfigFileInfo.nd +0 -0
  65. data/repository/ninjs/docs/Data/FileInfo.nd +0 -16
  66. data/repository/ninjs/docs/Data/ImageFileInfo.nd +0 -0
  67. data/repository/ninjs/docs/Data/ImageReferenceTable.nd +0 -0
  68. data/repository/ninjs/docs/Data/IndexInfo.nd +0 -0
  69. data/repository/ninjs/docs/Data/PreviousMenuState.nd +0 -0
  70. data/repository/ninjs/docs/Data/PreviousSettings.nd +0 -0
  71. data/repository/ninjs/docs/Data/SymbolTable.nd +0 -0
  72. data/repository/ninjs/docs/Languages.txt +0 -113
  73. data/repository/ninjs/docs/Menu.txt +0 -63
  74. data/repository/ninjs/docs/Topics.txt +0 -81
  75. data/repository/ninjs/docs/files/core/application-js.html +0 -44
  76. data/repository/ninjs/docs/files/core/existence-js.html +0 -60
  77. data/repository/ninjs/docs/files/core/extend-js.html +0 -55
  78. data/repository/ninjs/docs/files/core/module-js.html +0 -80
  79. data/repository/ninjs/docs/files/core/nin-js.html +0 -38
  80. data/repository/ninjs/docs/index.html +0 -1
  81. data/repository/ninjs/docs/index/Classes.html +0 -33
  82. data/repository/ninjs/docs/index/Files.html +0 -45
  83. data/repository/ninjs/docs/index/Functions.html +0 -65
  84. data/repository/ninjs/docs/index/General.html +0 -85
  85. data/repository/ninjs/docs/index/Variables.html +0 -45
  86. data/repository/ninjs/docs/javascript/main.js +0 -841
  87. data/repository/ninjs/docs/javascript/prettify.js +0 -1526
  88. data/repository/ninjs/docs/javascript/searchdata.js +0 -152
  89. data/repository/ninjs/docs/search/ClassesN.html +0 -20
  90. data/repository/ninjs/docs/search/FilesA.html +0 -20
  91. data/repository/ninjs/docs/search/FilesE.html +0 -20
  92. data/repository/ninjs/docs/search/FilesM.html +0 -20
  93. data/repository/ninjs/docs/search/FilesN.html +0 -20
  94. data/repository/ninjs/docs/search/FunctionsA.html +0 -20
  95. data/repository/ninjs/docs/search/FunctionsC.html +0 -20
  96. data/repository/ninjs/docs/search/FunctionsE.html +0 -20
  97. data/repository/ninjs/docs/search/FunctionsI.html +0 -20
  98. data/repository/ninjs/docs/search/FunctionsM.html +0 -20
  99. data/repository/ninjs/docs/search/FunctionsR.html +0 -20
  100. data/repository/ninjs/docs/search/FunctionsS.html +0 -20
  101. data/repository/ninjs/docs/search/FunctionsSymbols.html +0 -20
  102. data/repository/ninjs/docs/search/FunctionsU.html +0 -20
  103. data/repository/ninjs/docs/search/GeneralA.html +0 -20
  104. data/repository/ninjs/docs/search/GeneralC.html +0 -20
  105. data/repository/ninjs/docs/search/GeneralD.html +0 -20
  106. data/repository/ninjs/docs/search/GeneralE.html +0 -20
  107. data/repository/ninjs/docs/search/GeneralF.html +0 -20
  108. data/repository/ninjs/docs/search/GeneralI.html +0 -20
  109. data/repository/ninjs/docs/search/GeneralM.html +0 -20
  110. data/repository/ninjs/docs/search/GeneralN.html +0 -20
  111. data/repository/ninjs/docs/search/GeneralR.html +0 -20
  112. data/repository/ninjs/docs/search/GeneralS.html +0 -20
  113. data/repository/ninjs/docs/search/GeneralSymbols.html +0 -20
  114. data/repository/ninjs/docs/search/GeneralT.html +0 -20
  115. data/repository/ninjs/docs/search/GeneralU.html +0 -20
  116. data/repository/ninjs/docs/search/GeneralV.html +0 -20
  117. data/repository/ninjs/docs/search/NoResults.html +0 -15
  118. data/repository/ninjs/docs/search/VariablesD.html +0 -20
  119. data/repository/ninjs/docs/search/VariablesN.html +0 -20
  120. data/repository/ninjs/docs/search/VariablesR.html +0 -20
  121. data/repository/ninjs/docs/search/VariablesT.html +0 -20
  122. data/repository/ninjs/docs/styles/main.css +0 -828
  123. data/repository/nullconsole.js +0 -7
  124. data/repository/qunit/assets/css/qunit.css +0 -196
  125. data/repository/qunit/qunit.js +0 -1374
  126. data/repository/selectivizr/1.0.js +0 -5
  127. data/repository/selectivizr/latest.js +0 -1
  128. data/repository/syntaxhighlighter/all.js +0 -11
  129. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCore.css +0 -226
  130. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDefault.css +0 -328
  131. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreDjango.css +0 -331
  132. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEclipse.css +0 -339
  133. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreEmacs.css +0 -324
  134. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreFadeToGrey.css +0 -328
  135. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMDUltra.css +0 -324
  136. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreMidnight.css +0 -324
  137. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shCoreRDark.css +0 -324
  138. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDefault.css +0 -117
  139. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeDjango.css +0 -120
  140. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEclipse.css +0 -128
  141. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeEmacs.css +0 -113
  142. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeFadeToGrey.css +0 -117
  143. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMDUltra.css +0 -113
  144. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeMidnight.css +0 -113
  145. data/repository/syntaxhighlighter/assets/css/syntaxhighlighter/shThemeRDark.css +0 -113
  146. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCore.scss +0 -216
  147. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDefault.scss +0 -2
  148. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreDjango.scss +0 -2
  149. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEclipse.scss +0 -2
  150. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreEmacs.scss +0 -2
  151. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreFadeToGrey.scss +0 -2
  152. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMDUltra.scss +0 -2
  153. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreMidnight.scss +0 -2
  154. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shCoreRDark.scss +0 -2
  155. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDefault.scss +0 -7
  156. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeDjango.scss +0 -36
  157. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEclipse.scss +0 -48
  158. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeEmacs.scss +0 -32
  159. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeFadeToGrey.scss +0 -36
  160. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMDUltra.scss +0 -32
  161. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeMidnight.scss +0 -32
  162. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_shThemeRDark.scss +0 -32
  163. data/repository/syntaxhighlighter/assets/scss/syntaxhighlighter/_theme_template.scss +0 -120
  164. data/repository/syntaxhighlighter/shAutoloader.js +0 -17
  165. data/repository/syntaxhighlighter/shBrushAS3.js +0 -59
  166. data/repository/syntaxhighlighter/shBrushAppleScript.js +0 -75
  167. data/repository/syntaxhighlighter/shBrushBash.js +0 -59
  168. data/repository/syntaxhighlighter/shBrushCSharp.js +0 -65
  169. data/repository/syntaxhighlighter/shBrushColdFusion.js +0 -100
  170. data/repository/syntaxhighlighter/shBrushCpp.js +0 -97
  171. data/repository/syntaxhighlighter/shBrushCss.js +0 -91
  172. data/repository/syntaxhighlighter/shBrushDelphi.js +0 -55
  173. data/repository/syntaxhighlighter/shBrushDiff.js +0 -41
  174. data/repository/syntaxhighlighter/shBrushErlang.js +0 -52
  175. data/repository/syntaxhighlighter/shBrushGroovy.js +0 -67
  176. data/repository/syntaxhighlighter/shBrushJScript.js +0 -52
  177. data/repository/syntaxhighlighter/shBrushJava.js +0 -57
  178. data/repository/syntaxhighlighter/shBrushJavaFX.js +0 -58
  179. data/repository/syntaxhighlighter/shBrushPerl.js +0 -72
  180. data/repository/syntaxhighlighter/shBrushPhp.js +0 -88
  181. data/repository/syntaxhighlighter/shBrushPlain.js +0 -33
  182. data/repository/syntaxhighlighter/shBrushPowerShell.js +0 -74
  183. data/repository/syntaxhighlighter/shBrushPython.js +0 -64
  184. data/repository/syntaxhighlighter/shBrushRuby.js +0 -55
  185. data/repository/syntaxhighlighter/shBrushSass.js +0 -94
  186. data/repository/syntaxhighlighter/shBrushScala.js +0 -51
  187. data/repository/syntaxhighlighter/shBrushSql.js +0 -66
  188. data/repository/syntaxhighlighter/shBrushVb.js +0 -56
  189. data/repository/syntaxhighlighter/shBrushXml.js +0 -69
  190. data/repository/syntaxhighlighter/shCore.js +0 -17
  191. data/repository/syntaxhighlighter/shLegacy.js +0 -17
@@ -1,2 +0,0 @@
1
- @import "shCore.scss";
2
- @import "shThemeEclipse.scss";
@@ -1,2 +0,0 @@
1
- @import "shCore.scss";
2
- @import "shThemeEmacs.scss";
@@ -1,2 +0,0 @@
1
- @import "shCore.scss";
2
- @import "shThemeFadeToGrey.scss";
@@ -1,2 +0,0 @@
1
- @import "shCore.scss";
2
- @import "shThemeMDUltra.scss";
@@ -1,2 +0,0 @@
1
- @import "shCore.scss";
2
- @import "shThemeMidnight.scss";
@@ -1,2 +0,0 @@
1
- @import "shCore.scss";
2
- @import "shThemeRDark.scss";
@@ -1,7 +0,0 @@
1
- // Default Syntax Highlighter theme.
2
-
3
- @import "_theme_template.scss";
4
-
5
- .syntaxhighlighter {
6
- .keyword { font-weight: bold !important; }
7
- }
@@ -1,36 +0,0 @@
1
- // Django SyntaxHighlighter theme
2
-
3
- $background: #0a2b1d !default;
4
-
5
- $line_highlighted_background: #233729 !default;
6
- $line_highlighted_number: white !default;
7
-
8
- $gutter_text: #497958 !default;
9
- $gutter_border_color: #41a83e !default;
10
-
11
- $toolbar_collapsed_a: #96dd3b !default;
12
- $toolbar_collapsed_a_hover: #fff !default;
13
- $toolbar_collapsed_background: #000 !default;
14
-
15
- $toolbar_a: #fff !default;
16
- $toolbar_a_hover: #ffe862 !default;
17
-
18
- $code_plain: #f8f8f8 !default;
19
- $code_comments: #336442 !default;
20
- $code_string: #9df39f !default;
21
- $code_keyword: #96dd3b !default;
22
- $code_preprocessor: #91bb9e !default;
23
- $code_variable: #ffaa3e !default;
24
- $code_value: #f7e741 !default;
25
- $code_functions: #ffaa3e !default;
26
- $code_constants: #e0e8ff !default;
27
- $code_color1: #eb939a !default;
28
- $code_color2: #91bb9e !default;
29
- $code_color3: #edef7d !default;
30
-
31
- @import "_theme_template.scss";
32
-
33
- .syntaxhighlighter {
34
- .comments { font-style: italic !important; }
35
- .keyword { font-weight: bold !important; }
36
- }
@@ -1,48 +0,0 @@
1
- // Eclipse IDE SyntaxHighlighter color theme
2
- // (C) Code-House
3
- // :http//blog.code-house.org/2009/10/xml-i-adnotacje-kod-ogolnego-przeznaczenia-i-jpa/
4
-
5
- $background: #fff !default;
6
-
7
- $line_highlighted_background: #c3defe !default;
8
- $line_highlighted_number: #fff !default;
9
-
10
- $gutter_text: #787878 !default;
11
- $gutter_border_color: #d4d0c8 !default;
12
-
13
- $toolbar_collapsed_a: #3f5fbf !default;
14
- $toolbar_collapsed_a_hover: #aa7700 !default;
15
- $toolbar_collapsed_background: #fff !default;
16
-
17
- $toolbar_a: #a0a0a0 !default;
18
- $toolbar_a_hover: red !default;
19
-
20
- $code_plain: black !default;
21
- $code_comments: #3f5fbf !default;
22
- $code_string: #2a00ff !default;
23
- $code_keyword: #7f0055 !default;
24
- $code_preprocessor: #646464 !default;
25
- $code_variable: #aa7700 !default;
26
- $code_value: #009900 !default;
27
- $code_functions: #ff1493 !default;
28
- $code_constants: #0066cc !default;
29
- $code_color1: gray !default;
30
- $code_color2: #ff1493 !default;
31
- $code_color3: red !default;
32
-
33
- @import "_theme_template.scss";
34
-
35
- .syntaxhighlighter {
36
- .keyword { font-weight: bold !important; }
37
-
38
- .xml {
39
- .keyword {
40
- color: #3f7f7f !important;
41
- font-weight: normal !important; }
42
- .color1, .color1 a { color: #7f007f !important; }
43
- .string {
44
- font-style: italic !important;
45
- color: #2a00ff !important;
46
- }
47
- }
48
- }
@@ -1,32 +0,0 @@
1
- // Emacs SyntaxHighlighter theme based on theme by Joshua Emmons
2
- // http://www.skia.net/
3
-
4
- $background: black !default;
5
-
6
- $line_highlighted_background: #2A3133 !default;
7
- $line_highlighted_number: white !default;
8
-
9
- $gutter_text: #d3d3d3 !default;
10
- $gutter_border_color: #990000 !default;
11
-
12
- $toolbar_collapsed_a: #ebdb8d !default;
13
- $toolbar_collapsed_a_hover: #ff7d27 !default;
14
- $toolbar_collapsed_background: black !default;
15
-
16
- $toolbar_a: #fff !default;
17
- $toolbar_a_hover: #9ccff4 !default;
18
-
19
- $code_plain: #d3d3d3 !default;
20
- $code_comments: #ff7d27 !default;
21
- $code_string: #ff9e7b !default;
22
- $code_keyword: aqua !default;
23
- $code_preprocessor: #aec4de !default;
24
- $code_variable: #ffaa3e !default;
25
- $code_value: #009900 !default;
26
- $code_functions: #81cef9 !default;
27
- $code_constants: #ff9e7b !default;
28
- $code_color1: #ebdb8d !default;
29
- $code_color2: #ff7d27 !default;
30
- $code_color3: #aec4de !default;
31
-
32
- @import "_theme_template.scss";
@@ -1,36 +0,0 @@
1
- // Fade to Grey SyntaxHighlighter theme based on theme by Brasten Sager
2
- // :http//www.ibrasten.com/
3
-
4
- $background: #121212 !default;
5
-
6
- $line_highlighted_background: #2C2C29 !default;
7
- $line_highlighted_number: white !default;
8
-
9
- $gutter_text: #afafaf !default;
10
- $gutter_border_color: #3185b9 !default;
11
-
12
- $toolbar_collapsed_a: #3185b9 !default;
13
- $toolbar_collapsed_a_hover: #d01d33 !default;
14
- $toolbar_collapsed_background: black !default;
15
-
16
- $toolbar_a: #fff !default;
17
- $toolbar_a_hover: #96daff !default;
18
-
19
- $code_plain: white !default;
20
- $code_comments: #696854 !default;
21
- $code_string: #e3e658 !default;
22
- $code_keyword: #d01d33 !default;
23
- $code_preprocessor: #435a5f !default;
24
- $code_variable: #898989 !default;
25
- $code_value: #009900 !default;
26
- $code_functions: #aaaaaa !default;
27
- $code_constants: #96daff !default;
28
- $code_color1: #ffc074 !default;
29
- $code_color2: #4a8cdb !default;
30
- $code_color3: #96daff !default;
31
-
32
- @import "_theme_template.scss";
33
-
34
- .syntaxhighlighter {
35
- .functions { font-weight: bold !important; }
36
- }
@@ -1,32 +0,0 @@
1
- // MDUltra SyntaxHighlighter theme based on Midnight Theme
2
- // http://www.mddev.co.uk/
3
-
4
- $background: #222222 !default;
5
-
6
- $line_highlighted_background: #253e5a !default;
7
- $line_highlighted_number: white !default;
8
-
9
- $gutter_text: #38566f !default;
10
- $gutter_border_color: #435a5f !default;
11
-
12
- $toolbar_collapsed_a: #428bdd !default;
13
- $toolbar_collapsed_a_hover: lime !default;
14
- $toolbar_collapsed_background: black !default;
15
-
16
- $toolbar_a: #aaaaff !default;
17
- $toolbar_a_hover: #9ccff4 !default;
18
-
19
- $code_plain: lime !default;
20
- $code_comments: #428bdd !default;
21
- $code_string: lime !default;
22
- $code_keyword: #aaaaff !default;
23
- $code_preprocessor: #8aa6c1 !default;
24
- $code_variable: aqua !default;
25
- $code_value: #f7e741 !default;
26
- $code_functions: #ff8000 !default;
27
- $code_constants: yellow !default;
28
- $code_color1: red !default;
29
- $code_color2: yellow !default;
30
- $code_color3: #ffaa3e !default;
31
-
32
- @import "_theme_template.scss";
@@ -1,32 +0,0 @@
1
- // Midnight SyntaxHighlighter theme based on theme by J.D. Myers
2
- // http://webdesign.lsnjd.com/
3
-
4
- $background: #0f192a !default;
5
-
6
- $line_highlighted_background: #253e5a !default;
7
- $line_highlighted_number: #38566f !default;
8
-
9
- $gutter_text: #afafaf !default;
10
- $gutter_border_color: #435a5f !default;
11
-
12
- $toolbar_collapsed_a: #428bdd !default;
13
- $toolbar_collapsed_a_hover: #1dc116 !default;
14
- $toolbar_collapsed_background: #000 !default;
15
-
16
- $toolbar_a: #D1EDFF !default;
17
- $toolbar_a_hover: #8aa6c1 !default;
18
-
19
- $code_plain: #d1edff !default;
20
- $code_comments: #428bdd !default;
21
- $code_string: #1dc116 !default;
22
- $code_keyword: #b43d3d !default;
23
- $code_preprocessor: #8aa6c1 !default;
24
- $code_variable: #ffaa3e !default;
25
- $code_value: #f7e741 !default;
26
- $code_functions: #ffaa3e !default;
27
- $code_constants: #e0e8ff !default;
28
- $code_color1: #f8bb00 !default;
29
- $code_color2: white !default;
30
- $code_color3: #ffaa3e !default;
31
-
32
- @import "_theme_template.scss";
@@ -1,32 +0,0 @@
1
- // RDark SyntaxHighlighter theme based on theme by Radu Dineiu
2
- // http://www.vim.org/scripts/script.php?script_id=1732
3
-
4
- $background: #1b2426 !default;
5
-
6
- $line_highlighted_background: #323E41 !default;
7
- $line_highlighted_number: #b9bdb6 !default;
8
-
9
- $gutter_text: #afafaf !default;
10
- $gutter_border_color: #435a5f !default;
11
-
12
- $toolbar_collapsed_a: #5ba1cf !default;
13
- $toolbar_collapsed_a_hover: #5ce638 !default;
14
- $toolbar_collapsed_background: #000 !default;
15
-
16
- $toolbar_a: #fff !default;
17
- $toolbar_a_hover: #e0e8ff !default;
18
-
19
- $code_plain: #b9bdb6 !default;
20
- $code_comments: #878a85 !default;
21
- $code_string: #5ce638 !default;
22
- $code_keyword: #5ba1cf !default;
23
- $code_preprocessor: #435a5f !default;
24
- $code_variable: #ffaa3e !default;
25
- $code_value: #009900 !default;
26
- $code_functions: #ffaa3e !default;
27
- $code_constants: #e0e8ff !default;
28
- $code_color1: #e0e8ff !default;
29
- $code_color2: white !default;
30
- $code_color3: #ffaa3e !default;
31
-
32
- @import "_theme_template.scss";
@@ -1,120 +0,0 @@
1
- $background: white !default;
2
-
3
- $line_alt1_background: $background !default;
4
- $line_alt2_background: $background !default;
5
-
6
- $line_highlighted_background: #e0e0e0 !default;
7
- $line_highlighted_number: black !default;
8
-
9
- $gutter_text: #afafaf !default;
10
- $gutter_border_color: #6ce26c !default;
11
- $gutter_border: 3px solid $gutter_border_color !default;
12
-
13
- $toolbar_collapsed_a: #00f !default;
14
- $toolbar_collapsed_a_hover: #f00 !default;
15
- $toolbar_collapsed_background: #fff !default;
16
- $toolbar_collapsed_border: 1px solid $gutter_border_color !default;
17
-
18
- $toolbar_a: #fff !default;
19
- $toolbar_a_hover: #000 !default;
20
- $toolbar_background: $gutter_border_color !default;
21
- $toolbar_border: none !default;
22
-
23
- $code_plain: black !default;
24
- $code_comments: #008200 !default;
25
- $code_string: blue !default;
26
- $code_keyword: #006699 !default;
27
- $code_preprocessor: gray !default;
28
- $code_variable: #aa7700 !default;
29
- $code_value: #009900 !default;
30
- $code_functions: #ff1493 !default;
31
- $code_constants: #0066cc !default;
32
- $code_script: $code_keyword !default;
33
- $code_script_background: none !default;
34
- $code_color1: gray !default;
35
- $code_color2: #ff1493 !default;
36
- $code_color3: red !default;
37
-
38
- $caption_color: $code_plain !default;
39
-
40
- // Interface elements.
41
- .syntaxhighlighter {
42
- background-color: $background !important;
43
-
44
- // Highlighed line number
45
- .line {
46
- &.alt1 { background-color: $line_alt1_background !important; }
47
- &.alt2 { background-color: $line_alt2_background !important; }
48
-
49
- // Highlighed line
50
- &.highlighted {
51
- &.alt1, &.alt2 { background-color: $line_highlighted_background !important; }
52
- &.number { color: $line_highlighted_number !important; }
53
- }
54
- }
55
-
56
- table {
57
- caption {
58
- color: $caption_color !important;
59
- }
60
- }
61
-
62
- // Add border to the lines
63
- .gutter {
64
- color: $gutter_text !important;
65
- .line {
66
- border-right: $gutter_border !important;
67
-
68
- &.highlighted {
69
- background-color: $gutter_border_color !important;
70
- color: $background !important;
71
- }
72
- }
73
- }
74
-
75
- &.printing .line .content { border: none !important; }
76
-
77
- &.collapsed {
78
- overflow: visible !important;
79
-
80
- .toolbar {
81
- color: $toolbar_collapsed_a !important;
82
- background: $toolbar_collapsed_background !important;
83
- border: $toolbar_collapsed_border !important;
84
-
85
- a {
86
- color: $toolbar_collapsed_a !important;
87
- &:hover { color: $toolbar_collapsed_a_hover !important; }
88
- }
89
- }
90
- }
91
-
92
- .toolbar {
93
- color: $toolbar_a !important;
94
- background: $toolbar_background !important;
95
- border: $toolbar_border !important;
96
- a {
97
- color: $toolbar_a !important;
98
- &:hover { color: $toolbar_a_hover !important; }
99
- }
100
- }
101
-
102
- // Actual syntax highlighter colors.
103
- .plain, .plain a { color: $code_plain !important; }
104
- .comments, .comments a { color: $code_comments !important; }
105
- .string, .string a { color: $code_string !important; }
106
- .keyword { color: $code_keyword !important; }
107
- .preprocessor { color: $code_preprocessor !important; }
108
- .variable { color: $code_variable !important; }
109
- .value { color: $code_value !important; }
110
- .functions { color: $code_functions !important; }
111
- .constants { color: $code_constants !important; }
112
- .script {
113
- font-weight: bold !important;
114
- color: $code_script !important;
115
- background-color: $code_script_background !important;
116
- }
117
- .color1, .color1 a { color: $code_color1 !important; }
118
- .color2, .color2 a { color: $code_color2 !important; }
119
- .color3, .color3 a { color: $code_color3 !important; }
120
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d<c.9;d++)i[c[d]]=a}2 o(c){1 a=r.H("J"),d=3;a.K=c;a.M="L/t";a.G="t";a.u=a.v=2(){6(!d&&(!8.7||8.7=="F"||8.7=="z")){d=q;e[c]=q;a:{4(1 p y e)6(e[p]==3)B a;j&&5.C(k)}a.u=a.v=x;a.D.O(a)}};r.N.R(a)}1 f=Q,l=h.P(),i={},e={},j=3,k=x,b;5.T=2(c){k=c;j=q};4(b=0;b<f.9;b++){1 m=f[b].w?f[b]:f[b].S(/\\s+/),g=m.w();n(m,g)}4(b=0;b<l.9;b++)6(g=i[l[b].E.A]){e[g]=3;o(g)}}})();',56,56,'|var|function|false|for|SyntaxHighlighter|if|readyState|this|length|||||||||||||||||true|document||javascript|onload|onreadystatechange|pop|null|in|complete|brush|break|highlight|parentNode|params|loaded|language|createElement|autoloader|script|src|text|type|body|removeChild|findElements|arguments|appendChild|split|all'.split('|'),0,{}))
@@ -1,59 +0,0 @@
1
- /**
2
- * SyntaxHighlighter
3
- * http://alexgorbatchev.com/SyntaxHighlighter
4
- *
5
- * SyntaxHighlighter is donationware. If you are using it, please donate.
6
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
7
- *
8
- * @version
9
- * 3.0.83 (July 02 2010)
10
- *
11
- * @copyright
12
- * Copyright (C) 2004-2010 Alex Gorbatchev.
13
- *
14
- * @license
15
- * Dual licensed under the MIT and GPL licenses.
16
- */
17
- ;(function()
18
- {
19
- // CommonJS
20
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
21
-
22
- function Brush()
23
- {
24
- // Created by Peter Atoria @ http://iAtoria.com
25
-
26
- var inits = 'class interface function package';
27
-
28
- var keywords = '-Infinity ...rest Array as AS3 Boolean break case catch const continue Date decodeURI ' +
29
- 'decodeURIComponent default delete do dynamic each else encodeURI encodeURIComponent escape ' +
30
- 'extends false final finally flash_proxy for get if implements import in include Infinity ' +
31
- 'instanceof int internal is isFinite isNaN isXMLName label namespace NaN native new null ' +
32
- 'Null Number Object object_proxy override parseFloat parseInt private protected public ' +
33
- 'return set static String super switch this throw true try typeof uint undefined unescape ' +
34
- 'use void while with'
35
- ;
36
-
37
- this.regexList = [
38
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
39
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
40
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
41
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
42
- { regex: /\b([\d]+(\.[\d]+)?|0x[a-f0-9]+)\b/gi, css: 'value' }, // numbers
43
- { regex: new RegExp(this.getKeywords(inits), 'gm'), css: 'color3' }, // initializations
44
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
45
- { regex: new RegExp('var', 'gm'), css: 'variable' }, // variable
46
- { regex: new RegExp('trace', 'gm'), css: 'color1' } // trace
47
- ];
48
-
49
- this.forHtmlScript(SyntaxHighlighter.regexLib.scriptScriptTags);
50
- };
51
-
52
- Brush.prototype = new SyntaxHighlighter.Highlighter();
53
- Brush.aliases = ['actionscript3', 'as3'];
54
-
55
- SyntaxHighlighter.brushes.AS3 = Brush;
56
-
57
- // CommonJS
58
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
59
- })();