moovui 0.0.1

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 (116) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +2 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +17 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +1 -0
  7. data/Rakefile +1 -0
  8. data/bourbon/_bourbon-deprecated-upcoming.scss +13 -0
  9. data/bourbon/_bourbon.scss +59 -0
  10. data/bourbon/addons/_button.scss +273 -0
  11. data/bourbon/addons/_clearfix.scss +29 -0
  12. data/bourbon/addons/_font-family.scss +5 -0
  13. data/bourbon/addons/_hide-text.scss +5 -0
  14. data/bourbon/addons/_html5-input-types.scss +56 -0
  15. data/bourbon/addons/_position.scss +42 -0
  16. data/bourbon/addons/_prefixer.scss +49 -0
  17. data/bourbon/addons/_retina-image.scss +32 -0
  18. data/bourbon/addons/_size.scss +44 -0
  19. data/bourbon/addons/_timing-functions.scss +32 -0
  20. data/bourbon/addons/_triangle.scss +45 -0
  21. data/bourbon/css3/_animation.scss +52 -0
  22. data/bourbon/css3/_appearance.scss +3 -0
  23. data/bourbon/css3/_backface-visibility.scss +6 -0
  24. data/bourbon/css3/_background-image.scss +48 -0
  25. data/bourbon/css3/_background.scss +103 -0
  26. data/bourbon/css3/_border-image.scss +55 -0
  27. data/bourbon/css3/_border-radius.scss +22 -0
  28. data/bourbon/css3/_box-sizing.scss +4 -0
  29. data/bourbon/css3/_columns.scss +47 -0
  30. data/bourbon/css3/_flex-box.scss +52 -0
  31. data/bourbon/css3/_font-face.scss +23 -0
  32. data/bourbon/css3/_hidpi-media-query.scss +10 -0
  33. data/bourbon/css3/_image-rendering.scss +13 -0
  34. data/bourbon/css3/_inline-block.scss +8 -0
  35. data/bourbon/css3/_keyframes.scss +43 -0
  36. data/bourbon/css3/_linear-gradient.scss +41 -0
  37. data/bourbon/css3/_perspective.scss +8 -0
  38. data/bourbon/css3/_placeholder.scss +29 -0
  39. data/bourbon/css3/_radial-gradient.scss +44 -0
  40. data/bourbon/css3/_transform.scss +15 -0
  41. data/bourbon/css3/_transition.scss +34 -0
  42. data/bourbon/css3/_user-select.scss +3 -0
  43. data/bourbon/functions/_compact.scss +11 -0
  44. data/bourbon/functions/_flex-grid.scss +39 -0
  45. data/bourbon/functions/_grid-width.scss +13 -0
  46. data/bourbon/functions/_linear-gradient.scss +13 -0
  47. data/bourbon/functions/_modular-scale.scss +40 -0
  48. data/bourbon/functions/_px-to-em.scss +8 -0
  49. data/bourbon/functions/_radial-gradient.scss +23 -0
  50. data/bourbon/functions/_tint-shade.scss +9 -0
  51. data/bourbon/functions/_transition-property-name.scss +22 -0
  52. data/bourbon/helpers/_deprecated-webkit-gradient.scss +39 -0
  53. data/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  54. data/bourbon/helpers/_linear-positions-parser.scss +61 -0
  55. data/bourbon/helpers/_radial-arg-parser.scss +69 -0
  56. data/bourbon/helpers/_radial-positions-parser.scss +18 -0
  57. data/bourbon/helpers/_render-gradients.scss +26 -0
  58. data/bourbon/helpers/_shape-size-stripper.scss +10 -0
  59. data/chosen.jquery.js +1166 -0
  60. data/custom.modernizr.js +4 -0
  61. data/fonts/TSTARPRO-BoldWeb.eot +0 -0
  62. data/fonts/TSTARPRO-BoldWeb.woff +0 -0
  63. data/fonts/entypo.eot +0 -0
  64. data/fonts/entypo.svg +235 -0
  65. data/fonts/entypo.ttf +0 -0
  66. data/fonts/entypo.woff +0 -0
  67. data/foundation.alerts.js +52 -0
  68. data/foundation.dropdown.js +177 -0
  69. data/foundation.js +440 -0
  70. data/foundation.reveal.js +330 -0
  71. data/foundation.section.js +400 -0
  72. data/foundation.tooltips.custom.js +222 -0
  73. data/globals/_base.scss +41 -0
  74. data/globals/_entypo.scss +711 -0
  75. data/globals/_footer.scss +29 -0
  76. data/globals/_header.scss +64 -0
  77. data/globals/_mixins.scss +69 -0
  78. data/globals/_normalize.scss +405 -0
  79. data/globals/_vars.scss +67 -0
  80. data/index.html +1254 -0
  81. data/lib/moovui/version.rb +3 -0
  82. data/lib/moovui.rb +4 -0
  83. data/modules/_accordion.scss +51 -0
  84. data/modules/_btn.scss +130 -0
  85. data/modules/_btnbar.scss +56 -0
  86. data/modules/_code.scss +55 -0
  87. data/modules/_copy.scss +99 -0
  88. data/modules/_definition.scss +34 -0
  89. data/modules/_docs.scss +127 -0
  90. data/modules/_dropdown.scss +32 -0
  91. data/modules/_flex.scss +300 -0
  92. data/modules/_grid.scss +72 -0
  93. data/modules/_input.scss +59 -0
  94. data/modules/_label.scss +6 -0
  95. data/modules/_list.scss +57 -0
  96. data/modules/_media.scss +17 -0
  97. data/modules/_modal.scss +71 -0
  98. data/modules/_notice.scss +111 -0
  99. data/modules/_pane.scss +25 -0
  100. data/modules/_resp.scss +71 -0
  101. data/modules/_select.scss +94 -0
  102. data/modules/_sidebar.scss +117 -0
  103. data/modules/_syntax-highlighter.scss +100 -0
  104. data/modules/_table.scss +63 -0
  105. data/modules/_tooltip.scss +59 -0
  106. data/moovui.gemspec +21 -0
  107. data/moovui.scss +43 -0
  108. data/shBrushBash.js +59 -0
  109. data/shBrushJScript.js +52 -0
  110. data/shBrushNull.js +35 -0
  111. data/shBrushSass.js +90 -0
  112. data/shBrushTritium.js +46 -0
  113. data/shBrushXml.js +69 -0
  114. data/shCore.custom.js +2399 -0
  115. data/shInit.js +14 -0
  116. metadata +187 -0
@@ -0,0 +1,71 @@
1
+ @mixin mobile {
2
+ @media #{$mobile-query} {
3
+ @content;
4
+ }
5
+ }
6
+
7
+ @mixin not-mobile {
8
+ @media #{$not-mobile-query} {
9
+ @content;
10
+ }
11
+ }
12
+
13
+ // meant for portrait mode
14
+ @mixin tablet {
15
+ @media #{$tablet-query} {
16
+ @content;
17
+ }
18
+ }
19
+
20
+ @mixin not-tablet {
21
+ @media #{$not-tablet-query} {
22
+ @content;
23
+ }
24
+ }
25
+
26
+ @mixin desktop {
27
+ @media #{$desktop-query} {
28
+ @content;
29
+ }
30
+ }
31
+
32
+ @mixin not-desktop {
33
+ @media #{$not-desktop-query} {
34
+ @content;
35
+ }
36
+ }
37
+
38
+ @if $moovui-init {
39
+ @include mobile {
40
+ .mobile-omit {
41
+ display: none;
42
+ }
43
+ }
44
+ @include not-mobile {
45
+ .mobile-only {
46
+ display: none;
47
+ }
48
+ }
49
+
50
+ @include tablet {
51
+ .tablet-omit {
52
+ display: none;
53
+ }
54
+ }
55
+ @include not-tablet {
56
+ .tablet-only {
57
+ display: none;
58
+ }
59
+ }
60
+
61
+ @include desktop {
62
+ .desktop-omit {
63
+ display: none;
64
+ }
65
+ }
66
+ @include not-desktop {
67
+ .desktop-only {
68
+ display: none;
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,94 @@
1
+ @if $moovui-init {
2
+ select {
3
+ @include appearance(none);
4
+ @include radius;
5
+ background: #fafafa;
6
+ border: 1px solid #ccc;
7
+ font: 14px/#{$line-height} $font;
8
+ padding: 5px 30px 5px 6px;
9
+ &:not(.autocomplete) + .chosen-container .chosen-search {
10
+ position: absolute;
11
+ left: -9999px;
12
+ }
13
+ }
14
+
15
+ .chosen-container {
16
+ font-size: 14px;
17
+ margin: 0 0 $sp2;
18
+ position: relative;
19
+ vertical-align: middle;
20
+ }
21
+ .chosen-container-active .chosen-single {
22
+ border-color: #aaa;
23
+ }
24
+
25
+ .chosen-single {
26
+ @include radius;
27
+ background: #fafafa;
28
+ border: 1px solid #ccc;
29
+ color: $text-color;
30
+ display: block;
31
+ font-weight: normal;
32
+ line-height: $line-height;
33
+ padding: 5px 6px;
34
+ position: relative;
35
+ div {
36
+ color: #888;
37
+ position: absolute;
38
+ top: 6px;
39
+ right: $sp;
40
+ &:before {
41
+ @include entypo-icon;
42
+ @extend .icon-chevron-down:before;
43
+ }
44
+ }
45
+ }
46
+
47
+ .chosen-drop {
48
+ @include box-shadow(rgba(#000, 0.2) 0 0 3px 1px);
49
+ @include radius;
50
+ background: #fff;
51
+ margin: 4px 0 0;
52
+ overflow: hidden;
53
+ position: absolute;
54
+ top: 100%;
55
+ left: -9999px;
56
+ white-space: nowrap;
57
+ width: 100%;
58
+ z-index: 100;
59
+ }
60
+
61
+ .chosen-with-drop .chosen-drop {
62
+ left: 0;
63
+ }
64
+
65
+ .chosen-search {
66
+ border-bottom: 1px solid #ddd;
67
+ input[type="text"] {
68
+ @include box-shadow(none !important);
69
+ border: 0;
70
+ margin: 0;
71
+ width: 100%;
72
+ }
73
+ }
74
+
75
+ .chosen-results {
76
+ overflow-x: hidden;
77
+ overflow-y: auto;
78
+ position: relative;
79
+ max-height: 140px;
80
+ li {
81
+ display: none;
82
+ padding: 2px 21px 2px 6px;
83
+ white-space: nowrap;
84
+ }
85
+ .active-result {
86
+ cursor: pointer;
87
+ display: list-item;
88
+ }
89
+ .highlighted {
90
+ background: #aaa;
91
+ color: #fff;
92
+ }
93
+ }
94
+ }
@@ -0,0 +1,117 @@
1
+ @if $moovui-init {
2
+ [data-section="vertical-tabs"] {
3
+ display: block;
4
+ position: relative;
5
+ > section {
6
+ padding-left: 20%;
7
+ &:not(.active) [data-section-content] {
8
+ overflow: hidden;
9
+ position: absolute;
10
+ visibility: hidden;
11
+ height: 0;
12
+ }
13
+ }
14
+ .active [data-section-title]:not(:hover) {
15
+ color: inherit;
16
+ }
17
+ [data-section-title] {
18
+ padding: 5px $sp3 5px $sp;
19
+ position: absolute;
20
+ top: 0;
21
+ left: 0;
22
+ width: 20%;
23
+ &:before {
24
+ @extend .icon-pencil:before;
25
+ @include entypo-icon;
26
+ color: $lightgray;
27
+ float: right;
28
+ margin-right: -20px;
29
+ }
30
+ &:hover {
31
+ @include radius;
32
+ background: $lightgray;
33
+ color: #fff;
34
+ &:before {
35
+ color: #fff;
36
+ }
37
+ }
38
+ }
39
+ [data-section-content] {
40
+ padding-left: $sp2;
41
+ }
42
+ }
43
+ }
44
+
45
+ @mixin doc-sidebar {
46
+ @include radius;
47
+ color: #7c8899;
48
+ font-size: 12px;
49
+ overflow: hidden;
50
+ width: 20%;
51
+ [data-section-title], a {
52
+ margin: 0 0 1px;
53
+ padding: 5px $sp;
54
+ }
55
+ [data-section-title]:after {
56
+ @include entypo-icon;
57
+ @extend .icon-plus:before;
58
+ float: right;
59
+ font-size: 12px;
60
+ opacity: 0.5;
61
+ font-weight: normal;
62
+ }
63
+ .active > [data-section-title]:after {
64
+ @extend .icon-minus:before;
65
+ }
66
+ > section {
67
+ > [data-section-title] {
68
+ background: #bdc4cb;
69
+ font-weight: bold;
70
+ }
71
+ &.active > [data-section-title] {
72
+ background: #7c8899;
73
+ color: #fff;
74
+ }
75
+ }
76
+ > section > ul > li > a, ul [data-section-title] {
77
+ background: #eff0f0;
78
+ font-weight: bold;
79
+ padding: 5px $sp 5px 28px;
80
+ position: relative;
81
+ &:before {
82
+ content: "\2022";
83
+ font-size: 16px;
84
+ margin: -1px 0 0 0;
85
+ opacity: 0.1;
86
+ position: absolute;
87
+ left: 10px;
88
+ }
89
+ }
90
+ a {
91
+ background: #fff;
92
+ display: block;
93
+ padding-left: 38px;
94
+ position: relative;
95
+ &:before {
96
+ content: "\2022\2022";
97
+ font-size: 16px;
98
+ margin: -1px 0 0 0;
99
+ opacity: 0.1;
100
+ position: absolute;
101
+ left: 10px;
102
+ }
103
+ &.active:before {
104
+ opacity: 0.8;
105
+ }
106
+ &[target="_blank"]:after {
107
+ @include entypo-icon;
108
+ @extend .icon-popup:before;
109
+ float: right;
110
+ opacity: 0.5;
111
+ }
112
+ }
113
+ }
114
+
115
+ .#{$moovui-prefix}doc-sidebar {
116
+ @include doc-sidebar;
117
+ }
@@ -0,0 +1,100 @@
1
+ @if $moovui-init {
2
+ .syntaxhighlighter-wrapper {
3
+ @include radius;
4
+ background: #555;
5
+ color: #f0f0f0;
6
+ font: 13px/20px $code-font;
7
+ margin: 5px 0 $sp2;
8
+ overflow: hidden;
9
+ position: relative;
10
+ white-space: pre;
11
+ }
12
+ .syntaxhighlighter {
13
+ background: none;
14
+ display: block;
15
+ margin: 0;
16
+ overflow: auto;
17
+ &:before {
18
+ color: #fff;
19
+ content: attr(data-lang);
20
+ font-family: $font;
21
+ font-size: 9px;
22
+ font-weight: bold;
23
+ letter-spacing: 1px;
24
+ position: absolute;
25
+ right: 3px;
26
+ top: 0;
27
+ text-transform: uppercase;
28
+ }
29
+ table {
30
+ background: none;
31
+ margin: 0;
32
+ }
33
+ td {
34
+ border: 0;
35
+ }
36
+ a {
37
+ color: inherit;
38
+ font: inherit;
39
+ }
40
+ .container {
41
+ @include border-radius(0 0 $radius 0);
42
+ padding: $sp;
43
+ }
44
+ .gutter {
45
+ background: #777;
46
+ color: #fff;
47
+ padding: $sp 6px;
48
+ position: absolute;
49
+ text-align: right;
50
+ width: 35px;
51
+ }
52
+ .code {
53
+ padding: 0;
54
+ width: 100%;
55
+ }
56
+ .gutter + .code {
57
+ padding-left: 35px;
58
+ }
59
+ .comments {
60
+ color: #999;
61
+ font-style: italic;
62
+ }
63
+ .string {
64
+ color: tint($green, 25%);
65
+ }
66
+ .keyword {
67
+ color: #ccc;
68
+ }
69
+ .variable {
70
+ color: tint($yellow, 25%);
71
+ }
72
+ .regex {
73
+ color: tint($orange, 25%);
74
+ }
75
+ .statements {
76
+ color: tint($red, 25%);
77
+ }
78
+ .symbol, .preprocessor {
79
+ color: tint($blue, 25%);
80
+ }
81
+ code {
82
+ background: none;
83
+ border: 0;
84
+ color: #eee;
85
+ margin: 0;
86
+ padding: 0;
87
+ }
88
+
89
+ [data-tooltip] {
90
+ @include radius;
91
+ background: tint($gray, 10%);
92
+ padding: 1px 2px;
93
+ color: #fff;
94
+ }
95
+ }
96
+ pre[data-lang] {
97
+ line-height: 20px;
98
+ padding-left: 46px;
99
+ }
100
+ }
@@ -0,0 +1,63 @@
1
+ @if $moovui-init {
2
+ table {
3
+ @include radius;
4
+ background: $palegray;
5
+ width: 100%;
6
+ margin: 0 0 $sp;
7
+ border-collapse: separate;
8
+ border-spacing: 0;
9
+
10
+ &.no-borders {
11
+ margin: 0;
12
+ background: none;
13
+ th, td {
14
+ border: 0;
15
+ padding: 0;
16
+ @include border-radius(0);
17
+ }
18
+ }
19
+ }
20
+
21
+ td, th {
22
+ padding: 6px $sp;
23
+ border: 1px solid $lightgray;
24
+ border-top: 0;
25
+ &:not(:first-child) {
26
+ border-left: 0;
27
+ }
28
+ &:not(:last-child) {
29
+ border-right: 0;
30
+ }
31
+ }
32
+
33
+ th {
34
+ text-align: left;
35
+ }
36
+
37
+ thead {
38
+ color: rgba(#000, 0.5);
39
+ font-size: 11px;
40
+ font-weight: bold;
41
+ text-align: right;
42
+ text-transform: uppercase;
43
+ text-align: left;
44
+ white-space: nowrap;
45
+ th, td {
46
+ border-top: 1px solid $lightgray;
47
+ }
48
+ td:first-child, th:first-child {
49
+ @include border-radius($radius 0 0 0);
50
+ }
51
+ td:last-child, th:last-child {
52
+ @include border-radius(0 $radius 0 0);
53
+ }
54
+ }
55
+ tr:last-child {
56
+ td:first-child {
57
+ @include border-radius(0 0 0 $radius);
58
+ }
59
+ td:last-child {
60
+ @include border-radius(0 0 $radius 0);
61
+ }
62
+ }
63
+ }
@@ -0,0 +1,59 @@
1
+ // copy :focus style
2
+ .#{$moovui-prefix}btn[data-tooltip]:empty:active {
3
+ @include box-shadow(rgba(#000, 0.1) 0 1px);
4
+ background: tint($darkgray, 15%);
5
+ border-color: transparent;
6
+ }
7
+
8
+ @if $moovui-init {
9
+ .tooltip {
10
+ @include radius;
11
+ background: rgba(#000, 0.7);
12
+ color: #fff;
13
+ display: none;
14
+ font-size: 14px;
15
+ line-height: 20px;
16
+ padding: 6px $sp;
17
+ position: absolute;
18
+ left: 50%;
19
+ max-width: 85%;
20
+ width: 100%;
21
+ z-index: 999;
22
+ > .nub {
23
+ border: solid 5px;
24
+ border-color: transparent transparent #000 transparent;
25
+ display: block;
26
+ opacity: 0.7;
27
+ position: absolute;
28
+ top: -10px;
29
+ left: 5px;
30
+ width: 0;
31
+ height: 0;
32
+ }
33
+ &.tip-top > .nub {
34
+ border-color: #000 transparent transparent transparent;
35
+ top: auto;
36
+ bottom: -10px;
37
+ }
38
+ &.tip-left > .nub {
39
+ border-color: transparent transparent transparent #000;
40
+ margin-top: -5px;
41
+ top: 50%;
42
+ right: -10px;
43
+ left: auto;
44
+ }
45
+ &.tip-right > .nub {
46
+ border-color: transparent #000 transparent transparent;
47
+ margin-top: -5px;
48
+ top: 50%;
49
+ right: auto;
50
+ left: -10px;
51
+ }
52
+ a {
53
+ color: tint($link-color, 25%);
54
+ }
55
+ pre, code {
56
+ font-size: 12px;
57
+ }
58
+ }
59
+ }
data/moovui.gemspec ADDED
@@ -0,0 +1,21 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'moovui/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "moovui"
8
+ spec.version = Moovui::VERSION
9
+ spec.authors = ["Kevin Liou, Christopher Neale"]
10
+ spec.email = ["chris.neale@mooveb.com"]
11
+ spec.summary = %q{Front-end toolkit for Moovweb Applications}
12
+ spec.description = %q{See http://moovweb.github.io/moovui for interactive examples of applying MoovUI styles and components}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.require_paths = ["lib"]
18
+
19
+ spec.add_development_dependency "bundler", "~> 1.5"
20
+ spec.add_development_dependency "rake"
21
+ end
data/moovui.scss ADDED
@@ -0,0 +1,43 @@
1
+ $moovui-init: true !default;
2
+ $moovui-prefix: "" !default;
3
+
4
+ @import "bourbon/bourbon";
5
+ @import "globals/normalize";
6
+
7
+ @import "globals/vars";
8
+ @import "globals/mixins";
9
+
10
+ @import "globals/entypo";
11
+
12
+ @import "globals/base";
13
+
14
+ // Header & Footer
15
+ @import "globals/header";
16
+ @import "globals/footer";
17
+
18
+ // Modules
19
+ @import "modules/accordion";
20
+ @import "modules/btn";
21
+ @import "modules/btnbar";
22
+ @import "modules/code";
23
+ @import "modules/copy";
24
+ @import "modules/docs";
25
+ @import "modules/definition";
26
+ @import "modules/dropdown";
27
+ @import "modules/flex";
28
+ @import "modules/grid";
29
+ @import "modules/input";
30
+ @import "modules/label";
31
+ @import "modules/list";
32
+ @import "modules/media";
33
+ @import "modules/modal";
34
+ @import "modules/notice";
35
+ @import "modules/pane";
36
+ @import "modules/resp";
37
+ @import "modules/select";
38
+ @import "modules/sidebar";
39
+ @import "modules/syntax-highlighter";
40
+ @import "modules/table";
41
+ @import "modules/tooltip";
42
+
43
+ $moovui-init: false;
data/shBrushBash.js ADDED
@@ -0,0 +1,59 @@
1
+ ;(function()
2
+ {
3
+ // CommonJS
4
+ SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null);
5
+
6
+ function Brush()
7
+ {
8
+ function hereDocProcess(match, regexInfo)
9
+ {
10
+ var constructor = SyntaxHighlighter.Match,
11
+ result = []
12
+ ;
13
+ if (match.here_doc != null)
14
+ result.push(new constructor(match.here_doc, match.index + match[0].indexOf(match.here_doc), 'string'));
15
+
16
+ if (match.full_tag != null)
17
+ result.push(new constructor(match.full_tag, match.index, 'preprocessor'));
18
+
19
+ if (match.end_tag != null)
20
+ result.push(new constructor(match.end_tag, match.index + match[0].lastIndexOf(match.end_tag), 'preprocessor'));
21
+ return result;
22
+ }
23
+ var keywords = 'if fi then elif else for do done until while break continue case esac function return in eq ne ge le';
24
+ var commands = 'alias apropos awk basename base64 bash bc bg builtin bzip2 cal cat cd cfdisk chgrp chmod chown chroot' +
25
+ 'cksum clear cmp comm command cp cron crontab crypt csplit cut date dc dd ddrescue declare df ' +
26
+ 'diff diff3 dig dir dircolors dirname dirs du echo egrep eject enable env ethtool eval ' +
27
+ 'exec exit expand export expr false fdformat fdisk fg fgrep file find fmt fold format ' +
28
+ 'free fsck ftp gawk gcc gdb getconf getopts grep groups gzip hash head history hostname id ifconfig ' +
29
+ 'import install join kill less let ln local locate logname logout look lpc lpr lprint ' +
30
+ 'lprintd lprintq lprm ls lsof make man mkdir mkfifo mkisofs mknod more mount mtools ' +
31
+ 'mv nasm nc ndisasm netstat nice nl nohup nslookup objdump od open op passwd paste pathchk ping popd pr printcap ' +
32
+ 'printenv printf ps pushd pwd quota quotacheck quotactl ram rcp read readonly renice ' +
33
+ 'remsync rm rmdir rsync screen scp sdiff sed select seq set sftp shift shopt shutdown ' +
34
+ 'sleep sort source split ssh strace strings su sudo sum symlink sync tail tar tee test time ' +
35
+ 'times touch top traceroute trap tr true tsort tty type ulimit umask umount unalias ' +
36
+ 'uname unexpand uniq units unset unshar useradd usermod users uuencode uudecode v vdir ' +
37
+ 'vi watch wc whereis which who whoami Wget xargs xxd yes'
38
+ ;
39
+
40
+ this.regexList = [
41
+ { regex: /^#!.*$/gm, css: 'preprocessor bold' },
42
+ { regex: /\/[\w-\/]+/gm, css: 'plain' },
43
+ { regex: SyntaxHighlighter.regexLib.singleLinePerlComments, css: 'comments' }, // one line comments
44
+ { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
45
+ { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
46
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
47
+ { regex: new RegExp(this.getKeywords(commands), 'gm'), css: 'functions' }, // commands
48
+ { regex: new XRegExp("(?<full_tag>(&lt;|<){2}(?<tag>\\w+)) .*$(?<here_doc>[\\s\\S]*)(?<end_tag>^\\k<tag>$)",'gm'), func: hereDocProcess }
49
+ ];
50
+ }
51
+
52
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
53
+ Brush.aliases = ['bash', 'shell', 'sh'];
54
+
55
+ SyntaxHighlighter.brushes.Bash = Brush;
56
+
57
+ // CommonJS
58
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
59
+ })();
data/shBrushJScript.js ADDED
@@ -0,0 +1,52 @@
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
+ var keywords = 'break case catch continue ' +
25
+ 'default delete do else false ' +
26
+ 'for function if in instanceof ' +
27
+ 'new null return super switch ' +
28
+ 'this throw true try typeof var while with'
29
+ ;
30
+
31
+ var r = SyntaxHighlighter.regexLib;
32
+
33
+ this.regexList = [
34
+ { regex: r.multiLineDoubleQuotedString, css: 'string' }, // double quoted strings
35
+ { regex: r.multiLineSingleQuotedString, css: 'string' }, // single quoted strings
36
+ { regex: r.singleLineCComments, css: 'comments' }, // one line comments
37
+ { regex: r.multiLineCComments, css: 'comments' }, // multiline comments
38
+ { regex: /\s*#.*/gm, css: 'preprocessor' }, // preprocessor tags like #region and #endregion
39
+ { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keywords
40
+ ];
41
+
42
+ this.forHtmlScript(r.scriptScriptTags);
43
+ };
44
+
45
+ Brush.prototype = new SyntaxHighlighter.Highlighter();
46
+ Brush.aliases = ['js', 'jscript', 'javascript', 'json'];
47
+
48
+ SyntaxHighlighter.brushes.JScript = Brush;
49
+
50
+ // CommonJS
51
+ typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
52
+ })();