wheels 0.0.48 → 0.0.49
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/VERSION +1 -1
- data/app/controllers/access_control_entries_controller.rb +4 -4
- data/app/controllers/external_links_controller.rb +5 -0
- data/app/controllers/feedbacks_controller.rb +10 -0
- data/app/controllers/menus_controller.rb +2 -0
- data/app/controllers/pages_controller.rb +16 -29
- data/app/controllers/sitemaps_controller.rb +135 -0
- data/app/helpers/application_helper.rb +4 -3
- data/app/helpers/external_links_helper.rb +2 -0
- data/app/helpers/feedbacks_helper.rb +2 -0
- data/app/helpers/menus_helper.rb +2 -0
- data/app/helpers/sitemaps_helper.rb +12 -0
- data/app/mailers/feedback_mailer.rb +10 -0
- data/app/models/ability.rb +2 -1
- data/app/models/access_control_entry.rb +17 -15
- data/app/models/external_link.rb +4 -0
- data/app/models/feedback.rb +13 -0
- data/app/models/image.rb +1 -1
- data/app/models/menu.rb +4 -0
- data/app/models/page.rb +2 -5
- data/app/models/sitemap.rb +153 -0
- data/app/models/user.rb +7 -1
- data/app/validators/email_validator.rb +22 -0
- data/app/views/access_control_entries/_form.html.haml +1 -1
- data/app/views/access_control_entries/_index.html.haml +3 -3
- data/app/views/access_control_entries/_show.html.haml +1 -1
- data/app/views/external_links/_fields_for.html.haml +2 -0
- data/app/views/external_links/_form.html.haml +18 -0
- data/app/views/external_links/_show.html.haml +7 -0
- data/app/views/external_links/edit.html.haml +7 -0
- data/app/views/external_links/index.html.haml +23 -0
- data/app/views/external_links/new.html.haml +5 -0
- data/app/views/external_links/show.html.haml +2 -0
- data/app/views/feedback_mailer/submit_feedback.html.haml +22 -0
- data/app/views/feedbacks/_form.html.haml +37 -0
- data/app/views/feedbacks/index.html.haml +27 -0
- data/app/views/feedbacks/new.html.haml +5 -0
- data/app/views/feedbacks/show.html.haml +19 -0
- data/app/views/layouts/application.html.haml +21 -16
- data/app/views/layouts/bare.html.haml +2 -0
- data/app/views/loadbehind/_view.js.haml +1 -2
- data/app/views/menus/_form.html.haml +13 -0
- data/app/views/menus/edit.html.haml +7 -0
- data/app/views/menus/index.html.haml +19 -0
- data/app/views/menus/new.html.haml +5 -0
- data/app/views/menus/show.html.haml +7 -0
- data/app/views/pages/_child_pages_links.html.haml +1 -1
- data/app/views/pages/_control_panel.html.haml +1 -6
- data/app/views/pages/_form.html.haml +2 -2
- data/app/views/pages/_form_fields.html.haml +7 -2
- data/app/views/pages/_show.html.haml +4 -0
- data/app/views/pages/create.js.haml +2 -1
- data/app/views/pages/destroy.js.haml +3 -0
- data/app/views/pages/edit.js.haml +4 -0
- data/app/views/pages/index.html.haml +4 -2
- data/app/views/pages/index.js.haml +3 -0
- data/app/views/pages/new.js.haml +3 -0
- data/app/views/pages/show.html.haml +2 -10
- data/app/views/pages/show.js.haml +3 -0
- data/app/views/pages/update.js.haml +2 -2
- data/app/views/sitemaps/edit.html.haml +12 -0
- data/app/views/sitemaps/edit.js.erb +0 -0
- data/app/views/sitemaps/index.html.haml +93 -0
- data/app/views/sitemaps/index.json.erb +23 -0
- data/app/views/sitemaps/new.html.haml +8 -0
- data/app/views/sitemaps/new.js.erb +0 -0
- data/app/views/users/edit.html.haml +45 -0
- data/db/migrate/{add_fields_to_users.rb → 0010_add_fields_to_users.rb} +0 -0
- data/db/migrate/{create_blogs.rb → 0020_create_blogs.rb} +0 -0
- data/db/migrate/{create_galleries.rb → 0030_create_galleries.rb} +0 -0
- data/db/migrate/{create_images.rb → 0040_create_images.rb} +0 -0
- data/db/migrate/{create_profiles.rb → 0050_create_profiles.rb} +0 -0
- data/db/migrate/{insert_admin_user_and_roles.rb → 0060_insert_admin_user_and_roles.rb} +0 -0
- data/db/migrate/{create_pages.rb → 0070_create_pages.rb} +0 -0
- data/db/migrate/{create_forums.rb → 0080_create_forums.rb} +0 -0
- data/db/migrate/{create_discussions.rb → 0090_create_discussions.rb} +0 -0
- data/db/migrate/{create_forum_messages.rb → 0100_create_forum_messages.rb} +0 -0
- data/db/migrate/{create_access_control_entries.rb → 0110_create_access_control_entries.rb} +3 -3
- data/db/migrate/{create_attachments.rb → 0120_create_attachments.rb} +0 -4
- data/db/migrate/{create_roles.rb → 0130_create_roles.rb} +0 -0
- data/db/migrate/0140_create_feedbacks.rb +20 -0
- data/db/migrate/0150_create_external_links.rb +14 -0
- data/db/migrate/0160_create_sitemaps.rb +17 -0
- data/db/migrate/0170_create_menus.rb +14 -0
- data/lib/development_mail_interceptor.rb +7 -0
- data/lib/generators/wheels/recipes/wheels.rb +18 -12
- data/lib/wheels/base.rb +7 -0
- data/lib/wheels/routes.rb +8 -3
- data/lib/wheels.rb +2 -0
- data/public/javascripts/jquery-validate/additional-methods.js +259 -0
- data/public/javascripts/jquery-validate/changelog.txt +239 -0
- data/public/javascripts/jquery-validate/jquery.validate.js +1146 -0
- data/public/javascripts/jquery-validate/jquery.validate.min.js +16 -0
- data/public/javascripts/jquery-validate/jquery.validate.pack.js +15 -0
- data/public/javascripts/jquery-validate/lib/jquery-1.4.2.js +6240 -0
- data/public/javascripts/jquery-validate/lib/jquery.form.js +660 -0
- data/public/javascripts/jquery-validate/lib/jquery.js +4376 -0
- data/public/javascripts/jquery-validate/lib/jquery.metadata.js +122 -0
- data/public/javascripts/jquery-validate/localization/messages_ar.js +24 -0
- data/public/javascripts/jquery-validate/localization/messages_bg.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_cn.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_cs.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_da.js +20 -0
- data/public/javascripts/jquery-validate/localization/messages_de.js +20 -0
- data/public/javascripts/jquery-validate/localization/messages_el.js +24 -0
- data/public/javascripts/jquery-validate/localization/messages_es.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_fa.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_fi.js +21 -0
- data/public/javascripts/jquery-validate/localization/messages_fr.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_he.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_hu.js +20 -0
- data/public/javascripts/jquery-validate/localization/messages_it.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_kk.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_lt.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_lv.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_nl.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_no.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_pl.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ptbr.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ptpt.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ro.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ru.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_se.js +21 -0
- data/public/javascripts/jquery-validate/localization/messages_sk.js +20 -0
- data/public/javascripts/jquery-validate/localization/messages_tr.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_tw.js +23 -0
- data/public/javascripts/jquery-validate/localization/messages_ua.js +23 -0
- data/public/javascripts/jquery-validate/localization/methods_de.js +12 -0
- data/public/javascripts/jquery-validate/localization/methods_nl.js +9 -0
- data/public/javascripts/jquery-validate/localization/methods_pt.js +9 -0
- data/public/javascripts/jquery-validate/todo +172 -0
- data/public/javascripts/jquery.cookie.js +96 -0
- data/public/javascripts/jquery.filedrop.js +253 -0
- data/public/javascripts/jquery.hotkeys.js +99 -0
- data/public/javascripts/jquery.js +6240 -0
- data/public/javascripts/jquery.jstree.js +3510 -0
- data/public/javascripts/jquery.uploadify.js +26 -0
- data/public/javascripts/jquery.validate.js +1147 -0
- data/public/javascripts/sitemap_jstree.js +329 -0
- data/public/javascripts/swfobject.js +4 -0
- data/public/jstree/_demo/_dump.sql +20 -0
- data/public/jstree/_demo/_inc/__mysql_errors.log +0 -0
- data/public/jstree/_demo/_inc/class._database.php +146 -0
- data/public/jstree/_demo/_inc/class._database_i.php +152 -0
- data/public/jstree/_demo/_inc/class.tree.php +602 -0
- data/public/jstree/_demo/_install.txt +6 -0
- data/public/jstree/_demo/config.php +14 -0
- data/public/jstree/_demo/index.html +262 -0
- data/public/jstree/_demo/server.php +69 -0
- data/public/jstree/_docs/!style.css +37 -0
- data/public/jstree/_docs/_drive.png +0 -0
- data/public/jstree/_docs/_html_data.html +2 -0
- data/public/jstree/_docs/_json_data.json +4 -0
- data/public/jstree/_docs/_search_data.json +6 -0
- data/public/jstree/_docs/_search_result.json +1 -0
- data/public/jstree/_docs/_xml_flat.xml +12 -0
- data/public/jstree/_docs/_xml_nest.xml +18 -0
- data/public/jstree/_docs/checkbox.html +148 -0
- data/public/jstree/_docs/contextmenu.html +120 -0
- data/public/jstree/_docs/cookies.html +96 -0
- data/public/jstree/_docs/core.html +622 -0
- data/public/jstree/_docs/crrm.html +315 -0
- data/public/jstree/_docs/dnd.html +197 -0
- data/public/jstree/_docs/hotkeys.html +81 -0
- data/public/jstree/_docs/html_data.html +174 -0
- data/public/jstree/_docs/index.html +75 -0
- data/public/jstree/_docs/json_data.html +240 -0
- data/public/jstree/_docs/languages.html +138 -0
- data/public/jstree/_docs/search.html +114 -0
- data/public/jstree/_docs/sort.html +84 -0
- data/public/jstree/_docs/syntax/!script.js +2232 -0
- data/public/jstree/_docs/syntax/!style.css +511 -0
- data/public/jstree/_docs/syntax/clipboard.swf +0 -0
- data/public/jstree/_docs/syntax/help.png +0 -0
- data/public/jstree/_docs/syntax/magnifier.png +0 -0
- data/public/jstree/_docs/syntax/page_white_code.png +0 -0
- data/public/jstree/_docs/syntax/page_white_copy.png +0 -0
- data/public/jstree/_docs/syntax/printer.png +0 -0
- data/public/jstree/_docs/syntax/wrapping.png +0 -0
- data/public/jstree/_docs/themeroller.html +98 -0
- data/public/jstree/_docs/themes.html +126 -0
- data/public/jstree/_docs/types.html +173 -0
- data/public/jstree/_docs/ui.html +188 -0
- data/public/jstree/_docs/unique.html +70 -0
- data/public/jstree/_docs/xml_data.html +214 -0
- data/public/jstree/_lib/jquery.cookie.js +96 -0
- data/public/jstree/_lib/jquery.hotkeys.js +99 -0
- data/public/jstree/_lib/jquery.js +6240 -0
- data/public/jstree/jquery.jstree.js +3510 -0
- data/public/jstree/jstree.html +237 -0
- data/public/jstree/themes/apple/bg.jpg +0 -0
- data/public/jstree/themes/apple/d.png +0 -0
- data/public/jstree/themes/apple/dot_for_ie.gif +0 -0
- data/public/jstree/themes/apple/style.css +60 -0
- data/public/jstree/themes/apple/throbber.gif +0 -0
- data/public/jstree/themes/classic/d.png +0 -0
- data/public/jstree/themes/classic/dot_for_ie.gif +0 -0
- data/public/jstree/themes/classic/style.css +59 -0
- data/public/jstree/themes/classic/throbber.gif +0 -0
- data/public/jstree/themes/default/d.gif +0 -0
- data/public/jstree/themes/default/d.png +0 -0
- data/public/jstree/themes/default/style.css +73 -0
- data/public/jstree/themes/default/throbber.gif +0 -0
- data/public/jstree/themes/default-rtl/d.gif +0 -0
- data/public/jstree/themes/default-rtl/d.png +0 -0
- data/public/jstree/themes/default-rtl/dots.gif +0 -0
- data/public/jstree/themes/default-rtl/style.css +83 -0
- data/public/jstree/themes/default-rtl/throbber.gif +0 -0
- data/public/stylesheets/sass/dreamy.sass +21 -56
- data/public/stylesheets/sass/menu.sass +43 -9
- data/public/stylesheets/sass/uploadify.sass +52 -0
- data/public/stylesheets/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/public/stylesheets/ui-lightness/jquery-ui-1.8.4.custom.css +549 -0
- data/wheels.gemspec +187 -15
- metadata +188 -16
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SyntaxHighlighter
|
|
3
|
+
* http://alexgorbatchev.com/
|
|
4
|
+
*
|
|
5
|
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
|
6
|
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
|
7
|
+
*
|
|
8
|
+
* @version
|
|
9
|
+
* 2.1.364 (October 15 2009)
|
|
10
|
+
*
|
|
11
|
+
* @copyright
|
|
12
|
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
|
13
|
+
*
|
|
14
|
+
* @license
|
|
15
|
+
* This file is part of SyntaxHighlighter.
|
|
16
|
+
*
|
|
17
|
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
|
18
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
19
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
20
|
+
* (at your option) any later version.
|
|
21
|
+
*
|
|
22
|
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
|
23
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
24
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
25
|
+
* GNU General Public License for more details.
|
|
26
|
+
*
|
|
27
|
+
* You should have received a copy of the GNU General Public License
|
|
28
|
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
|
29
|
+
*/
|
|
30
|
+
.syntaxhighlighter,
|
|
31
|
+
.syntaxhighlighter div,
|
|
32
|
+
.syntaxhighlighter code,
|
|
33
|
+
.syntaxhighlighter table,
|
|
34
|
+
.syntaxhighlighter table td,
|
|
35
|
+
.syntaxhighlighter table tr,
|
|
36
|
+
.syntaxhighlighter table tbody
|
|
37
|
+
{
|
|
38
|
+
margin: 0 !important;
|
|
39
|
+
padding: 0 !important;
|
|
40
|
+
border: 0 !important;
|
|
41
|
+
outline: 0 !important;
|
|
42
|
+
background: none !important;
|
|
43
|
+
text-align: left !important;
|
|
44
|
+
float: none !important;
|
|
45
|
+
vertical-align: baseline !important;
|
|
46
|
+
position: static !important;
|
|
47
|
+
left: auto !important;
|
|
48
|
+
top: auto !important;
|
|
49
|
+
right: auto !important;
|
|
50
|
+
bottom: auto !important;
|
|
51
|
+
height: auto !important;
|
|
52
|
+
width: auto !important;
|
|
53
|
+
font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
|
|
54
|
+
font-weight: normal !important;
|
|
55
|
+
font-style: normal !important;
|
|
56
|
+
min-height: inherit !important; /* For IE8, FF & WebKit */
|
|
57
|
+
min-height: auto !important; /* For IE7 */
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/*
|
|
61
|
+
line-height: 1.1em !important;
|
|
62
|
+
font-size: 1em !important;
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
font-size:12px !important;
|
|
66
|
+
line-height:18px !important;
|
|
67
|
+
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.syntaxhighlighter
|
|
71
|
+
{
|
|
72
|
+
width: 99.9% !important; /* 99% fixes IE8 horizontal scrollbar */
|
|
73
|
+
margin: 1em 0 1em 0 !important;
|
|
74
|
+
padding: 1px !important; /* adds a little border on top and bottom */
|
|
75
|
+
position: relative !important;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.syntaxhighlighter .bold
|
|
79
|
+
{
|
|
80
|
+
font-weight: bold !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.syntaxhighlighter .italic
|
|
84
|
+
{
|
|
85
|
+
font-style: italic !important;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.syntaxhighlighter .line
|
|
89
|
+
{
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.syntaxhighlighter .no-wrap .line .content
|
|
93
|
+
{
|
|
94
|
+
white-space: pre !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.syntaxhighlighter .line table
|
|
98
|
+
{
|
|
99
|
+
border-collapse: collapse !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.syntaxhighlighter .line td
|
|
103
|
+
{
|
|
104
|
+
vertical-align: top !important;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.syntaxhighlighter .line .number
|
|
108
|
+
{
|
|
109
|
+
width: 3em !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.syntaxhighlighter .line .number code
|
|
113
|
+
{
|
|
114
|
+
width: 2.7em !important;
|
|
115
|
+
padding-right: .3em !important;
|
|
116
|
+
text-align: right !important;
|
|
117
|
+
display: block !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.syntaxhighlighter .line .content
|
|
121
|
+
{
|
|
122
|
+
padding-left: .5em !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.syntaxhighlighter .line .spaces
|
|
126
|
+
{
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/* Disable border and margin on the lines when no gutter option is set */
|
|
130
|
+
.syntaxhighlighter.nogutter .line .content
|
|
131
|
+
{
|
|
132
|
+
border-left: none !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.syntaxhighlighter .bar
|
|
136
|
+
{
|
|
137
|
+
display: none !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.syntaxhighlighter .bar.show
|
|
141
|
+
{
|
|
142
|
+
display: block !important;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.syntaxhighlighter.collapsed .bar
|
|
146
|
+
{
|
|
147
|
+
display: block !important;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* Adjust some properties when collapsed */
|
|
151
|
+
|
|
152
|
+
.syntaxhighlighter.collapsed .lines
|
|
153
|
+
{
|
|
154
|
+
display: none !important;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.syntaxhighlighter .lines.no-wrap
|
|
158
|
+
{
|
|
159
|
+
overflow: auto !important;
|
|
160
|
+
overflow-y: hidden !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* Styles for the toolbar */
|
|
164
|
+
|
|
165
|
+
.syntaxhighlighter .toolbar
|
|
166
|
+
{
|
|
167
|
+
position: absolute !important;
|
|
168
|
+
right: 0px !important;
|
|
169
|
+
top: 0px !important;
|
|
170
|
+
font-size: 1px !important;
|
|
171
|
+
padding: 8px 8px 8px 0 !important; /* in px because images don't scale with ems */
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.syntaxhighlighter.collapsed .toolbar
|
|
175
|
+
{
|
|
176
|
+
font-size: 80% !important;
|
|
177
|
+
padding: .2em 0 .5em .5em !important;
|
|
178
|
+
position: static !important;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.syntaxhighlighter .toolbar a.item,
|
|
182
|
+
.syntaxhighlighter .toolbar .item
|
|
183
|
+
{
|
|
184
|
+
display: block !important;
|
|
185
|
+
float: left !important;
|
|
186
|
+
margin-left: 8px !important;
|
|
187
|
+
background-repeat: no-repeat !important;
|
|
188
|
+
overflow: hidden !important;
|
|
189
|
+
text-indent: -5000px !important;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.syntaxhighlighter.collapsed .toolbar .item
|
|
193
|
+
{
|
|
194
|
+
display: none !important;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.syntaxhighlighter.collapsed .toolbar .item.expandSource
|
|
198
|
+
{
|
|
199
|
+
background-image: url(magnifier.png) !important;
|
|
200
|
+
display: inline !important;
|
|
201
|
+
text-indent: 0 !important;
|
|
202
|
+
width: auto !important;
|
|
203
|
+
float: none !important;
|
|
204
|
+
height: 16px !important;
|
|
205
|
+
padding-left: 20px !important;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.syntaxhighlighter .toolbar .item.viewSource
|
|
209
|
+
{
|
|
210
|
+
background-image: url(page_white_code.png) !important;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.syntaxhighlighter .toolbar .item.printSource
|
|
214
|
+
{
|
|
215
|
+
background-image: url(printer.png) !important;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.syntaxhighlighter .toolbar .item.copyToClipboard
|
|
219
|
+
{
|
|
220
|
+
text-indent: 0 !important;
|
|
221
|
+
background: none !important;
|
|
222
|
+
overflow: visible !important;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.syntaxhighlighter .toolbar .item.about
|
|
226
|
+
{
|
|
227
|
+
background-image: url(help.png) !important;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Print view.
|
|
232
|
+
* Colors are based on the default theme without background.
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
.syntaxhighlighter.printing,
|
|
236
|
+
.syntaxhighlighter.printing .line.alt1 .content,
|
|
237
|
+
.syntaxhighlighter.printing .line.alt2 .content,
|
|
238
|
+
.syntaxhighlighter.printing .line.highlighted .number,
|
|
239
|
+
.syntaxhighlighter.printing .line.highlighted.alt1 .content,
|
|
240
|
+
.syntaxhighlighter.printing .line.highlighted.alt2 .content,
|
|
241
|
+
{
|
|
242
|
+
background: none !important;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* Gutter line numbers */
|
|
246
|
+
.syntaxhighlighter.printing .line .number
|
|
247
|
+
{
|
|
248
|
+
color: #bbb !important;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* Add border to the lines */
|
|
252
|
+
.syntaxhighlighter.printing .line .content
|
|
253
|
+
{
|
|
254
|
+
color: #000 !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/* Toolbar when visible */
|
|
258
|
+
.syntaxhighlighter.printing .toolbar
|
|
259
|
+
{
|
|
260
|
+
display: none !important;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.syntaxhighlighter.printing a
|
|
264
|
+
{
|
|
265
|
+
text-decoration: none !important;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.syntaxhighlighter.printing .plain,
|
|
269
|
+
.syntaxhighlighter.printing .plain a
|
|
270
|
+
{
|
|
271
|
+
color: #000 !important;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.syntaxhighlighter.printing .comments,
|
|
275
|
+
.syntaxhighlighter.printing .comments a
|
|
276
|
+
{
|
|
277
|
+
color: #008200 !important;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.syntaxhighlighter.printing .string,
|
|
281
|
+
.syntaxhighlighter.printing .string a
|
|
282
|
+
{
|
|
283
|
+
color: blue !important;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.syntaxhighlighter.printing .keyword
|
|
287
|
+
{
|
|
288
|
+
color: #069 !important;
|
|
289
|
+
font-weight: bold !important;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.syntaxhighlighter.printing .preprocessor
|
|
293
|
+
{
|
|
294
|
+
color: gray !important;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.syntaxhighlighter.printing .variable
|
|
298
|
+
{
|
|
299
|
+
color: #a70 !important;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.syntaxhighlighter.printing .value
|
|
303
|
+
{
|
|
304
|
+
color: #090 !important;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.syntaxhighlighter.printing .functions
|
|
308
|
+
{
|
|
309
|
+
color: #ff1493 !important;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.syntaxhighlighter.printing .constants
|
|
313
|
+
{
|
|
314
|
+
color: #0066CC !important;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.syntaxhighlighter.printing .script
|
|
318
|
+
{
|
|
319
|
+
font-weight: bold !important;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.syntaxhighlighter.printing .color1,
|
|
323
|
+
.syntaxhighlighter.printing .color1 a
|
|
324
|
+
{
|
|
325
|
+
color: #808080 !important;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.syntaxhighlighter.printing .color2,
|
|
329
|
+
.syntaxhighlighter.printing .color2 a
|
|
330
|
+
{
|
|
331
|
+
color: #ff1493 !important;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.syntaxhighlighter.printing .color3,
|
|
335
|
+
.syntaxhighlighter.printing .color3 a
|
|
336
|
+
{
|
|
337
|
+
color: red !important;
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* SyntaxHighlighter
|
|
341
|
+
* http://alexgorbatchev.com/
|
|
342
|
+
*
|
|
343
|
+
* SyntaxHighlighter is donationware. If you are using it, please donate.
|
|
344
|
+
* http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
|
|
345
|
+
*
|
|
346
|
+
* @version
|
|
347
|
+
* 2.1.364 (October 15 2009)
|
|
348
|
+
*
|
|
349
|
+
* @copyright
|
|
350
|
+
* Copyright (C) 2004-2009 Alex Gorbatchev.
|
|
351
|
+
*
|
|
352
|
+
* @license
|
|
353
|
+
* This file is part of SyntaxHighlighter.
|
|
354
|
+
*
|
|
355
|
+
* SyntaxHighlighter is free software: you can redistribute it and/or modify
|
|
356
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
357
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
358
|
+
* (at your option) any later version.
|
|
359
|
+
*
|
|
360
|
+
* SyntaxHighlighter is distributed in the hope that it will be useful,
|
|
361
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
362
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
363
|
+
* GNU General Public License for more details.
|
|
364
|
+
*
|
|
365
|
+
* You should have received a copy of the GNU General Public License
|
|
366
|
+
* along with SyntaxHighlighter. If not, see <http://www.gnu.org/copyleft/lesser.html>.
|
|
367
|
+
*/
|
|
368
|
+
/************************************
|
|
369
|
+
* Default Syntax Highlighter theme.
|
|
370
|
+
*
|
|
371
|
+
* Interface elements.
|
|
372
|
+
************************************/
|
|
373
|
+
|
|
374
|
+
.syntaxhighlighter
|
|
375
|
+
{
|
|
376
|
+
background-color: #fff !important;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/* Highlighed line number */
|
|
380
|
+
.syntaxhighlighter .line.highlighted .number
|
|
381
|
+
{
|
|
382
|
+
color: black !important;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/* Highlighed line */
|
|
386
|
+
.syntaxhighlighter .line.highlighted.alt1,
|
|
387
|
+
.syntaxhighlighter .line.highlighted.alt2
|
|
388
|
+
{
|
|
389
|
+
background-color: #e0e0e0 !important;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* Gutter line numbers */
|
|
393
|
+
.syntaxhighlighter .line .number
|
|
394
|
+
{
|
|
395
|
+
color: #afafaf !important;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
/* Add border to the lines */
|
|
399
|
+
.syntaxhighlighter .line .content
|
|
400
|
+
{
|
|
401
|
+
border-left: 1px solid gray !important;
|
|
402
|
+
color: #000 !important;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.syntaxhighlighter.printing .line .content
|
|
406
|
+
{
|
|
407
|
+
border: 0 !important;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/* First line */
|
|
411
|
+
.syntaxhighlighter .line.alt1
|
|
412
|
+
{
|
|
413
|
+
background-color: #fff !important;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* Second line */
|
|
417
|
+
.syntaxhighlighter .line.alt2
|
|
418
|
+
{
|
|
419
|
+
background-color: #F8F8F8 !important;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
.syntaxhighlighter .toolbar
|
|
423
|
+
{
|
|
424
|
+
background-color: #F8F8F8 !important;
|
|
425
|
+
border: #E7E5DC solid 1px !important;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.syntaxhighlighter .toolbar a
|
|
429
|
+
{
|
|
430
|
+
color: #a0a0a0 !important;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.syntaxhighlighter .toolbar a:hover
|
|
434
|
+
{
|
|
435
|
+
color: red !important;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/************************************
|
|
439
|
+
* Actual syntax highlighter colors.
|
|
440
|
+
************************************/
|
|
441
|
+
.syntaxhighlighter .plain,
|
|
442
|
+
.syntaxhighlighter .plain a
|
|
443
|
+
{
|
|
444
|
+
color: #000 !important;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.syntaxhighlighter .comments,
|
|
448
|
+
.syntaxhighlighter .comments a
|
|
449
|
+
{
|
|
450
|
+
color: #008200 !important;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.syntaxhighlighter .string,
|
|
454
|
+
.syntaxhighlighter .string a
|
|
455
|
+
{
|
|
456
|
+
color: blue !important;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.syntaxhighlighter .keyword
|
|
460
|
+
{
|
|
461
|
+
color: #069 !important;
|
|
462
|
+
font-weight: bold !important;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.syntaxhighlighter .preprocessor
|
|
466
|
+
{
|
|
467
|
+
color: gray !important;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.syntaxhighlighter .variable
|
|
471
|
+
{
|
|
472
|
+
color: #a70 !important;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.syntaxhighlighter .value
|
|
476
|
+
{
|
|
477
|
+
color: #090 !important;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.syntaxhighlighter .functions
|
|
481
|
+
{
|
|
482
|
+
color: #ff1493 !important;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.syntaxhighlighter .constants
|
|
486
|
+
{
|
|
487
|
+
color: #0066CC !important;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.syntaxhighlighter .script
|
|
491
|
+
{
|
|
492
|
+
background-color: yellow !important;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
.syntaxhighlighter .color1,
|
|
496
|
+
.syntaxhighlighter .color1 a
|
|
497
|
+
{
|
|
498
|
+
color: #808080 !important;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.syntaxhighlighter .color2,
|
|
502
|
+
.syntaxhighlighter .color2 a
|
|
503
|
+
{
|
|
504
|
+
color: #ff1493 !important;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.syntaxhighlighter .color3,
|
|
508
|
+
.syntaxhighlighter .color3 a
|
|
509
|
+
{
|
|
510
|
+
color: red !important;
|
|
511
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
<!DOCTYPE html
|
|
2
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
5
|
+
<head>
|
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
7
|
+
<title>jsTree v.1.0 - themeroller documentation</title>
|
|
8
|
+
<script type="text/javascript" src="../_lib/jquery.js"></script>
|
|
9
|
+
<script type="text/javascript" src="../_lib/jquery.cookie.js"></script>
|
|
10
|
+
<script type="text/javascript" src="../_lib/jquery.hotkeys.js"></script>
|
|
11
|
+
<script type="text/javascript" src="../jquery.jstree.js"></script>
|
|
12
|
+
|
|
13
|
+
<link type="text/css" rel="stylesheet" href="syntax/!style.css"/>
|
|
14
|
+
<link type="text/css" rel="stylesheet" href="!style.css"/>
|
|
15
|
+
<script type="text/javascript" src="syntax/!script.js"></script>
|
|
16
|
+
|
|
17
|
+
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.1/themes/base/jquery-ui.css" type="text/css" media="all" />
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="container">
|
|
21
|
+
|
|
22
|
+
<h1>jsTree v.1.0 - themeroller plugin</h1>
|
|
23
|
+
<h2>Description</h2>
|
|
24
|
+
<div id="description">
|
|
25
|
+
<p>The <code>themeroller</code> plugin adds support for jQuery UI's themes. Add the plugin as last in your <code>plugins</code> config option. Also make sure that you have included the jquery theme you'd like to use and you should NOT use the native jstree <code>themes</code> plugin.</p>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<h2 id="configuration">Configuration</h2>
|
|
29
|
+
<div class="panel configuration">
|
|
30
|
+
<h3>opened</h3>
|
|
31
|
+
<p class="meta">A string. Default is <code>"ui-icon-triangle-1-se"</code>.</p>
|
|
32
|
+
<p>The class name to use for open nodes (shows the arrow to close).</p>
|
|
33
|
+
|
|
34
|
+
<h3>closed</h3>
|
|
35
|
+
<p class="meta">A string. Default is <code>"ui-icon-triangle-1-e"</code>.</p>
|
|
36
|
+
<p>The class name to use for closed nodes (shows the arrow to open).</p>
|
|
37
|
+
|
|
38
|
+
<h3>item</h3>
|
|
39
|
+
<p class="meta">A string. Default is <code>"ui-state-default"</code>.</p>
|
|
40
|
+
<p>The class name to use for the actual items.</p>
|
|
41
|
+
|
|
42
|
+
<h3>item_h</h3>
|
|
43
|
+
<p class="meta">A string. Default is <code>"ui-state-hover"</code>.</p>
|
|
44
|
+
<p>The class name to use for the hovered item.</p>
|
|
45
|
+
|
|
46
|
+
<h3>item_a</h3>
|
|
47
|
+
<p class="meta">A string. Default is <code>"ui-state-active"</code>.</p>
|
|
48
|
+
<p>The class name to use for selected items (UI plugin).</p>
|
|
49
|
+
|
|
50
|
+
<h3>item_icon</h3>
|
|
51
|
+
<p class="meta">A string. Default is <code>"ui-icon-folder-collapsed"</code>.</p>
|
|
52
|
+
<p>The class name to use for the default icon.</p>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<h2 id="demos">Demos</h2>
|
|
57
|
+
<div class="panel">
|
|
58
|
+
|
|
59
|
+
<h3>Using the themeroller plugin</h3>
|
|
60
|
+
<div id="demo1" class="demo">
|
|
61
|
+
<ul>
|
|
62
|
+
<li id="phtml_1">
|
|
63
|
+
<a href="#">Root node 1</a>
|
|
64
|
+
<ul>
|
|
65
|
+
<li id="phtml_2">
|
|
66
|
+
<a href="#">Child node 1</a>
|
|
67
|
+
</li>
|
|
68
|
+
<li id="phtml_3">
|
|
69
|
+
<a href="#">Child node 2</a>
|
|
70
|
+
</li>
|
|
71
|
+
</ul>
|
|
72
|
+
</li>
|
|
73
|
+
<li id="phtml_4">
|
|
74
|
+
<a href="#">Root node 2</a>
|
|
75
|
+
</li>
|
|
76
|
+
</ul>
|
|
77
|
+
</div>
|
|
78
|
+
<script type="text/javascript" class="source">
|
|
79
|
+
$(function () {
|
|
80
|
+
$("#demo1").jstree({
|
|
81
|
+
"plugins" : [ "html_data", "ui", "themeroller" ]
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
</script>
|
|
85
|
+
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
<h2 id="api">API</h2>
|
|
89
|
+
<div class="panel api">
|
|
90
|
+
|
|
91
|
+
<h3 id="_themeroller">._themeroller ( obj )</h3>
|
|
92
|
+
<p>Fixes the tree on various events by applying the configured classes - used internally only.</p>
|
|
93
|
+
|
|
94
|
+
</div>
|
|
95
|
+
|
|
96
|
+
</div>
|
|
97
|
+
</body>
|
|
98
|
+
</html>
|